1 2015-11-21 Nathan Sidwell <nathan@acm.org>
3 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
5 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
7 (write_func_decl_from_insn): Likewise.
8 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
9 (nvptx_file_end): Likewise.
10 (nvptx_function_end): Undent output.
11 (nvptx_expand_call): Fix formatting.
12 (nvptx_output_call_insn): Indent output.
13 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
14 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
16 2015-11-21 Jakub Jelinek <jakub@redhat.com>
19 * tree-inline.c (copy_debug_stmt): If
20 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
21 in decl_debug_args, don't call remap_gimple_op_r on it.
23 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
25 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
26 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
27 Check that all record types are complete.
28 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
29 compare alias sets for types w/o alias sets.
31 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
33 * config/sparc/sparc.md (umulxhi_vis): Move around.
34 (*umulxhi_sp64): Likewise.
35 (umulxhi_v8plus): Likewise.
36 (xmulx_vis): Likewise.
37 (*xmulx_sp64): Likewise.
38 (xmulx_v8plus): Likewise.
39 (xmulxhi_vis): Likewise.
40 (*xmulxhi_sp64): Likewise.
41 (xmulxhi_v8plus): Likewise.
43 2015-11-20 David Malcolm <dmalcolm@redhat.com>
46 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
47 (class layout): Update comment
48 (layout::print_any_fixits): New method.
49 (layout::move_to_column): New method.
50 (diagnostic_show_locus): Add call to layout.print_any_fixits.
52 2015-11-20 Jakub Jelinek <jakub@redhat.com>
55 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
56 has non-zero bias, subtract it in integer type instead of
57 pointer plus of negated bias.
60 * omp-low.c (expand_simd_clones): Call node->get_body () before
61 allocating stuff in GC.
63 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
65 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
67 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
69 * config/aarch64/aarch64.md (predicated): Copy attribute from
71 * config/arm/arm.md (predicated): Added description.
73 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
75 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
77 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
78 from matching condition.
79 (unaligned_loadhis): Likewise.
80 (unaligned_loadhiu): Likewise.
81 (unaligned_storesi): Likewise.
82 (unaligned_storehi): Likewise.
84 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
87 * config/arm/arm.md (unaligned_loaddi): Delete.
88 (unaligned_storedi): Likewise.
89 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
90 unaligned DImode memory ops. Instead perform two back-to-back
93 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
94 James Norris <jnorris@codesourcery.com>
96 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
97 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
99 2015-11-20 Alan Hayward <alan.hayward@arm.com>
101 PR tree-optimization/68413
102 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
104 (vectorizable_reduction): Use cached base
106 2015-11-20 Tom de Vries <tom@codesourcery.com>
108 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
110 (try_create_reduction_list): Same. Fix typo in dump-file string.
112 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
114 * doc/md.texi (Standard Names): Move entry for addptr3 around,
115 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
116 glitch in entries for cbranch4 and jump.
118 2015-11-20 Tom de Vries <tom@codesourcery.com>
120 PR tree-optimization/68373
121 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
123 (scev_const_prop): ... here.
124 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
125 * tree-parloops.c (try_create_reduction_list): Call
126 final_value_replacement_loop.
128 2015-11-20 Bin Cheng <bin.cheng@arm.com>
130 PR tree-optimization/52272
131 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
132 (struct iv_common_cand_hasher): New struct.
133 (iv_common_cand_hasher::hash): New function.
134 (iv_common_cand_hasher::equal): New function.
135 (struct ivopts_data): New fields, iv_common_cand_tab and
137 (tree_ssa_iv_optimize_init): Initialize above fields.
138 (record_common_cand, common_cand_cmp): New functions.
139 (add_iv_candidate_derived_from_uses): New function.
140 (add_iv_candidate_for_use): Record iv_common_cands derived from
141 iv use in hash table, instead of adding candidates directly.
142 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
143 (record_important_candidates): Add important candidates to iv uses'
144 related_cands. Always keep related_cands for future use.
145 (try_add_cand_for): Use iv uses' related_cands.
146 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
147 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
149 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
151 * config/s390/s390.md ("bswaphi2"): New pattern.
153 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
155 * config/s390/s390.md (GPR1_REGNUM): New constant.
156 ("*trunc<BFP:mode><DFP_ALL:mode>2")
157 ("*trunc<DFP_ALL:mode><BFP:mode>2")
158 ("trunc<BFP:mode><DFP_ALL:mode>2")
159 ("trunc<DFP_ALL:mode><BFP:mode>2")
160 ("*extend<BFP:mode><DFP_ALL:mode>2")
161 ("*extend<DFP_ALL:mode><BFP:mode>2")
162 ("extend<BFP:mode><DFP_ALL:mode>2")
163 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
165 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
166 Sebastian Pop <s.pop@samsung.com>
168 PR tree-optimization/68428
169 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
170 over basic blocks outside the scop.
172 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
173 Sebastian Pop <s.pop@samsung.com>
175 PR tree-optimization/68341
176 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
177 gcc_unreachable and safely fail codegen.
178 (copy_loop_close_phi_args): Do not insert merge phis in a basic
179 block with loop phi nodes.
180 (edge_for_new_close_phis): New.
181 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
183 2015-11-19 Nathan Sidwell <nathan@acm.org>
185 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
186 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
187 (nvptx_declare_objec_name): Likewise.
189 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
191 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
192 (get_false_edge_from_guard_bb): Move...
193 * sese.c (get_false_edge_from_guard_bb)
194 (get_true_edge_from_guard_bb): ... here.
196 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
199 2015-11-18 Alan Modra <amodra@gmail.com>
201 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
205 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
207 * tree.h (desired_pro_or_demotion_p): New function.
208 * tree-vrp.c (simplify_cond_using_ranges): Call it.
210 2015-11-19 Michael Matz <matz@suse.de>
212 * fwprop.c (update_uses): Use flag_checking instead of
215 2015-11-19 David Malcolm <dmalcolm@redhat.com>
217 * doc/gty.texi (Support for inheritance): Fix missing
218 parentheses in example.
220 2015-11-19 Marek Polacek <polacek@redhat.com>
222 PR tree-optimization/68431
223 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
225 2015-11-19 Nathan Sidwell <nathan@acm.org>
227 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
228 atomic_exchange<mode>): Input values can be immediates.
230 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
233 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
235 * configure: Regenerate.
237 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
240 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
241 (DTORS_SECTION_ASM_OP): Likewise.
243 2015-11-19 Jakub Jelinek <jakub@redhat.com>
245 PR rtl-optimization/68376
246 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
247 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
249 2015-11-19 Richard Biener <rguenther@suse.de>
252 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
253 redirect_edge_var_map_destroy.
255 2015-11-19 Jakub Jelinek <jakub@redhat.com>
258 * config/i386/i386.md (simple_return): Disable if
259 ix86_static_chain_on_stack is true.
261 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
264 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
267 2015-11-18 Jeff Law <law@redhat.com>
269 PR tree-optimization/68198
270 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
271 between threading a multi-way branch and a thread path that contains
272 a multi-way branch. Disallow the case where a path contains a
273 multi-way branch and does not thread a multi-way branch.
274 (thread_through_all_blocks): Update comment.
276 2015-11-18 Joseph Myers <joseph@codesourcery.com>
279 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
280 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
281 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
282 functions before defining as macros.
284 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
286 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
287 (nvptx_record_offload_symbol): Remove code compensating for lack
288 of default dimension handling.
289 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
291 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
293 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
294 type to bool for early exit.
295 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
297 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
298 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
299 predecessor dominates the other.
300 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
301 element is not found it returns -1.
302 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
303 out early when codegen fails.
304 (graphite_regenerate_ast_isl): Remove codegen region when pending
305 phis could not be generated.
307 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
309 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
311 (class translate_isl_ast_to_gimple): Indentation.
312 (translate_pending_phi_nodes): Comment.
313 (add_parameters_to_ivs_params): Moved from sese.c inside class
314 translate_isl_ast_to_gimple.
315 (get_max_schedule_dimensions): Same.
316 (generate_isl_context): Same.
317 (extend_schedule): Same.
318 (generate_isl_schedule): Same.
320 (scop_to_isl_ast): Same.
321 (is_valid_rename): Same.
323 (get_rename_from_scev): Same.
324 (get_def_bb_for_const): Same.
325 (get_new_name): Same.
326 (collect_all_ssa_names): Same.
327 (copy_loop_phi_args): Same.
328 (copy_loop_phi_nodes): Same.
329 (copy_loop_close_phi_args): Same.
330 (copy_loop_close_phi_nodes): Same.
331 (copy_cond_phi_args): Same.
332 (copy_cond_phi_nodes): Same.
333 (graphite_copy_stmts_from_block): Same.
334 (copy_bb_and_scalar_dependences): Same.
335 (add_phi_arg_for_new_expr): Same.
338 (set_rename_for_each_def): Same.
339 (gsi_insert_earliest): Same.
340 (rename_all_uses): Same.
341 (codegen_error_p): Same.
342 (print_isl_ast_node): Same.
343 (translate_isl_ast_for_loop): Call function codegen_error_p.
344 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
345 (translate_isl_ast_node_user): Make nb_loops const and release
347 (get_true_edge_from_guard_bb): Move all free-functions early.
348 (get_false_edge_from_guard_bb): Same.
349 (bb_contains_loop_close_phi_nodes): Same.
350 (bb_contains_loop_phi_nodes): Same.
351 (is_loop_closed_ssa_use): Same.
352 (number_of_phi_nodes): Same.
353 (phi_uses_name): Same.
354 (later_of_the_two): Same.
355 (substitute_ssa_name):
358 (get_loop_init_value): Same.
359 (find_init_value): Same.
360 (find_init_value_close_phi): Same.
361 (ast_build_before_for): Same.
362 (graphite_regenerate_ast_isl): Formatting changes.
363 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
364 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
366 (gsi_insert_earliest): Same.
367 (collect_all_ssa_names): Same.
368 (rename_all_uses): Same.
370 (get_def_bb_for_const): Same.
371 (copy_loop_phi_nodes): Same.
372 (copy_loop_close_phi_args): Same.
373 (copy_loop_close_phi_nodes): Same.
374 (copy_cond_phi_args): Same.
375 (copy_cond_phi_nodes): Same.
376 (set_rename_for_each_def): Same.
377 (graphite_copy_stmts_from_block): Same.
378 (copy_bb_and_scalar_dependences): Same.
379 (if_region_set_false_region): Same.
380 (scev_analyzable_p): Same.
381 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
383 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
385 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
386 commit from r125920 for FreeBSD.
388 2015-11-18 Jason Merrill <jason@redhat.com>
390 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
392 (add_finalizer): Split out from ggc_internal_alloc.
393 (ggc_handle_finalizers): Run finalizers for the current depth.
394 (init_ggc, ggc_pch_read): Reserve space for finalizers.
396 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
399 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
402 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
404 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
405 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
407 * doc/avr-mmcu.texi: Regenerate.
409 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
411 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
412 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
413 (struct bb_sese): New struct.
414 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
415 (BB_GET_SESE, BB_SET_SESE): Define.
416 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
417 (nvptx_find_sese): New.
418 (nvptx_neuter_pars): Find SESE regions when optimizing.
420 2015-11-18 Alan Modra <amodra@gmail.com>
422 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
425 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
428 * hash-set.h (hash_set::traverse): Expand Key typedef.
430 2015-11-18 Martin Liska <mliska@suse.cz>
432 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
435 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
437 * config/nvptx/nvptx.c (global_lock_var): New.
438 (nvptx_global_lock_addr): New.
439 (nvptx_lockless_update): Recomment and adjust for clarity.
440 (nvptx_lockfull_update): New.
441 (nvptx_reduction_update): New.
442 (nvptx_goacc_reduction_fini): Call it.
444 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
446 * regrename.h (struct du_head): Add target_data_1 and target_data_2
448 * regrename.c (create_new_chain): Clear entire struct after allocating.
450 * config/i386/i386.opt (mmitigate-rop): New option.
451 * doc/invoke.texi (mmitigate-rop): Document.
452 * config/i386/i386.c: Include "regrename.h".
453 (ix86_rop_should_change_byte_p, reg_encoded_number,
454 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
456 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
457 * config/i386/i386.md (attr "modrm_class"): New.
458 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
459 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
460 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
462 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
465 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
467 2015-11-18 Jakub Jelinek <jakub@redhat.com>
469 PR tree-optimization/68157
470 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
471 pow_stmt or mul_stmt from stmt's uid.
472 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
474 2015-11-18 Martin Liska <mliska@suse.cz>
476 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
478 2015-11-18 Martin Liska <mliska@suse.cz>
480 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
481 Fix GNU coding style.
482 (find_def_preds): Use auto_vec.
483 (destroy_predicate_vecs): Change signature of the function.
484 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
486 (simplify_preds_4): Use destroy_predicate_vecs instread of
487 just releasing preds vector.
488 (normalize_preds): Likewise.
489 (is_use_properly_guarded): Use new signature of
490 destroy_predicate_vecs.
491 (find_uninit_use): Likewise.
493 2015-11-18 Richard Biener <rguenther@suse.de>
495 PR tree-optimization/67790
496 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
497 IL rewrite for MINUS_EXPR reductions, rename back to ...
498 (vect_is_simple_reduction): ... this, removing the wrapper.
499 (vect_force_simple_reduction): Adjust.
500 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
501 reductions and make use if reduc_index in all places. For
502 the final reduction of MINUS_EXPR use PLUS_EXPR.
504 2015-11-18 Alan Modra <amodra@gmail.com>
506 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
508 * configure: Regenerate.
510 2015-11-17 Tom de Vries <tom@codesourcery.com>
512 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
514 2015-11-17 Tom de Vries <tom@codesourcery.com>
516 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
517 uses of ssa_name with constant.
519 2015-11-17 Tom de Vries <tom@codesourcery.com>
521 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
524 2015-11-17 Tom de Vries <tom@codesourcery.com>
526 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
527 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
528 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
530 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
532 * regrename.c (regrename_find_superclass): New function, code moved
534 (rename_chains): ... here. Call it.
535 * regrename.h (regrename_find_superclass): Declare.
537 * regrename.c (record_out_operands): Terminate earlyclobbered
541 * regrename.c (record_operand_use): Keep track of failed operands
542 and stop appending if we see any.
543 * regrename.h (struct operand_rr_info): Add a failed field and shrink
546 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
549 * doc/extend.texi (Common Function Attributes) [visibility]:
550 Add cross-references to matching variable and type attributes.
551 (Common Variable Attributes) [visibility]: Add missing entry.
553 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
555 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
556 entries that map directly to optabs.
558 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
560 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
561 entries that map directly to optabs.
563 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
565 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
566 * internal-fn.c (direct_internal_fn_array): Update accordingly.
567 * tree-vectorizer.h (vectorizable_function): Delete.
568 * tree-vect-stmts.c: Include internal-fn.h.
569 (vectorizable_internal_function): New function.
570 (vectorizable_function): Inline into...
571 (vectorizable_call): ...here. Explicitly reject calls that read
572 from or write to memory. Try using an internal function before
573 falling back on the old vectorizable_function behavior.
575 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
577 * target.def (builtin_vectorized_function): Take a combined_fn (in
578 the form of an unsigned int) rather than a function decl.
579 (builtin_md_vectorized_function): New.
580 * targhooks.h (default_builtin_vectorized_function): Replace the
581 fndecl argument with an unsigned int.
582 (default_builtin_md_vectorized_function): Declare.
583 * targhooks.c (default_builtin_vectorized_function): Replace the
584 fndecl argument with an unsigned int.
585 (default_builtin_md_vectorized_function): New function.
586 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
588 * doc/tm.texi: Regenerate.
589 * tree-vect-stmts.c (vectorizable_function): Update call to
590 builtin_vectorized_function, also passing internal functions.
591 Call builtin_md_vectorized_function for target-specific builtins.
592 * config/aarch64/aarch64-protos.h
593 (aarch64_builtin_vectorized_function): Replace fndecl argument
594 with an unsigned int.
595 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
596 (aarch64_builtin_vectorized_function): Update after above changes.
598 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
599 fndecl argument with an unsigned int.
600 * config/arm/arm-builtins.c: Include case-cfn-macros.h
601 (arm_builtin_vectorized_function): Update after above changes.
603 * config/i386/i386.c: Include case-cfn-macros.h
604 (ix86_veclib_handler): Take a combined_fn rather than a
606 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
607 mathfn_built_in rather than calling builtin_decl_implicit directly.
608 (ix86_builtin_vectorized_function) Update after above changes.
610 * config/rs6000/rs6000.c: Include case-cfn-macros.h
611 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
612 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
613 than calling builtin_decl_implicit directly.
614 (rs6000_builtin_vectorized_function): Update after above changes.
615 Use CASE_CFN_*. Move BUILT_IN_MD to...
616 (rs6000_builtin_md_vectorized_function): ...this new function.
617 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
619 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
621 * tree-vect-patterns.c: Include internal-fn.h.
622 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
624 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
626 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
627 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
629 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
631 * builtins.c (expand_errno_check, expand_builtin_mathfn)
632 (expand_builtin_mathfn_2): Delete.
633 (expand_builtin): Remove handling of functions with
634 internal function equivalents.
635 * internal-fn.def (SET_EDOM): New internal function.
636 * internal-fn.h (set_edom_supported_p): Declare.
637 * internal-fn.c (expand_SET_EDOM): New function.
638 (set_edom_supported_p): Likewise.
639 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
640 Rewrite comment at head of file.
641 (is_call_dce_candidate): Rename to...
642 (can_test_argument_range): ...this. Don't check gimple_call_lhs
643 or gimple_call_builtin_p here.
644 (edom_only_function): New function.
645 (shrink_wrap_one_built_in_call_with_conds): New function, split out
647 (shrink_wrap_one_built_in_call): ...here.
648 (can_use_internal_fn, use_internal_fn): New functions.
649 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
650 for calls that have an lhs.
651 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
652 (pass_call_cdce::execute): Skip blocks that are optimized for size.
653 Check gimple_call_builtin_p here. Use can_use_internal_fn for
655 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
658 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
660 * builtins.h (called_as_built_in): Declare.
661 * builtins.c (called_as_built_in): Make external.
662 * internal-fn.h (expand_internal_call): Define a variant that
663 specifies the internal function explicitly.
664 * internal-fn.c (expand_load_lanes_optab_fn)
665 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
666 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
667 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
668 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
669 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
670 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
671 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
672 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
673 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
674 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
675 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
676 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
677 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
679 (internal_fn_expanders): Update prototype.
680 (expand_internal_call): Define a variant that specifies the
681 internal function explicitly. Use it to implement the previous
683 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
684 functions as calls to internal functions.
686 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
688 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
689 (generated_files): Likewise.
690 (s-cfn-operators, cfn-operators.pd): New rules.
691 (s-match): Depend on cfn-operators.pd.
692 * gencfn-macros.c: Expand comment to describe -o behavior.
693 (print_define_operator_list): New function.
694 (main): Accept -o. Call print_define_operator_list.
695 * genmatch.c (main): Add the current directory to the include path.
696 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
699 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
701 * doc/match-and-simplify.texi: Document the "null" identifier.
702 * genmatch.c (id_base::NULL_ID): New kind.
703 (null_id): New variable.
704 (get_operator): Add a parameter that says whether null identifiers
706 (contains_id): New function.
707 (lower_for): Skip substitutions that would have a null_id in
708 either the match or the result.
709 (parser::parse_for): Allow the null identifier to be used.
710 (parser::parse_operator_list): Likewise.
711 (main): Initialize null_id.
713 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
715 * match.pd: Use HYPOT and COS rather than hypot and cos.
716 Use CASE_CFN_* macros. Guard log/exp folds with
718 * genmatch.c (internal_fn): New enum.
719 (fn_id::fn): Change to an unsigned int.
720 (fn_id::fn_id): Accept internal_fn too.
721 (add_builtin): Rename to...
722 (add_function): ...this and turn into a template.
723 (get_operator): Only try one variation if the original name fails.
724 Only add _EXPR if the original name was all lower case.
725 Try converting internal and built-in function names to their
727 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
728 (dt_simplify::gen_1): Likewise.
729 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
730 and get_call_combined_fn for generic.
731 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
732 (decision_tree::gen): Likewise.
733 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
734 Use add_function rather than add_builtin. Register internal
736 * generic-match-head.c: Include case-cfn-macros.h.
737 * gimple-fold.c (replace_stmt_with_simplification): Use
738 gimple_call_combined_fn to test whether we can keep an
740 * gimple-match.h (code_helper): Replace built_in_function
742 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
743 and case-fn-macros.h.
744 (gimple_resimplify1): Use fold_const_call.
745 (gimple_resimplify2, gimple_resimplify3): Likewise.
746 (build_call_internal, build_call): New functions.
747 (maybe_push_res_to_seq): Use them.
748 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
749 rather than a built-in function.
750 * tree.h (build_call_expr_internal_loc): Declare.
751 (maybe_build_call_expr_loc): Likewise.
752 * tree.c (build_call_expr_internal_loc_array): New function.
753 (maybe_build_call_expr_loc): Likewise.
755 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
757 * builtins.h (mathfn_built_in): Add a variant that takes
759 * builtins.c: Include case-cfn-macros.h.
760 (CASE_MATHFN): Use CASE_CFN_*.
761 (CASE_MATHFN_REENT): Use CFN_ codes.
762 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
763 argument with a combined_fn.
764 (mathfn_built_in): Add a variant that takes a combined_fn.
765 (expand_builtin_int_roundingfn_2): Update callers accordingly.
766 (fold_builtin_sincos, fold_builtin_classify): Likewise.
768 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
770 * tree-vect-patterns.c: Include case-cfn-macros.h.
771 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
773 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
775 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
776 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
777 (pass_cse_sincos::execute): Likewise.
779 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
781 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
782 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
783 (decrement_power, acceptable_pow_call): Likewise.
784 (attempt_builtin_copysign): Likewise.
786 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
788 * tree-vrp.c: Include case-cfn-macros.h.
789 (extract_range_basic): Switch on combined_fn rather than handling
790 built-in functions and internal functions separately.
792 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
794 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
795 than a built_in_function.
796 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
798 (integer_valued_real_call_p): Likewise.
799 * fold-const.c: Include case-cfn-macros.h
800 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
801 (negate_expr_p): Update accordingly.
802 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
804 (integer_valued_real_call_p): Likewise.
805 (tree_invalid_nonnegative_warnv_p): Update accordingly.
806 (integer_valued_real_p): Likewise.
807 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
808 to tree_call_nonnegative_warnv_p.
809 (gimple_call_integer_valued_real_p): Likewise
810 integer_valued_real_call_p.
811 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
812 (backprop::process_builtin_call_use): Extend to combined_fn.
813 (strip_sign_op_1): Likewise.
814 (backprop::process_use): Don't check for built-in calls here.
815 (backprop::execute): Likewise.
816 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
818 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
820 * fold-const-call.h (fold_const_call): Replace built_in_function
821 arguments with combined_fn arguments.
822 * fold-const-call.c: Include case-cfn-macros.h.
823 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
824 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
825 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
826 built_in_function arguments with combined_fn arguments.
827 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
828 (fold_builtin_3): Update calls to fold_const_call.
830 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
832 * Makefile.in (HASH_TABLE_H): Add GGC_H.
833 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
834 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
835 (build/gencfn-macros$(build_exeext): New rules.
836 (genprogerr): Add cfn-macros.
837 * hash-set.h (hash_set): Use the traits value_type as the key.
838 * gencfn-macros.c: New file.
840 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
842 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
843 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
844 * builtins.c (associated_internal_fn): Handle them.
846 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
848 * builtins.h (associated_internal_fn): Declare.
849 (replacement_internal_fn): Likewise.
850 * builtins.c: Include internal-fn.h
851 (associated_internal_fn, replacement_internal_fn): New functions.
852 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
853 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
854 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
855 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
856 (LDEXP): New functions.
857 * internal-fn.c: Include recog.h.
858 (unary_direct, binary_direct): New macros.
859 (expand_direct_optab_fn): New function.
860 (expand_unary_optab_fn): New macro.
861 (expand_binary_optab_fn): Likewise.
862 (direct_unary_optab_supported_p): Likewise.
863 (direct_binary_optab_supported_p): Likewise.
865 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
867 * coretypes.h (tree_pair): New type.
868 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
869 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
870 * internal-fn.h (direct_internal_fn_info): New structure.
871 (direct_internal_fn_array): Declare.
872 (direct_internal_fn_p, direct_internal_fn): New functions.
873 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
874 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
875 (mask_store_direct, store_lanes_direct): New macros.
876 (direct_internal_fn_array) New array.
877 (get_multi_vector_move): Return the optab handler without asserting
878 that it is available.
879 (expand_LOAD_LANES): Rename to...
880 (expand_load_lanes_optab_fn): ...this and add an optab argument.
881 (expand_STORE_LANES): Rename to...
882 (expand_store_lanes_optab_fn): ...this and add an optab argument.
883 (expand_MASK_LOAD): Rename to...
884 (expand_mask_load_optab_fn): ...this and add an optab argument.
885 (expand_MASK_STORE): Rename to...
886 (expand_mask_store_optab_fn): ...this and add an optab argument.
887 (direct_internal_fn_types, direct_optab_supported_p)
888 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
889 (direct_internal_fn_supported_p): New functions.
890 (direct_mask_load_optab_supported_p): New macro.
891 (direct_load_lanes_optab_supported_p): Likewise.
892 (direct_mask_store_optab_supported_p): Likewise.
893 (direct_store_lanes_optab_supported_p): Likewise.
895 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
897 * tree-core.h (internal_fn): Move immediately after the definition
898 of built_in_function.
899 (combined_fn): New enum.
900 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
901 (internal_fn_p, as_internal_fn): New functions.
902 (get_call_combined_fn, combined_fn_name): Declare.
903 * tree.c (get_call_combined_fn): New function.
904 (combined_fn_name): Likewise.
905 * gimple.h (gimple_call_combined_fn): Declare.
906 * gimple.c (gimple_call_combined_fn): New function.
908 2015-11-17 Martin Sebor <msebor@redhat.com>
911 * cp/init.c (build_new_1): Check for expression constness
914 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
917 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
919 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
920 discussion of the Microsoft structure layout details here from
921 its former home in extend.texi.
922 * doc/extend.texi (x86 Variable Attributes): Replace detailed
923 discussion with pointer to its new location. Add cross-reference
924 to corresponding type attributes.
925 (x86 Type Attributes): Add cross-references to command-line options
926 and variable attributes.
928 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
931 * targhooks.c (default_get_mask_mode): Filter out
932 scalar modes returned by mode_for_vector.
934 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
937 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
938 offset from dstbase and use it appropriately in
939 adjust_automodify_address.
940 (arm_block_set_aligned_vect): Likewise.
942 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
944 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
945 (MULTILIB_DIRNAMES): Adjust accordingly.
947 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
949 * config/aarch64/aarch64-cores.def (cortex-a35): New.
950 * config/aarch64/aarch64.c (cortexa35_tunings): New.
951 * config/aarch64/aarch64-tune.md: Regenerate.
952 * doc/invoke.texi (-mcpu): Add Cortex-A35
954 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
957 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
959 * config/i386/sse.md (*mov<mode>_internal): Always enable
960 AVX and SSE unaligned moves for IAMCU.
962 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
964 * tree-if-conv.c: Include varasm.h
965 (ref_DR_map): Define.
966 (baseref_DR_map): Like wise
967 (struct ifc_dr): Add new tree predicate field.
968 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
969 (memrefs_read_or_written_unconditionally): Remove.
970 (write_memrefs_written_at_least_once): Remove.
971 (ifcvt_memrefs_wont_trap): Use hash maps to query
972 unconditional read/written information.
973 (if_convertible_loop_p_1): Initialize hash maps and predicates
974 before hashing data references and delete hashmaps at the end.
976 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
979 * doc/invoke.texi (Optimize Options): Move @end table to the right
982 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
985 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
988 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
990 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
991 128-bit types, just types that fit in a single vector.
992 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
994 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
996 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
997 in the user documentation.
998 (define_peephole2, define_split): Similarly.
1000 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
1002 * lto-streamer-out.c (write_global_references): Adjust integer type.
1003 (lto_output_decl_state_refs): Likewise.
1005 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
1007 * config/arm/arm-cores.def (cortex-a35): New.
1008 * config/arm/arm.c (arm_cortex_a35_tune): New.
1009 * config/arm/arm-tables.opt: Regenerate.
1010 * config/arm/arm-tune.md: Regenerate.
1011 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
1012 * config/arm/t-aprofile: Likewise.
1013 * doc/invoke.texi (-mcpu): Likewise.
1015 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
1017 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
1018 and qdf24xx and xgene1 to match -march=armv8-a.
1020 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1022 PR rtl-optimization/68330
1023 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
1024 of LSHIFTRT by a non-zero constant integer.
1026 2015-11-16 Richard Biener <rguenther@suse.de>
1028 PR tree-optimization/68306
1029 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
1030 bogus copying from verify_data_ref_alignment and use continue
1033 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
1034 Kaz Kojima <kkojima@gcc.gnu.org>
1037 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
1039 (*addsi3): Add another insn_and_split variant for reload.
1041 2015-11-16 Richard Biener <rguenther@suse.de>
1044 * cfgexpand.c (pass_expand::execute): Destroy the edge
1045 redirection var map before setting RTL CFG hooks.
1047 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
1049 * config/i386/sse.md (reduc_splus_v8df): Rename to...
1050 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
1052 (reduc_splus_v4df): Rename to...
1053 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
1055 (reduc_splus_v2df): Rename to...
1056 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
1058 (reduc_splus_v16sf): Rename to...
1059 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
1061 (reduc_splus_v8sf): Rename to...
1062 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
1064 (reduc_splus_v4sf): Rename to...
1065 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
1067 (reduc_<code>_<mode>, all 3 variants): Rename each to...
1068 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
1070 (reduc_umin_v8hf): Rename to...
1071 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
1073 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1075 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
1076 without additional conditions.
1077 * doc/extend.texi (@item simd): New.
1079 2015-11-16 Tom de Vries <tom@codesourcery.com>
1081 * passes.c (first_pass_instance): Remove variable.
1082 (execute_todo): Remove setting of first_pass_instance.
1083 * tree-pass.h (first_pass_instance): Remove declaration.
1085 2015-11-16 Tom de Vries <tom@codesourcery.com>
1087 * passes.def: Add arg to pass_ccp pass instantiation.
1088 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
1089 instead of first_pass_instance.
1090 (do_ssa_ccp): Add and handle param nonzero_p.
1091 (pass_ccp::pass_ccp): Initialize nonzero_p.
1092 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
1093 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
1094 (pass_ccp::nonzero_p): New private member.
1096 2015-11-16 Tom de Vries <tom@codesourcery.com>
1098 * passes.def: Add arg to pass_object_sizes pass instantiation.
1099 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
1101 (pass_object_sizes::set_pass_param): New member function. Set
1103 (pass_object_sizes::insert_min_max_p): New private member.
1104 (pass_object_sizes::execute): Use insert_min_max_p instead of
1105 first_pass_instance.
1107 2015-11-16 Tom de Vries <tom@codesourcery.com>
1109 * passes.def: Add arg to pass_dominator pass instantiation.
1110 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
1112 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
1113 may_peel_loop_headers_p.
1114 (pass_dominator::set_pass_param): New member function. Set
1115 may_peel_loop_headers_p.
1116 (pass_dominator::may_peel_loop_headers_p): New private member.
1117 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
1118 first_pass_instance.
1120 2015-11-16 Tom de Vries <tom@codesourcery.com>
1122 * passes.def: Add arg to pass_reassoc pass instantiation.
1123 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
1124 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
1125 of first_pass_instance.
1126 (execute_reassoc): Add and handle insert_powi_p parameter.
1127 (pass_reassoc::insert_powi_p): New private member.
1128 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
1129 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
1130 (pass_reassoc::execute): Call execute_reassoc with extra arg.
1132 2015-11-16 Tom de Vries <tom@codesourcery.com>
1134 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
1135 * gen-pass-instances.awk (handle_line): Same.
1136 * pass_manager.h (class pass_manager): Define and undefine
1138 * passes.c (opt_pass::set_pass_param): New function.
1139 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
1140 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
1141 * tree-pass.h (gimple_opt::set_pass_param): Declare.
1142 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
1143 warn_array_bounds_p parameter.
1144 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
1145 (pass_vrp::set_pass_param): New function.
1146 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
1147 (pass_vrp::warn_array_bounds_p): New private member.
1149 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
1151 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
1152 (output_probe_stack_range): Rotate the loop and simplify.
1154 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
1156 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
1157 (output_probe_stack_range): Rotate the loop and simplify.
1159 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
1161 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
1162 an lea instruction when possible.
1163 (output_adjust_stack_and_probe): Rotate the loop and simplify.
1164 (ix86_emit_probe_stack_range): Adjust.
1165 (output_probe_stack_range): Rotate the loop and simplify.
1167 2015-11-16 Christian Bruel <christian.bruel@st.com>
1169 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
1170 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
1171 with appropriate pragma GCC target.
1173 2015-11-16 Christian Bruel <christian.bruel@st.com>
1176 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
1177 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
1179 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
1181 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
1182 (cortexa57_tunings): Use it.
1184 2015-11-16 Christian Bruel <christian.bruel@st.com>
1187 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
1188 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
1189 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
1191 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
1192 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
1193 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
1194 * doc/extend.texi (-mfpu=): Describe attribute.
1196 2015-11-16 Christian Bruel <christian.bruel@st.com>
1199 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
1200 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
1201 arm_init_neon_builtins.
1202 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
1203 (arm_init_neon_builtins_internal)
1204 (arm_init_crypto_builtins_internal):
1205 Test and set neon_set_p, neon_crypto_set_p.
1206 (neon_set_p, neon_crypto_set_p): New static booleans.
1208 2015-11-16 Christian Bruel <christian.bruel@st.com>
1211 * config/arm/arm.c (arm_fpu_desc): Remove.
1212 (all_fpus): Make global.
1213 (arm_option_override): Use FPU TARGET accessors.
1214 (arm_declare_function_name): Likewise.
1215 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
1216 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
1217 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
1218 (TARGET_NEON): Likewise.
1219 (all_fpus): Declare extern.
1220 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
1221 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
1223 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1226 * sdbout.c: Include emit-rtl.h and function.h.
1228 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
1230 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
1231 Remove support for FreeBSD 5 and earlier.
1233 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1235 * configure: Regenerate.
1236 * configure.ac: Always define ENABLE_OFFLOADING.
1237 * cgraph.c (cgraph_node::create): Adjust.
1238 * gcc.c (process_command): Likewise.
1239 * omp-low.c (create_omp_child_function): Likewise.
1240 (expand_omp_target): Likewise.
1241 * varpool.c (varpool_node::get_create): Likewise.
1243 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1245 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
1246 * df-scan.c (df_get_exit_block_use_set): Adjust.
1247 * except.c (expand_eh_return): Likewise.
1249 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1251 * config/i386/i386.h (TARGET_PECOFF): Remove define.
1252 * defaults.h (TARGET_PECOFF): New default definition.
1253 * varasm.c (handle_vtv_comdat_section): Adjust.
1255 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1257 * defaults.h: New definition of SDB_DEBUGGING_INFO.
1258 * doc/tm.texi: Regenerate.
1259 * doc/tm.texi.in: Adjust.
1260 * final.c (rest_of_clean_state): Remove check if
1261 SDB_DEBUGGING_INFO is defined.
1262 * function.c (number_blocks): Likewise.
1263 * output.h: Likewise.
1264 * sdbout.c: Likewise.
1265 * toplev.c (process_options): Likewise.
1267 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1269 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
1270 (enum sdb_masks): Likewise.
1271 * sdbout.c (plain_type_1): Likewise.
1272 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
1274 2015-11-14 Jakub Jelinek <jakub@redhat.com>
1276 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
1277 internal calls - 0 if ordered simd and 1 for ordered threads simd.
1278 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
1279 argument is 1, replace it with GOMP_ordered_* call instead of removing
1282 2015-11-13 Rich Felker <dalias@libc.org>
1284 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
1285 address loading hack for FDPIC targets.
1287 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
1288 Jeff Law <law@redhat.com>
1290 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
1291 * common.opt (-fsplit-paths): New flag controlling path splitting.
1292 * doc/invoke.texi (fsplit-paths): Document.
1293 * opts.c (default_options_table): Add -fsplit-paths to -O2.
1294 * passes.def: Add split_paths pass.
1295 * timevar.def (TV_SPLIT_PATHS): New timevar.
1296 * tracer.c: Include "tracer.h"
1297 (ignore_bb_p): No longer static.
1298 (transform_duplicate): New function, broken out of tail_duplicate.
1299 (tail_duplicate): Use transform_duplicate.
1300 * tracer.h (ignore_bb_p): Declare
1301 (transform_duplicate): Likewise.
1302 * tree-pass.h (make_pass_split_paths): Declare.
1303 * gimple-ssa-split-paths.c: New file.
1305 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
1306 Marek Polacek <polacek@redhat.com>
1307 Jason Merrill <jason@redhat.com>
1309 * convert.c (maybe_fold_build1_loc): New.
1310 (maybe_fold_build2_loc): New.
1311 (convert_to_pointer_1): Split out from convert_to_pointer.
1312 (convert_to_pointer_nofold): New.
1313 (convert_to_real_1): Split out from convert_to_real.
1314 (convert_to_real_nofold): New.
1315 (convert_to_integer_1): Split out from convert_to_integer.
1316 (convert_to_integer_nofold): New.
1317 (convert_to_complex_1): Split out from convert_to_complex.
1318 (convert_to_complex_nofold): New.
1319 * convert.h: Declare new functions.
1320 * tree-complex.c (create_one_component_var): Break up line to
1321 avoid sequence point issues.
1323 2015-11-13 Jason Merrill <jason@redhat.com>
1325 * fold-const.c (fold_convert_const): Fold changing cv-quals on
1328 * hash-map.h (hash_map::empty): New.
1330 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1332 * gcc/omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
1333 (oacc_loop_fixed_partitions): Correct return type to bool.
1334 (oacc_loop_auto_partitions): New.
1335 (oacc_loop_partition): Take mask argument, call
1336 oacc_loop_auto_partitions.
1337 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
1339 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1341 * config/rs6000/constraints.md (we constraint): New constraint for
1342 64-bit power9 vector support.
1343 (wL constraint): New constraint for the element in a vector that
1344 can be addressed by the MFVSRLD instruction.
1346 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
1348 (convert_int_to_float128): Likewise.
1349 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
1350 hardware support for IEEE 128-bit floating point.
1351 (rs6000_expand_float128_convert): Likewise.
1352 (convert_float128_to_int): Likewise.
1353 (convert_int_to_float128): Likewise.
1355 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
1356 ISA 3.0 hardware IEEE 128-bit floating point.
1357 (UNSPEC_IEEE128_MOVE): Likewise.
1358 (UNSPEC_IEEE128_CONVERT): Likewise.
1359 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
1360 (Ff): Add support for DImode.
1362 (any_fix code iterator): New and updated iterators for IEEE
1363 128-bit floating point hardware support.
1364 (any_float code iterator): Likewise.
1365 (s code attribute): Likewise.
1366 (su code attribute): Likewise.
1367 (az code attribute): Likewise.
1368 (uns code attribute): Likewise.
1369 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
1370 floating point hardware support.
1371 (abs<mode>2, FLOAT128 iterator): Likewise.
1372 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
1373 floating point hardware.
1374 (sub<mode>3, IEEE128 iterator): Likewise.
1375 (mul<mode>3, IEEE128 iterator): Likewise.
1376 (div<mode>3, IEEE128 iterator): Likewise.
1377 (copysign<mode>3, IEEE128 iterator): Likewise.
1378 (sqrt<mode>2, IEEE128 iterator): Likewise.
1379 (neg<mode>2, IEEE128 iterator): Likewise.
1380 (abs<mode>2, IEEE128 iterator): Likewise.
1381 (nabs<mode>2, IEEE128 iterator): Likewise.
1382 (fma<mode>4_hw, IEEE128 iterator): Likewise.
1383 (fms<mode>4_hw, IEEE128 iterator): Likewise.
1384 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
1385 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
1386 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
1387 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
1388 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
1389 (fix_fixuns code attribute): Likewise.
1390 (float_floatuns code attribute): Likewise.
1391 (fix<uns>_<mode>si2_hw): Likewise.
1392 (fix<uns>_<mode>di2_hw): Likewise.
1393 (float<uns>_<mode>si2_hw): Likewise.
1394 (float<uns>_<mode>di2_hw): Likewise.
1395 (xscvqp<su>wz_<mode>): Likewise.
1396 (xscvqp<su>dz_<mode>): Likewise.
1397 (xscv<su>dqp_<mode): Likewise.
1398 (ieee128_mfvsrd): Likewise.
1399 (ieee128_mfvsrwz): Likewise.
1400 (ieee128_mtvsrw): Likewise.
1401 (ieee128_mtvsrd): Likewise.
1402 (trunc<mode>df2_odd): Likewise.
1403 (cmp<mode>_h): Likewise.
1404 (128-bit GPR splitters): Don't split a 128-bit move that is a
1405 direct move between GPR and vector registers using ISA 3.0 direct
1407 (maddld4): Add support for the ISA 3.0 integer multiply-add
1410 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
1412 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
1413 constraint. Disable the VSX<->GPR direct move helpers if we have
1414 the MFVSRLD and MTVSRDD instructions.
1415 (rs6000_secondary_reload_simple_move): Add support for doing
1416 vector direct moves directly without additional scratch registers
1417 if we have ISA 3.0 instructions.
1418 (rs6000_secondary_reload_direct_move): Update comments.
1419 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
1422 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
1423 direct move instructions.
1424 (vsx_movti_64bit): Likewise.
1425 (vsx_extract_<mode>): Likewise.
1427 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
1428 macros for ISA 3.0 direct move instructions.
1429 (TARGET_DIRECT_MOVE_128): Likewise.
1430 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
1433 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
1434 constraints. Update wa documentation to say not to use %x<n> on
1435 instructions that only take Altivec registers.
1437 2015-11-13 David Malcolm <dmalcolm@redhat.com>
1439 * Makefile.in (OBJS): Add gcc-rich-location.o.
1440 * diagnostic.c (diagnostic_append_note): Pass line_table to
1442 (emit_diagnostic): Likewise.
1444 (inform_n): Likewise.
1445 (warning): Likewise.
1446 (warning_at): Likewise.
1447 (warning_n): Likewise.
1448 (pedwarn): Likewise.
1449 (permerror): Likewise.
1451 (error_n): Likewise.
1452 (error_at): Likewise.
1454 (fatal_error): Likewise.
1455 (internal_error): Likewise.
1456 (internal_error_no_backtrace): Likewise.
1457 (source_range::debug): Likewise.
1458 * gcc-rich-location.c: New file.
1459 * gcc-rich-location.h: New file.
1460 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
1461 (warning_at): Likewise.
1462 * gimple.h (gimple_set_block): Use set_block function.
1463 * input.c (dump_line_table_statistics): Dump stats on how many
1464 ranges were optimized vs how many needed ad-hoc table.
1465 (write_digit_row): Add "map" param; use its range_bits
1466 to calculate the per-character offset.
1467 (dump_location_info): Print the range and column bits for each
1468 ordinary map. Use the range bits to calculate the per-character
1469 offset. Pass the map as a new param to the various calls to
1470 write_digit_row. Eliminate uses of
1471 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
1472 * print-tree.c (print_node): Print any source range information.
1473 * rtl-error.c (diagnostic_for_asm): Likewise.
1474 * toplev.c (general_init): Initialize line_table's
1476 * tree-cfg.c (move_block_to_fn): Likewise.
1477 (move_block_to_fn): Likewise.
1478 * tree-inline.c (copy_phis_for_bb): Likewise.
1479 * tree.c (tree_set_block): Likewise.
1480 (get_pure_location): New function.
1481 (set_source_range): New functions.
1482 (set_block): New function.
1483 (set_source_range): New functions.
1484 * tree.h (CAN_HAVE_RANGE_P): New.
1485 (EXPR_LOCATION_RANGE): New.
1486 (EXPR_HAS_RANGE): New.
1487 (get_expr_source_range): New inline function.
1488 (DECL_LOCATION_RANGE): New.
1489 (set_source_range): New decls.
1490 (get_decl_source_range): New inline function.
1492 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
1494 PR tree-optimization/67682
1495 * tree-vect-slp.c (vect_split_slp_store_group): New.
1496 (vect_analyze_slp_instance): During basic block SLP, recurse on
1497 subgroups if vect_build_slp_tree fails after 1st vector.
1499 2015-11-13 Christian Bruel <christian.bruel@st.com>
1502 * config/arm/arm.c (arm_option_override): Move NEON check...
1503 (arm_option_check_internal): here
1504 (arm_file_start): Move .fpu print...
1505 (arm_declare_function_name): here
1506 (arm_option_print): Dump current fpu name.
1507 * config/arm/arm.opt (arm_fpu_index): Mark Save.
1509 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
1510 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1512 * combine.c (subst): Don't substitute or simplify when
1513 handling register-wise widening multiply.
1514 (force_to_mode): Likewise.
1516 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
1518 PR tree-optimization/68264
1519 * tree-call-cdce.c (gen_one_condition): Update commentary.
1520 (gen_conditions_for_pow_int_base): Invert the sense of the tests
1521 passed to gen_one_condition.
1522 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
1523 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
1524 using EDGE_FALSE_VALUE for edges to the call block and
1525 EDGE_TRUE_VALUE for the others.
1527 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1529 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
1532 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1534 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
1536 2015-11-13 Tom de Vries <tom@codesourcery.com>
1538 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
1541 2015-11-13 Tom de Vries <tom@codesourcery.com>
1543 * gen-pass-instances.awk (handle_line): Add args_str variable.
1545 2015-11-13 Martin Liska <mliska@suse.cz>
1547 * graphite-poly.c (free_scop): Release scop->drs vector.
1548 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
1550 (try_generate_gimple_bb): Use vNULL as a default initialization
1553 2015-11-13 Martin Liska <mliska@suse.cz>
1556 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
1557 Replace array initialization (using a variable post-increment)
1558 that possible triggers multiple unsequenced modifications
1559 with a pair of pushes to a vector.
1561 2015-11-13 Richard Biener <rguenther@suse.de>
1563 PR tree-optimization/68306
1564 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
1565 loop related checks ...
1566 (vect_verify_datarefs_alignment): ... here.
1567 (vect_slp_analyze_and_verify_node_alignment): Compute and
1568 verify alignment of the single DR that it matters.
1569 * tree-vect-stmts.c (vectorizable_store): Add an assert.
1570 (vectorizable_load): Add a comment.
1571 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
1572 for determining load cost.
1574 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
1576 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
1577 mix of boolean and integer vectors in a single statement.
1578 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
1579 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
1580 determine constant type.
1581 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
1582 for loop invariants.
1584 2015-11-13 Alan Hayward <alan.hayward@arm.com>
1586 PR tree-optimization/66558
1587 * tree-vect-loop.c (is_integer_induction):Add.
1588 (vectorizable_reduction): Add integer induction checks.
1590 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
1592 Revert [ARM] Remove neon-testgen.ml and generated tests.
1594 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
1596 [ARM] Remove neon-testgen.ml and generated tests.
1598 * config/arm/neon-testgen.ml: Remove.
1600 2015-11-13 Richard Biener <rguenther@suse.de>
1602 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
1603 Signal fatal failure if early checks fail.
1604 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
1605 do not bother testing further vector sizes.
1607 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
1609 * config/i386/predicates.md (misaligned_operand): Return true if
1610 operand is aligned to less than its natural alignmnet.
1612 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
1614 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
1615 (vec_cmpu@var{m}@var{n}): New item.
1616 (vcond@var{m}@var{n}): Specify comparison is signed.
1617 (vcondu@var{m}@var{n}): New item.
1618 (vcond_mask_@var{m}@var{n}): New item.
1619 (maskload@var{m}@var{n}): New item.
1620 (maskstore@var{m}@var{n}): New item.
1622 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
1624 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
1625 types of stored value and storage are compatible.
1627 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
1629 * gcc.c (POST_LINK_SPEC): Define if not already defined.
1630 (LINK_COMMAND_SPEC): Use post_link.
1631 (post_link_spec): New, initialize to POST_LINK_SPEC.
1632 (post_link): Initialize new static spec.
1633 * doc/tm.texi.in (POST_LINK_SPEC): Document.
1634 * doc/tm.texi: Regenerated.
1636 2015-11-13 David Malcolm <dmalcolm@redhat.com>
1639 * Makefile.in (GCC_OBJS): Add spellcheck.o.
1640 (OBJS): Add spellcheck-tree.o.
1641 * gcc.c: Include "spellcheck.h".
1642 (suggest_option): New function.
1643 (driver::handle_unrecognized_options): Call suggest_option to
1644 provide a hint about misspelled options.
1645 * spellcheck.c: Update file comment.
1646 (levenshtein_distance): Convert 4-param implementation from static
1647 to extern scope. Remove note about unit tests from leading
1648 comment for const char * implementation. Move tree
1649 implementation to...
1650 * spellcheck-tree.c: New file.
1651 * spellcheck.h (levenshtein_distance): Add 4-param decl.
1653 2015-11-13 David Malcolm <dmalcolm@redhat.com>
1655 * Makefile.in (OBJS): Add spellcheck.o.
1656 * spellcheck.c: New file.
1657 * spellcheck.h: New file.
1659 2015-11-13 James Bowman <james.bowman@ftdichip.com>
1661 * config/ft32/ft32.md (*sne): New insn pattern.
1663 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
1665 * gcc/cprop.c (is_too_expensive): Remove.
1667 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
1669 * gcc/gcse.h (gcse_or_cprop_is_too_expensive): Declare.
1670 * gcc/gcse.c (is_too_expensive): Rename to ...
1671 (gcse_or_cprop_is_too_expensive): ... this.
1672 Expand warning to add required size of max-gcse-memory.
1673 (one_pre_gcse_pass): Use it.
1674 (one_code_hoisting_pass): Use it.
1675 * gcc/params.def (max-gcse-memory): Increase from 50MB to 128MB.
1677 2015-11-12 James Norris <jnorris@codesourcery.com>
1678 Joseph Myers <joseph@codesourcery.com>
1680 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
1681 GF_OMP_TARGET_KIND_OACC_DECLARE.
1682 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
1683 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
1684 * gimplify.c (oacc_declare_returns): New.
1685 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
1686 (device_resident_p): New function.
1687 (oacc_default_clause): Handle device_resident clause.
1688 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
1689 (gimplify_expr): Handle OACC_DECLARE.
1690 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
1691 * omp-low.c (expand_omp_target): Handle
1692 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
1693 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
1694 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
1695 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
1696 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
1697 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
1698 GOMP_MAP_DEVICE_RESIDENT.
1700 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
1702 [ARM] Remove neon-testgen.ml and generated tests.
1704 * config/arm/neon-testgen.ml: Remove.
1706 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
1708 * config/aarch64/aarch64-cores.def (qdf24xx): New.
1709 * config/aarch64/aarch64-tune.md: Regenerated.
1710 * config/arm/arm-cores.def (qdf24xx): New.
1711 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
1712 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
1713 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
1714 (ARM Options/-mtune): Likewise.
1716 2015-11-12 Martin Liska <mliska@suse.cz>
1718 * config/i386/i386.c (ix86_valid_target_attribute_p):
1719 Finalize options at the of the function.
1720 * gcc.c (driver_get_configure_time_options): Call newly
1721 introduced init_opts_obstack.
1722 * lto-wrapper.c (main): Likewise.
1723 * opts.c (init_opts_obstack): New function.
1724 (init_options_struct): Call newly introduced init_opts_obstack.
1725 * opts.h (init_options_struct): Declare.
1727 2015-11-12 Martin Liska <mliska@suse.cz>
1730 * ipa-icf.c (void sem_item::set_hash): New function.
1731 (sem_function::get_hash): Use renamed m_hash member variable.
1732 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
1733 (sem_item::update_hash_by_local_refs): Likewise.
1734 (sem_variable::get_hash): Use renamed m_hash member variable.
1735 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
1736 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
1737 (sem_item_optimizer::build_graph): As the hash value of an item
1738 is lazy initialized, force the calculation.
1739 * ipa-icf.h (set_hash): Declare new function and rename hash member
1742 2015-11-12 Richard Biener <rguenther@suse.de>
1744 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
1745 Rename to vect_slp_analyze_instance_dependence.
1746 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
1747 Remove WAR special-case.
1748 (vect_slp_analyze_node_dependences): Instead add more specific
1749 code here, not relying on other instances being vectorized.
1750 (vect_slp_analyze_instance_dependence): Adjust accordingly.
1751 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
1752 vertical space in dump files.
1753 (vect_print_slp_tree): Likewise.
1754 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
1755 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
1756 not vectorized stmts until after dependence analysis removed
1757 instances. Merge alignment and dependence checks.
1758 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
1761 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
1763 * config/aarch64/aarch64-protos.h (tune_params): Add new members
1764 "max_case_values" and "cache_line_size".
1765 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
1767 (aarch64_override_options_internal): Tune heuristics based on new
1768 members in "tune_params".
1769 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
1771 2015-11-12 Richard Biener <rguenther@suse.de>
1773 PR tree-optimization/68306
1774 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
1775 relevant and vectorizable checks here.
1776 (vect_verify_datarefs_alignment): Add relevant check here.
1778 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
1780 * gimplify.c (oacc_default_clause): New.
1781 (omp_notice_variable): Call it.
1783 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
1785 PR tree-optimization/68305
1786 * tree-vect-slp.c (vect_get_constant_vectors): Support
1787 COND_EXPR with SSA_NAME as a condition.
1789 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
1791 * config/visium/visium-protos.h (notice_update_cc): Delete.
1792 (print_operand): Likewise.
1793 (print_operand_address): Likewise.
1795 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
1797 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
1798 FUNCTION_VALUE_REGNO_P): Remove.
1799 * config/alpha/alpha-protos.h (function_value): Remove.
1800 * config/alpha/alpha.c (function_value): Rename to...
1801 (alpha_function_value_1): ... this. Make static.
1802 (alpha_function_value, alpha_libcall_value,
1803 alpha_function_value_regno_p): New functions.
1804 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1805 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1807 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
1809 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1810 * config/alpha/alpha.c (alpha_memory_latency): Make static.
1811 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
1812 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1814 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
1817 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
1818 assertion on the CFA register.
1820 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
1822 * expr.c (do_store_flag): Expand vector comparison as
1823 VEC_COND_EXPR if vector comparison is not supported by target.
1825 2015-11-12 Renlin Li <renlin.li@arm.com>
1827 * config/arm/arm.md (addsi3_compare_op2): Make the order of
1828 assembly pattern consistent with constraint order.
1830 2015-11-12 Tom de Vries <tom@codesourcery.com>
1832 * gen-pass-instances.awk (handle_line): Simplify match regexp.
1834 2015-11-12 Tom de Vries <tom@codesourcery.com>
1836 * gen-pass-instances.awk (handle_line): Simplify init of
1839 2015-11-12 Tom de Vries <tom@codesourcery.com>
1841 * gen-pass-instances.awk (handle_line): Rename var where to
1844 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
1846 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
1847 do not expand to rtl.
1849 2015-11-12 Richard Biener <rguenther@suse.de>
1851 PR tree-optimization/58497
1852 * tree-vect-generic.c: Include gimplify.h.
1853 (tree_vec_extract): Lookup constant/constructor DEFs.
1854 (do_cond): Unshare cond.
1856 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
1858 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
1859 combined insn if the alignment of vector mode memory operand
1860 is less than ssememalign.
1862 2015-11-12 Tom de Vries <tom@codesourcery.com>
1864 * gen-pass-instances.awk (handle_line): Print parentheses and
1865 pass_name explicitly.
1867 2015-11-12 Tom de Vries <tom@codesourcery.com>
1869 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
1872 2015-11-12 Tom de Vries <tom@codesourcery.com>
1874 * gen-pass-instances.awk (handle_line): Add comments.
1876 2015-11-12 Tom de Vries <tom@codesourcery.com>
1878 * gen-pass-instances.awk (handle_line): Rename len_of_end to
1881 2015-11-12 Tom de Vries <tom@codesourcery.com>
1883 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
1885 2015-11-12 Tom de Vries <tom@codesourcery.com>
1887 * gen-pass-instances.awk (handle_line): Restructure using early-out.
1889 2015-11-12 Tom de Vries <tom@codesourcery.com>
1891 * gen-pass-instances.awk (handle_line): Unify semicolon use.
1893 2015-11-12 Tom de Vries <tom@codesourcery.com>
1895 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
1897 2015-11-12 Tom de Vries <tom@codesourcery.com>
1899 * gen-pass-instances.awk: Add emacs indent setting.
1901 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1903 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
1905 Move Convert A/(B/C) to (A/B)*C to match.pd.
1906 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
1907 Move Optimize (X & (-A)) / A where A is a power of 2, to
1908 X >> log2(A) to match.pd.
1910 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
1911 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
1912 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
1914 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
1916 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
1918 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
1920 (neon_vst2_lane<mode>): Likewise.
1921 (neon_vld3_lane<mode>): Likewise.
1922 (neon_vst3_lane<mode>): Likewise.
1923 (neon_vld4_lane<mode>): Likewise.
1924 (neon_vst4_lane<mode>): Likewise.
1926 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
1927 Sebastian Pop <s.pop@samsung.com>
1929 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
1930 New member codegen_error
1931 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
1933 (translate_isl_ast_node_user): Early return in case of error.
1934 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
1935 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
1936 (add_parameters_to_ivs_params): Remove macro.
1937 (graphite_regenerate_ast_isl): Add if_region pointer to region.
1938 * graphite-poly.c (new_poly_dr): Remove macro.
1940 (new_gimple_poly_bb): Same.
1941 (free_gimple_poly_bb): Same.
1942 (print_scop_params): Same.
1943 * graphite-poly.h (struct poly_dr): Same.
1944 (struct poly_bb): Add new_bb.
1945 (gbb_from_bb): Remove dead code.
1946 (pbb_from_bb): Same.
1947 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
1948 (parameter_index_in_region): Same.
1949 (find_scop_parameters): Same.
1950 (build_cross_bb_scalars_def): New.
1951 (build_cross_bb_scalars_use): New.
1952 (graphite_find_cross_bb_scalar_vars): New
1953 (try_generate_gimple_bb): Reads and Writes.
1954 (build_alias_set): Move.
1955 (gather_bbs::before_dom_children): Gather bbs visited.
1956 (build_scops): call build_alias_set.
1957 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
1958 (remove_simple_copy_phi): Delete.
1959 (remove_invariant_phi): Delete.
1960 (simple_copy_phi_p): Delete.
1961 (reduction_phi_p): Delete.
1962 (isl_id_for_dr): Remove unused param.
1963 (parameter_index_in_region_1): Remove macro usage.
1964 (set_scop_parameter_dim): Same.
1965 (add_param_constraints): Same.
1966 (add_conditions_to_constraints): Same
1967 (build_scop_iteration_domain): Same.
1968 (pdr_add_alias_set): Comment.
1969 (add_scalar_version_numbers): New.
1970 (build_poly_dr): ISL id.
1971 (build_scop_drs): Move.
1972 (build_poly_sr_1): Same.
1973 (insert_stmts): Remove.
1974 (build_poly_sr): New.
1975 (new_pbb_from_pbb): Delete.
1976 (insert_out_of_ssa_copy_on_edge): Delete.
1977 (create_zero_dim_array): Delete.
1978 (scalar_close_phi_node_p): Delete.
1979 (propagate_expr_outside_region): Delete.
1980 (rewrite_close_phi_out_of_ssa): Delete.
1981 (rewrite_phi_out_of_ssa): Delete.
1982 (rewrite_degenerate_phi): Delete.
1983 (rewrite_reductions_out_of_ssa): Delete.
1984 (rewrite_cross_bb_scalar_dependence): Delete.
1985 (handle_scalar_deps_crossing_scop_limits):
1986 (rewrite_cross_bb_scalar_deps): Delete.
1987 (build_poly_scop): Remove calls to out-of-ssa functions.
1988 * graphite.c (graphite_transform_loops): Early return in case of
1990 * sese.c (debug_rename_map_1): Delete.
1991 (debug_rename_map): Delete.
1992 (sese_record_loop): Remove macro.
1993 (build_sese_loop_nests): Same.
1994 (new_sese_info): Same.
1995 (free_sese_info): Same.
1996 (sese_insert_phis_for_liveouts):
1997 (is_loop_closed_ssa_use): New.
1998 (number_of_phi_nodes): New.
1999 (bb_contains_loop_close_phi_nodes): New.
2000 (bb_contains_loop_phi_nodes): New.
2001 (phi_uses_name): New.
2003 (get_rename): Add old_bb and loop_phi for more precise matching of
2005 (set_rename): Pass region.
2006 (later_of_the_two): New.
2007 (gsi_insert_earliest): New.
2008 (collect_all_ssa_names): New.
2009 (substitute_ssa_name): New.
2010 (rename_all_uses): New.
2011 (get_rename_from_scev): New.
2012 (rename_uses): Pass old_bb for more precise matching of exprs.
2013 (get_def_bb_for_const): New.
2014 (get_new_name): New.
2017 (copy_loop_phi_args): New.
2018 (copy_loop_phi_nodes): New.
2019 (get_loop_init_value): New.
2020 (find_init_value): New.
2021 (find_init_value_close_phi): New.
2022 (copy_loop_close_phi_args): New.
2023 (copy_loop_close_phi_nodes): New.
2024 (add_phi_arg_for_new_expr): New.
2025 (copy_cond_phi_args): New.
2026 (copy_cond_phi_nodes): New.
2027 (copy_phi_nodes): New.
2028 (should_copy_to_new_region): New.
2029 (set_rename_for_each_def): New.
2030 (graphite_copy_stmts_from_block): Early return in case of error.
2031 (copy_bb_and_scalar_dependences): Same.
2032 * sese.h (vec_find): New.
2033 (SESE_PARAMS): Delete.
2034 (SESE_LOOPS): Delete.
2035 (SESE_LOOP_NEST): Delete.
2036 (sese_contains_loop): Remove macro usage.
2037 (sese_nb_params): Same.
2038 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
2040 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
2042 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
2043 isl_union_map_add_map on every pbb->schedule.
2045 2015-11-11 Tom de Vries <tom@codesourcery.com>
2047 * tree-parloops.c (create_parallel_loop): Return void.
2049 2015-11-11 Tom de Vries <tom@codesourcery.com>
2051 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
2052 block only when needed.
2054 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
2056 * config/alpha/alpha-protos.h (print_operand): Remove.
2057 (print_operand_address): Remove.
2058 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
2059 (PRINT_OPERAND_ADDRESS): Remove.
2060 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
2061 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
2062 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
2063 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
2064 (print_operand_address): Rename to...
2065 (alpha_print_operand_address): ...this and make static.
2066 (print_operand): Rename to...
2067 (alpha_print_operand): ...this and make static.
2068 (alpha_print_operand_punct_valid_p): New static function.
2070 2015-11-11 Richard Biener <rguenther@suse.de>
2072 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
2074 (vect_analyze_data_refs_alignment): Make loop vect specific.
2075 (vect_verify_datarefs_alignment): Likewise.
2076 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
2077 Add missing continue.
2078 (vect_compute_data_ref_alignment): Export.
2079 (vect_compute_data_refs_alignment): Merge into...
2080 (vect_analyze_data_refs_alignment): ... this.
2081 (verify_data_ref_alignment): Split out from ...
2082 (vect_verify_datarefs_alignment): ... here.
2083 (vect_slp_analyze_and_verify_node_alignment): New function.
2084 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
2085 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
2086 misplaced checks on alignment.
2087 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
2088 alignment analysis after SLP discovery and do it per instance.
2089 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
2090 bother to re-try using different vector sizes.
2092 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
2093 Cesar Philippidis <cesar@codesourcery.com>
2095 * gimplify.c (enum omp_region_type): Add ORT_ACC,
2096 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
2097 (gimple_add_tmp_var): Add ORT_ACC checks.
2098 (gimplify_var_or_parm_decl): Likewise.
2099 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
2100 (omp_add_variable): Look in outer contexts for openacc and allow
2101 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
2102 (omp_notice_variable, omp_is_private, omp_check_private): Add
2104 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
2105 Permit private openacc reductions.
2106 (gimplify_oacc_cache): Specify ORT_ACC.
2107 (gimplify_omp_workshare): Adjust OpenACC region types.
2108 (gimplify_omp_target_update): Likewise.
2109 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
2110 (lower-rec_input_clauses): Don't handle openacc firstprivate
2112 (lower_omp_target): Emit initializers for openacc firstprivate vars.
2114 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
2117 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
2118 frame pointer for stack checking if non-call exceptions aren't used.
2119 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
2121 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
2123 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
2126 2015-11-11 Martin Liska <mliska@suse.cz>
2127 Richard Biener <rguenther@suse.de>
2129 PR rtl-optimization/68287
2130 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
2133 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
2135 * config/mips/mips.c (mips_breakable_sequence_p): New function.
2136 (mips_break_sequence): New function.
2137 (mips_reorg_process_insns): Use them. Use compact branches in selected
2140 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
2142 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
2144 2015-11-11 Jiong Wang <jiong.wang@arm.com>
2145 Jim Wilson <wilson@gcc.gnu.org>
2148 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
2149 be true and eliminable registers mentioned.
2151 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
2153 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
2155 * config/arc/arc-opts.h: Add ARCv2 CPUs.
2156 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
2157 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
2158 situation, and store instructions with large offsets.
2159 (arc_secondary_reload_conv): New function.
2160 (arc_init): Add ARCv2 options.
2161 (arc_conditional_register_usage): Select the proper register usage
2162 for ARCv2 processors.
2163 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
2165 (arc_compute_function_type): Likewise.
2166 (arc_print_operand): Handle new ARCv2 punctuation characters.
2167 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
2168 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
2170 (arc_reorg, arc_hazard): Use it.
2171 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
2172 (ASM_SPEC): Add ARCv2 options.
2173 (TARGET_NORM): ARC HS has norm instructions by default.
2174 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
2175 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
2176 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
2177 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
2179 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
2180 (TARGET_LP_WR_INTERLOCK): Likewise.
2182 (commutative_binary_mult_comparison_result_used, movsicc_insn)
2183 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
2184 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
2185 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
2187 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
2188 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
2189 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
2190 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
2191 (extzvsi): New pattern.
2192 * config/arc/arc.opt: New ARCv2 options.
2193 * config/arc/arcEM.md: New file.
2194 * config/arc/arcHS.md: Likewise.
2195 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
2197 (Cm2): A signed 9-bit integer constant constraint.
2198 (C62): An unsigned 6-bit integer constant constraint.
2199 (C16): A signed 16-bit integer constant constraint.
2200 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
2201 (short_const_int_operand): New predicate.
2202 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
2203 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
2204 -mcode-density and -mdiv-rem.
2206 2015-11-11 Julia Koval <julia.koval@intel.com>
2208 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
2210 2015-11-11 Julia Koval <julia.koval@intel.com>
2212 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
2214 2015-11-11 Martin Liska <mliska@suse.cz>
2216 * gimple-ssa-strength-reduction.c (create_phi_basis):
2218 * passes.c (release_dump_file_name): New function.
2219 (pass_init_dump_file): Used from this function.
2220 (pass_fini_dump_file): Likewise.
2221 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
2222 * var-tracking.c (vt_initialize): Use pool_allocator.
2224 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
2225 Jiong Wang <jiong.wang@arm.com>
2227 PR tree-optimization/68234
2228 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
2229 node which estimiated to be VR_VARYING initially.
2231 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
2233 * regname.c (scan_rtx_reg): Check the matching number of consecutive
2234 registers when tying chains.
2235 (build_def_use): Move terminated_this_insn earlier in the function.
2237 2015-11-10 Mike Frysinger <vapier@gentoo.org>
2239 * configure.ac: Use = with test and not ==.
2240 * configure: Regenerated.
2242 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
2244 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
2245 machine asserts. Update defines for 64 bit.
2247 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
2250 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
2252 (neon_vst1_lane<mode>): Likewise.
2253 (neon_vld2_lane<mode>): Likewise.
2254 (neon_vst2_lane<mode>): Likewise.
2255 (neon_vld3_lane<mode>): Likewise.
2256 (neon_vst3_lane<mode>): Likewise.
2257 (neon_vld4_lane<mode>): Likewise.
2258 (neon_vst4_lane<mode>): Likewise.
2260 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
2263 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
2264 qualifier_struct_load_store_lane_index.
2265 (arm_storestruct_lane_qualifiers) Likewise.
2266 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
2268 (neon_vst1_lane<mode>) Likewise.
2269 (neon_vld2_lane<mode>) Likewise.
2270 (neon_vst2_lane<mode>) Likewise.
2271 (neon_vld3_lane<mode>) Likewise.
2272 (neon_vst3_lane<mode>) Likewise.
2273 (neon_vld4_lane<mode>) Likewise.
2274 (neon_vst4_lane<mode>) Likewise.
2276 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
2279 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
2280 qualifier_struct_load_store_lane_index.
2281 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2282 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
2283 argument qualifiers.
2284 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
2285 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
2287 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
2289 * config/nvptx/nvptx.opt (moptimize): New flag.
2290 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
2292 (nvptx_optimize_inner): New.
2293 (nvptx_process_pars): Call it when optimizing.
2294 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
2296 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2298 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
2299 Remove redundant code.
2301 2015-11-10 Jeff Law <law@redhat.com>
2303 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
2304 call to output_address.
2305 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
2306 Add unnamed machine_mode argument.
2308 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2310 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
2313 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
2315 * config/i386/i386.md (*movabs<mode>_1): Add explicit
2316 size directives for -masm=intel.
2317 (*movabs<mode>_2): Ditto.
2319 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
2321 * config/i386/i386.c (ix86_print_operand): Remove dead code that
2322 tried to avoid (%rip) for call operands.
2324 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
2326 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
2327 argument. Do not use RIP relative addressing when no_rip is set.
2328 (ix86_print_operand): Update call to ix86_print_operand_address_as.
2329 (ix86_print_operand_address): Ditto.
2330 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
2331 absolute movabs operand 0. Add square braces for -masm=intel.
2332 (*movabs<mode>_2): Ditto for operand 1.
2334 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2336 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
2337 combine_vcvtf2i pattern.
2339 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2341 * config/arm/arm.c (neon_valid_immediate): Remove integer
2342 CONST_DOUBLE handling. It should never occur.
2344 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
2346 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
2347 (ATOMIC_LDOP): Likewise.
2348 (atomic_ldop): Likewise.
2349 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
2350 (ATOMIC_LDOP): Likewise.
2351 (atomic_ldop): Likewise.
2353 2015-11-10 Martin Liska <mliska@suse.cz>
2355 * alloc-pool.h (allocate_raw): New function.
2356 (operator new (size_t, object_allocator<T> &a)): Use the
2357 function instead of object_allocator::allocate).
2359 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2361 * config/i386/sse.md (HALFMASKMODE): New attribute.
2362 (DOUBLEMASKMODE): New attribute.
2363 (vec_pack_trunc_qi): New.
2364 (vec_pack_trunc_<mode>): New.
2365 (vec_unpacks_lo_hi): New.
2366 (vec_unpacks_lo_si): New.
2367 (vec_unpacks_lo_di): New.
2368 (vec_unpacks_hi_hi): New.
2369 (vec_unpacks_hi_<mode>): New.
2371 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2373 * optabs.c (expand_binop_directly): Allow scalar mode for
2374 vec_pack_trunc_optab.
2375 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2376 boolean vector producers from pattern sequence when computing VF.
2377 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
2378 vect_recog_mask_conversion_pattern.
2379 (search_type_for_mask): Choose the smallest
2380 type if different size types are mixed.
2381 (build_mask_conversion): New.
2382 (vect_recog_mask_conversion_pattern): New.
2383 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
2384 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
2386 (vectorizable_conversion): Support boolean vectors.
2387 (free_stmt_vec_info): Allow patterns for statements with no lhs.
2388 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
2390 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2392 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
2393 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
2394 Cast mask to FP mode if required.
2395 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
2396 (vcond_mask_<mode><avx512fmaskmodelower>): New.
2397 (vcond_mask_<mode><sseintvecmodelower>): New.
2398 (vcond_mask_<mode><sseintvecmodelower>): New.
2399 (vcond_mask_v2div2di): New.
2400 (vcond_mask_<mode><sseintvecmodelower>): New.
2401 (vcond_mask_<mode><sseintvecmodelower>): New.
2403 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2405 * optabs-query.h (get_vcond_mask_icode): New.
2406 * optabs-tree.c (expand_vec_cond_expr_p): Use
2407 get_vcond_mask_icode for VEC_COND_EXPR with mask.
2408 * optabs.c (expand_vec_cond_mask_expr): New.
2409 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
2410 * optabs.def (vcond_mask_optab): New.
2411 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
2412 generate redundant comparison for COND_EXPR.
2413 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
2415 (vectorizable_condition): Likewise.
2416 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
2417 cond_exp with no embedded comparison.
2418 (vect_build_slp_tree_1): Likewise.
2420 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2422 * config/i386/sse.md (maskload<mode>): Rename to ...
2423 (maskload<mode><sseintvecmodelower>): ... this.
2424 (maskstore<mode>): Rename to ...
2425 (maskstore<mode><sseintvecmodelower>): ... this.
2426 (maskload<mode><avx512fmaskmodelower>): New.
2427 (maskstore<mode><avx512fmaskmodelower>): New.
2429 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2431 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
2432 (expand_MASK_STORE): Adjust to maskstore optab changes.
2433 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
2434 Adjust to maskload, maskstore optab changes.
2435 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
2436 * optabs.def (maskload_optab): Transform into convert optab.
2437 (maskstore_optab): Likewise.
2438 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
2439 can_vec_mask_load_store_p signature change.
2440 (predicate_mem_writes): Use boolean mask.
2441 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
2442 can_vec_mask_load_store_p signature change. Allow invariant masks.
2443 (vectorizable_operation): Ignore type precision for boolean vectors.
2445 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2447 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
2448 (const_vector_mask_from_tree): New.
2449 (const_vector_from_tree): Use const_vector_mask_from_tree
2450 for boolean vectors.
2451 * optabs-query.h (get_vec_cmp_icode): New.
2452 * optabs-tree.c (expand_vec_cmp_expr_p): New.
2453 * optabs-tree.h (expand_vec_cmp_expr_p): New.
2454 * optabs.c (vector_compare_rtx): Add OPNO arg.
2455 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
2456 (expand_vec_cmp_expr): New.
2457 * optabs.def (vec_cmp_optab): New.
2458 (vec_cmpu_optab): New.
2459 * optabs.h (expand_vec_cmp_expr): New.
2460 * tree-vect-generic.c (expand_vector_comparison): Add vector
2461 comparison optabs check.
2462 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
2463 operations for VF. Add mask type computation.
2464 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
2465 (vectorizable_comparison): New.
2466 (vect_analyze_stmt): Add vectorizable_comparison.
2467 (vect_transform_stmt): Likewise.
2468 (vect_init_vector): Support boolean vector invariants.
2469 (vect_get_vec_def_for_operand): Add VECTYPE arg.
2470 (vectorizable_condition): Directly provide vectype for invariants
2472 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
2473 (enum vect_var_kind): Add vect_mask_var.
2474 (enum stmt_vec_info_type): Add comparison_vec_info_type.
2475 (vectorizable_comparison): New.
2476 (vect_get_vec_def_for_operand): Add VECTYPE arg.
2477 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
2478 (vect_create_destination_var): Likewise.
2479 * tree-vect-patterns.c (check_bool_pattern): Check fails
2480 if we can vectorize comparison directly.
2481 (search_type_for_mask): New.
2482 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
2483 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
2484 comparison statements.
2485 (vect_get_constant_vectors): Support boolean vector constants.
2486 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
2487 (ix86_expand_int_vec_cmp): New.
2488 (ix86_expand_fp_vec_cmp): New.
2489 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
2490 op_true and op_false.
2491 (ix86_int_cmp_code_to_pcmp_immediate): New.
2492 (ix86_fp_cmp_code_to_pcmp_immediate): New.
2493 (ix86_cmp_code_to_pcmp_immediate): New.
2494 (ix86_expand_mask_vec_cmp): New.
2495 (ix86_expand_fp_vec_cmp): New.
2496 (ix86_expand_int_sse_cmp): New.
2497 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
2498 (ix86_expand_int_vec_cmp): New.
2499 (ix86_get_mask_mode): New.
2500 (TARGET_VECTORIZE_GET_MASK_MODE): New.
2501 * config/i386/sse.md (avx512fmaskmodelower): New.
2502 (vec_cmp<mode><avx512fmaskmodelower>): New.
2503 (vec_cmp<mode><sseintvecmodelower>): New.
2504 (vec_cmpv2div2di): New.
2505 (vec_cmpu<mode><avx512fmaskmodelower>): New.
2506 (vec_cmpu<mode><sseintvecmodelower>): New.
2507 (vec_cmpuv2div2di): New.
2509 2015-11-10 Richard Biener <rguenther@suse.de>
2511 PR tree-optimization/68240
2512 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
2514 (visit_phi): For PHIs with just a single executable edge
2515 take its value directly.
2516 (expressions_equal_p): Handle VN_TOP properly.
2518 2015-11-10 Richard Biener <rguenther@suse.de>
2520 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
2521 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
2524 2015-11-10 Richard Biener <rguenther@suse.de>
2526 PR tree-optimization/56118
2527 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
2528 cost favor vectorized version.
2530 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2532 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
2533 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
2534 (neg_not_op): New code attribute.
2536 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2538 * ifcvt.c (noce_try_inverse_constants): New function.
2539 (noce_process_if_block): Call it.
2540 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
2541 * optabs.def (negcc_optab, notcc_optab): Declare.
2542 * optabs.c (emit_conditional_neg_or_complement): New function.
2543 * doc/tm.texi (Standard Names): Document negcc, notcc names.
2545 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2547 PR rtl-optimization/68236
2548 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
2549 if insn_queue doesn't exist.
2550 (haifa_sched_finish): Reset insn_queue to NULL.
2552 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
2554 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
2555 (build_def_use): Initialize terminated_this_insn.
2556 (find_best_rename_reg): Pick and check register from the tied chain.
2557 (regrename_do_replace): Mark head as renamed.
2558 (struct du_head *terminated_this_insn). New static variable.
2559 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
2560 * regrename.h (struct du_head): Add tied_chain, renamed members.
2562 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2565 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
2568 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2571 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
2572 not promote the mode for aggregate types.
2574 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
2576 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
2577 * omp-low.c (build_oacc_routine_dims): New.
2579 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2581 * config/rs6000/constraints.md (wF constraint): New constraints
2582 for power9/toc fusion.
2583 (wG constraint): Likewise.
2585 * config/rs6000/predicates.md (u6bit_cint_operand): New
2586 predicate, recognize 0..63.
2587 (upper16_cint_operand): New predicate for power9 and toc fusion.
2588 (fpr_reg_operand): Likewise.
2589 (toc_fusion_or_p9_reg_operand): Likewise.
2590 (toc_fusion_mem_raw): Likewise.
2591 (toc_fusion_mem_wrapped): Likewise.
2592 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
2594 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
2596 (fusion_addis_mem_combo_load): Add support for power9 fusion of
2597 floating point loads, floating point stores, and gpr stores.
2598 (fusion_addis_mem_combo_store): Likewise.
2599 (fusion_offsettable_mem_operand): Likewise.
2601 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
2602 (emit_fusion_load_store): Likewise.
2603 (fusion_p9_p): Likewise.
2604 (expand_fusion_p9_load): Likewise.
2605 (expand_fusion_p9_store): Likewise.
2606 (emit_fusion_p9_load): Likewise.
2607 (emit_fusion_p9_store): Likewise.
2608 (fusion_wrap_memory_address): Likewise.
2610 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
2611 elements for power9 fusion.
2612 (rs6000_debug_print_mode): Rework debug information to print more
2613 information about fusion.
2614 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
2615 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
2616 offsettable memory address.
2617 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
2618 (emit_fusion_gpr_load): Move most of the code from
2619 emit_fusion_gpr_load into emit_fusion-addis that handles both
2620 power8 and power9 fusion.
2621 (emit_fusion_addis): Likewise.
2622 (emit_fusion_load_store): Likewise.
2623 (fusion_wrap_memory_address): Add support for TOC fusion.
2624 (fusion_split_address): Likewise.
2625 (fusion_p9_p): Add support for power9 fusion.
2626 (expand_fusion_p9_load): Likewise.
2627 (expand_fusion_p9_store): Likewise.
2628 (emit_fusion_p9_load): Likewise.
2629 (emit_fusion_p9_store): Likewise.
2631 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
2632 new instructions in ISA 3.0.
2633 (TARGET_CTZ): Likewise.
2634 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
2635 (TARGET_TOC_FUSION_FP): Likewise.
2637 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
2639 (UNSPEC_FUSION_ADDIS): Likewise.
2640 (QHSI mode iterator): New iterator for power9 fusion.
2641 (GPR_FUSION): Likewise.
2642 (FPR_FUSION): Likewise.
2643 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
2644 (umod<mode>3): Likewise.
2645 (divmod peephole): Likewise.
2646 (udivmod peephole): Likewise.
2647 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
2649 (ctz<mode>2_h): Likewise.
2650 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
2651 (ashdi3_extswsli_dot): Likewise.
2652 (ashdi3_extswsli_dot2): Likewise.
2653 (power9 fusion splitter): New power9/toc fusion support.
2654 (toc_fusionload_<mode>): Likewise.
2655 (toc_fusionload_di): Likewise.
2656 (fusion_gpr_load_<mode>): Update predicate function.
2657 (power9 fusion peephole2s): New power9/toc fusion support.
2658 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
2659 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
2660 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
2661 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
2662 (fusion_p9_<mode>_constant): Likewise.
2664 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
2666 * optabs.c (prepare_libcall_arg): New function.
2667 (expand_fixed_convert): Add call to prepare_libcall_arg.
2669 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
2671 * sched-int.h (dump_rgn_dependencies_dot): Declare
2672 * sched-rgn.c (dump_rgn_dependencies_dot): New function
2673 * print-rtl.h (print_insn): Add prototype
2675 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
2676 * common.opt (-fsched-verbose): Set default value to 1.
2677 * invoke.texi (-fsched-verbose): Update the option's description.
2679 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2681 * config/visium/visium.h (PRINT_OPERAND): Delete.
2682 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
2683 (PRINT_OPERAND_ADDRESS): Likewise.
2684 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
2686 (visium_print_operand_punct_valid_p): ...this. New function.
2687 (TARGET_PRINT_OPERAND): Define to...
2688 (print_operand): Rename to...
2689 (visium_print_operand): ...this.
2690 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
2691 (visium_output_address): Rename to...
2692 (visium_print_operand_address): ...this.
2693 (print_operand_address): Delete.
2695 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2698 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
2699 Check that the type of the first operand is an aggregate type.
2701 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
2703 * omp-low.c: Fix some OpenACC comment typos.
2704 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
2705 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
2706 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
2708 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
2710 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
2712 2015-11-09 Jeff Law <law@redhat.com>
2714 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
2715 being in gimple/ssa form. Remove redundant check for SSA_NAME.
2718 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2719 Peter Bergner <bergner@vnet.ibm.com>
2721 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
2723 (-mpower9-vector): Likewise.
2724 (-mpower9-dform): Likewise.
2725 (-mpower9-minmax): Likewise.
2726 (-mtoc-fusion): Likewise.
2727 (-mmodulo): Likewise.
2728 (-mfloat128-hardware): Likewise.
2730 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
2731 mask for ISA 3.0 (power9).
2732 (POWERPC_MASKS): Add new ISA 3.0 switches.
2733 (power9 cpu): Add power9 cpu.
2735 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
2736 (ASM_CPU_SPEC): Likewise.
2737 (EXTRA_SPECS): Likewise.
2739 * config/rs6000/rs6000-opts.h (enum processor_type): Add
2742 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
2743 (rs6000_debug_reg_global): Add support for power9 fusion.
2744 (rs6000_setup_reg_addr_masks): Cache mode size.
2745 (rs6000_option_override_internal): Until real power9 tuning is
2746 added, use -mtune=power8 for -mcpu=power9.
2747 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
2748 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
2749 of Altivec registers.
2750 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
2751 (rs6000_loop_align): Add support for power9 cpu.
2752 (rs6000_file_start): Likewise.
2753 (rs6000_adjust_cost): Likewise.
2754 (rs6000_issue_rate): Likewise.
2755 (insn_must_be_first_in_group): Likewise.
2756 (insn_must_be_last_in_group): Likewise.
2757 (force_new_group): Likewise.
2758 (rs6000_register_move_cost): Likewise.
2759 (rs6000_opt_masks): Likewise.
2761 * config/rs6000/rs6000.md (cpu attribute): Add power9.
2762 * config/rs6000/rs6000-tables.opt: Regenerate.
2764 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2765 _ARCH_PWR9 if power9 support is available.
2767 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
2768 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
2770 * configure.ac: Determine if the assembler supports the ISA 3.0
2772 * config.in (HAVE_AS_POWER9): Likewise.
2773 * configure: Regenerate.
2775 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
2778 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2780 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
2781 Remove integer CONST_DOUBLE handling. It should never occur.
2783 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2786 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
2787 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
2788 Delete VOIDmode case. Assert that mode is not VOIDmode.
2789 * config/aarch64/predicates.md (const0_operand): Remove const_double
2792 2015-11-09 Martin Liska <mliska@suse.cz>
2794 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
2795 body_info release function.
2796 * ipa-prop.c (ipa_release_body_info): New function.
2797 (ipa_analyze_node): Call the function.
2798 (ipa_node_params::~ipa_node_params): Release known_csts.
2799 * ipa-prop.h (ipa_release_body_info): Declare.
2801 2015-11-09 Martin Liska <mliska@suse.cz>
2803 * gcc.c (record_temp_file): Release name string.
2804 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
2805 * lra-lives.c (free_live_range_list): Utilize
2806 lra_live_range_pool for allocation and deallocation.
2807 (create_live_range): Likewise.
2808 (copy_live_range): Likewise.
2809 (lra_merge_live_ranges): Likewise.
2810 (remove_some_program_points_and_update_live_ranges): Likewise.
2811 (lra_create_live_ranges_1): Release point_freq_vec that can
2812 be not freed from previous iteration of the function.
2813 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
2814 * tree-sra.c (sra_deinitialize): Release all vectors in
2816 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
2817 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
2818 Release edge_info for a removed edge.
2819 (thread_through_all_blocks): Free region vector.
2820 * tree-ssa.h (free_dom_edge_info): Declare function extern.
2822 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
2824 * optabs.c (expand_vec_cond_expr): Always get sign from type.
2825 * tree.c (wide_int_to_tree): Support negative values for boolean.
2826 (build_nonstandard_boolean_type): Use signed type for booleans.
2828 2015-11-09 Richard Biener <rguenther@suse.de>
2830 PR tree-optimization/68248
2831 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
2833 2015-11-09 Richard Biener <rguenther@suse.de>
2835 PR tree-optimization/56118
2836 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
2837 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
2838 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
2840 (vect_slp_analyze_data_ref_dependences): Instead of computing
2841 all dependences of the region DRs just analyze the code motions
2842 SLP vectorization will perform. Remove SLP instances that
2843 cannot have their store/load motions applied.
2844 (vect_analyze_data_refs): Allow DRs without a vectype
2845 in BB vectorization.
2847 2015-11-09 Julian Brown <julian@codesourcery.com>
2849 * final.c (output_asm_insn): Pass VOIDmode to output_address.
2850 (output_address): Add MODE argument. Pass to print_operand_address
2852 * targhooks.c (default_print_operand_address): Add MODE argument.
2853 * targhooks.h (default_print_operand_address): Update prototype.
2854 * output.h (output_address): Update prototype.
2855 * target.def (print_operand_address): Add MODE argument.
2856 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
2858 (print_operand): Pass access mode to output_address.
2859 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
2861 (mcore_print_operand): Update calls to mcore_print_operand_address.
2862 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
2864 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
2866 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
2868 (tilegx_print_operand): Don't set above global. Update calls to
2870 (tilegx_print_operand_address): Add MODE argument. Use instead of
2871 output_memory_reference_mode global.
2872 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
2873 (frv_print_operand): Pass mode to frv_print_operand_address calls.
2874 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
2876 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
2877 (cris_print_operand): Pass mode to output_address calls.
2878 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
2879 * config/aarch64/aarch64.h (aarch64_print_operand)
2880 (aarch64_print_operand_address): Remove prototypes.
2881 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
2883 (aarch64_print_operand): Make static. Update calls to output_address.
2884 (aarch64_print_operand_address): Add MODE argument. Use instead of
2885 aarch64_memory_reference_mode global.
2886 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
2888 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
2889 Delete macro definitions.
2890 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
2891 * config/xtensa/xtensa.c (print_operand): Pass mode in
2892 output_address calls.
2893 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
2895 (h83000_print_operand): Update calls to h8300_print_operand_address
2897 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
2898 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
2900 (tilepro_print_operand): Pass mode to output_address.
2901 (tilepro_print_operand_address): Add MODE argument. Use instead of
2902 output_memory_reference_mode.
2903 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
2904 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
2905 to output_address calls.
2906 (nvptx_print_operand_address): Add MODE argument.
2907 * config/alpha/alpha.c (print_operand): Pass mode argument in
2908 output_address calls.
2909 * config/m68k/m68k.c (print_operand): Pass mode argument in
2910 output_address call.
2911 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
2912 (avr_print_operand): Update calls to avr_print_operand_address.
2913 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
2914 argument. Update calls to output_address.
2915 (sparc_print_operand): Pass mode to output_address.
2916 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
2918 (iq2000_print_operand): Pass mode in output_address calls.
2919 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
2921 (xstormy16_print_operand): Pass mode to
2922 xstormy16_print_operand_address calls.
2923 * config/mips/mips.c (mips_print_operand): Update calls to
2925 (mips_print_operand_address): Add MODE argument.
2926 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
2928 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
2929 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
2931 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
2932 (rx_print_operand): Update calls to output_address,
2933 rx_print_operand_address.
2934 * config/nds32/nds32.c (nds32_print_operand): Update calls to
2936 (nds32_print_operand_address): Add MODE argument.
2937 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
2938 output_address calls.
2939 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
2940 output_address call.
2941 (c6x_print_address_operand): Update calls to output_address.
2942 (c6x_print_operand_address): Pass mode to above.
2943 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
2944 (v850_print_operand): Pass mode to v850_print_operand_address,
2946 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
2947 (mmix_print_operand): Pass mode in output_address calls.
2948 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
2949 (sh_print_operand): Pass mem mode to output_address,
2950 sh_print_operand_address.
2951 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
2952 (cr16_print_operand): Pass mode to output_address,
2953 cr16_print_operand_address.
2954 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
2956 * config/microblaze/microblaze.c (print_operand): Pass mode to
2958 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
2960 (nios2_print_operand_address): Add MODE argument. Update call to
2961 nios2_print_operand_address.
2962 * config/s390/s390.c (print_operand): Pass mode to output_address.
2963 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
2964 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
2966 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
2967 Use instead of output_memory_reference_mode.
2968 (output_memory_reference_mode): Delete global.
2969 (arm_print_operand): Pass mem mode to output_address.
2970 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
2971 (m32r_print_operand): Pass mode to output_address.
2972 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
2974 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
2975 * config/i386/i386.c (ix86_print_operand): Pass mode to
2976 output_address calls.
2977 (ix86_print_operand_address): Add MODE argument.
2979 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2982 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
2983 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
2984 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
2985 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
2987 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2989 PR rtl-optimization/67749
2990 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
2991 case before emitting the two blocks. Instead modify the register
2992 in the corresponding final insn of the basic block.
2994 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2996 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
2999 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
3001 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
3002 HAVE_INITFINI_ARRAY_SUPPORT.
3003 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
3005 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
3006 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
3007 Don't check HAVE_AS_SPARC_NOBITS.
3008 Heed SECTION_NOTYPE.
3010 * configure: Regenerate.
3011 * config.in: Regenerate.
3013 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3016 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
3018 2015-11-09 Richard Henderson <rth@redhat.com>
3020 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
3021 __SEG_GS, __SEG_TLS.
3022 (ix86_register_pragmas): Register address spaces __seg_fs,
3023 __seg_gs, __seg_tls.
3024 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
3025 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
3026 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
3027 * config/i386/i386.c (ix86_decompose_address): Likewise.
3028 (ix86_legitimate_address_p): Likewise.
3029 (memory_address_length): Likewise. Check mem address space too.
3030 (ix86_print_operand): Use ix86_print_operand_address_as.
3031 (ix86_print_operand_address_as): Rename from
3032 ix86_print_operand_address, add new addr_space_t parameter.
3033 Validate that either the parameter or the ix86_address segment
3034 is default address space. Handle ADDR_SPACE_SEG_TLS.
3035 (ix86_print_operand_address): New.
3036 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
3037 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
3038 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
3039 (ix86_addr_space_zero_address_valid): New.
3040 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3041 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
3042 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
3043 * config/i386/predicates.md (address_no_seg_operand): Likewise.
3044 (vsib_address_operand): Likewise.
3045 (address_mpx_no_base_operand): Likewise.
3046 (address_mpx_no_index_operand): Likewise.
3047 * doc/extend.texi (x86 Named Address Spaces): New section.
3049 * config/i386/i386.c (ix86_check_no_addr_space): New.
3050 (decide_alg): Add have_as parameter.
3051 (alg_usable_p): Likewise; disable rep algorithms if set.
3052 (ix86_expand_set_or_movmem): Notice if either MEM has a
3053 non-default address space.
3054 (ix86_expand_strlen): Likewise.
3055 * config/i386/i386.md (strmov, strset): Likewise.
3056 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
3057 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
3058 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
3059 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
3060 *cmpstrnqi_1, *strlenqi_1): Likewise.
3062 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
3063 (*movabs<mode>_2): Likewise.
3065 * dwarf2out.c (modified_type_die): Pass the address space number
3066 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
3067 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
3068 * targhooks.c (default_addr_space_debug): New.
3069 * targhooks.h (default_addr_space_debug): Declare.
3070 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
3071 * doc/tm.texi: Rebuild.
3073 * gimple.c (check_loadstore): Return false when 0 is a valid address.
3074 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
3075 null when 0 is valid in the source address space.
3076 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3077 * targhooks.c (default_addr_space_zero_address_valid): New.
3078 * targhooks.h (default_addr_space_zero_address_valid): Declare.
3079 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
3080 * doc/tm.texi: Rebuild.
3082 * cselib.c (add_mem_for_addr): Compare address spaces when
3084 (cselib_lookup_mem): Likewise.
3085 * fold-const.c (operand_equal_p): Check address spaces of
3086 pointer types before checking integer constants.
3089 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
3090 the correct type for the base.
3092 2015-11-09 Jeff Law <law@redhat.com>
3094 * tree-into-ssa.c (names_to_release): No longer static.
3095 * tree-into-ssa.h (names_to_release): Declare.
3096 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
3097 (release_free_names_and_compact_live_names): New function extracted
3098 from pass_release_ssa_names::execute.
3099 (pass_release_ssa_names::execute): Use it.
3101 2015-11-09 Alan Modra <amodra@gmail.com>
3103 * gensupport.c (add_mnemonic_string): Make len param a size_t.
3104 (gen_mnemonic_setattr): Make "size" var a size_t. Use
3105 obstack_blank_fast to shrink obstack. Cast obstack_next_free
3108 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
3110 PR rtl-optimization/68182
3111 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
3112 branch with only one successor just like unconditional branches.
3114 2015-11-08 Jeff Law <law@redhat.com>
3116 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
3117 non-FSM path has no edges marked with EDGE_DFS_BACK.
3118 (ssa_redirect_edges): No longer call mark_loop_for_removal.
3119 (thread_single_edge, def_split_header_continue_p): Remove.
3120 (bb_ends_with_multiway_branch): Likewise.
3121 (thread_through_loop_header): Remove cases of threading from
3122 latch through the header. Simplify knowing we won't thread
3124 (thread_through_all_blocks): Simplify knowing that only the FSM
3125 threader needs to handle backedges.
3127 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
3129 * doc/extend.texi (type attributes): Document scalar_storage_order.
3130 (Structure-Packing Pragmas): Rename into...
3131 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
3132 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
3133 (Warnings): Document -Wno-scalar-storage-order.
3134 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
3135 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
3136 extract_bit_field and store_bit_field.
3137 (initialize_argument_information): Adjust call to store_expr.
3138 (load_register_parameters): Adjust call to extract_bit_field.
3139 * expmed.c (check_reverse_storage_order_support): New function.
3140 (check_reverse_float_storage_order_support): Likewise.
3141 (flip_storage_order): Likewise.
3142 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
3143 of the value if it is true. Pass REVERSE to recursive call after
3144 adjusting the target offset.
3145 Do not use extraction or movstrict instruction if REVERSE is true.
3146 Pass REVERSE to store_fixed_bit_field.
3147 (store_bit_field): Add REVERSE parameter and pass to it to above.
3148 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
3149 store_split_bit_field and store_fixed_bit_field_1.
3150 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
3151 order of the value if it is true and adjust the target offset.
3152 (store_split_bit_field): Add REVERSE parameter and pass it to
3153 store_fixed_bit_field. Adjust the target offset if it is true.
3154 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
3155 of the value if it is true. Pass REVERSE to recursive call after
3156 adjusting the target offset.
3157 Do not use extraction or subreg instruction if REVERSE is true.
3158 Pass REVERSE to extract_fixed_bit_field.
3159 (extract_bit_field): Add REVERSE parameter and pass to it to above.
3160 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
3161 extract_split_bit_field and extract_fixed_bit_field_1.
3162 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
3163 order of the value if it is true and adjust the target offset.
3164 (extract_split_bit_field): Add REVERSE parameter and pass it to
3165 extract_fixed_bit_field. Adjust the target offset if it is true.
3166 * expmed.h (flip_storage_order): Declare.
3167 (store_bit_field): Adjust prototype.
3168 (extract_bit_field): Likewise.
3169 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
3170 (emit_group_store): Adjust call to store_bit_field.
3171 (copy_blkmode_from_reg): Likewise.
3172 (copy_blkmode_to_reg): Likewise.
3173 (write_complex_part): Likewise.
3174 (read_complex_part): Likewise.
3175 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
3176 that it isn't true if the target is a register.
3177 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
3178 and flip the storage order of the value.
3179 <BIT_IOR_EXPR>: Flip the storage order of the value.
3180 (get_bit_range): Adjust call to get_inner_reference.
3181 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
3182 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
3183 with reverse storage order.
3184 (store_expr_with_bounds): Add REVERSE parameter and pass it to
3185 recursive calls and call to store_bit_field. Force the value into a
3186 register if it is true and then flip the storage order of the value.
3187 (store_expr): Add REVERSE parameter and pass it to above.
3188 (categorize_ctor_elements_1): Adjust call to
3189 initializer_constant_valid_p.
3190 (store_constructor_field): Add REVERSE parameter and pass it to
3191 recursive calls and call to store_field.
3192 (store_constructor): Add REVERSE parameter and pass it to calls to
3193 store_constructor_field and store_expr. Set it to true for an
3194 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
3195 (store_field): Add REVERSE parameter and pass it to recursive calls
3196 and calls to store_expr and store_bit_field. Temporarily flip the
3197 storage order of the value with record type and integral mode and
3198 adjust the shift if it is true.
3199 (get_inner_reference): Add PREVERSEP parameter and set it to true
3200 upon encoutering a reference with reverse storage order.
3201 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
3202 (expand_constructor): Adjust call to store_constructor.
3203 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
3204 of the union type to store_expr in the MEM case and assert that it
3205 isn't set in the REG case. Adjust call to store_field.
3206 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
3207 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
3208 get_inner_reference and extract_bit_field. Temporarily flip the
3209 storage order of the value with record type and integral mode and
3210 adjust the shift if it is true. Flip the storage order of the value
3211 at the end if it is true.
3212 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
3213 get_inner_reference. Do not fetch an inner reference if it is true.
3214 * expr.h (store_expr_with_bounds): Ajust prototype.
3215 (store_expr): Likewise.
3216 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
3217 REF_REVERSE_STORAGE_ORDER on the reference according to it.
3218 (optimize_bit_field_compare): Deal with reverse storage order.
3219 Adjust calls to get_inner_reference and make_bit_field_ref.
3220 (decode_field_reference): Add PREVERSEP parameter and adjust call to
3221 get_inner_reference.
3222 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
3223 to decode_field_reference and make_bit_field_ref.
3224 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
3225 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
3226 (fold_comparison): Adjust call to get_inner_reference.
3227 (split_address_to_core_and_offset): Adjust call to
3228 get_inner_reference.
3229 * gimple-expr.c (useless_type_conversion_p): Return false for array
3230 types with different TYPE_REVERSE_STORAGE_ORDER flag.
3231 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
3232 REF_REVERSE_STORAGE_ORDER flag.
3233 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
3234 * output.h (assemble_real): Adjust prototype.
3235 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
3236 * stor-layout.c (finish_record_layout): Propagate the
3237 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
3238 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
3239 (TYPE_SATURATING): Adjust.
3240 (REF_REVERSE_STORAGE_ORDER): Document.
3241 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
3242 set it to true upon encoutering a reference with reverse storage order.
3243 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
3244 * tree-inline.c (remap_gimple_op_r): Propagate the
3245 REF_REVERSE_STORAGE_ORDER flag.
3246 (copy_tree_body_r): Likewise.
3247 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
3249 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
3250 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
3251 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
3252 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
3253 REF_REVERSE_STORAGE_ORDER flag.
3254 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
3255 (gimple_canonical_types_compatible_p): Likewise.
3256 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
3257 (TYPE_SATURATING): Adjust.
3258 (REF_REVERSE_STORAGE_ORDER): New flag.
3259 (reverse_storage_order_for_component_p): New inline predicate.
3260 (storage_order_barrier_p): Likewise.
3261 (get_inner_reference): Adjust prototype.
3262 * varasm.c: Include expmed.h.
3263 (assemble_variable_contents): Adjust call to output_constant.
3264 (assemble_real): Add REVERSE parameter. Flip the storage
3265 order of the value if REVERSE is true.
3266 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
3267 (assemble_constant_contents): Adjust call to output_constant.
3268 (output_constant_pool_2): Adjust call to assemble_real.
3269 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
3270 TYPE_REVERSE_STORAGE_ORDER.
3271 (initializer_constant_valid_p): Add REVERSE parameter.
3272 (output_constant): Add REVERSE parameter.
3273 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
3274 <REAL_TYPE>: Adjust call to assemble_real.
3275 <COMPLEX_TYPE>: Pass it to recursive calls.
3276 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
3277 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
3278 (struct oc_local_state): Add REVERSE field.
3279 (output_constructor_array_range): Adjust calls to output_constant.
3280 (output_constructor_regular_field): Likewise.
3281 (output_constructor_bitfield): Adjust call to output_constructor.
3282 Flip the storage order of the value if REVERSE is true.
3283 (output_constructor): Add REVERSE parameter. Set it to true for an
3284 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
3285 output_constructor_bitfield.
3286 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
3287 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
3288 * builtins.c (get_object_alignment_2): Likewise.
3289 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
3290 and get_ref_base_and_extent.
3291 * dbxout.c (dbxout_expand_expr): Likewise.
3292 * dwarf2out.c (add_var_loc_to_decl): Likewise.
3293 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
3294 (loc_list_from_tree): Likewise.
3295 (fortran_common): Likewise.
3296 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
3297 get_ref_base_and_extent.
3298 (get_base_constructor): Likewise.
3299 (fold_const_aggregate_ref_1): Likewise.
3300 * gimple-laddress.c (pass_laddress::execute): Adjust call to
3301 get_inner_reference.
3302 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
3303 get_inner_reference and bail out on reverse storage order.
3304 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
3305 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
3306 build_ref_for_offset.
3307 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
3308 get_ref_base_and_extent.
3309 (ipa_polymorphic_call_context): Likewise.
3310 (extr_type_from_vtbl_ptr_store): Likewise.
3311 (check_stmt_for_type_change): Likewise.
3312 (get_dynamic_type): Likewise.
3313 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
3314 get_ref_base_and_extent.
3315 (compute_complex_assign_jump_func): Likewise.
3316 (get_ancestor_addr_info): Likewise.
3317 (compute_known_type_jump_func): Likewise.
3318 (determine_known_aggregate_parts): Likewise.
3319 (ipa_get_adjustment_candidate): Likewise.
3320 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
3321 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
3322 (build_ref_for_offset): Adjust prototype.
3323 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
3324 get_inner_reference.
3325 * tree-affine.c (tree_to_aff_combination): Adjust call to
3326 get_inner_reference.
3327 (get_inner_reference_aff): Likewise.
3328 * tree-data-ref.c (split_constant_offset_1): Likewise.
3329 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
3330 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
3331 get_inner_reference.
3332 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
3333 (dump_access): Print new fields.
3334 (create_access): Adjust call to get_ref_base_and_extent and set the
3335 REVERSE flag according to the result.
3336 (completely_scalarize_record): Set the REVERSE flag.
3337 (scalarize_elem): Add REVERSE parameter.
3338 (build_access_from_expr_1): Preserve storage order barriers.
3339 (build_accesses_from_assign): Likewise.
3340 (build_ref_for_offset): Add REVERSE parameter and set the
3341 REF_REVERSE_STORAGE_ORDER flag accordingly.
3342 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
3343 the REF_REVERSE_STORAGE_ORDER flag if there are components.
3344 (analyze_access_subtree): Likewise.
3345 (create_artificial_child_access): Set the REVERSE flag.
3346 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
3347 (turn_representatives_into_adjustments): Propagate REVERSE flag.
3348 (ipa_sra_check_caller): Adjust call to get_inner_reference.
3349 * tree-ssa-alias.c (ao_ref_base): Adjust call to
3350 get_ref_base_and_extent.
3351 (aliasing_component_refs_p): Likewise.
3352 (stmt_kills_ref_p_1): Likewise.
3353 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3354 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
3355 Return true if reverse storage order.
3356 <BIT_FIELD_REF>: Likewise.
3357 <COMPONENT_REF>: Likewise.
3358 <ARRAY_REF>: Likewise.
3359 <ARRAY_RANGE_REF>: Likewise.
3360 (split_address_cost): Likewise. Bail out if reverse storage order.
3361 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
3362 get_inner_reference. Bail out if reverse storage order.
3363 (bswap_replace): Adjust call to get_inner_reference.
3364 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
3365 the REF_REVERSE_STORAGE_ORDER flag.
3366 <BIT_FIELD_REF>: Likewise.
3367 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
3369 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
3370 to the REF_REVERSE_STORAGE_ORDER flag.
3371 <BIT_FIELD_REF>: Likewise.
3372 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
3373 (contains_storage_order_barrier_p): New predicate.
3374 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
3375 Punt on storage order barriers if necessary.
3376 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
3377 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
3378 call to get_ref_base_and_extent.
3379 (do_structure_copy): Likewise.
3380 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
3381 get_inner_reference.
3382 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
3383 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
3384 * ubsan.c (instrument_bool_enum_load): Likewise.
3385 (instrument_object_size): Likewise.
3386 * var-tracking.c (track_expr_p): Adjust call to
3387 get_ref_base_and_extent.
3388 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
3389 get_inner_reference.
3390 * config/s390/s390.c (s390_expand_atomic): Adjust call to
3392 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
3394 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
3396 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
3398 * config/sparc/sparc.opt (mfix-at697f): Add final period.
3400 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3402 PR rtl-optimization/67864
3403 * common/config/i386/i386-common.c (ix86_option_optimization_table)
3404 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
3407 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3409 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
3412 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3414 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
3415 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
3417 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3419 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
3420 * internal-fn.c: Don't undef it here.
3421 * tree-core.h: Likewise.
3423 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3425 * builtins.c (fold_builtin_nan): Delete.
3426 (fold_builtin_memcmp): Remove case where both arguments are constant.
3427 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
3428 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
3429 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
3430 * fold-const-call.c: Include fold-const.h.
3431 (host_size_t_cst_p): New function.
3432 (build_cmp_result, fold_const_builtin_nan): Likewise.
3433 (fold_const_call_1): New function, split out from...
3434 (fold_const_call): ...here (for all three interfaces). Handle
3435 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
3437 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3439 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
3440 (fold_builtin_1): Don't call them.
3441 * fold-const-call.c: Include tm.h.
3442 (fold_const_call_ss): New variant for integer-to-integer folds.
3443 (fold_const_call): Call it.
3445 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3447 * builtins.c (fold_builtin_classify): Move constant cases to...
3448 * fold-const-call.c (fold_const_call_ss): ...here.
3450 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3452 * builtins.h (c_getstr): Move to...
3453 * fold-const.h (c_getstr): ...here.
3454 * builtins.c (c_getstr): Move to...
3455 * fold-const.c (c_getstr): ...here.
3457 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3459 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
3460 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
3462 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3464 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
3465 the dominance info; free it if we can't.
3466 (pass_call_cdce::execute): Don't free the dominance info here.
3468 2015-11-06 Jeff Law <law@redhat.com>
3470 * tree-ssa-threadedge.c (dummy_simplify): Remove.
3471 (thread_around_empty_blocks): Remove backedge_seen_p argument.
3472 If we thread to a backedge, then return false. Update recursive
3473 call to eliminate backedge_seen_p argument.
3474 (thread_through_normal_block): Remove backedge_seen_p argument.
3475 Remove backedge_seen_p argument from calls to
3476 thread_around_empty_blocks. Remove checks on backedge_seen_p.
3477 If we thread to a backedge, then return 0.
3478 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
3479 pass it to thread_through_normal_block or thread_through_empty_blocks.
3480 For joiner handling, if we see a backedge, do not try normal
3483 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3485 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
3486 * graphite-poly.c (new_scop): Initialize original_schedule.
3487 (free_scop): Free original_schedule.
3488 * graphite-poly.h (struct scop): Add field original_schedule.
3489 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
3490 (build_poly_scop): Call build_scop_original_schedule.
3492 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3494 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
3495 (build_pbb_minimal_scattering_polyhedrons): New.
3496 (build_scop_scattering): Remove.
3497 (build_scop_minimal_scattering): New.
3498 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
3499 (build_poly_scop): Call build_scop_minimal_scattering.
3501 2015-11-06 Jeff Law <law@redhat.com>
3503 * cfg-flags.def (IGNORE): New edge flag.
3504 * tree-vrp.c (identify_jump_threads): Mark and clear edges
3505 scheduled for removal with EDGE_IGNORE around call into
3506 jump threader. Do no thread across edges with EDGE_IGNORE,
3507 but do allow threading across those with EDGE_DFS_BACK.
3509 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
3511 * doc/md.texi (multi-alternative constraints): Don't document
3512 alternatives inherently tied to reload for the user documentation.
3514 2015-11-06 Michael Collison <michael.collison@linaro.org>
3515 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3518 2015-08-01 Michael Collison <michael.collison@linaro.org
3519 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3521 * config/arm/arm.md (*arm_smin_cmp): New pattern.
3522 (*arm_umin_cmp): Likewise.
3524 2015-11-06 Jakub Jelinek <jakub@redhat.com>
3526 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
3527 * omp-low.c (check_omp_nesting_restrictions): Update for the
3528 various new OpenMP 4.5 nesting restrictions, clarified
3529 nesting glossary, closely nested region relationship clarified
3530 to mean explicit or implicit parallel regions (target/teams),
3531 use %</%> or %qs where appropriate.
3533 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
3534 Sebastian Pop <s.pop@samsung.com>
3536 * graphite-scop-detection.c (loop_is_valid_scop): Call
3537 optimize_loop_nest_for_speed_p.
3539 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
3540 Sebastian Pop <s.pop@samsung.com>
3542 * graphite-optimize-isl.c (optimize_isl): Call
3543 isl_options_set_schedule_maximize_band_depth.
3545 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
3546 Sebastian Pop <s.pop@samsung.com>
3548 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
3549 and exit edges should not be a part of irreducible loop.
3550 (scop_detection::can_represent_loop_1): Loops should not be
3552 (scop_detection::harmful_stmt_in_region): All the basic block
3553 should belong to reducible loops.
3555 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
3557 * config/aarch64/aarch64-simd-builtins.def: Update builtins
3558 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
3559 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
3560 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
3561 (aarch64_tbx4v8qi): Rename to...
3562 aarch64_tbx4<mode>): ... this.
3563 (aarch64_qtbl3<mode>): New pattern.
3564 (aarch64_qtbx3<mode>): New pattern.
3565 (aarch64_qtbl4<mode>): New pattern.
3566 (aarch64_qtbx4<mode>): New pattern.
3567 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
3568 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
3569 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
3570 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
3571 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
3572 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
3573 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
3574 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
3577 2015-11-06 Mike Stump <mikestump@comcast.net>
3580 * dwarf2out.c (get_full_len): Return a value based upon the actual
3581 precision needed for the value.
3582 (add_const_value_attribute): Use a maximal wide-int for
3583 CONST_WIDE_INTs, not VOIDmode.
3584 (output_die): Don't ever output NULL with printf.
3586 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
3587 BLKmode nor VOIDmode values.
3589 2015-11-06 David Malcolm <dmalcolm@redhat.com>
3591 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
3593 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
3594 * diagnostic-core.h (warning_at_rich_loc): New declaration.
3595 (error_at_rich_loc): New declaration.
3596 (permerror_at_rich_loc): New declaration.
3597 (inform_at_rich_loc): New declaration.
3598 * diagnostic-show-locus.c (adjust_line): Delete.
3599 (struct point_state): New struct.
3600 (class colorizer): New class.
3601 (class layout_point): New class.
3602 (class layout_range): New class.
3603 (struct line_bounds): New.
3604 (class layout): New class.
3605 (colorizer::colorizer): New ctor.
3606 (colorizer::~colorizer): New dtor.
3607 (layout::layout): New ctor.
3608 (layout::print_source_line): New method.
3609 (layout::print_annotation_line): New method.
3610 (layout::get_state_at_point): New method.
3611 (layout::get_x_bound_for_row): New method.
3612 (diagnostic_show_locus): Reimplement in terms of class layout.
3613 (diagnostic_print_caret_line): Delete.
3614 * diagnostic.c (diagnostic_initialize): Replace
3615 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
3616 (diagnostic_set_info_translated): Convert param from location_t
3617 to rich_location *. Eliminate calls to set_location on the
3618 message in favor of storing the rich_location ptr there.
3619 (diagnostic_set_info): Convert param from location_t to
3621 (diagnostic_build_prefix): Break out array into...
3622 (diagnostic_kind_color): New variable.
3623 (diagnostic_get_color_for_kind): New function.
3624 (diagnostic_report_diagnostic): Colorize the option_text
3625 using the color for the severity.
3626 (diagnostic_append_note): Update for change in signature of
3627 diagnostic_set_info.
3628 (diagnostic_append_note_at_rich_loc): New function.
3629 (emit_diagnostic): Update for change in signature of
3630 diagnostic_set_info.
3632 (inform_at_rich_loc): New function.
3633 (inform_n): Update for change in signature of diagnostic_set_info.
3634 (warning): Likewise.
3635 (warning_at): Likewise.
3636 (warning_at_rich_loc): New function.
3637 (warning_n): Update for change in signature of diagnostic_set_info.
3638 (pedwarn): Likewise.
3639 (permerror): Likewise.
3640 (permerror_at_rich_loc): New function.
3641 (error): Update for change in signature of diagnostic_set_info.
3642 (error_n): Likewise.
3643 (error_at): Likewise.
3644 (error_at_rich_loc): New function.
3645 (sorry): Update for change in signature of diagnostic_set_info.
3646 (fatal_error): Likewise.
3647 (internal_error): Likewise.
3648 (internal_error_no_backtrace): Likewise.
3649 (source_range::debug): New function.
3650 * diagnostic.h (struct diagnostic_info): Eliminate field
3651 "override_column". Add field "richloc".
3652 (struct diagnostic_context): Add field "colorize_source_p".
3653 (diagnostic_override_column): Delete.
3654 (diagnostic_set_info): Convert param from location_t to
3656 (diagnostic_set_info_translated): Likewise.
3657 (diagnostic_append_note_at_rich_loc): New function.
3658 (diagnostic_num_locations): New function.
3659 (diagnostic_expand_location): Get the location from the
3661 (diagnostic_print_caret_line): Delete.
3662 (diagnostic_get_color_for_kind): New declaration.
3663 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
3664 (error_cb): Update for change in signature of "error" callback.
3665 (fatal_at): Likewise.
3666 (warning_at): Likewise.
3667 * input.c (linemap_client_expand_location_to_spelling_point): New.
3668 * pretty-print.c (text_info::set_range): New method.
3669 (text_info::get_location): New method.
3670 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
3671 (struct text_info): Eliminate "locations" array in favor of
3672 "m_richloc", a rich_location *.
3673 (textinfo::set_location): Add a "caret_p" param, and reimplement
3674 in terms of a call to set_range.
3675 (textinfo::get_location): Eliminate inline implementation in favor of
3676 an out-of-line reimplementation.
3677 (textinfo::set_range): New method.
3678 * rtl-error.c (diagnostic_for_asm): Update for change in signature
3679 of diagnostic_set_info.
3680 * tree-diagnostic.c (default_tree_printer): Update for new
3681 "caret_p" param for textinfo::set_location.
3682 * tree-pretty-print.c (percent_K_format): Likewise.
3684 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3687 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3688 * config/aarch64/aarch64.c
3689 (aarch64_can_use_per_function_literal_pools_p): New.
3690 (aarch64_use_blocks_for_constant_p): Adjust declaration
3691 and use aarch64_can_use_function_literal_pools_p.
3692 (aarch64_select_rtx_section): Update.
3694 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3696 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
3697 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
3698 (arm_output_multireg_pop): Likewise.
3699 (output_move_double): Likewise.
3700 (output_move_quad): Likewise.
3701 (output_return_instruction): Likewise.
3702 (arm_print_operand): Remove support for %( and %. print modifiers.
3703 (arm_output_shift): Make unified asm.
3704 (arm_declare_function_name): Likewise.
3705 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
3706 (ASM_APP_OFF): Adjust.
3707 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
3708 (ASM_OUTPUT_REG_POP): Likewise.
3709 * config/arm/arm.md: Adjust uses of %., %(, %)
3710 * config/arm/sync.md: Likewise.
3711 * config/arm/thumb2.md: Likewise.
3712 * config/arm/ldmstm.md: Regenerate.
3713 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
3714 * doc/invoke.texi (masm-unified-syntax): Update documentation.
3716 2015-11-06 David Malcolm <dmalcolm@redhat.com>
3718 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
3720 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
3722 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
3723 add OEP_MATCH_SIDE_EFFECTS.
3724 * fold-const.c (operand_equal_p): Update documentation; handle
3725 OEP_MATCH_SIDE_EFFECTS.
3726 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
3727 OEP_MATCH_SIDE_EFFECTS.
3729 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
3730 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3732 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
3733 * config/aarch64/aarch64-protos.h: Declare.
3734 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
3736 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
3737 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
3738 code when applicable.
3739 * config/aarch64/aarch64.md: Added enum entries.
3740 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
3742 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
3746 * ipa-polymorphic-call.c
3747 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
3748 issue when offset is out of range.
3749 (contains_type_p): Fix out of range check, clear dynamic flag.
3751 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
3753 * config.gcc (e6500): Fix cpu_is_64bit typo.
3755 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
3757 * tree-sra.c (completely_scalarize): Properly handle negative array
3758 indices using offset_int.
3760 2015-11-06 Richard Biener <rguenther@suse.de>
3762 * alloc-pool.h (object_allocator::allocate): Default-initialize
3765 2015-11-06 Richard Biener <rguenther@suse.de>
3767 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
3768 * lra.c (init_reg_info): Truncate copy_vec instead of
3769 re-allocating a new one and leaking the old.
3770 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
3772 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
3773 * postreload-gcse.c (free_mem): Free modify_mem_list and
3774 canon_modify_mem_list.
3776 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
3778 PR tree-optimization/68145
3779 * tree-vect-stmts.c (vectorizable_operation): Fix
3780 determination for booleans.
3782 2015-11-06 Tom de Vries <tom@codesourcery.com>
3784 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
3785 cond_jump, instead of split after last nondebug insn before cond_jump.
3786 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
3789 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3792 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
3793 subregs from accumulator and make sure it's a register.
3795 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
3797 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
3799 (reduc_uplus_<mode>): Remove.
3800 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
3801 loongson_extract_lo_<mode>.
3802 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
3803 reduc_smax_<mode>, reduc_smax_<mode>, use vec
3804 loongson_extract_lo_<mode>.
3805 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
3807 2015-11-06 Richard Biener <rguenther@suse.de>
3809 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
3811 (vect_stmt_in_region_p): Declare.
3812 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
3813 (destroy_bb_vec_info): Likewise.
3814 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
3815 (vect_get_and_check_slp_defs): Likewise.
3816 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
3817 (vect_slp_bb): Likewise.
3818 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
3819 in terms of vect_stmt_in_region_p.
3820 (vect_pattern_recog): Iterate over the BB region.
3821 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
3822 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
3823 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
3824 * config/i386/i386.c: Include gimple-iterator.h.
3825 * config/aarch64/aarch64.c: Likewise.
3827 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
3829 PR rtl-optimization/67753
3830 PR rtl-optimization/64164
3831 * function.c (assign_parm_setup_block): Avoid allocating a
3832 stack slot if we don't have an ABI-reserved one. Emit the
3833 copy to target_reg in the conversion seq if the copy from
3834 entry_parm is in it too. Don't use the conversion seq to copy
3835 a PARALLEL to a REG or a CONCAT.
3837 2015-11-06 Richard Biener <rguenther@suse.de>
3839 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
3842 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
3843 Thomas Schwinge <thomas@codesourcery.com>
3844 James Norris <jnorris@codesourcery.com>
3847 * gimplify.c (gimplify_scan_omp_clauses): Add support for
3848 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
3849 (gimplify_adjust_omp_clauses): Likewise.
3850 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
3851 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
3852 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
3853 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
3854 (omp_clause_code_name): Likewise.
3855 (walk_tree_1): Handle OMP_CLAUSE_TILE.
3856 * tree.h (OMP_TILE_LIST): New macro.
3858 2015-11-05 Martin Sebor <msebor@redhat.com>
3861 * doc/invoke.texi (-Wplacement-new): Document new option.
3863 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
3865 PR tree-optimization/65963
3866 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
3867 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
3869 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
3871 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
3872 (noce_convert_multiple_sets): Likewise.
3873 (noce_process_if_block): Call them.
3875 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
3877 * gimple-fold.c: Include omp-low.h.
3878 (fold_internal_goacc_dim): New.
3879 (gimple_fold_call): Call it.
3881 2015-11-05 Jakub Jelinek <jakub@redhat.com>
3882 Ilya Verbin <ilya.verbin@intel.com>
3885 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
3886 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
3887 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
3888 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
3889 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
3890 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
3891 (struct cgraph_simd_clone_arg): Adjust comment.
3892 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
3893 to GOMP_target_ext. Add num_teams and thread_limit arguments.
3894 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
3895 to GOMP_target_data_ext.
3896 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
3897 to GOMP_target_update_ext.
3898 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
3899 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
3900 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
3901 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
3902 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
3903 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
3904 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
3905 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
3906 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
3907 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
3908 * tree-core.h (enum omp_clause_schedule_kind): Add
3909 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
3910 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
3911 OMP_CLAUSE_SCHEDULE_LAST value.
3912 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
3913 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
3914 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
3915 OMP_FOR_CHECK. Remove comment.
3916 * tree-pretty-print.c (dump_omp_clause): Handle
3917 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
3918 Simplify. Print schedule clause modifiers.
3919 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
3920 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
3922 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
3923 (omp_default_clause): Tweak for
3924 private/firstprivate/is_device_ptr variables on target
3925 construct and use_device_ptr on target data.
3926 (omp_check_private): Likewise.
3927 (omp_notice_variable): For references check whether what it refers
3928 to has mappable type, rather than the reference itself.
3929 (omp_is_private): Diagnose linear iteration variables on non-simd
3931 (omp_no_lastprivate): Return true only for Fortran.
3932 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
3933 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
3934 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
3935 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
3936 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
3937 lastprivate and linear when combined with distribute. Gimplify
3938 variable low-bound for array reduction. Look through
3939 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
3941 (gimplify_adjust_omp_clauses_1): For implicit references to
3942 variables with reference type and when not ref to scalar or
3943 ref to pointer, map what they refer to using tofrom and
3944 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
3945 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
3946 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
3947 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
3948 Diagnose the same var on both firstprivate and lastprivate on
3949 distribute construct.
3950 (gimplify_omp_for): Fix up handling of predetermined
3951 lastprivate or linear iter vars when combined with distribute.
3952 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
3954 (gimplify_omp_workshare): Call optimize_target_teams.
3955 * omp-low.c (struct omp_region): Add sched_modifiers field.
3956 (struct omp_for_data): Likewise.
3957 (omp_any_child_fn_dumped): New variable.
3958 (extract_omp_for_data): Fill in sched_modifiers, and mask out
3959 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
3961 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
3962 bits of OMP_CLAUSE_SCHED_KIND.
3963 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
3964 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
3965 for array section reductions.
3966 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
3967 for distribute parallel for, if there are lastprivate clauses on the
3969 (lower_rec_input_clauses): Handle non-zero low-bound on array
3971 (lower_reduction_clauses): Likewise.
3972 (lower_send_clauses): Look through POINTER_PLUS_EXPR
3973 for array section reductions.
3974 (expand_parallel_call): Use nonmonotonic entrypoints for
3975 nonmonotonic: dynamic/guided.
3976 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
3977 child_fn if current_function_decl has assembler name set, but child_fn
3978 does not. Dump the header and IL of the child function when not in SSA
3980 (expand_omp_target): Likewise. Pass num_teams and thread_limit
3981 arguments to BUILT_IN_GOMP_TARGET.
3982 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3983 Initialize the extra _looptemp_ clause to fd->loop.n2.
3984 (expand_omp_for): Use nonmonotonic entrypoints for
3985 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
3986 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
3987 again if we have dumped any child functions.
3988 (lower_omp_for_lastprivate): Determine the right count variable
3989 for distribute simd, or distribute parallel for{, simd}.
3990 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
3991 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
3993 (simd_clone_clauses_extract): Handle variable step
3994 for references and arguments passed by reference.
3995 (simd_clone_mangle): Mangle ref/uval/val variable steps.
3996 (simd_clone_adjust_argument_types): Handle
3997 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
3998 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
3999 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
4000 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
4001 (simd_clone_linear_addend): New function.
4002 (simd_clone_adjust): Handle variable step like similarly
4003 to constant step, use simd_clone_linear_addend to determine
4004 the actual step at runtime.
4006 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
4008 * target.def (goacc.dim_limit): New hook.
4009 * targhooks.h (default_goacc_dim_limit): Declare.
4010 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
4011 * doc/tm.texi: Rebuilt.
4012 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
4013 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
4014 (default_goacc_dim_limit): New.
4015 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4016 (nvptx_goacc_dim_limit) New.
4017 (TARGET_GOACC_DIM_LIMIT): Override.
4018 * tree-vrp.c: Include omp-low.h, target.h.
4019 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
4022 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
4024 * tree-vect-generic.c (do_compare): Use -1 for true
4025 result instead of 1.
4027 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4029 * config/aarch64/aarch64.c
4030 (aarch64_can_use_per_function_literal_pools_p): New.
4031 (aarch64_use_blocks_for_constant_p): Adjust declaration
4032 and use aarch64_can_use_function_literal_pools_p.
4033 (aarch64_select_rtx_section): Update.
4035 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
4037 * targhooks.c (default_get_mask_mode): Use BLKmode in
4038 case target doesn't support required vector mode.
4039 * stor-layout.c (layout_type); Check for BLKmode.
4041 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
4042 Sebastian Pop <s.pop@samsung.com>
4044 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
4045 Remove use of parameter_rename_map.
4047 (copy_internal_parameters): Remove.
4048 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
4049 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
4050 (free_sese_info): Do not free parameter_rename_map.
4051 (set_rename): Do not use parameter_rename_map.
4052 (rename_uses): Update call to set_rename.
4053 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
4054 * sese.h (parameter_rename_map_t): Remove.
4055 (struct sese_info_t): Remove field parameter_rename_map.
4057 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
4058 Sebastian Pop <s.pop@samsung.com>
4060 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
4061 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
4062 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
4063 anonymous namespace.
4064 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
4065 (isl_id_for_pbb): Use a buffer of size 10.
4066 (isl_id_for_ssa_name): Same.
4067 * sese.c (set_rename): Add more dumps.
4069 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4071 * omp-low.c (struct omp_context): Remove reduction_map field.
4072 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
4073 (new_omp_context, delete_omp_context, scan_omp_target): Remove
4074 reduction_map handling.
4075 (lower_omp_target): Remove obsolete openacc reduction handling.
4077 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4079 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
4081 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4082 Cesar Philippidis <cesar@codesourcery.com>
4084 * config/nvptx/nvptx.c: Include gimple headers.
4085 (worker_red_size, worker_red_align, worker_red_name,
4086 worker_red_sym): New.
4087 (nvptx_option_override): Initialize worker reduction buffer.
4088 (nvptx_file_end): Write out worker reduction buffer var.
4089 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
4090 nvptx_expand_cmp_swap): New builtin expanders.
4091 (enum nvptx_builtins): New.
4092 (nvptx_builtin_decls): New.
4093 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
4094 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4095 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
4096 nvptx_lockless_update): New helpers.
4097 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
4098 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
4099 (nvptx_goacc_reduction): New.
4100 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
4101 TARGET_BUILTIN_DECL): Override.
4102 (TARGET_GOACC_REDUCTION): Override.
4104 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4105 Cesar Philippidis <cesar@codesourcery.com>
4107 * internal-fn.def (GOACC_REDUCTION): New.
4108 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
4109 * internal-fn.c (expand_GOACC_REDUCTION): New.
4110 * target.def (goacc.reduction): New OpenACC hook.
4111 * targhooks.h (default_goacc_reduction): Declare.
4112 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
4113 * doc/tm.texi: Rebuilt.
4114 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
4115 scan_sharing_clauses): Remove oacc reduction handling here.
4116 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
4117 (oacc_lower_reduction_var_helper): Delete.
4118 (lower_oacc_reductions): New.
4119 (lower_reduction_clauses): Don't handle OpenACC reductions here.
4120 (lower_oacc_head_tail): Call lower_oacc_reductions.
4121 (oacc_gimple_assign, oacc_init_reduction_array,
4122 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
4123 oacc_process_reduction_data): Delete.
4124 (lower_omp_target): Remove old OpenACC reduction handling. Insert
4125 dummy OpenACC gang reduction for reductions at outer level.
4126 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
4127 (default_goacc_reduction): New.
4128 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
4130 2015-11-04 Martin Liska <mliska@suse.cz>
4132 * cgraphunit.c (cgraph_node::expand_thunk): Call
4133 allocate_struct_function before init_function_start.
4134 (cgraph_node::expand): Use push_cfun and pop_cfun.
4135 * config/i386/i386.c (ix86_code_end): Call
4136 allocate_struct_function before init_function_start.
4137 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
4138 * function.c (init_function_start): Move preamble to all
4140 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
4141 (execute_one_pass): Handle newly added TODO_discard_function.
4142 (execute_pass_list_1): Terminate if cfun equals to NULL.
4143 (execute_pass_list): Do not push and pop cfun, expect that
4145 * tree-pass.h (TODO_discard_function): Define.
4147 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
4149 * cfganal.c (inverted_post_order_compute): Remove conditional
4150 compilation, use flag_checking.
4151 * config.in: Regenerate.
4152 * configure: Regenerate.
4153 * configure.ac: Remove ENABLE_CHECKING.
4154 * genconditions.c: Do not #undef ENABLE_CHECKING.
4155 * sese.h (bb_in_region): Comment out broken check.
4156 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
4157 conditional compilation, use flag_checking.
4159 2015-11-04 Tom de Vries <tom@codesourcery.com>
4161 PR tree-optimization/67742
4162 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
4164 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
4165 (create_variable_info_for_1): Add and handle handle_param parameter.
4166 Add restrict handling.
4167 (create_variable_info_for): Call create_variable_info_for_1 with extra
4169 (make_param_constraints): Drop restrict_name parameter. Ignore
4170 vi->only_restrict_pointers.
4171 (intra_create_variable_infos): Call create_variable_info_for_1 with
4172 extra arg. Remove restrict handling. Call make_param_constraints with
4175 2015-11-04 Tom de Vries <tom@codesourcery.com>
4177 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
4180 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4182 * config/arm/coff.h: Remove.
4184 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
4186 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
4187 check for aggregate types and beef up comment for mode check.
4189 2015-11-03 Richard Biener <rguenther@suse.de>
4191 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
4192 data references here.
4193 * tree-vect-loop.c: Include cgraph.h.
4194 (vect_analyze_loop_2): Collect data references here.
4195 * tree-vect-slp.c (find_bb_location): Inline ...
4196 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
4197 Factor in vect_slp_transform_bb.
4198 (vect_slp_transform_bb): Removed.
4199 (vect_slp_analyze_bb_1): Collect data references here.
4200 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
4202 * tree-vectorizer.h (vect_slp_bb): Declare.
4203 (vect_slp_analyze_bb): Remove.
4204 (vect_slp_transform_bb): Remove.
4205 (find_bb_location): Remove.
4206 (vect_analyze_data_refs): Remove stmt count reference parameter.
4208 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
4210 * multiple_target.c (create_dispatcher_calls): Add target check
4212 (create_target_clone): Change assembler name for versioned declarations.
4214 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
4215 Chung-Lin Tang <cltang@codesourcery.com>
4217 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
4218 * omp-low.c (check_omp_nesting_restrictions): Allow
4219 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
4222 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
4224 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
4225 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
4226 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
4228 (vmulxq_f32): Likewise.
4230 (vmulxq_f64): Rewrite to call fmulx builtin.
4231 (vmulxs_f32): Likewise.
4232 (vmulxd_f64): Likewise.
4233 (vmulx_lane_f32): Remove.
4234 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
4236 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
4238 * config/aarch64/aarch64.md (*movhf_aarch64): Use
4239 aarch64_reg_or_fp_zero for second operand.
4241 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
4243 * gimple-expr.c: Include hash-set.h and rtl.h.
4244 (mark_addressable_queue): New var.
4245 (mark_addressable): Factor actual marking into...
4246 (mark_addressable_1): ... this. Queue it up during expand.
4247 (mark_addressable_2): New.
4248 (flush_mark_addressable_queue): New.
4249 * gimple-expr.h (flush_mark_addressable_queue): Declare.
4250 * cfgexpand.c: Include gimple-expr.h.
4251 (pass_expand::execute): Flush mark_addressable queue.
4253 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
4255 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
4256 bb_no_side_effects_p tests...
4257 (tree_ssa_ifcombine_bb): ... here.
4259 PR tree-optimization/68083
4260 * tree-ssa-ifcombine.c: Include tree-ssa.h.
4261 (bb_no_side_effects_p): Test for undefined uses too.
4262 * tree-ssa.c (gimple_uses_undefined_value_p): New.
4263 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
4265 2015-11-02 Jeff Law <law@redhat.com>
4267 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
4268 cases where the loop latch edge is in the middle of an FSM path.
4270 2015-11-03 Tom de Vries <tom@codesourcery.com>
4272 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
4273 (make_param_constraints): ... this. Add and handle restrict_name
4274 parameter. Handle is_full_var case.
4275 (intra_create_variable_infos): Use make_param_constraints.
4277 2015-11-03 Tom de Vries <tom@codesourcery.com>
4279 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
4280 make_copy_constraint call with make_constraint_from call.
4282 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
4284 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
4287 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
4289 * builtins.h (fold_fma): Move to fold-const-call.h.
4290 * builtins.c: Include fold-const-call.h.
4291 (mathfn_built_in_2): New function, split out from...
4292 (mathfn_built_in_1): ...here.
4293 (do_real_to_int_conversion, fold_const_builtin_pow)
4294 (fold_const_builtin_logb, fold_const_builtin_significand)
4295 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
4296 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
4297 (fold_builtin_sincos): Use fold_const_call to handle constants.
4298 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
4299 checks for ERROR_MARK. Use fold_const_call to handle constant
4300 folds for math functions.
4301 (fold_fma): Move to fold-const-call.c.
4302 * fold-const.c: Include fold-const-call.h.
4303 * Makefile.in (OBJS): Add fold-const-call.o.
4304 (PLUGIN_HEADERS): Add fold-const-call.h.
4305 * realmpfr.h (real_from_mpfr): Allow the format to be specified
4307 * realmpfr.c (real_from_mpfr): Likewise.
4308 * fold-const-call.h, fold-const-call.c: New files.
4310 2015-11-02 Julian Brown <julian@codesourcery.com>
4312 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
4313 brackets and semicolon.
4315 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
4318 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
4320 PR tree-optimization/65963
4321 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
4322 LSHIFT_EXPRs as equivalent MULT_EXPRs.
4324 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
4327 * fold-const.c: Include "md5.h".
4329 2015-11-01 Jeff Law <law@redhat.com>
4331 * vmsdbgout.c: Revert unused header file reduction patch.
4333 * config/mcore/mcore.c: Include regs.h.
4335 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
4337 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
4339 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
4341 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
4342 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
4343 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
4345 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
4347 * ggc-common.c: Restore needed header for checking=release.
4349 2015-10-31 Tom de Vries <tom@codesourcery.com>
4351 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
4353 2015-10-31 Tom de Vries <tom@codesourcery.com>
4355 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
4356 existing varinfo for arguments.
4358 2015-10-31 Tom de Vries <tom@codesourcery.com>
4360 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
4361 create_function_info_for. Dump constraints generated during
4362 create_function_info_for. Move intra_create_variable_infos call and
4363 function-return-values-escape bit to ...
4364 (create_function_info_for): ... here, and merge
4365 intra_create_variable_infos call with argument loop. Add and handle
4366 nonlocal_p parameter.
4368 2015-10-31 Tom de Vries <tom@codesourcery.com>
4370 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
4371 updating is alap, and seperated from preceding code. Make sure
4372 insert_vi_for_tree is seperated from surrounding code.
4374 2015-10-31 Tom de Vries <tom@codesourcery.com>
4376 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
4378 2015-10-30 Jeff Law <law@redhat.com>
4379 Nathan Sidwell <nathan@acm.org>
4381 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
4383 (MOVE_MAX): Set to 8.
4385 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
4387 * cgraph.c: Include context.h for offloading.
4388 * varpool.c: Include context.h and omp-low.h.
4390 2015-10-30 Anatoly Sokolov <aesok@post.ru>
4392 * rtl.h (contains_symbol_ref_p): Declare.
4393 (SYMBOL_REF_P): Define.
4394 * rtlanal.c (contains_symbol_ref_p: New function.
4395 * lra-constraints.c (contains_symbol_ref_p): Remove.
4396 * var-tracking.c (contains_symbol_ref): Remove.
4397 (track_expr_p): Use contains_symbol_ref_p instead of
4398 contains_symbol_ref.
4400 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
4402 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
4403 * fold-const.c (get_array_ctor_element_at_index): New.
4404 (fold): Remove binary-search through CONSTRUCTOR, call previous.
4406 * fold-const.h (get_array_ctor_element_at_index): New.
4408 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
4410 * Makefile.in (OBJS): Add multiple_target.o.
4411 * attrib.c (make_attribute): Moved from config/i386/i386.c
4412 * config/i386/i386.c (make_attribute): Deleted.
4413 * multiple_target.c (create_dispatcher_calls): New.
4414 (get_attr_len): Ditto.
4415 (get_attr_str): Ditto.
4416 (separate_attrs): Ditto.
4417 (is_valid_asm_symbol): Ditto.
4418 (create_new_asm_name): Ditto.
4419 (create_target_clone): Ditto.
4420 (expand_target_clones): Ditto.
4421 (ipa_target_clone): Ditto.
4422 (ipa_dispatcher_calls): Ditto.
4423 * passes.def (pass_target_clone): Two new ipa passes.
4424 * tree-pass.h (make_pass_target_clone): Ditto.
4425 * doc/extend.texi (target_clones): New attribute description.
4427 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
4429 PR rtl-optimization/68106
4430 * lra-remat.c (input_regno_present_p): Process hard regs
4431 explicitly present in machine description insns.
4432 (call_used_input_regno_present_p): Ditto.
4433 (calculate_gen_cands): Ditto.
4436 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
4438 * config/arm/neon-testgen.ml: Fix comment typo.
4440 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4442 * rtlanal.c (reg_set_p): Expand function comment.
4444 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
4446 * alias.c: Remove unused headers.
4448 * attribs.c: Likewise.
4449 * auto-inc-dec.c: Likewise.
4450 * auto-profile.c: Likewise.
4451 * bb-reorder.c: Likewise.
4452 * bitmap.c: Likewise.
4453 * bt-load.c: Likewise.
4454 * builtins.c: Likewise.
4455 * caller-save.c: Likewise.
4456 * calls.c: Likewise.
4459 * cfganal.c: Likewise.
4460 * cfgbuild.c: Likewise.
4461 * cfgcleanup.c: Likewise.
4462 * cfgexpand.c: Likewise.
4463 * cfghooks.c: Likewise.
4464 * cfgloop.c: Likewise.
4465 * cfgloopanal.c: Likewise.
4466 * cfgloopmanip.c: Likewise.
4467 * cfgrtl.c: Likewise.
4468 * cgraph.c: Likewise.
4469 * cgraphbuild.c: Likewise.
4470 * cgraphclones.c: Likewise.
4471 * cgraphunit.c: Likewise.
4472 * cilk-common.c: Likewise.
4473 * combine-stack-adj.c: Likewise.
4474 * combine.c: Likewise.
4475 * compare-elim.c: Likewise.
4476 * convert.c: Likewise.
4477 * coverage.c: Likewise.
4478 * cppbuiltin.c: Likewise.
4479 * cprop.c: Likewise.
4481 * cselib.c: Likewise.
4482 * data-streamer-in.c: Likewise.
4483 * data-streamer-out.c: Likewise.
4484 * data-streamer.c: Likewise.
4485 * dbxout.c: Likewise.
4488 * debug.c: Likewise.
4489 * df-core.c: Likewise.
4490 * df-problems.c: Likewise.
4491 * df-scan.c: Likewise.
4493 * dojump.c: Likewise.
4494 * dominance.c: Likewise.
4495 * domwalk.c: Likewise.
4496 * double-int.c: Likewise.
4498 * dumpfile.c: Likewise.
4499 * dwarf2asm.c: Likewise.
4500 * dwarf2cfi.c: Likewise.
4501 * dwarf2out.c: Likewise.
4502 * emit-rtl.c: Likewise.
4503 * except.c: Likewise.
4504 * explow.c: Likewise.
4505 * expmed.c: Likewise.
4507 * final.c: Likewise.
4508 * fixed-value.c: Likewise.
4509 * fold-const.c: Likewise.
4510 * function.c: Likewise.
4511 * fwprop.c: Likewise.
4513 * generic-match-head.c: Likewise.
4514 * ggc-common.c: Likewise.
4515 * gimple-builder.c: Likewise.
4516 * gimple-expr.c: Likewise.
4517 * gimple-fold.c: Likewise.
4518 * gimple-iterator.c: Likewise.
4519 * gimple-low.c: Likewise.
4520 * gimple-match-head.c: Likewise.
4521 * gimple-pretty-print.c: Likewise.
4522 * gimple-ssa-isolate-paths.c: Likewise.
4523 * gimple-ssa-strength-reduction.c: Likewise.
4524 * gimple-streamer-in.c: Likewise.
4525 * gimple-streamer-out.c: Likewise.
4526 * gimple-walk.c: Likewise.
4527 * gimple.c: Likewise.
4528 * gimplify-me.c: Likewise.
4529 * gimplify.c: Likewise.
4530 * godump.c: Likewise.
4531 * graph.c: Likewise.
4532 * graphds.c: Likewise.
4533 * haifa-sched.c: Likewise.
4534 * hw-doloop.c: Likewise.
4535 * ifcvt.c: Likewise.
4536 * init-regs.c: Likewise.
4537 * internal-fn.c: Likewise.
4538 * ipa-chkp.c: Likewise.
4539 * ipa-comdats.c: Likewise.
4540 * ipa-cp.c: Likewise.
4541 * ipa-devirt.c: Likewise.
4542 * ipa-icf-gimple.c: Likewise.
4543 * ipa-icf.c: Likewise.
4544 * ipa-inline-analysis.c: Likewise.
4545 * ipa-inline-transform.c: Likewise.
4546 * ipa-inline.c: Likewise.
4547 * ipa-polymorphic-call.c: Likewise.
4548 * ipa-profile.c: Likewise.
4549 * ipa-prop.c: Likewise.
4550 * ipa-pure-const.c: Likewise.
4551 * ipa-ref.c: Likewise.
4552 * ipa-reference.c: Likewise.
4553 * ipa-split.c: Likewise.
4554 * ipa-utils.c: Likewise.
4555 * ipa-visibility.c: Likewise.
4557 * ira-build.c: Likewise.
4558 * ira-color.c: Likewise.
4559 * ira-conflicts.c: Likewise.
4560 * ira-costs.c: Likewise.
4561 * ira-emit.c: Likewise.
4562 * ira-lives.c: Likewise.
4565 * langhooks.c: Likewise.
4567 * lists.c: Likewise.
4568 * loop-doloop.c: Likewise.
4569 * loop-init.c: Likewise.
4570 * loop-invariant.c: Likewise.
4571 * loop-iv.c: Likewise.
4572 * loop-unroll.c: Likewise.
4573 * lower-subreg.c: Likewise.
4574 * lra-assigns.c: Likewise.
4575 * lra-coalesce.c: Likewise.
4576 * lra-constraints.c: Likewise.
4577 * lra-eliminations.c: Likewise.
4578 * lra-lives.c: Likewise.
4579 * lra-remat.c: Likewise.
4580 * lra-spills.c: Likewise.
4582 * lto-cgraph.c: Likewise.
4583 * lto-compress.c: Likewise.
4584 * lto-opts.c: Likewise.
4585 * lto-section-in.c: Likewise.
4586 * lto-section-out.c: Likewise.
4587 * lto-streamer-in.c: Likewise.
4588 * lto-streamer-out.c: Likewise.
4589 * lto-streamer.c: Likewise.
4591 * mode-switching.c: Likewise.
4592 * modulo-sched.c: Likewise.
4593 * optabs.c: Likewise.
4594 * opts-global.c: Likewise.
4595 * passes.c: Likewise.
4596 * plugin.c: Likewise.
4597 * postreload-gcse.c: Likewise.
4598 * postreload.c: Likewise.
4599 * predict.c: Likewise.
4600 * print-tree.c: Likewise.
4601 * profile.c: Likewise.
4603 * realmpfr.c: Likewise.
4604 * recog.c: Likewise.
4606 * reg-stack.c: Likewise.
4607 * regcprop.c: Likewise.
4608 * reginfo.c: Likewise.
4609 * regrename.c: Likewise.
4610 * regstat.c: Likewise.
4611 * reload.c: Likewise.
4612 * reload1.c: Likewise.
4613 * reorg.c: Likewise.
4614 * resource.c: Likewise.
4615 * rtl-chkp.c: Likewise.
4616 * rtl-error.c: Likewise.
4617 * rtlanal.c: Likewise.
4618 * rtlhooks.c: Likewise.
4619 * sanopt.c: Likewise.
4620 * sched-deps.c: Likewise.
4621 * sched-ebb.c: Likewise.
4622 * sched-rgn.c: Likewise.
4623 * sdbout.c: Likewise.
4624 * sel-sched-dump.c: Likewise.
4625 * sel-sched-ir.c: Likewise.
4626 * sel-sched.c: Likewise.
4628 * shrink-wrap.c: Likewise.
4629 * simplify-rtx.c: Likewise.
4630 * stack-ptr-mod.c: Likewise.
4631 * statistics.c: Likewise.
4633 * stor-layout.c: Likewise.
4634 * store-motion.c: Likewise.
4635 * stringpool.c: Likewise.
4636 * symtab.c: Likewise.
4637 * target-globals.c: Likewise.
4638 * targhooks.c: Likewise.
4639 * toplev.c: Likewise.
4640 * tracer.c: Likewise.
4641 * trans-mem.c: Likewise.
4642 * tree-affine.c: Likewise.
4643 * tree-call-cdce.c: Likewise.
4644 * tree-cfg.c: Likewise.
4645 * tree-cfgcleanup.c: Likewise.
4646 * tree-chkp-opt.c: Likewise.
4647 * tree-chkp.c: Likewise.
4648 * tree-chrec.c: Likewise.
4649 * tree-complex.c: Likewise.
4650 * tree-data-ref.c: Likewise.
4651 * tree-dfa.c: Likewise.
4652 * tree-diagnostic.c: Likewise.
4653 * tree-dump.c: Likewise.
4654 * tree-eh.c: Likewise.
4655 * tree-emutls.c: Likewise.
4656 * tree-if-conv.c: Likewise.
4657 * tree-inline.c: Likewise.
4658 * tree-into-ssa.c: Likewise.
4659 * tree-iterator.c: Likewise.
4660 * tree-loop-distribution.c: Likewise.
4661 * tree-nested.c: Likewise.
4662 * tree-nrv.c: Likewise.
4663 * tree-object-size.c: Likewise.
4664 * tree-outof-ssa.c: Likewise.
4665 * tree-parloops.c: Likewise.
4666 * tree-phinodes.c: Likewise.
4667 * tree-predcom.c: Likewise.
4668 * tree-pretty-print.c: Likewise.
4669 * tree-profile.c: Likewise.
4670 * tree-scalar-evolution.c: Likewise.
4671 * tree-sra.c: Likewise.
4672 * tree-ssa-address.c: Likewise.
4673 * tree-ssa-alias.c: Likewise.
4674 * tree-ssa-ccp.c: Likewise.
4675 * tree-ssa-coalesce.c: Likewise.
4676 * tree-ssa-copy.c: Likewise.
4677 * tree-ssa-dce.c: Likewise.
4678 * tree-ssa-dse.c: Likewise.
4679 * tree-ssa-forwprop.c: Likewise.
4680 * tree-ssa-ifcombine.c: Likewise.
4681 * tree-ssa-live.c: Likewise.
4682 * tree-ssa-loop-ch.c: Likewise.
4683 * tree-ssa-loop-im.c: Likewise.
4684 * tree-ssa-loop-ivcanon.c: Likewise.
4685 * tree-ssa-loop-ivopts.c: Likewise.
4686 * tree-ssa-loop-manip.c: Likewise.
4687 * tree-ssa-loop-niter.c: Likewise.
4688 * tree-ssa-loop-prefetch.c: Likewise.
4689 * tree-ssa-loop-unswitch.c: Likewise.
4690 * tree-ssa-loop.c: Likewise.
4691 * tree-ssa-math-opts.c: Likewise.
4692 * tree-ssa-operands.c: Likewise.
4693 * tree-ssa-phiopt.c: Likewise.
4694 * tree-ssa-phiprop.c: Likewise.
4695 * tree-ssa-pre.c: Likewise.
4696 * tree-ssa-propagate.c: Likewise.
4697 * tree-ssa-reassoc.c: Likewise.
4698 * tree-ssa-scopedtables.c: Likewise.
4699 * tree-ssa-sink.c: Likewise.
4700 * tree-ssa-strlen.c: Likewise.
4701 * tree-ssa-structalias.c: Likewise.
4702 * tree-ssa-tail-merge.c: Likewise.
4703 * tree-ssa-ter.c: Likewise.
4704 * tree-ssa-threadupdate.c: Likewise.
4705 * tree-ssa-uncprop.c: Likewise.
4706 * tree-ssa-uninit.c: Likewise.
4707 * tree-ssa.c: Likewise.
4708 * tree-ssanames.c: Likewise.
4709 * tree-stdarg.c: Likewise.
4710 * tree-streamer-in.c: Likewise.
4711 * tree-streamer-out.c: Likewise.
4712 * tree-streamer.c: Likewise.
4713 * tree-switch-conversion.c: Likewise.
4714 * tree-tailcall.c: Likewise.
4715 * tree-vect-data-refs.c: Likewise.
4716 * tree-vect-generic.c: Likewise.
4717 * tree-vect-loop-manip.c: Likewise.
4718 * tree-vect-loop.c: Likewise.
4719 * tree-vect-patterns.c: Likewise.
4720 * tree-vect-slp.c: Likewise.
4721 * tree-vect-stmts.c: Likewise.
4722 * tree-vectorizer.c: Likewise.
4723 * tree-vrp.c: Likewise.
4726 * ubsan.c: Likewise.
4727 * value-prof.c: Likewise.
4728 * var-tracking.c: Likewise.
4729 * varasm.c: Likewise.
4730 * varpool.c: Likewise.
4731 * vmsdbgout.c: Likewise.
4732 * vtable-verify.c: Likewise.
4734 * wide-int-print.cc: Likewise.
4735 * wide-int.cc: Likewise.
4736 * xcoffout.c: Likewise.
4738 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
4740 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
4741 between pass numbering and execution order.
4743 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4745 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
4746 check for dependencies.
4748 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
4750 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
4753 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
4755 * real.h (format_helper): New.
4756 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
4757 (real_from_target, real_nan, real_2expN, real_value_truncate)
4758 (significand_size, real_from_string2, exact_real_inverse)
4759 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
4760 (real_round, real_isinteger, real_from_integer): Replace
4761 machine_mode arguments with format_helper arguments.
4762 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
4763 (real_from_integer, real_nan, real_2expN, real_convert)
4764 (real_value_truncate, exact_real_truncate, real_to_target)
4765 (real_from_target, significand_size, real_powi, real_trunc)
4766 (real_floor, real_ceil, real_round, real_isinteger): Replace
4767 machine_mode arguments with format_helper arguments.
4768 (real_to_target_fmt, real_from_target_fmt): Delete.
4769 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
4770 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
4771 argument with real_format.
4772 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
4774 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
4776 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
4777 (fixed_to_decimal, fixed_convert_from_real)
4778 (real_convert_from_fixed): Fix mode arguments to real_2expN.
4780 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
4782 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
4783 SCALAR_FLOAT_MODE_P.
4785 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
4787 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
4788 (completely_scalarize): Comment zero-length arrays.
4789 (get_access_replacement): Correct comment re. precondition.
4791 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4793 * config/i386/i386.c (get_builtin_code_for_version): Set priority
4794 for PROCESSOR_ZNVER1.
4795 (enum processor_model): Add M_AMDFAM17H_znver1.
4796 (struct arch_names_table): Likewise.
4797 * doc/extend.texi: ADD znver1.
4799 2015-10-30 Richard Biener <rguenther@suse.de>
4801 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
4802 fold () on single RHSs. Allow CONSTRUCTORS with trailing
4803 zeros to be folded to VECTOR_CSTs.
4804 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
4805 * fold-const.c (fold): Use build_vector_from_ctor.
4807 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
4809 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
4810 "mov %0.h[0], %1.h[0] to "neon_move".
4811 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
4812 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
4814 (*cmovsi_insn_uxtw): Likewise.
4816 2015-10-30 Tom de Vries <tom@codesourcery.com>
4818 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
4819 unsigned, and initialize, and use initial value instead of hardcoded
4820 constant. Add generic constraints dumping section. Don't dump global
4821 initializers constraints dumping section if empty. Don't update
4822 variable from if unused.
4824 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
4826 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
4827 flag_checking and/or CHECKING_P to eliminate conditional compilation
4829 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
4830 * config/bfin/bfin.c (hwloop_optimize): Likewise.
4831 * config/i386/i386.c (ix86_print_operand_address): Likewise.
4832 (output_387_binary_op): Likewise.
4833 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
4834 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
4835 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
4837 * config/rs6000/rs6000.h: Likewise.
4838 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
4840 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
4842 * config/sh/sh.opt (mfdpic): Add missing period.
4844 2015-08-29 Anatoly Sokolov <aesok@post.ru>
4846 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4847 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
4848 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4849 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
4850 mcore_base_register_rtx_p, mcore_legitimate_index_p,
4851 mcore_legitimate_address_p): New functions.
4852 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4854 2015-10-29 Jeff Law <law@redhat.com>
4856 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
4858 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
4859 * tree-ssa-threadedge.c
4860 (record_temporary_equivalences_from_stmts_at_dest): Remove
4861 backedge_seen argument and associated code which invalidated
4862 equivalences based on the value of that argument.
4863 (thread_through_normal_block): Corresponding changes.
4865 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
4867 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
4868 function earlier in the file.
4869 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
4870 df_regs_ever_live_p.
4872 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
4874 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
4877 2015-10-29 Richard Henderson <rth@redhat.com>
4881 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
4882 sse check to the exact conditions of PR 67609.
4884 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
4886 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
4887 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
4888 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
4889 of the traditional names that TFmode uses for handling IEEE
4890 extended double. If -mfloat128, add KFmode functions for all of
4891 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
4892 make TFmode use the same emulation functions as KFmode.
4893 (init_float128_ibm): Likewise.
4894 (init_float128_ieee): Likewise.
4895 (rs6000_generate_compare): For IEEE 128-bit floating point
4896 comparisons, call the unordered comparison function instead of the
4897 ordered comparison function.
4898 (rs6000_expand_float128_convert): Deal with operands that are
4899 memory operands. Restructure the code to use a switch statement on
4900 the mode. Add support for TFmode defaulting to either IBM extended
4901 double or IEEE 128-bit floating point. If the underlying types are
4902 the same, use a move instead of a conversion function.
4903 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
4904 use for IEEE 128-bit floating point constants with -mfloat128.
4905 (rs6000_c_mode_for_suffix): Likewise.
4906 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
4907 128-bit floating point with IBM extended double floating point.
4908 (rs6000_invalid_binary_op): Likewise.
4909 (rs6000_gen_le_vsx_permute): On little endian systems generate a
4910 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
4911 types that can go in vector registers.
4912 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
4913 point types that can go in vector registers on little endian
4915 (mark_swaps_for_removal): Likewise.
4916 (rs6000_analyze_swaps): Likewise.
4917 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
4919 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
4920 rework IEEE 128-bit floating point insns to deal with TFmode being
4921 either IBM extended double or IEEE 128-bit floating point.
4923 (IBM128): Update iterator to add condition that the mode is IBM
4925 (IEEE128): New iterator for IEEE 128-bit floating point.
4926 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
4927 (FLOAT128): Likewise.
4928 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
4930 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
4931 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
4932 instead of hard coding TFmode or KFmode.
4933 (negtf2_internal): Likewise.
4934 (neg<mode>2_internal): Likewise.
4935 (abs<mode>2): Likewise.
4936 (abstf2_internal): Likewise.
4937 (abs<mode>2_internal): Likewise.
4938 (ieee_128bit_neg<mode>2): Likewise.
4939 (ieee_128bit_neg<mode>2_internal): Likewise.
4940 (ieee_128bit_abs<mode>2): Likewise.
4941 (ieee_128bit_abs<mode>2_internal): Likewise.
4942 (ieee_128bit_nabs<mode>2): Likewise.
4943 (ieee_128bit_nabs<mode>2_internal): Likewise.
4944 (extendiftf2): Add explicit conversions between 128-bit floating
4945 point types. Drop the old conversions that had become unwieldy.
4946 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
4947 (extendifkf2): Likewise.
4948 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
4949 (extendtfkf2): Likewise.
4950 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
4951 (trunciftf2): Likewise.
4952 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
4953 (truncifkf2): Likewise.
4954 (float<SDI:mode><IFKF:mode>2): Likewise.
4955 (trunckftf2): Likewise.
4956 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
4957 (trunctfif2): Likewise.
4958 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
4959 (extenddftf2): Rework 128-bit floating point conversions to
4960 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
4961 KFmode expanders into one function.
4962 (extenddf<mode>2): Likewise.
4963 (extenddftf2_fprs): Likewise.
4964 (extenddf<mode>2_fprs): Likewise.
4965 (extenddftf2_vsx): Likewise.
4966 (extenddf<mode>2_vsx): Likewise.
4967 (extendsftf2): Likewise.
4968 (extendsf<mode>2): Likewise.
4969 (trunctfdf2): Likewise.
4970 (trunc<mode>df2): Likewise.
4971 (trunctfdf2_internal1): Likewise.
4972 (trunc<mode>df2_internal1): Likewise.
4973 (trunctfdf2_internal2): Likewise.
4974 (trunc<mode>df2_internal2): Likewise.
4975 (trunctfsf2): Likewise.
4976 (trunc<mode>sf2): Likewise.
4977 (trunctfsf2_fprs): Likewise.
4978 (trunc<mode>sf2_fprs): Likewise.
4979 (floatsit2f): Likewise.
4980 (floatsi<mode>2): Likewise.
4981 (fix_trunc_helper): Likewise.
4982 (fix_trunc_helper<mode>): Likewise.
4983 (fix_trunctfsi2): Likewise.
4984 (fix_trunc<mode>si2): Likewise.
4985 (fix_trunctfsi2_fprs): Likewise.
4986 (fix_trunc<mode>si2_fprs): Likewise.
4987 (fix_trunctfsi2_internal): Likewise.
4988 (fix_trunc<mode>si2_internal): Likewise.
4989 (fix_trunctfdi2): Likewise.
4990 (fix_trunc<mode>di2): Likewise.
4991 (fixuns_trunctf<mode>2): Likewise.
4992 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
4993 (floatditf2): Likewise.
4994 (floatdi<mode>2): Likewise.
4995 (floatuns<mode>tf2): Likewise.
4996 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
4997 (cmptf_internal1): Use a mode iterator to add support for both
4998 types (IFmode, TFmode) that support IBM extended double.
4999 (cmp<mode>_internal1): Likewise.
5000 (cmptf_internal2): Likewise.
5001 (cmp<mode>_internal2): Likewise.
5003 * doc/extend.texi (Floating Types): Document __ibm128 and
5004 __float128 on PowerPC.
5006 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5007 -mfloat128 and -mno-float128.
5009 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
5011 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
5012 floating point modes that can go in vector registers.
5013 (MODES_TIEABLE_P): Move tests for vector modes before tests for
5014 scalar floating point, so that IEEE 128-bit floating point that
5015 can go in vector registers bind with vectors and not FP.
5016 (struct rs6000_args): Add libcall field.
5018 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
5019 and -mfloat128-software switches. Replace them with a binary
5021 (-mfloat128): Likewise.
5023 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
5024 128-bit floating point types in GPRs, even if the appropriate
5025 option enabling the type was not used.
5026 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
5028 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
5029 pre-decrement on IEEE 128-bit floating point values.
5030 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
5031 is IEEE 128-bit floating point.
5032 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
5033 128-bit floating point types that can go in vector registers.
5034 (rs6000_option_override_internal): Change -mfloat128-none and
5035 -mfloat128-software to -mfloat128, and move code to be near other
5036 VSX option handling.
5037 (rs6000_option_override_internal): Disable -mfloat128 if we don't
5038 have the Altivec ABI.
5039 (rs6000_init_builtins): Don't make TFmode use either IFmode or
5040 KFmode floating point nodes. Instead, have three separate nodes.
5041 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
5042 eventually moving the long double default to IEEE 128-bit floating
5044 (rs6000_opt_masks): Add -mfloat128.
5045 (struct rs6000_opt_var): Fix typo in comment.
5046 (init_cumulative_args): Initialize libcall field in
5048 (rs6000_function_arg): Treat library functions as if they had
5049 prototypes to prevent IEEE 128-bit support functions from passing
5050 arguments in both GPRs and vector registers.
5051 (rs6000_arg_partial_bytes): Likewise.
5053 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
5054 an option that can be turned on via -mcpu=<xxx>.
5056 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
5059 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5060 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
5061 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
5062 double is IBM extended double.
5064 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
5067 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
5069 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
5070 * genconditions.c: Define CHECKING_P in the generated code.
5071 * genextract.c: Use flag_checking in insn_extract.
5072 * gengtype.c (main): Remove conditional compilation.
5073 * gengtype.h: Likewise.
5075 2015-10-29 Jeff Law <law@redhat.com>
5077 PR tree-optimization/67892
5078 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
5080 (thread_through_normal_block): If we have seen a backedge, then
5081 do nothing. No longer call find_jump_threads_backwards here.
5082 (thread_across_edge): Use find_jump_threads_backwards to find
5083 jump threads if the old style threader was not successful.
5084 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
5085 gsi_last_nondebug_bb. Return NULL if the block does not end
5086 with a control statement.
5087 (find_jump_threads_backwards): Setup code moved here from
5088 tree-ssa-threadedge.c::thread_through_normal_block. Accept
5089 single edge argument instead of name & block.
5090 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
5093 2015-10-29 Tom de Vries <tom@codesourcery.com>
5095 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
5098 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
5100 * omp-low.c (lower_omp_target): Remove unreachable code & merge
5103 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
5105 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
5107 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
5109 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
5110 guard_bb0 and use guard_bb throughout.
5112 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
5114 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
5117 2015-10-29 Richard Biener <rguenther@suse.de>
5120 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
5123 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
5125 * alias.c: Reorder #include statements and remove duplicates.
5127 * attribs.c: Likewise.
5128 * auto-inc-dec.c: Likewise.
5129 * auto-profile.c: Likewise.
5130 * bb-reorder.c: Likewise.
5131 * bt-load.c: Likewise.
5132 * builtins.c: Likewise.
5133 * caller-save.c: Likewise.
5134 * calls.c: Likewise.
5137 * cfganal.c: Likewise.
5138 * cfgbuild.c: Likewise.
5139 * cfgcleanup.c: Likewise.
5140 * cfgexpand.c: Likewise.
5141 * cfghooks.c: Likewise.
5142 * cfgloop.c: Likewise.
5143 * cfgloopanal.c: Likewise.
5144 * cfgloopmanip.c: Likewise.
5145 * cfgrtl.c: Likewise.
5146 * cgraph.c: Likewise.
5147 * cgraphbuild.c: Likewise.
5148 * cgraphclones.c: Likewise.
5149 * cgraphunit.c: Likewise.
5150 * cilk-common.c: Likewise.
5151 * combine-stack-adj.c: Likewise.
5152 * combine.c: Likewise.
5153 * compare-elim.c: Likewise.
5154 * convert.c: Likewise.
5155 * coverage.c: Likewise.
5156 * cppbuiltin.c: Likewise.
5157 * cprop.c: Likewise.
5159 * cselib.c: Likewise.
5160 * data-streamer-in.c: Likewise.
5161 * data-streamer-out.c: Likewise.
5162 * data-streamer.c: Likewise.
5163 * dbxout.c: Likewise.
5166 * debug.c: Likewise.
5167 * df-core.c: Likewise.
5168 * df-problems.c: Likewise.
5169 * df-scan.c: Likewise.
5171 * dojump.c: Likewise.
5172 * dominance.c: Likewise.
5173 * double-int.c: Likewise.
5175 * dumpfile.c: Likewise.
5176 * dwarf2asm.c: Likewise.
5177 * dwarf2cfi.c: Likewise.
5178 * dwarf2out.c: Likewise.
5179 * emit-rtl.c: Likewise.
5180 * except.c: Likewise.
5181 * explow.c: Likewise.
5182 * expmed.c: Likewise.
5184 * final.c: Likewise.
5185 * fixed-value.c: Likewise.
5186 * fold-const.c: Likewise.
5187 * function.c: Likewise.
5188 * fwprop.c: Likewise.
5190 * generic-match-head.c: Likewise.
5191 * ggc-common.c: Likewise.
5192 * gimple-builder.c: Likewise.
5193 * gimple-expr.c: Likewise.
5194 * gimple-fold.c: Likewise.
5195 * gimple-iterator.c: Likewise.
5196 * gimple-low.c: Likewise.
5197 * gimple-match-head.c: Likewise.
5198 * gimple-pretty-print.c: Likewise.
5199 * gimple-ssa-isolate-paths.c: Likewise.
5200 * gimple-ssa-strength-reduction.c: Likewise.
5201 * gimple-streamer-in.c: Likewise.
5202 * gimple-streamer-out.c: Likewise.
5203 * gimple-walk.c: Likewise.
5204 * gimple.c: Likewise.
5205 * gimplify-me.c: Likewise.
5206 * gimplify.c: Likewise.
5207 * godump.c: Likewise.
5208 * graph.c: Likewise.
5209 * graphite-poly.c: Likewise.
5210 * haifa-sched.c: Likewise.
5211 * hw-doloop.c: Likewise.
5212 * ifcvt.c: Likewise.
5213 * incpath.c: Likewise.
5214 * init-regs.c: Likewise.
5215 * internal-fn.c: Likewise.
5216 * ipa-chkp.c: Likewise.
5217 * ipa-comdats.c: Likewise.
5218 * ipa-cp.c: Likewise.
5219 * ipa-devirt.c: Likewise.
5220 * ipa-icf-gimple.c: Likewise.
5221 * ipa-icf.c: Likewise.
5222 * ipa-inline-analysis.c: Likewise.
5223 * ipa-inline-transform.c: Likewise.
5224 * ipa-inline.c: Likewise.
5225 * ipa-polymorphic-call.c: Likewise.
5226 * ipa-profile.c: Likewise.
5227 * ipa-prop.c: Likewise.
5228 * ipa-pure-const.c: Likewise.
5229 * ipa-ref.c: Likewise.
5230 * ipa-reference.c: Likewise.
5231 * ipa-split.c: Likewise.
5232 * ipa-utils.c: Likewise.
5233 * ipa-visibility.c: Likewise.
5235 * ira-build.c: Likewise.
5236 * ira-color.c: Likewise.
5237 * ira-conflicts.c: Likewise.
5238 * ira-costs.c: Likewise.
5239 * ira-emit.c: Likewise.
5240 * ira-lives.c: Likewise.
5243 * langhooks.c: Likewise.
5245 * lists.c: Likewise.
5246 * loop-doloop.c: Likewise.
5247 * loop-init.c: Likewise.
5248 * loop-invariant.c: Likewise.
5249 * loop-iv.c: Likewise.
5250 * loop-unroll.c: Likewise.
5251 * lower-subreg.c: Likewise.
5252 * lra-assigns.c: Likewise.
5253 * lra-coalesce.c: Likewise.
5254 * lra-constraints.c: Likewise.
5255 * lra-eliminations.c: Likewise.
5256 * lra-lives.c: Likewise.
5257 * lra-remat.c: Likewise.
5258 * lra-spills.c: Likewise.
5260 * lto-cgraph.c: Likewise.
5261 * lto-compress.c: Likewise.
5262 * lto-opts.c: Likewise.
5263 * lto-section-in.c: Likewise.
5264 * lto-section-out.c: Likewise.
5265 * lto-streamer-in.c: Likewise.
5266 * lto-streamer-out.c: Likewise.
5267 * lto-streamer.c: Likewise.
5268 * mode-switching.c: Likewise.
5269 * modulo-sched.c: Likewise.
5270 * omp-low.c: Likewise.
5271 * optabs.c: Likewise.
5272 * opts-global.c: Likewise.
5273 * passes.c: Likewise.
5274 * plugin.c: Likewise.
5275 * postreload-gcse.c: Likewise.
5276 * postreload.c: Likewise.
5277 * predict.c: Likewise.
5278 * print-tree.c: Likewise.
5279 * profile.c: Likewise.
5281 * realmpfr.c: Likewise.
5282 * recog.c: Likewise.
5284 * reg-stack.c: Likewise.
5285 * regcprop.c: Likewise.
5286 * reginfo.c: Likewise.
5287 * regrename.c: Likewise.
5288 * regstat.c: Likewise.
5289 * reload.c: Likewise.
5290 * reload1.c: Likewise.
5291 * reorg.c: Likewise.
5292 * resource.c: Likewise.
5293 * rtl-chkp.c: Likewise.
5294 * rtl-error.c: Likewise.
5295 * rtlanal.c: Likewise.
5296 * rtlhooks.c: Likewise.
5297 * sanopt.c: Likewise.
5298 * sched-deps.c: Likewise.
5299 * sched-ebb.c: Likewise.
5300 * sched-rgn.c: Likewise.
5302 * shrink-wrap.c: Likewise.
5303 * simplify-rtx.c: Likewise.
5304 * stack-ptr-mod.c: Likewise.
5305 * statistics.c: Likewise.
5307 * stor-layout.c: Likewise.
5308 * store-motion.c: Likewise.
5309 * stringpool.c: Likewise.
5310 * symtab.c: Likewise.
5311 * target-globals.c: Likewise.
5312 * targhooks.c: Likewise.
5313 * toplev.c: Likewise.
5314 * tracer.c: Likewise.
5315 * trans-mem.c: Likewise.
5316 * tree-affine.c: Likewise.
5317 * tree-call-cdce.c: Likewise.
5318 * tree-cfg.c: Likewise.
5319 * tree-cfgcleanup.c: Likewise.
5320 * tree-chkp-opt.c: Likewise.
5321 * tree-chkp.c: Likewise.
5322 * tree-chrec.c: Likewise.
5323 * tree-complex.c: Likewise.
5324 * tree-data-ref.c: Likewise.
5325 * tree-dfa.c: Likewise.
5326 * tree-diagnostic.c: Likewise.
5327 * tree-dump.c: Likewise.
5328 * tree-eh.c: Likewise.
5329 * tree-emutls.c: Likewise.
5330 * tree-if-conv.c: Likewise.
5331 * tree-inline.c: Likewise.
5332 * tree-into-ssa.c: Likewise.
5333 * tree-iterator.c: Likewise.
5334 * tree-loop-distribution.c: Likewise.
5335 * tree-nested.c: Likewise.
5336 * tree-nrv.c: Likewise.
5337 * tree-object-size.c: Likewise.
5338 * tree-outof-ssa.c: Likewise.
5339 * tree-parloops.c: Likewise.
5340 * tree-phinodes.c: Likewise.
5341 * tree-predcom.c: Likewise.
5342 * tree-pretty-print.c: Likewise.
5343 * tree-profile.c: Likewise.
5344 * tree-scalar-evolution.c: Likewise.
5345 * tree-sra.c: Likewise.
5346 * tree-ssa-address.c: Likewise.
5347 * tree-ssa-alias.c: Likewise.
5348 * tree-ssa-ccp.c: Likewise.
5349 * tree-ssa-coalesce.c: Likewise.
5350 * tree-ssa-copy.c: Likewise.
5351 * tree-ssa-dce.c: Likewise.
5352 * tree-ssa-dom.c: Likewise.
5353 * tree-ssa-dse.c: Likewise.
5354 * tree-ssa-forwprop.c: Likewise.
5355 * tree-ssa-ifcombine.c: Likewise.
5356 * tree-ssa-live.c: Likewise.
5357 * tree-ssa-loop-ch.c: Likewise.
5358 * tree-ssa-loop-im.c: Likewise.
5359 * tree-ssa-loop-ivcanon.c: Likewise.
5360 * tree-ssa-loop-ivopts.c: Likewise.
5361 * tree-ssa-loop-manip.c: Likewise.
5362 * tree-ssa-loop-niter.c: Likewise.
5363 * tree-ssa-loop-prefetch.c: Likewise.
5364 * tree-ssa-loop-unswitch.c: Likewise.
5365 * tree-ssa-loop.c: Likewise.
5366 * tree-ssa-math-opts.c: Likewise.
5367 * tree-ssa-operands.c: Likewise.
5368 * tree-ssa-phiopt.c: Likewise.
5369 * tree-ssa-phiprop.c: Likewise.
5370 * tree-ssa-pre.c: Likewise.
5371 * tree-ssa-propagate.c: Likewise.
5372 * tree-ssa-reassoc.c: Likewise.
5373 * tree-ssa-sccvn.c: Likewise.
5374 * tree-ssa-scopedtables.c: Likewise.
5375 * tree-ssa-sink.c: Likewise.
5376 * tree-ssa-strlen.c: Likewise.
5377 * tree-ssa-structalias.c: Likewise.
5378 * tree-ssa-tail-merge.c: Likewise.
5379 * tree-ssa-ter.c: Likewise.
5380 * tree-ssa-threadedge.c: Likewise.
5381 * tree-ssa-threadupdate.c: Likewise.
5382 * tree-ssa-uncprop.c: Likewise.
5383 * tree-ssa-uninit.c: Likewise.
5384 * tree-ssa.c: Likewise.
5385 * tree-ssanames.c: Likewise.
5386 * tree-stdarg.c: Likewise.
5387 * tree-streamer-in.c: Likewise.
5388 * tree-streamer-out.c: Likewise.
5389 * tree-streamer.c: Likewise.
5390 * tree-switch-conversion.c: Likewise.
5391 * tree-tailcall.c: Likewise.
5392 * tree-vect-data-refs.c: Likewise.
5393 * tree-vect-generic.c: Likewise.
5394 * tree-vect-loop-manip.c: Likewise.
5395 * tree-vect-loop.c: Likewise.
5396 * tree-vect-patterns.c: Likewise.
5397 * tree-vect-slp.c: Likewise.
5398 * tree-vect-stmts.c: Likewise.
5399 * tree-vectorizer.c: Likewise.
5400 * tree-vrp.c: Likewise.
5403 * ubsan.c: Likewise.
5404 * value-prof.c: Likewise.
5405 * var-tracking.c: Likewise.
5406 * varasm.c: Likewise.
5407 * varpool.c: Likewise.
5408 * vtable-verify.c: Likewise.
5410 * wide-int-print.cc: Likewise.
5411 * wide-int.cc: Likewise.
5412 * xcoffout.c: Likewise.
5414 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
5416 * Makefile.in (NO_PIE_CFLAGS): New.
5417 (NO_PIE_FLAG): Likewise.
5418 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
5419 (NO_PIE_FLAG_FOR_BUILD): Likewise.
5420 (BUILD_NO_PIE_CFLAGS): Likewise.
5421 (BUILD_NO_PIE_FLAG): Likewise.
5422 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
5423 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
5424 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
5425 $(BUILD_NO_PIE_CFLAGS).
5426 (BUILD_CXXFLAGS): Likewise.
5427 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
5428 $(BUILD_NO_PIE_FLAG).
5429 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
5430 (BUILD_NO_PIE_FLAG): Likewise.
5431 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
5432 (NO_PIE_FLAG_FOR_BUILD): Likewise.
5433 * configure: Regenerated.
5435 2015-10-29 Richard Biener <rguenther@suse.de>
5438 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
5439 unsigned conditonal negation to ABS_EXPR.
5441 2015-10-29 Richard Biener <rguenther@suse.de>
5443 * gimple-match-head.c (gimple_simplify): Remove premature checking
5444 of builtin_decl_implicit of function calls we simplify.
5446 2015-10-29 Bin Cheng <bin.cheng@arm.com>
5448 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
5449 (get_computation_cost_at): Ditto.
5450 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
5453 2015-10-28 Tom de Vries <tom@codesourcery.com>
5455 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
5458 2015-10-28 Jason Merrill <jason@redhat.com>
5460 * Makefile.in (TAGS): Include libcpp and libiberty.
5462 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
5464 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
5465 (extract_omp_for_data): Remove OpenACC special handling of
5468 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
5469 (struct parallel): Update comment.
5470 (nvptx_reorg): Likewise.
5471 (nvptx_neuter): Cleanup whitespace.
5473 2015-10-28 Richard Henderson <rth@redhat.com>
5475 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
5477 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5480 * config/avr/predicates.md (low_io_address_operand): Don't
5481 consider MODE when computing upper bound.
5482 (io_address_operand): Likewise.
5484 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
5486 * fold-const.c (operand_equal_p): Do not verify that types are
5487 compatible for MEM_REFs.
5489 2015-10-28 Richard Biener <rguenther@suse.de>
5491 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
5492 in simplifying VEC_COND_EXPR conditions.
5494 2015-10-28 Tom de Vries <tom@codesourcery.com>
5496 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
5497 into vi_next of a full_var.
5499 2015-10-28 Tom de Vries <tom@codesourcery.com>
5501 * tree-ssa-structalias.c (new_var_info, make_heapvar)
5502 (make_constraint_from_restrict, make_constraint_from_global_restrict)
5503 (create_function_info_for, create_variable_info_for_1)
5504 (create_variable_info_for): Add and handle add_id parameter.
5505 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
5506 (init_base_vars): Add extra argument to calls to new_var_info.
5507 (get_vi_for_tree): Add extra argument to call to
5508 create_variable_info_for.
5509 (process_constraint, do_deref, process_all_all_constraints): Add extra
5510 argument to calls to new_scalar_tmp_constraint_exp.
5511 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
5512 argument to calls to make_heapvar.
5513 (make_restrict_var_constraints): Add extra argument to call to
5514 make_constraint_from_global_restrict.
5515 (intra_create_variable_infos): Add extra argument to call to
5516 create_variable_info_for_1.
5517 (ipa_pta_execute): Add extra argument to call to
5518 create_function_info_for.
5520 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5522 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
5523 (sibcall_value): Likewise.
5525 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
5527 * config/nvptx/nvptx.h (struct machine_function): Add
5529 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
5530 nvptx_expand_oacc_join): Declare.
5531 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
5532 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
5533 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
5534 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
5535 UNSPECV_JOINING, UNSPECV_JOIN): New.
5536 (BITS, BITD): New mode iterators.
5537 (br_true_uni, br_false_uni): New.
5538 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
5539 (oacc_dim_size, oacc_dim_pos): New.
5540 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
5541 (oacc_fork, oacc_join): New.
5542 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
5543 (worker_load<mode>, worker_store<mode>): New.
5544 (nvptx_barsync): New.
5545 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
5546 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
5547 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
5548 worker_bcast_sym): New.
5549 (nvptx_option_override): Initialize worker broadcast buffer.
5550 (nvptx_emit_forking, nvptx_emit_joining): New.
5551 (nvptx_init_axis_predicate): New.
5552 (nvptx_declare_function_name): Init axis predicates.
5553 (nvptx_expand_call): Add fork/join markers around routine call.
5554 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
5555 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
5556 (nvptx_gen_vcast): New.
5557 (struct wcast_data_t): New.
5558 (enum propagate_mask): New.
5559 (nvptx_gen_wcast): New.
5560 (nvptx_print_operand): Add 'S' case.
5561 (struct parallel): New.
5562 (parallel::parallel, parallel::~parallel): New.
5563 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
5564 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
5565 nvptx_find_par, nvptx_discover_pars): New.
5566 (nvptx_propagate): New.
5567 (vprop_gen, nvptx_vpropagate): New.
5568 (wprop_gen, nvptx_wpropagate): New.
5570 (nvptx_single, nvptx_skip_par): New.
5571 (nvptx_process_pars, nvptx_neuter_pars): New.
5572 (ntptx_reorg): Split blocks, generate parallel structure, apply
5574 (nvptx_cannot_copy_insn_p): New.
5575 (nvptx_file_end): Emit worker broadcast decl.
5576 (nvptx_goacc_fork_join): New.
5577 (TARGET_CANNOT_COPY_INSN_P): Override.
5578 (TARGET_GOACC_FORK_JOIN): Override.
5580 2015-10-28 Richard Biener <rguenther@suse.de>
5582 * fold-const.c (negate_expr_p): Adjust the division case to
5583 properly avoid introducing undefined overflow.
5584 (fold_negate_expr): Likewise.
5586 2015-10-28 Richard Biener <rguenther@suse.de>
5588 PR tree-optimization/65962
5589 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5590 Avoid creating loop carried dependences also for outer loops
5591 of the loop a use to replace is in.
5593 2015-10-28 Richard Biener <rguenther@suse.de>
5595 * common.opt (fchecking): New flag controlling flag_checking.
5596 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
5597 * timevar.c (timer::print): Adjust output.
5598 * doc/invoke.texi (fchecking): Document.
5600 2015-10-28 Richard Biener <rguenther@suse.de>
5603 * fold-const.c (negate_expr_p): We cannot negate plus or minus
5604 if overflow is not wrapping. Likewise multiplication unless
5605 one operand is constant and not power of two.
5606 (fold_negate_expr): Adjust accordingly.
5608 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5610 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
5612 (is_oacc_parallel, is_oacc_kernels): New.
5613 (enclosing_target_ctx): May return NULL.
5614 (ctx_in_oacc_kernels_region): New.
5615 (check_oacc_kernel_gwv): New.
5616 (oacc_loop_or_target_p): Delete.
5617 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
5618 operands. Strip reductions fro kernels.
5619 (scan_omp_target): Don't calculate gwv mask.
5620 (lower_oacc_head_mark, lower_oacc_loop_marker,
5621 lower_oacc_head_tail): New.
5622 (struct oacc_collapse): New.
5623 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
5624 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5625 Remove OpenACC handling.
5626 (expand_oacc_for): New.
5627 (expand_omp_for): Call expand_oacc_for.
5628 (lower_omp_for): Call lower_oacc_head_tail.
5630 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
5632 * attribs.c (check_attribute_tables): New function, broken out from...
5633 (init_attributes): Use it.
5634 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
5635 gcc_checking_assert and checking_* functions to eliminate
5636 ENABLE_CHECKING conditionals.
5637 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
5638 (pass_expand::execute): Likewise.
5639 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
5640 * cgraphunit.c (mark_functions_to_output): Likewise.
5641 (cgraph_node::expand_thunk): Likewise.
5642 (symbol_table::compile): Likewise.
5643 * ddg.c (add_cross_iteration_register_deps): Likewise.
5644 (create_ddg_all_sccs): Likewise.
5645 * df-core.c (df_finish_pass, df_analyze): Likewise.
5646 * diagnostic-core.h: Likewise.
5647 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
5648 * dominance.c (calculate_dominance_info): Likewise.
5649 * dwarf2out.c (add_AT_die_ref): Likewise.
5650 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
5651 (loc_list_from_tree, gen_lexical_block_die): Likewise.
5652 gen_type_die_with_usage, gen_type_die): Likewise.
5653 (dwarf2out_decl): Likewise.
5654 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
5655 * except.c (duplicate_eh_regions): Likewise.
5656 * fwprop.c (register_active_defs, update_df_init): Likewise.
5657 (fwprop_init, fwprop_done): Likewise.
5658 (update_uses): Likewise.
5659 * ggc-page.c (ggc_grow): Likewise.
5660 * gimplify.c (gimplify_body): Likewise.
5661 (gimplify_hasher::equal): Likewise.
5662 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
5663 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
5665 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
5666 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
5667 * hash-table.h (::find_empty_slot_for_expand): Likewise.
5668 * ifcvt.c (if_convert): Likewise.
5669 * ipa-cp.c (ipcp_propagate_stage): Likewise.
5670 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
5671 (odr_type_p, odr_types_equivalent_p): Likewise.
5672 (add_type_duplicate, get_odr_type): Likewise.
5673 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
5674 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
5675 (sem_item_optimizer::verify_classes): Likewise.
5676 (sem_item_optimizer::traverse_congruence_split): Likewise.
5677 (sem_item_optimizer::checking_verify_classes): New.
5678 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
5680 * cfgrtl.c (commit_edge_insertions): Likewise.
5681 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
5682 (rtl_flow_call_edges_add): Likewise.
5683 * cgraph.c (symbol_table::create_edge): Likewise.
5684 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5685 * cgraph.h (symtab_node): Likewise.
5686 (symtab_node::checking_verify_symtab_nodes): Define.
5687 (cgraph_node::checking_verify_cgraph_nodes): Define.
5688 * cfghooks.h (checking_verify_flow_info): Define.
5689 * cfgloop.h (checking_verify_loop_structure): Define.
5690 * dominance.h (checking_verify_dominators): Define.
5691 * et-forest.c: Fix comment.
5692 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
5693 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5694 ENABLE_CHECKING conditionals.
5695 * ipa-inline-transform.c (save_inline_function_body): Likewise.
5696 * ipa-inline.c (inline_small_functions): Likewise.
5697 (early_inliner): Likewise.
5698 * ipa-inline.h (estimate_edge_growth): Likewise.
5699 * ipa-visibility.c (function_and_variable_visibility): Likewise.
5700 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5701 (ipa_single_use): Likewise.
5702 * ira-int.h: Likewise.
5703 * ira.c (ira): Likewise.
5704 * loop-doloop.c (doloop_optimize_loops): Likewise.
5705 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
5706 * loop-invariant.c (move_loop_invariants): Likewise.
5707 * lra-assigns.c (lra_assign): Likewise.
5708 * lra-constraints.c (lra_constraints): Likewise.
5709 * lra-eliminations.c (lra_eliminate): Likewise.
5710 * lra-int.h (struct lra_reg): Likewise.
5711 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
5712 (lra_create_live_ranges_1): Likewise.
5713 * lra-remat.c (create_remat_bb_data): Likewise.
5714 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
5716 (check_rtl): Always define. Remove incorrect guard around
5717 extract_constrain_insn call.
5718 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
5719 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5720 ENABLE_CHECKING conditionals.
5721 * lto-streamer-out.c (DFS::DFS): Likewise.
5722 (lto_output): Likewise.
5723 * lto-streamer.c (lto_streamer_init): Likewise.
5724 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
5725 expand_omp_target, execute_expand_omp): Likewise.
5726 (lower_omp_target): Likewise.
5727 * passes.c (execute_function_todo): Likewise.
5728 (execute_todo, execute_one_pass): Likewise.
5729 (verify_curr_properties): Always define.
5730 * predict.c (tree_estimate_probability: Use flag_checking,
5731 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5732 ENABLE_CHECKING conditionals.
5733 (propagate_freq): Likewise.
5734 * pretty-print.c (pp_format): Likewise.
5735 * real.c (real_to_decimal_for_mode): Likewise.
5736 * recog.c (split_all_insns): Likewise.
5737 * regcprop.c (kill_value_one_regno): Likewise.
5738 (copy_value): Likewise.
5739 (validate_value_data): Define unconditionally.
5740 * reload.c: Fix comment.
5741 * timevar.c: Include options.h
5742 * tree-ssa.h (checking_verify_ssa): Define.
5743 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
5744 * sched-deps.c (CHECK): Remove unused macro.
5745 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
5746 gcc_checking_assert and checking_* functions to eliminate
5747 ENABLE_CHECKING conditionals.
5748 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
5749 * sel-sched.c (struct moveop_static_params): Likewise.
5750 (find_best_reg_for_expr, move_cond_jump): Likewise.
5751 (move_op_orig_expr_not_found): Likewise.
5752 (code_motion_process_successors, move_op): Likewise.
5753 * ssa-iterators.h (first_readonly_imm_use): Likewise.
5754 (next_readonly_imm_use): Likewise.
5755 * store-motion.c (compute_store_table): Likewise.
5756 * symbol-summary.h (function_summary::function_summary): Likewise.
5757 * target.h (cumulative_args_t): Likewise.
5758 (get_cumulative_args, pack_cumulative_args): Likewise.
5759 * timevar.c: (timer::print): Likewise.
5760 * trans-mem.c (ipa_tm_execute): Likewise.
5761 * tree-cfg.c (move_stmt_op): Likewise.
5762 (move_sese_region_to_fn): Likewise.
5763 (gimple_flow_call_edges_add): Likewise.
5764 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
5766 * tree-eh.c (remove_unreachable_handlers): Likewise.
5767 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
5768 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
5769 * tree-into-ssa.c (update_ssa): Likewise.
5770 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
5771 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
5772 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
5773 * tree-predcom.c (suitable_component_p): Likewise.
5774 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
5775 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
5776 * tree-ssa-live.c (verify_live_on_entry): Likewise.
5777 * tree-ssa-live.h (register_ssa_partition): Likewise.
5778 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
5779 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
5780 (tree_transform_and_unroll_loop): Likewise.
5781 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
5782 * tree-ssa-operands.c (get_expr_operands): Likewise.
5783 * tree-ssa-propagate.c (replace_exp_1): Likewise.
5784 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
5785 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
5786 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
5787 * tree-ssanames.c (release_ssa_name_fn): Likewise.
5788 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
5789 * tree-vect-loop-manip.c
5790 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
5791 (slpeel_checking_verify_cfg_after_peeling): Likewise.
5792 (vect_do_peeling_for_loop_bound): Likewise.
5793 (vect_do_peeling_for_alignment): Likewise.
5794 * tree-vrp.c (supports_overflow_infinity): Likewise.
5795 (set_value_range): Likewise.
5796 * tree.c (free_lang_data_in_cgraph): Likewise.
5797 * value-prof.c (gimple_remove_histogram_value): Likewise.
5798 (free_hist): Likewise.
5799 * var-tracking.c (canonicalize_values_star): Likewise.
5800 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
5802 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5804 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
5805 IFN_GOACC_LOOP): New.
5806 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
5807 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
5808 IFN_UNIQUE_OACC_TAIL_MARK.
5809 (enum ifn_goacc_loop_kind): New.
5810 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
5811 IFN_UNIQUE_OACC_JOIN cases.
5812 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
5813 (expand_GOACC_LOOP): New.
5814 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
5815 * omp-low.c: Include gimple-pretty-print.h.
5816 (struct oacc_loop): New.
5817 (enum oacc_loop_flags): New.
5818 (oacc_thread_numbers): New.
5819 (oacc_xform_loop): New.
5820 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
5821 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
5822 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
5823 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
5824 oacc_loop_discovery): New.
5825 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
5826 oacc_loop_process): New.
5827 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
5828 (execute_oacc_device_lower): Discover & process loops. Process
5830 * target.def (goacc.fork_join): Change sense of hook, clarify
5832 * doc/tm.texi: Regenerated.
5834 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5836 * target-insns.def (oacc_fork, oacc_join): Define.
5837 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
5838 (goacc.fork_join): New GOACC hook.
5839 * targhooks.h (default_goacc_fork_join): Declare.
5840 * omp-low.c (default_goacc_forkjoin): New.
5841 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
5842 * doc/tm.texi: Regenerate.
5844 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5846 * omp-low.c (oacc_init_rediction_array): New.
5847 (oacc_initialize_reduction_data): Initialize array.
5849 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5851 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
5853 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5855 * internal-fn.c (expand_UNIQUE): New.
5856 * internal-fn.h (enum ifn_unique_kind): New.
5857 * internal-fn.def (IFN_UNIQUE): New.
5858 * target-insns.def (unique): Define.
5859 * gimple.h (gimple_call_internal_unique_p): New.
5860 * gimple.c (gimple_call_same_target_p): Check internal fn
5862 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
5863 * tree-ssa-threadedge.c
5864 (record_temporary_equivalences_from_stmts): Likewise.
5865 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
5867 2015-10-27 Richard Henderson <rth@redhat.com>
5870 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
5871 narrowing subregs on SSE and MMX registers.
5872 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
5873 appear to be sub-words of multi-register pseudos must be rejected.
5874 * doc/tm.texi: Regenerate.
5876 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5879 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
5880 operands[0] is a reg before taking its REGNO in split condition.
5881 (*movdi_aarch64): Likewise.
5883 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5885 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
5886 Handle floating point inner modes properly.
5888 2015-10-27 Alan Hayward <alan.hayward@arm.com>
5891 (vectorizable_live_operation): Change iterator.
5893 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5894 Aditya Kumar <aditya.k7@samsung.com>
5896 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
5897 function to schedule based on isl_schedule_node.
5898 (get_schedule_map_st): New schedule optimizer based on
5900 (scop_get_domains): New. Return the isl_union_set containing the
5901 domains of all the pbbs.
5902 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
5904 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
5907 * calls.c (prepare_call_address): Don't handle -fno-plt here.
5908 * config/i386/i386.c (ix86_expand_call): Generate indirect call
5909 via GOT for -fno-plt. Support indirect call via GOT for x32.
5910 * config/i386/predicates.md (sibcall_memory_operand): Allow
5913 2015-10-27 Richard Biener <rguenther@suse.de>
5915 PR tree-optimization/68104
5916 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
5917 strided access check ...
5918 (vect_compute_data_refs_alignment): ... here.
5920 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
5921 Joseph Myers <joseph@codesourcery.com>
5922 Mark Shinwell <shinwell@codesourcery.com>
5923 Andrew Stubbs <ams@codesourcery.com>
5924 Rich Felker <dalias@libc.org>
5926 * config.gcc: Handle --enable-fdpic.
5927 * config/sh/constraints.md (Ccl): New constraint.
5928 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
5929 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
5931 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
5933 * config/sh/sh-protos.h (function_symbol_result): New struct.
5934 (function_symbol): Return function_symbol_result.
5935 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
5937 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
5939 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
5940 (sh_option_override): Force -fPIC if FDPIC is in effect.
5941 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
5942 UNSPEC_GOTOFFFUNCDESC cases.
5943 (prepare_move_operands): Use FDPIC initial GOT register for
5944 TLS-related GOT access; inhibit cross-section address offset constants
5946 (sh_assemble_integer): New function.
5947 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
5948 PC-relative call sites.
5949 (expand_ashiftrt): Adapt invocation of function_symbol.
5950 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
5951 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
5952 UNSPEC_GOTOFFFUNCDESC.
5953 (legitimize_pic_address): Resolve function symbols to function
5954 descriptors for FDPIC. Do not use GOT-relative addressing for local
5955 data that may be read-only on FDPIC.
5956 (sh_emit_storesi, sh_emit_storehi): New functions.
5957 (sh_trampoline_init): Generate FDPIC trampolines.
5958 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
5959 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
5960 (sh_output_mi_thunk): Generate FDPIC call.
5961 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
5962 FDPIC, generate call site labels to use PC-relative addressing rather
5963 than GOT-relative addressing.
5964 (sh_conditional_register_usage): Make PIC register fixed and call used
5965 when FDPIC is in effect.
5966 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
5967 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
5968 sh_get_fdpic_reg_initial_val): New functions.
5969 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
5971 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
5972 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
5973 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
5974 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
5976 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
5977 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
5978 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
5979 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
5981 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
5982 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
5983 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
5984 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
5985 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
5986 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
5987 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
5988 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
5989 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
5990 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
5991 block_move_real, block_lump_real, block_move_real_i4,
5992 block_lump_real_i4): Add support for FDPIC calls.
5993 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
5994 call_value_pop): Adjust for new function_symbol signature.
5995 * config/sh/sh.opt (-mfdpic): New option.
5996 * doc/install.texi (Options specification): Document --enable-fdpic.
5997 * doc/invoke.texi (SH Options): Document -mfdpic.
6000 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
6002 PR tree-optimization/65963
6003 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6004 LSHIFT_EXPRs as equivalent MULT_EXPRs.
6006 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6009 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
6010 * config/arm/constraints.md (Dp): Update callsite.
6011 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
6013 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6015 * builtins.c (fold_builtin_load_exponent): Rename to...
6016 (fold_const_builtin_load_exponent): ...this and only handle
6018 (fold_builtin_2): Update accordingly.
6019 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
6021 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6023 * builtins.c (fold_builtin_logb): Rename to...
6024 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
6025 (fold_builtin_significand): Rename to...
6026 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
6027 (fold_builtin_1): Update accordingly.
6029 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6031 * builtins.c (fold_builtin_fmin_fmax): Delete.
6032 (fold_builtin_2): Handle constant fmin and fmax arguments here.
6033 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
6035 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
6037 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
6038 for register extension into sign and zero register extension.
6039 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
6040 for sign and zero register extension.
6041 (cortexa57_addrcost_table): Likewise.
6042 (xgene1_addrcost_table): Likewise.
6044 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6046 * fold-const.c (fold_minmax): Delete.
6047 (fold_binary_loc): Don't call it.
6048 * match.pd: Add rules previously handled by fold_minmax.
6050 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6052 * builtins.c (fold_builtin_fma): Remove constant handling.
6053 (fold_builtin_3): Handle constant fma arguments here.
6055 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6057 * builtins.c (fold_builtin_fabs): Remove constant handling.
6058 (fold_builtin_abs): Likewise.
6060 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6062 * builtins.c (fold_builtin_copysign): Delete.
6063 (fold_builtin_2): Handle constant copysign arguments here.
6064 * match.pd: Add rules previously handled by fold_builtin_copysign.
6066 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6068 * builtins.c (fold_builtin_signbit): Delete.
6069 (fold_builtin_2): Handle constant signbit arguments here.
6070 * match.pd: Add rules previously handled by fold_builtin_signbit.
6072 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6074 * match.pd: Handle sqrt(x) cmp 0 specially.
6076 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
6078 * tree-vect-generic.c (expand_vector_operations_1): Check
6079 optab type before using it.
6081 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6083 * config/aarch64/aarch64-protos.h
6084 (struct tune_params): Add autoprefetcher_model field.
6085 * config/aarch64/aarch64.c: Include params.h
6086 (generic_tunings): Specify autoprefetcher_model value.
6087 (cortexa53_tunings): Likewise.
6088 (cortexa57_tunings): Likewise.
6089 (cortexa72_tunings): Likewise.
6090 (thunderx_tunings): Likewise.
6091 (xgene1_tunings): Likewise.
6092 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
6093 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
6094 (aarch64_override_options_internal): Set
6095 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
6097 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6099 * builtins.c (fold_builtin_exponent): Delete.
6100 (fold_builtin_2): Handle constant expN arguments here.
6101 * match.pd: Fold expN(logN(x)) -> x.
6103 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6105 * builtins.c (fold_builtin_powi): Delete.
6106 (fold_builtin_2): Handle constant powi arguments here.
6107 * match.pd: Add rules previously handled by fold_builtin_powi.
6109 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6111 * builtins.c (fold_builtin_pow): Delete in favor of...
6112 (fold_const_builtin_pow): ...this new function. Only handle constant
6114 (fold_builtin_2): Update accordingly.
6115 * match.pd: Add rules previously handled by fold_builtin_pow.
6117 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6119 * builtins.c (fold_builtin_hypot): Delete.
6120 (fold_builtin_2): Handle constant hypot arguments here.
6121 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
6122 hypot(x, x) to fabs(x)*sqrt(2).
6124 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6126 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
6127 instead of make_ssa_name if not yet in SSA form.
6129 2015-10-27 Richard Biener <rguenther@suse.de>
6131 * cfg.c (free_edge): Add function argument and use it instead of cfun.
6132 (clear_edges): Likewise.
6133 * cfg.h (clear_edges): Adjust prototype.
6134 * cfgexpand.c (pass_expand::execute): Adjust.
6135 * cfgloop.c (release_recorded_exits): Add function argument and use
6137 * cfgloop.h (release_recorded_exits): Adjust prototype.
6138 (loops_state_satisfies_p): Add overload with function argument.
6139 (loops_state_set): Likewise.
6140 (loops_state_clear): Likewise.
6141 (struct loop_iterator): Add function argument to constructor
6142 and iterator and use it instead of cfun.
6143 (FOR_EACH_LOOP_FN): New macro.
6144 (loop_optimizer_finalize): Add overload with function argument.
6145 * loop-init.c (loop_optimizer_init): Adjust.
6146 (fix_loop_structure): Likewise.
6147 (loop_optimizer_finaliz): Add function argument and use it
6149 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
6150 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
6151 * cgraph.c (release_function_body): Do not push/pop cfun.
6152 * final.c (rest_of_clean_state): Adjust.
6153 * graphite.c (graphite_finalize): Likewise.
6154 * tree-ssa-copy.c (fini_copy_prop): Likewise.
6155 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
6156 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
6157 (tree_unroll_loops_completely): Likewise.
6158 (pass_complete_unrolli::execute): Likewise.
6159 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
6160 Add function argument and use it instead of cfun.
6161 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
6163 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
6164 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
6166 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
6167 * tree-ssanames.c (fini_ssanames): Add function argument and use it
6169 * tree-ssanames.c (fini_ssanames): Adjust prototype.
6170 * tree-vrp.c (execute_vrp): Adjust.
6171 * value-prof.c (free_histograms): Add function argument and use it
6173 * value-prof.h (free_histograms): Adjust prototype.
6175 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6177 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
6178 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
6179 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
6181 2015-10-27 Tom de Vries <tom@codesourcery.com>
6183 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
6186 2015-10-27 Bin Cheng <bin.cheng@arm.com>
6188 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
6189 (inv_can_prop_to_addr_use): New function.
6190 (record_use): Call can_prop_to_addr_uses, set the new field.
6191 (get_inv_cost): Count cost if inv can't be propagated into its
6194 2015-10-26 Doug Evans <dje@google.com>
6196 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
6198 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
6200 * match.pd (fold_widened_comparison): Apply simplifications to all
6203 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
6205 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
6206 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
6207 * doc/tm.texi: Regenerated.
6208 * reorg.c (dbr_schedule): Use new hook.
6209 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
6211 2015-10-26 Jeff Law <law@redhat.com>
6213 PR tree-optimization/68013
6214 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6215 Make sure the first block in the path is in VISITED_BBs.
6217 2015-10-26 Richard Biener <rguenther@suse.de>
6218 Dominik Vogt <vogt@linux.vnet.ibm.com>
6221 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
6222 Properly prune ref->ref for accesses outside of ref.
6224 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
6226 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
6227 new statements to be inserted if inplace. Allow calls to have
6230 2015-10-26 Richard Biener <rguenther@suse.de>
6232 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
6233 (do_valueize): New function.
6234 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
6236 * tree-ssa-threadedge.c: Remove builtins.h include, include
6238 (fold_assignment_stmt): Remove.
6239 (threadedge_valueize): New function.
6240 (record_temporary_equivalences_from_stmts): Use
6241 gimple_fold_stmt_to_constant_1, note additional cleanup
6244 2015-10-26 Richard Biener <rguenther@suse.de>
6246 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
6247 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
6249 2015-10-26 Alan Hayward <alan.hayward@arm.com>
6251 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
6252 VEC_COND_EXPR types.
6254 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6256 * auto-inc-dec.c (insert_move_insn_before): Delete.
6257 (attempt_change): Remember to cost the simple move in the
6258 FORM_PRE_ADD and FORM_POST_ADD cases.
6260 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
6263 * config/sh/sh.c (sh_vector_mode_supported_p): Use
6264 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
6266 2015-10-26 Tom de Vries <tom@codesourcery.com>
6268 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
6270 (intra_create_variable_infos): ... here.
6272 2015-10-26 Tom de Vries <tom@codesourcery.com>
6274 * tree-ssa-structalias.c (intra_create_variable_infos): Add
6275 restrict_pointer_p and recursive_restrict_p variables.
6277 2015-10-26 Tom de Vries <tom@codesourcery.com>
6279 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
6280 get_vi_for_tree call.
6282 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6285 * optabs.c (expand_atomic_compare_and_swap): Handle case when
6286 ptarget_oval or ptarget_bool are const0_rtx.
6288 2015-10-26 Christian Bruel <christian.bruel@st.com>
6290 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
6291 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
6292 * cp/method.c (implicitly_declare_fn): Likewise.
6293 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
6294 * java/class.c (add_method_1): Likewise.
6296 2015-10-26 Richard Biener <rguenther@suse.de>
6298 * alloc-pool.h (base_pool_allocator): Use placement new.
6299 (base_pool_allocator::remove): Likewise. Compute size outside of
6302 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
6304 * builtins.c (do_real_to_int_conversion): New function.
6305 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
6306 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
6308 * match.pd: Add rules previously handled by fold_fixed_mathfn
6309 and fold_builtin_int_roundingfn.
6311 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
6313 * match.pd: Use macros to define built-in operator lists.
6315 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
6316 Richard Biener <rguenther@suse.de>
6318 * genmatch.c (dt_simplify::gen): Skip captures that are
6320 (parser::parse_expr): Allow captures in results too.
6321 * builtins.c (fold_builtin_cexp): Delete.
6322 (fold_builtin_1): Handle constant cexp arguments here.
6323 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
6325 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
6327 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
6328 conditional compilation.
6329 (base_pool_allocator::remove): Use flag_checking.
6331 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
6333 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
6336 * dojump.c (do_compare_and_jump): Canonicalize both function and
6339 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
6342 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
6345 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6348 * ipa-polymorphic-call.c
6349 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
6350 instance offset with offset of outer type.
6352 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6354 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
6356 2015-10-23 Caroline Tice <cmtice@google.com>
6358 (from Richard Biener
6359 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
6360 call to iterative_hash_host_wide_int.
6362 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
6364 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
6367 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
6369 * tree-vect-generic.c (expand_vector_operations_1): Check
6370 optab exists before use it.
6372 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
6374 * tree-vect-generic.c (expand_vector_condition): Avoid
6375 uninitialized variable warning.
6377 2015-10-23 Jeff Law <law@redhat.com>
6379 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
6381 (execute_todo): Call it here.
6382 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
6384 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
6386 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
6387 Szabolcs Nagy <szabolcs.nagy@arm.com>
6389 * config.gcc (enable_secureplt): Add *-linux*-musl*.
6391 2015-10-23 Jeff Law <law@redhat.com>
6393 PR tree-optimization/67830
6394 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
6395 Explicitly verify the mask has no bits outside the type of
6396 the innermost operands.
6398 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
6399 Szabolcs Nagy <szabolcs.nagy@arm.com>
6401 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
6402 (MUSL_DYNAMIC_LINKER64): Define.
6403 (GNU_USER_DYNAMIC_LINKER32): Update.
6404 (GNU_USER_DYNAMIC_LINKER64): Update.
6405 (CHOOSE_DYNAMIC_LINKER): Update.
6407 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
6408 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
6409 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
6410 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
6411 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
6412 (CHOOSE_DYNAMIC_LINKER): Update.
6413 (INCLUDE_DEFAULTS): Redefine.
6415 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
6417 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6419 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
6420 comparing addresses.
6422 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6424 * fold-const.c (operand_equal_p): Handle matching of vector
6427 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
6429 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
6431 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
6432 Andrew Pinski <apinski@cavium.com>
6434 PR rtl-optimization/67736
6435 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
6438 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
6441 * tree.c (build_truth_vector_type): Support BLK mode
6442 returned for boolean vector.
6444 2015-10-23 Alan Hayward <alan.hayward@arm.com>
6446 PR tree-optimization/65947
6448 (vect_is_simple_reduction_1): Find condition reductions.
6449 (vect_model_reduction_cost): Add condition reduction costs.
6450 (get_initial_def_for_reduction): Add condition reduction initial var.
6451 (vect_create_epilog_for_reduction): Add condition reduction epilog.
6452 (vectorizable_reduction): Condition reduction support.
6453 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
6454 * doc/sourcebuild.texi (Vector-specific attributes): Document
6457 2015-10-23 Richard Biener <rguenther@suse.de>
6459 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
6462 2015-10-23 Richard Biener <rguenther@suse.de>
6463 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6465 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
6466 into (A ^ B) - B to match.pd
6467 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
6469 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
6471 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
6473 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
6475 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
6477 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
6478 INTEGER_CST@1)): New simplifier.
6480 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
6482 * builtins.c (integer_valued_real_p): Move to fold-const.c.
6483 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
6484 (fold_builtin_ceil, fold_builtin_round): Delete.
6485 (fold_builtin_1): Handle constant trunc, floor, ceil and round
6487 * convert.c (convert_to_real): Remove narrowing of rounding
6489 * fold-const.h (integer_valued_real_unary_p)
6490 (integer_valued_real_binary_p, integer_valued_real_call_p)
6491 (integer_valued_real_single_p, integer_valued_real_p): Declare.
6492 * fold-const.c (tree_single_nonnegative_warnv_p): Move
6493 name_registered_for_update_p check to SSA_NAME case statement.
6494 Don't call tree_simple_nonnegative_warnv_p for SSA names.
6495 (integer_valued_real_unary_p, integer_valued_real_binary_p)
6496 (integer_valued_real_call_p, integer_valued_real_single_p)
6497 (integer_valued_real_invalid_p): New functions.
6498 (integer_valued_real_p): Move from fold-const.c and rework
6499 to call the functions above. Handle SSA names.
6500 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
6501 * gimple-fold.c (gimple_assign_integer_valued_real_p)
6502 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
6503 (gimple_stmt_integer_valued_real_p): New functions.
6504 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
6505 Fold f(x)->x for the same f if x is known to be integer-valued.
6506 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
6507 the result. Canonicalize floor(x) as trunc(x) if x is
6510 2015-10-23 Tom de Vries <tom@codesourcery.com>
6512 * tree-ssa-structalias.c (intra_create_variable_infos): Use
6513 make_constraint_from.
6515 2015-10-23 Tom de Vries <tom@codesourcery.com>
6517 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
6518 setting of is_full_var in case of a single field.
6520 2015-10-22 Martin Sebor <msebor@redhat.com>
6523 * config/i386/i386.opt: Add missing periods to the ends of sentences.
6524 * config/msp430/msp430.opt: Same.
6526 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
6528 * doc/extend.exp (Global Register Variables): Rewrite.
6530 2015-10-22 Jeff Law <law@redhat.com>
6532 * genattrtab.c (main): If we do not have any annul-true or annul-false
6533 slots, then write out a dummy eligible_for_annul_true or
6534 eligible_for_annul_false as needed.
6536 2015-10-22 Nick Clifton <nickc@redhat.com>
6538 * config/msp430/msp430.opt: Add -msilicon-errata and
6539 -msilicon-errata-warn.
6540 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
6542 * doc/invoke.texi: Document new options.
6544 2015-10-22 Richard Biener <rguenther@suse.de>
6546 PR tree-optimization/58497
6547 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
6548 (expand_vector_operations_1): Use it. Lower operations on
6549 all uniform vectors to scalar operations if the HW supports it.
6551 2015-10-22 Richard Biener <rguenther@suse.de>
6553 PR tree-optimization/19049
6554 PR tree-optimization/65962
6555 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
6556 to strided accesses if single-element interleaving doesn't work.
6558 2015-10-22 Richard Biener <rguenther@suse.de>
6562 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
6563 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
6564 (expand_unop): Likewise.
6566 2015-10-22 Richard Biener <rguenther@suse.de>
6568 * fold-const.c (fold_addr_of_array_ref_difference): Properly
6569 convert operands before folding a MINUS_EXPR.
6570 (fold_binary_loc): Move simplification of MINUS_EXPR on
6571 converted POINTER_PLUS_EXPRs ...
6572 * match.pd: ... here.
6574 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
6576 * builtins.c (fold_builtin_tan): Delete.
6577 (fold_builtin_1): Handle constant tan arguments here.
6578 * match.pd: Simplify (tan (atan x)) to x.
6580 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
6582 * builtins.c (fold_builtin_cproj): Delete.
6583 (fold_builtin_1): Handle constant arguments here.
6584 (build_complex_cproj): Move and rename to...
6585 * tree.c: (build_complex_inf): ...this.
6586 * tree.h (build_complex_inf): Declare.
6587 * match.pd: Fold cproj(x)->x if x has no infinity.
6588 Use build_complex_inf for existing cproj rules.
6590 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6593 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
6594 already have a comparison result.
6596 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6599 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
6600 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
6601 (aarch64_classify_address): Likewise.
6602 (aarch64_secondary_reload): Likewise.
6603 (aarch64_override_options_after_change_1): Adjust.
6604 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
6605 Use aarch64_nopcrelative_literal_loads.
6606 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
6607 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
6610 2015-10-21 Martin Sebor <msebor@redhat.com>
6613 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
6614 (print_filtered_help): Reference aliased option's name and encourage
6615 readers to use it in preference to the alias if the former is not
6616 documented. Mention when using an option is diagnosed.
6617 * gcc.c (display_help): End each sentence with a period.
6619 * common.opt: End each sentence that describes an option with
6621 * config/aarch64/aarch64.opt: Same.
6622 * config/alpha/alpha.opt: Same.
6623 * config/arc/arc.opt: Same.
6624 * config/arm/arm.opt: Same.
6625 * config/avr/avr.opt: Same.
6626 * config/bfin/bfin.opt: Same.
6627 * config/c6x/c6x.opt: Same.
6628 * config/cr16/cr16.opt: Same.
6629 * config/cris/cris.opt: Same.
6630 * config/cris/linux.opt: Same.
6631 * config/darwin.opt: Same.
6632 * config/epiphany/epiphany.opt: Same.
6633 * config/fr30/fr30.opt: Same.
6634 * config/frv/frv.opt: Same.
6635 * config/ft32/ft32.opt: Same.
6636 * config/g.opt: Same.
6637 * config/h8300/h8300.opt: Same.
6638 * config/i386/cygming.opt: Same.
6639 * config/i386/djgpp.opt: Same.
6640 * config/i386/i386.opt: Same.
6641 * config/i386/interix.opt: Same.
6642 * config/i386/mingw-w64.opt: Same.
6643 * config/i386/mingw.opt: Same.
6644 * config/ia64/ia64.opt: Same.
6645 * config/ia64/ilp32.opt: Same.
6646 * config/iq2000/iq2000.opt: Same.
6647 * config/linux.opt: Same.
6648 * config/lm32/lm32.opt: Same.
6649 * config/lynx.opt: Same.
6650 * config/m32c/m32c.opt: Same.
6651 * config/m32r/m32r.opt: Same.
6652 * config/m68k/ieee.opt: Same.
6653 * config/m68k/m68k.opt: Same.
6654 * config/mcore/mcore.opt: Same.
6655 * config/mep/mep.opt: Same.
6656 * config/microblaze/microblaze.opt: Same.
6657 * config/mips/mips.opt: Same.
6658 * config/mmix/mmix.opt: Same.
6659 * config/mn10300/mn10300.opt: Same.
6660 * config/moxie/moxie.opt: Same.
6661 * config/msp430/msp430.opt: Same.
6662 * config/nios2/elf.opt: Same.
6663 * config/nios2/nios2.opt: Same.
6664 * config/nvptx/nvptx.opt: Same.
6665 * config/pa/pa-hpux.opt: Same.
6666 * config/pa/pa-hpux1010.opt: Same.
6667 * config/pa/pa-hpux1111.opt: Same.
6668 * config/pa/pa-hpux1131.opt: Same.
6669 * config/pa/pa.opt: Same.
6670 * config/pa/pa64-hpux.opt: Same.
6671 * config/pdp11/pdp11.opt: Same.
6672 * config/rl78/rl78.opt: Same.
6673 * config/rs6000/476.opt: Same.
6674 * config/rs6000/aix64.opt: Same.
6675 * config/rs6000/darwin.opt: Same.
6676 * config/rs6000/linux64.opt: Same.
6677 * config/rs6000/rs6000.opt: Same.
6678 * config/rs6000/sysv4.opt: Same.
6679 * config/s390/s390.opt: Same.
6680 * config/s390/tpf.opt: Same.
6681 * config/sh/sh.opt: Same.
6682 * config/sol2.opt: Same.
6683 * config/sparc/long-double-switch.opt: Same.
6684 * config/sparc/sparc.opt: Same.
6685 * config/spu/spu.opt: Same.
6686 * config/stormy16/stormy16.opt: Same.
6687 * config/tilegx/tilegx.opt: Same.
6688 * config/tilepro/tilepro.opt: Same.
6689 * config/v850/v850.opt: Same.
6690 * config/vax/vax.opt: Same.
6691 * config/visium/visium.opt: Same.
6692 * config/vms/vms.opt: Same.
6693 * config/vxworks.opt: Same.
6694 * config/xtensa/xtensa.opt: Same.
6696 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6697 Sebastian Pop <s.pop@samsung.com>
6699 * graphite-scop-detection.c (parameter_index_in_region): Update call to
6700 invariant_in_sese_p_rec.
6701 * graphite-sese-to-poly.c (extract_affine): Same.
6702 * sese.c (invariant_in_sese_p_rec): Pass in an extra
6703 parameter has_vdefs.
6704 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
6705 variable depends on virtual definitions in the current region.
6706 * sese.h (invariant_in_sese_p_rec): Update declaration.
6708 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6709 Sebastian Pop <s.pop@samsung.com>
6711 * graphite-scop-detection.c (build_scops): Do not handle scops
6712 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
6713 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
6715 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
6717 * config.in: Regenerate.
6718 * configure: Regenerate.
6719 * configure.ac (CHECKING_P): Define.
6720 * system.h: Use CHECKING_P.
6722 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6725 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
6726 is negative we don't know the type.
6727 (check_stmt_for_type_change): Skip constructors of non-polymorphic
6728 types as those won't help devirutalization.
6730 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6732 * fold-const.c (operand_equal_p): Add code matching empty constructors.
6734 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
6736 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
6738 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
6739 Add comments on sign of the result.
6740 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
6741 Recurse on operand #1 instead of operand #0.
6742 <CEIL_MOD_EXPR>: Do not recurse.
6743 <ROUND_MOD_EXPR>: Likewise.
6745 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6747 * cfgrtl.c (pass_free_cfg::execute): Adjust.
6748 * final.c (dbr_sequence_length): Always define.
6749 (shorten_branches): Adjust.
6750 * genattr-common.c (main): Always define DELAY_SLOTS.
6751 * genattr.c (main): Unconditionally declare functions and define
6752 macros related to delay slots.
6753 * genattrtab.c (write_eligible_delay): Adjust.
6754 (main): Always write out delay slot functions.
6755 * opts.c (default_options_table): Adjust.
6756 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
6757 (redirect_with_delay_list_safe_p): Likewise.
6758 (fill_simple_delay_slots): Likewise.
6759 (fill_slots_from_thread): Likewise.
6760 (make_return_insns): Likewise.
6761 (dbr_schedule): Likewise.
6762 (rest_of_handle_delay_slots): Likewise.
6763 (pass_delay_slots::gate): Likewise.
6764 * toplev.c (process_options): Likewise.
6766 2015-10-21 Richard Henderson <rth@redhat.com>
6768 * targhooks.c (default_addr_space_pointer_mode): Remove check
6769 for generic address space.
6770 (default_addr_space_address_mode): Likewise.
6771 (default_addr_space_valid_pointer_mode): Likewise.
6772 (default_addr_space_legitimate_address_p): Likewise.
6773 (default_addr_space_legitimize_address): Likewise.
6774 * target.def (addr_space.pointer_mode): Update documentation
6775 of default behavior.
6776 (addr_space.address_mode): Likewise.
6779 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
6782 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
6784 * builtins.c (fold_builtin_cabs): Delete.
6785 (fold_builtin_1): Update accordingly. Handle constant arguments here.
6786 * match.pd: Add rules previously handled by fold_builtin_cabs.
6788 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
6790 * fold-const.h (fold_strip_sign_ops): Delete.
6791 * fold-const.c (fold_strip_sign_ops): Likewise.
6792 (fold_unary_loc, fold_binary_loc): Remove calls to it.
6793 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
6794 (fold_builtin_ccos): Delete.
6795 (fold_builtin_pow): Don't call fold_strip_sign_ops.
6796 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
6797 Remove fndecl argument.
6798 (fold_builtin_1): Update calls accordingly. Handle constant
6799 cos, cosh, ccos and ccosh here.
6801 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
6803 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
6804 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
6805 * common.opt (fssa-backprop): New option.
6806 * fold-const.h (negate_mathfn_p): Declare.
6807 * fold-const.c (negate_mathfn_p): Make public.
6808 * timevar.def (TV_TREE_BACKPROP): New.
6809 * tree-pass.h (make_pass_backprop): Declare.
6810 * passes.def (pass_backprop): Add.
6811 * gimple-ssa-backprop.c: New file.
6813 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6814 Sebastian Pop <s.pop@samsung.com>
6816 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
6817 Do not call create_empty_if_region_on_edge when cond_expr is true.
6818 (translate_isl_ast_node_for): Check whether a guard has been generated.
6820 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6822 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
6823 (operator=): Removed.
6824 (dr_info): Make alias_set number the last argument with default
6825 value of invalid_alias_set.
6826 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
6828 (rewrite_reductions_out_of_ssa): Iterate only through the
6829 basic blocks which are inside region.
6830 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
6831 * sese.h (struct sese_l): Removed assignment operator.
6832 (split_region_for_bb): Removed dead code.
6834 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6836 * graphite-poly.h (struct dr_info): Removed conversion constructor.
6837 (struct scop): Renamed scop::region to scop::scop_info
6838 (scop_set_region): Same.
6839 (SCOP_REGION): Removed
6840 (SCOP_CONTEXT): Removed.
6841 (POLY_SCOP_P): Removed.
6842 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
6843 Rename scop->region to scop->scop_info.
6844 (add_parameters_to_ivs_params): Same.
6845 (graphite_regenerate_ast_isl): Same.
6846 * graphite-poly.c (new_scop): Same.
6848 (print_scop_params): Same.
6849 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
6850 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
6851 (dot_all_scops_1): Rename scop->region to scop->scop_info.
6852 (scop_detection::nb_pbbs_in_loops): Same.
6853 (find_scop_parameters): Same.
6854 (try_generate_gimple_bb): Same.
6855 (gather_bbs::before_dom_children): Same.
6856 (gather_bbs::after_dom_children): Same.
6857 (build_scops): Same.
6858 * graphite-sese-to-poly.c (build_scop_scattering): Same.
6859 (extract_affine_chrec): Same.
6860 (extract_affine): Same.
6861 (set_scop_parameter_dim): Same.
6862 (build_loop_iteration_domains): Same.
6863 (create_pw_aff_from_tree): Same.
6864 (add_param_constraints): Same.
6865 (build_scop_iteration_domain): Same.
6866 (build_scop_drs): Same.
6867 (analyze_drs_in_stmts): Same.
6868 (insert_out_of_ssa_copy_on_edge): Same.
6869 (rewrite_close_phi_out_of_ssa):Same.
6870 (rewrite_reductions_out_of_ssa):Same.
6871 (handle_scalar_deps_crossing_scop_limits):Same.
6872 (rewrite_cross_bb_scalar_deps):Same.
6873 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
6874 (build_poly_scop):Same.
6875 (build_alias_set): Use pointer to dr_info.
6876 * graphite.c (print_graphite_scop_statistics):
6877 (graphite_transform_loops):
6878 * sese.h (struct sese_l): Remove conversion constructor.
6880 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6883 * tree.c (verify_type): Verify that TYPE_MODE match
6884 between TYPE_CANONICAL and type.
6885 * expr.c (store_expr_with_bounds): Revert my previous change.
6886 * expmed.c (store_bit_field_1): Revert prevoius change.
6887 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
6888 to match for all types.
6890 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
6892 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
6895 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
6897 * doc/tm.texi: Regenerated.
6898 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
6899 * stor-layout.c (layout_type): Use mode to get vector mask size.
6900 * target.def (get_mask_mode): New.
6901 * targhooks.c (default_get_mask_mode): New.
6902 * targhooks.h (default_get_mask_mode): New.
6903 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
6905 * tree.c (MAX_BOOL_CACHED_PREC): New.
6906 (nonstandard_boolean_type_cache): New.
6907 (build_nonstandard_boolean_type): New.
6908 (make_vector_type): Vector mask has no canonical type.
6909 (build_truth_vector_type): New.
6910 (build_same_sized_truth_vector_type): New.
6911 (truth_type_for): Support vector masks.
6912 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
6913 (build_truth_vector_type): New.
6914 (build_same_sized_truth_vector_type): New.
6915 (build_nonstandard_boolean_type): New.
6916 * tree-cfg.c (verify_gimple_comparison) Require boolean
6917 vector type for vector comparison.
6918 (verify_gimple_assign_ternary): Likewise.
6919 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
6921 * tree-vect-stmts.c (vectorizable_condition): Use boolean
6922 vector type for vector comparison.
6923 * tree-vect-generic.c (elem_op_func): Add new operand to hold
6925 (do_unop): Adjust to modified function type.
6926 (do_binop): Likewise.
6927 (do_plus_minus): Likewise.
6928 (do_negate); Likewise.
6929 (expand_vector_piecewise): Likewise.
6930 (do_cond): Likewise.
6931 (do_compare): Use comparison instead of condition.
6932 (expand_vector_divmod): Use boolean vector type for comparison.
6933 (expand_vector_operations_1): Skip scalar mask operations.
6935 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
6937 * omp-low.c (simd_clone_create): Set in_other_partition
6940 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
6942 * doc/extend.exp (Local Register Variables): Rewrite.
6944 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
6946 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
6947 and x*x in cases where the operands are sign ops. Extend these
6948 rules to handle copysign as a sign op (including for cos, cosh
6949 and pow, which already treated negate and abs as sign ops).
6951 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
6954 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
6955 for 64-bit MS_ABI targets also when default incoming stack boundary
6958 2015-10-21 Richard Biener <rguenther@suse.de>
6960 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
6961 cond stmts, enhanced and split out from ...
6962 (vn_phi_eq): ... here.
6964 2015-10-21 Richard Biener <rguenther@suse.de>
6967 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
6968 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
6969 (tree_single_nonnegative_warnv_p): ... here. For SSA names
6970 make sure they are not registered for update.
6972 2015-10-21 Richard Biener <rguenther@suse.de>
6974 PR tree-optimization/68026
6975 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
6976 unsigned VARYING values.
6978 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
6980 * asan.c (asan_emit_stack_protection): Don't pass local stack to
6981 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
6982 NULL and use local stack than.
6983 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
6984 in addition to __asan_init.
6985 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
6986 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
6987 * asan.h (asan_intercepted_p): Handle new string builtins.
6988 * ubsan.c (ubsan_use_new_style_p): New function.
6989 (ubsan_instrument_float_cast): If location is unknown, assign
6990 input_location to loc. Propagate loc to ubsan_create_data if
6991 ubsan_use_new_style_p returned true.
6993 2015-10-21 Jeff Law <law@redhat.com>
6995 * Makefile.in (OBJS): Remove sched-vis.c
6996 * sched-vis.c: Removed. Code moved into...
6997 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
6998 * rtl.h: Remove prototypes for functions now living in print-rtl.c
6999 * print-rtl.h Add prototypes for new functions in print-rtl.c.
7000 * auto-inc-dec.c: Include print-rtl.h
7001 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
7002 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
7004 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
7007 2015-10-21 Richard Biener <rguenther@suse.de>
7008 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7010 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
7012 Move (a * (1 << b)) is (a << b) to match.pd.
7013 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
7014 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
7015 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
7017 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
7019 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
7020 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
7021 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
7023 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
7025 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
7027 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
7028 Szabolcs Nagy <szabolcs.nagy@arm.com>
7029 Alan Modra <amodra@gmail.com>
7031 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
7032 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
7033 (LINK_SPEC): Add %(link_secure_plt).
7034 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
7035 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
7037 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
7038 Szabolcs Nagy <szabolcs.nagy@arm.com>
7040 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
7041 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
7043 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7045 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
7047 (fusion_load_store): Use it.
7048 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
7049 ldp and stp in VD modes.
7050 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
7051 (store_pair<mode>, VD): Likewise.
7053 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
7055 PR rtl-optimization/67609
7056 * lra-splill.c (lra_final_code_change): Don't remove all
7059 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7061 * simplify-rtx.c (simplify_binary_operation): If either operand was
7062 a constant pool reference use them if all other simplifications failed.
7064 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7066 * config/aarch64/aarch64.md
7067 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
7068 * config/aarch64/aarch64-simd.md
7069 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
7070 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
7071 (aarch64_fpconst_pow_of_2): New function.
7072 (aarch64_vec_fpconst_pow_of_2): Likewise.
7073 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
7075 (aarch64_vec_fpconst_pow_of_2): Likewise.
7076 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
7077 (aarch64_fp_vec_pow2): Likewise.
7079 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
7081 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
7082 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
7083 * config/alpha/alpha.c (alpha_function_arg_advance): Update
7084 ALPHA_ARG_SIZE usage.
7085 (alpha_arg_partial_bytes): Ditto.
7087 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
7090 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
7091 error_mark_node decls.
7093 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
7097 * common/config/i386/i386-common.c (ix86_handle_option): Remove
7098 OPT_miamcu handling.
7099 * config/i386/i386.c (PTA_NO_80387): New macro.
7100 (processor_alias_table): Add PTA_NO_80387 to lakemont.
7101 (ix86_option_override_internal): Update MASK_80387 from
7102 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
7103 SSE math only if 80387 is supported. Don't change
7105 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
7107 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
7108 if TARGET_80387 is true and TARGET_IAMCU is false.
7109 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
7110 is true and TARGET_IAMCU_P is false.
7112 2015-10-20 Richard Biener <rguenther@suse.de>
7114 PR tree-optimization/68017
7115 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
7117 2015-10-20 Martin Liska <mliska@suse.cz>
7119 * cgraphclones.c (cgraph_node::create_virtual_clone):
7120 Verify cgraph_node.local.versionable instead of calling
7121 tree_versionable_function_p.
7122 * ipa-cp.c (determine_versionability): Save the information
7123 to ipa_node_params summary.
7124 (ipcp_versionable_function_p): Use it.
7125 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
7126 (ipcp_generate_summary): Do not compute cgraph_node
7128 * ipa-inline-analysis.c (inline_generate_summary): Compute
7129 versionability for all cgraph nodes.
7130 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
7131 ipa_node_params::versionability.
7132 * ipa-prop.h (struct ipa_node_params): Declare it.
7134 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7137 * varasm.c (assemble_variable): Move special vtv handling to..
7138 (handle_vtv_comdat_sections): .. here. New function.
7139 (output_object_block): Handle vtv sections.
7141 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
7144 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
7146 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
7148 * doc/extend.texi: Update documentation WRT inline functions.
7150 2015-10-20 Alan Modra <amodra@gmail.com>
7153 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
7154 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
7155 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
7157 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
7159 PR rtl-optimization/66790
7160 * df.h (DF_MIR): New macro.
7161 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
7162 (DF_MIR_INFO_BB): New macro.
7163 (DF_MIR_IN, DF_MIR_OUT): New macros.
7164 (struct df_mir_bb_info): New.
7165 (df_mir): New macro.
7166 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
7168 (df_mir_get_bb_info): New.
7169 * df-problems.c (struct df_mir_problem_data): New.
7170 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
7171 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
7172 df_mir_confluence_0, df_mir_confluence_n,
7173 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
7174 df_mir_bottom_dump, df_mir_verify_solution_start,
7175 df_mir_verify_solution_end): New.
7177 (df_mir_add_problem, df_mir_simulate_one_insn): New.
7178 * timevar.def (TV_DF_MIR): New.
7179 * ree.c: Include bitmap.h
7180 (add_removable_extension): Add an INIT_REGS parameter. Use it
7181 to skip zero-extensions that may get an uninitialized register.
7182 (find_removable_extensions): Compute must-initialized registers
7183 using the MIR dataflow problem. Update the call to
7184 add_removable_extension.
7185 (find_and_remove_re): Call df_mir_add_problem.
7187 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
7189 * common/config/mn10300/mn10300-common.c
7190 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
7191 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
7193 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
7195 * doc/extend.texi (Explicit Register Variables): Simplify and
7196 avoid unnecessary and confusion abbreviations. Update cross
7198 doc/implement-c.tex: Update cross reference.
7200 2015-10-19 Jeff Law <law@redhat.com>
7202 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
7203 that create irreducible loops unless the path elimiantes a multiway
7206 2015-10-19 Richard Biener <rguenther@suse.de>
7208 PR tree-optimization/67975
7209 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
7210 * tree-cfg.c (extract_true_false_controlled_edges): Split out
7211 core worker from ...
7212 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
7213 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
7214 instead of block number for PHIs with two or one args.
7215 (vn_phi_eq): Compare edge predicates of PHIs that are in different
7218 2015-10-19 Richard Biener <rguenther@suse.de>
7220 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
7221 (gimple_stmt_nonnegative_warnv_p): Use it.
7222 * match.pd (CPROJ): New operator list.
7223 (cproj (complex ...)): Move simplifications from ...
7224 * builtins.c (fold_builtin_cproj): ... here.
7226 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
7228 * config/i386/i386.c (ix86_expand_vector_move): Use
7229 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
7232 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
7234 * doc/invoke.texi: Replace @optindex with @opindex.
7236 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
7239 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
7240 arch= is set, clear all bits in x_ix86_isa_flags, except for
7241 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
7243 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
7246 * common.opt (fkeep-static-functions): New option.
7247 * doc/invoke.texi: Document it.
7248 * cgraphunit.c (cgraph_node::finalize_function): Use it.
7250 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7252 * sched-int.h (struct autopref_multipass_data_): Remove offset
7253 field. Add min_offset, max_offset, multi_mem_insn_p fields.
7254 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
7255 (autopref_multipass_init): Use it. Handle PARALLEL sets.
7256 (autopref_rank_data): New function.
7257 (autopref_rank_for_schedule): Use it.
7258 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
7260 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
7263 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
7265 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7267 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
7268 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
7269 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
7270 (STANDARD_STARTFILE_PREFIX_1): New.
7271 (STANDARD_STARTFILE_PREFIX_2): New.
7273 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7275 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
7276 (darwin_driver_init): Note a version-min when provided on the c/l.
7277 * config/darwin.h (%darwin_minversion): Remove.
7278 * config/i386/darwin.h: Likewise.
7279 * config/rs6000/darwin.h: Likewise.
7280 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
7281 rather than an arbitrary constant.
7283 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7285 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
7286 PPC, detect conflicts between -arch and multilib settings. Detect
7287 and warn about conflicts between multiple -arch definitions.
7289 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7291 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
7293 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7295 * lra-constraints.c (add_next_usage_insn): Change argument type
7296 from rtx to rtx_insn *.
7298 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
7300 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
7303 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
7305 * config/tilepro/gen-mul-tables.cc: Adjust include files.
7306 * config/tilegx/mul-tables.c: Regenerate.
7307 * config/tilepro/mul-tables.c: Regenerate.
7309 * config/tilegx/tilegx-c.c: Adjust include files.
7310 * config/tilegx/tilegx.c: Likewise.
7311 * config/tilepro/tilepro-c.c: Likewise.
7312 * config/tilepro/tilepro.c: Likewise.
7313 * config/aarch64/aarch64-builtins.c: Likewise.
7314 * config/aarch64/aarch64.c: Likewise.
7315 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7316 * config/alpha/alpha.c: Likewise.
7317 * config/arc/arc.c: Likewise.
7318 * config/arm/aarch-common.c: Likewise.
7319 * config/arm/arm-builtins.c: Likewise.
7320 * config/arm/arm-c.c: Likewise.
7321 * config/arm/arm.c: Likewise.
7322 * config/avr/avr-c.c: Likewise.
7323 * config/avr/avr-devices.c: Likewise.
7324 * config/avr/avr-log.c: Likewise.
7325 * config/avr/avr.c: Likewise.
7326 * config/bfin/bfin.c: Likewise.
7327 * config/c6x/c6x.c: Likewise.
7328 * config/cr16/cr16.c: Likewise.
7329 * config/cris/cris.c: Likewise.
7330 * config/darwin-c.c: Likewise.
7331 * config/darwin-driver.c: Likewise.
7332 * config/darwin.c: Likewise.
7333 * config/default-c.c: Likewise.
7334 * config/epiphany/epiphany.c: Likewise.
7335 * config/epiphany/mode-switch-use.c: Likewise.
7336 * config/epiphany/resolve-sw-modes.c: Likewise.
7337 * config/fr30/fr30.c: Likewise.
7338 * config/frv/frv.c: Likewise.
7339 * config/ft32/ft32.c: Likewise.
7340 * config/glibc-c.c: Likewise.
7341 * config/h8300/h8300.c: Likewise.
7342 * config/i386/host-cygwin.c: Likewise.
7343 * config/i386/host-mingw32.c: Likewise.
7344 * config/i386/i386-c.c: Likewise.
7345 * config/i386/i386.c: Likewise.
7346 * config/i386/msformat-c.c: Likewise.
7347 * config/i386/winnt-cxx.c: Likewise.
7348 * config/i386/winnt-stubs.c: Likewise.
7349 * config/i386/winnt.c: Likewise.
7350 * config/ia64/ia64-c.c: Likewise.
7351 * config/ia64/ia64.c: Likewise.
7352 * config/iq2000/iq2000.c: Likewise.
7353 * config/lm32/lm32.c: Likewise.
7354 * config/m32c/m32c-pragma.c: Likewise.
7355 * config/m32c/m32c.c: Likewise.
7356 * config/m32r/m32r.c: Likewise.
7357 * config/mcore/mcore.c: Likewise.
7358 * config/mep/mep-pragma.c: Likewise.
7359 * config/mep/mep.c: Likewise.
7360 * config/microblaze/microblaze-c.c: Likewise.
7361 * config/microblaze/microblaze.c: Likewise.
7362 * config/mips/mips-tables.opt
7363 * config/mips/mips.c: Likewise.
7364 * config/mmix/mmix.c: Likewise.
7365 * config/mn10300/mn10300.c: Likewise.
7366 * config/moxie/moxie.c: Likewise.
7367 * config/msp430/msp430-c.c: Likewise.
7368 * config/msp430/msp430.c: Likewise.
7369 * config/nds32/nds32-cost.c: Likewise.
7370 * config/nds32/nds32-fp-as-gp.c: Likewise.
7371 * config/nds32/nds32-intrinsic.c: Likewise.
7372 * config/nds32/nds32-isr.c: Likewise.
7373 * config/nds32/nds32-md-auxiliary.c: Likewise.
7374 * config/nds32/nds32-memory-manipulation.c: Likewise.
7375 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7376 * config/nds32/nds32-predicates.c: Likewise.
7377 * config/nds32/nds32.c: Likewise.
7378 * config/nios2/nios2.c: Likewise.
7379 * config/nvptx/mkoffload.c: Likewise.
7380 * config/nvptx/nvptx.c: Likewise.
7381 * config/pa/pa.c: Likewise.
7382 * config/pdp11/pdp11.c: Likewise.
7383 * config/rl78/rl78-c.c: Likewise.
7384 * config/rl78/rl78.c: Likewise.
7385 * config/rs6000/host-darwin.c: Likewise.
7386 * config/rs6000/rs6000-c.c: Likewise.
7387 * config/rs6000/rs6000-linux.c: Likewise.
7388 * config/rs6000/rs6000.c: Likewise.
7389 * config/rx/rx.c: Likewise.
7390 * config/s390/s390-c.c: Likewise.
7391 * config/s390/s390.c: Likewise.
7392 * config/sh/sh-c.c: Likewise.
7393 * config/sh/sh-mem.cc: Likewise.
7394 * config/sh/sh.c: Likewise.
7395 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7396 * config/sh/sh_treg_combine.cc: Likewise.
7397 * config/sol2-c.c: Likewise.
7398 * config/sol2-cxx.c: Likewise.
7399 * config/sol2-stubs.c: Likewise.
7400 * config/sol2.c: Likewise.
7401 * config/sparc/sparc-c.c: Likewise.
7402 * config/sparc/sparc.c: Likewise.
7403 * config/spu/spu-c.c: Likewise.
7404 * config/spu/spu.c: Likewise.
7405 * config/stormy16/stormy16.c: Likewise.
7406 * config/v850/v850-c.c: Likewise.
7407 * config/v850/v850.c: Likewise.
7408 * config/vax/vax.c: Likewise.
7409 * config/visium/visium.c: Likewise.
7410 * config/vms/vms-c.c: Likewise.
7411 * config/vms/vms.c: Likewise.
7412 * config/vxworks.c: Likewise.
7413 * config/winnt-c.c: Likewise.
7414 * config/xtensa/xtensa.c: Likewise.
7416 2015-10-16 Christian Bruel <christian.bruel@st.com>
7419 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
7420 (FUNCTION_BOUNDARY_P): New macro:
7421 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
7423 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
7424 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
7425 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
7426 * function.c (allocate_struct_function): Call
7427 relayout_function hook.
7428 * passes.c (rest_of_decl_compilation): Likewise.
7430 2015-10-16 Christian Bruel <christian.bruel@st.com>
7433 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
7434 * config/arm/arm.c (arm_option_override_internal): Call
7435 arm_override_options_after_change_1.
7436 (arm_override_options_after_change): New function.
7437 (arm_override_options_after_change_1): Likewise.
7438 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
7440 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7443 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
7446 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
7448 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
7449 argument is an ADDR_EXPR.
7451 2015-10-16 Richard Biener <rguenther@suse.de>
7453 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
7454 and get rid of force_gimple_operand_gsi.
7455 (gimple_fold_builtin_memory_chk): Likewise.
7456 (gimple_fold_builtin_stxcpy_chk): Likewise.
7457 (rewrite_to_defined_overflow): Likewise.
7458 (gimple_convert_to_ptrofftype): New function.
7459 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
7461 2015-10-16 Richard Biener <rguenther@suse.de>
7463 * tree-nested.h (build_addr): Adjust prototype.
7464 * tree-nested.c (build_addr): Remove context argument and use
7466 (get_static_chain): Adjust calls to build_addr.
7467 (convert_nl_goto_reference): Likewise.
7468 (convert_tramp_reference_op): Likewise.
7469 (finalize_nesting_tree_1): Likewise.
7470 * value-prof.c (gimple_ic): Likewise.
7471 * gimple-low.c (lower_builtin_setjmp): Likewise.
7472 * tree-parloops.c (take_address_of): Likewise.
7473 (create_call_for_reduction_1): Likewise.
7474 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
7475 (gimple_gen_ic_func_profiler): Likewise.
7477 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7479 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
7482 2015-10-16 Michael Collison <michael.collison@linaro.org>
7483 Andrew Pinski <andrew.pinski@caviumnetworks.com>
7485 * match.pd ((x < y) && (x < z) -> x < min (y,z),
7486 (x > y) and (x > z) -> x > max (y,z))
7488 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
7489 Szabolcs Nagy <szabolcs.nagy@arm.com>
7491 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
7492 (DYNAMIC_LINKER): Renamed to ...
7493 (GLIBC_DYNAMIC_LINKER): This.
7494 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
7496 2015-10-15 Marek Polacek <polacek@redhat.com>
7498 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
7499 gimple_call_builtin instead of is_gimple_call.
7501 2015-10-15 Richard Biener <rguenther@suse.de>
7503 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
7505 2015-10-15 Richard Biener <rguenther@suse.de>
7507 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
7508 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
7509 * tree-vect-loop.c (get_initial_def_for_induction): Drop
7510 use of force_gimple_operand in favor of gimple_build.
7511 Use vect_get_new_ssa_name.
7512 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
7513 (vectorizable_mask_load_store): Likewise.
7514 (vectorizable_call): Likewise.
7515 (vectorizable_store): Likewise.
7516 (vectorizable_load): Likewise.
7517 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
7519 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
7521 PR tree-optimization/67945
7522 * tree-pass.h (PROP_gimple_opt_math): New property flag.
7523 * generic-match-head.c (canonicalize_math_p): New function.
7524 * gimple-match-head.c: Include tree-pass.h.
7525 (canonicalize_math_p): New function.
7526 * match.pd: Group math built-in rules into simplifications
7527 and canonicalizations. Guard the latter with canonicalize_math_p.
7528 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
7529 PROP_gimple_opt_math property.
7531 2015-10-15 Marek Polacek <polacek@redhat.com>
7533 PR tree-optimization/67953
7534 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
7536 2015-10-15 Jiong Wang <jiong.wang@arm.com>
7538 * config.gcc: Recognize "." in architecture base name for AArch64.
7540 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
7542 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
7544 * config/mips/mips.c (mips_setup_incoming_varargs): Use
7545 ROUND_DOWN to calculate off.
7546 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
7547 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
7550 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
7552 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
7554 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
7555 Torvald Riegel <triegel@redhat.com>
7558 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
7559 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
7560 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
7561 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
7562 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
7563 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
7564 trechkpt, treclaim, tsr, ttest): New define_expands.
7565 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
7566 __TM_FENCE__ for htm.
7567 * doc/extend.texi: Update documentation for htm builtins.
7569 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
7572 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
7573 REG_CFA_EXPRESSION to aligned SSE stores.
7575 2015-10-14 Jeff Law <law@redhat.com>
7577 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
7578 num_threaded_edges for successful FSM threads too.
7580 2015-10-14 Richard Biener <rguenther@suse.de>
7582 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
7583 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
7584 (vect_get_vec_def_for_operand): Remove unused parameter.
7585 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
7586 (vect_create_epilog_for_reduction): Likewise.
7587 (vectorizable_reduction): Likewise.
7588 (vectorizable_live_operation): Likewise.
7589 * tree-vect-patterns.c (type_conversion_p): Likewise.
7590 (vect_recog_vector_vector_shift_pattern): Likewise.
7591 (check_bool_pattern): Likewise.
7592 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
7593 (vect_analyze_slp_cost_1): Likewise.
7594 * tree-vect-stmts.c (process_use): Likewise.
7595 (vect_get_vec_def_for_operand): Do not handle reductions.
7596 (vect_get_vec_defs): Adjust.
7597 (vectorizable_mask_load_store): Likewise.
7598 (vectorizable_call): Likewise.
7599 (vectorizable_simd_clone_call): Likewise.
7600 (vect_get_loop_based_defs): Likewise.
7601 (vectorizable_conversion): Likewise.
7602 (vectorizable_assignment): Likewise.
7603 (vectorizable_shift): Likewise.
7604 (vectorizable_operation): Likewise.
7605 (vectorizable_store): Likewise.
7606 (vectorizable_load): Likewise.
7607 (vect_is_simple_cond): Likewise.
7608 (vectorizable_condition): Likewise.
7609 (vect_is_simple_use): Remove unused parameters.
7610 (vect_is_simple_use_1): Adjust and rename.
7612 2015-10-14 Richard Biener <rguenther@suse.de>
7614 PR tree-optimization/67915
7615 * match.pd: Handle comparisons of addresses of STRING_CSTs.
7616 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
7617 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
7618 stmt folding in favor of GIMPLE one.
7620 2015-10-14 Marek Polacek <polacek@redhat.com>
7622 PR tree-optimization/67815
7623 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
7624 (reassociate_bb): Call it.
7626 2015-10-14 Richard Biener <rguenther@suse.de>
7628 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7629 Reset info at start.
7630 (vect_analyze_group_access_1): Add debug print.
7631 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
7632 (vect_compute_single_scalar_iteration_cost): ... to this.
7633 (vect_analyze_loop_2): Adjust.
7634 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
7635 * tree-vectorizer.h: ... here.
7636 (add_stmt_info_to_vec): Remove.
7637 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
7639 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
7641 * targhooks.c (default_target_option_pragma_parse): Do not warn if
7642 called on behalf of "#pragma GCC pop_options".
7644 2015-10-14 Tom de Vries <tom@codesourcery.com>
7646 * cfganal.c (verify_no_unreachable_blocks): New function.
7647 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
7648 verify_no_unreachable_blocks.
7649 cfganal.h (verify_no_unreachable_blocks): Declare.
7651 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
7653 * common.opt: Add flag_checking.
7654 * system.h (CHECKING_P): Define.
7656 2015-10-13 Jakub Jelinek <jakub@redhat.com>
7657 Aldy Hernandez <aldyh@redhat.com>
7658 Ilya Verbin <ilya.verbin@intel.com>
7660 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
7661 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
7662 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
7663 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
7664 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
7665 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
7666 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
7667 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
7668 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
7669 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
7670 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
7671 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
7672 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
7673 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
7674 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
7675 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
7676 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
7677 (struct cgraph_simd_clone_arg): Adjust comment.
7678 * coretypes.h (struct gomp_ordered): New forward decl.
7679 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
7680 set critical clauses to it.
7681 (gimple_build_omp_ordered): Return gomp_ordered * instead of
7682 gimple *. Add CLAUSES argument, set ordered clauses to it.
7683 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
7685 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
7686 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
7687 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
7688 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
7689 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
7690 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
7691 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
7692 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
7694 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
7695 (gomp_critical): Add clauses field.
7696 (gomp_ordered): New struct.
7697 (is_a_helper <gomp_ordered *>::test): New inline.
7698 (gimple_build_omp_critical): Add CLAUSES argument.
7699 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
7700 instead of gimple *.
7701 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
7702 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
7703 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
7704 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
7706 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
7707 (dump_gimple_omp_target): Handle enter data and exit data.
7708 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
7709 (dump_gimple_omp_critical): Print clauses.
7710 (dump_gimple_omp_ordered): New function.
7711 (dump_gimple_omp_task): Handle taskloop.
7712 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
7714 * gimple-walk.c (walk_gimple_op): Walk clauses on
7715 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
7716 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
7717 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
7718 (struct gimplify_omp_ctx): Add loop_iter_var,
7719 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
7720 and target_firstprivatize_array_bases fields.
7721 (delete_omp_context): Release loop_iter_var.
7722 (gimplify_bind_expr): Handle ORT_NONE.
7723 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
7724 ORT_COMBINED_TARGET.
7725 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
7726 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
7727 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
7728 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
7729 ctx->target_map_scalars_firstprivate.
7730 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
7731 data sharing clauses. For data sharing clause with VLA decl
7732 on omp target/target data don't add firstprivate for the pointer.
7733 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
7734 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
7735 the addition of ORT_COMBINED_TARGET.
7736 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
7737 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
7738 pointers as zero length array sections and
7739 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
7741 (omp_check_private): Handle omp_member_access_dummy_var vars.
7742 (find_decl_expr): New function.
7743 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
7744 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
7745 Handle OMP_CLAUSE_GANG separately. Handle
7746 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
7747 clauses. Diagnose linear clause on combined
7748 distribute {, parallel for} simd construct, unless it is the loop
7749 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
7750 Handle map clauses with COMPONENT_REF. Initialize
7751 ctx->target_map_scalars_firstprivate,
7752 ctx->target_firstprivatize_array_bases and
7753 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
7754 linear clause even to target region if combined. Remove
7755 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
7756 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
7757 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
7758 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
7759 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
7760 For linear clause on worksharing loop combined with parallel add
7761 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
7762 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
7763 omp_member_access_dummy_var vars. Add lastprivate clause to outer
7765 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
7766 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
7767 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
7769 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
7770 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
7771 in target body. Handle removal of struct mapping if struct is not
7772 seen in target body. Remove GOMP_MAP_STRUCT map clause on
7773 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
7774 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
7775 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
7776 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
7777 clause appear together. Handle
7778 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
7779 clause if it has map-type-modifier always. Handle
7780 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
7782 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
7783 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
7785 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
7786 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
7787 iterators in doacross loops.
7788 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
7789 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
7790 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
7791 for the addition of ORT_COMBINED_TARGET.
7792 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
7793 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
7794 and OMP_TARGET_EXIT_DATA.
7795 (gimplify_omp_ordered): New function.
7796 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
7797 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
7798 Gimplify clauses on OMP_CRITICAL.
7799 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
7800 expand_GOMP_SIMD_ORDERED_END): New functions.
7801 * internal-fn.def (GOMP_SIMD_ORDERED_START,
7802 GOMP_SIMD_ORDERED_END): New internal functions.
7803 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
7804 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
7805 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
7806 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
7807 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
7808 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
7809 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
7810 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
7811 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
7812 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
7813 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
7814 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
7815 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
7816 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
7818 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
7819 GOMP_target_data_41, adjust type.
7820 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
7821 GOMP_target_update_41, adjust type.
7822 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
7824 (struct omp_for_data): Add ordered and simd_schedule fields.
7825 (omp_member_access_dummy_var, unshare_and_remap_1,
7826 unshare_and_remap, is_taskloop_ctx): New functions.
7827 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
7828 (extract_omp_for_data): Handle taskloops and doacross loops
7829 and simd schedule modifier.
7830 (omp_adjust_chunk_size): New function.
7831 (get_ws_args_for): Use it.
7832 (lookup_sfield): Change first argument to splay_tree_key,
7833 add overload with first argument tree.
7834 (maybe_lookup_field): Likewise.
7835 (use_pointer_for_field): Handle omp_member_access_dummy_var.
7836 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
7837 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
7838 (build_outer_var_ref): Add LASTPRIVATE argument, handle
7839 taskloops and omp_member_access_dummy_var vars.
7840 (build_sender_ref): Change first argument to splay_tree_key,
7841 add overload with first argument tree.
7842 (install_var_field): For mask & 8 use &DECL_UID as key instead
7844 (fixup_child_record_type): Const qualify *.omp_data_i.
7845 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
7846 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
7847 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
7848 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
7849 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
7850 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
7851 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
7853 (add_taskreg_looptemp_clauses): New function.
7854 (scan_omp_parallel): Use it.
7855 (scan_omp_task): Likewise.
7856 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
7857 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
7858 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
7859 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
7860 sandwiched taskloop constructs. Type check
7861 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
7862 region. Diagnose depend(source) or depend(sink:...) on
7863 target constructs or task/taskloop.
7864 (handle_simd_reference): Use get_name.
7865 (lower_rec_input_clauses): Likewise. Ignore all
7866 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
7867 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
7868 before passing it to omp_clause_{default,copy}_ctor. Handle
7869 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
7870 lastprivate_firstprivate flag for linear that needs copyin and
7871 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
7872 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
7873 on taskloop lookup decl in outer context. Pass true to
7874 build_outer_var_ref lastprivate argument. Handle
7875 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
7876 outside of outer taskloop for.
7877 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
7879 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
7880 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
7881 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
7882 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
7883 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
7884 abstract origin. Handle omp_member_access_dummy_var vars.
7885 (expand_parallel_call): Use expand_omp_build_assign.
7886 (expand_task_call): Handle taskloop construct expansion. Add
7887 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
7888 integers. Add priority argument to GOMP_task* calls. Or in
7889 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
7891 (expand_omp_build_assign): Add prototype. Add AFTER
7892 argument, if true emit statements after *GSI_P and continue linking.
7893 (expand_omp_taskreg): Adjust expand_task_call caller.
7894 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
7895 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
7896 zero_iter2_bb and first_zero_iter2 arguments, handle computation
7897 of counts even for ordered loops.
7898 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
7899 (expand_omp_ordered_source, expand_omp_ordered_sink,
7900 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
7902 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
7903 clauses on worksharing loop. Handle DOACROSS loop expansion.
7904 (expand_omp_for_static_nochunk): Handle linear clauses on
7905 worksharing loop. Adjust expand_omp_for_init_counts
7907 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
7908 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
7909 expand_omp_for_init_counts callers.
7910 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
7912 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
7913 Handle doacross loops.
7914 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
7915 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
7916 GOMP_target_{41,update_41,enter_exit_data} libcalls.
7917 (expand_omp): Don't expand ordered depend constructs here, record
7918 ord_stmt instead for later expand_omp_for_generic.
7919 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
7920 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
7921 clause as stand-alone directive.
7922 (lower_omp_ordered_clauses): New function.
7923 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
7924 don't lower anything.
7925 (lower_omp_for_lastprivate): Use last _looptemp_ clause
7926 on taskloop for comparison.
7927 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
7928 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
7929 expansion for linear adjustments.
7930 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
7931 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
7932 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
7933 to tree * pointing to the stmt's clauses.
7934 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
7935 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
7936 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
7937 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
7938 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
7939 clauses. Always use short kind and 8-bit align shift.
7940 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
7941 (struct lower_omp_regimplify_operands_data): New type.
7942 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
7944 (lower_omp_1): Use lower_omp_regimplify_operands instead of
7945 gimple_regimplify_operands.
7946 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
7947 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
7948 clause as stand-alone directive.
7949 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
7950 (simd_clone_mangle): Mangle the various linear kinds
7952 (simd_clone_adjust_argument_types): Handle
7953 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
7954 (simd_clone_init_simd_arrays): Don't do anything for uval.
7955 (simd_clone_adjust): Handle
7956 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
7957 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
7958 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
7959 * omp-low.h (omp_member_access_dummy_var): New prototype.
7960 * passes.def (pass_simduid_cleanup): Schedule another copy of the
7961 pass after all optimizations.
7962 * tree.c (omp_clause_code_name): Add entries for
7963 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
7964 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
7965 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
7966 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
7967 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
7968 OMP_CLAUSE_REDUCTION 5 arguments. Handle
7969 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
7970 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
7972 * tree-core.h (enum omp_clause_linear_kind): New.
7973 (struct tree_omp_clause): Change type of map_kind
7974 from unsigned char to unsigned int. Add subcode.if_modifier
7975 and subcode.linear_kind fields.
7976 (enum omp_clause_code): Add
7977 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
7978 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
7979 (OMP_CLAUSE_REDUCTION): Document
7980 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
7981 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
7982 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
7983 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
7985 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
7987 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
7989 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
7990 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
7992 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
7993 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
7994 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
7995 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
7996 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
7997 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
7998 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
7999 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
8000 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
8001 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
8002 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
8003 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
8004 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
8005 * tree-inline.c (remap_gimple_stmt): Handle clauses on
8006 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
8007 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
8008 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
8009 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8010 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8011 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8012 (convert_local_omp_clauses): Likewise.
8013 * tree-pretty-print.c (dump_omp_clause): Handle
8014 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8015 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8016 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
8017 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
8018 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
8019 GOMP_MAP_FORCE_DEALLOC. Handle
8020 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
8021 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
8022 and clauses on OMP_ORDERED and OMP_CRITICAL.
8023 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
8024 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
8025 (vectorize_loops): Adjust comments.
8026 (pass_simduid_cleanup::execute): Likewise.
8027 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
8028 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
8029 * wide-int.h (wi::gcd): New.
8031 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
8033 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
8034 (ix86_function_arg_advance): Ditto.
8035 (ix86_function_arg): Ditto.
8036 (ix86_gimplify_va_arg): Ditto.
8037 (ix86_class_max_nregs): Ditto.
8038 (inline_memory_move_cost): Ditto.
8039 (ix86_set_reg_reg_cost): Ditto.
8040 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
8042 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
8045 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
8047 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
8049 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
8050 ROUND_UP macro and UNITS_PER_WORD * 2.
8051 * config/sparc/sparc.c (sparc_compute_frame_size):
8052 Use ROUND_UP and ROUND_DOWN macros where applicable.
8053 (function_arg_record_value, function_arg_record_value_1)
8054 (function_arg_record_value_1): Ditto.
8055 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
8056 alignment to double-word.
8057 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
8058 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
8061 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
8063 * rtl.h (print_insn): Fix prototype.
8065 2015-10-13 Tom de Vries <tom@codesourcery.com>
8067 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
8068 -1. Add assert that returned entry matches phi argument.
8069 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
8070 free_stmt_vec_info_vec ...
8071 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
8074 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
8076 PR tree-optimization/67909, 67947
8077 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
8078 really skip the inner loop.
8080 2015-10-13 Jeff Law <law@redhat.com>
8082 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8083 Allow single block jump threading paths.
8085 2015-10-13 Tom de Vries <tom@codesourcery.com>
8087 PR tree-optimization/67476
8088 * doc/invoke.texi (@item parloops-schedule): New item.
8089 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
8090 * tree-parloops.c: Include params-enum.h.
8091 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
8093 2015-10-13 Tom de Vries <tom@codesourcery.com>
8095 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
8096 * params-enum.h: New file.
8097 * opts.c (handle_param): Handle case that param arg is a string.
8098 * params-list.h: Handle DEFPARAMENUM5 in params.def.
8099 * params.c (find_param): New function, factored out of ...
8100 (set_param_value): ... here.
8101 (param_string_value_p): New function.
8102 * params.h (struct param_info): Add value_names field.
8103 (find_param, param_string_value_p): Declare.
8105 2015-10-13 Tom de Vries <tom@codesourcery.com>
8107 PR tree-optimization/67476
8108 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
8110 2015-10-13 Richard Biener <rguenther@suse.de>
8112 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
8113 the data dependence vector.
8114 (vect_peeling_hash_insert): Get the peeling hash table as argument.
8115 (vect_peeling_hash_get_lowest_cost): Likewise.
8116 (vect_enhance_data_refs_alignment): Adjust.
8117 (struct _vect_peel_info, struct _vect_peel_extended_info,
8118 struct peel_info_hasher): Move from ...
8119 * tree-vectorizer.h: ... here.
8120 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
8121 (LOOP_VINFO_PEELING_HTAB): Likewise.
8122 (struct _loop_vec_info): Remove min_profitable_iters and
8123 peeling_htab members.
8124 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
8126 (destroy_loop_vec_info): Adjust.
8127 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
8128 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
8129 to estimate alias versioning cost.
8130 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
8132 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
8134 * real.h (real_isinteger): Declare.
8135 * real.c (real_isinteger): New function.
8136 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
8137 if y is an even integer.
8139 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8142 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8143 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
8144 counts when these are more informative.
8146 2015-10-12 Jeff Law <law@redhat.com>
8148 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
8149 (fsm_find_control_stmt_paths): Change name of first argument to
8150 more accurately relfect what it really is. Handle simplification
8151 of GIMPLE_COND after finding a thread path for NAME.
8152 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
8153 nontrivial conditions to be handled by FSM threader.
8154 (thread_through_normal_block): Extract the name to looup via
8155 FSM threader from COND_EXPR.
8157 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
8158 restriction that traced SSA_NAME is a user variable.
8160 2015-10-12 Tom de Vries <tom@codesourcery.com>
8162 PR tree-optimization/67476
8163 * omp-low.c (expand_omp_for_generic): Add missing phis.
8165 2015-10-12 Tom de Vries <tom@codesourcery.com>
8167 PR tree-optimization/67476
8168 * omp-low.c (expand_omp_for_generic): Handle simple latch.
8170 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
8172 * config/aarch64/aarch64-simd-builtins.def: Update builtins
8173 tables: add tbl3 and tbx4.
8174 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
8175 (aarch64_tbx4v8qi): New.
8176 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
8177 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
8178 Rewrite using builtin functions.
8179 * config/aarch64/iterators.md (UNSPEC_TBX): New.
8181 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
8183 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
8185 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
8186 Use ROUND_UP and ROUND_DOWN macros where applicable.
8187 (rs6000_darwin64_record_arg_flush): Ditto.
8188 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
8189 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
8192 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
8194 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
8195 (AARCH64_ROUND_DOWN): Ditto.
8196 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
8198 2015-10-12 Richard Biener <rguenther@suse.de>
8201 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
8202 code that analyzes IVs on each stmt but in a cheaper way avoiding
8205 2015-10-12 Nick Clifton <nickc@redhat.com>
8207 * config/msp430/msp430.c (msp430_mcu_names): Rename to
8208 msp430_mcu_data, add fields for ISA and hardware multiply
8209 support. Import latest data from the devices.csv file.
8210 (msp430_override_option): Use the data from the new array.
8211 (msp430_use_f5_series_hwmult): Likewise.
8212 (use_32bit_hwmult): Likewise.
8213 (msp430_no_hwmult): Likewise.
8214 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
8216 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
8217 not recognised then no hardware multiply support is assumed and
8218 that only the MSP430 ISA is allowed.
8220 2015-10-12 Richard Biener <rguenther@suse.de>
8222 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
8224 (vect_analyze_loop_2): ... here.
8226 2015-10-11 Jason Merrill <jason@redhat.com>
8229 * expr.c (store_field): Call store_constructor directly when
8230 storing a CONSTRUCTOR into a target smaller than its type.
8231 Guard against unsafe bitwise copy.
8233 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8235 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
8236 counts when these are more informative.
8238 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8240 * tree-profile.c (tree_profiling): Do not clear
8241 pure/const when not instrumenting.
8242 (pass tree_profile): Add dump of symtab.
8244 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8246 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
8248 (fold_addr_of_array_ref_difference): Likewise.
8250 2015-10-11 Jeff Law <law@redhat.com>
8252 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
8253 tree-ssa-threadbackward.c.
8254 (fsm_find_control_statement_thread_paths): Likewise.
8255 (thread_through_normal_block): Break out FSM bits and move them
8256 into a new function in tree-ssa-threadbackward.c. Call new function
8258 Minimize header file usage.
8259 * tree-ssa-threadbackward.h: New file.
8260 * tree-ssa-threadbackward.c: Likewise.
8261 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
8263 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
8265 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
8267 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
8269 PR rtl-optimization/67864
8270 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
8271 fallthrough edges for conditional jumps. Don't sort candidate
8272 edges if not optimizing for speed.
8274 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8276 * defaults.h (REVERSE_CONDITION): New default definition.
8277 * jump.c (reversed_comparison_code_parts): Adjust.
8279 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8281 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
8282 check HARD_FRAME_POINTER_IS_ARG_POINTER.
8284 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8286 * defaults.h (FRAME_ADDR_RTX): New default definition.
8287 * builtins.c (expand_builtin_return_addr): Adjust.
8289 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8291 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
8292 * builtins.c (expand_builtin_return_addr): Adjust.
8294 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8296 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
8297 * builtins.c (expand_builtin_return_addr): Adjust.
8298 * doc/tm.texi: Likewise.
8299 * doc/tm.texi.in: Likewise.
8300 * except.c (expand_builtin_unwind_init): Likewise.
8302 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8304 * builtins.c (expand_builtin_return_addr): Adjust.
8305 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
8307 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
8309 * tree.c (type_with_interoperable_signedness): New.
8310 (gimple_canonical_types_compatible_p): Use it.
8311 * tree.h (type_with_interoperable_signedness): Declare
8313 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
8315 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
8316 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
8317 when OEP_ADDRESS_OF is se.
8319 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
8320 Sebastian Pop <s.pop@samsung.com>
8322 * graphite-dependences.c (scop_get_dependences): Add dump of the
8323 data dependence graph.
8324 * graphite-poly.c (print_isl_union_map): New.
8325 (debug_isl_union_map): New.
8326 * graphite-poly.h (print_isl_union_map): Declare.
8327 (debug_isl_union_map): Declare.
8329 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
8330 Sebastian Pop <s.pop@samsung.com>
8332 * graphite-poly.c (print_iteration_domain): Remove verbosity.
8333 Remove OpenScop formatting.
8334 (print_iteration_domains): Same.
8335 (debug_iteration_domain): Same.
8336 (debug_iteration_domains): Same.
8339 (dump_gbb_cases): Same.
8340 (dump_gbb_conditions): Same.
8343 (print_pbb_body): Same.
8345 (print_scop_params): Same.
8346 (print_scop_context): Same.
8348 (debug_pbb_domain): Same.
8350 (debug_scop_context): Same.
8352 (debug_scop_params): Same.
8353 * graphite-poly.h: Same.
8354 * graphite.c (graphite_transform_loops): Same.
8356 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8358 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
8359 call that isn't needed.
8361 2015-10-09 Jeff Law <law@redhat.com>
8363 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
8364 rather than moving each name to the freelist individually.
8366 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
8368 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
8369 * frame-header-opt.c: New file.
8370 * config/mips/mips-proto.h (mips_register_frame_header_opt):
8372 * config/mips/mips.c (mips_compute_frame_info): Check
8373 optimize_call_stack flag.
8374 (mips_option_override): Register new frame_header_opt pass.
8375 (mips_frame_info, mips_int_mask, mips_shadow_set,
8376 machine_function): Move these types to...
8377 * config/mips/mips.h: here.
8378 (machine_function): Add does_not_use_frame_header and
8379 optimize_call_stack fields.
8380 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
8381 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
8383 * config/mips/mips.opt (mframe-header-opt): Add new option.
8385 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
8387 * config/i386/i386.c
8388 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
8389 ROUND_DOWN where applicable.
8391 2015-10-09 Jeff Law <law@redhat.com>
8393 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
8396 2015-10-09 Renlin Li <renlin.li@arm.com>
8398 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
8399 operands[0] and operands[2].
8400 (neon_vtrn<mode>_insn): Likewise.
8401 (neon_vzip<mode>_insn): Likewise.
8403 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
8405 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
8406 ((X & C2) << C1): Expand to...
8407 (X {&,^,|} C2 << C1): ...This.
8408 ((X & C2) >> C1): Expand to...
8409 (X {&,^,|} C2 >> C1): ...This.
8411 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
8414 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
8415 Adjust embedded rounding/SAE specifier position.
8416 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
8417 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
8418 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
8419 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
8420 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
8422 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
8424 2015-10-09 Martin Jambor <mjambor@suse.cz>
8426 tree-optimization/67794
8427 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
8428 between types of state,ents but accept original definitions as a
8430 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
8431 iterate over definitions.
8433 2015-10-09 James Norris <jnorris@codesourcery.com>
8435 * config/rs6000/rs6000.c (rs6000_offload_options): New.
8436 (TARGET_OFFLOAD_OPTIONS): New.
8438 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
8441 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
8444 * function.c (expand_function_end): Move return value
8445 promotion past the handling of PARALLELs and CONCATs.
8447 PR rtl-optimization/67828
8448 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
8449 (tree_may_unswitch_on): Don't unswitch on expressions
8450 involving undefined values.
8452 2015-10-09 Richard Biener <rguenther@suse.de>
8454 * genmatch.c (print_operand): Fix formatting.
8455 (dt_node::append_simplify): Warn for multiple simplifiers
8456 that match the same pattern.
8457 * match.pd (log (exp @0)): Remove duplicates.
8459 2015-10-09 Richard Biener <rguenth@suse.de>
8462 * gimple-fold.c (optabs-query.h): Include
8463 (gimple_fold_builtin_memory_op): Allow unaligned stores
8464 when movmisalign_optabs are available.
8466 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8469 * config/arm/arm.md (movmisalign<mode>): New.
8470 * config/arm/iterators.md (HSI): New.
8472 2015-10-09 Richard Biener <rguenther@suse.de>
8474 PR tree-optimization/67891
8475 * gimple-match.h (gimple_simplified_result_is_gimple_val):
8477 (gimple_resimplify1): Declare.
8478 (gimple_resimplify2): Likewise.
8479 (gimple_resimplify3): Likewise.
8480 * gimple-match-head.c (gimple_resimplify1): Export.
8481 (gimple_resimplify2): Likewise.
8482 (gimple_resimplify3): Likewise.
8483 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
8484 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
8485 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
8486 to avoid creating stmts without VN info.
8488 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
8490 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
8493 2015-10-08 Jeff Law <law@redhat.com>
8495 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
8496 and release_ssa_name in two places.
8497 (gimple_stringop_fixed_value): Similarly.
8499 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
8502 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
8503 unlink_stmt_vdef and release_ssa_name_fn.
8505 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
8508 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
8510 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
8511 SSE register save area to 16 bytes only if the incoming stack
8512 boundary is no less than 16 bytes.
8514 2015-10-08 Jeff Law <law@redhat.com>
8516 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
8517 release_ssa_name. Fix typo in comment.
8519 2015-10-08 Nathan Sidwell <nathan@acm.org>
8521 * config/nvptx/nvptx.h (struct machine_function): Add comment.
8522 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
8523 may return pointer as well as in memory.
8524 (nvptx_output_return): Likewise.
8526 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
8528 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
8529 (fold_builtin_1): Update accordingly. Handle constant arguments here.
8530 * match.pd: Add rules previously handled by fold_builtin_sqrt
8531 and fold_builtin_cbrt.
8533 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
8535 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
8536 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
8537 * fold-const.h (tree_unary_nonnegative_warnv_p)
8538 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
8539 (tree_expr_nonnegative_warnv_p): Add depth parameters.
8540 * fold-const.c: Include gimple-fold.h and params.h.
8541 (tree_ssa_name_nonnegative_warnv_p): New function.
8542 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
8543 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
8544 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
8545 Add a depth parameter and increment it for recursive calls to
8546 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
8547 to handle SSA names.
8548 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
8549 (gimple_stmt_nonnegative_warnv_p): Declare.
8550 * tree-vrp.c (remove_range_assertions): Remove assert that condition
8551 cannot be proven false.
8552 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
8553 (gimple_stmt_nonnegative_warnv_p): Move to...
8554 * gimple-fold.c: ...here. Add depth parameters and pass them
8555 down to the tree routines. Accept statements that aren't
8556 assignments or calls but just return false for them.
8557 (gimple_val_nonnegative_real_p): Delete.
8558 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
8559 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
8560 Check HONOR_NANs first.
8562 2015-10-08 Martin Jambor <mjambor@suse.cz>
8564 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
8567 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
8569 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
8570 in the tail of outer-loop.
8572 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
8574 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
8577 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
8579 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
8580 "cfghooks.h", add prototypes for introduced new functions.
8581 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
8582 checks on ability of loop unswitching to tree_unswitch_single_loop;
8583 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
8584 on innermost loop check.
8585 (tree_unswitch_single_loop): Add all required checks on ability of
8586 loop unswitching under zero recursive level guard.
8587 (tree_unswitch_outer_loop): New function.
8588 (find_loop_guard): Likewise.
8589 (empty_bb_without_guard_p): Likewise.
8590 (used_outside_loop_p): Likewise.
8591 (get_vop_from_header): Likewise.
8592 (hoist_guard): Likewise.
8593 (check_exit_phi): Likewise.
8595 2015-10-08 Marek Polacek <polacek@redhat.com>
8597 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
8600 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8603 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
8604 create_tmp_var_raw instead of create_tmp_var.
8606 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
8608 * expr.c (store_expr_with_bounds): Handle aggregate moves from
8610 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
8611 to define gimple type system; compare aggregates only by size.
8613 2015-10-07 Jeff Law <law@redhat.com>
8615 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
8616 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
8617 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
8620 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
8621 Sebastian Pop <s.pop@samsung.com>
8623 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
8624 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
8625 (generate_isl_schedule): Same.
8626 * graphite-optimize-isl.c (scop_get_domains): Same.
8627 (apply_schedule_map_to_scop): Same.
8628 * graphite-poly.c (print_iteration_domains): Same.
8629 (remove_gbbs_in_scop): Same.
8633 * graphite-poly.h (struct scop): Rename bbs to pbbs.
8635 * graphite-scop-detection.c (compare_bb_depths): Remove.
8636 (graphite_sort_dominated_info): Remove.
8637 (try_generate_gimple_bb): Move out of scop_detection.
8638 (all_non_dominated_preds_marked_p): Remove.
8639 (build_scop_bbs_1): Remove.
8640 (build_scop_bbs): Remove.
8641 (nb_pbbs_in_loops): Do not use SCOP_BBS.
8642 (find_scop_parameters): Same.
8643 (sese_dom_walker): Rename gather_bbs.
8644 (before_dom_children): Call try_generate_gimple_bb and collect gbb
8646 (build_scops): Call gather_bbs.
8647 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
8648 (add_conditions_to_constraints): Same.
8649 (build_scop_iteration_domain): Same.
8650 (build_scop_drs): Same.
8651 (new_pbb_from_pbb): Same.
8652 * sese.c (new_sese_info): Create bbs.
8653 * sese.h (struct sese_info_t): Add bbs.
8655 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
8657 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
8658 encoding in 64-bit mode.
8660 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
8663 * config/i386/i386.c (ix86_option_override_internal): Always use
8664 8-byte minimum stack boundary in 64-bit mode.
8665 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
8666 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
8667 Add a REG_CFA_EXPRESSION note if needed.
8668 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
8669 (ix86_handle_force_align_arg_pointer_attribute): New.
8670 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
8671 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
8672 with ix86_handle_force_align_arg_pointer_attribute.
8673 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
8675 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
8676 Sebastian Pop <s.pop@samsung.com>
8678 * graphite-scop-detection.c (parameter_index_in_region): Remove
8679 use of SESE_ADD_PARAMS.
8680 (find_scop_parameters): Same.
8681 * sese.c (new_sese_info): Same.
8682 * sese.h (struct sese_info_t): Remove add_params.
8683 (SESE_ADD_PARAMS): Remove.
8685 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
8686 Sebastian Pop <s.pop@samsung.com>
8688 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
8691 (copy_internal_parameters): Same.
8692 (translate_isl_ast_to_gimple): Use an sese_l.
8693 (build_iv_mapping): Same.
8694 * graphite-poly.c (new_sese): Rename new_sese_info.
8695 (free_sese): Rename free_sese_info.
8696 * graphite-poly.h (struct scop): Use an sese_info_p.
8697 (scop_set_region): Same.
8698 * graphite-scop-detection.c (struct sese_l): Moved...
8699 (get_entry_bb): Moved...
8700 (get_exit_bb): Moved...
8701 (parameter_index_in_region_1): Use an sese_info_p.
8702 (parameter_index_in_region): Same.
8703 (scan_tree_for_params): Same.
8704 (find_params_in_bb): Same.
8705 (sese_dom_walker): Use an sese_l.
8706 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
8707 (reduction_phi_p): Same.
8708 (parameter_index_in_region_1): Use an sese_info_p.
8709 (propagate_expr_outside_region): Use an sese_l.
8710 * graphite.c: Replace uses of SCOP_REGION.
8711 * sese.c (sese_record_loop): Use an sese_info_p.
8712 (build_sese_loop_nests): Same.
8713 (sese_build_liveouts_use): Same.
8714 (sese_build_liveouts_bb): Same.
8715 (sese_build_liveouts_bb): Same.
8716 (sese_bad_liveouts_use): Same.
8717 (sese_reset_debug_liveouts_bb): Same.
8718 (sese_build_liveouts): Same.
8719 (new_sese): Renamed new_sese_info.
8720 (free_sese): Renamed free_sese_info.
8721 (set_rename): Use an sese_info_p.
8722 (graphite_copy_stmts_from_block): Same.
8723 (copy_bb_and_scalar_dependences): Same.
8724 (outermost_loop_in_sese_1): Use an sese_l.
8725 (outermost_loop_in_sese): Same.
8726 (if_region_set_false_region): Use an sese_info_p.
8727 (move_sese_in_condition): Same.
8728 (scalar_evolution_in_region): Use an sese_l.
8729 * sese.h (struct sese_l): ... here.
8730 (SESE_ENTRY): Remove.
8731 (SESE_ENTRY_BB): Remove.
8732 (SESE_EXIT): Remove.
8733 (SESE_EXIT_BB): Remove.
8734 (sese_contains_loop): Use an sese_info_p.
8735 (sese_nb_params): Same.
8736 (bb_in_sese_p): Use an sese_l.
8737 (stmt_in_sese_p): Same.
8738 (defined_in_sese_p): Same.
8739 (loop_in_sese_p): Same.
8740 (sese_loop_depth): Same.
8741 (struct ifsese_s): Use an sese_info_p.
8742 (gbb_loop_at_index): Use an sese_l.
8743 (nb_common_loops): Same.
8744 (scev_analyzable_p): Same.
8746 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
8748 * config/i386/i386.c (ix86_conditional_register_usage): Use
8749 CALL_USED_REGISTERS_MASK.
8750 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
8752 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
8755 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
8756 * configure: Regenerated.
8758 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
8761 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
8762 (ix86_set_current_function): This.
8763 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
8765 2015-10-07 Richard Biener <rguenther@suse.de>
8767 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
8768 (vinfo_for_stmt): Adjust.
8769 (set_vinfo_for_stmt): Likewise.
8770 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
8771 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
8772 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
8774 (vect_analyze_loop_1): Remove.
8775 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
8776 inner loop when vectorizing an outer loop by splitting out from ...
8777 (vect_analyze_loop_form): ... here.
8779 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8782 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
8783 Use create_tmp_var_raw instead of create_tmp_var.
8785 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
8787 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
8788 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
8789 * real.c (CACHED_FRACTION): New helper macro.
8790 (dconst_third_ptr): Use it.
8791 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
8792 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
8794 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
8796 2015-10-06 Jeff Law <law@redhat.com>
8798 PR tree-optimization/67816
8799 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
8800 from remove_jump_threads_starting_at. Accept an edge rather than
8802 * tree-ssa-threadupdate.c (removed_edges): New hash table.
8803 (remove_jump_threads_including): Note edges that get removed from
8804 the CFG for later pruning of jump threading paths including them.
8805 (thread_through_all_blocks): Remove paths which include edges that
8807 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
8808 on each outgoing edges when optimizing away a control statement.
8810 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8812 * reorg.c (emit_delay_sequence): Store list of delay slot insns
8813 in a vector instead of rtx_insn_list.
8814 (add_to_delay_list): Likewise.
8815 (delete_from_delay_slot): Likewise.
8816 (optimize_skip): Likewise.
8817 (redirect_with_delay_list_safe_p): Likewise.
8818 (check_annul_list_true_false): Likewise.
8819 (steal_delay_list_from_target): Likewise.
8820 (steal_delay_list_from_fallthrough): Likewise.
8821 (redundant_insn): Likewise.
8822 (fill_simple_delay_slots): Likewise.
8823 (fill_slots_from_thread): Likewise.
8824 (fill_eager_delay_slots): Likewise.
8825 (relax_delay_slots): Likewise.
8827 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
8829 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
8830 For -mgpopt=local, also exclude unintialized common symbols.
8831 * doc/invoke.texi (Nios II Options): Document the change.
8833 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
8835 * config/aarch64/iterators.md (vwcore): Add missing cases for
8838 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
8839 Sebastian Pop <s.pop@samsung.com>
8841 * graphite-poly.c (new_scop): Initialize drs.
8842 * graphite-poly.h (struct dr_info): New.
8843 (struct scop): Add drs.
8844 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
8845 (pdr_add_memory_accesses): Same.
8846 (build_poly_dr): Same.
8847 (build_alias_set): Same.
8848 (build_scop_drs): Same.
8849 (build_pbb_drs): Remove.
8850 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
8851 * tree-data-ref.h (data_reference): Remove alias_set.
8853 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
8854 Sebastian Pop <s.pop@samsung.com>
8856 * graphite-poly.c (free_data_refs_aux): Remove.
8857 (free_gimple_poly_bb): Do not call free_data_refs_aux.
8858 * graphite-poly.h (struct base_alias_pair): Remove.
8859 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
8860 base_alias_pair and dr->aux.
8861 (build_alias_set): Same.
8862 * tree-data-ref.c (create_data_ref): Initialize alias_set.
8863 * tree-data-ref.h (data_reference): Add alias_set.
8865 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
8866 Sebastian Pop <s.pop@samsung.com>
8868 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
8869 Do not set PDR_BASE_OBJECT_SET.
8870 * graphite-poly.h (poly_dr): Same.
8871 (PDR_BASE_OBJECT_SET): Remove.
8872 (new_poly_dr): Update decl.
8873 * graphite-sese-to-poly.c (build_poly_dr): Update call to
8875 (write_alias_graph_to_ascii_dimacs): Remove.
8876 (write_alias_graph_to_ascii_dot): Remove.
8877 (write_alias_graph_to_ascii_ecc): Remove.
8878 (dr_same_base_object_p): Remove.
8879 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
8881 (build_base_obj_set_for_drs): Remove.
8882 (dump_alias_graphs): Remove.
8883 (build_scop_drs): Remove dead code.
8885 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
8886 Peter Bergner <bergner@vnet.ibm.com>
8889 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
8890 allow registers, but provide insns for the combiner to create for
8891 loads from memory. Separate VSX code from non-VSX code. For
8892 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
8893 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
8894 so that registers come before memory operations. Drop support from
8895 converting DFmode to TFmode, if the DFmode value is in a GPR
8897 (extenddftf2_fprs): Likewise.
8898 (extenddftf2_internal): Likewise.
8899 (extenddftf2_vsx): Likewise.
8900 (extendsftf2): In the expander, only allow registers, but provide
8901 insns for the combiner to create for stores and loads.
8903 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8905 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
8906 from the decl parameter.
8908 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
8911 * gimple-fold.c (gimple_fold_builtin): Add break after
8912 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
8914 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
8916 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
8917 to scop->isl_context.
8919 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
8921 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
8922 (output_probe_stack_range): Rotate the loop and simplify.
8923 (thumb1_expand_prologue): Tweak sorry message.
8924 * config/arm/arm.md (probe_stack): Use bare string.
8926 2015-10-06 Nick Clifton <nickc@redhat.com>
8928 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
8930 2015-10-06 Nick Clifton <nickc@redhat.com>
8932 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
8933 (ATTR_PERSIST): New constant.
8934 (msp430_data_attr): New function - verifies an attribute that only
8935 applies to variables.
8936 (msp430_attributes): Add noinit and persistent attributes.
8937 (noinit_section): New variable.
8938 (presis_section): New variable.
8939 (TARGET_ASM_INIT_SECTIONS): Define.
8940 (msp430_init_sections): New function - initialises the noinit and
8941 persist section variables.
8942 (msp430_select_section): Add support for noinit and persist
8944 (msp430_section_type_flags): Likewise.
8945 * doc/extend.texi: Document the reent, critical, wakeup, noinit
8946 and persistent attributes.
8948 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
8949 Sebastian Pop <s.pop@samsung.com>
8951 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
8952 (no_violations): Remove.
8953 (subtract_commutative_associative_deps): Remove.
8954 (compute_deps): Do not call subtract_commutative_associative_deps.
8955 (transform_is_safe): Remove.
8956 (graphite_legal_transform): Remove.
8957 * graphite-poly.h (graphite_legal_transform): Remove.
8959 2015-10-05 Aditya Kumar <hiraditya@msn.com>
8961 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
8962 which are in this region are passed so gcc_assert and remove redundant
8964 * sese.c (sese_build_liveouts): Pass only those bbs which are not
8966 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
8967 gcc_assert on that and remove unnecessary computation.
8968 (sese_build_liveouts_use): Same.
8970 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
8972 * graphite-dependences.c (scop_get_reads): Renamed scop->context
8973 to scop->param_context.
8974 (scop_get_must_writes): Same.
8975 (scop_get_may_writes): Same.
8976 (scop_get_original_schedule): Same.
8977 (scop_get_transformed_schedule): Same.
8978 (subtract_commutative_associative_deps): Same.
8979 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
8980 (generate_isl_context): Same.
8981 (generate_isl_schedule): Same.
8982 (scop_to_isl_ast): Same.
8983 (graphite_regenerate_ast_isl): Same.
8984 * graphite-optimize-isl.c (scop_get_domains): Same.
8985 (optimize_isl): Renamed scop->context to scop->param_context.
8986 * graphite-poly.c (new_poly_bb): Change the type of argument to
8988 (new_scop): Renamed scop->context to scop->param_context.
8990 (print_scop_context): Same.
8991 * graphite-poly.h (new_poly_dr): Change the type of argument from
8992 void* to data_reference_p.
8993 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
8994 (new_poly_bb): Change the type of argument from void* to
8996 (pbb_set_black_box): Same.
8997 (struct scop): Rename context to param_context, ctx to isl_context.
8998 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
8999 Move declarations closer to assignment.
9000 (find_params_in_bb): Same.
9001 (find_scop_parameters): Same.
9002 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
9003 Global to be used for statement IDs.
9004 (isl_id_for_pbb): Use ssa_name_version_typesize.
9005 (simple_copy_phi_p): Move declarations closer to assignment.
9006 (build_pbb_scattering_polyhedrons): Same.
9007 (build_scop_scattering): Same.
9008 (isl_id_for_ssa_name): Same.
9009 (extract_affine_name): Same.
9010 (extract_affine_int): Same.
9011 (extract_affine): Same.
9012 (set_scop_parameter_dim): Use renamed member.
9013 (build_loop_iteration_domains): Same.
9014 (add_param_constraints): Same.
9015 (build_scop_iteration_domain): Same.
9016 (pdr_add_data_dimensions): Same.
9017 (build_poly_dr): Same.
9018 (build_scop_drs): Move declarations closer to assignment.
9019 (analyze_drs_in_stmts): Same.
9020 (insert_out_of_ssa_copy): Same.
9021 (insert_out_of_ssa_copy_on_edge): Same.
9022 (propagate_expr_outside_region): Same.
9023 (rewrite_phi_out_of_ssa): Same.
9024 (rewrite_degenerate_phi): Same.
9025 (rewrite_reductions_out_of_ssa): Same.
9026 (rewrite_cross_bb_scalar_dependence): Same.
9027 (handle_scalar_deps_crossing_scop_limits): Same.
9028 (rewrite_cross_bb_scalar_deps): Same.
9029 * graphite.c (graphite_transform_loops): Use renamed member.
9031 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
9034 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
9035 create_tmp_var_raw instead of create_tmp_var.
9037 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9040 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
9041 Use create_tmp_var_raw instead of create_tmp_var.
9043 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
9046 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
9047 split for upper-bank registers when target does not support
9049 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
9050 split when target does not support AVX512VL.
9052 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
9055 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
9056 Adjust to use create_tmp_var_raw instead of create_tmp_var.
9058 2015-10-06 Nick Clifton <nickc@redhat.com>
9060 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
9063 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9065 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
9066 (case ${target}): Add znver1.
9067 * config/i386/cpuid.h(bit_CLZERO): Define.
9068 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
9069 -march=native recognize znver1 processors.
9070 * config/i386/i386-c.c (ix86_target_macros_internal): Add
9071 znver1, clzero def_and_undef.
9072 * config/i386/i386.c (struct processor_costs znver1_cost): New.
9073 (m_znver1): New definition.
9074 (m_AMD_MULTIPLE): Includes m_znver1.
9075 (processor_target_table): Add znver1 entry.
9076 (ix86_target_string) : Add clzero entry.
9077 (static const char *const cpu_names): Add znver1 entry.
9078 (ix86_option_override_internal): Add znver1 instruction sets.
9079 (PTA_CLZERO) : New definition.
9080 (ix86_option_override_internal): Handle new clzerooption.
9081 (ix86_issue_rate): Add znver1.
9082 (ix86_adjust_cost): Add znver1.
9083 (ia32_multipass_dfa_lookahead): Add znver1.
9084 (has_dispatch): Add znver1.
9085 * config/i386/i386.h (TARGET_znver1): New definition.
9086 (TARGET_CLZERO): Define.
9087 (TARGET_CLZERO_P): Define.
9088 (struct ix86_size_cost): Add TARGET_ZNVER1.
9089 (enum processor_type): Add PROCESSOR_znver1.
9090 * config/i386/i386.md (define_attr "cpu"): Add znver1.
9091 (set_attr znver1_decode): New definitions for znver1.
9092 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
9094 * config/i386/mmx.md (set_attr znver1_decode): New definitions
9096 * config/i386/sse.md (set_attr znver1_decode): Likewise.
9097 * config/i386/x86-tune.def: Add znver1 tunings.
9098 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
9099 * doc/invoke.texi: Add details about znver1
9101 2015-10-06 Richard Biener <rguenther@suse.de>
9103 PR tree-optimization/67859
9104 * tree-ssa-pre.c (create_expression_by_pieces): Properly
9105 discard not inserted stmts.
9107 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
9109 * doc/extend.texi (Template Instantiation): Reorder options and
9110 de-emphasize -frepo.
9111 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
9112 example instead of -frepo.
9114 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
9117 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
9118 use create_tmp_var_raw rather than create_tmp_var.
9120 2015-10-06 Richard Biener <rguenther@suse.de>
9122 * tree-vectorizer.h (vec_info): New base class for...
9123 (_loop_vec_info): ... this and ...
9124 (_bb_vec_info): ... this.
9125 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
9126 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
9127 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
9128 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
9129 vect_destroy_datarefs): Adjust interface to take a vec_info *
9130 rather than both a loop_vec_info and a bb_vec_info argument.
9131 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
9132 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
9133 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
9134 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
9136 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
9137 (destroy_loop_vec_info, vect_analyze_loop_2,
9138 vect_is_simple_reduction_1, get_initial_def_for_induction,
9139 vect_create_epilog_for_reduction, vectorizable_reduction,
9140 vectorizable_live_operation, vect_transform_loop): Adjust.
9141 * tree-vect-patterns.c (type_conversion_p,
9142 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
9143 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
9144 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
9145 check_bool_pattern, vect_recog_bool_pattern,
9146 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
9147 * tree-vect-slp.c (vect_get_and_check_slp_defs,
9148 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
9149 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
9150 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
9151 (new_bb_vec_info): Initialize base classs.
9152 * tree-vect-stmts.c (record_stmt_cost, process_use,
9153 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
9154 vectorizable_mask_load_store, vectorizable_call,
9155 vectorizable_simd_clone_call, vectorizable_conversion,
9156 vectorizable_assignment, vectorizable_shift,
9157 vectorizable_operation, vectorizable_store,
9158 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
9159 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
9160 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
9162 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
9165 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
9166 create_tmp_var_raw rather than create_tmp_var.
9168 2015-10-05 Marek Polacek <polacek@redhat.com>
9170 * tree-ssa-loop-im.c
9171 (move_computations_dom_walker::before_dom_children): Don't set
9172 SSA_NAME_ANTI_RANGE_P.
9173 * tree-ssa-phiopt.c (value_replacement): Likewise.
9175 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9176 Sebastian Pop <s.pop@samsung.com>
9178 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
9180 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9181 Sebastian Pop <s.pop@samsung.com>
9183 * graphite-poly.c (new_gimple_poly_bb): ... here.
9184 (free_data_refs_aux): ... here.
9185 (free_gimple_poly_bb): ... here.
9186 (remove_gbbs_in_scop): ... here.
9187 (new_scop): Call new_sese.
9188 (free_scop): Call remove_gbbs_in_scop and free_sese.
9189 * graphite-poly.h (base_alias_pair): ... here.
9190 (new_gimple_poly_bb): Declare.
9191 (free_gimple_poly_bb): Declare.
9192 * graphite-scop-detection.c (parameter_index_in_region_1):
9193 (parameter_index_in_region): ... here.
9194 (scan_tree_for_params): ... here.
9195 (find_params_in_bb): ... here.
9196 (find_scop_parameters): ... here.
9197 (build_scops): Call find_scop_parameters.
9198 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
9199 (free_scops): Move...
9200 (single_pred_cond_non_loop_exit): Move...
9201 (sese_dom_walker::before_dom_children): Move...
9202 (sese_dom_walker::after_dom_children): Move...
9203 (build_poly_scop): Move...
9204 * graphite-sese-to-poly.h (base_alias_pair): Move...
9205 * graphite.c (free_scops): ... here.
9207 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9208 Sebastian Pop <s.pop@samsung.com>
9210 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
9211 (trivially_empty_bb_p): Move...
9212 (same_close_phi_node): Move...
9213 (new_gimple_poly_bb): Move...
9214 (compare_bb_depths): Move...
9215 (graphite_sort_dominated_info): Move...
9216 (remove_duplicate_close_phi): Move...
9217 (make_close_phi_nodes_unique): Move...
9218 (canonicalize_loop_closed_ssa): Move...
9219 (canonicalize_loop_closed_ssa_form): Move...
9220 (loop_ivs_can_be_represented): Move...
9221 (single_pred_cond_non_loop_exit): Move...
9222 (graphite_can_represent_init): Move...
9223 (graphite_can_represent_scev): Move...
9224 (stmt_has_simple_data_refs_p): Move...
9225 (stmt_has_side_effects): Move...
9226 (graphite_can_represent_stmt): Move...
9227 (scop_detection): ... here.
9228 (sese_dom_walker): ... and here.
9229 (build_scops): Call all moved functions.
9230 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
9231 (all_non_dominated_preds_marked_p): Move...
9232 (build_scop_bbs_1): Move...
9233 (build_scop_bbs): Move...
9234 (set_scop_parameter_dim): Move...
9235 (nb_pbbs_in_loops): Move...
9236 (build_poly_scop): Do not call all the moved functions.
9238 2015-10-05 Martin Jambor <mjambor@suse.cz>
9239 Jan Hubicka <hubicka@ucw.cz>
9241 * ipa-cp.c (ipcp_alignment_lattice): New type.
9242 (ipcp_param_lattices): Use the above to represent alignment.
9243 (ipcp_alignment_lattice::print): New function.
9244 (print_all_lattices): Use it to print alignment information.
9245 (ipcp_alignment_lattice::top_p): New function.
9246 (ipcp_alignment_lattice::bottom_p): Likewise.
9247 (ipcp_alignment_lattice::set_to_bottom): Likewise.
9248 (ipcp_alignment_lattice::meet_with_1): Likewise.
9249 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
9250 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
9251 (initialize_node_lattices): Likewise.
9252 (propagate_alignment_accross_jump_function): Work with the new class
9253 for alignment lattices.
9254 (propagate_constants_accross_call): Pass only the alignment lattice to
9255 propagate_alignment_accross_jump_function.
9256 (ipcp_store_alignment_results): Work with the new class for alignment
9259 2015-10-05 Marek Polacek <polacek@redhat.com>
9261 PR tree-optimization/67821
9262 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
9264 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
9267 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
9269 (mkoffload_cleanup): ... this. Adjust all users.
9270 (maybe_unlink): Look at save_temps and verbose flags instead of
9272 (main): Parse "-save-temps" flag.
9273 (generate_target_descr_file, generate_target_offloadend_file)
9274 (generate_host_descr_file, prepare_target_image): Pass it on.
9275 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
9276 (mkoffload_cleanup): New function.
9277 (maybe_unlink): Look at save_temps and verbose flags instead of
9279 (main): Instead of calling utils_cleanup, register atexit handler
9280 for mkoffload_cleanup.
9281 (main): Parse "-save-temps" flag.
9282 (compile_native, main): Pass it on.
9283 * lto-wrapper.c (compile_offload_image): Likewise.
9285 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9287 * gimple.h (gimple_op_ptr): Require a non const gimple *.
9288 (gimple_assign_lhs_ptr): Likewise.
9289 (gimple_assign_rhs1_ptr): Likewise.
9290 (gimple_assign_rhs2_ptr): Likewise.
9291 (gimple_assign_rhs3_ptr): Likewise.
9292 (gimple_call_lhs_ptr): Likewise.
9293 (gimple_call_fn_ptr): Likewise.
9294 (gimple_call_chain_ptr): Likewise.
9295 (gimple_call_arg_ptr): Likewise.
9296 (gimple_cond_lhs_ptr): Likewise.
9297 (gimple_cond_rhs_ptr): Likewise.
9298 (gimple_switch_index_ptr): Likewise.
9299 (gimple_return_retval_ptr): Likewise.
9301 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9303 * gimple.h (gimple_asm_input_op_ptr): Remove.
9304 (gimple_asm_output_op_ptr): Likewise.
9306 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9308 * gimple.h (gimple_location_ptr): Remove.
9309 * tree-vrp.c (check_all_array_refs): Adjust.
9311 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9313 * tree-ssa-operands.c (build_uses): store tree * instead of
9315 (finalize_ssa_uses): Adjust.
9316 (append_use): Likewise.
9317 (verify_ssa_operands): Likewise.
9319 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9321 * real.h (build_real_truncate): Declare.
9322 * tree.c (build_real_truncate): New function.
9323 (strip_float_extensions): Use it.
9324 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
9325 (fold_builtin_hypot, fold_builtin_pow): Likewise.
9326 * match.pd: Likewise.
9328 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
9329 Jiong Wang <jiong.wang@arm.com>
9331 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
9333 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9335 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
9336 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
9337 (aarch64_print_operand, aarch64_float_const_representable_p)
9338 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
9339 instead of REAL_VALUE_FROM_CONST_DOUBLE.
9340 * config/arc/arc.c (arc_print_operand): Likewise.
9341 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
9342 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
9343 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
9345 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
9346 (consttable_16): Likewise.
9347 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
9348 * config/avr/avr.c (avr_print_operand): Likewise.
9349 * config/bfin/bfin.md: Likewise (in a define_split).
9350 * config/c6x/c6x.md: Likewise (in a define_split).
9351 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
9352 (cr16_print_operand): Likewise.
9353 * config/cris/cris.c (cris_print_operand): Likewise.
9354 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
9355 * config/fr30/fr30.c (fr30_print_operand): Likewise.
9356 (fr30_const_double_is_zero): Likewise.
9357 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
9358 * config/frv/frv.md: Likewise (in a define_split).
9359 * config/frv/predicates.md (int_2word_operand): Likewise.
9360 * config/h8300/h8300.c (h8300_print_operand): Likewise.
9361 * config/i386/i386.c (standard_80387_constant_p): Likewise.
9362 (ix86_print_operand, ix86_split_to_parts): Likewise.
9363 * config/i386/i386.md: Likewise (in a define_split).
9364 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
9365 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
9366 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
9367 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
9368 (print_operand): Likewise.
9369 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
9370 * config/mep/mep.md: Likewise (in define_split).
9371 * config/microblaze/microblaze.c (microblaze_const_double_ok)
9372 (print_operand): Likewise.
9373 * config/mips/mips.md (consttable_float): Likewise.
9374 * config/mmix/mmix.c (mmix_intval): Likewise.
9375 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
9376 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
9377 * config/pa/pa.c (pa_singlemove_string): Likewise.
9378 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
9379 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
9380 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
9381 (output_toc): Likewise.
9382 * config/rs6000/rs6000.md: Likewise (in define_splits).
9383 * config/rx/rx.c (rx_print_operand): Likewise.
9384 * config/s390/s390.c (s390_output_pool_entry): Likewise.
9385 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
9386 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
9387 (and also in define_splits).
9388 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
9389 (fp_high_losum_p): Likewise.
9390 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
9391 (*movsf_high): Likewise.
9392 * config/spu/spu.c (const_double_to_hwint): Likewise.
9393 * config/v850/v850.c (const_double_split): Likewise.
9394 * config/vax/vax.c (vax_float_literal): Likewise.
9395 * config/visium/visium.c (visium_expand_copysign): Likewise.
9396 * config/visium/visium.md: Likewise (in define_split).
9397 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
9398 * config/xtensa/xtensa.c (print_operand): Likewise.
9399 (xtensa_output_literal): Likewise.
9400 * cprop.c (implicit_set_cond_p): Likewise.
9401 * dwarf2out.c (insert_float): Likewise.
9402 * expmed.c (expand_mult, make_tree): Likewise.
9403 * expr.c (compress_float_constant): Likewise.
9404 * rtlanal.c (split_double): Likewise.
9405 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
9406 (simplify_const_unary_operation, simplify_binary_operation_1)
9407 (simplify_const_binary_operation): Likewise.
9408 (simplify_const_relational_operation): Likewise.
9409 * varasm.c (output_constant_pool_2): Likewise.
9411 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9413 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
9414 instead of CONST_DOUBLE_FROM_REAL_VALUE.
9415 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
9416 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
9417 instead of CONST_DOUBLE_FROM_REAL_VALUE.
9418 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
9419 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
9420 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
9421 (ix86_emit_swsqrtsf): Likewise.
9422 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
9423 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
9424 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
9425 * config/pa/pa.c (pa_expand_builtin): Likewise.
9426 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
9427 (rs6000_scale_v2df): Likewise.
9428 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
9429 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
9430 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
9431 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
9432 (vec_ctul): Likewise.
9433 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
9434 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
9435 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
9436 * cse.c (fold_rtx): Likewise.
9437 * emit-rtl.c (immed_double_const): Likewise (in comments).
9438 (init_emit_once): Likewise.
9439 * expr.c (compress_float_constant, expand_expr_real_1)
9440 (const_vector_from_tree): Likewise.
9441 * optabs.c (expand_float, expand_fix): Likewise.
9442 * reg-stack.c (reg_to_stack): Likewise.
9443 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
9444 (simplify_const_unary_operation, simplify_binary_operation_1)
9445 (simplify_const_binary_operation, simplify_relational_operation)
9446 (simplify_immed_subreg): Likewise.
9448 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9450 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
9451 * doc/tm.texi: Regenerate.
9452 * real.h (REAL_ARITHMETIC): Delete.
9453 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
9454 (ix86_expand_round_sse4): Use real_arithmetic instead of
9456 * config/i386/sse.md (round<mode>2): Likewise.
9457 * rtl.h (rtx_to_tree_code): Likewise (in comment).
9458 * explow.c (rtx_to_tree_code): Likewise (in comment).
9459 * match.pd: Likewise.
9460 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9461 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
9462 (expand_pow_as_sqrts): Likewise.
9463 * tree-pretty-print.c (dump_generic_node): Remove code that
9464 was conditional on REAL_ARITHMETIC being undefined.
9466 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9468 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
9469 * doc/tm.texi: Regenerate.
9470 * real.h (real_less): Declare.
9471 (REAL_VALUES_LESS): Delete.
9472 * real.c (real_less): New function.
9473 (real_compare): Use it.
9474 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
9475 of REAL_VALUES_LESS.
9476 * config/microblaze/microblaze.c (microblaze_const_double_ok):
9478 * fold-const.c (fold_convert_const_int_from_real): Likewise.
9479 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9480 (simplify_const_relational_operation): Likewise.
9481 * tree-call-cdce.c (check_pow): Likewise.
9482 (gen_conditions_for_pow_cst_base): Likewise.
9484 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9486 * real.h (REAL_VALUES_IDENTICAL): Delete.
9487 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
9488 instead of REAL_VALUES_IDENTICAL.
9489 * fold-const.c (operand_equal_p): Likewise.
9490 * ipa-icf.c (sem_variable::equals): Likewise.
9491 * tree-complex.c (some_nonzerop): Likewise.
9492 (expand_complex_multiplication): Likewise.
9493 * tree.c (simple_cst_equal): Likewise.
9494 * varasm.c (compare_constant): Likewise.
9496 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9498 * real.h (real_equal): Declare.
9499 (REAL_VALUES_EQUAL): Delete.
9500 * real.c (real_equal): New function.
9501 (real_compare): Use it.
9502 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
9503 * doc/tm.texi: Regenerate.
9504 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
9505 real_equal instead of REAL_VALUES_EQUAL.
9506 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
9507 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
9508 (fp_const_from_val): Likewise.
9509 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
9510 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
9511 (floating_exact_log2): Likewise.
9512 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
9513 * config/vax/vax.c (vax_float_literal): Likewise.
9514 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
9515 * cprop.c (implicit_set_cond_p): Likewise.
9516 * expmed.c (expand_mult): Likewise.
9517 * fold-const.c (const_binop): Likewise.
9518 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9519 (simplify_const_binary_operation): Likewise.
9520 (simplify_const_relational_operation): Likewise.
9521 * tree-call-cdce.c (check_pow): Likewise.
9522 (gen_conditions_for_pow_cst_base): Likewise.
9523 * tree-inline.c (estimate_num_insns): Likewise.
9524 * tree-ssa-dom.c (record_equality): Likewise.
9525 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
9526 (gimple_expand_builtin_pow): Likewise.
9527 (pass_optimize_widening_mul::execute): Likewise.
9528 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
9529 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
9530 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
9532 2015-10-05 Richard Biener <rguenther@suse.de>
9535 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
9536 consider loop header PHI defs as IVs.
9538 2015-10-05 Richard Biener <rguenther@suse.de>
9540 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
9542 (create_expression_by_pieces): ... here and build GIMPLE
9543 calls directly. Use gimple_build API and avoid force_gimple_operand.
9544 (insert_into_preds_of_block): Simplify.
9545 (do_regular_insertion): Add comment.
9547 2015-10-04 Jason Merrill <jason@redhat.com>
9549 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
9551 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
9553 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
9554 check for general register.
9555 (ix86_emit_save_regs): Ditto.
9556 (ix86_emit_save_regs_using_mov): Ditto.
9557 (ix86_emit_restore_regs_using_pop): Ditto.
9558 (ix86_emit_restore_regs_using_mov): Ditto.
9560 2015-10-03 Marek Polacek <polacek@redhat.com>
9562 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
9563 (insn-dfatab.o): Likewise.
9565 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
9567 * config.gcc (xtensa*-*-uclinux*): New configuration.
9568 * config/xtensa/uclinux.h: New file.
9569 * config/xtensa/uclinux.opt: New file.
9571 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
9573 * doc/cpp.texi (Standard Predefined Macros): Document value of
9574 __cplusplus for C++14.
9576 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
9578 * gcc.c (process_command): Use spec_machine rather than
9579 spec_host_machine to build tooldir_prefix2.
9581 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
9582 Bernd Schmidt <bernds@codesourcery.com>
9584 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
9585 (Token, Stmt): Remove structs.
9586 (decls, vars, fns): Remove variables.
9587 (alloc_comment, append_stmt, is_keyword): Remove macros.
9588 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
9589 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
9590 (parse_init, parse_file): Remove functions.
9591 (read_file): Accept a pointer to a length and store into it.
9592 (process): Don't try to parse the input file, just write it out as
9593 a string, but looking for maps. Also write out the length.
9594 (main): Don't use "-S" to compile PTX code.
9596 2015-10-02 Jeff Law <law@redhat.com>
9598 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
9601 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
9604 * config/nvptx/mkoffload.c (main): Scan the argument vector for
9605 -fopenmp, and skip generating an offloading image if specified.
9607 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
9609 * system.h (ROUND_UP): New macro definition.
9610 (ROUND_DOWN): Ditto.
9611 * ggc-page.c (ROUND_UP): Remove local macro definition.
9612 (PAGE_ALIGN): Implement using ROUND_UP macro.
9614 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
9615 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
9617 (ix86_compute_frame_layout): Ditto.
9618 (ix86_expand_prologue): Ditto.
9619 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
9620 to round down values.
9621 (expand_set_or_movmem_via_rep): Ditto.
9623 2015-10-02 Marek Polacek <polacek@redhat.com>
9625 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
9627 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
9629 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
9630 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
9631 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
9632 (free_gimple_bb): Renamed free_gimple_poly_bb.
9633 (try_generate_gimple_bb): Hoist loop invariant code.
9634 (analyze_drs_in_stmts): Same.
9635 (build_scop_drs): Call renamed functions.
9636 (new_pbb_from_pbb): Same.
9637 (scop_ivs_can_be_represented): Delete as functionality now moved to
9638 graphite-scop-detection.c
9639 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
9641 2015-10-02 Aditya Kumar <hiraditya@msn.com>
9643 * graphite-scop-detection.c (stmt_has_side_effects): New function
9644 outlined from stmt_simple_for_scop_p.
9645 (graphite_can_represent_stmt): Same.
9646 (stmt_simple_for_scop_p): Moved code out of this function for better
9649 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
9651 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
9653 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
9655 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9657 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
9659 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
9661 PR rtl-optimization/67756
9662 * lra-constraints.c (match_reload): Add a new parameter. Use it
9663 for creating a pseudo with the same value.
9664 (curr_insn_transform): Pass a new argument to match_reload.
9666 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
9668 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
9669 (expand_vec_perm_even_odd_1): Handle V64QImode.
9670 (ix86_expand_vec_perm_const_1): Try expansion with
9671 expand_vec_perm_even_odd_trunc as well.
9672 * config/i386/sse.md (VI124_AVX512F): Rename to ...
9673 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
9675 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
9676 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
9678 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
9679 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
9680 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
9681 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
9682 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
9683 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
9685 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
9687 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
9688 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
9690 2015-10-02 Jason Merrill <jason@redhat.com>
9693 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
9694 (diagnose_tm_1_op): Also diagnose volatile accesses in
9695 transaction_safe function.
9697 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
9699 * system.h (malloc.h): Don't include obsolete header.
9701 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9703 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
9704 (TLS_SECTION_ASM_FLAG): Delete.
9706 2015-10-02 Marek Polacek <polacek@redhat.com>
9709 * doc/invoke.texi: Document -Wduplicated-cond.
9710 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
9711 (insn-dfatab.o): Likewise.
9712 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
9715 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
9717 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
9720 2015-10-02 Renlin Li <renlin.li@arm.com>
9722 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
9724 2015-10-02 Renlin Li <renlin.li@arm.com>
9727 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
9729 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9731 PR rtl-optimization/67786
9732 PR rtl-optimization/67787
9733 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
9734 it modifies a reg used in the condition calculation.
9736 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
9738 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
9739 alternatives for reads from memory and moves from general-purpose
9741 (*aarch64_combinez_be<mode>): Likewise.
9743 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
9746 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
9747 selectany within this function without need to keep attribute.
9748 (i386_pe_encode_section_info): Remove selectany-code.
9750 2015-10-02 Richard Biener <rguenther@suse.de>
9752 * tree-ssa-sccvn.c (has_VN_INFO): New function.
9753 (free_scc_vn): Use it.
9754 (visit_use): Remove dead code and refactor to use gassign
9755 and use less indentation.
9757 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9761 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
9762 (rs6000_cannot_copy_insn_p): New function.
9763 * config/rs6000/rs6000.md (cannot_copy): New attribute.
9764 (load_toc_v4_PIC_1_normal): Set cannot_copy.
9765 (load_toc_v4_PIC_1_476): Ditto.
9767 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
9769 * graphite-scop-detection.c (struct sese_l): New conversion constructor
9770 so that this type can be pushed into a vec.
9771 (class scop_builder): use sese_l to collect scops.
9772 (get_scops): New getter function.
9773 (remove_intersecting_scops): Use sese_l instead of scops_p.
9777 (remove_subscops): Same.
9778 (build_scops): Add scops to vec<scops_p> once all the scops have been
9781 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
9783 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
9784 Renamed type from gimple_bb_p to gimple_poly_bb_p.
9785 (translate_isl_ast_node_user): Same.
9786 * graphite-poly.c (new_poly_bb): Same.
9787 * graphite-poly.h (gbb_from_bb): Same.
9789 * graphite-sese-to-poly.c (new_gimple_bb):
9790 gimple_bb_p -> gimple_poly_bb_p
9791 (build_scop_scattering): Same.
9792 (find_params_in_bb): Same.
9793 (add_conditions_to_domain): Same.
9794 (sese_dom_walker::before_dom_children): Same.
9795 (analyze_drs_in_stmts): Same.
9796 (new_pbb_from_pbb): Same.
9797 (free_data_refs_aux): New pointer to type base_alias_pair.
9798 * graphite-sese-to-poly.h: Same.
9799 * sese.c (if_region_set_false_region): Fixed Indentation.
9800 (move_sese_in_condition): Same.
9802 2015-10-01 Sebastian Pop <s.pop@samsung.com>
9803 Aditya Kumar <aditya.k7@samsung.com>
9805 PR tree-optimization/66980
9806 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
9807 when data reference analysis has failed.
9809 2015-10-01 Sebastian Pop <s.pop@samsung.com>
9810 Aditya Kumar <aditya.k7@samsung.com>
9812 PR tree-optimization/67754
9813 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
9814 scev analysis on the same loop nest as analyze_drs_in_stmts.
9815 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
9817 (try_generate_gimple_bb): Call outermost_loop_in_sese.
9818 (analyze_drs_in_stmts): Same.
9819 * sese.c (outermost_loop_in_sese): ...here.
9821 2015-10-01 Sebastian Pop <s.pop@samsung.com>
9822 Aditya Kumar <aditya.k7@samsung.com>
9824 PR tree-optimization/67754
9825 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
9826 recursion on the inner loops.
9828 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9830 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
9831 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
9832 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
9833 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
9834 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
9836 2015-10-01 Marek Polacek <polacek@redhat.com>
9839 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
9840 create_tmp_var_raw rather than create_tmp_var.
9842 2015-10-01 Marek Polacek <polacek@redhat.com>
9844 PR tree-optimization/67769
9845 * tree-ssa-phiopt.c (conditional_replacement): Call
9846 reset_flow_sensitive_info_in_bb.
9847 (minmax_replacement): Likewise.
9848 (abs_replacement): Likewise.
9850 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
9852 * builtins.c: Don't include gomp-constants.h.
9853 (fold_builtin_1): Don't fold acc_on_device here.
9854 * gimple-fold.c: Include gomp-constants.h.
9855 (gimple_fold_builtin_acc_on_device): New.
9856 (gimple_fold_builtin): Call it.
9858 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
9860 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
9861 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
9863 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
9865 * config/arm/aarch-common-protos.h
9866 (aarch_accumulator_forwarding): New.
9867 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
9868 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
9869 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
9870 * config/arm/cortex-a53.md: Rewrite.
9872 2015-10-01 Richard Biener <rguenther@suse.de>
9874 * gimple-match.h (mprts_hook): Declare.
9875 * gimple-match.head.c (mprts_hook): Define.
9876 (maybe_push_res_to_seq): Use new hook.
9877 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
9878 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
9879 (vn_ssa_aux::has_constants): Remove.
9880 * tree-ssa-sccvn.c: Include gimple-match.h.
9881 (VN_INFO_GET): Assert we don't re-use SSA names.
9882 (vn_get_expr_for): Remove.
9883 (expr_has_constants): Likewise.
9884 (stmt_has_constants): Likewise.
9885 (simplify_binary_expression): Likewise.
9886 (simplify_unary_expression): Likewise.
9887 (vn_lookup_simplify_result): New hook.
9888 (visit_copy): Adjust.
9889 (visit_reference_op_call): Likewise.
9890 (visit_phi): Likewise.
9891 (visit_use): Likewise.
9892 (process_scc): Likewise.
9893 (init_scc_vn): Likewise.
9894 (visit_reference_op_load): Likewise. Use match-and-simplify and
9895 a gimple seq for inserted expressions.
9896 (try_to_simplify): Remove GENERIC stmt combining code.
9897 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
9898 * tree-ssa-pre.c (eliminate_insert): Adjust.
9899 (eliminate_dom_walker::before_dom_children): Likewise.
9901 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9903 * doc/invoke.texi (Optimization Options): Add
9904 -freorder-blocks-algorithm=.
9905 (Optimize Options) <-O>: Add -freorder-blocks.
9906 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
9907 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
9908 <-freorder-blocks>: Also enabled at levels -O and -Os.
9909 <-freorder-blocks-algorithm=>: Document new option.
9911 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9913 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
9914 with flag_reorder_blocks_algorithm.
9915 * common.opt (freorder-blocks-algorithm=): New flag.
9916 (reorder_blocks_algorithm): New enum.
9917 * flag-types.h (reorder_blocks_algorithm): New enum.
9918 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
9919 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
9921 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9923 * bb-reorder.c: Add intro comment.
9924 (reorder_basic_blocks_software_trace_cache): Print a header to
9926 (edge_order): New function.
9927 (reorder_basic_blocks_simple): New function.
9928 (reorder_basic_blocks): Choose between the STC and the simple
9929 algorithms (always choose the former).
9931 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9933 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
9934 function, factored out from ...
9935 (reorder_basic_blocks): ... here.
9937 2015-10-01 Tom de Vries <tom@codesourcery.com>
9939 * tree-cfg.c (dump_function_to_file): Dump function attributes using
9940 __attribute__(()) string. Move dumping of function attributes to before
9943 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
9946 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
9947 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
9948 based on gold linker version.
9949 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
9950 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
9951 * configure, config.in: Regenerate.
9953 2015-10-01 Alan Modra <amodra@gmail.com>
9955 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
9956 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
9957 (rs6000_output_mi_thunk): Likewise.
9959 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
9961 * config/nvptx/mkoffload.c (process): Change offload data format.
9963 2015-09-30 Jeff Law <law@redhat.com>
9965 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
9966 with constant conditions.
9967 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
9968 (remove_ctrl_stmt_and_useless_edges): No longer static.
9969 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
9970 (remove_ctrl_stmt_and_useless_edges): Likewise.
9972 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
9973 Cesar Philippidis <cesar@codesourcery.com>
9975 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
9976 (TARGET_GOACC_VALIDATE_DIMS): Override.
9977 * target.def (TARGET_GOACC): New target hook prefix.
9978 (validate_dims): New hook.
9979 * targhooks.h (default_goacc_validate_dims): New.
9980 * omp-low.c (oacc_validate_dims): New.
9981 (execute_oacc_device_lower): New.
9982 (default_goacc_validate_dims): New.
9983 (pass_data_oacc_device_lower): New.
9984 (pass_oacc_device_lower): New pass.
9985 (make_pass_oacc_device_lower): New.
9986 * tree-pass.h (make_pass_oacc_device_lower): Declare.
9987 * passes.def (pass_oacc_device_lower): Add it.
9988 * doc/tm.texi: Rebuilt.
9989 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
9990 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
9992 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
9994 PR rtl-optimization/67037
9995 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
9997 2015-09-30 Bernd Schmidt <bernds@redhat.com>
9999 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
10000 * passes.c: Include tree-ssanames.h.
10001 (execute_function_todo): Flush the pending free SSA_NAMEs after
10002 eliminating unreachable basic blocks.
10003 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
10004 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
10005 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
10006 (flush_ssanames_freelist): New function.
10007 (release_ssaname_fn): Put released names on the queue.
10008 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
10009 * tree-ssanames.h (flush_ssanames_freelist): Declare.
10011 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10013 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
10014 (generate_target_descr_file, generate_target_offloadend_file)
10015 (generate_host_descr_file, prepare_target_image): Pass it on.
10016 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
10017 (compile_native, main): Pass it on.
10018 * lto-wrapper.c (compile_offload_image): Likewise.
10020 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10021 Ilya Verbin <ilya.verbin@intel.com>
10022 Andrey Turetskiy <andrey.turetskiy@intel.com>
10024 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
10025 (prepare_target_image, main): Refactor argv building to use
10028 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10030 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
10031 * config/spu/spu.c (spu_expand_atomic_op): New function.
10032 * config/spu/spu.md (AINT): New mode iterator.
10033 (ATOMIC): New code iterator.
10034 (atomic_name, atomic_pred): New code predicates.
10035 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
10036 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
10037 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
10038 "atomic_<atomic_name>_fetch<mode>"): Likewise.
10040 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
10042 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
10044 (scalar_chain::convert_reg): Likewise.
10046 2015-09-30 Richard Biener <rguenther@suse.de>
10048 * builtins.c: Add comment that no new simplifications should
10051 2015-09-30 Marek Polacek <polacek@redhat.com>
10053 PR tree-optimization/67690
10054 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
10055 reset_flow_sensitive_info_in_bb.
10056 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
10057 * tree-ssanames.c: Include "gimple-iterator.h".
10058 (reset_flow_sensitive_info_in_bb): New function.
10059 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
10061 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10063 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
10064 variable, replacing it with...
10065 (offload_abi): ... this new variable. Adjust all users.
10066 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
10068 2015-09-30 Matthias Klose <doko@ubuntu.com>
10070 * configure.ac: Remove extraneous ;;.
10071 * configure: Regenerate.
10073 2015-09-29 James Bowman <james.bowman@ftdichip.com>
10075 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
10076 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
10077 predicate, disallow register for operand 2.
10079 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
10081 * graphite-dependences.c (scop_get_dependences): Moved in down
10082 in order to be visible to its caller.
10083 * graphite-poly.h: Removed compute_deps, and extend_schedule.
10085 2015-09-29 Sebastian Pop <s.pop@samsung.com>
10086 Aditya Kumar <aditya.k7@samsung.com>
10088 PR tree-optimization/67754
10089 * graphite-optimize-isl.c (optimize_isl): Call
10090 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
10092 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
10094 * builtins.c (expand_builtin_acc_on_device): Delete.
10095 (expand_builtin): Don't call it.
10096 (fold_builtin_1): Fold acc_on_device.
10098 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
10100 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
10101 (ix86_nsaved_sseregs): Likewise.
10103 2015-09-29 Jeff Law <law@redhat.com>
10105 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
10106 computation of unused value.
10108 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
10109 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
10110 inline macro expansion.
10112 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
10114 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
10115 (gen_shl_sext): Likewise.
10116 * config/sh/sh.md (divsi3): Likewise.
10117 (imm->ext_dest_operand splitter): Likewise.
10119 2015-09-29 Sebastian Pop <s.pop@samsung.com>
10120 Aditya Kumar <aditya.k7@samsung.com>
10122 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
10123 (nb_data_writes_in_bb): Remove.
10124 (split_pbb): Remove.
10125 (split_reduction_stmt): Remove.
10126 (is_reduction_operation_p): Remove.
10127 (phi_contains_arg): Remove.
10128 (follow_ssa_with_commutative_ops): Remove.
10129 (detect_commutative_reduction_arg): Remove.
10130 (detect_commutative_reduction_assign): Remove.
10131 (follow_inital_value_to_phi): Remove.
10132 (edge_initial_value_for_loop_phi): Remove.
10133 (initial_value_for_loop_phi): Remove.
10134 (used_outside_reduction): Remove.
10135 (detect_commutative_reduction): Remove.
10136 (translate_scalar_reduction_to_array_for_stmt): Remove.
10137 (remove_phi): Remove.
10138 (dr_indices_valid_in_loop): Remove.
10139 (close_phi_written_to_memory): Remove.
10140 (translate_scalar_reduction_to_array): Remove.
10141 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
10142 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
10143 (rewrite_commutative_reductions_out_of_ssa): Remove.
10144 (build_poly_scop): Remove call to
10145 rewrite_commutative_reductions_out_of_ssa.
10147 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
10149 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
10150 Add new insn types for vector load and store pairs.
10151 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
10152 types "neon_ldp{,_q}".
10153 * config/arm/cortex-a57.md (neon_load_c): Add insn types
10155 (neon_store_complex): Add insn types "neon_stp{,_q}".
10156 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
10157 "neon_{ldp,stp}_q".
10159 2015-09-29 Jeff Law <law@redhat.com>
10161 * config/rx/constraints.md (Int08): Fix undefined left shift
10163 (Sint08, Sint16, Sint24): Likewise.
10164 * config/rx/rx.c (rx_get_stack_layout): Likewise.
10166 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
10169 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
10170 left shift behaviour.
10171 * config/msp430/constraints.md ('L' constraint): Similarly.
10172 ('Ys' constraint): Similarly.
10174 2015-09-29 Richard Biener <rguenther@suse.de>
10176 PR tree-optimization/67170
10177 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
10178 the translate function pointer parameter to get the
10179 bool whether to disambiguate only by reference.
10180 (walk_non_aliased_vuses): Likewise.
10181 * tree-ssa-alias.c (maybe_skip_until): Adjust.
10182 (get_continuation_for_phi_1): Likewise.
10183 (get_continuation_for_phi): Likewise.
10184 (walk_non_aliased_vuses): Likewise.
10185 * tree-ssa-sccvn.c (const_parms): New bitmap.
10186 (vn_reference_lookup_3): Adjust for interface change.
10187 Disambiguate parameters pointing to readonly memory.
10188 (free_scc_vn): Free const_parms.
10189 (run_scc_vn): Initialize const_parms from a fn spec attribute.
10191 2015-09-29 Richard Biener <rguenther@suse.de>
10193 PR tree-optimization/67741
10194 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
10195 builtin calls with correct signature.
10197 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
10200 * config/i386/i386.c: Include dbgcnt.h.
10201 (has_non_address_hard_reg): New.
10202 (convertible_comparison_p): New.
10203 (scalar_to_vector_candidate_p): New.
10204 (remove_non_convertible_regs): New.
10205 (scalar_chain): New.
10206 (scalar_chain::scalar_chain): New.
10207 (scalar_chain::~scalar_chain): New.
10208 (scalar_chain::add_to_queue): New.
10209 (scalar_chain::mark_dual_mode_def): New.
10210 (scalar_chain::analyze_register_chain): New.
10211 (scalar_chain::add_insn): New.
10212 (scalar_chain::build): New.
10213 (scalar_chain::compute_convert_gain): New.
10214 (scalar_chain::replace_with_subreg): New.
10215 (scalar_chain::replace_with_subreg_in_insn): New.
10216 (scalar_chain::emit_conversion_insns): New.
10217 (scalar_chain::make_vector_copies): New.
10218 (scalar_chain::convert_reg): New.
10219 (scalar_chain::convert_op): New.
10220 (scalar_chain::convert_insn): New.
10221 (scalar_chain::convert): New.
10222 (convert_scalars_to_vector): New.
10223 (pass_data_stv): New.
10225 (make_pass_stv): New.
10226 (ix86_option_override): Created and register stv pass.
10227 (flag_opts): Add -mstv.
10228 (ix86_option_override_internal): Likewise.
10229 * config/i386/i386.md (SWIM1248x): New.
10230 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
10231 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
10232 (*anddi3_doubleword): New.
10233 (*zext<mode>_doubleword): New.
10234 (*zextsi_doubleword): New.
10235 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
10236 (*<code>di3_doubleword): New.
10237 * config/i386/i386.opt (mstv): New.
10238 * dbgcnt.def (stv_conversion): New.
10240 2015-09-29 Tom de Vries <tom@codesourcery.com>
10242 * tree-cfg.c (dump_function_to_file): Dump function attributes.
10244 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
10247 * config/sh/sh.c (sh_override_options_after_change): New.
10248 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
10249 (sh_option_override): Move align_loops, align_jumps and
10250 align_functions handling into sh_override_options_after_change.
10252 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
10254 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
10255 (nvptx_record_offload_symbol): Record function execution geometry.
10256 * config/nvptx/mkoffload.c (process): Include launch geometry in
10258 * omp-low.c (oacc_launch_pack): New.
10259 (replace_oacc_fn_attrib): New.
10260 (set_oacc_fn_attrib): New.
10261 (get_oacc_fn_attrib): New.
10262 (expand_omp_target): Create keyed varargs for GOACC_parallel call
10264 * omp-low.h (get_oacc_fn_attrib): Declare.
10265 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
10266 (DEF_FUNCTION_TYPE_VAR_11): Delete.
10267 * tree.h (OMP_CLAUSE_EXPR): New.
10268 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
10270 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
10271 Sebastian Pop <s.pop@samsung.com>
10273 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
10275 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
10276 Sebastian Pop <s.pop@samsung.com>
10278 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
10279 * graphite-scop-detection.c (struct sese_l): New type.
10280 (get_entry_bb): API for getting entry bb of SESE.
10281 (get_exit_bb): API for getting exit bb of SESE.
10282 (class debug_printer): New type. Simple printer in debug mode.
10283 (trivially_empty_bb_p): New. Return true when BB is empty or
10284 contains only debug instructions.
10285 (graphite_can_represent_expr): Call scalar_evoution_in_region
10286 instead of analyze_scalar_evolution. Pass in scop instead of only
10288 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
10290 (stmt_simple_for_scop_p): Same.
10291 (harmful_stmt_in_bb): Same.
10292 (graphite_can_represent_loop): Deleted.
10293 (struct scopdet_info): Deleted.
10294 (scopdet_basic_block_info): Deleted.
10295 (build_scops_1): Deleted.
10296 (bb_in_sd_region): Deleted.
10297 (find_single_entry_edge): Deleted.
10298 (find_single_exit_edge): Deleted.
10299 (create_single_entry_edge): Deleted.
10300 (sd_region_without_exit): Deleted.
10301 (create_single_exit_edge): Deleted.
10302 (unmark_exit_edges): Deleted.
10303 (mark_exit_edges): Deleted.
10304 (create_sese_edges): Deleted.
10305 (build_graphite_scops): Deleted.
10306 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
10307 (build_scops): Use the new scop_builder to build scops.
10308 (dot_all_scops_1): Use the new pretty printer. Print loop father
10310 (loop_body_is_valid_scop): New. Return true if loop body is a
10312 (class scop_builder): New. Builds SCoPs for polyhedral
10314 (scop_builder): New constructor.
10315 (static sese_l invalid_sese): sese_l with invalid edges.
10316 (get_sese): Get an sese (from a loop) if possible, invalid_sese
10318 (get_nearest_dom_with_single_entry): Get nearest dominator of a
10319 basic_block with single entry. Return NULL if we get to the
10320 beginning of a function.
10321 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
10322 a basic_block with single exit. Return NULL if we get to the
10323 beginning of a function.
10324 (print_sese): Pretty-print SESE.
10325 (merge_sese): Merge two SESEs if possible and return the new SESE.
10326 (build_scop_depth): Start building the SCoP within a loop nest.
10327 (build_scop_breadth): Start building the SCoP at a single loop
10328 depth. Merge adjacent SESEs if valid.
10329 (can_represent_loop_1): Returns true if Graphite can represent
10330 loop inside SCoP. Helper for can_represent_loop.
10331 (can_represent_loop): Returns true if Graphite can represent LOOP
10332 and all its nested loops in SCoP.
10333 (loop_is_valid_scop): Returns true if LOOP and all its nests
10334 constitute a valid SCoP.
10335 (region_has_one_loop): Returns true of a region has only one loop.
10336 (add_scop): Add SCoP to the list of valid scops. Removes an
10337 already existing scop if it intersects with or subsumed by this one.
10338 (harmful_stmt_in_region): Returns true if SCoP has any statment
10339 which cannot be represented by Graphite.
10340 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
10341 (remove_subscops): Remove any SCoP from the list of already found
10342 SCoPs, if subsumed by S1.
10343 (intersects): Return true if region bounded by SCoPs S1 and S2
10345 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
10346 * graphite.c (print_graphite_scop_statistics):
10347 (print_graphite_statistics): Print SCoP info while debugging.
10348 (graphite_initialize): Early exit in case number of loops in a
10349 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
10350 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
10351 (graphite_finalize):
10352 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
10353 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
10354 (recompute_all_dominators): Recalculate POST_DOMINATORS.
10355 * tree-cfg.c (print_loops): Print the function name while printing
10358 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
10359 Sebastian Pop <s.pop@samsung.com>
10361 PR tree-optimization/67700
10362 * graphite-sese-to-poly.c (parameter_index_in_region): Call
10363 invariant_in_sese_p_rec.
10364 (extract_affine): Same.
10365 (rewrite_cross_bb_scalar_deps): Call update_ssa.
10366 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
10367 * sese.h (invariant_in_sese_p_rec): Declare.
10369 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
10371 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
10373 2015-09-28 Jiong Wang <jiong.wang@arm.com>
10376 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10377 Jiong Wang <jiong.wang@arm.com>
10379 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
10380 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
10381 (REG_CLASS_NAMES): Likewise.
10382 (REG_CLASS_CONTENTS): Likewise.
10383 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
10384 (aarch64_register_move_cost): Likewise.
10385 (aarch64_load_symref_appropriately): Invoke the new added pattern if
10387 * config/aarch64/constraints.md (Uc0): New constraint.
10389 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
10391 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
10393 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
10395 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
10396 SECTION_EXCLUDE in XO mapping class.
10398 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10401 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
10402 and handle ne and eq codes.
10403 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
10404 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
10405 CONST_INT_P. Use reverse_condition.
10406 (sh_split_treg_set_expr): Likewise.
10408 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
10410 * config/arm/types.md (type): Add rotate_imm.
10411 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
10412 ROR immediate case.
10413 (*rorsi3_insn_uxtw): Likewise.
10414 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
10415 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
10416 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
10418 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10420 PR rtl-optimization/67481
10421 * ifcvt.c (contains_ccmode_rtx_p): New function.
10422 (insn_valid_noce_process_p): Use it.
10424 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10426 PR rtl-optimization/67456
10427 PR rtl-optimization/67464
10428 PR rtl-optimization/67465
10429 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
10430 move in the mode of x. Handle combination of complex and simple
10431 block pairs as well as the case when one is empty.
10433 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10435 * doc/gimple.texi: Update references to gimple_statement_base.
10436 * gdbhooks.py: Likewise.
10437 * gimple.h: Likewise.
10439 2015-09-28 Daniel Cederman <cederman@gaisler.com>
10441 * config/sparc/driver-sparc.c: map LEON to leon3
10443 2015-09-28 Daniel Cederman <cederman@gaisler.com>
10445 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
10446 and make it inverse to change default
10447 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
10449 * doc/invoke.texi: Document change of default
10451 2015-09-28 Daniel Cederman <cederman@gaisler.com>
10453 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
10454 true on %f0 for a target without FPU.
10455 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
10457 (untyped_return): Do not load %f0 for a target without FPU.
10459 2015-09-28 Andrew Pinski <apinski@cavium.com>
10461 * config/aarch64/aarch64.md (prefetch):
10462 Change the predicate of operand 0 to register_operand.
10464 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
10466 * config/i386/predicates.md (register_sse4nonimm_operand): New
10468 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
10469 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
10470 Use register_sse4nonimm_operand as operand 0 predicate.
10471 (*vec_extractv8hi_sse2): Remove insn pattern.
10472 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
10473 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
10475 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
10476 Kaz Kojima <kkojima@gcc.gnu.org>
10479 * config/sh/sh-protos.h (sh_lra_p): Declare.
10480 * config/sh/sh.c (sh_lra_p): Make non-static.
10481 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
10482 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
10483 Expand into addsi3_scr if operands[2] if needed.
10484 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
10485 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
10486 (addsi3_scr, *addsi3): New insn_and_split patterns.
10488 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
10490 PR rtl-optimization/64164
10491 PR tree-optimization/67312
10492 PR middle-end/67340
10493 PR middle-end/67490
10495 * cfgexpand.c (parm_in_stack_slot_p): Remove.
10496 (ssa_default_def_partition): Remove.
10497 (get_rtl_for_parm_ssa_default_def): Remove.
10498 (set_rtl): Check that RTL assignments match expectations.
10499 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
10500 default def location for params and results. Record SSA names
10501 or types in REG and MEM attrs, respectively.
10502 (set_parm_rtl): New.
10503 (expand_one_ssa_partition): Drop logic that assigned MEMs with
10504 unassigned addresses.
10505 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
10506 deferred stack alloc vars.
10507 (expand_used_vars): Skip partitions holding parm default defs.
10508 Move adjust_one_expanded_partition_var loop...
10509 (pass_expand::execute): ... here. Drop redundant assert.
10510 Adjust comments before the final loop over all ssa names.
10511 Require assigned rtl of parms and results to match exactly.
10512 Reset its attributes to match them, not any other variables in
10513 the same partition.
10514 (expand_debug_expr): Use entry value for PARM's default defs
10515 only iff they have zero nondebug uses.
10516 * cfgexpand.h (parm_in_stack_slot_p): Remove.
10517 (get_rtl_for_parm_ssa_default_def): Remove.
10518 (set_parm_rtl): Declare.
10519 * doc/invoke.texi: Improve wording.
10520 * explow.c (promote_decl_mode): Fix promote_function_mode for
10521 result decls not by reference.
10522 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
10523 bypass TYPE_MODE to get the actual vector mode.
10524 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
10525 2015-08-19's changes as follows. Drop include of
10526 basic-block.h and df.h.
10527 (rtl_for_parm): Remove.
10528 (maybe_reset_rtl_for_parm): Remove.
10529 (parm_in_unassigned_mem_p): Remove.
10530 (use_register_for_decl): Add logic for RESULT_DECLs matching
10531 assign_parms' behavior.
10532 (split_complex_args): Revert.
10533 (assign_parms_augmented_arg_list): Revert. Add comment
10534 referencing the logic above.
10535 (assign_parm_adjust_stack_rtl): Revert.
10536 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
10537 of SET_DECL_RTL. Set up a REG if the parm demands so.
10538 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
10539 calls into a single set_parm_rtl. Set up a temporary RTL
10540 temporarily for expand_assignment.
10541 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
10542 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
10543 (assign_bounds): Revert.
10544 (assign_parms): Revert. Use set_parm_rtl.
10545 (allocate_struct_function): Relayout result and parms of
10546 non-abstruct functions.
10547 (expand_function_start): Revert. Use set_parm_rtl. If the
10548 result is not a hard reg, create a pseudo from the promoted
10549 mode of the default def. Promote static chain mode.
10550 * tree-outof-ssa.c (remove_ssa_form): Drop unused
10551 partition_has_default_def. Set up
10552 partitions_for_parm_default_defs.
10553 (finish_out_of_ssa): Remove partition_has_default_def.
10554 Release partitions_for_parm_default_defs.
10555 * tree-outof-ssa.h (struct ssaexpand): Remove
10556 partition_has_default_def. Add
10557 partitions_for_parm_default_defs.
10558 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
10560 (build_ssa_conflict_graph): Fix conflict-detection of default
10561 defs of even unused default defs of params and results.
10562 (for_all_parms): New.
10563 (create_default_def): New.
10564 (register_default_def): New.
10565 (coalesce_with_default): New.
10566 (create_outofssa_var_map): Create default defs for all parms
10567 and results, and register their partitions. Add GIMPLE_RETURN
10568 operands as coalesce candidates with results. Add default
10569 defs of each parm or result as coalesce candidates with its
10570 other defs. Mark each result def, and each default def of
10571 parms, as used_in_copy.
10572 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
10573 with the ssa names, even anonymous ones. Drop
10574 parm_in_stack_slot_p calls. Require same signedness and
10576 (coalesce_ssa_name): Add coalesce candidates for all defs of
10577 each parm and result, even unused ones.
10578 (parm_default_def_partition_arg): New type.
10579 (set_parm_default_def_partition): New.
10580 (get_parm_default_def_partitions): New.
10581 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
10582 * tree-ssa-live.c (partition_view_init): Regard unused defs of
10583 parms and results as used.
10584 (verify_live_on_entry): Don't error out just because they're
10587 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
10589 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
10590 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
10591 (output_fde): Don't output length for debug_frame on AIX.
10592 (output_call_frame_info): Don't output length for debug_frame on AIX.
10593 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
10594 HAVE_XCOFF_DWARF_EXTRAS.
10595 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
10596 HAVE_XCOFF_DWARF_EXTRAS.
10597 (output_compilation_unit_header): Don't output length on AIX.
10598 (output_pubnames): Don't output length on AIX.
10599 (output_aranges): Delete argument. Compute length locally. Don't
10600 output length on AIX.
10601 (output_line_info): Don't output length on AIX.
10602 (dwarf2out_finish): Don't compute aranges_length.
10603 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
10604 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
10605 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
10606 symbol decoration for AIX.
10607 (rs6000_xcoff_debug_unwind_info): New.
10608 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
10610 (rs6000_xcoff_declare_function_name): Emit different
10611 .function pseudo-op when DWARF2_DEBUG. Don't call
10612 xcoffout_declare_function for DWARF2_DEBUG.
10613 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
10615 * config/rs6000/aix71.h: New.
10616 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
10618 * configure: Regenerate.
10619 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
10622 2015-09-26 Jeff Law <law@redhat.com>
10624 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
10626 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
10629 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
10632 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
10633 undefined behaviour.
10635 * config/cris/cris.md (asrandb): Fix left shift undefined
10637 (asrandw): Likewise.
10639 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
10642 * lra-constarints.c (match_reload): Check presence of the input pseudo
10643 in the output operand.
10645 2015-09-25 Tobias Burnus <burnus@net-b.de>
10647 * doc/invoke.texi (-fsanitize): Minor wording tweak.
10649 2015-09-25 Tobias Burnus <burnus@net-b.de>
10651 * doc/invoke.texi (-fsanitize): Update URLs.
10653 2015-09-25 Teresa Johnson <tejohnson@google.com>
10655 * opts.c (finish_options): Unset -freorder-blocks-and-partition
10656 if not using profile.
10658 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
10660 PR pretty-print/67567
10661 * pretty-print.c (pp_string): Add gcc_checking_assert.
10662 * pretty-print.h (output_buffer_append_r): Likewise.
10664 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
10667 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
10668 addr2 individually. Don't emit logical or insn if one is known to
10669 be aligned approriately.
10670 (sh_expand_cmpnstr): Likewise.
10672 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
10674 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
10675 __builtin_aarch64_fp[sc]r arguments into a register.
10677 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
10679 * config.gcc (x86_archs): Replace lakemount with lakemont.
10680 (with_cpu): Likewise.
10681 (with_arch): Likewise.
10682 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
10683 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
10684 __tune_lakemount__ with __tune_lakemont__.
10685 * config/i386/i386.c (lakemount_cost): Renamed to ...
10686 (lakemont_cost): This.
10687 (m_LAKEMOUNT): Renamed to ...
10688 (m_LAKEMONT): This.
10689 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
10690 (processor_target_table): Replace "lakemount" with "lakemont".
10691 (processor_alias_table): Likewise.
10692 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
10693 PROCESSOR_LAKEMONT.
10694 (ix86_adjust_cost): Likewise.
10695 (ia32_multipass_dfa_lookahead): Likewise.
10696 * config/i386/i386.h (processor_type): Likewise.
10697 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
10698 * doc/invoke.texi: Replace lakemount with lakemont. Replace
10699 Lakemount with Lakemont.
10701 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
10703 * config.gcc (x86_archs): Replace iamcu with lakemount.
10704 (with_cpu): Likewise.
10705 (with_arch): Likewise.
10706 * doc/invoke.texi: Likewise.
10707 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
10708 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
10709 __tune_iamcu__ with __tune_lakemount__.
10710 * config/i386/i386.c (iamcu_cost): Renamed to ...
10711 (lakemount_cost): This.
10712 (m_IAMCU): Renamed to ...
10713 (m_LAKEMOUNT): This.
10714 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
10715 (processor_target_table): Replace "iamcu" with "lakemount".
10716 (processor_alias_table): Likewise.
10717 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
10718 PROCESSOR_LAKEMOUNT.
10719 (ix86_adjust_cost): Likewise.
10720 (ia32_multipass_dfa_lookahead): Likewise.
10721 * config/i386/i386.h (processor_type): Likewise.
10722 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
10724 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
10726 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
10727 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
10729 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
10730 (pa_expand_compare_and_swap_loop): New.
10731 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
10732 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
10733 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
10734 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
10735 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
10738 2015-09-24 Michael Collison <michael.collison@linaro.org>
10741 * read-md.c (read_name): Allow mode iterators inside angle
10742 brackets in rtl expressions.
10744 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
10747 * ira-color.c (update_allocno_cost): Add parameter.
10748 (update_costs_from_allocno): Decrease conflict cost. Pass the new
10751 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
10754 * opts-common.c (prune_options): Discard all -fdiagnostics-color
10755 but the last one, which is moved to the front to be processed
10757 * opts.c (enable_warning_as_error): Reject options that do not
10760 2015-09-24 Jiong Wang <jiong.wang@arm.com>
10762 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
10764 2015-09-24 Jiong Wang <jiong.wang@arm.com>
10766 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
10767 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
10768 (aarch64_cannot_force_const_mem): Likewise.
10769 (aarch64_classify_address): Likewise.
10770 (aarch64_classify_symbolic_expression): Likewise.
10771 (aarch64_print_operand): Likewise.
10772 (aarch64_classify_symbol): Likewise.
10773 (aarch64_mov_operand_p): Likewise.
10774 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
10775 (aarch64_mov_operand): Likewise.
10777 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
10779 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
10780 for info->spe_gp_size.
10782 2015-09-24 Richard Biener <rguenther@suse.de>
10785 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
10788 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
10790 * tree-object-size.c (plus_stmt_object_size)
10791 (cond_expr_object_size): Change the formal parameters from gimple
10793 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
10794 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
10795 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
10797 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10799 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
10800 Check for ld -type pie on Solaris 11.x and 12.
10801 * configure: Regenerate.
10802 * config.in: Regenerate.
10804 * gcc.c (LD_PIE_SPEC): Allow redefinition.
10806 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
10807 (STARTFILE_SPEC): Use it.
10808 (ENDFILE_CRTEND_SPEC): Define.
10809 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
10810 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
10811 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
10812 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
10813 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
10814 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
10815 (ENDFILE_ARCH_SPEC): Define.
10816 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
10818 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10820 * configure.ac (gcc_cv_solaris_crts): New test.
10821 * configure. Regenerate.
10822 * config.in: Regenerate.
10823 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
10824 HAVE_SOLARIS_CRTS variant.
10826 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10828 * tree-inline.h (count_insns_seq): Delete prototype.
10829 (estimate_num_insns_seq): Define prototype.
10830 * tree-inline.c (count_insns_seq): Delete.
10831 (estimate_num_insns_seq): Remove static qualifier.
10832 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
10833 with estimate_num_insns_seq.
10835 2015-09-24 Richard Biener <rguenther@suse.de>
10837 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
10839 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
10840 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
10842 (ao_ref_init_from_vn_reference): Record clique and base in the
10844 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
10846 2015-09-24 Richard Biener <rguenther@suse.de>
10848 PR tree-optimization/48885
10849 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
10850 as not including any restrict tags from other pointers.
10852 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
10854 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
10855 character when appending to offload_targets.
10857 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
10858 offload targets by commas, not colons.
10859 * config.in: Regenerate.
10860 * configure: Likewise.
10861 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
10862 instead of setting up the default offload targets here...
10863 (process_command): ..., do it here.
10865 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
10866 targets are separated by commas.
10867 * config.h.in: Regenerate.
10869 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
10870 Nathan Sidwell <nathan@codesourcery.com>
10872 * omp-low.h (omp_reduction_init_op): Declare.
10873 * omp-low.c (omp_reduction_init_op): New, broken out of ...
10874 (omp_reduction_init): ... here. Call it.
10875 * tree-parloops.c (initialize_reductions): Use
10876 omp_reduction_init_op.
10878 2015-09-23 Richard Biener <rguenther@suse.de>
10880 PR middle-end/67662
10881 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
10882 undefined overflow unless they will cancel out.
10884 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
10886 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
10889 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
10892 * opts.h (write_langs): Declare.
10893 * opts-global.c (write_langs): Make it extern.
10895 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
10898 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
10899 overlapping regs when matching the pattern.
10901 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
10903 * config/aarch64/aarch64-simd.md
10904 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
10905 (aarch64_float_truncate_hi_v4sf_le): New.
10906 (aarch64_float_truncate_hi_v4sf_be): Likewise.
10908 2015-09-23 Richard Biener <rguenther@suse.de>
10910 * tree-ssa-structalias.c (intra_create_variable_infos): Build
10911 representatives for all restrict qualified pointer destinations.
10913 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
10915 * config/i386/i386.md (define_code_attr mshift): New.
10916 (define_mode_iterator SWI1248_AVX512BW): Rename ...
10917 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
10919 (define_insn "*k<logic><mode>"): Use new iterator name.
10920 (define_insn "*<mshift><mode>3"): New.
10922 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
10924 PR middle-end/67649
10925 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
10926 mark the block as accessible.
10928 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
10930 * function.c (thread_prologue_and_epilogue_insns): Delete
10931 orig_entry_edge argument to try_shrink_wrapping.
10932 * shrink-wrap.c (can_get_prologue): New function.
10933 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
10934 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
10935 can_get_prologue where needed. Remove code that finds a single
10936 edge for the prologue. Remove code that tests if any reg clobbered
10937 by the prologue is live on the prologue edge. Remove code that finds
10938 the new prologue edge after duplicating blocks. Make a new prologue
10940 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
10942 2015-09-22 Jeff Law <law@redhat.com>
10944 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
10947 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
10949 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
10950 -Wtemplates, -Wnamespaces): Document.
10952 2015-09-22 Tom de Vries <tom@codesourcery.com>
10954 PR tree-optimization/67671
10955 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
10956 pointer references as restrict.
10958 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
10960 * config/nios2/nios2.c (nios2_legitimize_address): When handling
10961 'reg + reloc' cases, allow first operand to be non-REG, and use
10962 force_reg() to enforce address pattern.
10964 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
10967 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
10968 (define_mode_iterator VI12_AVX_AVX512F): New.
10969 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
10970 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
10971 (define_insn "*<code><mode>3"): ... Into new pattern using
10972 VI12_AVX_AVX512F iterators without masking.
10974 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
10976 * config.gcc: Support "skylake-avx512".
10977 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10978 PROCESSOR_SKYLAKE_AVX512.
10979 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
10980 (processor_target_table): Add "skylake-avx512".
10981 (PTA_SKYLAKE_AVX512): Define.
10982 (ix86_option_override_internal): Add "skylake_avx512".
10983 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
10984 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
10985 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
10986 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
10987 * doc/invoke.texi (skylake-avx512): New.
10989 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
10991 * config/i386/i386.md (define_insn "kunpckhi"): Fix
10992 operand in pattern.
10993 (define_insn "kunpcksi"): Ditto.
10994 (define_insn "kunpckdi"): Ditto.
10996 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
10998 * config/i386/i386.md (define_split not/xor SWI1248x): Use
10999 iterator instead of fixed modes.
11001 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11003 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11004 Adjust declaration.
11005 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
11006 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
11007 out_result. Update to support update-fetch operations.
11008 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
11009 Adjust for change to aarch64_gen_atomic_ldop.
11010 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
11011 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
11012 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
11013 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
11014 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
11016 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11018 * config/aarch64/aarch64-protos.h
11019 (aarch64_atomic_ldop_supported_p): Declare.
11020 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
11021 (enum aarch64_atomic_load_op_code): New.
11022 (aarch64_emit_atomic_load_op): New.
11023 (aarch64_gen_atomic_ldop): Update to support load-operate
11025 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
11027 (aarch64_atomic_<atomic_optab><mode>): New.
11028 (aarch64_atomic_<atomic_optab><mode>_lse): New.
11029 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
11030 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
11031 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
11033 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11035 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
11036 (UNSPECV_ATOMIC_LDOP_OR): New.
11037 (UNSPECV_ATOMIC_LDOP_BIC): New.
11038 (UNSPECV_ATOMIC_LDOP_XOR): New.
11039 (UNSPECV_ATOMIC_LDOP_PLUS): New.
11040 (ATOMIC_LDOP): New.
11041 (atomic_ldop): New.
11042 (aarch64_atomic_load<atomic_ldop><mode>): New.
11044 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11046 * config/aarch64/aarch64.md
11047 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
11050 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11052 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11054 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
11055 (aarch64_gen_atomic_ldop): New.
11056 (aarch64_split_atomic_op): Fix whitespace and add a comment.
11057 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
11058 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
11059 (atomic_exchange<mode>): Replace with an expander.
11060 (aarch64_atomic_exchange<mode>): New.
11061 (aarch64_atomic_exchange<mode>_lse): New.
11062 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
11063 (aarch64_atomic_swp<mode>): New.
11065 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
11067 * tree-inline.c (expand_call_inline): Use inform for extra note.
11068 Do not give a note with UNKNOWN_LOCATION.
11069 Replace input_location with gimple_location (stmt).
11070 Use true/false instead of TRUE/FALSE.
11072 2015-09-22 Tom de Vries <tom@codesourcery.com>
11074 PR tree-optimization/67666
11075 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
11076 with single field non-conservative.
11078 2015-09-21 David S. Miller <davem@davemloft.net>
11082 2015-09-11 David S. Miller <davem@davemloft.net>
11084 * config/sparc/constraints.md: Make "U" constraint a real register
11086 * config/sparc/sparc.c (TARGET_LRA_P): Define.
11087 (D_MODES, DF_MODES): Add missing cast.
11088 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
11089 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
11090 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
11092 * config/sparc/sparc.h (PROMOTE_MODE): Define.
11093 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
11094 provide these insn when flag_pic.
11096 2015-09-17 David S. Miller <davem@davemloft.net>
11098 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
11100 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
11102 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
11103 (HARD_REGNO_CALLER_SAVE_MODE): Define.
11104 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
11105 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
11106 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
11107 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
11108 provide when flag_pic.
11110 2015-09-21 Jeff Law <law@redhat.com>
11112 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
11115 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11117 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
11119 2015-09-21 Richard Biener <rguenther@suse.de>
11121 * passes.c (rest_of_decl_compilation): Do not call
11122 dwarf2out_early_global_decl for aliases.
11124 2015-09-21 Richard Biener <rguenther@suse.de>
11127 * dwarf2out.c (add_location_or_const_value_attribute): Remove
11128 attribute parameter. Early exit if either DW_AT_const_value
11129 or DW_AT_location are present already.
11130 (gen_variable_die): Adjust caller.
11131 (dwarf2out_late_global_decl): Likewise.
11133 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
11136 * config/sh/sh.c (sh_remove_overlapping_post_inc,
11137 sh_peephole_emit_move_insn): Add new functions.
11138 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
11139 sh_peephole_emit_move_insn): Declere them.
11140 * config/sh/sh.md: Use them in various peephole2 patterns.
11142 2015-09-21 Richard Biener <rguenther@suse.de>
11144 PR middle-end/67651
11145 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
11146 address with -fno-delete-null-pointer-checks.
11148 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
11150 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
11151 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
11152 (reduc_uplus_v16qi): Remove.
11154 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
11155 (reduc_<VEC_reduc_name>_v2df): Remove.
11156 (reduc_<VEC_reduc_name>_v4sf): Remove.
11157 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
11159 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
11160 gen_ function by removing * prefix.
11161 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
11163 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
11165 PR middle-end/60832
11166 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
11167 Print i_bound without converting it to a tree.
11169 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
11171 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
11172 operands[4] operands[5] swap with std::swap, removed tmp variable.
11173 (arm_evpc_neon_vzip): Replaced in0/in1 and
11174 out0/out1 swaps with std::swap, removed x variable.
11175 (arm_evpc_neon_vtrn): Replaced in0/int1 and
11176 out0/out1 swaos with std::swap, removed x variable.
11177 (arm_expand_vec_perm_const_1): Replaced
11178 d->op0/d->op1 swap with std::swap, removed x variable.
11179 (arm_evpc_neon_vuzp): Replaced in0/in1 and
11180 out0/out1 swaps with std::swap, removed x variable.
11182 2015-09-21 Jonathan Yong <10walls@gmail.com>
11184 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
11185 sysroot/usr/lib/32api for additional win32 libraries,
11186 fixes failing Cygwin bootstrapping.
11188 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
11190 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
11192 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
11195 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
11196 (*mov_t_msb_neg): Rewrite negc pattern.
11198 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11200 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
11201 immediate generation code.
11203 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11205 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
11206 redundant immediate generation code.
11208 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11210 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
11211 (AARCH64_NUM_BITMASKS): Remove.
11212 (aarch64_bitmasks_cmp): Remove.
11213 (aarch64_build_bitmask_table): Remove.
11215 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11217 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
11218 slow immediate matching loops with a faster algorithm.
11220 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11222 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
11225 2015-09-20 Jeff Law <law@redhat.com>
11227 PR tree-optimization/47679
11228 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
11229 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
11230 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
11231 (thread_through_normal_block): Use record_temporary_equivalences.
11233 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
11235 * coretypes.h (gimple): Change typedef to be a forward declaration.
11236 * gimple.h (gimple_statement_base): rename to gimple.
11237 * (all functions and types using gimple): Adjust.
11238 * *.[ch]: Likewise.
11240 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
11241 David Edelsohn <dje.gcc@gmail.com>
11243 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
11244 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11245 (EH_FRAME_THROUGH_COLLECT2): Define.
11246 (EH_TABLES_CAN_BE_READ_ONLY): Define.
11247 (ASM_OUTPUT_DWARF_PCREL): Define.
11248 (ASM_OUTPUT_DWARF_DATAREL): Define.
11250 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
11252 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
11255 2015-09-18 Jeff Law <law@redhat.com>
11257 PR tree-optimization/47679
11258 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
11260 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
11261 object. Update constructor.
11262 (pass_dominator::execute): Corresponding chagnes to declaration
11263 and initialization of avail_exprs_stack. Update constructor call
11264 for dom_opt_dom_walker object.
11265 (lookup_avail_expr, record_cond): Accept additional argument. Pass
11266 it down to children as needed.
11267 (record_equivalences_from_incoming_edge): Likewise.
11268 (eliminate_redundant_computations): Likewise.
11269 (record_equivalences_from_stmt): Likewise.
11270 (simplify_stmt_for_jump_threading): Likewise.
11271 (record_temporary_equivalences): Likewise.
11272 (optimize_stmt): Likewise.
11273 (dom_opt_dom_walker::thread_across_edge): Update access to
11274 avail_exprs_stack object and pass it to children as needed.
11275 (dom_opt_dom_walker::before_dom_children): Similarly.
11276 (dom_opt_dom_walker::after_dom_children): Similarly.
11277 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
11278 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
11279 Add avail_expr_stack argument. Pass it to children as needed.
11280 (dummy_simplify): Likewise.
11281 (simplify_control_stmt_condition): Likewise.
11282 (thread_around_empty_blocks): Likewise.
11283 (thread_through_normal_block): Likewise.
11284 (thread_across_edge): Likewise.
11285 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
11286 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
11288 PR tree-optimization/47679
11289 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
11291 (dom_opt_dom_walker): New private member holding the const_and_copies
11292 object. Update constructor.
11293 (pass_dominator::execute): Corresponding changes to declaration
11294 and initialization of const_and_copies. Update constructor call
11295 for the dom_opt_dom_walker object.
11296 (record_temporary_equivalences): Accept const_and_copies argument
11297 pass it down to children as needed.
11298 (record_equality): Likewise.
11299 (record_equivalences_from_incoming_edge): Likewise.
11300 (cprop_into_successor_phis, optimize_stmt): Likewise.
11301 (eliminate_redundant_computations): Likewise.
11302 (dom_opt_dom_walker::thread_across_edge): Update access to
11303 const_and_copies object and pass it to children as needed.
11304 (dom_opt_dom_walker::before_dom_children): Similarly.
11305 (dom_opt_dom_walker::after_dom_children): Similarly.
11307 PR tree-optimization/47679
11308 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
11309 it into the avail_exprs_stack class.
11310 (pass_dominator::execute): Corresponding changes to declaration
11311 and initialization of avail_exprs. Pass avail_exprs to
11312 dump_dominator_optimization_stats.
11313 (record_cond): Extract avail_exprs from avail_exprs_stack.
11314 (lookup_avail_expr): Similarly.
11315 (htab_staticstics): Remove unnecessary prototype. Move to earlier
11317 (dump_dominator_optimization_stats): Make static and prototype.
11318 Add argument for the hash table to dump.
11319 (debug_dominator_optimization_stats): Remove.
11320 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
11322 (debug_dominator_optimization_stats): Similarly.
11323 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
11324 "void" in prototype for pop_to_marker method. Add accessor method
11325 for the underlying avail_exprs table.
11327 * tree-ssa-threadedge.c: Remove trailing whitespace.
11329 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
11331 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
11333 (pa_ldil_cint_p): Likewise.
11334 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
11335 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
11337 * config/pa/pa.md: Likewise.
11339 2015-09-18 David Malcolm <dmalcolm@redhat.com>
11341 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
11342 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
11343 (diagnostic_show_locus): Likewise.
11344 (diagnostic_print_caret_line): Likewise.
11345 * diagnostic-show-locus.c: New file.
11347 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
11349 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
11350 "back" parameter. Declare label in #if block.
11352 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
11354 PR middle-end/67619
11355 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
11356 the address to a register.
11358 2015-09-18 Jeff Law <law@redhat.com>
11360 PR tree-optimization/47679
11361 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
11362 * tree-ssa-dom.c: Remove unnecessary header includes.
11363 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
11364 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
11365 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
11366 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
11367 (pass_phi_only_cprop::execute): Likewise.
11368 (make_pass_phi_only_cprop): Likewise.
11369 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
11370 uses of file scoped statics by passing the required objects
11371 as parameters wherever needed.
11373 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
11374 David Edelsohn <dje.gcc@gmail.com>
11376 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
11377 EH_FRAME_THROUGH_COLLECT2.
11378 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
11380 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
11381 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
11382 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
11383 * except.c (switch_to_exception_section): Use a read-only section
11384 even if EH_FRAME_SECTION_NAME is undefined.
11385 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
11386 * collect2.c (write_c_file_stat): Provide dbase on AIX.
11387 (scan_prog_file): Don't export __dso_handle nor
11388 __gcc_unwind_dbase.
11389 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11390 (EH_TABLES_CAN_BE_READ_ONLY): Define.
11391 (ASM_OUTPUT_DWARF_PCREL): Define.
11392 (ASM_OUTPUT_DWARF_DATAREL): Define.
11393 (EH_FRAME_THROUGH_COLLECT2): Define.
11394 (EH_FRAME_IN_DATA_SECTION): Delete.
11395 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
11396 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
11398 (rs6000_asm_output_dwarf_datarel): Declare.
11399 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
11400 (rs6000_aix_asm_output_dwarf_datarel): New.
11401 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
11402 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
11403 (EH_FRAME_THROUGH_COLLECT2): Define.
11404 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
11405 (EH_FRAME_THROUGH_COLLECT2): Define.
11406 (EH_TABLES_CAN_BE_READ_ONLY): Define.
11407 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
11408 (EH_FRAME_THROUGH_COLLECT2): New.
11409 (ASM_OUTPUT_DWARF_DATAREL): New.
11410 * doc/tm.texi: Regenerate.
11412 2015-09-18 Richard Biener <rguenther@suse.de>
11414 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
11415 we're in early phase.
11416 (schedule_generic_params_dies_gen): Likewise.
11417 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
11418 work as possible, retaining unhandled cases.
11419 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
11420 clear out generic_type_instances at the end.
11421 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
11422 (dwarf2out_early_finish): ... here. Do most of
11423 gen_remaining_tmpl_value_param_die_attribute here.
11425 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
11427 PR tree-optimization/67283
11428 * tree-sra.c (type_consists_of_records_p): Rename to...
11429 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11430 (completely_scalarize_record): Rename to...
11431 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
11432 (scalarize_elem): New.
11433 (analyze_all_variable_accesses): Follow renamings.
11435 2015-09-18 Richard Biener <rguenther@suse.de>
11437 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
11440 2015-09-18 Richard Biener <rguenther@suse.de>
11442 PR tree-optimization/66142
11443 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
11444 treat MEM[&x] and x the same.
11445 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
11446 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
11447 when we simplified sth.
11448 (vn_reference_maybe_forwprop_address): Likewise.
11449 (valueize_refs_1): When we simplified through
11450 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
11451 set valueized_anything to true.
11452 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
11453 one ref kills the other instead of just a offset-based test.
11454 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
11455 for the operand_equal_p test to compare bases and also compare
11458 2015-09-17 Christian Bruel <christian.bruel@st.com>
11460 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
11462 2015-09-17 Richard Henderson <rth@redhat.com>
11465 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
11466 pointers that encode the alignment of the object.
11468 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
11470 PR rtl-optimization/66790
11471 * df-problems.c (LIVE): Amend documentation.
11473 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
11475 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
11477 (GTFILES): Replace optabs.c with optabs-libfunc.c.
11478 * genopinit.c (main): Add an include guard to insn-opinit.h.
11479 Protect the rtx_code parts with NUM_RTX_CODE.
11480 * optabs.h: Split parts out to...
11481 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
11482 * optabs.c: Split parts out to...
11483 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
11484 * cilk-common.c: Include optabs-query.h rather than optabs.h.
11485 * fold-const.c: Likewise.
11486 * target-globals.c: Likewise.
11487 * tree-if-conv.c: Likewise.
11488 * tree-ssa-forwprop.c: Likewise.
11489 * tree-ssa-loop-prefetch.c: Likewise.
11490 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
11491 Remove unncessary include files.
11492 * tree-ssa-phiopt.c: Likewise.
11493 * tree-ssa-reassoc.c: Likewise.
11494 * tree-switch-conversion.c: Likewise.
11495 * tree-vect-data-refs.c: Likewise.
11496 * tree-vect-generic.c: Likewise.
11497 * tree-vect-loop.c: Likewise.
11498 * tree-vect-patterns.c: Likewise.
11499 * tree-vect-slp.c: Likewise.
11500 * tree-vect-stmts.c: Likewise.
11501 * tree-vrp.c: Likewise.
11502 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
11503 rather than optabs.h.
11504 * expr.c: Include optabs-tree.h.
11505 * function.c: Likewise.
11507 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
11509 PR middle-end/65958
11510 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
11511 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
11512 * config/arm/arm.c: Include common/common-target.h.
11513 (use_return_insn): Return 0 if the static chain register was saved
11514 above a non-APCS frame.
11515 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
11516 (struct scratch_reg): New.
11517 (get_scratch_register_on_entry): New function.
11518 (release_scratch_register_on_entry): Likewise.
11519 (arm_emit_probe_stack_range): Likewise.
11520 (output_probe_stack_range): Likewise.
11521 (arm_expand_prologue): Factor out code dealing with the IP register
11522 for nested function and adjust it for stack checking.
11523 Invoke arm_emit_probe_stack_range if static builtin stack checking
11525 (thumb1_expand_prologue): Sorry out if static builtin stack checking
11527 (arm_expand_epilogue): Add the saved static chain register, if any, to
11528 the amount of pre-pushed registers to pop.
11529 (arm_frame_pointer_required): Return true if static stack checking is
11530 enabled and we want to catch the exception with the EABI unwinder.
11531 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
11532 (UNSPEC_PROBE_STACK_RANGE): Likewise.
11533 * config/arm/arm.md (probe_stack): New insn.
11534 (probe_stack_range): Likewise.
11536 2015-09-17 Richard Biener <rguenther@suse.de>
11538 * genmatch.c (parser::parse_expr): Improve error message
11539 for mis-placed flags.
11541 2015-09-17 Richard Biener <rguenther@suse.de>
11543 * passes.c (rest_of_decl_compilation): Always call early_global_decl
11544 debug hook when we created a varpool node.
11545 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
11546 dwarf2out_early_global_decl, when not just add location or
11547 value attributes to existing DIEs.
11549 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
11551 * config/aarch64/aarch64.md (copysigndf3): New.
11552 (copysignsf3): Likewise.
11554 2015-09-17 David S. Miller <davem@davemloft.net>
11556 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
11557 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
11558 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
11559 (HARD_REGNO_CALLER_SAVE_MODE): Define.
11560 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
11561 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
11562 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
11563 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
11564 provide when flag_pic.
11566 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
11568 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
11569 object_allocator change.
11571 2015-09-17 Bin Cheng <bin.cheng@arm.com>
11573 PR tree-optimization/66388
11574 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
11575 (dump_iv): Dump no_overflow information.
11576 (alloc_iv): Initialize new field for struct iv.
11577 (mark_bivs): Count number of no_overflow bivs.
11578 (find_deriving_biv_for_expr, record_biv_for_address_use): New
11580 (idx_find_step): Call new functions above.
11581 (add_candidate_1, add_candidate): New paramter.
11582 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
11583 (get_computation_aff): Simplify convertion of cand for BIV.
11584 (get_computation_cost_at): Step cand's base if necessary.
11586 2015-09-17 Bin Cheng <bin.cheng@arm.com>
11588 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
11590 (tree_simplify_using_condition): Ditto.
11591 (simplify_using_initial_conditions): Ditto.
11592 (loop_exits_before_overflow): Pass new argument to function
11593 simplify_using_initial_conditions. Remove case for type conversions
11595 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
11597 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
11598 in iv base using loop initial conditions.
11600 2015-09-16 Jeff Law <law@redhat.com>
11602 PR tree-optimization/47679
11603 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
11604 (free_all_edge_infos): Use it.
11605 (allocate_edge_info): Free preexisting edge info data.
11606 (pass_dominator::execute): Set up initial edge info structures.
11607 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
11608 thread_across_edge.
11609 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
11610 If non-null, then push/pop markers appropriately.
11611 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
11612 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
11613 thread-across_edge.
11615 2015-09-16 James Bowman <james.bowman@ftdichip.com>
11617 * config/ft32/ft32.c: Fix the memory address space predicate.
11619 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
11622 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
11623 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
11625 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
11627 * toplev.h (check_global_declaration): Remove declaration.
11628 * toplev.c (check_global_declaration): Move to ...
11629 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
11630 (analyze_functions): Update call.
11632 2015-09-16 David S. Miller <davem@davemloft.net>
11634 * lra-constraints.c (simplify_operand_subreg): Do not assume that
11635 lowpart of a SUBREG has offset zero.
11637 2015-09-16 Jeff Law <law@redhat.com>
11639 PR tree-optimization/47679
11640 * tree-ssa-dom.c (enum expr_kind): Moved from here to
11641 tree-ssa-scopedtables.h.
11642 (struct hashable_expr, class expr_hash_elt): Likewise.
11643 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
11644 Move associated methods into tree-ssa-scopedtables.c.
11645 (avail_expr_hash, initialize_expr_from_cond): Similarly.
11646 (hashable_expr_equal_p, add_expr_commutative): Likewise.
11647 (add_hashable_expr): Likewise.
11648 (record_cond): Delete element directly.
11649 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
11650 private copy ctor and assignment operator methods.
11651 (expr_elt_hasher): Inline trivial methods.
11652 (initialize_expr_from_cond): Prototype.
11653 * tree-ssa-scopedtables.c: Add necessary includes, functions and
11654 methods that were previously in tree-ssa-dom.c. Improve various
11657 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
11659 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
11661 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
11664 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
11667 2015-09-16 Richard Biener <rguenther@suse.de>
11669 PR middle-end/67253
11670 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
11671 location of possibly shared trees.
11673 2015-09-16 Richard Biener <rguenther@suse.de>
11675 PR middle-end/67271
11676 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
11678 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
11680 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
11681 offset and size computations instead of HOST_WIDE_INT.
11683 2015-09-16 Richard Biener <rguenther@suse.de>
11685 PR middle-end/67442
11686 * fold-const.c (extract_muldiv_1): Properly extend multiplication
11687 result before builting a tree via wide_int_to_tree.
11689 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
11691 * Makefile.in: Add memory-block.cc
11692 (pool_allocator::initialize): Use fixed block size.
11693 (pool_allocator::release): Use memory_block_pool.
11694 (pool_allocator::allocate): Likewise.
11695 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
11697 * cfg.c (initialize_original_copy_tables): Likewise.
11698 * cselib.c (elt_list_pool, elt_loc_list_pool,
11699 cselib_val_pool): Likewise.
11700 * df-problems.c (df_chain_alloc): Likewise.
11701 * df-scan.c (df_scan_alloc): Likewise.
11702 * dse.c (cse_store_info_pool, rtx_store_info_pool,
11703 read_info_type_pool, insn_info_type_pool, bb_info_pool,
11704 group_info_pool, deferred_change_pool): Likewise.
11705 * et-forest.c (et_nodes, et_occurrences): Likewise.
11706 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
11707 ipcp_agg_lattice_pool): Likewise.
11708 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
11709 * ipa-profile.c (histogram_pool): Likewise.
11710 * ipa-prop.c (ipa_refdesc_pool): Likewise.
11711 * ira-build.c (live_range_pool, allocno_pool, object_pool,
11712 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
11713 * ira-color.c (update_cost_record_pool): Likewise.
11714 * lra-lives.c (lra_live_range_pool): Likewise.
11715 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
11716 * memory-block.cc: New file.
11717 * memory-block.h: New file.
11718 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
11719 * sched-deps.c (sched_deps_init): Likewise.
11720 * sel-sched-ir.c (sched_lists_pool): Likewise.
11721 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
11722 * tree-sra.c (access_pool): Likewise.
11723 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
11724 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
11725 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
11726 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
11727 * tree-ssa-strlen.c (strinfo_pool): Likewise.
11728 * tree-ssa-structalias.c (variable_info_pool): Likewise.
11729 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
11730 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
11732 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
11734 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
11736 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
11739 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
11741 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
11742 to pass TLS call argument, according to current ABI.
11743 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
11744 callx0 for TLS call, according to current ABI.
11746 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
11748 * tree-eh.c (lower_try_finally_dup_block): Clear location information
11749 on stack restore statements.
11750 (decide_copy_try_finally): Do not consider a stack restore statement as
11751 coming from sources.
11753 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
11755 * config/alpha/alpha.c (alpha_expand_block_clear): Use
11756 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
11758 2015-09-15 Jeff Law <law@redhat.com>
11760 PR tree-optimization/47679
11761 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
11762 methods and private members.
11763 (avail_exprs_stack): Similarly. Change type of global
11764 from a pair of expr_hash_elt_t to the new class.
11765 (expr_elt_hasher::hash): Corresponding changes.
11766 (expr_elt_hasher::equal): Similarly.
11767 (avail_expr_hash): Similarly.
11768 (pass_dominator::execute): Similarly.
11769 (dom_opt_dom_walker::thread_across_edge): Similarly.
11770 (record_cond): Similarly.
11771 (dom_opt_dom_walker::before_dom_children): Similarly.
11772 (dom_opt_dom_walker::after_dom_children): Similarly.
11773 (lookup_avail_expr): Likewise.
11774 (initialize_hash_element): Now a expr_hash_elt constructor.
11775 (initialize_hash_element_from_expr): Similarly.
11776 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
11777 (free_expr_hash_elt): Call dtor for the element.
11778 (remove_local_expressions_from_table): Now the "pop_to_marker"
11779 method in the available_exprs_stack class.
11780 (avail_expr_stack::record_expr): Method factored out.
11781 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
11783 (hashable_expr_equal_p): Fix formatting.
11785 2015-09-15 David Malcolm <dmalcolm@redhat.com>
11787 * input.h (location_get_source_line): Drop "expanded_location"
11788 param in favor of a file and line number.
11789 * input.c (location_get_source_line): Likewise.
11790 (dump_location_info): Update for change in signature of
11791 location_get_source_line.
11792 * diagnostic.c (diagnostic_print_caret_line): Likewise.
11794 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
11796 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
11797 Bump to 4KB for SJLJ exceptions.
11798 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
11799 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
11800 * doc/tm.texi: Regenerate.
11802 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11804 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
11805 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
11808 2015-09-15 Richard Biener <rguenther@suse.de>
11810 PR tree-optimization/67470
11811 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
11812 structure for PHI hoisting by inserting a forwarder block
11815 2015-09-15 Christian Bruel <christian.bruel@st.com>
11817 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
11818 (arm_option_print): New function.
11820 2015-09-15 Christian Bruel <christian.bruel@st.com>
11823 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
11824 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
11825 Remove flags parameter.
11826 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
11827 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
11828 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
11829 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
11830 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
11831 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
11832 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
11833 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
11835 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11837 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
11839 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
11840 AARCH64_VALID_SIMD_DREG_MODE.
11842 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11844 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
11845 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
11846 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
11847 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
11848 aarch64_ld4_lane<mode>): Combine together, making...
11849 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
11850 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
11851 aarch64_st4_lane<mode>): Combine together, making...
11852 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
11853 * config/aarch64/iterators.md (nregs): Add comment.
11855 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11857 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
11858 Change operand mode from <V_TWO_ELEM> to BLK.
11859 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
11860 (aarch64_vec_store_lanesoi_lane<mode): Likewise
11861 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
11862 (aarch64_ld2_lane<mode>): Likewise.
11863 (aarch64_st2_lane<VQ:mode>): Likewise.
11864 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
11866 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11868 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
11869 Change operand mode from <V_FOUR_ELEM> to BLK.
11870 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
11871 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
11872 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
11873 (aarch64_ld4_lane<mode>): Likewise.
11874 (aarch64_st4_lane<mode>): Likewise.
11875 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
11877 2015-09-15 Richard Biener <rguenther@suse.de>
11879 PR middle-end/67563
11880 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
11881 transfer EH info from old to new stmt.
11882 (replace_call_with_value): Likewise.
11883 (replace_call_with_call_and_fold): Likewise.
11884 (gimple_fold_builtin_memory_op): Likewise.
11885 (gimple_fold_builtin_memset): Likewise.
11886 (gimple_fold_builtin_stpcpy): Likewise.
11887 (gimple_fold_call): Likewise.
11889 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11891 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
11893 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
11894 (aarch64_simd_intEI_type_node): Likewise.
11895 (aarch64_simd_builtin_std_type): Remove EImode case.
11896 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
11897 * config/aarch64/aarch64-modes.def: Remove EImode.
11899 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11901 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
11902 Change operand mode from <V_THREE_ELEM> to BLK.
11903 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
11904 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
11905 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
11906 (aarch64_ld3_lane<mode>): Likewise.
11907 (aarch64_st3_lane<mode>): Likewise.
11908 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
11910 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11912 * config/aarch64/aarch64-simd.md
11913 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
11914 Change all TImode operands to BLKmode.
11915 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
11916 Change all EImode operands to BLKmode.
11917 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
11918 Change all OImode operands to BLKmode.
11920 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
11921 and call set_mem_size.
11922 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
11924 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
11926 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11928 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
11930 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
11932 (vec_store_lanesci_lane<mode>): Rename to...
11933 (aarch64_vec_store_lanesci_lane<mode>): ...this.
11935 (vec_store_lanesxi_lane<mode>): Rename to...
11936 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
11938 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
11939 aarch64_st4_lane<mode>): Follow renaming.
11941 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11943 * config/s390/s390.c (s390_const_operand_ok): Add missing
11946 2015-09-15 Richard Biener <rguenther@suse.de>
11949 * lto-streamer.h (lto_location_cache::current_sysp): Properly
11951 * lto-streamer-out.c (clear_line_info): Likewise.
11953 2015-09-15 Richard Biener <rguenther@suse.de>
11955 * doc/match-and-simplify.texi: Fix wording.
11957 2015-09-15 Bin Cheng <bin.cheng@arm.com>
11959 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
11960 unnecessary type conversion in op1.
11962 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
11964 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
11965 (dup_block_and_redirect): Delete function.
11966 (can_dup_for_shrink_wrapping): New function.
11967 (fix_fake_fallthrough_edge): New function.
11968 (try_shrink_wrapping): Rewrite function.
11969 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
11971 2015-09-14 Rich Felker <dalias@libc.org>
11973 * configure.ac: Change target pattern for sh TLS support
11974 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
11975 * configure: Regenerate.
11977 2015-09-14 Jeff Law <law@redhat.com>
11979 PR tree-optimization/47679
11980 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
11981 type rather than void *.
11983 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
11986 * diagnostic.c (diagnostic_initialize): Do not set
11987 some_warnings_are_errors.
11988 (diagnostic_finish): Use DK_WERROR count instead.
11989 (diagnostic_report_diagnostic): Do not set
11990 some_warnings_are_errors.
11991 * diagnostic.h (struct diagnostic_context): Remove
11992 some_warnings_are_errors.
11994 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
11996 * config/sparc/predicates.md (const_all_ones_operand): Use
11997 CONSTM1_RTX to simplify definition.
11999 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
12002 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
12005 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
12007 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
12008 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
12009 OPT_fshow_column to handled saved option cases.
12010 (append_compiler_options): Do not skip the above added options.
12012 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12015 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
12016 nopcrelative_literal_loads.
12017 (aarch64_classify_address): Likewise.
12018 (aarch64_constant_pool_reload_icode): Define.
12019 (aarch64_secondary_reload): Handle secondary reloads for
12021 (aarch64_override_options): Handle nopcrelative_literal_loads.
12022 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
12023 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
12025 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
12026 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
12027 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
12029 * doc/invoke.texi (mpc-relative-literal-loads): Document.
12031 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
12033 PR middle-end/67401
12034 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
12035 sync_compare_and_swap_optab libcall to target_oval.
12037 2015-09-14 Marek Polacek <polacek@redhat.com>
12039 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
12041 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
12043 2015-09-11 Mark Wielaard <mjw@redhat.com>
12046 * toplev.c (check_global_declaration): Check and use
12047 warn_unused_const_variable.
12048 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
12049 (-Wunused-variable): Remove non-constant. For C implies
12050 -Wunused-const-variable.
12051 (-Wunused-const-variable): New.
12053 2015-09-14 Richard Biener <rguenther@suse.de>
12055 * doc/match-and-simplify.texi: Update for changed syntax
12056 of inner ifs and the new switch expression.
12058 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
12060 * config/i386/haswell.md: New file describing Haswell pipeline.
12061 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
12062 haswell-like processors.
12063 (ix86_reassociation_width): Increase reassociation width for 64-bit
12064 Haswell processor family.
12065 * config/i386/i386.md: Introduce haswell cpu and include new md file.
12067 2015-09-14 Richard Biener <rguenther@suse.de>
12069 * doc/match-and-simplify.texi: Fixup some formatting issues
12070 and document the 's' flag.
12072 2015-09-13 Olivier Hainque <hainque@adacore.com>
12073 Eric Botcazou <ebotcazou@adacore.com>
12075 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
12076 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
12077 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
12078 (TARGET_CPU_gr5): Likewise.
12079 (TARGET_CPU_gr6): Likewise.
12080 (MULTILIB_DEFAULTS): Likewise.
12081 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
12082 for mcpu=gr5 and mcpu=gr6.
12083 (MULTILIB_DIRNAMES): Adjust accordingly.
12085 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12087 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
12088 (mem_ref_p): Likewise.
12089 (outermost_indep_loop): Adjust.
12090 (mem_ref_in_stmt): Likewise.
12091 (determine_max_movement): Likewise.
12092 (mem_ref_alloc): Likewise.
12093 (record_mem_ref_loc): Likewise.
12094 (set_ref_stored_in_loop): Likewise.
12095 (mark_ref_stored): Likewise.
12096 (gather_mem_refs_stmt): Likewise.
12097 (mem_refs_may_alias_p): Likewise.
12098 (for_all_locs_in_loop): Likewise.
12099 (struct rewrite_mem_ref_loc): Likewise.
12100 (rewrite_mem_refs): Likewise.
12101 (struct first_mem_ref_loc_1): Likewise.
12102 (first_mem_ref_loc): Likewise.
12103 (struct sm_set_flag_if_changed): Likewise.
12104 (execute_sm_if_changed_flag_set): Likewise.
12105 (execute_sm): Likewise.
12106 (hoist_memory_references):
12107 (struct ref_always_accessed): Likewise.
12108 (ref_always_accessed_p): Likewise.
12109 (refs_independent_p): Likewise.
12110 (record_dep_loop): Likewise.
12111 (ref_indep_loop_p_1): Likewise.
12112 (ref_indep_loop_p_2): Likewise.
12113 (ref_indep_loop_p): Likewise.
12114 (can_sm_ref_p): Likewise.
12115 (find_refs_for_sm): Likewise.
12116 (tree_ssa_lim_finalize): Likewise.
12118 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12120 * dwarf2out.c (dw_attr_ref): Remove typedef.
12121 (dw_line_info_ref): Likewise.
12122 (pubname_ref): Likewise.
12123 (dw_ranges_ref): Likewise.
12124 (dw_ranges_by_label_ref): Likewise.
12125 (comdat_type_node_ref): Likewise.
12127 (get_AT_low_pc): Likewise.
12128 (get_AT_hi_pc): Likewise.
12129 (get_AT_string): Likewise.
12130 (get_AT_flag): Likewise.
12131 (get_AT_unsigned): Likewise.
12132 (get_AT_ref): Likewise.
12133 (get_AT_file): Likewise.
12134 (remove_AT): Likewise.
12135 (print_die): Likewise.
12136 (check_die): Likewise.
12137 (die_checksum): Likewise.
12138 (attr_checksum_ordered): Likewise.
12139 (struct checksum_attributes): Likewise.
12140 (collect_checksum_attributes): Likewise.
12141 (die_checksum_ordered): Likewise.
12142 (same_die_p): Likewise.
12143 (is_declaration_die): Likewise.
12144 (clone_die): Likewise.
12145 (clone_as_declaration): Likewise.
12146 (copy_declaration_context): Likewise.
12147 (break_out_comdat_types): Likewise.
12148 (copy_decls_walk): Likewise.
12149 (output_location_lists): Likewise.
12150 (external_ref_hasher::hash): Likewise.
12151 (optimize_external_refs_1): Likewise.
12152 (build_abbrev_table): Likewise.
12153 (size_of_die): Likewise.
12154 (unmark_all_dies): Likewise.
12155 (size_of_pubnames): Likewise.
12156 (output_die_abbrevs): Likewise.
12157 (output_die): Likewise.
12158 (output_pubnames): Likewise.
12159 (add_ranges_num): Likewise.
12160 (add_ranges_by_labels): Likewise.
12161 (add_high_low_attributes): Likewise.
12162 (gen_producer_string): Likewise.
12163 (dwarf2out_set_name): Likewise.
12164 (new_line_info_table): Likewise.
12165 (prune_unused_types_walk_attribs): Likewise.
12166 (prune_unused_types_update_strings): Likewise.
12167 (prune_unused_types): Likewise.
12168 (resolve_addr): Likewise.
12169 (optimize_location_lists_1): Likewise.
12170 (index_location_lists): Likewise.
12171 (dwarf2out_finish): Likewise.
12173 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12175 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
12177 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12179 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
12180 (dump_asserts_for): Adjust.
12181 (register_new_assert_for): Likewise.
12182 (process_assert_insertions): Likewise.
12183 (insert_range_assertions): Likewise.
12185 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12187 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
12188 and remove typedef.
12189 (new_temp_expr_table): Adjust.
12190 (free_temp_expr_table): Likewise.
12191 (version_to_be_replaced_p): Likewise.
12192 (make_dependent_on_partition): Likewise.
12193 (add_to_partition_kill_list): Likewise.
12194 (remove_from_partition_kill_list): Likewise.
12195 (add_dependence): Likewise.
12196 (finished_with_expr): Likewise.
12197 (process_replaceable): Likewise.
12198 (kill_expr): Likewise.
12199 (kill_virtual_exprs): Likewise.
12200 (mark_replaceable): Likewise.
12201 (find_replaceable_in_bb): Likewise.
12202 (find_replaceable_exprs): Likewise.
12203 (debug_ter): Likewise.
12205 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12207 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
12208 (struct btr_user): Rename from btr_user_s.
12209 (struct btr_def): Rename from btr_def_s.
12210 (find_btr_def_group): Adjust.
12211 (add_btr_def): Likewise.
12212 (new_btr_user): Likewise.
12213 (note_other_use_this_block): Likewise.
12214 (compute_defs_uses_and_gen): Likewise.
12215 (link_btr_uses): Likewise.
12216 (build_btr_def_use_webs): Likewise.
12217 (block_at_edge_of_live_range_p): Likewise.
12218 (btr_def_live_range): Likewise.
12219 (combine_btr_defs): Likewise.
12220 (move_btr_def): Likewise.
12221 (migrate_btr_def): Likewise.
12222 (migrate_btr_defs): Likewise.
12224 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12226 * var-tracking.c (shared_hash_def): Rename to shared_hash.
12227 (shared_hash): Remove typedef.
12228 (struct dataflow_set): Adjust.
12229 (shared_hash_unshare): Likewise.
12230 (dataflow_set_merge): Likewise.
12231 (vt_initialize): Likewise.
12232 (vt_finalize): Likewise.
12234 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12236 * var-tracking.c (struct location_chain): Rename from
12237 location_chain_def.
12238 (struct variable_part): Adjust.
12239 (variable_htab_free): Likewise.
12240 (unshare_variable): Likewise.
12241 (get_init_value): Likewise.
12242 (get_addr_from_local_cache): Likewise.
12243 (drop_overlapping_mem_locs): Likewise.
12244 (val_reset): Likewise.
12245 (struct variable_union_info): Likewise.
12246 (variable_union): Likewise.
12247 (find_loc_in_1pdv): Likewise.
12248 (insert_into_intersection): Likewise.
12249 (intersect_loc_chains): Likewise.
12250 (canonicalize_loc_order_check): Likewise.
12251 (canonicalize_values_mark): Likewise.
12252 (canonicalize_values_star): Likewise.
12253 (canonicalize_vars_star): Likewise.
12254 (variable_merge_over_cur): Likewise.
12255 (remove_duplicate_values): Likewise.
12256 (variable_post_merge_new_vals): Likewise.
12257 (variable_post_merge_perm_vals): Likewise.
12258 (find_mem_expr_in_1pdv): Likewise.
12259 (dataflow_set_preserve_mem_locs): Likewise.
12260 (dataflow_set_remove_mem_locs): Likewise.
12261 (variable_part_different_p): Likewise.
12262 (onepart_variable_different_p): Likewise.
12263 (find_src_set_src): Likewise.
12264 (dump_var): Likewise.
12265 (set_slot_part): Likewise.
12266 (clobber_slot_part): Likewise.
12267 (delete_slot_part): Likewise.
12268 (vt_expand_var_loc_chain): Likewise.
12269 (emit_note_insn_var_location): Likewise.
12270 (vt_finalize): Likewise.
12272 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12274 * dse.c (store_info_t): Remove typedef.
12275 (group_info_t): Likewise.
12276 (const_group_info_t): Likewise.
12277 (deferred_change_t): Likewise.
12278 (get_group_info): Adjust.
12279 (free_store_info): Likewise.
12280 (canon_address): Likewise.
12281 (clear_rhs_from_active_local_stores): Likewise.
12282 (record_store): Likewise.
12283 (replace_read): Likewise.
12284 (check_mem_read_rtx): Likewise.
12285 (scan_insn): Likewise.
12286 (remove_useless_values): Likewise.
12287 (dse_step1): Likewise.
12288 (dse_step2_init): Likewise.
12289 (dse_step2_nospill): Likewise.
12290 (scan_stores_nospill): Likewise.
12291 (scan_reads_nospill): Likewise.
12292 (dse_step3_exit_block_scan): Likewise.
12293 (dse_step3): Likewise.
12294 (dse_step5_nospill): Likewise.
12295 (dse_step6): Likewise.
12297 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12299 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
12300 (alias_set_entry): Remove typedef.
12301 (alias_set_subset_of): Adjust.
12302 (alias_sets_conflict_p): Likewise.
12303 (init_alias_set_entry): Likewise.
12304 (get_alias_set): Likewise.
12305 (new_alias_set): Likewise.
12306 (record_alias_subset): Likewise.
12308 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
12310 * doc/install.texi (Downloading the source): Mark up
12311 contrib/download_prerequisites properly and drop leading "./".
12313 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12315 * config/arc/arc.h: Remove define of STRUCT_VALUE.
12316 * config/lm32/lm32.h: Likewise.
12317 * config/mep/mep.h: Likewise.
12318 * config/visium/visium.h: Likewise.
12319 * system.h: Poison STRUCT_VALUE macro.
12321 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
12323 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
12324 CONSTANT_P operands.
12326 2015-09-11 David S. Miller <davem@davemloft.net>
12328 * config/sparc/constraints.md: Make "U" constraint a real register
12330 * config/sparc/sparc.c (TARGET_LRA_P): Define.
12331 (D_MODES, DF_MODES): Add missing cast.
12332 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
12333 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
12334 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
12336 * config/sparc/sparc.h (PROMOTE_MODE): Define.
12337 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
12338 provide these insn when flag_pic.
12340 2015-09-11 Jeff Law <law@redhat.com>
12342 PR tree-optimization/47679
12343 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
12344 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
12345 member with m_. Update inline member functions as necessary. Add
12347 * tree-ssa-scopedtables.c: Update const_and_copies's member
12348 functions to use m_ prefix to access the stack.
12350 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
12352 * graphite-optimize-isl.c (disable_tiling): Remove.
12353 (get_schedule_for_band): Do not use disable_tiling.
12354 (get_prevector_map): Delete function.
12355 (enable_polly_vector): Remove.
12356 (get_schedule_for_band_list): Remove dead code.
12358 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
12360 * graphite-optimize-isl.c (get_tile_map): Refactor.
12361 (get_schedule_for_band): Same.
12362 (getScheduleForBand): Same.
12363 (get_prevector_map): Same.
12364 (get_schedule_for_band_list): Same.
12365 (get_schedule_map): Same.
12366 (get_single_map): Same.
12367 (apply_schedule_map_to_scop): Same.
12368 (optimize_isl): Same.
12370 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12373 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
12375 * config/aarch64/iterators.md (GPF_TF_F16): New.
12378 2015-09-10 Nathan Sidwell <nathan@acm.org>
12380 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
12381 (nvptx_reorg): Adjust comments.
12383 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
12386 * configure.ac: Check if setenv and unsetenv are declared.
12387 * configure: Rebuild.
12388 * config.in: Rebuild.
12389 * system.h: Declare setenv and unsetenv if not declared.
12391 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12393 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
12394 commentary to simplify permute mask adjustment equation.
12395 (special_handling_values): Add SH_VPERM.
12396 (const_load_sequence_p): New function.
12397 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
12398 the mask loaded from the constant pool.
12399 (adjust_vperm): New function.
12400 (handle_special_swappables): Call adjust_vperm.
12401 (dump_swap_insn_table): Handle SH_VPERM.
12403 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
12405 * shrink-wrap.c (requires_stack_frame_p): Remove static.
12406 * shrink-wrap.h (requires_stack_frame_p): Put back.
12408 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
12410 * reload1.c (elimination_costs_in_insn): Locally turn
12411 -Wmaybe-uninitialized into a warning.
12413 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
12415 * shrink-wrap.c (requires_stack_frame_p): Make static.
12416 (prepare_shrink_wrap): Likewise.
12417 (dup_block_and_redirect): Likewise.
12418 * shrink-wrap.h: Remove declarations of those functions.
12420 2015-09-10 Mark Wielaard <mjw@redhat.com>
12422 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
12424 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
12427 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
12428 missing simplify_gen_subreg.
12430 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12432 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
12433 the vector element is bigger than 64 bit.
12435 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12437 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
12438 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
12440 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12442 * config/s390/s390.c: Add V1TImode to constant pool modes.
12444 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12447 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
12448 predicate. Set predicable_short_it attr to "no".
12450 2015-09-10 Jiong Wang <jiong.wang@arm.com>
12452 PR rtl-optimization/67421
12453 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
12454 left wide shift tranformation.
12456 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
12458 * common/config/arc/arc-common.c: Remove references to A5.
12459 * config/arc/arc-opts.h: Likewise.
12460 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
12461 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
12462 * config/arc/t-arc-newlib: Likewise.
12464 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
12466 * config/arc/arc.md (length): Fix attribute length for conditional
12467 executed instructions with long immediate.
12469 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12471 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
12472 type for second alternative.
12474 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
12476 * doc/invoke.texi (Downloading GCC): Mention
12477 contrib/download_prerequisites script.
12479 2015-09-10 Jakub Jelinek <jakub@redhat.com>
12482 * gimplify.c (gimplify_omp_for): If inner stmt is not found
12483 for combined loop, assert seen_error () and return GS_ERROR.
12485 PR middle-end/67521
12486 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
12487 if decl is already in outer->variables.
12489 PR middle-end/67517
12490 * gimplify.c (gimplify_scan_omp_clauses): Instead of
12491 asserting that decl is not specified in octx->variables,
12492 break out of the loop if it is.
12495 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
12496 iterator is not explicitly determined, but is defined inside
12497 of the combined workshare region, handle it like if it has
12498 DECL_EXPR in OMP_FOR_PRE_BODY.
12500 2015-09-09 Nathan Sidwell <nathan@acm.org>
12502 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
12503 (*cmp<mode>): Add assembler spacing.
12504 (setcc_int<mode>, set_cc_float<mode>): Likewise.
12505 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
12507 (write_func_decl_from_insn): Refactor argument loops & comma emission.
12508 (nvptx_expand_call): Likewise.
12509 (nvptx_output_call_insn): Likewise.
12510 (nvptx_reorg_subreg): Add spacing.
12512 2015-09-09 Marek Polacek <polacek@redhat.com>
12514 PR middle-end/67512
12515 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
12518 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
12521 * doc/invoke.texi ([Wsubobject-linkage]): Document.
12523 2015-09-09 Tom de Vries <tom@codesourcery.com>
12525 * params-list.h: Add missing copyright notice.
12527 2015-09-09 Nathan Sidwell <nathan@acm.org>
12529 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
12530 sel_truesi, not andsi.
12532 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12534 * config/arm/arm.md (*subsi3_compare0): Rename to...
12535 (subsi3_compare0): ... This.
12536 (modsi3): New define_expand.
12537 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
12538 when operand is power of 2.
12540 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12542 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
12543 (*neg<mode>2_compare0): Rename to...
12544 (neg<mode>2_compare0): ... This.
12545 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
12546 Move check for speed inside the if-then-elses. Reflect
12547 CSNEG sequence in MOD by power of 2 case.
12549 2015-09-09 Alan Modra <amodra@gmail.com>
12552 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
12553 reload replacement for PRE_MODIFY address reg.
12555 2015-09-09 Sebastian Pop <s.pop@samsung.com>
12557 PR tree-optimization/53852
12558 * config.in: Regenerate.
12559 * configure: Regenerate.
12560 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
12561 * graphite-optimize-isl.c (optimize_isl): Stop computation when
12562 PARAM_MAX_ISL_OPERATIONS is reached.
12563 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
12564 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
12565 result equal to isl_stat_ok as the status now can be isl_error_quota.
12566 (subtract_commutative_associative_deps): Same.
12567 (compute_deps): Same.
12569 2015-09-08 Aditya Kumar <hiraditya@msn.com>
12570 Sebastian Pop <s.pop@samsung.com>
12572 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
12573 Return the parameter if it was saved in corresponding
12574 parameter_rename_map of the region.
12575 (copy_def): Copy def from sese region to the newly created region.
12576 (copy_internal_parameters): Copy all the internal parameters defined
12577 within a region to the newly created region.
12578 (graphite_regenerate_ast_isl): Copy parameters to the new region before
12579 translating isl to gimple.
12580 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
12581 the loop-nest does not have any data-references.
12582 (build_graphite_scops): Create a scop only when there is at least one
12584 (contains_only_close_phi_nodes): Deleted.
12585 (print_graphite_scop_statistics): Deleted
12586 (print_graphite_statistics): Deleted
12587 (limit_scops): Deleted.
12588 (build_scops): Removed call to limit_scops.
12589 * sese.c (new_sese): Construct.
12590 (free_sese): Destruct.
12591 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
12593 (set_rename): Pass sese region so that parameters inside the region can
12594 be added to its parameter_rename_map.
12595 (rename_uses): Pass sese region.
12596 (graphite_copy_stmts_from_block): Do not copy parameters that have been
12597 generated in the header of the scop. For each SSA_NAME in the
12598 parameter_rename_map rename its usage.
12599 (invariant_in_sese_p_rec): Return false if tree t is defined outside
12601 (scalar_evolution_in_region): If the tree t is invariant just return t.
12602 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
12603 struct sese to keep track of all the parameters which need renaming.
12604 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
12606 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
12608 2015-09-08 Tom de Vries <tom@codesourcery.com>
12610 * Makefile.in (generated_files): Add params.list.
12611 (params.list, s-params.list): Add rule.
12612 * params.h (enum compiler_param): Include params-list.h. Move define
12613 DEFPARAM, include params.def and undef DEFPARAM ...
12614 * params-list.h: ... here. New file.
12616 2015-09-08 David Malcolm <dmalcolm@redhat.com>
12618 * pretty-print.h (printer_fn): Fix typo in comment.
12620 2015-09-07 Jeff Law <law@redhat.com>
12622 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
12624 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12626 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
12627 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
12628 (arm_neon_fp16_hw): New.
12630 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12632 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
12633 UNITS_PER_WORD >= 4.
12635 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12637 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
12638 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
12639 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
12640 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
12641 (aarch64_float_extend_lo_v2df): Rename to...
12642 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
12644 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
12645 (float_extend_lo): Add v4sf.
12647 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
12648 * config/aarch64/iterators.md (VQ_HSF): New iterator.
12649 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
12650 (Vwide): New mode_attr.
12652 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12654 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
12655 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
12656 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
12657 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
12658 V4HF and V8HF variants to iterator.
12660 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
12662 * config/aarch64/iterators.md (VDQF_F16): New.
12663 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
12665 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12667 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
12668 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
12669 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
12670 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
12671 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
12672 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
12673 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
12674 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
12675 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
12676 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
12677 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
12678 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
12679 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
12680 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
12681 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
12682 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
12683 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
12684 vld1q_dup_f16): New.
12686 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12688 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
12689 Reparameterize to...
12690 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
12691 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
12692 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
12694 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
12696 (float_truncate_lo_): Use BUILTIN_VDF iterator.
12698 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
12700 * config/aarch64/iterators.md (VDF, Vdtype): New.
12701 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
12703 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12705 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
12706 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
12707 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
12708 Add __builtin_aarch64_simd_hf.
12709 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
12710 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
12711 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
12712 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
12713 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
12714 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
12715 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
12716 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
12717 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
12719 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
12720 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
12721 (VDC, Vdbl): Add V4HF.
12723 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12725 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
12726 V4HFmode and V8HFmode.
12727 (aarch64_split_simd_move): Add case for V8HFmode.
12728 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
12729 (aarch64_simd_builtin_std_type): Handle HFmode.
12730 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
12732 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
12733 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
12734 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
12736 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
12739 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
12740 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
12742 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
12743 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
12744 vst1q_lane_f16): New.
12745 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
12746 (VALLDI_F16, VALL_F16): New.
12747 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
12748 Add cases for V4HF and V8HF.
12749 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
12751 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12753 * config/arm/arm-builtins.c (VAR11, VAR12): New.
12754 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
12755 vld4_dup): Add v4hf variant.
12756 (vget_high, vget_low): Add v8hf variant.
12757 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
12758 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
12759 v4hf and v8hf variants.
12761 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
12763 (V_DOUBLE): Add case for V4HF.
12765 (V_HALF): Add case for V8HF.
12766 (VDQX): Add V4HF, V8HF.
12767 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
12768 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
12770 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
12771 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
12772 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
12773 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
12774 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
12775 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
12776 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
12777 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
12778 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
12780 (neon_vcreate, neon_vreinterpretv8qi<mode>,
12781 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
12782 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
12783 Change VDX to VD_RE.
12785 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
12786 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
12787 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
12789 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
12790 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
12791 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
12792 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
12793 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
12794 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
12795 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
12796 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
12797 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
12799 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12801 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
12802 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
12803 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
12804 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
12805 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
12806 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
12807 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
12808 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
12809 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
12810 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
12813 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12815 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
12817 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
12819 * config/arm/arm-builtins.c (v8hf_UP): New.
12820 (arm_init_simd_builtin_types): Initialise Float16x8_t.
12822 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
12824 * config/arm/arm_neon.h (float16x8_t): New typedef.
12826 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12828 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
12829 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
12830 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
12831 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
12832 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
12833 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
12834 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
12835 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
12836 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
12837 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
12839 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
12841 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
12842 non-alphanumeric characters in the symbol name.
12844 2015-09-07 Marek Polacek <polacek@redhat.com>
12846 PR inline-asm/67448
12847 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
12850 2015-09-07 Marek Polacek <polacek@redhat.com>
12852 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
12854 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
12856 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
12859 2015-09-04 Jakub Jelinek <jakub@redhat.com>
12861 PR middle-end/67452
12862 * tree-ssa-live.c: Include cfgloop.h.
12863 (remove_unused_locals): Clear loop->simduid if simduid is about
12864 to be removed from cfun->local_decls.
12866 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12869 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
12872 2015-09-04 Tom de Vries <tom@codesourcery.com>
12874 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
12876 2015-09-04 Jeff Law <law@redhat.com>
12878 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
12879 unnecessary constructor. It's now trivial and implemented inside...
12880 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
12881 constructor. Add comments to various methods. Remove unused
12883 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
12884 * tree-vrp.c (identify_jump_threads): Likewise.
12885 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
12886 indentation issues.
12887 (thread_across_edge): Similarly.
12888 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
12889 arguments in constructor call.
12891 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
12893 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
12894 temp path contains a '-'.
12896 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
12897 Petr Murzin <petr.murzin@intel.com>
12898 Kirill Yukhin <kirill.yukhin@intel.com>
12900 * config/i386/i386-builtin-types.def
12901 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
12902 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
12903 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
12904 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
12905 * config/i386/i386.c
12906 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
12907 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
12908 IX86_BUILTIN_SCATTERALTDIV16SI.
12909 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
12910 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
12911 __builtin_ia32_scatteraltdiv8si.
12912 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
12913 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
12914 IX86_BUILTIN_SCATTERALTDIV16SI.
12915 (ix86_vectorize_builtin_scatter): New.
12916 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
12917 ix86_vectorize_builtin_scatter.
12919 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
12920 Petr Murzin <petr.murzin@intel.com>
12921 Kirill Yukhin <kirill.yukhin@intel.com>
12923 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
12924 * doc/tm.texi: Regenerate.
12925 * target.def: Add scatter builtin.
12926 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
12927 for loads/stores in case of gather/scatter accordingly.
12928 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
12929 STMT_VINFO_GATHER_P(S).
12930 (vect_check_gather): Rename to ...
12931 (vect_check_gather_scatter): this.
12932 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
12933 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
12934 (vect_check_gather_scatter): Use it instead of vect_check_gather.
12935 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
12936 variable and new checkings for it accordingly.
12937 * tree-vect-stmts.c
12938 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
12939 STMT_VINFO_GATHER_P(S).
12940 (vect_check_gather_scatter): Use it instead of vect_check_gather.
12941 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
12943 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12945 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
12947 (mulv16qi3): New define_expand.
12949 2015-09-03 Martin Sebor <msebor@redhat.com>
12952 * doc/extend.texi (Other Builtins): Document when the address
12953 of a built-in function can be taken.
12955 2015-09-03 Richard Biener <rguenther@suse.de>
12957 * dwarf2out.c (flush_limbo_die_list): Split out from ...
12958 (dwarf2out_early_finish): ... here.
12959 (dwarf2out_finish): Do not call dwarf2out_early_finish but
12960 flush_limbo_die_list. Assert we have no deferred asm names.
12962 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12964 * optabs.c (expand_binop): Don't create a broadcast vector with a
12965 source element wider than the inner mode.
12967 2015-09-03 Richard Biener <rguenther@suse.de>
12969 * varasm.c (output_constant): Use fold_convert instead of
12972 2015-09-03 Tom de Vries <tom@codesourcery.com>
12974 PR tree-optimization/65637
12975 * omp-low.c (expand_omp_for_static_chunk): Handle case that
12976 fin_bb has 2 predecessors.
12978 2015-09-03 Tom de Vries <tom@codesourcery.com>
12980 PR tree-optimization/65637
12981 * omp-low.c (find_phi_with_arg_on_edge): New function.
12982 (expand_omp_for_static_chunk): Fix inner loop phi.
12984 2015-09-03 Tom de Vries <tom@codesourcery.com>
12986 PR tree-optimization/65637
12987 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
12990 2015-09-03 Tom de Vries <tom@codesourcery.com>
12992 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
12994 2015-09-03 Tom de Vries <tom@codesourcery.com>
12996 * doc/invoke.texi (parloops-chunk-size): Add item.
12997 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
12998 * tree-parloops.c: Include params.h.
12999 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
13000 param parloops-chunk-size is used.
13002 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13004 PR middle-end/67351
13005 * fold-const.c (fold_binary_loc) : Move
13006 Transform (x >> c) << c into x & (-1<<c) or
13007 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
13008 types using simplify and match.
13009 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
13010 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
13012 2015-09-03 Richard Biener <rguenther@suse.de>
13015 * tree-ssa-structalias.c (ctor_for_analysis): New function.
13016 (create_variable_info_for_1): Use ctor_for_analysis instead
13017 of get_constructor.
13018 (create_variable_info_for): Likewise.
13020 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
13023 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
13024 in new callgraph edge.
13026 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
13031 * config/aarch64/aarch64-simd.md
13032 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
13033 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
13034 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
13035 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
13037 2015-09-02 Alan Modra <amodra@gmail.com>
13039 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
13040 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
13041 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
13043 2015-09-02 Alan Modra <amodra@gmail.com>
13046 * config/rs6000/predicates.md (current_file_function_operand): Don't
13047 return true for weak symbols.
13048 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
13050 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
13051 Andrew Bennett <andrew.bennett@imgtec.com>
13053 * config/mips/mips-opts.h (mips_cb_setting): New enum.
13054 * config/mips/mips-protos.h: Add definitions for
13055 mips_output_jump and mips_output_equal_conditional_branch
13056 * config/mips/mips.c (MIPS_JR): Change to support the
13058 (mips_emit_compare): Add support for the MIPS R6 conditional
13060 (mips_process_sync_loop): Likewise.
13061 (mips_output_order_conditional_branch): Likewise.
13062 (mips16_build_call_stub): Change MIPS_CALL to
13064 (mips_print_operand_punctuation): Update 's' case to only
13065 apply to micromips r2.
13066 (mips_adjust_insn_length): Add support for forbidden slot
13068 (mips_avoid_hazard): Likewise.
13069 (mips_reorg_process_insns): Likewise.
13070 (mips_output_jump): New function.
13071 (mips_output_equal_conditional_branch): Likewise.
13072 (mips_output_conditional_branch): Use jrc/bc if compact
13073 branch support is enabled. Ensure the forbidden slots
13074 between the two branch instructions is filled with a nop.
13075 (mips_option_override): Add support to process the compact
13076 branch option and set the correct defaults. Prevent
13077 non-explict relocs being using for MIPS R6.
13078 (mips_trampoline_init): Add compact branch support.
13079 (mips_mult_zero_zero_cost): Allow zero initialisation of
13080 accumulators with TARGET_DSP.
13081 * config/mips/mips.h (TARGET_CB_NEVER): New define.
13082 (TARGET_CB_MAYBE): New define.
13083 (TARGET_CB_ALWAYS): New define.
13084 (ISA_HAS_DELAY_SLOTS): New define.
13085 (ISA_HAS_COMPACT_BRANCHES): New define.
13086 (ISA_HAS_JRC): New define.
13087 (MIPS_BRANCH_C): New define.
13088 (MIPS_CALL): Removed.
13089 (MICROMIPS_J): Removed.
13090 * config/mips/mips.md (compact_form): New attr.
13091 (hazard): Add support for forbidden slots.
13092 (define_delay): Add support for compact branches.
13093 (*branch_order<mode>): Likewise.
13094 (*branch_order<mode>_inverted): Likewise.
13095 (*branch_equality<mode>): Likewise.
13096 (*branch_equality<mode>_inverted): Likewise.
13097 (*jump_absolute): Likewise.
13098 (*jump_pic): Likewise.
13099 (indirect_jump): Use mips_output_jump to produce assembly output.
13100 (tablejump_<mode>"): Likewise.
13101 (*<optab>"): Likewise.
13102 (<optab>_internal): Likewise.
13103 (sibcall_internal): Likewise.
13104 (sibcall_value_internal): Likewise.
13105 (sibcall_value_multiple_internal): Likewise.
13106 (call_internal): Likewise.
13107 (call_split): Likewise.
13108 (call_internal_direct): Likewise.
13109 (call_direct_split): Likewise.
13110 (call_value_internal): Likewise.
13111 (call_value_split): Likewise.
13112 (call_value_internal_direct): Likewise.
13113 (call_value_direct_split): Likewise.
13114 (call_value_multiple_internal): Likewise.
13115 (call_value_multiple_split): Likewise.
13116 (mips_get_fcsr_mips16_<mode>): Likewise.
13117 (mips_set_fcsr_mips16_<mode>): Likewise.
13118 (tls_get_tp_mips16_<mode>): Likewise.
13119 * config/mips/mips.opt: Add -mcompact-branches option.
13120 * config/mips/predicates.md (order_operator): Ensure the
13121 conditional compact branches are only used if the ISA them.
13122 * doc/invoke.texi: Document -mcompact-branches option.
13124 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
13127 * lra-lives.c (process_bb_lives): Process move pseudos with the
13128 same value for copies and preferences
13129 * lra-constraints.c (match_reload): Create match reload pseudo
13130 with the same value from single dying input pseudo.
13132 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
13135 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
13137 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
13139 * trans-mem.c: Add contributed-by.
13140 * trans-mem.h: Same.
13142 2015-09-01 Richard Biener <rguenther@suse.de>
13144 * expr.c (expand_expr_real_1): For expanding TERed defs
13145 set the current location to that of the def if not UNKNOWN.
13147 2015-09-01 David Sherwood <david.sherwood@arm.com>
13149 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
13151 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13153 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
13154 then_cost, else_cost fields. Change branch_cost field to unsigned int.
13155 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
13156 Include rtl-iter.h.
13157 (noce_simple_bbs): New function.
13158 (noce_try_move): Bail if basic blocks are not simple.
13159 (noce_try_store_flag): Likewise.
13160 (noce_try_store_flag_constants): Likewise.
13161 (noce_try_addcc): Likewise.
13162 (noce_try_store_flag_mask): Likewise.
13163 (noce_try_cmove): Likewise.
13164 (noce_try_minmax): Likewise.
13165 (noce_try_abs): Likewise.
13166 (noce_try_sign_mask): Likewise.
13167 (noce_try_bitop): Likewise.
13168 (bbs_ok_for_cmove_arith): New function.
13169 (noce_emit_all_but_last): Likewise.
13170 (noce_emit_insn): Likewise.
13171 (noce_emit_bb): Likewise.
13172 (noce_try_cmove_arith): Handle non-simple basic blocks.
13173 (insn_valid_noce_process_p): New function.
13174 (contains_mem_rtx_p): Likewise.
13175 (bb_valid_for_noce_process_p): Likewise.
13176 (noce_process_if_block): Allow non-simple basic blocks
13179 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
13181 * tree-ssa-dom.c (record_equivalences_from_phis,
13182 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
13183 (lookup_avail_expr): Likewise, and remove comment and unused temp.
13185 2015-09-01 Nick Clifton <nickc@redhat.com>
13187 * config/msp430/msp430.opt (mcpu): Fix typo.
13189 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13191 * config/aarch64/aarch64.c (aarch64_set_current_function):
13192 Re-layout any vector parameters have non-simd layout.
13193 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
13195 (aarch64_simd_expand_args): Delete call to the above.
13197 2015-08-31 Mike Frysinger <vapier@gentoo.org>
13199 * doc/invoke.texi (asan-stack): Add space before option.
13201 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
13203 * tree.h (zerop): New function.
13204 * tree.c (zerop): Likewise.
13205 (element_precision): Handle expressions.
13206 * match.pd (define_predicates): Add zerop.
13207 (x <= +Inf): Fix comment.
13208 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
13209 * fold-const.c (fold_binary_loc): ... here. Remove.
13211 2015-08-31 Richard Biener <rguenther@suse.de>
13213 PR middle-end/67381
13214 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
13216 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
13218 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
13219 (CEXPI): New operator list.
13220 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
13221 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
13223 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
13225 2015-08-31 Tom de Vries <tom@codesourcery.com>
13227 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
13228 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
13230 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
13231 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
13232 (rewrite_into_loop_closed_ssa): ... here.
13233 (replace_uses_in_dominated_bbs): Remove function.
13234 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
13235 rewrite_into_loop_closed_ssa_1.
13237 2015-08-31 Michael Matz <matz@suse.de>
13239 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
13240 enter entry and exit blocks for reverse post order.
13242 2015-08-31 Richard Biener <rguenther@suse.de>
13244 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
13245 (lto_location_cache::current_sysp): Likewise.
13246 (output_block::current_sysp): Likewise.
13247 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
13248 (lto_location_cache::apply_location_cache): Properly record
13249 system header locations.
13250 (lto_location_cache::input_location): Input whether a file
13251 is a system header.
13252 * lto-streamer-out.c (lto_output_location): Stream whether a file
13253 is a system header.
13255 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13258 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
13260 2015-08-31 Tom de Vries <tom@codesourcery.com>
13262 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
13263 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
13264 Improve function header comments.
13266 2015-08-30 Michael Collison <michael.collison@linaro.org>
13269 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
13272 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13274 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
13275 special_handling bitfield.
13276 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
13277 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
13278 that represents a general xxpermdi.
13279 (insn_is_swappable_p): Add handling for vec_concat of two
13280 doublewords, which maps to a specific xxpermdi.
13281 (adjust_xxpermdi): New function.
13282 (adjust_concat): Likewise.
13283 (handle_special_swappables): Call adjust_xxpermdi and
13285 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
13287 2015-08-30 Rich Felker <dalias@libc.org>
13289 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
13290 case instead of sh[123456ble]-*-*.
13292 2015-08-29 Anatoly Sokolov <aesok@post.ru>
13294 * ira.c (print_unform_and_important_classes,
13295 print_translated_classes): Remove reg_class_names static array.
13296 (print_unform_and_important_classes): Rename to ...
13297 (print_uniform_and_important_classes): ... this.
13298 (ira_debug_allocno_classes): Update accordingly.
13300 2015-08-29 Tom de Vries <tom@codesourcery.com>
13302 PR tree-optimization/46193
13303 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
13306 2015-08-28 Jeff Law <law@redhat.com>
13309 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13310 unable to find X NE 0 in the tables, return X as the simplified
13312 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13313 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
13315 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13316 after removing the control flow statement and unnecessary edges.
13318 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
13321 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
13323 PR tree-optimization/67283
13324 * tree-sra.c (type_consists_of_records_p): Rename to...
13325 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13327 (completely_scalarize_record): Rename to...
13328 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
13330 (scalarize_elem): New.
13332 2015-08-28 Jiong Wang <jiong.wang@arm.com>
13334 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
13335 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
13336 (aarch64_symbol_type): Likewise.
13337 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13339 (aarch64_expand_mov_immediate): Likewise.
13340 (aarch64_print_operand): Likewise.
13341 (aarch64_classify_tls_symbol): Likewise.
13343 2015-08-28 Richard Biener <rguenther@suse.de>
13345 * cgraphunit.c (symbol_table::compile): Move early debug generation
13347 (symbol_table::finalize_compilation_unit): ... back here and
13348 add a !seen_error () guard.
13350 2015-08-27 Sebastian Pop <s.pop@samsung.com>
13352 * toplev.c (process_options): Do not use flag_loop_block,
13353 flag_loop_interchange, and flag_loop_strip_mine. Add check for
13354 flag_loop_optimize_isl.
13356 2015-08-27 Sebastian Pop <s.pop@samsung.com>
13358 * Makefile.in (OBJS): Remove graphite-blocking.o and
13359 graphite-interchange.o.
13360 * common.opt (floop-strip-mine, floop-interchange, floop-block):
13361 Alias of floop-nest-optimize.
13362 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
13363 Document as alias of -floop-nest-optimize.
13364 * graphite-blocking.c: Remove.
13365 * graphite-interchange.c: Remove.
13366 * graphite-optimize-isl.c: Include dumpfile.h.
13367 (getScheduleForBand): Add dump for tiled loops. Use
13368 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
13369 * graphite-poly.c (scop_max_loop_depth): Remove.
13370 (print_scattering_function_1): Remove.
13371 (print_scattering_function): Remove.
13372 (print_scattering_functions): Remove.
13373 (debug_scattering_function): Remove.
13374 (debug_scattering_functions): Remove.
13375 (apply_poly_transforms): Remove use of flag_loop_block,
13376 flag_loop_strip_mine, and flag_loop_interchange.
13377 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
13379 (print_pdr_access_layout): Remove.
13380 (print_pdr): Print ISL representation.
13381 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
13382 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
13384 (openscop_print_pbb_domain): Remove.
13385 (print_pbb): Remove call to print_scattering_function.
13386 (openscop_print_scop_context): Remove.
13387 (print_scop_context): Do not print matrices anymore.
13388 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
13389 SCOP_TRANSFORMED_SCHEDULE.
13390 (print_isl_set): Add printing of a new line.
13391 (print_isl_map): Same.
13392 (print_isl_aff): Same.
13393 (print_isl_constraint): Same.
13394 (loop_to_lst): Remove.
13395 (scop_to_lst): Remove.
13396 (lst_indent_to): Remove.
13397 (print_lst): Remove.
13398 (debug_lst): Remove.
13399 (dot_lst_1): Remove.
13401 (reverse_loop_at_level): Remove.
13402 (reverse_loop_for_pbbs): Remove.
13403 * graphite-poly.h (pdr_dim_iter_domain): Remove.
13404 (pdr_nb_params): Remove.
13405 (pdr_alias_set_dim): Remove.
13406 (pdr_subscript_dim): Remove.
13407 (pdr_iterator_dim): Remove.
13408 (pdr_parameter_dim): Remove.
13409 (same_pdr_p): Remove.
13410 (struct poly_scattering): Remove.
13411 (struct poly_bb): Remove _original, _transformed, _saved.
13412 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
13413 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
13414 (PBB_NB_LOCAL_VARIABLES): Remove.
13415 (PBB_NB_SCATTERING_TRANSFORM): Remove.
13416 (schedule_to_scattering): Remove.
13417 (number_of_write_pdrs): Remove.
13418 (pbb_dim_iter_domain): Remove.
13419 (pbb_nb_params): Remove.
13420 (pbb_nb_scattering_orig): Remove.
13421 (pbb_nb_scattering_transform): Remove.
13422 (pbb_nb_dynamic_scattering_transform): Remove.
13423 (pbb_nb_local_vars): Remove.
13424 (pbb_iterator_dim): Remove.
13425 (pbb_parameter_dim): Remove.
13426 (psco_scattering_dim): Remove.
13427 (psct_scattering_dim): Remove.
13428 (psct_local_var_dim): Remove.
13429 (psco_iterator_dim): Remove.
13430 (psct_iterator_dim): Remove.
13431 (psco_parameter_dim): Remove.
13432 (psct_parameter_dim): Remove.
13433 (psct_dynamic_dim): Remove.
13434 (psct_static_dim): Remove.
13435 (psct_add_local_variable): Remove.
13436 (new_lst_loop): Remove.
13437 (new_lst_stmt): Remove.
13438 (free_lst): Remove.
13439 (copy_lst): Remove.
13440 (lst_add_loop_under_loop): Remove.
13441 (lst_depth): Remove.
13442 (lst_dewey_number): Remove.
13443 (lst_dewey_number_at_depth): Remove.
13444 (lst_pred): Remove.
13445 (lst_succ): Remove.
13446 (lst_find_pbb): Remove.
13447 (find_lst_loop): Remove.
13448 (lst_find_first_pbb): Remove.
13449 (lst_empty_p): Remove.
13450 (lst_find_last_pbb): Remove.
13451 (lst_contains_p): Remove.
13452 (lst_contains_pbb): Remove.
13453 (lst_create_nest): Remove.
13454 (lst_remove_from_sequence): Remove.
13455 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
13456 (lst_niter_for_loop): Remove.
13457 (pbb_update_scattering): Remove.
13458 (lst_update_scattering_under): Remove.
13459 (lst_update_scattering): Remove.
13460 (lst_insert_in_sequence): Remove.
13461 (lst_replace): Remove.
13462 (lst_substitute_3): Remove.
13463 (lst_distribute_lst): Remove.
13464 (lst_remove_all_before_including_pbb): Remove.
13465 (lst_remove_all_before_excluding_pbb): Remove.
13466 (struct scop): Remove original_schedule, transformed_schedule, and
13468 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
13469 (SCOP_SAVED_SCHEDULE): Remove.
13470 (poly_scattering_new): Remove.
13471 (poly_scattering_free): Remove.
13472 (poly_scattering_copy): Remove.
13473 (store_scattering_pbb): Remove.
13474 (store_lst_schedule): Remove.
13475 (restore_lst_schedule): Remove.
13476 (store_scattering): Remove.
13477 (restore_scattering_pbb): Remove.
13478 (restore_scattering): Remove.
13479 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
13480 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
13481 compute the scattering polyhedron dimension from the dimension of
13483 (build_scop_scattering): Update call to
13484 build_pbb_scattering_polyhedrons.
13485 (build_poly_scop): Remove call to scop_to_lst.
13486 * graphite.c (graphite_transform_loops): Add call to print_scop.
13487 (gate_graphite_transforms): Remove use of flag_loop_block,
13488 flag_loop_interchange, and flag_loop_strip_mine.
13490 2015-08-27 Sebastian Pop <s.pop@samsung.com>
13492 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
13493 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
13494 -floop-nest-optimize.
13495 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
13496 (generate_luj_sepclass): Remove.
13497 (generate_luj_options): Remove.
13498 (set_options): Remove opt_luj.
13499 (scop_to_isl_ast): Remove opt_luj.
13500 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
13501 flag_loop_unroll_jam.
13502 (getPrevectorMap_full): Remove.
13503 (getScheduleForBandList): Remove map_sepcl.
13504 (getScheduleMap): Same.
13505 (apply_schedule_map_to_scop): Remove sepcl.
13506 (optimize_isl): Same.
13507 * graphite-poly.c (apply_poly_transforms): Remove check for
13508 flag_loop_unroll_jam.
13509 (new_poly_bb): Remove map_sepclass.
13510 * graphite-poly.h (struct poly_bb): Same.
13511 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
13512 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
13513 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
13514 * toplev.c (process_options): Remove flag_loop_unroll_jam.
13516 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
13519 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
13520 (addqi3_cc): Ditto.
13521 (UNSPEC_ADD_CARRY): Remove.
13522 (addqi3_cconly_overflow): New expander.
13523 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
13524 Adjust for changed add<mode>3_carry.
13525 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
13526 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
13527 (<plusminus_insn><mode>3_carry): Remove expander.
13528 (*<plusminus_insn><mode>3_carry): Split insn pattern to
13529 add<mode>3_carry and sub<mode>3_carry.
13530 (plusminus_carry_mnemonic): Remove code attribute.
13531 (add<mode>3_carry): Canonicalize insn pattern.
13532 (*addsi3_carry_zext): Ditto.
13533 (sub<mode>3_carry): Ditto.
13534 (*subsi3_carry_zext): Ditto.
13535 (adcx<mode>3): Remove insn pattern.
13536 (addcarry<mode>): New insn pattern.
13537 (subborrow<mode>): Ditto.
13538 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
13539 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
13540 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
13541 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
13542 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
13543 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
13544 Rewrite expander to not clobber carry flag chains.
13546 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
13548 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
13549 instead of a rotate.
13551 2015-08-27 Marek Polacek <polacek@redhat.com>
13553 PR middle-end/67005
13554 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
13555 an entry into an irreducible region.
13557 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13559 * configure: Regenerate.
13561 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
13563 PR tree-optimization/67283
13564 * tree-sra.c (type_consists_of_records_p): Rename to...
13565 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13567 (completely_scalarize_record): Rename to...
13568 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
13569 (scalarize_elem): New.
13571 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
13573 * tree-sra.c (completely_scalarize_var): Rename to...
13574 (create_total_scalarization_access): ... Here. Drop call to
13575 completely_scalarize_record.
13577 (analyze_all_variable_accesses): Replace completely_scalarize_var
13578 with create_total_scalarization_access and completely_scalarize_record.
13580 2015-08-27 Alan Modra <amodra@gmail.com>
13583 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
13586 2015-08-27 Richard Biener <rguenther@suse.de>
13588 * passes.c (rest_of_decl_compilation): Guard early_global_decl
13589 call with !seen_error ().
13590 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
13591 early debug generation and finish...
13592 (symbol_table::compile): ... here to put it after a !seen_error ()
13595 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13597 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
13600 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13601 Andre Vieira <andre.simoesdiasvieira@arm.com>
13603 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
13604 (*cb<optab><mode>1): Likewise.
13605 (*tb<optab><mode>1): Likewise.
13606 (*cb<optab><mode>1): Likewise.
13607 * config/aarch64/iterators.md (inv_cb): New code attribute.
13608 (inv_tb): Likewise.
13609 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
13610 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
13612 2015-08-27 Richard Biener <rguenther@suse.de>
13614 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
13616 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
13618 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
13621 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
13623 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
13626 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
13628 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
13629 floating point in VSX registers.
13630 (rs6000_output_move_128bit): Always print out the set insn if we
13631 can't generate an appropriate 128-bit move.
13632 (rs6000_generate_compare): Add support for IEEE 128-bit floating
13633 point in VSX registers comparisons.
13634 (rs6000_expand_float128_convert): Likewise.
13636 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
13637 predicate for only GPR hard registers.
13639 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
13640 modes to iterators. Add new iterators for moving 128-bit values in
13641 scalar FPR registers and VSX registers.
13642 (FMOVE128): Likewise.
13643 (FMOVE128_FPR): Likewise.
13644 (FMOVE128_GPR): Likewise.
13645 (FMOVE128_VSX): Likewise.
13646 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
13649 (IBM128): Likewise.
13650 (TFIFKF): Likewise.
13651 (RELOAD): Add IEEE 128-bit floating point modes.
13652 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
13653 floating point in VSX registers modes.
13654 (signbit<mode>2, IBM128 iterator): Likewise.
13655 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
13656 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
13657 (negtf2): Likewise.
13658 (neg<mode>2, TFIFKF iterator): Likewise.
13659 (negtf2_internal): Likewise.
13660 (abstf2): Likewise.
13661 (abs<mode>2, TFIFKF iterator): Likewise.
13662 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
13663 VSX insn support for negate, absolute value, and negative absolute
13665 (ieee_128bit_vsx_neg<mode>2): Likewise.
13666 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
13667 (ieee_128bit_vsx_abs<mode>2): Likewise.
13668 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
13669 (ieee_128bit_vsx_nabs<mode>2): Likewise.
13670 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
13671 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
13672 floating point in VSX registers.
13673 (unpack<mode>_dm): Likewise.
13674 (unpack<mode>_nodm): Likewise.
13675 (pack<mode>): Likewise.
13676 (unpackv1ti): Likewise.
13677 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
13678 (packv1ti): Likewise.
13679 (pack<mode>, FMOVE128_VSX iterator): Likewise.
13680 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
13682 (extenddftf2_internal): Likewise.
13683 (trunctfdf2): Likewise.
13684 (trunctfdf2_internal2): Likewise.
13685 (fix_trunc_helper): Likewise.
13686 (fix_trunctfdi2"): Likewise.
13687 (floatditf2): Likewise.
13688 (floatuns<mode>tf2): Likewise.
13689 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
13690 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
13691 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
13692 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
13693 (float<SDI:mode><IFKF:mode>2): Likewise.
13694 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
13696 2015-08-26 Renlin Li <renlin.li@arm.com>
13698 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
13700 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
13701 Jiong Wang <jiong.wang@arm.com>
13703 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
13704 (tlsie_tiny_<mode>): New define_insn.
13705 (tlsie_tiny_sidi): Likewise.
13706 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
13708 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
13709 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
13711 (aarch64_expand_mov_immediate): Likewise.
13712 (aarch64_print_operand): Likewise.
13713 (arch64_classify_tls_symbol): Likewise.
13715 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13717 * config/arm/arm-arches.def: Replace single value flags with
13718 an initializer built from ARM_FSET_MAKE_CPU1.
13719 * config/arm/arm-cores.def: Likewise.
13720 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
13721 derivation from the ARM_CORE macro definition, use the given value
13723 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
13724 ARM_ARCH macro definition, use the given value instead.
13726 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13728 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
13730 (struct builtin_description): Replace field mask with field
13732 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
13733 (IWMMXT2_BUILTIN): Likewise.
13734 (IWMMXT2_BUILTIN2): Likewise.
13735 (FP_BUILTIN): Likewise.
13736 (CRC32_BUILTIN): Likewise.
13737 (CRYPTO_BUILTIN): Likewise.
13738 (iwmmx_mbuiltin): Likewise.
13739 (iwmmx2_mbuiltin): Likewise.
13740 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
13741 struct builtin_description.
13743 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13745 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
13746 (struct builtin_description): Change type of mask to unsigned
13748 * config/arm/arm-protos.h (insn_flags): Declare as type
13750 (tune_flags): Likewise.
13751 * config/arm/arm.c (feature_count): New.
13752 (insn_flags): Define as type arm_feature_set.
13753 (tune_flags): Likewise.
13754 (struct processors): Define field flags as type arm_feature_set.
13755 (all_cores): Update for change to struct processors.
13756 (all_architectures): Likewise.
13757 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
13759 (arm_option_override_internal): Likewise.
13760 (arm_option_override): Likewise.
13762 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
13763 Jiong Wang <jiong.wang@arm.com>
13765 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
13766 tls size for tiny, small, large memory model.
13767 (aarch64_load_symref_appropriately): Support new symbol types.
13768 (aarch64_expand_mov_immediate): Likewise.
13769 (aarch64_print_operand): Likewise.
13770 (aarch64_classify_tls_symbol): Likewise.
13771 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
13772 (aarch64_symbol_type): Likewise.
13773 * config/aarch64/aarch64.md (tlsle): Deleted.
13774 (tlsle12_<mode>): New define_insn.
13775 (tlsle24_<mode>): Likewise.
13776 (tlsle32_<mode>): Likewise.
13777 (tlsle48_<mode>): Likewise.
13778 * doc/sourcebuild.texi (AArch64-specific attributes): Document
13781 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13783 * config/arm/arm-protos.h (FL_NONE): New.
13785 (arm_feature_set): New.
13786 (ARM_FSET_MAKE): New.
13787 (ARM_FSET_MAKE_CPU1): New.
13788 (ARM_FSET_MAKE_CPU2): New.
13789 (ARM_FSET_CPU1): New.
13790 (ARM_FSET_CPU2): New.
13791 (ARM_FSET_EMPTY): New.
13792 (ARM_FSET_ANY): New.
13793 (ARM_FSET_HAS_CPU1): New.
13794 (ARM_FSET_HAS_CPU2): New.
13795 (ARM_FSET_HAS_CPU): New.
13796 (ARM_FSET_ADD_CPU1): New.
13797 (ARM_FSET_ADD_CPU2): New.
13798 (ARM_FSET_DEL_CPU1): New.
13799 (ARM_FSET_DEL_CPU2): New.
13800 (ARM_FSET_UNION): New.
13801 (ARM_FSET_INTER): New.
13802 (ARM_FSET_XOR): New.
13803 (ARM_FSET_EXCLUDE): New.
13804 (AFM_FSET_IS_EMPTY): New.
13805 (ARM_FSET_CPU_SUBSET): New.
13807 2015-08-26 Jiong Wang <jiong.wang@arm.com>
13809 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
13810 SYMBOL_TLSLE to SYMBOL_TLSLE24.
13811 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13813 (aarch64_expand_mov_immediate): Likewise.
13814 (aarch64_print_operand): Likewise.
13815 (aarch64_classify_symbol): Likewise.
13817 2015-08-26 Jiong Wang <jiong.wang@arm.com>
13819 * config/aarch64/aarch64.opt (mtls-size): New entry.
13820 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
13821 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
13822 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
13824 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13826 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
13827 ARM_CORE entry. Fix some white-space.
13828 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
13829 ARM_CORE definition.
13831 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13833 * fold-const.c (fold_binary_loc) : Move Optimize
13834 root(x)*root(y) as root(x*y) to match.pd.
13835 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
13836 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
13837 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
13838 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
13839 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
13840 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
13841 (mult (exps:s @0) (exps:s @1)) : New simplifier.
13842 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
13843 (rdiv @0 (exps:s @1)) : New simplifier.
13845 2015-08-25 Joseph Myers <joseph@codesourcery.com>
13847 * gcc.c (driver::finalize): Only assign to extra_specs if
13850 2015-08-25 Marek Polacek <polacek@redhat.com>
13852 PR middle-end/67330
13853 * varasm.c (declare_weak): Return after giving an error.
13855 2015-08-25 David Malcolm <dmalcolm@redhat.com>
13857 * gcc-main.c (main): Add params to driver ctor.
13858 * gcc.c (class env_manager): New.
13860 (env_manager::init): New.
13861 (env_manager::get): New.
13862 (env_manager::xput): New.
13863 (env_manager::restore): New.
13864 Poison getenv and putenv.
13865 (DEFAULT_TARGET_SYSTEM_ROOT): New.
13866 (target_system_root): Update initialization to use
13867 DEFAULT_TARGET_SYSTEM_ROOT.
13868 (struct spec_list): Add field "default_ptr".
13869 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
13870 (init_spec): Likewise.
13871 (set_spec): Clear field "default_ptr".
13872 (read_specs): Free "spec" and "buffer".
13873 (xputenv): Reimplement in terms of env_manager.
13874 (process_command): Replace ::getenv calls with calls to the
13875 env_manager singleton.
13876 (process_brace_body): Free string in three places.
13877 (driver::driver): New.
13878 (driver::~driver): New.
13879 (used_arg): Convert from a function to...
13880 (class used_arg_t): ...this class, and...
13881 (used_arg): ...this new global instance.
13882 (used_arg_t::finalize): New function.
13883 (getenv_spec_function): Add "const" to local "value". Replace
13884 ::getenv call with call to the env_manager singleton.
13885 (path_prefix_reset): New function.
13886 (driver::finalize): New function.
13887 * gcc.h (driver::driver): New.
13888 (driver::~driver): New.
13889 (driver::finalize): New.
13891 2015-08-25 Nathan Sidwell <nathan@acm.org>
13893 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
13894 target doesn't have one.
13896 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
13899 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
13901 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
13904 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
13905 a define_insn, remove second alternative.
13907 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
13908 Joseph Myers <joseph@codesourcery.com>
13910 * gcc.c (struct switchstr): Expand comment.
13912 2015-08-25 Nathan Sidwell <nathan@acm.org>
13914 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
13915 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
13917 2015-08-25 Richard Biener <rguenther@suse.de>
13919 PR middle-end/67306
13920 * genmatch.c (expr::gen_transform): Verify the result of
13921 builtin_decl_implicit.
13922 (dt_simplify::gen_1): Likewise.
13924 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
13926 * config/arm/constraints.md: Also list Cs and US ARM-specific
13927 constraints as used.
13929 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
13932 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
13934 (nonpic_symbol_mentioned_p): Likewise.
13935 (sh_delegitimize_address): Likewise.
13936 (sh_function_ok_for_sibcall): Take into account weak symbols.
13937 (sh_expand_sym_label2reg): New.
13938 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
13939 * config/sh/sh.md (UNSPEC_PCREL): New enum.
13940 (call_pcrel): Use sh_expand_sym_label2reg.
13941 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
13942 (symPCREL_label2reg) New expand.
13944 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
13946 * graphite-poly.c: Change type of region from void* to sese.
13947 * graphite-poly.h (struct scop): Changing the type of scop::region
13948 from void* to sese. Change accessor macro accordingly.
13949 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
13951 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
13953 * graphite-scop-detection.c (stmt_simple_for_scop_p):
13954 Constrain only on INTEGER_TYPE.
13956 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13959 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
13960 -mefficient-unaligned-vsx on ISA 2.7.
13962 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
13963 option to a masked option.
13965 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
13966 logic for -mefficient-unaligned-vsx so that it is set via an arch
13967 ISA option, instead of being set if -mtune=power8 is set. Move
13968 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
13969 near other default option handling.
13971 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
13973 * genflags.c (gen_macro): Delete.
13974 (gen_proto): Don't create GEN.*CALL.* macros.
13975 * gensupport.h (get_file_location): Declare.
13976 * gensupport.c (rtx_locs): New variable.
13977 (read_md_rtx): Record rtx locations.
13978 (get_file_location): New function.
13979 * target-insns.def (call, call_pop, call_value, call_value_pop)
13980 (sibcall, sibcall_value): New patterns.
13981 * gentarget-def.c (parse_argument): New function.
13982 (def_target_insn): Use it. Handle optional operands. Raise an
13983 error if an .md pattern has the wrong number of operands for the
13984 pattern name. Remove the names of unused operands from the prototype.
13985 * builtins.c (expand_builtin_apply): Use targetm functions
13986 instead of HAVE_call_value and GEN_CALL_VALUE.
13987 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
13988 and sibcall_value_pop.
13989 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
13991 * config/alpha/alpha.md (untyped_call): Likewise.
13992 * config/iq2000/iq2000.md (untyped_call): Likewise.
13993 * config/m68k/m68k.md (untyped_call): Likewise.
13994 * config/mips/mips.md (untyped_call): Likewise.
13995 * config/pa/pa.md (untyped_call): Likewise.
13996 * config/rs6000/rs6000.md (untyped_call): Likewise.
13997 * config/sparc/sparc.md (untyped_call): Likewise.
13998 * config/tilegx/tilegx.md (untyped_call): Likewise.
13999 * config/tilepro/tilepro.md (untyped_call): Likewise.
14000 * config/visium/visium.md (untyped_call): Likewise.
14001 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
14002 gen_call_value instead of GEN_CALL_VALUE.
14003 * config/arm/arm.md (untyped_call): Likewise.
14004 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
14007 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14009 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
14010 (have_cbranchcc4): New variable.
14011 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
14012 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
14013 (if_convert): Initialize have_cbranchcc4.
14015 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14017 * builtins.c (expand_cmpstrn): Rename to...
14018 (expand_cmpstrn_or_cmpmem): ...this.
14019 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
14020 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
14021 Remove mode argument.
14022 (expand_builtin): Update accordingly.
14024 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14026 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
14027 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
14028 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
14029 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
14030 Add predicates for operands 0 and 3.
14031 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
14033 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
14034 immediate_operand to nonmemory_operand.
14036 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14038 * df-scan.c (df_insn_info_init_fields): New function, split out
14040 (df_insn_create_insn_record): ...here.
14041 (df_insn_info_free_fields): New function, split out from...
14042 (df_insn_info_delete): ...here.
14043 (df_insn_rescan): Use the new functions instead of freeing and
14044 reallocating the df_insn_info.
14046 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14048 * doc/install.texi (Binaries): Remove links no longer valid.
14050 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
14052 * config/nvptx/mkoffload.c (process): Replace
14053 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
14055 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
14058 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
14060 2015-08-24 Renlin Li <renlin.li@arm.com>
14062 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
14063 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
14064 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
14065 * config/arm/constraints.md ("j"): Add check for high code.
14067 2015-08-24 Tom de Vries <tom@codesourcery.com>
14069 PR tree-optimization/65468
14070 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
14073 2015-08-24 Nathan Sidwell <nathan@acm.org>
14075 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
14076 change to nvptx_type_from_mode call. Use arg_promotion for both
14077 split and non-split args.
14079 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14081 * target-insns.def (movstr): New pattern.
14082 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
14083 (expand_movstr): Use targetm rather than HAVE_movstr/
14086 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14088 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
14091 2015-08-24 Andrew Pinski <apinski@cavium.com>
14093 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
14094 AARCH64_EXTRA_TUNING_OPTION.
14095 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
14097 (aarch64_extra_tuning_flags): Base the shifted value on the index
14098 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
14099 * config/aarch64/aarch64.c: Remove the last argument to
14100 AARCH64_EXTRA_TUNING_OPTION.
14102 2015-08-23 Nathan Sidwell <nathan@acm.org>
14104 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
14106 (nvptx_declare_function_name): Insert formatting tabs for
14109 2015-08-23 Tom de Vries <tom@codesourcery.com>
14111 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
14112 parm_decl, rather than generating a dummy default def in cfun.
14113 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
14114 ssa_name from cfun and child_fn do not share a stmt as def stmt.
14115 (move_stmt_op): Handle PARM_DECl.
14116 (gather_ssa_name_hash_map_from): New function.
14117 (move_sese_region_to_fn): Add default defs for function params, and add
14118 them to vars_map. Release copied ssa names.
14119 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
14121 2015-08-23 Tom de Vries <tom@codesourcery.com>
14123 * doc/sourcebuild.texi: Rename vect_no_int_max with
14124 vect_no_int_min_max. Update description.
14126 2015-08-22 Andrew Pinski <apinski@cavium.com>
14128 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
14129 * config/aarch64/aarch64-protos.h
14130 (aarch64_fusion_pairs_index): New enum.
14131 (aarch64_fusion_pairs): Base the shifted value on the index instead
14132 Rewrite AARCH64_FUSE_ALL to be based on the end index.
14133 of the argument to AARCH64_FUSION_PAIR.
14134 * config/aarch64/aarch64.c: Remove the last argument to
14135 AARCH64_FUSION_PAIR.
14137 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
14139 * dominance.c (new_zero_array): Define.
14140 (dom_info): Redefine as class with proper encapsulation.
14141 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
14143 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
14144 allocations/deallocations. Pass function as parameter (instead of
14146 (dom_info::get_idom): Define accessor method.
14147 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
14148 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
14149 (calculate_dominance_info): Adjust to use dom_info class.
14150 (verify_dominators): Likewise.
14152 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
14154 * print-rtl.c (print_rtx): Check the correct range for
14155 flag_dump_unnumbered_links to behave as documented.
14157 PR rtl-optimization/67227
14158 PR rtl-optimization/64164
14159 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
14160 (nonoverlapping_memrefs_p): Test offsets and sizes when given
14161 identical gimple_reg exprs.
14163 2015-08-21 Nathan Sidwell <nathan@acm.org>
14165 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
14167 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
14168 crtl->stack_alignment_needed to determine alignment.
14169 (nvptx_get_drap_rtx): New.
14170 (TARGET_GET_DRAP_RTX): Override.
14171 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
14173 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14175 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
14177 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14179 * configure.ac: Remove uwin* cases.
14180 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
14181 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
14182 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
14183 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
14184 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
14185 i[34567]86-*-uwin*, powerpc-*-beos*.
14187 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
14189 * gencodes.c (gencodes): Print the comma for the preceding
14190 enum value rather than the current one. Use aliased enum values
14191 rather than #defines for compiled-out patterns.
14192 (main): Update accordingly. Replace LAST_INSN_CODE with
14194 * lra.c (insn_code_data): Update accordingly.
14195 (finish_insn_code_data_once, get_static_insn_data): Likewise.
14196 * recog.h (target_recog): Likewise.
14197 (preprocess_insn_constraints): Change parameter to unsigned int.
14198 * recog.c (preprocess_insn_constraints): Likewise.
14199 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
14200 * tree-vect-stmts.c (vectorizable_operation): Simplify.
14202 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
14204 PR rtl-optimization/61657
14205 * loop-iv.c (iv_number_of_iterations): Declare up and down as
14206 unsigned. Remove superflous uint64_t cast.
14208 2014-08-21 Felix Yang <felix.yang@huawei.com>
14209 Jiji Jiang <jiangjiji@huawei.com>
14211 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
14212 argument and get builtin function code directly from CALL.
14213 (gimple_stringop_fixed_value): Modified accordingly.
14214 (gimple_stringops_transform, gimple_stringops_values_to_profile):
14215 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
14217 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
14219 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
14221 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14223 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
14225 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
14226 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
14227 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
14228 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
14229 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
14230 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
14231 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
14232 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
14233 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
14234 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
14236 * match.pd (SIN ) : New Operator.
14237 (TAN) : New Operator.
14238 (mult (SQRT@1 @0) @1) : New simplifier.
14239 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
14240 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
14241 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
14242 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
14243 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
14244 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
14245 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
14246 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
14247 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
14248 (rdiv @0 (POW:s @1 @2)) : New simplifier.
14250 2015-08-21 Bin Cheng <bin.cheng@arm.com>
14252 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
14253 loop if EXPR is simplified to const value.
14255 2015-08-21 Yury Gribov <y.gribov@samsung.com>
14257 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
14258 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
14260 2015-08-21 Richard Biener <rguenther@suse.de>
14262 PR middle-end/67285
14263 * gimple-fold.c (replace_stmt_with_simplification): Assert
14264 seq is empty when replacing a call with itself but different
14266 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
14267 a call require that it is const.
14269 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14271 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
14272 * builtins.c (get_object_alignment_2): Adjust.
14273 * varasm.c (align_variable): Likewise.
14274 (get_variable_align): Likewise.
14275 (build_constant_desc): Likewise.
14276 (force_const_mem): Likewise.
14277 * doc/tm.texi.in: Likewise.
14278 * doc/tm.texi: Regenerate.
14280 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14282 * genconfig.c (main): Always define HAVE_cc0.
14283 * recog.c (rest_of_handle_peephole2): Adjust.
14285 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14287 * reorg.c (relax_delay_slots): Don't use #if to check value of
14290 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14292 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
14293 * targhooks.c (default_have_conditional_execution): Adjust.
14295 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
14297 * rtl.h (rtvec_all_equal_p): Declare.
14298 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
14299 * rtl.c (rtvec_all_equal_p): New function.
14300 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
14301 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
14302 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
14303 * config/arm/arm.c (neon_vdup_constant): Likewise.
14304 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
14305 * config/tilegx/constraints.md (W, Y): Likewise.
14306 * config/tilepro/constraints.md (W, Y): Likewise.
14307 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
14308 (classify_immediate): Use unwrap_const_vec_duplicate.
14309 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
14310 (reg_or_v2s8bit_operand): Likewise.
14311 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
14312 (reg_or_v4s8bit_operand): Likewise.
14314 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14316 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
14317 (vec_shasigma_be): New #define.
14318 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
14319 (VPMSUMH): Likewise.
14320 (VPMSUMW): Likewise.
14321 (VPMSUMD): Likewise.
14322 (VPMSUM): New BU_P8V_OVERLOAD_2.
14323 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
14324 entries for VEC_MADD and VEC_VPMSUM.
14326 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
14328 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
14329 Multiply argument avr_n_flash by 64 to match unit of "KiB".
14330 (avr_pgm_check_var_decl): Same.
14332 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
14334 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
14335 initialization of HFmode scalar type (float16_t) to...
14336 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
14339 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
14341 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
14342 having an -mfp16-format.
14344 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
14346 * config/i386/predicates.md (vector_all_ones_operand): Use
14347 CONSTM1_RTX to simplify definition.
14349 2015-08-20 Richard Biener <rguenther@suse.de>
14351 * toplev.c (compile_file): Remove loop calling late_global_decl
14353 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
14354 on decls we assembled.
14356 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
14358 * common/config/aarch64/aarch64-common.c
14359 (AARCH64_CPU_NAME_LENGTH): Delete.
14360 (aarch64_option_extension): New.
14361 (all_extensions): Likewise.
14362 (processor_name_to_arch): Likewise.
14363 (arch_to_arch_name): Likewise.
14365 (all_architectures): Likewise.
14366 (aarch64_get_extension_string_for_isa_flags): Likewise.
14367 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
14368 architecture names.
14369 * config/aarch64/aarch64-protos.h
14370 (aarch64_get_extension_string_for_isa_flags): New.
14371 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
14372 (aarch64_option_print): Get the string to print from
14373 aarch64_get_extension_string_for_isa_flags.
14374 (aarch64_declare_function_name): Likewise.
14375 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
14376 (MCPU_TO_MARCH_SPEC): This.
14377 (ASM_CPU_SPEC): Use it.
14378 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
14379 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
14380 (EXTRA_SPEC_FUNCTIONS): Use it.
14382 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
14384 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
14385 expansion when !ISA_HAS_LWL_LWR.
14386 (mips_block_move_straight): Update the size of elements copied to
14387 account for alignment when !ISA_HAS_LWL_LWR.
14388 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
14390 2015-08-19 Jiong Wang <jiong.wang@arm.com>
14392 * expr.c (expand_expr_real_2): Check gimple statement during
14393 LSHIFT_EXPR expand.
14395 2015-08-19 Magnus Granberg <zorry@gentoo.org>
14397 * common.opt (fstack-protector): Initialize to -1.
14398 (fstack-protector-all): Likewise.
14399 (fstack-protector-strong): Likewise.
14400 (fstack-protector-explicit): Likewise.
14401 * configure.ac: Add --enable-default-ssp.
14402 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
14403 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
14405 * doc/install.texi: Document --enable-default-ssp.
14406 * config.in: Regenerated.
14407 * configure: Likewise.
14409 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
14411 PR rtl-optimization/64164
14412 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
14413 (parm_in_stack_slot_p): ... this. Disregard mode, what
14414 matters is whether the parm will live in a pseudo or a stack
14416 (expand_one_ssa_partition): Deal with params without a default
14417 def. Disregard mode.
14418 * cfgexpand.h: Renamed function declaration.
14419 * tree-ssa-coalesce.c: Adjust.
14420 * function.c (split_complex_args): Allocate stack slot for
14421 unassigned parms before splitting.
14422 (parm_in_unassigned_mem_p): New. Use it instead of
14423 parm_maybe_byref_p throughout this file.
14424 (assign_parm_setup_block): Use it. Accept pseudos in the
14425 expand-assigned rtl.
14426 (assign_parm_setup_reg): Drop BLKmode requirement.
14427 (assign_parm_setup_stack): Allocate and fill in the address of
14428 unassigned MEM parms.
14430 2015-08-19 David Sherwood <david.sherwood@arm.com>
14432 * genmodes.c (emit_mode_unit_size_inline): New function.
14433 (emit_mode_unit_precision_inline): New function.
14434 (emit_insn_modes_h): Emit new #define. Emit new functions.
14435 (emit_mode_unit_size): New function.
14436 (emit_mode_unit_precision): New function.
14437 (emit_mode_adjustments): Add mode_unit_size adjustments.
14438 (emit_insn_modes_c): Emit new arrays.
14439 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
14440 use new inline methods.
14442 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14444 * config/aarch64/aarch64.c (bit_count): Delete prototype
14446 (aarch64_print_operand): Use popcount_hwi instead of the above.
14448 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14450 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
14453 2015-08-19 Marek Polacek <polacek@redhat.com>
14455 PR middle-end/67133
14456 * gimple-ssa-isolate-paths.c
14457 (insert_trap_and_remove_trailing_statements): Rename to ...
14458 (insert_trap): ... this. Don't remove trailing statements; split
14460 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
14462 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
14465 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
14466 conditionalize the whole on __GNUC__. Add fallback code
14467 depending neither on undefined nor implementation-defined behaviour.
14469 2015-08-19 Jiong Wang <jiong.wang@arm.com>
14471 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
14472 whitespaces with tab.
14474 2015-08-19 Florian Weimer <fweimer@redhat.com>
14476 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
14477 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
14478 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
14479 Move Name_Ids instantiation to the Prj.Proc package, to avoid
14482 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14484 * config/arm/arm.c (bounds_check): Use %wd print format
14485 for HOST_WIDE_INT arguments.
14487 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
14489 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
14490 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
14491 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
14492 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
14493 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
14494 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
14495 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
14496 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
14497 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
14500 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
14502 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
14503 function.c, graphite-scop-detection.c, haifa-sched.c,
14504 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
14505 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
14506 varasm.c: Remove typedefs of structs.
14508 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
14510 * config/rs6000/altivec.h (vec_adde): New define.
14511 (vec_addec): Likewise.
14512 (vec_double): Likewise.
14513 (vec_bperm): Likewise.
14514 (vec_gb): Likewise.
14515 * config/rs6000/rs6000-builtin.def (ADDE): New
14516 BU_ALTIVEC_OVERLOAD_3.
14518 (DOUBLE): New BU_VSX_OVERLOAD_1.
14519 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
14520 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
14521 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
14522 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
14523 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
14524 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
14525 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
14526 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
14527 and P8V_BUILTIN_VEC_VBPERMQ.
14529 2015-08-18 Jason Merrill <jason@redhat.com>
14531 * print-tree.c (print_node): Handle TREE_BINFO.
14533 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14535 PR middle-end/36757
14536 * builtins.c (expand_builtin_signbit): Add asserts to make sure
14537 we can expand BUILT_IN_SIGNBIT inline.
14538 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
14539 * doc/extend.texi: Document the type-generic __builtin_signbit.
14541 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
14543 PR rtl-optimization/67218
14544 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
14545 (simplify_unary_operation_1): Use it.
14547 2015-08-18 Marek Polacek <polacek@redhat.com>
14549 PR middle-end/67222
14550 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
14551 if the call isn't valid.
14552 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
14553 gimple_call_builtin_p.
14554 (call_may_clobber_ref_p_1): Likewise.
14555 (stmt_kills_ref_p): Likewise.
14557 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
14559 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
14560 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
14561 (mips_hard_regno_scratch_ok): Likewise.
14562 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
14563 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
14565 2015-08-18 Bin Cheng <bin.cheng@arm.com>
14567 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
14568 (determine_value_range): Call refine_value_range_using_guard for
14569 each loop initial condition to improve value range.
14571 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
14573 * config/i386/i386.c: Remove include of fibheap.h.
14575 2015-08-17 Richard Biener <rguenther@suse.de>
14577 PR tree-optimization/67221
14578 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
14579 (sccvn_dom_walker::before_dom_children): Mark backedges of
14580 non-executable blocks as not executable.
14582 2015-08-17 David Sherwood <david.sherwood@arm.com>
14584 * config/arm/arm.c (neon_element_bits): Replace call to
14585 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
14586 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
14587 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
14588 (neon_vdup_lane<mode>): Likewise.
14589 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
14590 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
14591 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
14592 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
14593 * config/spu/spu.c (arith_immediate_p): Likewise.
14594 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
14595 * expr.c (expand_expr_real_2): Likewise.
14596 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
14597 * simplify-rtx.c (simplify_immed_subreg): Likewise.
14598 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
14599 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
14601 * fold-const.c (fold_binary_loc): Replace call to
14602 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
14603 GET_MODE_UNIT_PRECISION (m).
14605 2015-08-17 Mike Stump <mikestump@comcast.net>
14607 * config/arm/arm.c (arm_block_move_unaligned_straight):
14608 Emit normal move instead of unaligned load when source or destination
14609 are appropriately aligned.
14611 2015-08-17 Richard Biener <rguenther@suse.de>
14612 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14614 PR middle-end/16107
14615 * match.pd (div (coss (op @0) : New simplifier.
14617 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
14619 PR rtl-optimization/64164
14621 PR middle-end/66983
14622 PR rtl-optimization/67000
14623 PR middle-end/67034
14624 PR middle-end/67035
14625 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14626 * tree-ssa-copyrename.c: Removed.
14627 * opts.c (default_options_table): Drop -ftree-copyrename. Add
14628 -ftree-coalesce-vars.
14629 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14630 * common.opt (ftree-copyrename): Ignore.
14631 (ftree-coalesce-inlined-vars): Likewise.
14632 * doc/invoke.texi: Remove the ignored options above.
14633 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14634 * tree-ssa-coalesce.h: ... here.
14635 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14636 headers required by it.
14637 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14638 across variables when flag_tree_coalesce_vars. Check register
14639 use and promoted modes to allow coalescing. Do not coalesce
14640 maybe-byref parms with SSA_NAMEs of other variables, or
14641 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
14642 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14643 with its member functions to tree-ssa-coalesce.c.
14644 (var_map_base_init): Likewise. Renamed to
14645 compute_samebase_partition_bases.
14646 (partition_view_normal): Drop want_bases parameter.
14647 (partition_view_bitmap): Likewise.
14648 * tree-ssa-live.h: Adjust declarations.
14649 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
14650 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14651 default defs at the entry point.
14652 (dump_part_var_map): New.
14653 (compute_optimized_partition_bases): New, called by...
14654 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14655 of compute_samebase_partition_bases. Adjust.
14656 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14657 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
14658 (ssa_default_def_partition): New.
14659 (get_rtl_for_parm_ssa_default_def): New.
14660 (align_local_variable, add_stack_var): Support anonymous SSA
14662 (defer_stack_allocation): Likewise. Declare earlier.
14663 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14664 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14665 Do no record deferred-allocation marker in
14666 SA.partition_to_pseudo.
14667 (expand_stack_vars): Adjust check for the marker in it.
14668 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
14669 redundant MEM attr setting.
14670 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
14672 (expand_one_stack_var): ... this. New wrapper to check and
14673 skip already expanded SSA partitions.
14674 (record_alignment_for_reg_var): New, factored out of...
14675 (expand_one_var): ... this.
14676 (expand_one_ssa_partition): New.
14677 (adjust_one_expanded_partition_var): New.
14678 (expand_one_register_var): Check and skip already expanded SSA
14680 (expand_used_vars): Don't create DECLs for anonymous SSA
14681 names. Expand all SSA partitions, then adjust all SSA names.
14682 (pass::execute): Replace the loops that set
14683 SA.partition_to_pseudo from partition leaders and cleared
14684 DECL_RTL for multi-location variables, and that which used to
14685 rename vars and set attrs, with one that clears DECL_RTL and
14686 checks that PARMs and RESULTs default_defs match DECL_RTL.
14687 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14688 * emit-rtl.c: Include stor-layout.h.
14689 (set_reg_attrs_for_parm): Handle NULL decl.
14690 (set_reg_attrs_for_decl_rtl): Take mode from expression if
14692 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
14693 rather than its possibly-NULL DECL.
14694 * explow.c (promote_ssa_mode): New.
14695 * explow.h (promote_ssa_mode): Declare.
14696 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14697 (read_complex_part): Export.
14698 * expr.h (read_complex_part): Declare.
14699 * cfgexpand.h (parm_maybe_byref_p): Declare.
14700 * function.c: Include cfgexpand.h.
14701 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14702 (use_register_for_parm_decl): Wrapper for the above to
14703 special-case the result_ptr.
14704 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14705 (split_complex_args): Take assign_parm_data_all argument.
14706 Pass it to rtl_for_parm. Set up rtl and context for split
14707 args. Reset complex parm before fetching its default decl
14709 (assign_parms_unsplit_complex): Use the default-def complex
14710 parm rtl if it matches the components.
14711 (assign_parms_augmented_arg_list): Adjust.
14712 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14713 multiple locations. Recognize split complex args.
14714 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14715 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
14716 (assign_parm_setup_block): Prefer SSA-assigned location, and
14717 fill in its address if the memory location of a maybe-byref
14718 parm was not assigned by cfgexpand.
14719 (assign_parm_setup_reg): Likewise. Adjust its mode as
14720 needed. Use entry_parm for equiv if stack_parm is NULL. Make
14721 sure passed_pointer parms don't need conversion. Copy address
14722 or value as needed.
14723 (assign_parm_setup_stack): Prefer SSA-assigned location.
14724 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
14725 rtl before testing for pointer bounds. Special-case result_ptr.
14726 (expand_function_start): Maybe reset DECL_RTL of result.
14727 Prefer SSA-assigned location for result and static chain.
14728 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
14729 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
14730 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14731 anonymous SSA names. Use promote_ssa_mode.
14732 (get_temp_reg): Likewise.
14733 (remove_ssa_form): Adjust.
14734 * stor-layout.c (layout_decl): Don't set mem attributes of
14736 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14737 and get its reg_usage for reg invalidation.
14738 (compute_bb_dataflow): Pass it insn.
14739 (emit_notes_in_bb): Likewise.
14741 2015-08-14 Marek Polacek <polacek@redhat.com>
14743 * tree-core.h (tree_base): Fix typo.
14745 2015-08-14 Marek Polacek <polacek@redhat.com>
14747 PR middle-end/67133
14748 * gimple.c (infer_nonnull_range_by_attribute): Check that the
14749 nonnull argument position is not outside function arguments.
14751 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
14754 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
14755 'lconst_atomic' with 'const_atomic'.
14756 (atomic_fetch_<optab><mode>): Likewise.
14757 (atomic_<optab>_fetch<mode>): Likewise.
14758 * config/aarch64/iterators.md (lconst-atomic): Move below
14760 (const_atomic): New.
14762 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
14763 Bernd Schmidt <bernds@codesourcery.com>
14765 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
14767 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
14768 (DWARF2_DEBUGGING_INFO): Don't define.
14769 * debug.h (dwarf2_lineno_debug_hooks): Declare.
14770 * toplev.c (process_options): Add a case for it.
14771 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
14772 (dwarf2out_init): Skip most initializations if
14773 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
14775 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
14776 DWARF2_LINENO_DEBUGGING_INFO.
14777 * opts.c (set_debug_level): Likewise.
14779 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
14781 * config/arm/types.md (is_neon_type): Add missing types.
14783 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
14785 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
14787 * config/i386/i386.c (PTA_SKYLAKE): New macros.
14788 (processor_alias_table): Add skylake description.
14789 (enum processor_model): Add skylake processor.
14790 (arch_names_table): Add skylake record.
14791 * doc/invoke.texi: Add skylake item.
14793 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
14795 * ira-int.h: Include recog.h.
14796 * ira-build.c: Don't include recog.h.
14797 * ira-color.c: Likewise.
14798 * ira-conflicts.c: Likewise.
14799 * ira-costs.c: Likewise.
14800 * ira-emit.c: Likewise.
14801 * ira-lives.c: Likewise.
14803 * sched-deps.c: Likewise.
14804 * sel-sched.c: Likewise.
14805 * target-globals.c: Likewise.
14807 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
14810 * reload1.c (elimination_costs_in_insn): Make it obvious to the
14811 compiler that the n_dups and n_operands loop bounds are invariant.
14813 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14815 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
14816 expressions in A and B.
14818 2015-08-13 Richard Biener <rguenther@suse.de>
14820 * tree.c (nonnull_arg_p): Move from ...
14821 * tree-vrp.c (nonnull_arg_p): ... here.
14822 * tree.h (nonnull_arg_p): Declare.
14823 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
14824 here, register ptr != 0 for nonnull_arg_p pointer arguments.
14825 Properly initialize static chain and by-reference result pointer.
14826 (run_scc_vn): Adjust.
14828 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
14830 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
14833 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
14835 * config/aarch64/aarch64-protos.h
14836 (aarch64_gen_atomic_cas): Declare.
14837 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
14838 Choose appropriate instruction pattern for the target.
14839 (aarch64_gen_atomic_cas): New.
14840 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
14841 (atomic_compare_and_swap<mode>_1): Rename to
14842 aarch64_compare_and_swap<mode>. Fix some indentation.
14843 (aarch64_compare_and_swap<mode>_lse): New.
14844 (aarch64_atomic_cas<mode>): New.
14846 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
14848 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
14851 2015-08-13 Richard Biener <rguenther@suse.de>
14853 PR tree-optimization/67191
14854 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
14855 assert we value-numbered last stmts operand because it can validly
14856 trigger for unreachable code.
14858 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14860 PR rtl-optimization/67103
14861 * ifcvt.c (noce_try_store_flag_constants): Move
14862 x = (-(test != 0) & (b - a)) + a transformation to...
14863 (noce_try_cmove): ... Here. Try it if normal conditional
14866 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
14868 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
14870 * config/mips/mips.md (processor): Remove w32 and w64.
14872 2015-08-13 Richard Biener <rguenther@suse.de>
14874 PR tree-optimization/66502
14875 PR tree-optimization/67167
14876 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
14877 backedge arguments.
14878 (vn_phi_lookup): Adjust.
14879 (vn_phi_insert): Likewise.
14880 (visit_phi): Prefer to value-number to another PHI node
14881 over value-numbering to a PHI argument.
14882 (init_scc_vn): Mark DFS back edges.
14884 2015-08-13 Richard Biener <rguenther@suse.de>
14886 * gimple.h (gcall::code_): New constant static member.
14887 (gcond::code_): Likewise.
14888 * gimple.c (gcall::code_): Define.
14889 (gcond::code_): Likewise.
14890 (is_a_helper <const gcond *>): Add.
14891 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
14892 and forward to a new gcall overload with less checking and a
14893 cheaper way to access the operand.
14894 (gimple_call_lhs_ptr): Likewise.
14895 (gimple_call_set_lhs): Likewise.
14896 (gimple_call_internal_p): Likewise.
14897 (gimple_call_with_bounds_p): Likewise.
14898 (gimple_call_set_with_bounds): Likewise.
14899 (gimple_call_internal_fn): Likewise.
14900 (gimple_call_set_ctrl_altering): Likewise.
14901 (gimple_call_ctrl_altering_p): Likewise.
14902 (gimple_call_fntype): Likewise.
14903 (gimple_call_fn): Likewise.
14904 (gimple_call_fn_ptr): Likewise.
14905 (gimple_call_set_fndecl): Likewise.
14906 (gimple_call_fndecl): Likewise.
14907 (gimple_call_chain): Likewise.
14908 (gimple_call_num_args): Likewise.
14909 (gimple_call_arg): Likewise.
14910 (gimple_call_arg_ptr): Likewise.
14911 (gimple_call_set_arg): Likewise.
14912 (gimple_call_noreturn_p): Likewise.
14913 (gimple_cond_code): Likewise.
14914 (gimple_cond_lhs): Likewise.
14915 (gimple_cond_rhs): Likewise.
14916 (gimple_has_lhs): Reduce checking.
14918 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14920 PR middle-end/25529
14921 * match.pd (div (mult @0 @1) @1) : New simplifier.
14923 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14926 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
14927 predicate to allow construction of vector constants using the
14928 VSLDOI vector shift instruction.
14930 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
14933 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
14934 the number of bytes to be shifted left and filled in with either
14935 all zero or all one bits.
14936 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
14938 (output_vec_const_move): On power8, generate XXLORC to generate
14939 a vector constant with all 1's. Do a split if we need to use a
14940 VSLDOI instruction.
14942 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
14943 properly test for the MSB.
14945 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
14946 vector constants that can be created with VSLDOI.
14948 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
14951 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
14952 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
14953 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
14954 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
14955 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
14956 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14957 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
14958 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
14959 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
14961 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
14963 * config/xtensa/constraints.md (define_constraint "Y"): New
14965 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
14966 * config/xtensa/linux.h (ASM_SPEC): Likewise.
14967 * config/xtensa/predicates.md (move_operand): Match constants
14968 and symbols in the presence of TARGET_AUTO_LITPOOLS.
14969 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
14970 immediate references to TLS data.
14971 (xtensa_emit_move_sequence): Don't force constants to memory in
14972 the presence of TARGET_AUTO_LITPOOLS.
14973 (print_operand): Add 'y' format, same as default, but capable of
14974 printing SF mode constants as well.
14975 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
14976 (movsf_internal): Add movi pattern that loads literal.
14977 (movsf, movdf): Don't force constants to memory in the presence
14978 of TARGET_AUTO_LITPOOLS.
14979 (movdf_internal): Add 'Y' constraint.
14980 * config/xtensa/xtensa.opt (mauto-litpools): New option.
14981 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
14983 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
14985 * config/arm/arm-fpus.def: Replace booleans with feature flags.
14987 * config/arm/arm.c (ARM_FPU): Update macro.
14988 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
14989 (TARGET_FP16): Likewise.
14990 (TARGET_CRYPTO): Likewise.
14991 (TARGET_NEON): Likewise.
14992 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
14995 2015-08-12 Tom de Vries <tom@codesourcery.com>
14999 * doc/install.texi: Remove --with_host_libstdcxx item. Update
15000 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
15001 accordingly. Mention default for --with-stage1-ldflags.
15003 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
15005 * config/arm/arm.h (arm_fpu_feature_set): New.
15006 (ARM_FPU_FSET_HAS): New.
15007 (FPU_FL_NONE): New.
15008 (FPU_FL_NEON): New.
15009 (FPU_FL_FP16): New.
15010 (FPU_FL_CRYPTO): New.
15012 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15014 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
15015 after -mcmodel=large -fPIC sorry.
15017 2015-08-12 Richard Biener <rguenther@suse.de>
15019 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
15020 comparison operand order and commutative ternary op operand order.
15021 (sccvn_dom_walker::cond_stack): New state to track temporary
15023 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
15025 (sccvn_dom_walker::record_cond): Add a single temporary conditional
15027 (sccvn_dom_walker::record_conds): Add a temporary conditional
15028 expressions and all related expressions also true/false.
15029 (sccvn_dom_walker::before_dom_children): Record temporary
15030 expressions based on the controlling condition of a single
15031 predecessor. When trying to simplify a conditional statement
15032 lookup expressions we might have inserted earlier.
15034 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
15037 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
15038 to ARM core registers.
15040 2015-08-12 Nathan Sidwell <nathan@acm.org>
15042 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
15043 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
15045 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
15047 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
15048 line with comments.
15049 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
15051 2015-08-12 Richard Biener <rguenther@suse.de>
15053 * gimple.h (remove_pointer): New trait.
15054 (GIMPLE_CHECK2): New inline template function.
15055 (gassign::code_): New constant static member.
15056 (is_a_helper<const gassign *>): Add.
15057 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
15058 and forward to a new gassign overload with less checking and a
15059 cheaper way to access the operand.
15060 (gimple_assign_lhs_ptr): Likewise.
15061 (gimple_assign_set_lhs): Likewise.
15062 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
15064 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
15066 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
15068 (gimple_assign_rhs_code): Likewise.
15069 * gimple.c (gassign::code_): Define.
15071 2015-08-12 Richard Biener <rguenther@suse.de>
15073 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15074 Eliminate edges marked as not executable by SCCVN.
15075 * tree-ssa-sccvn.c: Include gimple-iterator.h.
15076 (cond_dom_walker): Rename to sccvn_dom_walker.
15077 (sccvn_dom_walker::before_dom_children): Value-number defs
15079 (run_scc_vn): Remove loop value-numbering all SSA names.
15080 Drop not visited SSA names to varying.
15082 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
15084 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
15085 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
15086 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
15087 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
15088 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15089 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15090 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
15091 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
15092 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
15094 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
15097 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
15098 to enum feature_priority and feature_list.
15099 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
15100 and isa_names_table.
15102 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
15104 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
15105 vect_induction_def.
15107 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
15111 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
15112 account when deciding what was the command-line status.
15114 2015-08-11 Nathan Sidwell <nathan@acm.org>
15116 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
15118 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
15119 we're not the only contributor to target phi.
15121 2015-08-11 Jiong Wang <jiong.wang@arm.com>
15123 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
15126 2015-08-11 Tom de Vries <tom@codesourcery.com>
15128 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
15130 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
15132 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
15134 * config/i386/i386.md (cpu): Remove knl.
15136 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15139 PR middle-end/66332
15140 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
15141 open-coded sequence.
15142 * omp-low.c (oacc_process_reduction_data): Remove handline of
15143 GOMP_DEVICE_HOST_NONSHM.
15145 * lto-streamer-in.c (lto_input_mode_table): Adjust to
15146 GET_MODE_INNER changes.
15148 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15149 Ilya Verbin <ilya.verbin@intel.com>
15151 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
15153 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
15155 * doc/options.texi (EnabledBy): Document that the argument must be
15157 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
15158 Not enabled by -Wall.
15159 * optc-gen.awk: Give nicer error messages. Detect if the argument
15160 of EnabledBy is not a Common option.
15161 * common.opt (Wnull-dereference): Not enabled by -Wall.
15162 * opt-functions.awk (lang_enabled_by): Nicer error messages.
15164 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
15166 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
15167 model == 0x4f as Broadwell.
15169 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
15171 PR rtl-optimization/67028
15172 * combine.c (simplify_comparison): Fix comment. Rearrange code.
15173 Add test to see if a const_int fits in the new mode.
15175 2015-08-07 DJ Delorie <dj@redhat.com>
15177 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
15179 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
15181 PR rtl-optimization/67029
15182 * ira-color.c: Include "recog.h" before including "ira-int.h".
15183 * target-globals.c: Likewise.
15184 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
15185 adds an alternative_mask argument and use it instead of
15186 preferred_alternatives.
15187 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
15188 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
15189 * sched-deps.c: Include "ira-int.h" after including "ira.h".
15190 (sched_analyze_insn): Update call to
15191 ira_implicitly_set_insn_hard_regs.
15192 * sel-sched.c: Include "ira-int.h" after including "ira.h".
15193 (implicit_clobber_conflict_p): Update call to
15194 ira_implicitly_set_insn_hard_regs.
15196 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
15198 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
15200 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
15203 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
15204 currently_expanding_to_rtl is set.
15206 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
15208 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
15209 * configure: Regenerate.
15211 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15212 Jiong Wang <jiong.wang@arm.com>
15214 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
15215 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
15216 (REG_CLASS_NAMES): Likewise.
15217 (REG_CLASS_CONTENTS): Likewise.
15218 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
15219 (aarch64_register_move_cost): Likewise.
15220 (aarch64_load_symref_appropriately): Invoke the new added pattern if
15222 * config/aarch64/constraints.md (Uc0): New constraint.
15224 2015-08-06 Jiong Wang <jiong.wang@arm.com>
15226 * config/aarch64/constraints.md (Usf): Add the test of
15227 aarch64_is_noplt_call_p.
15229 2015-08-06 Jiong Wang <jiong.wang@arm.com>
15231 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
15233 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
15234 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
15235 (call_symbol): Likewise.
15237 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
15239 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
15240 for vectorizing multiplication patterns.
15241 * tree-vectorizer.h: Adjust the number of patterns.
15243 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
15245 * config/i386/sse.md (*vec_concatv2df): Declare added
15246 alternatives as sselog type.
15248 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15250 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
15253 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15255 * config/s390/s390.c (s390_expand_tbegin): Expand either
15256 tbegin_1_z13 or tbegin_1 depending on VX flag.
15257 * config/s390/s390.md ("tbegin_1_z13"): New expander.
15259 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15261 * config/s390/s390.opt: Clarify description for -mzvector
15262 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
15265 2015-08-06 Richard Biener <rguenther@suse.de>
15267 * gimple.h (gimple_call_set_fn): Access op member directly.
15268 (gimple_call_chain_ptr): Likewise.
15269 (gimple_call_set_chain): Likewise.
15270 (gimple_cond_lhs_ptr): Likewise.
15271 (gimple_cond_set_lhs): Likewise.
15272 (gimple_cond_rhs_ptr): Likewise.
15273 (gimple_cond_set_rhs): Likewise.
15274 (gimple_cond_true_label): Likewise.
15275 (gimple_cond_set_true_label): Likewise.
15276 (gimple_cond_set_false_label): Likewise.
15277 (gimple_cond_false_label): Likewise.
15278 (gimple_label_label): Likewise.
15279 (gimple_label_set_label): Likewise.
15280 (gimple_goto_set_dest): Likewise.
15281 (gimple_asm_input_op): Likewise.
15282 (gimple_asm_input_op_ptr): Likewise.
15283 (gimple_asm_set_input_op): Likewise.
15284 (gimple_asm_output_op): Likewise.
15285 (gimple_asm_output_op_ptr): Likewise.
15286 (gimple_asm_set_output_op): Likewise.
15287 (gimple_asm_clobber_op): Likewise.
15288 (gimple_asm_set_clobber_op): Likewise.
15289 (gimple_asm_label_op): Likewise.
15290 (gimple_asm_set_label_op): Likewise.
15291 (gimple_switch_index): Likewise.
15292 (gimple_switch_index_ptr): Likewise.
15293 (gimple_return_retval_ptr): Likewise.
15294 (gimple_return_retval): Likewise.
15295 (gimple_return_set_retval): Likewise.
15296 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
15297 (gimple_switch_label): Likewise.
15298 (gimple_switch_set_label): Likewise.
15300 2015-08-06 Richard Biener <rguenther@suse.de>
15302 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
15303 bool comparison canonicalization and restrict to integers.
15305 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
15307 * coretypes.h (enum symbol_visibility): Relocate here.
15308 * flag-types.h (enum symbol_visibility): Remove.
15309 * tree-core.h (enum symbol_visibility): Remove.
15311 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
15314 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
15315 for no_split_stack function attribute along with
15317 (rs6000_expand_split_stack_prologue): Likewise.
15319 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
15320 Jeff Law <law@redhat.com>
15323 * doc/invoke.texi (Wnull-dereference): New.
15324 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
15325 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
15326 Warn for potential NULL dereferences.
15327 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
15328 * ubsan.c (instrument_nonnull_arg): Call
15329 infer_nonnull_range_by_attribute.
15330 (instrument_nonnull_return): Likewise.
15331 * common.opt (Wnull-dereference); New.
15332 * gimple.c (infer_nonnull_range): Remove bool arguments.
15333 (infer_nonnull_range_by_dereference): New.
15334 (infer_nonnull_range_by_attribute): New.
15335 * gimple.h: Update declarations.
15337 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15339 * gensupport.c (sequence_num): Replace with...
15340 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
15341 ...these new variables.
15342 (init_rtx_reader_args_cb): Update accordingly.
15343 (get_num_code_insns): Likewise.
15344 (read_md_rtx): Rework to use a while loop and get_c_test.
15345 Use the new counters. Remove redundant DEFINE_SUBST case.
15346 * genoutput.c (gen_split): Delete.
15347 (main): Don't call it.
15349 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15351 * gensupport.h (get_c_test): Declare.
15352 * gensupport.c (get_c_test): New function.
15353 * genconditions.c (main): Use it.
15354 * genrecog.c (validate_pattern): Likewise.
15355 (match_pattern_1): Likewise. Remove c_test argument.
15356 (match_pattern): Update accordingly and remove c_test argument.
15357 (main): Update accordingly.
15359 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15361 * gensupport.h (get_num_insn_codes): Declare.
15362 * gensupport.c (get_num_insn_codes): New function.
15363 * genattrtab.c (optimize_attrs): Rename max_insn_code to
15365 (main): Likewise. Use get_num_insn_codes.
15366 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
15368 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15370 PR middle-end/66311
15371 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
15372 is zero- rather than sign-extended.
15374 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15376 * target-insns.def (can_extend): Delete.
15378 2015-08-05 Richard Biener <rguenther@suse.de>
15380 PR tree-optimization/67121
15381 * tree-if-conv.c (combine_blocks): Clear range-info produced
15382 by stmts no longer executed conditionally.
15384 2015-08-05 Nick Clifton <nickc@redhat.com>
15386 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
15387 to allow identical far pointers to remain.
15389 2015-08-05 Richard Biener <rguenther@suse.de>
15391 PR middle-end/67120
15392 * match.pd: Compare address bases with == if they are decls
15393 or SSA names, not operand_equal_p. Otherwise fail.
15395 2015-08-05 Richard Biener <rguenther@suse.de>
15397 PR tree-optimization/67055
15398 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
15401 * g++.dg/torture/pr67055.C: New testcase.
15403 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
15405 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
15407 (define_attr "enabled"): Handle avx521vl and noavx512vl.
15408 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
15409 AVX-512 alternative out of SSE.
15410 (define_insn "*vec_concatv2df"): Ditto.
15412 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
15414 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
15415 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
15416 CODE_FOR_avx_ptestv4di.
15417 * config/i386/sse.md (define_mode_iterator V_AVX): New.
15418 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
15419 (define_insn "avx_ptest256"): Merge this ...
15420 (define_insn "sse4_1_ptest"): And this ...
15421 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
15423 2015-08-05 Richard Biener <rguenther@suse.de>
15425 PR tree-optimization/67109
15426 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
15427 against too big groups. Print whether this is a load or store
15428 group. Rename from ...
15429 (vect_analyze_group_access): ... this which is now a wrapper
15430 dissolving an invalid group.
15431 (vect_analyze_data_ref_accesses): Print whether this is a load
15434 2015-08-05 Richard Biener <rguenther@suse.de>
15436 PR middle-end/67107
15437 * match.pd: Guard const_binop result checking against NULL_TREE
15440 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
15442 * cse.c (cse_insn): Restoring old behaviour for src_eqv
15443 when dest and value in the REG_EQUAL are same and dest
15444 is STRICT_LOW_PART.
15446 2015-08-04 Anatoly Sokolov <aesok@post.ru>
15448 * config/moxie/moxie.h (PRINT_OPERAND,
15449 PRINT_OPERAND_ADDRESS): Remove macros.
15450 * config/moxie/moxie-protos.h (moxie_print_operand,
15451 moxie_print_operand_address): Remove declaration.
15452 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
15453 TARGET_PRINT_OPERAND_ADDRESS): Define.
15454 (moxie_print_operand, moxie_print_operand_address): Make static.
15456 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
15459 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
15460 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
15462 2015-08-04 Richard Biener <rguenther@suse.de>
15464 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
15466 (dt_operand::gen_gimple_expr): Adjust.
15468 2015-08-04 Richard Biener <rguenther@suse.de>
15470 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
15471 bool compares on RHS.
15472 * match.pd: Add X ==/!= !X is false/true pattern.
15474 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
15476 * config/aarch64/aarch64.c: Change inner loop statement cost
15477 to be consistent with other targets.
15479 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
15481 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
15484 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
15486 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
15487 (machine_function): Remove pseudos field.
15489 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15491 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
15492 Exit early and use target_option_current_node if processing current
15495 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15497 * doc/extend.texi (AArch64 Function Attributes): New node.
15498 (AArch64 Pragmas): Likewise.
15500 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15502 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
15503 Initialize simd builtins if TARGET_SIMD.
15504 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
15505 Make sure that the builtins are initialized only once no matter how
15506 many times the function is called.
15507 (aarch64_init_builtins): Unconditionally initialize crc builtins.
15508 (aarch64_relayout_simd_param): New function.
15509 (aarch64_simd_expand_args): Use above during argument expansion.
15510 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
15511 simd builtins if TARGET_SIMD.
15512 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
15514 (aarch64_relayout_simd_types): Likewise.
15516 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15518 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
15519 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
15520 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
15521 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
15523 (aarch64_reset_previous_fndecl): New function.
15524 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
15526 * config/aarch64/aarch64-c.c: New file.
15527 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
15528 Push and pop options at beginning and end. Remove ifdef
15529 __ARM_FEATURE_CRC32.
15530 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
15531 Add pragma +nothing+simd and +nothing+crypto where appropriate.
15532 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
15533 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
15535 (aarch64_register_pragmas): Likewise.
15536 (aarch64_reset_previous_fndecl): Likewise.
15537 (aarch64_process_target_attr): Likewise.
15538 (aarch64_override_options_internal): Likewise.
15540 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15542 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
15544 (aarch64_can_inline_p): Likewise.
15545 (TARGET_CAN_INLINE_P): Define.
15547 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15549 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
15550 Remove static. Handle OPT_mgeneral_regs_only,
15551 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
15552 OPT_momit_leaf_frame_pointer.
15553 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
15554 (aarch64_attr_opt_type): New enum.
15555 (aarch64_attribute_info): New struct.
15556 (aarch64_handle_attr_arch): New function.
15557 (aarch64_handle_attr_cpu): Likewise.
15558 (aarch64_handle_attr_tune): Likewise.
15559 (aarch64_handle_attr_isa_flags): Likewise.
15560 (aarch64_attributes): New table.
15561 (aarch64_process_one_target_attr): New function.
15562 (num_occurences_in_str): Likewise.
15563 (aarch64_process_target_attr): Likewise.
15564 (aarch64_option_valid_attribute_p): Likewise.
15565 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
15566 * config/aarch64/aarch64-protos.h: Include input.h
15567 (aarch64_handle_option): Declare prototype.
15569 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15571 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
15572 * config/aarch64/aarch64.c: Include target-globals.h
15573 (aarch64_previous_fndecl): New variable.
15574 (aarch64_set_current_function): New function.
15575 (TARGET_SET_CURRENT_FUNCTION): Define.
15577 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15579 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
15580 (explicit_arch): Likewise.
15581 (x_aarch64_isa_flags): Likewise.
15582 (mgeneral-regs-only): Mark as Save.
15583 (mfix-cortex-a53-835769): Likewise.
15584 (mcmodel=): Likewise.
15585 (mstrict-align): Likewise.
15586 (momit-leaf-frame-pointer): Likewise.
15587 (mtls-dialect): Likewise.
15588 (master=): Likewise.
15589 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
15590 (aarch64_isa_flags): Remove extern declaration.
15591 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
15592 to indicate success or failure.
15593 (aarch64_validate_march): Likewise.
15594 (aarch64_validate_mtune): Likewise.
15595 (aarch64_isa_flags): Delete.
15596 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
15597 instead of aarch64_isa_flags.
15598 (aarch64_get_tune_cpu): New function.
15599 (aarch64_get_arch): Likewise.
15600 (aarch64_override_options): Use above and set up explicit_tune_core
15602 (aarch64_print_extension): Move earlier in file. Add isa_flags
15603 argument and use that instead of the global aarch64_isa_flags.
15604 (aarch64_option_save): New function.
15605 (aarch64_option_restore): Likewise.
15606 (aarch64_option_print): Likewise.
15607 (aarch64_declare_function_name): Likewise.
15608 (aarch64_start_file): Delete.
15609 (TARGET_ASM_FILE_START): Do not define.
15610 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
15611 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
15614 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15616 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
15617 flag_omit_leaf_frame_pointer to 2.
15619 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15621 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
15623 (TARGET_FIX_ERR_A53_835769): New macro.
15624 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
15625 handling of opts->x_aarch64_fix_a53_err835769.
15626 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
15627 than aarch64_fix_a53_err835769.
15628 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
15629 * config/aarch64/aarch64-linux.h: Likewise.
15631 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
15633 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
15634 ix86_expand_int_movcc as boolean.
15636 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15638 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
15639 (aarch64_cpu_string): Likewise.
15640 (aarch64_tune_string): Likewise.
15641 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
15642 (aarch64_parse_extension): Return aarch64_parse_opt_result.
15643 Add extra argument to put result into.
15644 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
15645 (aarch64_parse_cpu): Add arguments to put results into. Return
15646 aarch64_parse_opt_result.
15647 (aarch64_parse_tune): Likewise.
15648 (aarch64_override_options_after_change_1): New function.
15649 (aarch64_override_options_internal): New function.
15650 (aarch64_validate_mcpu): Likewise.
15651 (aarch64_validate_march): Likewise.
15652 (aarch64_validate_mtune): Likewise.
15653 (aarch64_override_options): Update to reflect above changes.
15654 Move some logic into aarch64_override_options_internal.
15655 Initialize target_option_default_node and target_option_current_node.
15656 (aarch64_override_options_after_change): Move logic into
15657 aarch64_override_options_after_change_1 and call it with global_options.
15658 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
15659 flag values from that.
15661 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15663 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15664 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
15665 * config/aarch64/aarch64.c (struct processor): Add arch field.
15666 (all_architectures): Handle above, move above all_cores.
15667 (all_cores): Handle above.
15668 (aarch64_parse_arch): Handle above changes.
15669 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
15670 above. Update comments.
15671 (armv8.1-a): Likewise.
15672 * config/aarch64/aarch64-cores.def: Update according to above.
15673 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
15674 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
15675 aarch64_arch_driver_info.
15677 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15679 * config/aarch64/aarch64.c (struct processor): Add ident field.
15680 Rename core sched_core.
15681 (all_cores): Handle above changes.
15682 (all_architectures): Likewise.
15683 (aarch64_parse_arch): Likewise.
15684 (aarch64_override_options): Likewise.
15686 2015-08-04 Richard Biener <rguenther@suse.de>
15688 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
15689 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
15690 comparisons embedded in [VEC_]COND_EXPRs.
15692 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
15694 * tree-if-conv.c: Fix various typos in comments.
15695 * tree-vect-stmts.c: Likewise.
15697 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
15699 PR tree-optimization/67043
15700 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
15701 preheader after hoisting invariant in it.
15702 (find_defs): Force recomputation of all luids.
15704 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
15706 * config/rs6000/htm.md (tabort.): Restrict the source operand to
15707 using a base register.
15709 2015-08-03 David Malcolm <dmalcolm@redhat.com>
15711 * main.c (main): Pass in NULL for toplev's external_timer.
15712 * timevar.c: Include coretypes.h.
15713 (class timer::named_items): New.
15714 (timer::named_items::named_items): New.
15715 (timer::named_items::~named_items): New.
15716 (timer::named_items::push): New.
15717 (timer::named_items::pop): New.
15718 (timer::named_items::print): New.
15719 (timer::timer): Initialize field "m_jit_client_items".
15720 (timer::~timer): New.
15721 (timer::push): Move bulk of implementation to...
15722 (timer::push_internal): ...here. New function.
15723 (timer::pop): Move bulk of implementation to...
15724 (timer::pop_internal): ...here. New function.
15725 (timer::push_client_item): New.
15726 (timer::pop_client_item): New.
15727 (timer::print_row): New function, taken from timer::print.
15728 (timer::print): Print "GCC items" header if we also have client
15729 items. Move row-printing to timer::print_row. Print any client
15731 (timer::get_topmost_item_name): New method.
15732 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
15733 (TV_JIT_CLIENT_CODE): New.
15734 * timevar.h (timer::push_client_item): New declaration.
15735 (timer::pop_client_item): New declaration.
15736 (timer::get_topmost_item_name): New method.
15737 (timer::push_internal): New declaration.
15738 (timer::pop_internal): New declaration.
15739 (timer::print_row): New declaration.
15740 (timer::named_items): New declaration.
15741 (timer::m_jit_client_items): New field.
15742 (timer): Add friend class named_items.
15743 (auto_timevar::auto_timevar): Add timer param.
15744 (auto_timevar::~auto_timevar): Use field "m_timer".
15745 (auto_timevar::m_timer): New field.
15746 * toplev.c (initialize_rtl): Add g_timer as param when
15747 constructing auto_timevar instance.
15748 (toplev::toplev): Add "external_timer" param, and use it to
15749 initialize the "g_timer" global if non-NULL.
15750 (toplev::~toplev): If this created "g_timer", delete it.
15751 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
15752 with "external_timer" timer *.
15754 2015-08-03 Alexander Basov <coohpt@gmail.com>
15756 PR middle-end/64744
15757 PR middle-end/48470
15758 PR middle-end/43404
15759 * cfgexpand.c (expand_one_var): Add check if stack is going to
15760 be used in naked function.
15761 * expr.c (expand_expr_addr_expr_1): Remove excess checking
15762 whether expression should not reside in MEM.
15763 * function.c (use_register_for_decl): Do not use registers for
15764 non-register things (volatile, float, BLKMode) in naked functions.
15766 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
15769 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
15770 Adjust splits to match new pattern.
15772 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15774 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
15777 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
15778 point in VSX registers.
15780 * config/rs6000/constraints.md (wb constraint): Document unused
15782 (we constraint): Likewise.
15783 (wo constraint): Likewise.
15784 (wp constraint): New constraint for IEEE 128-bit floating point in
15786 (wq constraint): Likewise.
15788 * config/rs6000/predicates.md (easy_fp_constant): Add support for
15789 IEEE 128-bit floating point in VSX registers.
15790 (easy_scalar_constant): Likewise.
15792 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
15793 constraints (wp, wq) for IEEE 128-bit floating point in VSX
15795 (rs6000_init_hard_regno_mode_ok): Likewise.
15797 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
15798 floating point in VSX registers.
15801 (VSX_M2): Likewise.
15807 (vsx_le_permute_<mode>): Add support to properly swap bytes for
15808 IEEE 128-bit floating point in VSX registers on little endian.
15809 (vsx_le_undo_permute_<mode>): Likewise.
15810 (vsx_le_perm_load_<mode>): Likewise.
15811 (vsx_le_perm_store_<mode>): Likewise.
15812 (splitters for IEEE 128-bit fp moves): Likewise.
15814 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
15817 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
15818 floating point in VSX registers.
15821 * doc/md.text (Machine Constraints): Document wp and wq
15822 constraints on PowerPC.
15824 2015-08-03 Jeff Law <law@redhat.com>
15826 PR middle-end/66314
15827 PR gcov-profile/66899
15828 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
15829 iterate over the jump threading paths when an element in the
15830 jump threading paths array is eliminated.
15832 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
15834 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
15836 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
15838 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
15839 is_use_properly_guarded the variable def_preds. Free its
15840 contents before returning.
15841 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
15842 (is_use_properly_guarded): Replace local variable def_preds with
15843 a parameter. Adjust accordingly. Only update *def_preds if it's
15846 2015-08-03 Richard Biener <rguenther@suse.de>
15848 * genmatch.c (simplify::for_subst_vec): New member.
15849 (binary_ok): New helper for for lowering.
15850 (lower_for): Delay substituting operators into result expressions
15851 if we can merge the results eventually again.
15852 (capture_info::walk_result): Adjust for user_id appearing as
15853 result expression operator.
15854 (expr::gen_transform): Likewise.
15855 (dt_simplify::gen_1): Likewise.
15856 (dt_simplify::gen): Pass not substituted operators to tail
15857 functions or initialize local variable with it.
15858 (decision_tree::gen): Adjust function signature.
15859 * match.pd: Fix tests against global code and add default
15860 cases to switch stmts.
15862 2015-08-03 Richard Biener <rguenther@suse.de>
15864 * genmatch.c (dt_simplify::gen): Create captures array
15865 with an initializer.
15867 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15869 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
15870 the host compiler is affected by placement new aliasing bug.
15871 * configure: Regenerate.
15872 * Makefile.in (ALIASING_FLAGS): New variable.
15873 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
15875 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
15878 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
15879 (negmulsf3_vfp): Likewise.
15880 (muldf3negdf_vfp): Disable for -frounding-math.
15881 (mulsf3negsf_vfp): Likewise.
15882 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
15883 fix MULT cost with -frounding-math.
15885 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15887 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
15888 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
15889 explicit. Prefer to add the flag whenever possible.
15890 (noce_process_if_block): Try noce_try_store_flag_constants before
15893 2015-08-03 Richard Biener <rguenther@suse.de>
15895 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
15896 New hash-map to record equivalent transforms.
15897 (dt_node::analyze): Populate the equivalent transforms hash-map.
15898 (dt_simplify::info): Add reference to hash-map entry.
15899 (dt_simplify::gen): If we have split out a function for the
15900 transform, generate a call to it.
15901 (sinfo_hashmap_traits::hash): New function.
15902 (compare_op): New helper function for ...
15903 (sinfo_hashmap_traits::equal_keys): ... this new function.
15904 (decision_tree::gen): Split out common equivalent transforms
15907 2015-08-03 Richard Biener <rguenther@suse.de>
15909 * gimple-fold.c (fold_gimple_assign): Remove folding of
15910 the comparison in COND_EXPRs.
15912 2015-08-03 Richard Biener <rguenther@suse.de>
15914 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
15915 on the rhs of assignments first simplify the embedded
15918 2015-08-03 Richard Biener <rguenther@suse.de>
15920 PR tree-optimization/66917
15921 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
15923 (DR_VECT_AUX): New macro.
15924 (set_dr_misalignment): Adjust.
15925 (dr_misalignment): Likewise.
15926 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15927 Compute whether the base is at least element aligned.
15928 * tree-vect-stmts.c (ensure_base_align): Adjust.
15929 (vectorizable_store): If the base is not element aligned
15930 preserve alignment of the original access if misalignment is unknown.
15931 (vectorizable_load): Likewise.
15933 2015-08-02 Martin Sebor <msebor@redhat.com>
15935 * c-family/c.opt (-Wframe-address): New warning option.
15936 * doc/invoke.texi (Wframe-address): Document it.
15937 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
15938 Clarify possible effects of calling the functions with non-zero
15939 arguments and mention -Wframe-address.
15940 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
15942 2015-08-01 Michael Collison <michael.collison@linaro.org
15943 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15945 * config/arm/arm.md (*arm_smin_cmp): New pattern.
15946 (*arm_umin_cmp): Likewise.
15948 2015-08-01 Caroline Tice <cmtice@google.com>
15951 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
15953 (vtbl_find_mangled_name): New function.
15954 (vtbl_register_mangled_name): New function.
15955 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
15956 mangled name in mangled name vectors.
15957 (find_or_create_vtbl_map_node): Ditto.
15958 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
15959 update recursion_depth on function entry; pass it to every recursive
15960 call; automatically exit if depth > 25 (give up looking at that point).
15961 (verify_bb_vtables): Initialize recursion_depth and pass it to
15962 var_is_used_for_virtual_call_p.
15963 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
15964 global variable decls.
15965 (vtbl_register_mangled_name): New extern function decl.
15967 2015-08-01 Tom de Vries <tom@codesourcery.com>
15969 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
15971 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
15973 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
15974 operation_no_trapping_overflow. Allow non-overflow operations.
15975 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
15978 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
15981 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
15983 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15985 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
15986 Enable for TARGET_32BIT.
15987 (*if_move_neg): Likewise.
15989 2015-07-31 Nick Clifton <nickc@redhat.com>
15991 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
15992 Returns true for __model__.
15993 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15995 2015-07-31 Alan Modra <amodra@gmail.com>
15998 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
15999 (rs6000_emit_prologue): Set it.
16000 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
16002 2015-07-31 Richard Biener <rguenther@suse.de>
16004 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
16005 -> X == (C1 ^ C2) which is already implemented in match.pd.
16006 Remove redundant dispatching to fold_relational_const.
16007 Move unordered self and NaN compares ...
16008 * match.pd: ... as patterns here. Remove some stray captures
16011 2015-07-31 Petr Murzin <petr.murzin@intel.com>
16013 * config/i386/i386.c
16014 (bdesc_special_args): Convert mask type from signed to unsigned for
16016 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
16017 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
16018 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
16019 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
16020 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
16021 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
16022 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
16023 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
16024 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
16025 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
16026 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
16027 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
16028 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
16029 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
16030 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
16031 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
16032 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
16033 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
16034 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
16035 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
16036 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
16037 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
16038 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
16039 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
16040 * config/i386/i386-builtin-types.def
16041 (V16QI_FTYPE_V16SI): Remove.
16042 (V8DF_FTYPE_V8SI): Ditto.
16043 (V8HI_FTYPE_V8DI): Ditto.
16044 (V8SI_FTYPE_V8DI): Ditto.
16045 (V8SF_FTYPE_V8DF): Ditto.
16046 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
16047 (V16HI_FTYPE_V16SI): Ditto.
16048 (V16SF_FTYPE_V16HI): Ditto.
16049 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
16050 (V16SF_FTYPE_V16SI): Ditto.
16051 (V4DI_FTYPE_V4DI): Ditto.
16052 (V16SI_FTYPE_V16SF): Ditto.
16053 (V16SF_FTYPE_FLOAT): Ditto.
16054 (V8DF_FTYPE_DOUBLE): Ditto.
16055 (V8DI_FTYPE_INT64): Ditto.
16056 (V8DI_FTYPE_V4DI): Ditto.
16057 (V16QI_FTYPE_V8DI): Ditto.
16058 (UINT_FTYPE_V4SF): Ditto.
16059 (UINT64_FTYPE_V4SF): Ditto.
16060 (UINT_FTYPE_V2DF): Ditto.
16061 (UINT64_FTYPE_V2DF): Ditto.
16062 (V16SI_FTYPE_V16SI): Ditto.
16063 (V8DI_FTYPE_V8DI): Ditto.
16064 (V16SI_FTYPE_PV4SI): Ditto.
16065 (V16SF_FTYPE_PV4SF): Ditto.
16066 (V8DI_FTYPE_PV2DI): Ditto.
16067 (V8DF_FTYPE_PV2DF): Ditto.
16068 (V4DI_FTYPE_PV2DI): Ditto.
16069 (V4DF_FTYPE_PV2DF): Ditto.
16070 (V16SI_FTYPE_PV2SI): Ditto.
16071 (V16SF_FTYPE_PV2SF): Ditto.
16072 (V8DI_FTYPE_PV4DI): Ditto.
16073 (V8DF_FTYPE_PV4DF): Ditto.
16074 (V8SF_FTYPE_FLOAT): Ditto.
16075 (V4SF_FTYPE_FLOAT): Ditto.
16076 (V4DF_FTYPE_DOUBLE): Ditto.
16077 (V8SF_FTYPE_PV4SF): Ditto.
16078 (V8SI_FTYPE_PV4SI): Ditto.
16079 (V4SI_FTYPE_PV2SI): Ditto.
16080 (V8SF_FTYPE_PV2SF): Ditto.
16081 (V8SI_FTYPE_PV2SI): Ditto.
16082 (V16SF_FTYPE_PV8SF): Ditto.
16083 (V16SI_FTYPE_PV8SI): Ditto.
16084 (V8DI_FTYPE_V8SF): Ditto.
16085 (V4DI_FTYPE_V4SF): Ditto.
16086 (V2DI_FTYPE_V4SF): Ditto.
16087 (V64QI_FTYPE_QI): Ditto.
16088 (V32HI_FTYPE_HI): Ditto.
16089 (V8UHI_FTYPE_V8UHI): Ditto.
16090 (V16UHI_FTYPE_V16UHI): Ditto.
16091 (V32UHI_FTYPE_V32UHI): Ditto.
16092 (V2UDI_FTYPE_V2UDI): Ditto.
16093 (V4UDI_FTYPE_V4UDI): Ditto.
16094 (V8UDI_FTYPE_V8UDI): Ditto.
16095 (V4USI_FTYPE_V4USI): Ditto.
16096 (V8USI_FTYPE_V8USI): Ditto.
16097 (V16USI_FTYPE_V16USI): Ditto.
16098 (V2DF_FTYPE_V2DF_UINT64): Ditto.
16099 (V2DI_FTYPE_V2DF_V2DF): Ditto.
16100 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
16101 (V8DF_FTYPE_V8DF_V8DI): Ditto.
16102 (V4SF_FTYPE_V4SF_UINT64): Ditto.
16103 (V4SI_FTYPE_V4SF_V4SF): Ditto.
16104 (V16SF_FTYPE_V16SF_V16SI): Ditto.
16105 (V64QI_FTYPE_V32HI_V32HI): Ditto.
16106 (V32HI_FTYPE_V16SI_V16SI): Ditto.
16107 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
16108 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
16109 (V32HI_FTYPE_V64QI_V64QI): Ditto.
16110 (V32HI_FTYPE_V32HI_V32HI): Ditto.
16111 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
16112 (V16SI_FTYPE_V16SI_V4SI): Ditto.
16113 (V16SI_FTYPE_V16SI_V16SI): Ditto.
16114 (V16SI_FTYPE_V32HI_V32HI): Ditto.
16115 (V16SI_FTYPE_V16SI_SI): Ditto.
16116 (V8DI_FTYPE_V8DI_V8DI): Ditto.
16117 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
16118 (V8DI_FTYPE_V16SI_V16SI): Ditto.
16119 (V8DI_FTYPE_V8DI_V2DI): Ditto.
16120 (QI_FTYPE_QI): Ditto.
16121 (SI_FTYPE_SI): Ditto.
16122 (DI_FTYPE_DI): Ditto.
16123 (QI_FTYPE_QI_QI): Ditto.
16124 (QI_FTYPE_QI_INT): Ditto.
16125 (HI_FTYPE_HI_INT): Ditto.
16126 (SI_FTYPE_SI_INT): Ditto.
16127 (DI_FTYPE_DI_INT): Ditto.
16128 (HI_FTYPE_V16QI_V16QI): Ditto.
16129 (SI_FTYPE_V32QI_V32QI): Ditto.
16130 (DI_FTYPE_V64QI_V64QI): Ditto.
16131 (QI_FTYPE_V8HI_V8HI): Ditto.
16132 (HI_FTYPE_V16HI_V16HI): Ditto.
16133 (SI_FTYPE_V32HI_V32HI): Ditto.
16134 (QI_FTYPE_V4SI_V4SI): Ditto.
16135 (QI_FTYPE_V8SI_V8SI): Ditto.
16136 (QI_FTYPE_V2DI_V2DI): Ditto.
16137 (QI_FTYPE_V4DI_V4DI): Ditto.
16138 (QI_FTYPE_V8DI_V8DI): Ditto.
16139 (HI_FTYPE_V16SI_V16SI): Ditto.
16140 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
16141 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
16142 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
16143 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
16144 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
16145 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
16146 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
16147 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
16148 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
16149 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
16150 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
16151 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
16152 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
16153 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
16154 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
16155 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
16156 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
16157 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
16158 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
16159 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
16160 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
16161 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
16162 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
16163 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
16164 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
16165 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
16166 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
16167 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
16168 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
16169 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
16170 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
16171 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
16172 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
16173 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
16174 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
16175 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
16176 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
16177 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
16178 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
16179 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
16180 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
16181 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
16182 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
16183 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
16184 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
16185 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
16186 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
16187 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
16188 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
16189 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
16190 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
16191 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
16192 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
16193 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
16194 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
16195 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
16196 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
16197 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
16198 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
16199 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
16200 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
16201 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
16202 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
16203 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
16204 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
16205 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
16206 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
16207 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
16208 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
16209 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
16210 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
16211 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
16212 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
16213 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
16214 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
16215 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
16216 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
16217 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
16218 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
16219 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
16220 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
16221 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
16222 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
16223 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
16224 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
16225 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
16226 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
16227 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
16228 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
16229 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
16230 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
16231 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
16232 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
16233 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
16234 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
16235 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
16236 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
16237 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
16238 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
16239 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
16240 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
16241 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
16242 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
16243 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
16244 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
16245 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
16246 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
16247 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
16248 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
16249 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
16250 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
16251 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
16252 (HI_FTYPE_HI): Ditto.
16253 (HI_FTYPE_V16QI): Ditto.
16254 (SI_FTYPE_V32QI): Ditto.
16255 (DI_FTYPE_V64QI): Ditto.
16256 (QI_FTYPE_V8HI): Ditto.
16257 (HI_FTYPE_V16HI): Ditto.
16258 (SI_FTYPE_V32HI): Ditto.
16259 (QI_FTYPE_V4SI): Ditto.
16260 (QI_FTYPE_V8SI): Ditto.
16261 (HI_FTYPE_V16SI): Ditto.
16262 (QI_FTYPE_V2DI): Ditto.
16263 (QI_FTYPE_V4DI): Ditto.
16264 (QI_FTYPE_V8DI): Ditto.
16265 (V16QI_FTYPE_HI): Ditto.
16266 (V32QI_FTYPE_SI): Ditto.
16267 (V64QI_FTYPE_DI): Ditto.
16268 (V8HI_FTYPE_QI): Ditto.
16269 (V16HI_FTYPE_HI): Ditto.
16270 (V32HI_FTYPE_SI): Ditto.
16271 (V4SI_FTYPE_QI): Ditto.
16272 (V4SI_FTYPE_HI): Ditto.
16273 (V8SI_FTYPE_QI): Ditto.
16274 (V8SI_FTYPE_HI): Ditto.
16275 (V2DI_FTYPE_QI): Ditto.
16276 (V4DI_FTYPE_QI): Ditto.
16277 (HI_FTYPE_HI_HI): Ditto.
16278 (SI_FTYPE_SI_SI): Ditto.
16279 (DI_FTYPE_DI_DI): Ditto.
16280 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
16281 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
16282 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
16283 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
16284 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
16285 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
16286 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
16287 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
16288 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
16289 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
16290 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
16291 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
16292 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
16293 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
16294 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
16295 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
16296 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
16297 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
16298 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
16299 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
16300 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
16301 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
16302 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
16303 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
16304 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
16305 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
16306 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
16307 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
16308 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
16309 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
16310 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
16311 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
16312 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
16313 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
16314 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
16315 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
16316 (V16SI_FTYPE_HI): Ditto.
16317 (V8DI_FTYPE_QI): Ditto.
16318 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
16319 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
16320 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
16321 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
16322 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
16323 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
16324 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
16325 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
16326 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
16327 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
16328 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
16329 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
16330 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
16331 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
16332 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
16333 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
16334 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
16335 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
16336 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
16337 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
16338 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
16339 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
16340 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
16341 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
16342 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
16343 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
16344 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
16345 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
16346 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
16347 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
16348 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
16349 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
16350 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
16351 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
16352 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
16353 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
16354 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
16355 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
16356 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
16357 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
16358 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
16359 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
16360 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
16361 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
16362 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
16363 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
16364 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
16365 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
16366 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
16367 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
16368 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
16369 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
16370 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
16371 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
16372 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
16373 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
16374 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
16375 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
16376 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
16377 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
16378 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
16379 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
16380 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
16381 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
16382 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
16383 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
16384 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
16385 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
16386 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
16387 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
16388 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
16389 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
16390 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
16391 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
16392 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
16393 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
16394 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
16395 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
16396 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
16397 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
16398 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
16399 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
16400 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
16401 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
16402 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
16403 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
16404 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
16405 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
16406 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
16407 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
16408 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
16409 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
16410 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
16411 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
16412 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
16413 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
16414 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
16415 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
16416 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
16417 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
16418 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
16419 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
16420 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
16421 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
16422 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
16423 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
16424 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
16425 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
16426 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
16427 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
16428 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
16429 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
16430 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
16431 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
16432 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
16433 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
16434 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
16435 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
16436 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
16437 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
16438 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
16439 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
16440 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
16441 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
16442 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
16443 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
16444 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
16445 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
16446 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
16447 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
16448 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
16449 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
16450 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
16451 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
16452 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
16453 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
16454 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
16455 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
16456 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
16457 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
16458 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
16459 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
16460 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
16461 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
16462 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
16463 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
16464 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
16465 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
16466 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
16467 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
16468 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
16469 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
16470 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
16471 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
16472 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
16473 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
16474 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
16475 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
16476 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
16477 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
16478 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
16479 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
16480 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
16481 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
16482 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
16483 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
16484 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
16485 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
16486 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
16487 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
16488 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
16489 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
16490 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
16491 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
16492 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
16493 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
16494 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
16495 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
16496 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
16497 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
16498 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
16499 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
16500 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
16501 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
16502 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
16503 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
16504 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
16505 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
16506 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
16507 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
16508 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
16509 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
16510 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
16511 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
16512 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
16513 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
16514 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
16515 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
16516 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
16517 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
16518 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
16519 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
16520 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
16521 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
16522 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
16523 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
16524 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
16525 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
16526 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
16527 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
16528 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
16529 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
16530 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
16531 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
16532 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
16533 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
16534 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
16535 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
16536 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
16537 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
16538 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
16539 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
16540 (QI_FTYPE_V8DF_INT_QI): Ditto.
16541 (QI_FTYPE_V4DF_INT_QI): Ditto.
16542 (QI_FTYPE_V2DF_INT_QI): Ditto.
16543 (HI_FTYPE_V16SF_INT_HI): Ditto.
16544 (QI_FTYPE_V8SF_INT_QI): Ditto.
16545 (QI_FTYPE_V4SF_INT_QI): Ditto.
16546 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
16548 2015-07-31 Richard Biener <rguenther@suse.de>
16550 * gimple-fold.c (fold_gimple_assign): Remove folding of
16553 2015-07-31 Tom de Vries <tom@codesourcery.com>
16555 PR tree-optimization/66846
16556 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
16557 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
16558 (expand_omp_target) [ENABLE_CHECKING]: Same.
16559 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
16560 cfun if !LOOPS_NEED_FIXUP.
16561 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
16562 that omp_for already has its own loop struct.
16563 * tree-parloops.c (create_phi_for_local_result)
16564 (create_call_for_reduction): Handle simple latch bb.
16565 (create_parallel_loop): Add simple latch bb to preserve
16566 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
16567 (gen_parallel_loop): Remove call to cancel_loop_tree.
16568 (parallelize_loops): Skip loops that are inner loops of parallelized
16570 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
16571 verify_loop_structure.
16573 2015-07-30 Anatoly Sokolov <aesok@post.ru>
16575 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
16576 * config/v850/v850.md (RV_REGNUM): New constants.
16577 * config/v850/v850.c (v850_libcall_value): New functions.
16578 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
16579 (TARGET_LIBCALL_VALUE): Define.
16581 2015-07-30 Anatoly Sokolov <aesok@post.ru>
16583 * rtl.h (lowpart_subreg): Move in file.
16584 * loop-iv.c (lowpart_subreg): Move to...
16585 * simplify-rtx.c (lowpart_subreg): ...here.
16586 (simplify_binary_operation_1): Use lowpart_subreg instead of
16587 simplify_gen_subreg.
16588 * expr.c (expand_expr_real_2): Ditto.
16589 * emit-rtl.c (gen_lowpart_common): Ditto.
16590 * combine.c (gen_lowpart_for_combine): Ditto.
16591 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
16592 expand_debug_source_expr): Ditto.
16594 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
16596 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
16597 (expand_builtin_atomic_clear): Remove support for atomic_clear
16600 2015-07-30 Richard Biener <rguenther@suse.de>
16602 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
16603 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
16604 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
16605 redundant operand canonicalization.
16607 2015-07-30 David Sherwood <david.sherwood@arm.com>
16609 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
16610 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
16611 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
16612 * config/arm/arm.c (neon_valid_immediate): Likewise.
16613 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
16614 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
16615 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
16616 (expand_vec_perm_vpshufb2_vpermq): Likewise.
16617 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
16618 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
16619 * config/i386/sse.md
16620 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
16621 (*ssse3_palignr<mode>_perm): Likewise.
16622 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
16623 * config/spu/spu.c (arith_immediate_p): Likewise.
16624 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
16625 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
16627 2015-07-30 Richard Biener <rguenther@suse.de>
16629 * genmatch.c (decision_tree::gen_gimple): Merge with ...
16630 (decision_tree::gen_generic): ... this into ...
16631 (decision_tree::gen): ... this.
16632 (main): Adjust callers.
16634 2015-07-30 Richard Biener <rguenther@suse.de>
16636 * genmatch.c (verbose): New global.
16637 (warning_at): Add overload with source_location.
16638 (capture_info::capture_info): Add bool whether generating gimple
16639 or generic. Add gimple member.
16640 (capture_info::cinfo): Add capture member.
16641 (capture_info::walk_match): Record capture. Warn on
16642 non-captured leafs.
16643 (capture_info::walk_c_expr): Add more fragments captures cannot
16644 escape through. Warn on escaped captures.
16645 (dt_simplify::gen_1): Warn on operands we force to have no
16647 (main): Initialize verbose.
16648 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
16650 2015-07-30 Richard Biener <rguenther@suse.de>
16652 PR middle-end/67053
16653 * match.pd: Allow both operands to independently have conversion
16654 when simplifying compares of addresses.
16656 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
16660 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
16661 around those cases that need one.
16663 2015-07-29 Aditya Kumar <hiraditya@msn.com>
16665 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
16667 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
16669 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
16670 New. Copied from config/i386/gnu-user.h.
16671 (ASM_COMMENT_START): Likewise.
16672 (DBX_REGISTER_NUMBER): Likewise.
16674 2015-07-29 Richard Biener <rguenther@suse.de>
16676 * gimple-fold.c (fold_gimple_cond): Remove.
16677 (fold_stmt_1): Do not call it.
16679 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
16681 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
16682 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
16684 * config/aarch64/aarch64-modes.def: Add HFmode.
16686 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16687 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
16689 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
16690 aarch64_promoted_type): New.
16692 (aarch64_float_const_representable_p): Disable HFmode.
16693 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
16694 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
16695 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
16697 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
16698 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
16700 * config/aarch64/iterators.md (GPF_F16): New.
16702 2015-07-29 Richard Biener <rguenther@suse.de>
16704 * match.pd: Merge address comparison patterns and make them
16705 handle some more cases.
16707 2015-07-29 Richard Biener <rguenther@suse.de>
16709 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
16710 (parser::parse_capture): Add bool argument on whether to reject
16712 (parser::parse_expr): Adjust.
16713 (parser::parse_op): Likewise.
16714 (parser::parse_pattern): Likewise.
16716 2015-07-29 Richard Biener <rguenther@suse.de>
16718 * gimple-fold.c (has_use_on_stmt): New function.
16719 (replace_stmt_with_simplification): Use it to allow
16720 abnormals originally referenced in the stmt.
16721 (fold_stmt_1): Canonicalize operand order.
16723 2015-07-28 David Sherwood <david.sherwood@arm.com>
16725 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
16726 GET_MODE_INNER unconditionally.
16727 * config/spu/spu.c (arith_immediate_p): Likewise.
16728 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
16729 * expmed.c (synth_mult): Remove check for VOIDmode result from
16731 (expand_mult_const): Likewise.
16732 * fold-const.c (fold_binary_loc): Replace call to element_precision
16733 with call to GET_MODE_PRECISION.
16734 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
16736 (emit_mode_inner): Likewise.
16737 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
16739 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
16740 (GET_MODE_UNIT_PRECISION): Likewise.
16741 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
16742 * simplify-rtx.c (simplify_immed_subreg): Likewise.
16743 * stor-layout.c (bitwise_type_for_mode): Update assert.
16744 (element_precision): Remove.
16746 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16748 * target-insns.def (reload_load_address): New targetm instruction
16750 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
16752 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16754 * target-insns.def (atomic_test_and_set): New targetm instruction
16756 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
16757 HAVE_*/gen_* interface.
16759 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16761 * target-insns.def (can_extend, ptr_extend): New targetm instruction
16763 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
16764 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
16765 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
16766 * rtlanal.c (nonzero_bits1): Likewise.
16767 (num_sign_bit_copies1): Likewise.
16769 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16771 * target-insns.def (eh_return): New targetm instruction pattern.
16772 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
16774 * function.c (thread_prologue_and_epilogue_insns): Remove
16775 preprocessor condition.
16777 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16779 * target-insns.def (indirect_jump): New targetm instruction pattern.
16780 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
16783 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16785 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
16786 instead of nonimmediate_operand. Remove C condiition.
16788 2015-07-28 Richard Biener <rguenther@suse.de>
16790 * match.pd: Add more simplification of address comparisons.
16792 2015-07-28 Richard Biener <rguenther@suse.de>
16794 * match.pd: Re-order two cases in comparison with max/min
16795 value simplification to make it apply for bools.
16797 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16799 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
16800 Handle simple SIGN_EXTEND or ZERO_EXTEND.
16801 (aarch64_rtx_costs): Properly strip extend or extract before
16802 passing down to rtx costs again.
16804 2015-07-28 Nick Clifton <nickc@redhat.com>
16806 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
16807 Optimizes the case where -mes0 is active and a constant symbolic
16809 * config/rl78/rl78-protos.h: Prototype the new function.
16810 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
16812 2015-07-28 Tom de Vries <tom@codesourcery.com>
16814 * tree-parloops.c (reduc_stmt_res): New function.
16815 (initialize_reductions, add_field_for_reduction)
16816 (create_phi_for_local_result, create_loads_for_reductions)
16817 (create_stores_for_reduction, build_new_reduction): Handle case that
16818 reduc_stmt is a phi.
16819 (gather_scalar_reductions): Allow double_reduc reductions.
16821 2015-07-28 Richard Biener <rguenther@suse.de>
16823 * fold-const.c (fold_comparison): Remove equality folding
16824 of decl addresses ...
16825 * match.pd: ... here and merge with existing pattern.
16827 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
16829 PR tree-optimization/66828
16830 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
16831 from int64_t to uint64_t.
16833 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
16835 * opts-common.c (read_cmdline_option): List DriverOnly enum values
16836 as valid only in the error message of the driver, not in the
16837 messages of the language compilers.
16839 2015-07-27 Tom de Vries <tom@codesourcery.com>
16841 * tree-parloops.c (gather_scalar_reductions): Simplify function
16844 2015-07-27 Marek Polacek <polacek@redhat.com>
16846 * ipa-devirt.c (types_same_for_odr): Fix typo.
16848 2015-07-27 Jason Merrill <jason@redhat.com>
16851 * dwarf2out.c (gen_inlined_subroutine_die): Check
16852 cgraph_function_possibly_inlined_p.
16854 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
16856 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
16857 Place integer variant first.
16858 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
16860 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
16863 * config/arm/arm-builtins.c (enum arm_builtins):
16864 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
16865 (ARM_BUILTIN_NEON_BASE): Rename macro to....
16866 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
16867 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
16868 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
16870 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
16873 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
16874 Add qualifier_lane_index.
16875 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
16876 (arm_getlane_qualifiers): Use qualifier_lane_index.
16877 (arm_lanemac_qualifiers): Rename to...
16878 (arm_mac_n_qualifiers): ...this.
16879 (LANEMAC_QUALIFIERS): Rename to...
16880 (MAC_N_QUALIFIERS): ...this.
16881 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
16882 (arm_setlane_qualifiers): Use qualifier_lane_index.
16883 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
16884 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
16885 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
16886 (arm_expand_neon_builtin): Handle qualifier_lane_index.
16888 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
16889 * config/arm/arm.c (bounds_check): Likewise, improve error message.
16890 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
16891 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
16892 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
16893 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
16894 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
16895 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
16896 qualifiers to TERNOP_IMM.
16897 (vdup_lane): Change qualifiers to GETLANE.
16898 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
16899 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
16900 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
16901 vqdmlsl_n): Change qualifiers to MAC_N.
16903 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
16904 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
16905 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
16906 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
16907 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
16908 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
16909 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
16910 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
16911 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
16912 Remove call to neon_lane_bounds.
16914 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
16916 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
16917 Place integer variant first.
16919 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
16921 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
16922 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
16923 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
16924 for armv6kz targets.
16925 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
16926 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
16927 (FL_FOR_ARCH6ZK): Remove.
16928 (FL_FOR_ARCH6KZ): New.
16929 (arm_arch6zk): New declaration.
16930 * config/arm/arm-tables.opt: Regenerate.
16931 * config/arm/arm.c (arm_arch6kz): New.
16932 (arm_option_override): Set arm_arch6kz.
16933 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
16934 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
16935 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
16937 2015-07-27 Marek Polacek <polacek@redhat.com>
16941 * doc/invoke.texi: Document -Wtautological-compare.
16943 2015-07-27 Richard Biener <rguenther@suse.de>
16945 * genmatch.c (decision_tree::gen_gimple): Split out large
16946 subtrees into separate functions.
16947 (decision_tree::gen_generic): Likewise.
16949 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
16951 * config/alpha/alpha.c: Use SUBREG_P predicate.
16952 * config/alpha/predicates.md: Ditto.
16954 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
16956 * config.host (s390*-*-*): Include driver-native.c only when
16957 building with s390* as host *and* target.
16959 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
16962 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
16963 T bit register modified_between_p check.
16965 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
16967 * config/i386/i386.c: Use SUBREG_P predicate.
16968 * config/i386/i386.md: Ditto.
16969 * config/i386/sse.md: Ditto.
16970 * config/i386/predicates.md: Ditto.
16972 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
16975 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
16976 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
16978 2015-07-25 Sebastian Pop <s.pop@samsung.com>
16980 * Makefile.in: Remove use of TREEBROWSER.
16981 * config.in: Regenerated.
16982 * configure: Regenerated.
16983 * configure.ac: Remove definition of TREEBROWSER.
16984 * tree-browser.c: Removed.
16985 * tree-browser.def: Removed.
16987 2015-07-25 Sebastian Pop <s.pop@samsung.com>
16989 * graphite-scop-detection.c: Include gimple-pretty-print.h.
16990 (stmt_simple_for_scop_p): Print when a stmt is not handled in
16992 (scopdet_basic_block_info): Print when a loop or bb cannot be
16993 represented in Graphite.
16995 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
16998 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
16999 execution guard when min_size is less than size_needed.
17001 2015-07-25 Sebastian Pop <s.pop@samsung.com>
17003 * doc/install.texi: Document supported versions of ISL.
17005 2015-07-25 Jeff Law <law@redhat.com>
17009 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17010 unable to find X NE 0 in the tables, return X as the simplified
17012 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17013 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
17014 to VISISTED_BBS. */
17015 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17016 after removing the control flow statement and unnecessary edges.
17018 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
17021 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
17023 PR rtl-optimization/64164
17024 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17025 * tree-ssa-copyrename.c: Removed.
17026 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17027 -ftree-coalesce-vars.
17028 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17029 * common.opt (ftree-copyrename): Ignore.
17030 (ftree-coalesce-inlined-vars): Likewise.
17031 * doc/invoke.texi: Remove the ignored options above.
17032 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17033 * tree-ssa-coalesce.h: ... here.
17034 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17035 headers required by it.
17036 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17037 across variables when flag_tree_coalesce_vars. Check register
17038 use and promoted modes to allow coalescing. Moved to
17039 tree-ssa-coalesce.c.
17040 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17041 with its member functions to tree-ssa-coalesce.c.
17042 (var_map_base_init): Likewise. Renamed to
17043 compute_samebase_partition_bases.
17044 (partition_view_normal): Drop want_bases parameter.
17045 (partition_view_bitmap): Likewise.
17046 * tree-ssa-live.h: Adjust declarations.
17047 * tree-ssa-coalesce.c: Include explow.h.
17048 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17049 default defs at the entry point.
17050 (dump_part_var_map): New.
17051 (compute_optimized_partition_bases): New, called by...
17052 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17053 of compute_samebase_partition_bases. Adjust.
17054 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17055 * cfgexpand.c (leader_merge): New.
17056 (get_rtl_for_parm_ssa_default_def): New.
17057 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17058 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17059 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17060 redundant MEM attr setting.
17061 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17063 (expand_one_stack_var): ... this. New wrapper to check and
17064 skip already expanded SSA partitions.
17065 (record_alignment_for_reg_var): New, factored out of...
17066 (expand_one_var): ... this.
17067 (expand_one_ssa_partition): New.
17068 (adjust_one_expanded_partition_var): New.
17069 (expand_one_register_var): Check and skip already expanded SSA
17071 (expand_used_vars): Don't create DECLs for anonymous SSA
17072 names. Expand all SSA partitions, then adjust all SSA names.
17073 (pass::execute): Replace the loops that set
17074 SA.partition_to_pseudo from partition leaders and cleared
17075 DECL_RTL for multi-location variables, and that which used to
17076 rename vars and set attrs, with one that clears DECL_RTL and
17077 checks that PARMs and RESULTs default_defs match DECL_RTL.
17078 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17079 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17080 * explow.c (promote_ssa_mode): New.
17081 * explow.h (promote_ssa_mode): Declare.
17082 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17083 * function.c: Include cfgexpand.h.
17084 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17085 (use_register_for_parm_decl): Wrapper for the above to
17086 special-case the result_ptr.
17087 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17088 (split_complex_args): Take assign_parm_data_all argument.
17089 Pass it to rtl_for_parm. Set up rtl and context for split
17091 (assign_parms_augmented_arg_list): Adjust.
17092 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17093 multiple locations. Recognize split complex args.
17094 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17095 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17096 (assign_parm_setup_block): Prefer SSA-assigned location.
17097 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
17098 if stack_parm is NULL.
17099 (assign_parm_setup_stack): Prefer SSA-assigned location.
17100 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17101 rtl before testing for pointer bounds. Special-case result_ptr.
17102 (expand_function_start): Maybe reset DECL_RTL of result.
17103 Prefer SSA-assigned location for result and static chain.
17104 Factor out DECL_RESULT and SET_DECL_RTL.
17105 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17106 anonymous SSA names. Use promote_ssa_mode.
17107 (get_temp_reg): Likewise.
17108 (remove_ssa_form): Adjust.
17109 * stor-layout.c (layout_decl): Don't set mem attributes of
17111 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17112 and get its reg_usage for reg invalidation.
17113 (compute_bb_dataflow): Pass it insn.
17114 (emit_notes_in_bb): Likewise.
17116 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17118 * config/i386/i386.c (ix86_va_start): Remove
17119 unneeded !TARGET_64BIT check.
17120 (ix86_gimplify_va_arg): Ditto.
17122 2015-07-24 Tom de Vries <tom@codesourcery.com>
17124 * graphite-sese-to-poly.c (build_poly_scop): Always call
17125 rewrite_commutative_reductions_out_of_ssa.
17127 2015-07-24 Tom de Vries <tom@codesourcery.com>
17129 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
17130 flag_associative_math to FLOAT_TYPE_P. Honour
17131 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
17133 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
17136 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
17137 and "%qD" in warning_at instead of "%q+D" in warning.
17139 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
17141 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
17142 (ix86_function_abi): Cleanup.
17144 2015-07-24 Michael Darling <darlingm@gmail.com>
17147 * acinclude.m4: Reflects renaming of configure.in to configure.ac
17148 * configure: Likewise
17149 * configure.ac: Likewise
17150 * doc/install.texi: Likewise
17151 * doc/tm.texi: Likewise
17152 * doc/tm.texi.in: Likewise
17154 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17156 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
17157 manually swapping values.
17158 * cse.c (fold_rtx): Likewise.
17159 * lra-eliminations.c (form_sum): Likewise.
17161 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
17164 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
17165 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
17166 (*jcc_1, *jcc_2, jump, simple_return_internal)
17167 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
17168 Set length_nobnd attribute instead of length attribute.
17169 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
17170 (length_nobnd): Remove attribute.
17171 (length): Remove length_nobnd processing.
17173 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
17175 * gimplify.c (omp_default_clause): New function. Reorganize flow
17176 for clarity. Broken out of ...
17177 (omp_notice_variable): ... here.
17179 2015-07-24 Gary Funck <gary@intrepid.com>
17181 PR middle-end/66984
17182 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
17183 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
17185 2015-07-24 Tom de Vries <tom@codesourcery.com>
17187 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
17188 exit-first loop transform.
17190 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
17193 * tree-cfg.c (struct replace_decls_d): New struct.
17194 (replace_block_vars_by_duplicates_1): New function.
17195 (replace_block_vars_by_duplicates): Use it to replace the decls
17196 in the value exprs by duplicates.
17198 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17200 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
17201 -shared, -symbolic, -rdynamic.
17203 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17206 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
17207 -dynamic-linker within %{!static %{!shared, and -rdynamic within
17210 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
17213 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
17214 edge summary is available.
17216 2015-07-24 Richard Biener <rguenther@suse.de>
17218 * genmatch.c (struct dt_node): Add statistic fields.
17219 (dt_node::analyze): New method.
17220 (decision_tree::gen_gimple): Call analyze on the root node
17221 and print statistics to stderr.
17222 (decision_tree::gen_generic): Likewise.
17224 2015-07-24 Richard Biener <rguenther@suse.de>
17226 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
17227 against the highest or lowest possible integer ...
17228 * match.pd: ... as patterns here.
17230 2015-07-24 Richard Biener <rguenther@suse.de>
17232 * genmatch.c (struct capture_info): Add same_as field.
17233 (capture_info::capture_info): Initialize same_as.
17234 (capture_info::walk_match): Compute same_as.
17235 (capture_info::walk_result): Compute stuff for the leader.
17236 (capture_info::walk_c_expr): Likewise.
17237 (dt_simplify::gen_1): Only look at leaders when deciding
17238 to force no side-effects or emit side-effects of omitted operands.
17240 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17242 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
17243 reg note to the GPR -> FPR save instructions.
17245 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17247 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
17249 (s390_expand_insv): Don't generate risbg pattern for constant zero
17251 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
17252 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
17255 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17257 * config/s390/s390.c (s390_reorg): Clean up handling of processors
17260 (s390_issue_rate): Likewise.
17261 (s390_sched_reorder): Likewise.
17262 (s390_sched_variable_issue): Likewise.
17263 (s390_loop_unroll_adjust): Likewise.
17264 (s390_option_override): Likewise.
17266 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17268 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
17269 processor capabilities with -march=native.
17270 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
17271 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
17272 (S390_TARGET_BITS_STRING): Macro to simplify specs.
17274 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17276 * config/s390/s390.c (s390_issue_rate): Handle
17277 PROCESSOR_2094_Z9_EC.
17278 (s390_option_override): Likewise.
17279 (s390_adjust_priority): Likewise.
17281 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17283 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
17284 when cross compiling.
17286 2015-07-24 Richard Biener <rguenther@suse.de>
17288 * fold-const.c (maybe_canonicalize_comparison_1): Move
17289 A code CST canonicalization ...
17290 * match.pd: ... to a pattern here.
17292 2015-07-24 Jiong Wang <jiong.wang@arm.com>
17295 2015-07-22 Jiong Wang <jiong.wang@arm.com>
17297 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
17298 (HONOR_REG_ALLOC_ORDER): Define.
17300 2015-07-24 Richard Biener <rguenther@suse.de>
17302 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
17303 * fold-const.c (fold_comparison): Move parameter does not
17304 alias &local simplification ...
17305 * match.pd: ... as a pattern here.
17307 2015-07-24 Richard Biener <rguenther@suse.de>
17309 * gimple-fold.c (replace_stmt_with_simplification): Special-case
17310 valueizing call operands.
17311 * gimple-match-head.c (maybe_push_res_to_seq): Take
17312 number of call arguments from ops array.
17313 (do_valueize): New function.
17314 (gimple_simplify): Return true if valueization changed
17315 any operand even if the result didn't simplify further.
17317 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17319 PR middle-end/25530
17320 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
17322 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17324 PR middle-end/25529
17325 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
17327 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17329 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
17332 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17334 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
17337 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
17339 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
17340 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
17342 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
17343 ms_va_list_type_node initialization.
17345 2015-07-23 Jeff Law <law@redhat.com>
17348 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17349 unable to find X NE 0 in the tables, return X as the simplified
17351 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17352 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
17353 to VISISTED_BBS. */
17354 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17355 after removing the control flow statement and unnecessary edges.
17357 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
17359 * tree-pass.h (get_current_pass_name): Removed.
17361 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
17363 PR rtl-optimization/64164
17364 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17365 * tree-ssa-copyrename.c: Removed.
17366 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17367 -ftree-coalesce-vars.
17368 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17369 * common.opt (ftree-copyrename): Ignore.
17370 (ftree-coalesce-inlined-vars): Likewise.
17371 * doc/invoke.texi: Remove the ignored options above.
17372 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17373 * tree-ssa-coalesce.h: ... here.
17374 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17375 headers required by it.
17376 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17377 across variables when flag_tree_coalesce_vars. Check register
17378 use and promoted modes to allow coalescing. Moved to
17379 tree-ssa-coalesce.c.
17380 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17381 with its member functions to tree-ssa-coalesce.c.
17382 (var_map_base_init): Likewise. Renamed to
17383 compute_samebase_partition_bases.
17384 (partition_view_normal): Drop want_bases parameter.
17385 (partition_view_bitmap): Likewise.
17386 * tree-ssa-live.h: Adjust declarations.
17387 * tree-ssa-coalesce.c: Include explow.h.
17388 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17389 default defs at the entry point.
17390 (dump_part_var_map): New.
17391 (compute_optimized_partition_bases): New, called by...
17392 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17393 of compute_samebase_partition_bases. Adjust.
17394 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17395 * cfgexpand.c (leader_merge): New.
17396 (get_rtl_for_parm_ssa_default_def): New.
17397 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17398 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17399 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17400 redundant MEM attr setting.
17401 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17403 (expand_one_stack_var): ... this. New wrapper to check and
17404 skip already expanded SSA partitions.
17405 (record_alignment_for_reg_var): New, factored out of...
17406 (expand_one_var): ... this.
17407 (expand_one_ssa_partition): New.
17408 (adjust_one_expanded_partition_var): New.
17409 (expand_one_register_var): Check and skip already expanded SSA
17411 (expand_used_vars): Don't create DECLs for anonymous SSA
17412 names. Expand all SSA partitions, then adjust all SSA names.
17413 (pass::execute): Replace the loops that set
17414 SA.partition_to_pseudo from partition leaders and cleared
17415 DECL_RTL for multi-location variables, and that which used to
17416 rename vars and set attrs, with one that clears DECL_RTL and
17417 checks that PARMs and RESULTs default_defs match DECL_RTL.
17418 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17419 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17420 * explow.c (promote_ssa_mode): New.
17421 * explow.h (promote_ssa_mode): Declare.
17422 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17423 * function.c: Include cfgexpand.h.
17424 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17425 (use_register_for_parm_decl): Wrapper for the above to
17426 special-case the result_ptr.
17427 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17428 (split_complex_args): Take assign_parm_data_all argument.
17429 Pass it to rtl_for_parm. Set up rtl and context for split
17431 (assign_parms_augmented_arg_list): Adjust.
17432 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17433 multiple locations. Recognize split complex args.
17434 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17435 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17436 (assign_parm_setup_block): Prefer SSA-assigned location.
17437 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
17438 if stack_parm is NULL.
17439 (assign_parm_setup_stack): Prefer SSA-assigned location.
17440 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17441 rtl before testing for pointer bounds. Special-case result_ptr.
17442 (expand_function_start): Maybe reset DECL_RTL of result.
17443 Prefer SSA-assigned location for result and static chain.
17444 Factor out DECL_RESULT and SET_DECL_RTL.
17445 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17446 anonymous SSA names. Use promote_ssa_mode.
17447 (get_temp_reg): Likewise.
17448 (remove_ssa_form): Adjust.
17449 * stor-layout.c (layout_decl): Don't set mem attributes of
17451 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17452 and get its reg_usage for reg invalidation.
17453 (compute_bb_dataflow): Pass it insn.
17454 (emit_notes_in_bb): Likewise.
17456 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
17459 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
17461 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
17462 (rs6000_emit_2insn_and): Handle dot forms.
17463 * config/rs6000/rs6000.md (and<mode>3): Adjust.
17464 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
17465 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
17467 2015-07-23 Richard Biener <rguenther@suse.de>
17469 * generic-match-head.c: Include cgraph.h.
17470 * gimple-match-head.c: Likewise.
17471 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
17473 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
17474 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
17477 2015-07-23 Richard Biener <rguenther@suse.de>
17479 * gimple-fold.c (fold_gimple_cond): Do not require folding
17480 results to pass valid_gimple_rhs_p.
17481 * tree-cfg.h (fold_cond_expr_cond): Remove.
17482 * tree-cfg.c (fold_cond_expr_cond): Likewise.
17483 (make_edges): Do not call it.
17484 * tree-inline.c (tree_function_versioning): Likewise.
17486 2015-07-23 Tom de Vries <tom@codesourcery.com>
17488 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
17489 vect_force_simple_reduction.
17490 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
17491 (vect_is_simple_reduction_1): Add and handle
17492 need_wrapping_integral_overflow parameter.
17493 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
17494 need_wrapping_integral_overflow parameter.
17495 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
17496 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
17499 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
17501 PR tree-optimization/66926,66951
17502 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
17503 INNER_LOOP and fix up condition for renaming virtual operands.
17505 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17507 * combine.c (try_combine): Use std::swap instead of manually
17510 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
17512 * config/mips/i6400.md: New file.
17513 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
17514 (mips64r6): Likewise.
17516 * config/mips/mips-tables.opt: Regenerate.
17517 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
17518 (mips_issue_rate): Add support for i6400.
17519 (mips_multipass_dfa_lookahead): Likewise.
17520 * config/mips/mips.h (TUNE_I6400): Define.
17521 * config/mips/mips.md: Include i6400.md.
17522 (processor): Add i6400.
17523 * doc/invoke.texi (-march=@var{arch}): Add i6400.
17525 2015-07-23 Richard Biener <rguenther@suse.de>
17527 PR middle-end/66916
17528 * match.pd: Guard widen and sign-change comparison simplification
17531 2015-07-23 Richard Biener <rguenther@suse.de>
17533 PR tree-optimization/66945
17534 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
17535 ::before_dom_children): Force the propagators idea of
17536 non-executable edges to materialize, not what the folder
17539 2015-07-23 Richard Biener <rguenther@suse.de>
17541 * gimple.h (gimple_cond_make_false): Use 0 != 0.
17542 (gimple_cond_make_true): Use 1 != 0.
17544 2015-07-22 DJ Delorie <dj@redhat.com>
17546 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
17549 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
17550 (ashrhi3): Likewise.
17551 (lshrhi3): Likewise.
17552 (movhi): Take advantage of zero-extend to load small constants.
17553 (movpsi): Likewise.
17554 (and<mode>3): Likewise.
17555 (zero_extendqihi2): Likewise.
17556 (zero_extendqisi2): New.
17557 * config/msp430/constraints.md (N,O): New.
17558 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
17560 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
17563 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
17564 to enum feature_priority and feature_list.
17565 (fold_builtin_cpu): Add F_AES to enum processor_features
17566 and isa_names_table.
17568 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
17571 * config/i386/linux-common.h (MPX_SPEC): Use linker option
17572 for 64bit target only.
17574 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
17576 * config/nvptx/nvptx.c: Expand some comments.
17578 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
17580 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
17581 (cortex_a53_advsimd): ...This.
17583 2015-07-22 Richard Biener <rguenther@suse.de>
17585 * genmatch.c (expr::gen_transform): Clarify error message
17586 and display location.
17588 2015-07-22 Richard Biener <rguenther@suse.de>
17590 * genmatch.c (struct operand): Add location member.
17591 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
17593 (struct simplify): Remove match_location and result_location
17595 (elsehwere): Adjust.
17597 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
17599 * config/mips/m5100.md: New file.
17600 * config/mips/mips-cpus.def (m5100, m5101): Define.
17601 * config/mips/mips-tables.opt: Regenerate.
17602 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
17603 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
17604 -march=m5101 to -mips32r5.
17605 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
17606 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
17608 * config/mips/mips.md: Include m5100.md.
17609 (processor): Add m5100.
17610 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
17612 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
17614 * config/mips/mips-cpus.def (interaptiv): Define.
17615 * config/mips/mips-tables.opt: Regenerate.
17616 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
17618 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
17619 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
17621 2015-07-22 Jiong Wang <jiong.wang@arm.com>
17624 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
17625 (HONOR_REG_ALLOC_ORDER): Define.
17627 2015-07-22 Richard Biener <rguenther@suse.de>
17629 PR tree-optimization/66952
17630 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
17631 blocks we end up executing unconditionally reset all SSA
17632 info such as range and alignment.
17633 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
17634 * tree-ssanames.c (reset_flow_sensitive_info): New function.
17636 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
17638 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
17641 2015-07-22 Richard Biener <rguenther@suse.de>
17643 * genmatch.c (parser::parse_result): Properly handle
17644 match with result operands and conditions.
17646 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
17649 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
17650 Add qualifier_struct_load_store_lane_index.
17651 (aarch64_types_loadstruct_lane_qualifiers): Use
17652 qualifier_struct_load_store_lane_index for lane index argument for
17654 (aarch64_types_storestruct_lane_qualifiers): Ditto.
17655 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17656 (aarch64_simd_expand_args): Add new argument describing mode of
17657 builtin. Check lane bounds for arguments with
17658 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17659 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
17660 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17661 (aarch64_simd_expand_builtin): Handle arguments with
17662 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
17663 aarch64_simd_expand_args.
17664 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
17665 vst[234]_lane with BUILTIN_VALLDIF.
17666 * config/aarch64/aarch64-simd.md:
17667 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
17668 endianness reversal on lane index.
17669 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
17670 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
17671 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
17672 (vec_store_lanesci_lane<mode>): Ditto.
17673 (vec_store_lanesxi_lane<mode>): Ditto.
17674 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
17675 reversal of lane index.
17676 (aarch64_ld3_lane<mode>): Ditto.
17677 (aarch64_ld4_lane<mode>): Ditto.
17678 (aarch64_st2_lane<mode>): Ditto.
17679 (aarch64_st3_lane<mode>): Ditto.
17680 (aarch64_st4_lane<mode>): Ditto.
17681 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
17682 to qmode. Add new mode parameter. Update uses.
17683 (__LD3_LANE_FUNC): Ditto.
17684 (__LD4_LANE_FUNC): Ditto.
17685 (__ST2_LANE_FUNC): Ditto.
17686 (__ST3_LANE_FUNC): Ditto.
17687 (__ST4_LANE_FUNC): Ditto.
17689 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
17691 * doc/invoke.texi (Language Independent Options): Rename node to
17692 Diagnostic Message Formatting Options.
17694 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
17697 * lra-remat.c (operand_to_remat): Prevent using insns with input
17698 subregs processed separately by IRA.
17700 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
17702 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
17704 (single_imm_use): Check for iterator node.
17705 (num_imm_uses): Likewise.
17706 * tree-ssa-operands.c (has_zero_uses_1): Delete.
17707 (single_imm_use_1): Check for iterator node.
17709 2015-07-21 Mike Frysinger <vapier@gentoo.org>
17710 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17712 * configure.ac: Add check for new options in isl-0.15.
17713 * config.in, configure: Rebuilt.
17714 * graphite-blocking.c: Include <isl/constraint.h>
17715 * graphite-interchange.c, graphite-poly.c: Likewise.
17716 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
17717 * graphite.c: Likewise.
17718 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
17720 * graphite-dependences.c: Include <isl/constraint.h>.
17721 (max_number_of_out_dimensions): Returns isl_stat.
17722 (extend_schedule_1): Likewise
17723 (extend_schedule): Corresponding changes.
17724 * graphite-optimize-isl.c: Include <isl/constraint.h> and
17726 (getSingleMap): Change return type of isl_stat.
17727 (optimize_isl): Conditionally use
17728 isl_options_set_schedule_serialize_sccs.
17729 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
17730 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
17732 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
17735 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
17736 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
17738 2015-07-21 Richard Biener <rguenther@suse.de>
17740 PR tree-optimization/66948
17741 * genmatch.c (capture_info::walk_match): Also recurse to
17742 captures. Properly compute expr state from captures of
17744 * match.pd: Add single-use guards to
17745 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
17747 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
17749 * config/nvptx/mkoffload.c (process): Add static destructor call.
17751 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17753 PR middle-end/66915
17754 * match.pd (A - B -> A + (-B)): Don't allow folding
17755 when type if a fixed-point type.
17757 2015-07-20 DJ Delorie <dj@redhat.com>
17759 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
17760 (iorqi3_real): Likewise for set1.
17762 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
17764 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
17767 2015-07-20 Aditya Kumar <hiraditya@msn.com>
17769 * graphite-isl-ast-to-gimple.c:
17770 Refactor so that each function can access 'region'. This will help
17771 maintain a parameter rename_map within a region.
17773 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17775 * config/rs6000/rs6000.md (*lt0_disi): New.
17777 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17780 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
17781 "available letters" comment.
17782 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
17783 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
17784 and_2rld_operand): Delete.
17785 (and_operand): Adjust.
17786 (rotate_mask_operator): New.
17787 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
17788 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
17789 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
17790 extract_ME): Delete.
17791 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
17792 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
17793 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
17794 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
17795 rs6000_emit_2insn_and): New.
17796 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
17797 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
17798 includes_rldic_lshift_p, includes_rldicr_lshift_p,
17799 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
17800 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
17801 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
17802 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
17803 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
17804 rs6000_emit_2insn_and): New.
17805 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
17806 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
17808 <NOT>: Don't fall through to next case.
17809 <AND>: Handle the various rotate-and-mask cases directly.
17810 <IOR>: Always cost as one insn.
17811 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
17812 (and<mode>3): Adjust expander for the new patterns.
17813 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
17814 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
17815 (*and<mode>3_imm_dot_shifted): New.
17816 (*and<mode>3_mask): Delete, rewrite as ...
17817 (and<mode>3_mask): ... New.
17818 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
17819 (andsi3_internal0_nomc): Delete.
17820 (*andsi3_internal6): Delete.
17821 (*and<mode>3_2insn): New.
17822 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
17823 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
17824 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
17825 *insvdi_internal3): Delete.
17826 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
17827 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
17828 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
17829 *ior<mode>_mask): New.
17830 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
17831 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
17832 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
17833 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
17835 (ashr<mode>3): Delete expander.
17836 (*ashr<mode>3): Rename to ...
17837 (ashr<mode>3): ... This.
17838 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
17839 (*rotldi3_internal4, *rotldi3_internal5 and split,
17840 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
17841 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
17842 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
17843 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
17844 (splitter for loading a mask): Adjust.
17845 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
17847 2015-07-20 Marek Polacek <polacek@redhat.com>
17849 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
17850 output_add_clobbers, output_added_clobbers_hard_reg_p,
17851 gen_rtx_scratch): Remove declarations.
17853 2015-07-20 Marek Polacek <polacek@redhat.com>
17856 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
17858 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17860 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
17861 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
17863 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17865 * combine.c (combine_simplify_rtx): Move simplification step
17866 before various transformations/substitutions.
17868 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
17870 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
17871 (struct int_traits): Likewise.
17873 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17875 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
17876 function to vmsdbgout_function_decl.
17878 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
17881 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
17882 from misaligned positions.
17883 (ix86_expand_pinsr): Reject insertions to misaligned positions.
17885 2015-07-18 Sebastian Pop <s.pop@samsung.com>
17887 PR middle-end/46851
17888 PR middle-end/60340
17889 * Makefile.in: Removed omega.o.
17890 * common.opt: Document flag fcheck-data-deps as deprecated.
17891 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
17892 its associated params: omega-max-vars, omega-max-geqs,
17893 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
17894 omega-max-keys, omega-eliminate-redundant-constraints.
17895 * doc/loop.texi: Remove all the section on Omega.
17896 * graphite-blocking.c: Include missing params.h: it used to be
17897 included through tree-data-ref.h and omega.h.
17898 * graphite-isl-ast-to-gimple.c: Same.
17899 * graphite-optimize-isl.c: Same.
17900 * graphite-sese-to-poly.c: Same.
17901 * graphite.c: Same.
17904 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
17905 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
17906 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
17907 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
17908 * passes.def: Remove pass_check_data_deps.
17909 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
17910 (dump_conflict_function): Same.
17911 (dump_subscript): Same.
17912 (print_direction_vector): Same.
17913 (print_dir_vectors): Same.
17914 (print_lambda_vector): Same.
17915 (print_dist_vectors): Same.
17916 (dump_data_dependence_relation): Same.
17917 (dump_data_dependence_relations): Same.
17918 (dump_dist_dir_vectors): Same.
17920 (init_omega_eq_with_af): Removed.
17921 (omega_extract_distance_vectors): Removed.
17922 (omega_setup_subscript): Removed.
17923 (init_omega_for_ddr_1): Removed.
17924 (init_omega_for_ddr): Removed.
17925 (ddr_consistent_p): Removed.
17926 (compute_affine_dependence): Do not use omega to check data
17928 (compute_data_dependences_for_bb): Removed.
17929 (analyze_all_data_dependences): Removed.
17930 (tree_check_data_deps): Removed.
17931 * tree-data-ref.h: Do not include omega.h.
17932 (compute_data_dependences_for_bb): Removed.
17933 (tree_check_data_deps): Removed.
17934 * tree-ssa-loop.c (pass_check_data_deps): Removed.
17935 (make_pass_check_data_deps): Removed.
17936 * tree-ssa-phiopt.c: Include params.h.
17937 * tree-vect-data-refs.c: Same.
17938 * tree-vect-slp.c: Same.
17940 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
17942 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
17943 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
17944 (mem->fpreg splitters): Ditto.
17945 (general_operand->nonimmediate_operand splitter): Use explicit modes.
17946 Disable DFmode for TARGET_64BIT.
17948 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
17951 * config/i386/i386.c (ix86_expand_prologue): Replicate static
17952 chain on the stack.
17954 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
17956 * config/nvptx/mkoffload.c (process): Constify host data.
17957 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
17958 Constify host data.
17959 (generate_host_descr_file): Likewise.
17961 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
17962 Sebastian Pop <s.pop@samsung.com>
17964 PR middle-end/61929
17965 * graphite-dependences.c (add_pdr_constraints): Renamed
17966 pdr->extent to pdr->subscript_sizes.
17967 * graphite-interchange.c (build_linearized_memory_access): Add
17968 back all gcc_assert's that the "isl_int to isl_val conversion"
17969 patch has removed. Refactored.
17970 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
17971 * graphite-poly.c (new_poly_dr): Same.
17972 (free_poly_dr): Same.
17973 * graphite-poly.h (struct poly_dr): Same.
17974 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
17975 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
17976 * graphite-scop-detection.h: Fix space.
17977 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
17978 back all gcc_assert's removed by a previous patch.
17979 (wrap): Remove the_isl_ctx global variable that the same patch has
17981 (build_loop_iteration_domains): Same.
17982 (add_param_constraints): Same.
17983 (pdr_add_data_dimensions): Same. Refactored.
17984 (build_poly_dr): Renamed extent to subscript_sizes.
17986 2015-07-17 Marek Polacek <polacek@redhat.com>
17988 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
17989 * match.pd: ... here.
17991 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
17993 * config/nvptx/mkoffload.c (process): Constify target data.
17994 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
17995 Constify target data.
17996 (generate_target_offloadend_file): Likewise.
17998 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
18000 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
18001 to allow renaming of PHI arguments on edges incoming from outer
18002 loop header, add corresponding check before start PHI iterator.
18003 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
18004 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
18005 with true force_vectorize. Set-up dominator for outer loop too.
18006 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
18007 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
18008 was marked with force_vectorize and has restricted cfg.
18009 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
18011 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
18012 do peeling for outer loops.
18014 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
18015 Matthias Klose <doko@ubuntu.com>
18017 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
18018 build-sysroot, sysroot from the `Miscenalleous configure options' to
18019 the `Directories' section and strip trailing `/' from with_sysroot.
18020 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
18021 * configure: Regenerated.
18023 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
18026 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
18027 (TARGET_HARD_DF_REGS): Ditto.
18028 (TARGET_HARD_XF_REGS): Ditto.
18029 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
18030 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
18031 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
18032 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
18033 (*movsf_internal): Add alternatives 16 and 17. Enable
18034 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
18036 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
18038 PR rtl-optimization/66891
18039 * calls.c (expand_call): Wrap precompute_register_parameters with
18040 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
18042 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
18044 * config/nvptx/mkoffload.c (process): Constify mapping variables.
18045 Define target data struct and initialize it.
18047 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
18049 PR rtl-optimization/66626
18050 * ira.h (emit-rtl.h): Include.
18051 (non_spilled_static_chain_regno_p): New.
18052 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
18053 unless it is non spilled static chain pseudo.
18054 (assign_hard_rego): Spill memory profitable allocno unless it is
18055 non spilled static chain pseudo.
18056 (allocno_spill_priority_compare): Put non spilled static chain
18057 pseudo at the end of sorted array.
18058 (improve_allocation): Do nothing if we have static chain and
18060 (allocno__priority_compare_func): Put non spilled static chain
18061 pseudo at the beginning of sorted array.
18062 (move_spill_restore): Ignore non spilled static chain pseudo.
18063 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
18064 to non spilled static chain pseudo.
18065 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
18066 pseudo at the beginning of sorted array.
18067 (spill_for): Spill non spilled static chain pseudo last.
18068 * lra-constraints.c (lra_constraints): Remove static chain pseudo
18069 check for equivalence.
18071 2015-07-16 Martin Liska <mliska@suse.cz>
18074 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
18075 dst_ctx if it does not exist.
18077 2015-07-16 Martin Liska <mliska@suse.cz>
18079 * hash-set.h (remove): New function.
18080 (iterator): New iteration class for hash_set.
18082 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18084 * genattrtab.c (make_canonical): Add a file_location parameter.
18085 Use fatal_at rather than fatal.
18086 (get_attr_value): Likewise. Update call to make_canonical.
18087 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
18088 (make_internal_attr): Update calls accordingly.
18090 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18092 * read-md.h (message_with_line, error_with_line): Delete.
18093 * read-md.c (message_with_line, error_with_line): Delete.
18094 * gensupport.h: Include read-md.h.
18095 (md_rtx_info): New structure.
18096 (read_md_rtx): Use it. Return a bool success value.
18097 * gensupport.c (read_md_rtx): Likewise.
18098 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
18099 (main): Update after interface changes.
18100 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
18101 (main): Update after interface changes.
18102 * genattrtab.c (insn_code_number): Delete.
18103 (optimize_attrs): Add a max_insn_code parameter and use it instead
18104 of insn_code_number.
18105 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
18106 Use *_at rather than *_with_line functions.
18107 (gen_insn): Likewise.
18108 (gen_delay): Likewise.
18109 (gen_insn_reserv): Likewise.
18110 (gen_bypass): Take an md_rtx_info rather than an rtx.
18111 (main): Update after interface changes. Use a local max_insn_code
18112 variable instead of insn_code_number.
18113 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
18114 an rtx. Use fatal_at rather than fatal.
18115 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
18116 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
18117 (gen_absence_set, gen_final_absence_set, gen_automaton)
18118 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
18119 (main): Update after interface changes.
18120 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
18122 (main): Update after interface changes.
18123 * genconditions.c (main): Use new read_md_rtx interface.
18124 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
18125 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
18126 (main): Update after interface changes.
18127 * genemit.c (insn_code_number, insn_index_number): Delete.
18128 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18129 Use fatal_at rather than fatal.
18130 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
18132 (gen_split): Likewise.
18133 (main): Update after interface changes.
18134 * genextract.c (line_no): Delete.
18135 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18136 Update call to walk_rtx.
18137 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
18138 rather than message_with_line.
18139 (walk_rtx): Add an md_rtx_info argument. Update call to
18140 VEC_safe_set_locstr.
18141 (main): Update after interface changes.
18142 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
18143 and lineno. Use error_at rather than separate message_with_line
18144 calls and have_error assignments.
18145 (main): Update after interface changes.
18146 * genmddump.c (main): Use new read_md_rtx interface.
18147 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
18148 (main): Update after interface changes.
18149 * genoutput.c (next_code_number): Delete.
18150 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18151 (gen_peephole, gen_expand, gen_split): Likewise.
18152 (note_constraint): Likewise. Use *_at rather than *_with_line
18154 (main): Update after interface changes.
18155 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
18157 (main): Update after interface changes.
18158 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
18159 than an rtx and lineno.
18160 (process_define_constraint): Likewise.
18161 (process_define_register_constraint): Likewise.
18162 (main): Update after interface changes.
18163 * genrecog.c (next_insn_code, pattern_lineno): Delete.
18164 (validate_pattern): Replace top-level rtx with an md_rtx_info.
18165 Use *_at rather than *_with_line functions.
18166 (match_pattern_2): Likewise.
18167 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
18168 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
18169 Use *_at rather than *_with_line functions.
18170 * gentarget-def.c (add_insn): New function.
18171 (main): Use it. Use new read_md_rtx interface.
18173 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18175 * gensupport.h (compute_test_codes): Take a file_location rather
18176 than a line number.
18177 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
18178 rather than *_with_line functions.
18179 (process_define_predicate): Update call to compute_test_codes.
18180 * genpreds.c (validate_exp): Take a file_location rather than a
18181 line number. Use *_at functions rather than *_with_line functions.
18182 (process_define_predicate): Update call to validate_exp.
18183 (constraint_data): Replace lineno field with a file_location.
18184 (add_constraint): Take a file_location rather than a line number.
18185 Use *_at functions rather than *_with_line functions. Fix error
18186 message for address constraints. Update after changes to
18187 validate_exp, constraint_data and compute_test_codes.
18188 (process_define_constraint): Update accordingly.
18189 (process_define_register_constraint): Likewise.
18191 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18193 * genoutput.c (data): Use a file_location to record the source
18196 (idata, idata_end): Remove initialization.
18197 (constraint_data): Replace lineno with a file_location.
18198 (output_insn_data): Update after changes to data.
18199 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
18200 (scan_operands): Likewise, using *_at rather than *_with_line
18202 (process_template): Likewise.
18203 (validate_insn_alternatives): Likewise.
18204 (validate_insn_operands): Likewise.
18205 (validate_optab_operands): Likewise.
18206 (init_insn_for_nothing): Initialize idata and idata_end.
18207 (note_constraint): Update after changes to constraint_data,
18208 using at rather than with_line functions.
18209 (mdep_constraint_len): Take a file_location rather than a
18210 line number. Use at rather than with_line functions.
18212 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18214 * read-md.h (fatal_at): Declare.
18215 * read-md.c (fatal_at): New function.
18216 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
18217 to record the source position.
18218 (check_attr_test): Take a file_location instead of a line number.
18219 Use fatal_at instead of fatal.
18220 (check_attr_value): Update after above changes, using "at"
18221 rather than "with_line" reporting functions.
18222 (convert_set_attr_alternative): Likewise.
18223 (gen_attr): Likewise.
18224 (check_defs): Likewise. Don't assign to read_md_filename.
18225 (gen_insn): Update initialization after above changes.
18226 (gen_delay): Likewise.
18227 (write_insn_cases): Print the filename for a define_peephole.
18228 (gen_insn_reserv): Take a line number as argument and update
18229 the call to check_attr_test.
18230 (main): Pass a line number to gen_insn_reserv.
18232 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18234 * read-md.h (file_location): New structure.
18235 (directive_handler_t): Take a file_location rather than a line number.
18236 (message_at, error_at): Declare.
18237 (read_skip_construct): Delete.
18238 * read-md.c (message_with_line_1): Replace with...
18239 (message_at_1): ...this new function.
18240 (message_at, error_at): New functions.
18241 (message_with_line, error_with_line): Update to use message_at_1.
18242 (handle_enum): Take a file_location rather than a line number
18243 and use error_at for error reporting.
18244 (handle_include): Likewise.
18245 (read_skip_construct): Likewise. Make static.
18246 (handle_file): Update after above changes. Pass a file_location
18247 rather than a line number to handle_directive.
18248 * gensupport.c (queue_elem): Replace separate filename and lineno
18249 with a file_location.
18250 (queue_pattern): Replace filename and lineno arguments with a
18251 file_location. Update after change to queue_elem.
18252 (process_define_predicate): Replace lineno argument with a
18253 file_location and use error_at for error reporting. Update
18254 after above changes.
18255 (process_rtx): Likewise.
18256 (subst_pattern_match): Likewise.
18257 (get_alternatives_number): Likewise.
18258 (alter_predicate_for_insn): Likewise.
18259 (rtx_handle_directive): Likewise.
18260 (is_predicable): Update after above changes, using error_at rather
18261 than error_with_line.
18262 (has_subst_attribute): Likewise.
18263 (identify_predicable_attribute): Likewise.
18264 (alter_attrs_for_subst_insn): Likewise.
18265 (process_one_cond_exec): Likewise.
18266 (process_substs_on_one_elem): Likewise.
18267 (process_define_subst): Likewise.
18268 (check_define_attr_duplicates): Likewise.
18269 (read_md_rtx): Update after change to queue_elem.
18271 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18273 * genoutput.c (next_index_number): Delete.
18274 (data): Remove index_number.
18275 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
18276 (main): Remove manipulation of next_index_number.
18278 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18280 * genattrtab.c (check_attr_value): Remove handling of null attrs.
18281 (make_canonical): Likewise.
18283 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
18285 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
18286 instead of adjust_address_nv.
18287 (restore_stack_nonlocal): Likewise.
18288 (nonlocal_goto): Likewise.
18290 2015-07-16 Tom de Vries <tom@codesourcery.com>
18292 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
18293 not have a corresponding loop header phi.
18295 2015-07-16 Tom de Vries <tom@codesourcery.com>
18297 * tree-parloops.c (create_loads_for_reductions): Handle case that
18298 reduction is unused.
18300 2015-07-16 Richard Biener <rguenther@suse.de>
18302 PR tree-optimization/66894
18303 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
18304 about deriving NE_EXPR from truncated values.
18306 2015-07-16 Martin Liska <mliska@suse.cz>
18309 (object_allocator): Add new class.
18310 (pool_allocator::initialize): Use the underlying class.
18311 (pool_allocator::allocate): Likewise.
18312 (pool_allocator::remove): Likewise.
18313 (operator new): A new generic allocator.
18314 * asan.c (struct asan_mem_ref): Remove unused members.
18315 (asan_mem_ref_new): Replace new operator with
18316 object_allocator::allocate.
18317 (free_mem_ref_resources): Change deallocation.
18318 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
18319 with object_allocator.
18320 * config/sh/sh.c (add_constant): Replace new operator with
18321 object_allocator::allocate.
18322 (sh_reorg): Change call to a release method.
18323 * cselib.c (struct elt_list): Remove unused members.
18324 (new_elt_list): Replace new operator with
18325 object_allocator::allocate.
18326 (new_elt_loc_list): Likewise.
18327 (new_cselib_val): Likewise.
18328 (unchain_one_elt_list): Change delete operator with remove method.
18329 (unchain_one_elt_loc_list): Likewise.
18330 (unchain_one_value): Likewise.
18331 (cselib_finish): Release newly added static allocators.
18332 * cselib.h (struct cselib_val): Remove unused members.
18333 (struct elt_loc_list): Likewise.
18334 * df-problems.c (df_chain_alloc): Replace pool_allocator with
18336 * df-scan.c (struct df_scan_problem_data): Likewise.
18337 (df_scan_alloc): Likewise.
18338 * df.h (struct dataflow): Likewise.
18339 * dse.c (struct read_info_type): Likewise.
18340 (struct insn_info_type): Likewise.
18341 (struct dse_bb_info_type): Likewise.
18342 (struct group_info): Likewise.
18343 (struct deferred_change): Likewise.
18344 (get_group_info): Likewise.
18345 (delete_dead_store_insn): Likewise.
18346 (free_read_records): Likewise.
18347 (replace_read): Likewise.
18348 (check_mem_read_rtx): Likewise.
18349 (scan_insn): Likewise.
18350 (dse_step1): Likewise.
18351 (dse_step7): Likewise.
18352 * et-forest.c (struct et_occ): Remove unused members.
18353 (et_new_occ): Use allocate instead of new operator.
18354 (et_new_tree): Likewise.
18355 (et_free_tree): Call release method explicitly.
18356 (et_free_tree_force): Likewise.
18357 (et_free_pools): Likewise.
18358 (et_split): Use remove instead of delete operator.
18359 * et-forest.h (struct et_node): Remove unused members.
18360 * ipa-cp.c: Change pool_allocator to object_allocator.
18361 * ipa-inline-analysis.c: Likewise.
18362 * ipa-profile.c: Likewise.
18363 * ipa-prop.c: Likewise.
18364 * ipa-prop.h: Likewise.
18365 * ira-build.c (initiate_cost_vectors): Cast return value.
18366 (ira_allocate_cost_vector): Likewise.
18367 * ira-color.c (struct update_cost_record): Remove unused members.
18368 * lra-int.h (struct lra_live_range): Likewise.
18369 (struct lra_copy): Likewise.
18370 (struct lra_insn_reg): Likewise.
18371 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
18372 * lra.c (new_insn_reg): Replace new operator with allocate method.
18373 (free_insn_regs): Same for operator delete.
18374 (finish_insn_regs): Release new static allocator.
18375 (finish_insn_recog_data): Likewise.
18376 (lra_free_copies): Replace delete operator with remove method.
18377 (lra_create_copy): Replace operator new with allocate method.
18378 (invalidate_insn_data_regno_info): Same for remove method.
18379 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
18380 (free_debug_insn_changes): Replace delete operator with remove method.
18381 (replace_oldest_value_reg): Replace operator new with allocate method.
18382 (pass_cprop_hardreg::execute): Release new static variable.
18383 * sched-deps.c (sched_deps_init): Change pool_allocator to
18385 * sel-sched-ir.c: Likewise.
18386 * sel-sched-ir.h: Likewise.
18387 * stmt.c (expand_case): Likewise.
18388 (expand_sjlj_dispatch_table): Likewise.
18389 * tree-sra.c (struct access): Remove unused members.
18390 (struct assign_link): Likewise.
18391 (sra_deinitialize): Release newly added static pools.
18392 (create_access_1):Replace operator new with allocate method.
18393 (build_accesses_from_assign): Likewise.
18394 (create_artificial_child_access): Likewise.
18395 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
18396 pool_allocator to object_allocator.
18397 * tree-ssa-pre.c: Likewise.
18398 * tree-ssa-reassoc.c: Likewise.
18399 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
18400 * tree-ssa-strlen.c: Likewise.
18401 * tree-ssa-structalias.c: Likewise.
18402 * var-tracking.c (onepart_pool_allocate): New function.
18403 (unshare_variable): Use the newly added function.
18404 (variable_merge_over_cur): Likewise.
18405 (variable_from_dropped): Likewise.
18406 (variable_was_changed): Likewise.
18407 (set_slot_part): Likewise.
18408 (emit_notes_for_differences_1): Likewise.
18409 (vt_finalize): Release newly added static pools.
18411 2015-07-16 Martin Jambor <mjambor@suse.cz>
18413 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
18414 all uses. Fix two typos in its general comment.
18415 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
18417 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
18419 * config/i386/linux-common.h (LINK_MPX): New.
18420 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
18421 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
18422 indicating '-z bndplt' support by linker.
18423 * configure: Regenerate.
18424 * config.in: Regenerate.
18426 2015-07-16 Richard Biener <rguenther@suse.de>
18428 * fold-const.c (fold_widened_comparison): Remove.
18429 (fold_sign_changed_comparison): Likewise.
18430 (fold_comparison): Move widened and sign-changed comparison
18432 * match.pd: ... to patterns here.
18433 * generic-match-head.c: Include target.h.
18434 * gimple-match-head.c: Likewise.
18436 2015-07-16 Richard Biener <rguenther@suse.de>
18438 * tree-ssa-dom.c (dom_valueize): New function.
18439 (record_temporary_equivalences): Also record equivalences
18440 for dominating stmts that have uses of equivalences we are
18443 2015-07-16 Bin Cheng <bin.cheng@arm.com>
18445 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
18446 add_autoinc_candidates.
18447 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
18448 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
18449 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
18450 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
18452 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
18453 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
18454 Remove parameter struct iv*. Call add_autoinc_candidates here.
18455 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
18456 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
18458 (find_iv_candidates): Call new functions.
18460 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
18462 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
18463 uninitialized-variable warning.
18465 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
18468 * config/sh/sh.md (movdi): Split simple reg move to two movsi
18469 when the destination is R0.
18471 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
18474 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
18475 * config/i386/i386.c (ix86_expand_pextr): New function.
18476 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
18477 for non-lowpart subregs.
18478 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
18479 (insv<mode>): Use SWI248 mode iterator.
18480 (insv<mode>_1): Ditto.
18482 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18483 Sebastian Pop <s.pop@samsung.com>
18485 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
18486 iterator to use_stmt.
18488 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18489 Sebastian Pop <s.pop@samsung.com>
18491 * graphite-scop-detection.c (build_scops_1): Discard scops for
18494 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18495 Sebastian Pop <s.pop@samsung.com>
18497 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
18498 case of a return statement in scop.
18500 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18501 Sebastian Pop <s.pop@samsung.com>
18503 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
18504 INTEGER_TYPE parameters.
18505 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
18506 VECTOR_CST in scan_tree_for_params.
18507 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
18509 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
18511 * gimple-pretty-print.h: Don't include pretty-print.h.
18512 * tree-streamer.h: Don't include lto-streamer.h.
18513 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
18514 * gimple-streamer-in.c: Remove redundant includes.
18515 * gimple-streamer-out.c: Likewise.
18516 * ipa-devirt.c: Likewise.
18517 * ipa-icf.c: Likewise.
18518 * ipa-inline-analysis.c: Likewise.
18519 * ipa-polymorphic-call.c: Likewise.
18520 * ipa-profile.c: Likewise.
18521 * ipa-prop.c: Likewise.
18522 * ipa-pure-const.c: Likewise.
18523 * lto-cgraph.c: Likewise.
18524 * lto-streamer-in.c: Likewise.
18525 * lto-streamer-out.c: Likewise.
18526 * lto-streamer.c: Likewise.
18527 * tree-streamer-in.c: Likewise.
18528 * tree-streamer-out.c: Likewise.
18529 * tree-streamer.c: Likewise.
18531 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
18533 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
18535 * opts.c: Remove multiline #include comment.
18537 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
18539 * config/nvptx/mkoffload.c (process): Add C++ protection to
18542 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18545 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
18546 null before IEEE 128-bit floating point support patch.
18548 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18550 * simplify-rtx.c (simplify_ternary_operation): Add simplification
18551 for (!c) != {0,...,0} ? a : b for vector modes.
18553 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
18554 Martin Jambor <mjambor@suse.cz>
18556 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
18557 struct func_body_info* instead of struct ipa_node_params*, expecting
18558 fbi->info to be filled in. Replace throughout. Adjust call to
18559 ipa_load_from_parm_agg.
18560 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
18561 instead of struct ipa_node_params*. Adjust calls to other functions
18562 so that they pass either fbi or fbi->info.
18563 (set_switch_stmt_execution_predicate): Likewise.
18564 (will_be_nonconstant_predicate): Likewise.
18565 (compute_bb_predicates): Likewise.
18566 (estimate_function_body_sizes): Move asserts earlier. Fill in
18567 struct func_body_info, replace parms_info with fbi.info. Adjust
18568 calls to functions that now accept struct func_body_info.
18569 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
18570 (struct func_body_info): Likewise.
18571 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
18572 remove static. Adjust callers.
18573 (ipa_load_from_parm_agg): Remove.
18574 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
18575 (func_body_info): Likewise.
18576 (ipa_load_from_parm_agg): Adjust prototype.
18578 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18580 * gensupport.c (rtx_handle_directive): Adjust.
18581 * read-rtl.c (apply_iterators): Take vector to add rtxs to
18582 instead of expr list rtx.
18583 (add_define_attr_for_define_subst): Likewise.
18584 (add_define_subst_attr): Likewise.
18585 (read_subst_mapping): Likewise.
18586 (read_rtx): Likewise.
18587 * rtl.h (read_rtx): Adjust.
18589 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18591 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
18593 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
18596 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
18597 (*tls_local_dynamic_base_64_<mode>): Ditto.
18598 (*tls_local_dynamic_base_64_largepic): Ditto.
18599 (tls_global_dynamic_64_<mode>): Update expander pattern.
18600 (tls_local_dynamic_base_64_<mode>): Ditto.
18602 2015-07-15 Richard Biener <rguenther@suse.de>
18604 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
18605 and bool_var == 1 -> bool_var simplifications ...
18606 * match.pd: ... to patterns here. Factor out negate_expr_p
18607 cases from the A - B -> A + (-B) patterns as negate_expr_p
18608 predicate and add a -(A + B) -> (-B) - A pattern.
18610 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
18612 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
18614 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
18615 Robert Suchanek <robert.suchanek@imgtec.com>
18617 * config/mips/mips.c (mips_int_mask): New enum.
18618 (mips_shadow_set): Likewise.
18619 (int_mask): New variable.
18620 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
18621 (machine_function): Add int_mask and use_shadow_register_set.
18622 (mips_attribute_table): Add attribute handlers for interrupt and
18623 use_shadow_register_set.
18624 (mips_interrupt_mask): New static function.
18625 (mips_handle_interrupt_attr): Likewise.
18626 (mips_handle_use_shadow_register_set_attr): Likewise.
18627 (mips_use_shadow_register_set): Change return type to enum
18628 mips_shadow_set. Add argument handling for use_shadow_register_set
18630 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
18631 compare with mips_shadow_set enum.
18632 (mips_compute_frame_info): Add interrupt mask and
18633 use_shadow_register_set to per-function information structure.
18634 Add a stack slot for EPC unconditionally.
18635 (mips_expand_prologue): Compare use_shadow_register_set value
18636 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
18637 masked interrupt register but in EIC mode use K0 and save Cause in K0.
18638 EPC saved and restored unconditionally. Use PMODE_INSN macro when
18639 copying the stack pointer from the shadow register set.
18640 * config/mips/mips.h (SR_IM0): New define.
18641 * config/mips/mips.md (mips_rdpgpr): Rename to...
18642 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
18643 * doc/extend.texi (Declaring Attributes of Functions): Document
18644 optional arguments for interrupt and use_shadow_register_set
18647 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
18649 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
18650 interrupt attribute.
18651 (mips_expand_prologue): Disable the floating point unit in an ISR.
18652 * config/mips/mips.h (SR_COP1): New define.
18654 2015-07-15 Richard Biener <rguenther@suse.de>
18656 * genmatch.c (parser::peek, parser::peek_ident): Add argument
18657 to tell how many tokens to peek ahead (default 1).
18658 (parser::eat_token, parser::eat_ident): Return token consumed.
18659 (parser::parse_result): Parse new switch statement.
18660 * match.pd: Use case statements where appropriate.
18662 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
18664 PR rtl-optimization/58066
18665 * calls.c (expand_call): Precompute register parameters before stack
18666 alignment is performed.
18668 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
18670 PR rtl-optimization/66838
18671 * postreload.c (reload_cse_move2add): Also process
18672 CALL_INSN_FUNCTION_USAGE when resetting information of
18673 call-clobbered registers.
18675 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18676 Cesar Philippidis <cesar@codesourcery.com>
18677 Chung-Lin Tang <cltang@codesourcery.com>
18679 * config/nios2/constraints.md (U, v): New constraints.
18680 * config/nios2/predicates.md (rdprs_dcache_operand): New.
18681 (ldstex_memory_operand): New.
18682 * config/nios2/sync.md: New file.
18683 * config/nios2/nios2.md (unspecv): Add new builtin function
18685 (rdprs, flushd, flushda, wrpie, eni): New patterns.
18686 (top-level): Include sync.md.
18687 * config/nios2/nios2.c (N2_FTYPES): Add function types for
18689 (N2_BUILTINS): Add arch field setting, add new builtins.
18690 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
18692 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
18693 Also handle ldex/stex/ldsex/stsex builtins.
18694 (nios2_expand_rdprs_builtin): New function.
18695 (nios2_expand_cache_builtin): New function.
18696 (nios2_expand_wrpie_builtin): New function.
18697 (nios2_expand_eni_builtin): New function.
18698 (nios2_expand_builtin): Add arch field handling and new builtin
18700 * doc/extend.texi (Altera Nios II Built-in Functions): Document
18702 * doc/md.texi (Machine Constraints): Document U and v constraints.
18704 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18705 Cesar Philippidis <cesar@codesourcery.com>
18706 Chung-Lin Tang <cltang@codesourcery.com>
18708 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
18709 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
18710 callee_save_reg_size and uses_anonymous_args fields.
18711 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
18712 (nios2_create_cfa_notes): New function.
18713 (nios2_adjust_stack): New function for adjusting stack.
18714 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
18715 Use nios2_adjust_stack.
18716 (nios2_expand_epilogue): Likewise.
18717 (nios2_expand_return): New function.
18718 (nios2_can_use_return_insn): Update for CDX pop.n usage.
18719 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
18720 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
18721 * config/nios2/nios2.md (return): Use nios2_expand_return.
18723 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18724 Cesar Philippidis <cesar@codesourcery.com>
18725 Chung-Lin Tang <cltang@codesourcery.com>
18727 * config/nios2/predicates.md (pop_operation): New.
18728 (ldwm_operation, stwm_operation): New.
18729 (nios2_hard_register_operand): New.
18730 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
18731 (ldstwm_operation_p): Declare.
18732 (gen_ldstwm_peep): Declare.
18733 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
18734 (base_reg_adjustment_p): New.
18735 (pop_operation_p): New.
18736 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
18737 (nios2_ldstwm_regset_p): New.
18738 (ldstwm_operation_p): New.
18740 (nios2_ldst_parallel): New.
18741 (struct ldswm_operand): Declare.
18742 (compare_ldstwm_operands): New.
18743 (can_use_cdx_ldstw): New.
18744 (gen_ldstwm_peep): New.
18745 * config/nios2/nios2-ldstwm.sml: New.
18746 * config/nios2/nios2.md: Include ldstwm.md.
18747 * config/nios2/ldstwm.md: Generated.
18749 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18750 Cesar Philippidis <cesar@codesourcery.com>
18751 Chung-Lin Tang <cltang@codesourcery.com>
18753 * config/nios2/nios2.h (LABEL_ALIGN): Define.
18754 (REG_ALLOC_ORDER): Define.
18755 (ADJUST_REG_ALLOC_ORDER): Define.
18756 (HONOR_REG_ALLOC_ORDER): Define.
18757 (CDX_REG_P): Define.
18758 (ANDCLEAR_INT): Define.
18759 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
18760 (nios2_label_align): Declare.
18761 (nios2_cdx_narrow_form_p): Declare.
18762 (nios2_adjust_reg_alloc_order): Declare.
18763 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
18765 (nios2_large_unspec_reloc_p): New function, split from...
18766 (nios2_legitimate_pic_operand_p): ...here.
18767 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
18768 (nios2_print_operand_punct_valid_p): New.
18769 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
18770 (split_mem_address): New.
18771 (split_alu_insn): New.
18773 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
18774 (enum nios2_add_insn_kind): New.
18775 (nios2_add_insn_names, nios2_add_insn_narrow): New.
18776 (nios2_add_insn_classify): New.
18777 (nios2_add_insn_asm): New.
18778 (nios2_cdx_narrow_form_p): New.
18779 (label_align, min_labelno, max_labelno): New.
18780 (nios2_reorg): New.
18781 (nios2_label_align): New.
18782 (nios2_adjust_reg_alloc_order): New.
18783 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18784 (TARGET_MACHINE_DEPENDENT_REORG): Define.
18785 * config/nios2/constraints.md (P): New constraint.
18786 * config/nios2/predicates.md (const_and_operand): New.
18787 (and_operand): New.
18788 (stack_memory_operand): New.
18789 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
18790 (length): Update to use nios2_cdx_narrow_form_p().
18791 (type): Add new insn type values.
18792 (control, alu, st, ld, shift): Update insn reservations with
18793 new insn type values.
18794 (*high, *lo_sum): Define new insn patterns for constant generation.
18795 (movqi_internal, movhi_internal, movsi_internal): Reduce
18796 alternatives, update asm template to handle CDX variants, update
18798 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
18799 template, update type attributes.
18800 (extendhisi2, extendqi<mode>2): Likewise.
18801 (addsi3): Change to use function for asm string.
18802 (subsi3): Add CDX notation to asm template, update type attributes.
18803 (negsi3, one_cmplsi3): Likewise.
18804 (andsi3): New pattern, specialized from logical patterns.
18805 (<code>si3): Remove and case, combine alternatives, update asm
18807 (<shift_op>si3): Add CDX notation, update type attributes.
18808 (rotrsi3): Update type attribute.
18809 (*merge, extzv, insv): New insn patterns.
18810 (return): Change to define_expand.
18811 (simple_return): Add CDX notation, update type attributes.
18812 (indirect_jump): Add CDX notation.
18813 (jump): Update asm cases, update length attribute expression.
18814 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
18815 (nios2_cbranch): Update asm cases and length attribute expression
18816 to handle CDX variants.
18817 (nios2_cmp<code>): Update asm template.
18818 (nop): Add CDX notation, update type attributes.
18819 (trap): Add CDX notation.
18820 (ctrapsi4): Update asm cases and length attribute expression to
18821 handle CDX variant.
18822 * doc/md.texi (Machine Constraints): Document P constraint.
18824 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18825 Cesar Philippidis <cesar@codesourcery.com>
18826 Chung-Lin Tang <cltang@codesourcery.com>
18828 * config/nios2/nios2.h (SMALL_INT12): New macro.
18829 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
18830 (nios2_valid_addr_expr_p): Use it.
18831 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
18832 with implicit "io" instructions on R2.
18833 * config/nios2/constraints.md (w): New constraint.
18834 * config/nios2/predicates.md (ldstio_memory_operand): New.
18835 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
18836 operand predicate and constraint.
18837 (ld<bh>io_signed, st<bhw>io>): Likewise.
18838 * doc/md.texi (Machine Constraints): Document w constraint.
18840 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18841 Cesar Philippidis <cesar@codesourcery.com>
18842 Chung-Lin Tang <cltang@codesourcery.com>
18844 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
18845 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
18846 Nios II architecture level.
18847 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
18848 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
18849 (OPTION_DEFAULT_SPECS): Define.
18850 (ASM_SPEC): Add -march= spec strings.
18851 * config/nios2/nios2.c (nios2_option_override): Check for
18852 conflicts involving new options.
18853 * config.gcc (nios2*-*-*): Support --with-arch=.
18854 * doc/invoke.texi (Option Summary, Nios II Options): Document
18855 -march=, -mbmx, and -mcdx.
18857 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
18859 PR rtl-optimization/66626
18860 * lra-constraints.c (lra_constraints): Prevent equivalence
18861 substitution for static chain pseudo in functions with nonlocal
18864 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18866 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
18867 (nios2_emit_stack_limit_check): Add size parameter. Handle
18868 -fstack-limit-symbol as well as -fstack-limit-register.
18869 (nios2_expand_prologue): Emit only a single stack limit check,
18870 even if multiple stack adjustments are required.
18871 (nios2_option_override): Diagnose unsupported combination of -fpic
18872 and -stack-limit-symbol.
18874 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
18876 * Makefile.in (top_srcdir): New.
18877 * configure.ac: Use AM_ZLIB.
18878 * configure: Regeneated.
18880 2015-07-14 Matthias Klose <doko@ubuntu.com>
18883 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
18885 2015-07-14 Richard Biener <rguenther@suse.de>
18887 PR tree-optimization/66863
18888 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
18889 what we record for conversion use stmt lhs inequalities.
18891 2015-07-14 Richard Biener <rguenther@suse.de>
18893 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
18894 (decision_tree::gen_gimple): Likewise.
18896 2015-07-14 Tom de Vries <tom@codesourcery.com>
18898 * gcc.c (greater_than_spec_func): Declare forward.
18899 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
18900 -ftree-parallelize-loops={0,1}.
18901 (static_spec_functions): Add greater_than_spec_func function with name
18903 (greater_than_spec_func): New function.
18905 2015-07-14 Richard Biener <rguenther@suse.de>
18907 * tree-ssa-dom.c (record_temporary_equivalences): Merge
18908 wideing type conversion case from record_equivalences_from_incoming_edge
18909 and use record_equality to record equivalences.
18910 (record_equivalences_from_incoming_edge): Call
18911 record_temporary_equivalences.
18913 2015-07-14 Richard Biener <rguenther@suse.de>
18915 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
18916 (struct if_expr): New.
18917 (struct with_expr): Likewise.
18918 (is_a_helper): Add helpers for if_expr and with_expr.
18919 (struct simplify): Add simplify_kind enum and member. Remove
18921 (simplify::simplify): Adjust.
18922 (lower_commutative): Adjust.
18923 (lower_opt_convert): Likewise.
18924 (lower_cond): Likewise.
18925 (replace_id): Handle with_expr and if_expr.
18926 (lower_for): Adjust.
18927 (dt_simplify::gen_1): New recursive worker, split out from ...
18928 (dt_simplify::gen): ... here. Deal with if and with expansion
18930 (capture_info::capture_info): Take context argument
18931 (capture_info::walk_result): Only analyze specific result.
18932 (parser::parse_result): New function.
18933 (parser::parse_simplify): Adjust to parse ifs with then end
18935 (parser::parse_if): Simplify.
18936 (parser::parse_pattern): Pass down simplify kind.
18937 * match.pd: Convert if structure to new syntax.
18939 2015-07-13 Marek Polacek <polacek@redhat.com>
18941 * rtl.c (rtx_equal_p_cb): Fix typo.
18943 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
18945 * omega.h: Don't include config.h, don't include params.h again if
18946 omega.h has already been included.
18947 * graphite-poly.h: Include sese.h.
18948 * graphite.c: Don't include sese.h, remove needless includes and
18949 minimize includes outside #ifdef HAVE_isl block.
18950 * graphite-blocking.c: Don't include sese.h, remove needless includes,
18951 and wrap entire file in #ifdef HAVE_isl
18952 * graphite-dependences.c: Likewise.
18953 * graphite-interchange.c: Likewise.
18954 * graphite-isl-ast-to-gimple.c: Likewise.
18955 * graphite-optimize-isl.c: Likewise.
18956 * graphite-poly.c: Likewise.
18957 * graphite-scop-detection.c: Likewise.
18958 * graphite-sese-to-poly.c: Likewise.
18960 2015-07-13 Tom de Vries <tom@codesourcery.com>
18962 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
18964 2015-07-13 Renlin Li <renlin.li@arm.com>
18967 * simplify-rtx.c (simplify_const_relational_operation): Add
18968 side_effects_p checks.
18970 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
18972 * bitmap.h: Fix double word typos.
18973 * builtins.c: Same.
18975 * cfgloopmanip.c: Same.
18978 * cgraphclones.c: Same.
18980 * config/aarch64/aarch64-protos.h: Same.
18981 * config/aarch64/aarch64.c: Same.
18982 * config/aarch64/aarch64.md: Same.
18983 * config/arm/arm.md: Same.
18984 * config/arm/arm1020e.md: Same.
18985 * config/arm/arm1026ejs.md: Same.
18986 * config/arm/arm926ejs.md: Same.
18987 * config/arm/fa526.md: Same.
18988 * config/arm/fa606te.md: Same.
18989 * config/arm/fa626te.md: Same.
18990 * config/arm/fa726te.md: Same.
18991 * config/arm/fmp626.md: Same.
18992 * config/darwin.c: Same.
18993 * config/epiphany/epiphany.c: Same.
18994 * config/frv/frv.c: Same.
18995 * config/ft32/ft32.c: Same.
18996 * config/gnu-user.h: Same.
18997 * config/h8300/constraints.md: Same.
18998 * config/i386/i386.c: Same.
18999 * config/i386/i386.md: Same.
19000 * config/iq2000/iq2000.md: Same.
19001 * config/mips/mips.c: Same.
19002 * config/mmix/mmix.md: Same.
19003 * config/moxie/moxie.c: Same.
19004 * config/nds32/nds32.md: Same.
19005 * config/pa/pa.h: Same.
19006 * config/rs6000/aix.h: Same.
19007 * config/rs6000/rs6000.h: Same.
19008 * config/sh/sh.c: Same.
19009 * config/tilegx/tilegx.md: Same.
19010 * config/tilepro/gen-mul-tables.cc: Same.
19013 * doc/invoke.texi: Same.
19015 * dwarf2out.c: Same.
19018 * genmatch.c: Same.
19019 * gimplify.c: Same.
19020 * hash-table.h: Same.
19021 * internal-fn.c: Same.
19023 * ipa-devirt.c: Same.
19026 * ipa-profile.c: Same.
19027 * ipa-prop.c: Same.
19028 * ipa-prop.h: Same.
19031 * reg-stack.c: Same.
19032 * regcprop.c: Same.
19037 * tree-inline.c: Same.
19038 * tree-sra.c: Same.
19039 * tree-ssa-dom.c: Same.
19040 * tree-ssa-loop-ivopts.c: Same.
19041 * tree-ssa-structalias.c: Same.
19042 * tree-ssa-tail-merge.c: Same.
19043 * tree-ssa-ter.c: Same.
19044 * tree-ssa-threadupdate.c: Same.
19045 * tree-ssa-uninit.c: Same.
19046 * tree-ssanames.c: Same.
19047 * tree-vect-loop-manip.c: Same.
19048 * tree-vrp.c: Same.
19050 * valtrack.c: Same.
19053 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
19055 PR middle-end/66726
19056 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
19057 tree_ssa_phiopt_worker): Call it.
19059 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
19061 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
19062 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
19065 2015-07-11 Marek Polacek <polacek@redhat.com>
19067 PR middle-end/66353
19068 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
19069 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
19070 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
19071 rather than bb_has_abnormal_call_pred.
19072 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
19073 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
19074 rather than bb_has_abnormal_call_pred.
19076 2015-07-10 Anatoly Sokolov <aesok@post.ru>
19078 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
19079 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
19080 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19081 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
19082 v850_legitimate_address_p): New functions.
19083 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
19085 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
19088 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
19089 indirect sibcall with register arguments if register available
19090 for argument passing.
19091 (init_cumulative_args): Set cfun->machine->arg_reg_available
19092 to (cum->nregs > 0) or to true if function has a variable
19094 (function_arg_advance_32): Set cfun->machine->arg_reg_available
19095 to false if cum->nregs <= 0.
19096 * config/i386/i386.h (machine_function): Add arg_reg_available.
19098 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
19100 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
19101 and gen_higpart instead of gen_rtx_SUBREG.
19102 * config/i386/i386.md
19103 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
19104 (read-modify peephole2): Use gen_lowpart instead of
19105 gen_rtx_SUBREG for operand 5.
19107 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
19109 * config/tilepro/gen-mul-tables.cc (main): Change include list for
19111 * config/tilepro/mul-tables.c: Regenerate.
19112 * config/tilegx/mul-tables.c: Regenerate.
19114 2015-07-10 Richard Biener <rguenther@suse.de>
19116 * fold-const.c (distribute_bit_expr): Remove.
19117 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
19118 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
19119 to A & (B | C) and simplifying A << C1 << C2 to ...
19120 * match.pd: ... patterns here.
19122 2015-07-10 Jiong Wang <jiong.wang@arm.com>
19124 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19125 Mark mem as READONLY and NOTRAP for PIC symbol.
19127 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
19129 * gimple-predict.h: New file.
19130 (gimple_predict_predictor, gimple_predict_set_predictor,
19131 gimple_predict_outcome, gimple_predict_set_outcome,
19132 gimple_build_predict): Relocate here.
19133 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
19134 gimple_predict_outcome, gimple_predict_set_outcome): Move to
19136 * gimple.c (gimple_build_predict): Move to gimple-predict.h
19137 * basic-block.h: Don't include cfghooks.h.
19138 * backend.h: Don't include predict.h.
19139 * cfghooks.h: Include predict.h.
19140 * gimple-pretty-print.c: Include gimple-predict.h.
19141 * gimplify.c: Likwise.
19142 * predict.c: Adjust includes.
19143 * tree-inline.c: Likewise.
19144 * asan.c: Likewise.
19145 * auto-inc-dec.c: Likewise.
19146 * auto-profile.c: Likewise.
19147 * bb-reorder.c: Likewise.
19148 * builtins.c: Likewise.
19149 * caller-save.c: Likewise.
19150 * calls.c: Likewise.
19151 * cfganal.c: Likewise.
19152 * cfgbuild.c: Likewise.
19154 * cfgcleanup.c: Likewise.
19155 * cfgexpand.c: Likewise.
19156 * cfghooks.c: Likewise.
19157 * cfgloopanal.c: Likewise.
19158 * cfgloop.c: Likewise.
19159 * cfgloopmanip.c: Likewise.
19160 * cfgrtl.c: Likewise.
19161 * cgraph.c: Likewise.
19162 * cgraphunit.c: Likewise.
19163 * combine.c: Likewise.
19164 * cprop.c: Likewise.
19167 * dojump.c: Likewise.
19169 * except.c: Likewise.
19170 * expmed.c: Likewise.
19171 * expr.c: Likewise.
19172 * final.c: Likewise.
19173 * fold-const.c: Likewise.
19174 * function.c: Likewise.
19175 * fwprop.c: Likewise.
19176 * gcc-plugin.h: Likewise.
19177 * gcse.c: Likewise.
19178 * genattrtab.c: Likewise.
19179 * genemit.c: Likewise.
19180 * gengtype.c: Likewise.
19181 * genopinit.c: Likewise.
19182 * genoutput.c: Likewise.
19183 * genpreds.c: Likewise.
19184 * genrecog.c: Likewise.
19185 * gimple-fold.c: Likewise.
19186 * gimple-iterator.c: Likewise.
19187 * gimple-ssa-isolate-paths.c: Likewise.
19188 * gimple-ssa-strength-reduction.c: Likewise.
19189 * graph.c: Likewise.
19190 * graphite-blocking.c: Likewise.
19191 * graphite.c: Likewise.
19192 * graphite-dependences.c: Likewise.
19193 * graphite-interchange.c: Likewise.
19194 * graphite-isl-ast-to-gimple.c: Likewise.
19195 * graphite-optimize-isl.c: Likewise.
19196 * graphite-poly.c: Likewise.
19197 * graphite-scop-detection.c: Likewise.
19198 * graphite-sese-to-poly.c: Likewise.
19199 * haifa-sched.c: Likewise.
19200 * ifcvt.c: Likewise.
19201 * internal-fn.c: Likewise.
19202 * ipa-cp.c: Likewise.
19203 * ipa-profile.c: Likewise.
19204 * ipa-split.c: Likewise.
19205 * ipa-utils.c: Likewise.
19206 * ira-build.c: Likewise.
19207 * ira-color.c: Likewise.
19208 * ira-conflicts.c: Likewise.
19209 * ira-costs.c: Likewise.
19210 * ira-emit.c: Likewise.
19211 * ira-lives.c: Likewise.
19212 * jump.c: Likewise.
19213 * loop-doloop.c: Likewise.
19214 * loop-init.c: Likewise.
19215 * loop-invariant.c: Likewise.
19216 * loop-unroll.c: Likewise.
19217 * lower-subreg.c: Likewise.
19218 * lra-assigns.c: Likewise.
19220 * lra-coalesce.c: Likewise.
19221 * lra-constraints.c: Likewise.
19222 * lra-lives.c: Likewise.
19223 * lto-cgraph.c: Likewise.
19224 * lto-streamer-in.c: Likewise.
19225 * mode-switching.c: Likewise.
19226 * modulo-sched.c: Likewise.
19227 * omp-low.c: Likewise.
19228 * optabs.c: Likewise.
19229 * passes.c: Likewise.
19230 * postreload.c: Likewise.
19231 * postreload-gcse.c: Likewise.
19232 * profile.c: Likewise.
19233 * recog.c: Likewise.
19234 * regstat.c: Likewise.
19235 * reload1.c: Likewise.
19236 * reorg.c: Likewise.
19237 * rtlanal.c: Likewise.
19238 * sched-ebb.c: Likewise.
19239 * sel-sched-ir.c: Likewise.
19240 * sese.c: Likewise.
19241 * shrink-wrap.c: Likewise.
19242 * simplify-rtx.c: Likewise.
19243 * stmt.c: Likewise.
19244 * store-motion.c: Likewise.
19245 * tracer.c: Likewise.
19246 * trans-mem.c: Likewise.
19247 * tree-call-cdce.c: Likewise.
19248 * tree-cfg.c: Likewise.
19249 * tree-cfgcleanup.c: Likewise.
19250 * tree-chkp.c: Likewise.
19251 * tree-complex.c: Likewise.
19252 * tree-eh.c: Likewise.
19253 * tree-if-conv.c: Likewise.
19254 * tree-loop-distribution.c: Likewise.
19255 * tree-outof-ssa.c: Likewise.
19256 * tree-parloops.c: Likewise.
19257 * tree-predcom.c: Likewise.
19258 * tree-pretty-print.c: Likewise.
19259 * tree-profile.c: Likewise.
19260 * tree-sra.c: Likewise.
19261 * tree-ssa.c: Likewise.
19262 * tree-ssa-coalesce.c: Likewise.
19263 * tree-ssa-dce.c: Likewise.
19264 * tree-ssa-dom.c: Likewise.
19265 * tree-ssa-forwprop.c: Likewise.
19266 * tree-ssa-ifcombine.c: Likewise.
19267 * tree-ssa-loop-ch.c: Likewise.
19268 * tree-ssa-loop-im.c: Likewise.
19269 * tree-ssa-loop-ivcanon.c: Likewise.
19270 * tree-ssa-loop-ivopts.c: Likewise.
19271 * tree-ssa-loop-manip.c: Likewise.
19272 * tree-ssa-loop-prefetch.c: Likewise.
19273 * tree-ssa-loop-unswitch.c: Likewise.
19274 * tree-ssa-math-opts.c: Likewise.
19275 * tree-ssa-phiopt.c: Likewise.
19276 * tree-ssa-pre.c: Likewise.
19277 * tree-ssa-reassoc.c: Likewise.
19278 * tree-ssa-sink.c: Likewise.
19279 * tree-ssa-tail-merge.c: Likewise.
19280 * tree-ssa-threadedge.c: Likewise.
19281 * tree-ssa-threadupdate.c: Likewise.
19282 * tree-switch-conversion.c: Likewise.
19283 * tree-tailcall.c: Likewise.
19284 * tree-vect-data-refs.c: Likewise.
19285 * tree-vect-loop.c: Likewise.
19286 * tree-vect-loop-manip.c: Likewise.
19287 * tree-vectorizer.c: Likewise.
19288 * tree-vrp.c: Likewise.
19289 * ubsan.c: Likewise.
19290 * value-prof.c: Likewise.
19291 * varasm.c: Likewise.
19292 * var-tracking.c: Likewise.
19293 * config/aarch64/aarch64-builtins.c: Likewise.
19294 * config/aarch64/aarch64.c: Likewise.
19295 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19296 * config/alpha/alpha.c: Likewise.
19297 * config/arc/arc.c: Likewise.
19298 * config/arm/arm.c: Likewise.
19299 * config/avr/avr.c: Likewise.
19300 * config/bfin/bfin.c: Likewise.
19301 * config/c6x/c6x.c: Likewise.
19302 * config/cr16/cr16.c: Likewise.
19303 * config/cris/cris.c: Likewise.
19304 * config/darwin.c: Likewise.
19305 * config/darwin-c.c: Likewise.
19306 * config/epiphany/epiphany.c: Likewise.
19307 * config/epiphany/mode-switch-use.c: Likewise.
19308 * config/epiphany/resolve-sw-modes.c: Likewise.
19309 * config/fr30/fr30.c: Likewise.
19310 * config/frv/frv.c: Likewise.
19311 * config/ft32/ft32.c: Likewise.
19312 * config/h8300/h8300.c: Likewise.
19313 * config/i386/i386.c: Likewise.
19314 * config/i386/winnt.c: Likewise.
19315 * config/ia64/ia64.c: Likewise.
19316 * config/iq2000/iq2000.c: Likewise.
19317 * config/lm32/lm32.c: Likewise.
19318 * config/m32c/m32c.c: Likewise.
19319 * config/m32r/m32r.c: Likewise.
19320 * config/m68k/m68k.c: Likewise.
19321 * config/mcore/mcore.c: Likewise.
19322 * config/mep/mep.c: Likewise.
19323 * config/microblaze/microblaze.c: Likewise.
19324 * config/mips/mips.c: Likewise.
19325 * config/mmix/mmix.c: Likewise.
19326 * config/mn10300/mn10300.c: Likewise.
19327 * config/moxie/moxie.c: Likewise.
19328 * config/msp430/msp430.c: Likewise.
19329 * config/nds32/nds32.c: Likewise.
19330 * config/nds32/nds32-cost.c: Likewise.
19331 * config/nds32/nds32-fp-as-gp.c: Likewise.
19332 * config/nds32/nds32-intrinsic.c: Likewise.
19333 * config/nds32/nds32-isr.c: Likewise.
19334 * config/nds32/nds32-md-auxiliary.c: Likewise.
19335 * config/nds32/nds32-memory-manipulation.c: Likewise.
19336 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19337 * config/nds32/nds32-predicates.c: Likewise.
19338 * config/nios2/nios2.c: Likewise.
19339 * config/nvptx/nvptx.c: Likewise.
19340 * config/pa/pa.c: Likewise.
19341 * config/pdp11/pdp11.c: Likewise.
19342 * config/rl78/rl78.c: Likewise.
19343 * config/rs6000/rs6000.c: Likewise.
19344 * config/rx/rx.c: Likewise.
19345 * config/s390/s390.c: Likewise.
19346 * config/sh/sh.c: Likewise.
19347 * config/sh/sh-mem.cc: Likewise.
19348 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19349 * config/sh/sh_treg_combine.cc: Likewise.
19350 * config/sparc/sparc.c: Likewise.
19351 * config/spu/spu.c: Likewise.
19352 * config/stormy16/stormy16.c: Likewise.
19353 * config/tilegx/tilegx.c: Likewise.
19354 * config/tilepro/tilepro.c: Likewise.
19355 * config/v850/v850.c: Likewise.
19356 * config/vax/vax.c: Likewise.
19357 * config/visium/visium.c: Likewise.
19358 * config/xtensa/xtensa.c: Likewise.
19360 2015-07-10 Richard Biener <rguenther@suse.de>
19362 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
19363 (decision_tree::gen_gimple): Likewise.
19364 (decision_tree::gen_generic): Likewise.
19366 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
19369 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
19370 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
19372 2015-07-10 Jakub Jelinek <jakub@redhat.com>
19374 PR middle-end/66820
19375 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
19376 or ORT_TASK contexts.
19377 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
19380 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19382 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
19385 2015-07-10 Tom de Vries <tom@codesourcery.com>
19387 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
19388 insert nit + 1 bound.
19390 2015-07-10 Richard Biener <rguenther@suse.de>
19392 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
19393 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
19394 (if_convertible_loop_p_1): For this always compute bb predicates.
19395 (if_convertible_loop_p): And free them.
19397 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19399 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
19402 2015-07-10 Richard Biener <rguenther@suse.de>
19404 PR tree-optimization/66823
19405 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
19406 inverted predicate.
19408 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
19410 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
19411 to handle mips[32|64]r3 and mips[32|64]r5.
19413 2015-07-09 Jakub Jelinek <jakub@redhat.com>
19415 PR middle-end/66633
19416 * tree-nested.c (get_static_chain): Or in a flag into
19417 info->static_chain_added.
19418 (get_frame_field, get_nonlocal_debug_decl): Likewise.
19419 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
19420 2015-07-01 changes.
19421 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
19422 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
19425 PR tree-optimization/66718
19426 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
19428 (vect_simd_lane_linear): New function.
19429 (vectorizable_simd_clone_call): Support using linear arguments for
19430 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
19432 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19435 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
19437 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
19439 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
19440 Use machine mode, not enum machine_mode in the prototype.
19442 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
19443 classify 128-bit floating point support.
19444 (FLOAT128_IBM_P): Likewise.
19445 (FLOAT128_VECTOR_P): Likewise.
19446 (FLOAT128_2REG_P): Likewise.
19447 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
19448 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
19449 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
19450 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
19452 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
19453 tests against TFmode/TDmode, since those modes do not use VSX
19455 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
19457 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
19458 tests against TFmode, etc.
19459 (invalid_e500_subreg): Add tests against IFmode/KFmode.
19460 (reg_offset_addressing_ok_p): Likewise.
19461 (rs6000_legitimate_offset_address_p): Likewise.
19462 (rs6000_legitimize_address): Likewise.
19463 (rs6000_legitimize_reload_address): Likewise.
19464 (rs6000_legitimate_address_p): Clean up tests against TFmode and
19465 TDmode to use the new helper macros, which will include IFmode and
19467 (rs6000_emit_move): Likewise.
19468 (rs6000_darwin64_record_arg_recurse): Likewise.
19469 (print_operand): Likewise.
19470 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
19471 that uses a single vector register as a vector and not as a
19472 floating point register in terms of the calling sequence.
19473 (rs6000_discover_homogeneous_aggregate): Likewise.
19474 (rs6000_return_in_memory): Likewise.
19475 (init_cumulative_args): Likewise.
19476 (rs6000_function_arg_boundary): Likewise.
19477 (rs6000_function_arg_advance_1): Likewise.
19478 (rs6000_function_arg): Likewise.
19479 (rs6000_pass_by_reference): Likewise.
19480 (rs6000_gimplify_va_arg): Likewise.
19481 (rs6000_secondary_reload_memory): Use machine_mode not enum
19483 (rs6000_split_multireg_move): Use new helper macros.
19484 (spe_func_has_64bit_regs_p): Likewise.
19485 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
19486 (output_toc): Use new helper macros.
19487 (rs6000_register_move_cost): Likewise.
19488 (rs6000_function_value): Add IEEE 128-bit floating point calling
19490 (rs6000_libcall_value): Likewise.
19491 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
19492 floating point support.
19493 (rs6000_vector_mode_supported_p): Likewise.
19495 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
19497 PR rtl-optimization/66782
19498 * lra-int.h (struct lra_insn_recog_data): Add comment about
19499 clobbered hard regs for arg_hard_regs.
19500 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
19501 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
19502 Add condition for processing used hard regs.
19503 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
19504 Process clobbered hard regs.
19506 2015-07-09 Michael Matz <matz@suse.de>
19508 * genmatch.c (fprintf_indent): New function.
19509 (operand::gen_transform): Add indent parameter.
19510 (expr::gen_transform, c_expr::gen_transform,
19511 capture::gen_transform): Ditto and use fprintf_indent.
19512 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
19513 (dt_operand::gen, dt_operand::gen_predicate,
19514 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
19515 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
19516 (decision_tree::gen_gimple): Adjust calls and indent generated
19518 (decision_tree::gen_generic): Ditto.
19519 (write_predicate): Ditto.
19521 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
19524 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
19525 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
19526 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
19527 {GENERAL,SSE,MMX}_REG_P where appropriate.
19529 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
19531 * lto-streamer.h: Don't include target.h and alloc-pool.h.
19532 * builtins.c: Adjust includes.
19533 * gimple.c: Likewise.
19534 * ipa-icf.c: Likewise.
19535 * lto-opts.c: Likewise.
19536 * ipa-reference.c: Likewise.
19537 * lto-section-out.c: Likewise.
19538 * lto-streamer-in.c: Likewise.
19539 * lto-streamer-out.c: Likewise.
19540 * opts-global.c: Likewise.
19541 * symtab.c: Likewise.
19542 * tree-chkp.c: Likewise.
19543 * tree-ssa-live.c: Likewise.
19544 * tree-streamer-in.c: Likewise.
19545 * tree-streamer-out.c: Likewise.
19546 * config/darwin.c: Likewise.
19547 * config/i386/winnt.c: Likewise.
19549 2015-07-09 Richard Biener <rguenther@suse.de>
19551 * genmatch.c (struct expr): Add force_single_use flag.
19552 (expr::expr): Add copy constructor.
19553 (capture_info::walk_match): Gather force_single_use captures.
19554 (expr::gen_transform): Use possibly NULLified sequence.
19555 (dt_simplify::gen): Apply single-use restrictions by NULLifying
19556 seq if any constrained expr is not single-use.
19557 (parser::parse_expr): Refactor to allow multiple flags. Handle
19558 's' flag to force an expression have a single-use if the pattern
19559 simplifies to more than one statement.
19560 * match.pd: Convert most single_use conditionals to :s flags.
19562 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19564 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
19565 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19566 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
19568 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
19570 * flags.h: Don't include flag-types.h or options.h.
19571 * opts-common.c: Adjust includes.
19572 * opts-global.c: Likewise.
19573 * common/config/epiphany/epiphany-common.c: Likewise.
19575 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19578 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
19581 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19584 * config/i386/i386.c (ix86_return_in_memory): Return true
19585 if int_size_in_bytes returns negative for IA MCU.
19587 2015-07-09 Marek Polacek <polacek@redhat.com>
19589 PR tree-optimization/66718
19590 * Makefile.in (OBJS): Add gimple-laddress.o.
19591 * passes.def: Schedule pass_laddress.
19592 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
19593 * tree-pass.h (make_pass_laddress): Declare.
19594 * gimple-laddress.c: New file.
19596 2015-07-09 Richard Biener <rguenther@suse.de>
19598 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
19600 2015-07-09 Richard Biener <rguenther@suse.de>
19602 PR tree-optimization/66807
19603 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
19605 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
19607 * function.c (stack_protect_epilogue): Use if rather than switch for
19608 check targetm.have_stack_protect_test.
19610 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19612 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
19613 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
19614 * config/arc/arc.h: Likewise.
19615 * config/arm/arm.h: Likewise.
19616 * config/bfin/bfin.h: Likewise.
19617 * config/epiphany/epiphany.h: Likewise.
19618 * config/frv/frv.h: Likewise.
19619 * config/ia64/ia64.h: Likewise.
19620 * config/iq2000/iq2000.h: Likewise.
19621 * config/lm32/lm32.h: Likewise.
19622 * config/m32r/m32r.h: Likewise.
19623 * config/mcore/mcore.h: Likewise.
19624 * config/mep/mep.h: Likewise.
19625 * config/microblaze/microblaze.h: Likewise.
19626 * config/mips/mips.h: Likewise.
19627 * config/mmix/mmix.h: Likewise.
19628 * config/mn10300/mn10300.h: Likewise.
19629 * config/nds32/nds32.h: Likewise.
19630 * config/nios2/nios2.h: Likewise.
19631 * config/pa/pa.h: Likewise.
19632 * config/rl78/rl78.h: Likewise.
19633 * config/sh/sh.h: Likewise.
19634 * config/sparc/sparc.h: Likewise.
19635 * config/stormy16/stormy16.h: Likewise.
19636 * config/tilegx/tilegx.h: Likewise.
19637 * config/tilepro/tilepro.h: Likewise.
19638 * config/v850/v850.h: Likewise.
19639 * config/xtensa/xtensa.h: Likewise.
19640 * doc/tm.texi: Regenerate.
19641 * doc/tm.texi.in: Adjust.
19642 * combine.c (simplify_set): Likewise.
19643 (simplify_comparison): Likewise.
19644 * expr.c (store_constructor): Likewise.
19645 * internal-fn.c (expand_arith_overflow): Likewise.
19646 * reload.c (push_reload): Likewise.
19647 (find_reloads): Likewise.
19648 (find_reloads_subreg_address): Likewise.
19649 * reload1.c (eliminate_regs_1): Likewise.
19650 * rtlanal.c (nonzero_bits1): Likewise.
19651 (num_sign_bit_copies1): Likewise.
19652 * simplify-rtx.c (simplify_truncation): Likewise.
19654 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19656 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
19657 of AUTO_INC_DEC with the preprocessor.
19658 * combine.c (combine_instructions): Likewise.
19659 (can_combine_p): Likewise.
19660 (try_combine): Likewise.
19661 * emit-rtl.c (try_split): Likewise.
19662 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
19663 * lower-subreg.c (resolve_simple_move): Likewise.
19664 * lra.c (update_inc_notes): Likewise.
19665 * recog.c (asm_operand_ok): Likewise.
19666 (constrain_operands): Likewise.
19667 * regrename.c (scan_rtx_address): Likewise.
19668 * reload.c (update_auto_inc_notes): Likewise.
19669 (reg_inc_found_and_valid_p): Likewise.
19670 * reload1.c (reload): Likewise.
19671 (emit_input_reload_insns): Likewise.
19672 (delete_output_reload): Likewise.
19673 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
19674 * valtrack.c (cleanup_auto_inc_dec): Likewise.
19676 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19678 * rtl.h: Always define AUTO_INC_DEC.
19679 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
19680 * combine.c (combine_instructions): Likewise.
19681 (can_combine_p): Likewise.
19682 (try_combine): Likewise.
19683 * emit-rtl.c (try_split): Likewise.
19684 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
19685 * lower-subreg.c (resolve_simple_move): Likewise.
19686 * lra.c (update_inc_notes): Likewise.
19687 * recog.c (asm_operand_ok): Likewise.
19688 (constrain_operands): Likewise.
19689 * regrename.c (scan_rtx_address): Likewise.
19690 * reload.c (update_auto_inc_notes): Likewise.
19691 (find_equiv_reg): Likewise.
19692 * reload1.c (reload): Likewise.
19693 (reload_as_needed): Likewise.
19694 (choose_reload_regs): Likewise.
19695 (emit_input_reload_insns): Likewise.
19696 (delete_output_reload): Likewise.
19697 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
19698 * valtrack.c (cleanup_auto_inc_dec): Likewise.
19700 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19702 * combine.c (can_combine_def_p): Don't check the value of
19703 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
19704 (combinable_i3pat): Likewise.
19705 (mark_used_regs_combine): Likewise.
19706 * regrename.c (rename_chains): Likewise.
19707 * reload.c (find_reloads_address): Likewise.
19708 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
19710 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19712 * combine.c (update_rsp_from_reg_equal): Don't check if
19713 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
19714 (reg_nonzero_bits_for_combine): Likewise.
19715 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
19717 * config/frv/frv.h: Likewise.
19718 * config/lm32/lm32.h: Likewise.
19719 * config/mep/mep.h: Likewise.
19720 * config/mips/mips.h: Likewise.
19721 * config/rs6000/rs6000.h: Likewise.
19722 * config/sh/sh.h: Likewise.
19723 * config/tilegx/tilegx.h (enum reg_class): Likewise.
19724 * config/tilepro/tilepro.h: Likewise.
19725 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
19726 * doc/tm.texi: Regenerate.
19727 * doc/tm.texi.in: Adjust.
19728 * rtlanal.c (nonzero_bits1): Likewise.
19730 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19732 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
19733 with the preprocessor.
19734 (combine_instructions): Likewise.
19735 (try_combine): Likewise.
19737 (distribute_notes): Likewise.
19739 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19741 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
19743 (simplify_set): Likewise.
19744 * cse.c (cse_insn): Likewise.
19745 * fold-const.c (fold_single_bit_test): Likewise.
19746 (fold_unary_loc): Likewise.
19747 * postreload.c (reload_cse_simplify_set): Likewise.
19748 (reload_cse_simplify_operands): Likewise.
19750 2015-07-08 Jiong Wang <jiong.wang@arm.com>
19752 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
19753 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
19755 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
19758 * config/i386/x86intrin.h: Include <adxintrin.h> even if
19759 __iamcu__ is defined.
19761 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
19763 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
19765 2015-07-08 Iain Sandoe <iain@codesourcery.com>
19768 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
19769 names from preservation.
19771 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
19774 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
19776 (function_arg_advance_32): Don't pass vectors in registers for
19778 (function_arg_32): Likewise.
19779 (ix86_return_in_memory): Don't return vectors in registers for
19782 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
19784 PR middle-end/66334
19785 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
19786 hard regno live at the start of BB with incoming abnormal edges.
19787 * lra-lives.c (process_bb_lives): Ditto.
19789 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
19792 * config/nvptx/mkoffload.c (main): Create an offload image only in
19793 64-bit configurations.
19795 2015-07-08 Martin Liska <mliska@suse.cz>
19798 * tree-sra.c (create_access_1): Call ctor without brackets.
19799 (create_artificial_child_access): Likewise.
19801 2015-07-08 Richard Biener <rguenther@suse.de>
19803 PR tree-optimization/66793
19804 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
19805 Properly split the block after stmts ending it.
19807 2015-07-08 Richard Biener <rguenther@suse.de>
19809 PR tree-optimization/66794
19810 * passes.c (execute_function_todo): Assert that post-dominators
19812 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
19813 Free post-dominators.
19815 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19817 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
19820 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
19822 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
19823 more than or equal 8 and less than 32 when optimizing for size.
19825 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19827 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
19828 COSTS_N_INSNS (1) and increment it appropriately throughout the
19831 2015-07-08 Richard Biener <rguenther@suse.de>
19833 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
19835 2015-07-08 Alan Modra <amodra@gmail.com>
19837 * target.def (rtx_costs): Remove "code" param, add "mode".
19838 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
19839 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
19840 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
19841 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
19842 call. Track mode when given in rtx.
19843 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
19844 (default_address_cost): Pass Pmode to rtx_cost.
19845 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
19846 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
19848 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
19849 (notreg_cost): Add mode param. Use it.
19850 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
19851 mode param and pass to set_src_cost. Update all calls.
19852 (hash_scan_set): Formatting.
19853 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
19854 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
19856 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
19857 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
19858 emit_store_flag): Update set_src_cost and rtx_cost calls.
19859 * auto-inc-dec.c (attempt_change): Likewise.
19860 * calls.c (precompute_register_parameters): Likewise.
19861 * combine.c (expand_compound_operation, make_extraction,
19862 force_to_mode, distribute_and_simplify_rtx): Likewise.
19863 * dojump.c (prefer_and_bit_test): Likewise.
19864 * dse.c (find_shift_sequence): Likewise.
19865 * expr.c (compress_float_constant): Likewise.
19866 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
19867 * ifcvt.c (noce_try_sign_mask): Likewise.
19868 * loop-doloop.c (doloop_optimize): Likewise.
19869 * loop-invariant.c (create_new_invariant): Likewise.
19870 * lower-subreg.c (shift_cost, compute_costs): Likewise.
19871 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
19872 lshift_cheap_p): Likewise.
19873 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
19874 try_replace_in_use, reload_cse_move2add): Likewise.
19875 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
19877 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
19878 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
19879 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
19880 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
19881 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
19882 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
19884 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
19885 * config/arc/arc.c (arc_rtx_costs): Likewise.
19886 * config/arm/arm.c (arm_rtx_costs): Likewise.
19887 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
19888 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
19889 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
19890 * config/cris/cris.c (cris_rtx_costs): Likewise.
19891 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
19892 * config/frv/frv.c (frv_rtx_costs): Likewise.
19893 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
19894 * config/i386/i386.c (ix86_rtx_costs): Likewise.
19895 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
19896 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
19897 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
19898 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
19899 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
19900 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
19901 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
19902 * config/mep/mep.c (mep_rtx_cost): Likewise.
19903 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
19904 * config/mips/mips.c (mips_rtx_costs): Likewise.
19905 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
19906 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
19907 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
19908 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
19909 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
19910 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
19911 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
19912 * config/pa/pa.c (hppa_rtx_costs): Likewise.
19913 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
19914 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
19915 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
19916 * config/s390/s390.c (s390_rtx_costs): Likewise.
19917 * config/sh/sh.c (sh_rtx_costs): Likewise.
19918 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
19919 * config/spu/spu.c (spu_rtx_costs): Likewise.
19920 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
19921 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
19922 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
19923 * config/v850/v850.c (v850_rtx_costs): Likewise.
19924 * config/vax/vax.c (vax_rtx_costs): Likewise.
19925 * config/visium/visium.c (visium_rtx_costs): Likewise.
19926 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
19927 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
19928 "code" param, and pass as outer_code to first rtx_cost call. Pass
19929 mode to rtx_cost calls.
19930 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
19932 (aarch64_rtx_costs_wrapper): Update.
19933 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
19934 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
19936 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
19937 and rtx_cost calls.
19938 (avr_operand_rtx_cost): Similarly.
19939 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
19940 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
19941 * config/mips/mips.c (mips_stack_address_p): Comment typo.
19942 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
19943 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
19944 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
19946 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
19947 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
19948 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
19949 * doc/tm.texi: Regenerate.
19951 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
19953 * tree-core.h: Include symtab.h.
19954 * rtl.h: Include hard-reg-set.h but not flags.h.
19955 (HARD_CONST): Remove condition compilation involving HARD_CONST since
19956 hard-reg-set.h is always included.
19957 * regs.h: Don't include hard-reg-set.h or rtl.h.
19958 * cfg.h: Include dominance.h.
19959 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
19960 * backend.h: New. Aggregate commonly used backend header files.
19961 * gimple-ssa.h: Don't include tree-hasher.h.
19962 * ssa.h: New. Aggregate commonly used SSA header files.
19963 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
19964 * sel-sched-ir.h: Flatten includes.
19965 * lra-int.h: Flatten completely.
19966 * sel-sched-dump.h: Flatten includes.
19967 * ira-int.h: Flatten includes.
19968 * gimple-streamer.h: Remove all includes.
19969 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
19970 * resource.h: Flatten hard-reg-set.h and df.h.
19971 * sched-int.h: Flatten insn-arrt.h and df.h.
19972 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
19973 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
19974 * genattrtab.c (write_header): Adjust generated includes.
19975 * genautomata.c (main): Likewise.
19976 * genconditions.c (write-header): Likewise.
19977 * genemit.c (main): Likewise.
19978 * gengtype.c (open_base_files): Likewise.
19979 * genopinit.c (main): Likewise.
19980 * genoutput.c (output_prologue): Likewise.
19981 * genpeep.c (main): Likewise.
19982 * genpreds.c (write_insn_preds_c): Likewise.
19983 * genrecog.c (write_header): Likewise.
19984 * alias.c: Adjust includes.
19985 * asan.c: Likewise.
19986 * attribs.c: Likewise.
19987 * auto-inc-dec.c: Likewise.
19988 * auto-profile.c: Likewise.
19989 * bb-reorder.c: Likewise.
19990 * bt-load.c: Likewise.
19991 * builtins.c: Likewise.
19992 * caller-save.c: Likewise.
19993 * calls.c: Likewise.
19994 * ccmp.c: Likewise.
19996 * cfganal.c: Likewise.
19997 * cfgbuild.c: Likewise.
19998 * cfgcleanup.c: Likewise.
19999 * cfgexpand.c: Likewise.
20000 * cfghooks.c: Likewise.
20001 * cfgloop.c: Likewise.
20002 * cfgloopanal.c: Likewise.
20003 * cfgloopmanip.c: Likewise.
20004 * cfgrtl.c: Likewise.
20005 * cgraph.c: Likewise.
20006 * cgraphbuild.c: Likewise.
20007 * cgraphclones.c: Likewise.
20008 * cgraphunit.c: Likewise.
20009 * cilk-common.c: Likewise.
20010 * combine-stack-adj.c: Likewise.
20011 * combine.c: Likewise.
20012 * compare-elim.c: Likewise.
20013 * convert.c: Likewise.
20014 * coverage.c: Likewise.
20015 * cppbuiltin.c: Likewise.
20016 * cprop.c: Likewise.
20018 * cselib.c: Likewise.
20019 * data-streamer-in.c: Likewise.
20020 * data-streamer-out.c: Likewise.
20021 * data-streamer.c: Likewise.
20022 * dbxout.c: Likewise.
20025 * debug.c: Likewise.
20026 * df-core.c: Likewise.
20027 * df-problems.c: Likewise.
20028 * df-scan.c: Likewise.
20030 * dojump.c: Likewise.
20031 * dominance.c: Likewise.
20032 * domwalk.c: Likewise.
20033 * double-int.c: Likewise.
20035 * dumpfile.c: Likewise.
20036 * dwarf2asm.c: Likewise.
20037 * dwarf2cfi.c: Likewise.
20038 * dwarf2out.c: Likewise.
20039 * emit-rtl.c: Likewise.
20040 * et-forest.c: Likewise.
20041 * except.c: Likewise.
20042 * explow.c: Likewise.
20043 * expmed.c: Likewise.
20044 * expr.c: Likewise.
20045 * final.c: Likewise.
20046 * fixed-value.c: Likewise.
20047 * fold-const.c: Likewise.
20048 * function.c: Likewise.
20049 * fwprop.c: Likewise.
20050 * gcc-plugin.h: Likewise.
20051 * gcse-common.c: Likewise.
20052 * gcse.c: Likewise.
20053 * generic-match-head.c: Likewise.
20054 * ggc-page.c: Likewise.
20055 * gimple-builder.c: Likewise.
20056 * gimple-expr.c: Likewise.
20057 * gimple-fold.c: Likewise.
20058 * gimple-iterator.c: Likewise.
20059 * gimple-low.c: Likewise.
20060 * gimple-match-head.c: Likewise.
20061 * gimple-pretty-print.c: Likewise.
20062 * gimple-ssa-isolate-paths.c: Likewise.
20063 * gimple-ssa-strength-reduction.c: Likewise.
20064 * gimple-streamer-in.c: Likewise.
20065 * gimple-streamer-out.c: Likewise.
20066 * gimple-walk.c: Likewise.
20067 * gimple.c: Likewise.
20068 * gimplify-me.c: Likewise.
20069 * gimplify.c: Likewise.
20070 * godump.c: Likewise.
20071 * graph.c: Likewise.
20072 * graphite-blocking.c: Likewise.
20073 * graphite-dependences.c: Likewise.
20074 * graphite-interchange.c: Likewise.
20075 * graphite-isl-ast-to-gimple.c: Likewise.
20076 * graphite-optimize-isl.c: Likewise.
20077 * graphite-poly.c: Likewise.
20078 * graphite-scop-detection.c: Likewise.
20079 * graphite-sese-to-poly.c: Likewise.
20080 * graphite.c: Likewise.
20081 * haifa-sched.c: Likewise.
20082 * hw-doloop.c: Likewise.
20083 * ifcvt.c: Likewise.
20084 * init-regs.c: Likewise.
20085 * internal-fn.c: Likewise.
20086 * ipa-chkp.c: Likewise.
20087 * ipa-comdats.c: Likewise.
20088 * ipa-cp.c: Likewise.
20089 * ipa-devirt.c: Likewise.
20090 * ipa-icf-gimple.c: Likewise.
20091 * ipa-icf.c: Likewise.
20092 * ipa-inline-analysis.c: Likewise.
20093 * ipa-inline-transform.c: Likewise.
20094 * ipa-inline.c: Likewise.
20095 * ipa-polymorphic-call.c: Likewise.
20096 * ipa-profile.c: Likewise.
20097 * ipa-prop.c: Likewise.
20098 * ipa-pure-const.c: Likewise.
20099 * ipa-ref.c: Likewise.
20100 * ipa-reference.c: Likewise.
20101 * ipa-split.c: Likewise.
20102 * ipa-utils.c: Likewise.
20103 * ipa-visibility.c: Likewise.
20105 * ira-build.c: Likewise.
20106 * ira-color.c: Likewise.
20107 * ira-conflicts.c: Likewise.
20108 * ira-costs.c: Likewise.
20109 * ira-emit.c: Likewise.
20110 * ira-lives.c: Likewise.
20112 * jump.c: Likewise.
20113 * langhooks.c: Likewise.
20115 * loop-doloop.c: Likewise.
20116 * loop-init.c: Likewise.
20117 * loop-invariant.c: Likewise.
20118 * loop-iv.c: Likewise.
20119 * loop-unroll.c: Likewise.
20120 * lower-subreg.c: Likewise.
20121 * lra-assigns.c: Likewise.
20122 * lra-coalesce.c: Likewise.
20123 * lra-constraints.c: Likewise.
20124 * lra-eliminations.c: Likewise.
20125 * lra-lives.c: Likewise.
20126 * lra-remat.c: Likewise.
20127 * lra-spills.c: Likewise.
20129 * lto-cgraph.c: Likewise.
20130 * lto-compress.c: Likewise.
20131 * lto-opts.c: Likewise.
20132 * lto-section-in.c: Likewise.
20133 * lto-section-out.c: Likewise.
20134 * lto-streamer-in.c: Likewise.
20135 * lto-streamer-out.c: Likewise.
20136 * lto-streamer.c: Likewise.
20138 * mode-switching.c: Likewise.
20139 * modulo-sched.c: Likewise.
20140 * omega.c: Likewise.
20141 * omp-low.c: Likewise.
20142 * optabs.c: Likewise.
20143 * opts-global.c: Likewise.
20144 * passes.c: Likewise.
20145 * plugin.c: Likewise.
20146 * postreload-gcse.c: Likewise.
20147 * postreload.c: Likewise.
20148 * predict.c: Likewise.
20149 * print-rtl.c: Likewise.
20150 * print-tree.c: Likewise.
20151 * profile.c: Likewise.
20152 * real.c: Likewise.
20153 * realmpfr.c: Likewise.
20154 * recog.c: Likewise.
20156 * reg-stack.c: Likewise.
20157 * regcprop.c: Likewise.
20158 * reginfo.c: Likewise.
20159 * regrename.c: Likewise.
20160 * regstat.c: Likewise.
20161 * reload.c: Likewise.
20162 * reload1.c: Likewise.
20163 * reorg.c: Likewise.
20164 * resource.c: Likewise.
20165 * rtl-chkp.c: Likewise.
20166 * rtlanal.c: Likewise.
20167 * rtlhooks.c: Likewise.
20168 * sanopt.c: Likewise.
20169 * sched-deps.c: Likewise.
20170 * sched-ebb.c: Likewise.
20171 * sched-rgn.c: Likewise.
20172 * sched-vis.c: Likewise.
20173 * sdbout.c: Likewise.
20174 * sel-sched-dump.c: Likewise.
20175 * sel-sched-ir.c: Likewise.
20176 * sel-sched.c: Likewise.
20177 * sese.c: Likewise.
20178 * shrink-wrap.c: Likewise.
20179 * simplify-rtx.c: Likewise.
20180 * stack-ptr-mod.c: Likewise.
20181 * stmt.c: Likewise.
20182 * stor-layout.c: Likewise.
20183 * store-motion.c: Likewise.
20184 * stringpool.c: Likewise.
20185 * symtab.c: Likewise.
20186 * target-globals.c: Likewise.
20187 * targhooks.c: Likewise.
20188 * toplev.c: Likewise.
20189 * tracer.c: Likewise.
20190 * trans-mem.c: Likewise.
20191 * tree-affine.c: Likewise.
20192 * tree-browser.c: Likewise.
20193 * tree-call-cdce.c: Likewise.
20194 * tree-cfg.c: Likewise.
20195 * tree-cfgcleanup.c: Likewise.
20196 * tree-chkp-opt.c: Likewise.
20197 * tree-chkp.c: Likewise.
20198 * tree-chrec.c: Likewise.
20199 * tree-complex.c: Likewise.
20200 * tree-data-ref.c: Likewise.
20201 * tree-dfa.c: Likewise.
20202 * tree-diagnostic.c: Likewise.
20203 * tree-dump.c: Likewise.
20204 * tree-eh.c: Likewise.
20205 * tree-emutls.c: Likewise.
20206 * tree-if-conv.c: Likewise.
20207 * tree-inline.c: Likewise.
20208 * tree-into-ssa.c: Likewise.
20209 * tree-iterator.c: Likewise.
20210 * tree-loop-distribution.c: Likewise.
20211 * tree-nested.c: Likewise.
20212 * tree-nrv.c: Likewise.
20213 * tree-object-size.c: Likewise.
20214 * tree-outof-ssa.c: Likewise.
20215 * tree-parloops.c: Likewise.
20216 * tree-phinodes.c: Likewise.
20217 * tree-predcom.c: Likewise.
20218 * tree-pretty-print.c: Likewise.
20219 * tree-profile.c: Likewise.
20220 * tree-scalar-evolution.c: Likewise.
20221 * tree-sra.c: Likewise.
20222 * tree-ssa-address.c: Likewise.
20223 * tree-ssa-alias.c: Likewise.
20224 * tree-ssa-ccp.c: Likewise.
20225 * tree-ssa-coalesce.c: Likewise.
20226 * tree-ssa-copy.c: Likewise.
20227 * tree-ssa-copyrename.c: Likewise.
20228 * tree-ssa-dce.c: Likewise.
20229 * tree-ssa-dom.c: Likewise.
20230 * tree-ssa-dse.c: Likewise.
20231 * tree-ssa-forwprop.c: Likewise.
20232 * tree-ssa-ifcombine.c: Likewise.
20233 * tree-ssa-live.c: Likewise.
20234 * tree-ssa-loop-ch.c: Likewise.
20235 * tree-ssa-loop-im.c: Likewise.
20236 * tree-ssa-loop-ivcanon.c: Likewise.
20237 * tree-ssa-loop-ivopts.c: Likewise.
20238 * tree-ssa-loop-manip.c: Likewise.
20239 * tree-ssa-loop-niter.c: Likewise.
20240 * tree-ssa-loop-prefetch.c: Likewise.
20241 * tree-ssa-loop-unswitch.c: Likewise.
20242 * tree-ssa-loop.c: Likewise.
20243 * tree-ssa-math-opts.c: Likewise.
20244 * tree-ssa-operands.c: Likewise.
20245 * tree-ssa-phiopt.c: Likewise.
20246 * tree-ssa-phiprop.c: Likewise.
20247 * tree-ssa-pre.c: Likewise.
20248 * tree-ssa-propagate.c: Likewise.
20249 * tree-ssa-reassoc.c: Likewise.
20250 * tree-ssa-sccvn.c: Likewise.
20251 * tree-ssa-scopedtables.c: Likewise.
20252 * tree-ssa-sink.c: Likewise.
20253 * tree-ssa-strlen.c: Likewise.
20254 * tree-ssa-structalias.c: Likewise.
20255 * tree-ssa-tail-merge.c: Likewise.
20256 * tree-ssa-ter.c: Likewise.
20257 * tree-ssa-threadedge.c: Likewise.
20258 * tree-ssa-threadupdate.c: Likewise.
20259 * tree-ssa-uncprop.c: Likewise.
20260 * tree-ssa-uninit.c: Likewise.
20261 * tree-ssa.c: Likewise.
20262 * tree-ssanames.c: Likewise.
20263 * tree-stdarg.c: Likewise.
20264 * tree-streamer-in.c: Likewise.
20265 * tree-streamer-out.c: Likewise.
20266 * tree-streamer.c: Likewise.
20267 * tree-switch-conversion.c: Likewise.
20268 * tree-tailcall.c: Likewise.
20269 * tree-vect-data-refs.c: Likewise.
20270 * tree-vect-generic.c: Likewise.
20271 * tree-vect-loop-manip.c: Likewise.
20272 * tree-vect-loop.c: Likewise.
20273 * tree-vect-patterns.c: Likewise.
20274 * tree-vect-slp.c: Likewise.
20275 * tree-vect-stmts.c: Likewise.
20276 * tree-vectorizer.c: Likewise.
20277 * tree-vrp.c: Likewise.
20278 * tree.c: Likewise.
20279 * tsan.c: Likewise.
20280 * ubsan.c: Likewise.
20281 * valtrack.c: Likewise.
20282 * value-prof.c: Likewise.
20283 * var-tracking.c: Likewise.
20284 * varasm.c: Likewise.
20285 * varpool.c: Likewise.
20286 * vmsdbgout.c: Likewise.
20287 * vtable-verify.c: Likewise.
20289 * wide-int.cc: Likewise.
20290 * xcoffout.c: Likewise.
20291 * config/aarch64/aarch64-builtins.c: Likewise.
20292 * config/aarch64/aarch64.c: Likewise.
20293 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20294 * config/alpha/alpha.c: Likewise.
20295 * config/arc/arc.c: Likewise.
20296 * config/arm/aarch-common.c: Likewise.
20297 * config/arm/arm-builtins.c: Likewise.
20298 * config/arm/arm-c.c: Likewise.
20299 * config/arm/arm.c: Likewise.
20300 * config/avr/avr-c.c: Likewise.
20301 * config/avr/avr-log.c: Likewise.
20302 * config/avr/avr.c: Likewise.
20303 * config/bfin/bfin.c: Likewise.
20304 * config/c6x/c6x.c: Likewise.
20305 * config/cr16/cr16.c: Likewise.
20306 * config/cris/cris.c: Likewise.
20307 * config/darwin-c.c: Likewise.
20308 * config/darwin.c: Likewise.
20309 * config/epiphany/epiphany.c: Likewise.
20310 * config/epiphany/mode-switch-use.c: Likewise.
20311 * config/epiphany/resolve-sw-modes.c: Likewise.
20312 * config/fr30/fr30.c: Likewise.
20313 * config/frv/frv.c: Likewise.
20314 * config/ft32/ft32.c: Likewise.
20315 * config/h8300/h8300.c: Likewise.
20316 * config/i386/i386-c.c: Likewise.
20317 * config/i386/i386.c: Likewise.
20318 * config/i386/msformat-c.c: Likewise.
20319 * config/i386/winnt-cxx.c: Likewise.
20320 * config/i386/winnt-stubs.c: Likewise.
20321 * config/i386/winnt.c: Likewise.
20322 * config/ia64/ia64-c.c: Likewise.
20323 * config/ia64/ia64.c: Likewise.
20324 * config/iq2000/iq2000.c: Likewise.
20325 * config/lm32/lm32.c: Likewise.
20326 * config/m32c/m32c-pragma.c: Likewise.
20327 * config/m32c/m32c.c: Likewise.
20328 * config/m32r/m32r.c: Likewise.
20329 * config/m68k/m68k.c: Likewise.
20330 * config/mcore/mcore.c: Likewise.
20331 * config/mep/mep-pragma.c: Likewise.
20332 * config/mep/mep.c: Likewise.
20333 * config/microblaze/microblaze-c.c: Likewise.
20334 * config/microblaze/microblaze.c: Likewise.
20335 * config/mips/mips.c: Likewise.
20336 * config/mmix/mmix.c: Likewise.
20337 * config/mn10300/mn10300.c: Likewise.
20338 * config/moxie/moxie.c: Likewise.
20339 * config/msp430/msp430-c.c: Likewise.
20340 * config/msp430/msp430.c: Likewise.
20341 * config/nds32/nds32-cost.c: Likewise.
20342 * config/nds32/nds32-fp-as-gp.c: Likewise.
20343 * config/nds32/nds32-intrinsic.c: Likewise.
20344 * config/nds32/nds32-isr.c: Likewise.
20345 * config/nds32/nds32-md-auxiliary.c: Likewise.
20346 * config/nds32/nds32-memory-manipulation.c: Likewise.
20347 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20348 * config/nds32/nds32-predicates.c: Likewise.
20349 * config/nds32/nds32.c: Likewise.
20350 * config/nios2/nios2.c: Likewise.
20351 * config/nvptx/nvptx.c: Likewise.
20352 * config/pa/pa.c: Likewise.
20353 * config/pdp11/pdp11.c: Likewise.
20354 * config/rl78/rl78-c.c: Likewise.
20355 * config/rl78/rl78.c: Likewise.
20356 * config/rs6000/rs6000-c.c: Likewise.
20357 * config/rs6000/rs6000.c: Likewise.
20358 * config/rx/rx.c: Likewise.
20359 * config/s390/s390-c.c: Likewise.
20360 * config/s390/s390.c: Likewise.
20361 * config/sh/sh-c.c: Likewise.
20362 * config/sh/sh-mem.cc: Likewise.
20363 * config/sh/sh.c: Likewise.
20364 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20365 * config/sh/sh_treg_combine.cc: Likewise.
20366 * config/sol2-c.c: Likewise.
20367 * config/sol2-cxx.c: Likewise.
20368 * config/sol2-stubs.c: Likewise.
20369 * config/sol2.c: Likewise.
20370 * config/sparc/sparc-c.c: Likewise.
20371 * config/sparc/sparc.c: Likewise.
20372 * config/spu/spu-c.c: Likewise.
20373 * config/spu/spu.c: Likewise.
20374 * config/stormy16/stormy16.c: Likewise.
20375 * config/tilegx/mul-tables.c: Likewise.
20376 * config/tilegx/tilegx-c.c: Likewise.
20377 * config/tilegx/tilegx.c: Likewise.
20378 * config/tilepro/mul-tables.c: Likewise.
20379 * config/tilepro/tilepro-c.c: Likewise.
20380 * config/tilepro/tilepro.c: Likewise.
20381 * config/v850/v850-c.c: Likewise.
20382 * config/v850/v850.c: Likewise.
20383 * config/vax/vax.c: Likewise.
20384 * config/visium/visium.c: Likewise.
20385 * config/vms/vms-c.c: Likewise.
20386 * config/vms/vms.c: Likewise.
20387 * config/vxworks.c: Likewise.
20388 * config/xtensa/xtensa.c: Likewise.
20390 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
20392 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
20393 Remove operand constraints. Change operand 2 predicate to
20394 nonmemory operand. Limit const_int values to mode bitsize. Only
20395 allow const_int values less than 32 when optimizing for size.
20396 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
20397 Remove operand constraints.
20398 (*bt<mode>): Use SImode for const_int values less than 32.
20399 (regmode): Remove mode attribute.
20401 2015-07-07 Anatoly Sokolov <aesok@post.ru>
20403 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
20404 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
20405 moxie_legitimate_address_p): New functions.
20406 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
20408 2015-07-07 Tom de Vries <tom@codesourcery.com>
20410 PR tree-optimization/66642
20411 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
20412 header comment. Rename split_edge variable to edge_at_split. Split
20413 exit edge to create new loop exit bb. Insert loop exit phis in new
20416 2015-07-07 Tom de Vries <tom@codesourcery.com>
20418 * tree-cfg.c (get_virtual_phi): New function.
20419 * tree-cfg.h (get_virtual_phi): Declare.
20420 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
20421 (rewrite_virtuals_into_loop_closed_ssa): New function.
20422 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
20424 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
20425 (transform_to_exit_first_loop_alt): Use
20426 rewrite_virtuals_into_loop_closed_ssa.
20428 2015-07-07 Richard Biener <rguenther@suse.de>
20430 * fold-const.c (fold_binary_loc): Move
20431 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
20432 * match.pd: ... here.
20433 Add (X * C1) % C2 -> 0 simplification pattern derived from
20436 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
20439 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
20440 change for target/65249.
20442 2015-07-07 Paulo Matos <pmatos@broadcom.com>
20444 * symtab.c (address_matters_1): Fix typo in comment above.
20445 (can_increase_alignment_p): Likewise.
20447 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20449 * function.c (free_after_compilation): Clear PROP_cfg in
20450 f->curr_properties.
20452 2015-07-07 Richard Biener <rguenther@suse.de>
20454 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
20456 (add_control_edge): Remove excessive vertical space in dumping.
20457 (process_ssa_edge_worklist): Simulate at most one statement and
20458 return whether we did. Do not simulate PHIs if they are in a
20459 BB not yet simulated.
20460 (ssa_propagate): Adjust to always drain the BB worklist whenever
20461 a BB is available there, likewise the VARYING edges list before
20462 the interesting edge list.
20464 2015-07-07 Christian Bruel <christian.bruel@st.com>
20467 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
20469 2015-07-07 Richard Biener <rguenther@suse.de>
20471 PR middle-end/66739
20472 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
20475 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
20477 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
20478 modes for operands 0 and 3. Use SImode for operands 2 and 3.
20479 Copy operand 0 to a temporary if !ext_register_operand. Remove
20480 ancient extract_bit_field workaround.
20481 (insv<mode>_1): Rename from mov<mode>_insv_1.
20482 (*insvqi): Rename from *movqi_insv_2.
20483 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
20484 for renamed insvsi_1.
20485 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
20487 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
20489 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
20490 call to nvptx_reorg_subreg.
20492 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
20494 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
20495 * graphite-dependencies.c, graphite-interchange.c,
20496 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
20497 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
20500 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
20502 * match.pd: Remove element_mode inside HONOR_*.
20503 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
20504 (~X | X -> -1, ~X ^ X -> -1): Merge.
20505 * tree.c (build_each_one_cst): New function.
20506 * tree.h (build_each_one_cst): Likewise.
20508 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
20510 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20513 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
20515 * config.gcc <mips*-*-*>: Add fused-madd.opt.
20516 * config/mips/mips.opt (mfused-madd): Remove.
20517 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
20518 * config/mips/mips.h (TARGET_MIPS8000): New.
20519 (ISA_HAS_FP_MADD4_MSUB4): Remove.
20520 (ISA_HAS_FP_MADDF_MSUBF): Remove.
20521 (ISA_HAS_FP_MADD3_MSUB3): Remove.
20522 (ISA_HAS_NMADD4_NMSUB4): Remove.
20523 (ISA_HAS_NMADD3_NMSUB3): Remove.
20524 (ISA_HAS_FUSED_MADD4): New.
20525 (ISA_HAS_UNFUSED_MADD4): New.
20526 (ISA_HAS_FUSED_MADDF): New.
20527 (ISA_HAS_FUSED_MADD3): New.
20528 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
20529 (*fma<mode>4_madd3) New.
20530 (*fma<mode>4_madd4) New.
20531 (*fma<mode>4_maddf) New.
20533 (*fms<mode>4_msub3) New.
20534 (*fms<mode>4_msub4) New.
20536 (*fnma<mode>4_nmadd3) New.
20537 (*fnma<mode>4_nmadd4) New.
20539 (*fnms<mode>4_nmsub3) New.
20540 (*fnms<mode>4_nmsub4) New.
20541 (*madd4<mode>) Modify to be unfused only.
20542 (*msub4<mode>) Modify to be unfused only.
20543 (*nmadd4<mode>) Modify to be unfused only.
20544 (*nmsub4<mode>) Modify to be unfused only.
20545 (*madd3<mode>) Remove.
20546 (*msub3<mode>) Remove.
20547 (*nmadd3<mode>) Remove.
20548 (*nmsub3<mode>) Remove.
20549 (*nmadd3<mode>_fastmath) Remove.
20550 (*nmsub3<mode>_fastmath) Remove.
20551 (*nmadd4<mode>_fastmath) Update condition.
20552 (*nmsub4<mode>_fastmath) Update condition.
20554 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
20557 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
20558 alignment attribute, exploring one level down for records and arrays.
20560 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
20562 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
20563 modes for operands 0 and 1. Use SImode for operands 2 and 3.
20564 Copy operand 1 to a temporary if !ext_register_operand. Remove
20565 ancient extract_bit_field workaround.
20566 (*extv<mode>): Rename from *mov<mode>_extv_1.
20567 (*extvqi): Rename from *movqi_extv_1.
20568 (extzv<mode>): Rename from extzv. Use SWI248 modes for
20569 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
20570 to a temporary if !ext_register_operand. Remove ancient
20571 extract_bit_field workaround.
20572 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
20573 (*extzvqi): Rename from *movqi_extzv_2.
20574 (*testqi_ext_3): Remove modes from const_int_operand predicated
20575 operands. Add "n" constraint.
20576 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
20577 operand. Add "J" constraint.
20578 (*btsq, *btrq, *btcq peephole2s): Remove mode from
20579 const_0_to_63 predicated operand.
20580 (regmode): New insn attribute.
20581 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
20582 to nonmemory_operand. Use regmode insn attribute.
20583 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
20584 (*jcc_bt<mode>_mask): Remove mode from operand 3.
20585 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
20586 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
20587 operands. Use "N" constraint instead of "n".
20589 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
20591 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
20593 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
20596 * config/i386/i386.c (iamcu_cost): New.
20597 (m_IAMCU): Likewise.
20598 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
20599 (processor_target_table): Add an entry for "iamcu".
20600 (processor_alias_table): Likewise.
20601 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
20602 (ix86_adjust_cost): Likewise.
20603 (ia32_multipass_dfa_lookahead): Likewise.
20604 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
20605 * config/i386/x86-tune.def: Updated for m_IAMCU.
20607 2015-07-06 Richard Biener <rguenther@suse.de>
20609 PR tree-optimization/66772
20610 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
20611 values are available in the PHI node BB when there are
20612 still unexecutable edges.
20614 2015-07-06 Richard Biener <rguenther@suse.de>
20616 PR tree-optimization/66767
20617 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
20618 Make sure to build the alignment test on a SSA name without
20619 final alignment info valid only if the alignment test
20622 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
20625 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
20626 loop start when inserting LSETUP.
20628 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
20631 * config/i386/i386.c (ix86_option_override_internal): Allow
20632 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
20634 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20636 * read-md.c (decimal_string): Rename to ...
20637 (md_decimal_string): ... this.
20638 (handle_enum): Reflect this.
20640 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
20643 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
20645 2015-07-06 Richard Biener <rguenther@suse.de>
20647 PR middle-end/66759
20648 * match.pd: Add missing constraint of y to REAL_CST in
20649 REAL_CST - x CMP y to y - CST CMP x simplification.
20651 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
20653 PR tree-optimization/66757
20654 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
20656 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
20657 Sandra Loosemore <sandra@codesourcery.com>
20659 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
20660 Delete extern declaration.
20661 (gprel_constant_p): Add extern declaration.
20662 * config/nios2/constraints.md ("S"): Use gprel_constant_p
20663 instead of nios2_symbol_ref_in_small_data_p.
20664 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
20665 (nios2_symbol_ref_in_small_data_p): Make static.
20666 (gprel_constant_p): Make non-static.
20668 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
20670 * doc/fragments.texi (Target Fragment): Convert debian.org
20672 * doc/install.texi (Configuration): Ditto.
20674 2015-07-05 Jakub Jelinek <jakub@redhat.com>
20676 PR tree-optimization/66718
20677 * tree-vect-stmts.c (vectorizable_call): Replace uses of
20678 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
20680 PR tree-optimization/66718
20681 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
20682 vectorizable_load, vectorizable_condition): Move vectype,
20683 nunits, ncopies computation after checking what kind of statement
20686 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20688 * target-insns.def (extv, extzv, insv): New targetm instruction
20690 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
20692 * recog.c (simplify_while_replacing): Likewise.
20694 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20696 * target-insns.def (doloop_begin, doloop_end): New targetm
20697 instruction patterns.
20698 * loop-init.c: Include target.h.
20699 (pass_loop2::gate): Use the new targetm patterns instead of
20700 HAVE_*/gen_* interface.
20701 (pass_rtl_doloop::gate): Likewise.
20702 (pass_rtl_doloop::execute): Remove preprocessor condition.
20703 * hw-doloop.c: Build unconditionally.
20704 * loop-doloop.c: Likewise.
20705 (doloop_optimize): Use the new targetm patterns instead of
20706 HAVE_*/gen_* interface.
20707 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
20708 * modulo-sched.c (doloop_register_get): Likewise.
20710 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20712 * target-insns.def (clear_cache): New targetm instruction pattern.
20713 * builtins.c (expand_builtin___clear_cache): Use it instead of
20714 HAVE_*/gen_* interface.
20716 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20718 * target-insns.def (allocate_stack, check_stack, probe_stack)
20719 (probe_stack_address, split_stack_prologue, split_stack_space_check):
20720 New targetm instruction patterns.
20721 * explow.c (allocate_dynamic_stack_space): Use them instead of
20722 HAVE_*/gen_* interface.
20723 (emit_stack_probe): Likewise.
20724 (probe_stack_range): Likewise.
20725 * function.c (thread_prologue_and_epilogue_insns): Likewise.
20727 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20729 * target-insns.def (stack_protect_set, stack_protect_test): New
20730 targetm instruction patterns.
20731 * cfgexpand.c (stack_protect_prologue): Use them instead of
20732 HAVE_*/gen_* interface.
20733 * function.c (stack_protect_epilogue): Likewise.
20735 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20737 * expr.h (gen_move_insn_uncast): Delete.
20738 * expr.c (gen_move_insn_uncast): Delete.
20740 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20742 * target-insns.def (restore_stack_block, restore_stack_function)
20743 (restore_stack_nonlocal, save_stack_block, save_stack_function)
20744 (save_stack_nonlocal): New targetm instruction patterns.
20745 * builtins.c (expand_builtin_apply): Use them instead of
20746 HAVE_*/gen_* interface.
20747 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
20749 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20751 * target-insns.def (trap): New targetm instruction pattern.
20752 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
20754 * explow.c (allocate_dynamic_stack_space): Likewise.
20755 * ifcvt.c (find_if_header): Likewise.
20757 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20759 * target-insns.def (prefetch): New targetm instruction pattern.
20760 * tree-ssa-loop-prefetch.c: Include targeth.
20761 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
20762 of HAVE_*/gen_* interface.
20763 * builtins.c (expand_builtin_prefetch): Likewise.
20764 * toplev.c (process_options): Likewise.
20766 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20768 * target-insns.def (untyped_call, untyped_return): New targetm
20769 instruction patterns.
20770 * builtins.c (expand_builtin_apply): Use them instead of
20771 HAVE_*/gen_* interface.
20772 (result_vector): Define unconditionally.
20774 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20776 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
20777 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
20778 (nonlocal_goto_receiver): New targetm instruction patterns.
20779 * builtins.c (expand_builtin_setjmp_setup): Use them instead
20780 of HAVE_*/gen_* interface.
20781 (expand_builtin_setjmp_receiver): Likewise.
20782 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
20783 * except.c (expand_dw2_landing_pad_for_region): Likewise.
20785 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20787 * target.def: Add code_for_* hooks.
20788 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
20789 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
20790 * target-insns.def (casesi, tablejump): New targetm instruction
20792 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
20793 (do_tablejump): Likewise.
20794 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
20795 (expand_sjlj_dispatch_table): Likewise.
20796 * targhooks.c (default_case_values_threshold): Likewise.
20798 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
20800 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
20801 Use rtx_insn * instead of rtx.
20802 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
20803 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
20804 (nios2_call_tls_get_addr): Likewise.
20805 (nios2_emit_expensive_div): Likewise.
20806 (nios2_emit_move_sequence): Change return type to bool.
20807 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
20808 Change return type to bool.
20810 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
20813 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
20815 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
20818 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
20819 of register_operand. Remove constraint.
20821 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
20823 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
20824 the first argument.
20826 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
20828 * attribs.c (decl_attributes): Guard inform with the return value
20829 of the preceding warning.
20831 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
20833 * doc/invoke.texi (moverride): Move to correct section.
20835 2015-07-03 Richard Biener <rguenther@suse.de>
20837 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
20839 (dt_operand::gen_gimple_expr): After valueizing operands
20840 re-canonicalize operand order for commutative tree codes.
20842 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
20845 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
20847 (__crc32w): Likewise.
20848 (__crc32d): Likewise.
20849 (__rdpmc): Likewise.
20850 (__rdtscp): Likewise.
20851 (_rdpmc): Likewise.
20852 (_rdtscp): Likewise.
20853 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
20856 2015-07-03 Richard Biener <rguenther@suse.de>
20858 * fold-const.c (fold_mathfn_compare): Remove.
20859 (fold_inf_compare): Likewise.
20860 (fold_comparison): Move floating point comparison simplifications...
20861 * match.pd: ... to patterns here. Introduce simple_comparisons
20862 operator list and use it for patterns formerly in fold_comparison.
20864 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
20866 PR tree-optimization/66119
20867 * toplev.c (process_options): Don't set up default values for
20868 the sra_max_scalarization_size_{speed,size} parameters.
20869 * tree-sra (analyze_all_variable_accesses): If no values
20870 have been set for the sra_max_scalarization_size_{speed,size}
20871 parameters, call get_move_ratio to get target defaults.
20873 2015-07-03 Richard Biener <rguenther@suse.de>
20875 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
20876 * match.pd: ... here.
20878 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
20881 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
20882 is not actually the default on FreeBSD.
20884 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20886 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
20888 (CMPGE_8HI): Likewise.
20889 (CMPGE_4SI): Likewise.
20890 (CMPGE_2DI): Likewise.
20891 (CMPGE_U16QI): Likewise.
20892 (CMPGE_U8HI): Likewise.
20893 (CMPGE_U4SI): Likewise.
20894 (CMPGE_U2DI): Likewise.
20895 (CMPLE_16QI): Likewise.
20896 (CMPLE_8HI): Likewise.
20897 (CMPLE_4SI): Likewise.
20898 (CMPLE_2DI): Likewise.
20899 (CMPLE_U16QI): Likewise.
20900 (CMPLE_U8HI): Likewise.
20901 (CMPLE_U4SI): Likewise.
20902 (CMPLE_U2DI): Likewise.
20903 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20904 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
20905 ALTIVEC_BUILTIN_VEC_CMPLE.
20906 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
20907 floating-point vector modes.
20908 (vector_nlt<mode>): New define_expand.
20909 (vector_nltu<mode>): Likewise.
20910 (vector_ngt<mode>): Likewise.
20911 (vector_ngtu<mode>): Likewise.
20913 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
20915 PR rtl-optimization/66706
20916 * combine.c (make_compound_operation): If an AND of SUBREG of
20917 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
20919 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
20921 * tree-pass.h (make_pass_ch_vect): New.
20922 * passes.def: Add pass_ch_vect just before pass_if_conversion.
20924 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
20925 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
20926 make_pass_ch_vect): New.
20927 (pass_ch): Extend ch_base.
20929 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
20930 (ch_base::copy_headers): ...here.
20932 2015-07-02 Richard Biener <rguenther@suse.de>
20934 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
20935 * fold-const.c (get_pointer_modulus_and_residue): Remove.
20936 (fold_binary_loc): Implement (T)ptr & CST in terms of
20937 get_pointer_alignment_1.
20938 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
20939 Make sure to build the alignment test on a SSA name without
20940 final alignment info valid only after the prologue.
20942 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
20944 * config/cris/cris.md ("epilogue"): Remove condition.
20945 ("prologue"): Ditto.
20947 2015-07-02 Richard Biener <rguenther@suse.de>
20949 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
20950 parameter to record a condition that is false.
20951 (record_conditions): When recording an extra NE_EXPR that is
20952 true also record a EQ_EXPR that is false.
20954 2015-07-02 Bin Cheng <bin.cheng@arm.com>
20956 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
20957 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
20958 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
20959 (set_iv, find_interesting_uses_address, add_candidate_1): New
20960 argument to alloc_iv.
20961 (find_interesting_uses_op, find_interesting_uses_cond): Don't
20962 duplicate struct iv.
20963 (free_loop_data): Don't free struct iv explicitly.
20964 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
20966 2015-07-01 DJ Delorie <dj@redhat.com>
20968 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
20970 (SUPPORTS_DISCRIMINATOR): Define.
20972 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
20975 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
20976 there are no CALLs in the same pattern.
20978 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
20980 PR rtl-optimization/61047
20981 * rtlanal.c (get_initial_register_offset): New function.
20982 (rtx_addr_can_trap_p_1): Check offsets of stack references.
20984 2015-07-01 Richard Biener <rguenther@suse.de>
20986 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
20987 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
20988 ~X CMP C -> X CMP' ~C to ...
20989 * match.pd: ... patterns here.
20991 2015-07-01 Nick Clifton <nickc@redhat.com>
20993 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
20994 a 16-bit value into a 20-bit memory slot.
20996 2015-07-01 Jiong Wang <jiong.wang@arm.com>
20998 * doc/sourcebuild.texi (AArch64-specific attributes): Document
20999 "aarch64_tiny", "aarch64_small", "aarch64_large",
21000 "aarch64_little_endian", "aarch64_big_endian".
21002 2015-07-01 Jiong Wang <jiong.wang@arm.com>
21004 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
21005 Document "aarch64_small_fpic".
21007 2015-07-01 Jiong Wang <jiong.wang@arm.com>
21009 * configure.ac: Add check for aarch64 assembler -fpic relocation
21011 * configure: Regenerate.
21012 * config.in: Regenerate.
21013 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
21014 to -fPIC if not support of -fpic relocation modifier in assembler.
21016 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
21019 * rtl.c (classify_insn): Handle returns in PARALLELs.
21021 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
21023 PR middle-end/66633
21024 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
21025 to true if the function is nested and if not optimizing.
21026 (convert_local_omp_clauses): Initialize need_frame to true if the
21027 function contains nested functions and if not optimizing.
21029 2015-07-01 Richard Biener <rguenther@suse.de>
21031 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
21032 (X & Y) ^ Y -> ~X & Y transforms to ...
21033 * match.pd: ... here.
21035 2015-07-01 Richard Biener <rguenther@suse.de>
21037 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
21038 of converts to avoid uninteresting noise from the conversion
21039 simplifying patterns.
21041 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
21043 * config/c6x/c6x.c (try_rename_operands): Do not depend on
21044 gcc_assert evaluating its argument for side-effect.
21046 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
21049 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
21052 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
21054 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
21055 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
21056 (hash_scc): Add this_ref_p and ref_p parameters and pass them
21057 to the inner DFS walk.
21059 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21061 * target-insns.def (jump): New targetm instruction pattern.
21062 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
21063 instead of gen_jump.
21064 (fix_up_crossing_landing_pad): Likewise.
21065 (add_labels_and_missing_jumps): Likewise.
21066 (fix_crossing_conditional_branches): Likewise.
21067 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
21068 (force_nonfallthru_and_redirect): Likewise.
21069 * cse.c (cse_insn): Likewise.
21070 * expmed.c (expand_divmod): Likewise.
21071 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
21072 * haifa-sched.c (init_before_recovery): Likewise.
21073 (sched_create_recovery_edges): Likewise.
21074 * ifcvt.c (find_cond_trap): Likewise.
21075 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
21076 (expand_float, expand_fix): Likewise.
21077 * stmt.c (emit_jump): Likewise.
21079 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21081 * defaults.h (HAVE_load_multiple, gen_load_multiple)
21082 (HAVE_store_multiple, gen_store_multiple): Delete.
21083 * target-insns.def (load_multiple, store_multiple): New targetm
21084 instruction patterns.
21085 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
21086 of HAVE_*/gen_* interface.
21088 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21090 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
21091 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
21092 (gen_mem_signal_fence): Delete.
21093 * target-insns.def (mem_signal_fence, mem_thread_fence)
21094 (memory_barrier): New targetm instruction patterns.
21095 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
21097 (expand_mem_signal_fence): Likewise.
21099 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21101 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
21102 * target-insns.def (epilogue, prologue, sibcall_prologue): New
21103 targetm instruction patterns.
21104 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
21106 * calls.c (expand_call): Likewise.
21107 * cfgrtl.c (cfg_layout_finalize): Likewise.
21108 * df-scan.c (df_get_entry_block_def_set): Likewise.
21109 (df_get_exit_block_use_set): Likewise.
21110 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
21111 * final.c (final_start_function): Likewise.
21112 * function.c (thread_prologue_and_epilogue_insns): Likewise.
21113 (reposition_prologue_and_epilogue_notes): Likewise.
21114 * reorg.c (find_end_label): Likewise.
21115 * toplev.c (process_options): Likewise.
21117 2015-06-30 David Malcolm <dmalcolm@redhat.com>
21119 * typed-splay-tree.h: New file.
21121 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
21124 * lra-int.h (lra_substitute_pseudo): Add a parameter.
21125 (lra_substitute_pseudo_within_insn): Ditto.
21126 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
21128 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
21129 to lra_substitute_pseudo.
21130 * lra-lives.c (process_bb_lives): Add an argument to
21131 lra_substitute_pseudo_within_insn call.
21132 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
21133 argument to lra_substitute_pseudo and
21134 lra_substitute_pseudo_within_insn calls.
21135 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
21137 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
21139 * configure: Regenerated.
21141 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
21143 * config.gcc: Support i[34567]86-*-elfiamcu target.
21144 * config/i386/iamcu.h: New.
21145 * config/i386/i386.opt: Add -miamcu.
21146 * doc/invoke.texi: Document -miamcu.
21147 * common/config/i386/i386-common.c (ix86_handle_option): Turn
21148 off x87/MMX/SSE/AVX codegen for -miamcu.
21149 * config/i386/i386-c.c (ix86_target_macros_internal): Define
21150 __iamcu/__iamcu__ for -miamcu.
21151 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
21152 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
21153 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
21154 * config/i386/i386.c (ix86_option_override_internal): Ignore and
21155 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
21156 MCU by default. Default long double to 64-bit for Intel MCU.
21157 Turn on -freg-struct-return for Intel MCU. Issue an error when
21158 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
21160 (function_arg_advance_32): Pass value whose size is no larger
21161 than 8 bytes in registers for Intel MCU.
21162 (function_arg_32): Likewise.
21163 (ix86_return_in_memory): Return value whose size is no larger
21164 than 8 bytes in registers for Intel MCU.
21165 (iamcu_alignment): New function.
21166 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
21168 (ix86_local_alignment): Don't increase alignment for Intel MCU.
21169 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
21172 2015-06-30 Marek Polacek <polacek@redhat.com>
21174 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
21175 both operands of the resulting expression.
21177 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
21178 the final expression with the operand's type and then convert
21179 it to the type of the expression.
21181 2015-06-30 Richard Biener <rguenther@suse.de>
21183 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
21184 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
21185 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
21186 * match.pd: ... to patterns here.
21188 2015-06-30 Richard Biener <rguenther@suse.de>
21190 PR tree-optimization/66704
21191 * tree-vect-data-refs.c (vect_setup_realignment): Use
21192 make_ssa_name for non-SSA name source.
21194 2015-06-30 Jakub Jelinek <jakub@redhat.com>
21196 PR middle-end/66702
21197 * omp-low.c (simd_clone_adjust): Handle addressable linear
21198 or uniform parameters or non-gimple type uniform parameters.
21200 2015-06-30 Richard Biener <rguenther@suse.de>
21202 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
21203 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
21204 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
21205 * match.pd: ... here.
21206 Add a few cases of A - B -> A + (-B) when B "easily" negates.
21207 Move (x & y) | x -> x and friends before
21208 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
21210 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
21212 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
21213 -mfix-ut699 is not specified.
21214 (leon3_load): Rename into...
21215 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
21218 2015-06-30 Marek Polacek <polacek@redhat.com>
21220 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
21221 * match.pd: ... here.
21223 2015-06-30 Richard Biener <rguenther@suse.de>
21225 * target-insns.def (canonicalize_funcptr_for_compare): Add.
21226 * fold-const.c (build_range_check): Replace uses of
21227 HAVE_canonicalize_funcptr_for_compare.
21228 (fold_widened_comparison): Likewise.
21229 (fold_sign_changed_comparison): Likewise.
21230 * dojump.c: Include "target.h".
21231 (do_compare_and_jump): Replace uses of
21232 HAVE_canonicalize_funcptr_for_compare and
21233 gen_canonicalize_funcptr_for_compare.
21234 * expr.c (do_store_flag): Likewise.
21236 2015-06-30 Tom de Vries <tom@codesourcery.com>
21238 PR tree-optimization/66652
21239 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
21240 max_loop_iterations to determine if nit + 1 overflows.
21242 2015-06-30 Richard Biener <rguenther@suse.de>
21244 * tree-vrp.c (register_edge_assert_for_2): Also register
21245 asserts for dominating conversion results.
21247 2015-06-30 Bin Cheng <bin.cheng@arm.com>
21249 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
21250 field in struct iv.
21252 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
21255 * configure.ac: Fix filds and fildq test for 64-bit.
21256 * configure: Regenerated.
21258 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
21260 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
21261 (nvptx_reorg): Here. Keep the non-subreg pieces.
21263 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
21265 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
21266 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
21268 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
21270 * config/i386/i386.md (*jcc_1): Use %! in asm template.
21271 Set attribute "length_nobnd" instead of "length".
21274 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
21276 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
21278 * config/nios2/nios2.c (nios2_delegitimize_address): Make
21279 assert less restrictive.
21281 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
21284 * cgraphunit.c (cgraph_node::finalize_function): Do not call
21285 do_warn_unused_parameter.
21286 * function.c (do_warn_unused_parameter): Move from here.
21287 * function.h (do_warn_unused_parameter): Do not declare.
21289 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21292 * gcc.target/arm/armv-sync-comp-swap.c: New.
21293 * gcc.target/arm/armv-sync-op-acquire.c: New.
21294 * gcc.target/arm/armv-sync-op-full.c: New.
21295 * gcc.target/arm/armv-sync-op-release.c: New.
21297 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21300 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
21301 initial acquire barrier with final barrier.
21303 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21306 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
21307 initial acquire barrier with final barrier.
21309 2015-06-29 Richard Henderson <rth@redhat.com>
21311 * config/i386/constraints.md (Bf): New constraint.
21312 * config/i386/i386-c.c (ix86_target_macros): Define
21313 __GCC_ASM_FLAG_OUTPUTS__.
21314 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
21316 * doc/extend.texi (FlagOutputOperands): Document them.
21318 2015-06-29 Jiong Wang <jiong.wang@arm.com>
21320 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
21321 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
21323 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
21324 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
21325 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
21326 (aarch64_symbol_context): Ditto.
21327 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
21328 and use new pattern name.
21329 (aarch64_expand_mov_immediate): Ditto.
21330 (aarch64_print_operand): Ditto.
21331 (aarch64_classify_tls_symbol): Ditto.
21333 2015-06-29 Marek Polacek <polacek@redhat.com>
21334 Marc Glisse <marc.glisse@inria.fr>
21336 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
21337 * match.pd: ... pattern here.
21339 2015-06-29 Tom de Vries <tom@codesourcery.com>
21341 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
21342 function structure.
21344 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21346 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
21347 feature description, split out the native option, add a link to
21348 the feature documentation, rearrange and slightly rewrite text.
21349 (Aarch64 options, -mcpu): Likewise.
21350 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
21351 +rdma implies Adv. SIMD.
21353 2015-06-29 Marek Polacek <polacek@redhat.com>
21356 * function.c (stack_protect_epilogue): Remove a cast to int.
21357 * doc/invoke.texi: Update -Wswitch-bool description.
21359 2015-06-29 Richard Biener <rguenther@suse.de>
21361 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
21362 * fold-const.c (fold_binary_loc): Move &A - &B simplification
21363 via ptr_difference_const ...
21364 * match.pd: ... here.
21365 When matching (X ^ Y) == Y also match with swapped operands.
21367 2015-06-29 Richard Biener <rguenther@suse.de>
21369 * lto-streamer.h (LTO_major_version): Bump to 5.
21371 2015-06-29 Richard Biener <rguenther@suse.de>
21373 PR tree-optimization/66677
21374 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
21375 STMT_VINFO_VEC_STMT clobbering less strict.
21377 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21379 PR middle-end/64130
21380 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
21381 division, compute max and min when value ranges for dividend and
21382 divisor are available.
21384 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
21385 Sandra Loosemore <sandra@codesourcery.com>
21387 * regrename.h (regrename_do_replace): Change to return bool.
21388 * regrename.c (rename_chains): Check return value of
21389 regname_do_replace.
21390 (regrename_do_replace): Re-validate the modified insns and
21391 return bool status.
21392 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
21393 Update to match rename_chains changes.
21394 * config/c6x/c6x.c (try_rename_operands): Assert that
21395 regrename_do_replace returns true.
21397 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
21399 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
21400 operand 2 here. Use copy_addr_to_reg to copy non-index
21401 register operand 2 to a temporary.
21402 (<mode>_stx): Ditto for operand 1.
21403 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
21404 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
21405 (ix86_store_bounds): Ditto.
21407 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
21409 * print-tree.c (print_node) [TREE_VEC]: Print its length.
21411 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
21413 * gimple.c (gimple_call_set_fndecl): Remove.
21414 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
21415 build1_loc directly instead of build_fold_addr_expr_loc.
21417 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
21419 * hash-map.h (hash_map::traverse): Use the definition of the
21420 Key typedef rather than the typedef itself.
21422 2015-06-26 Martin Jambor <mjambor@suse.cz>
21425 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
21426 NULL instead of calling dump_enabled_p.
21428 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21430 * config/aarch64/aarch64.opt: (override): New.
21431 * doc/invoke.texi (override): Document.
21432 * config/aarch64/aarch64.c (aarch64_flag_desc): New
21433 (aarch64_fusible_pairs): Likewise.
21434 (aarch64_tuning_flags): Likewise.
21435 (aarch64_tuning_override_function): Likewise.
21436 (aarch64_tuning_override_functions): Likewise.
21437 (aarch64_parse_one_option_token): Likewise.
21438 (aarch64_parse_boolean_options): Likewise.
21439 (aarch64_parse_fuse_string): Likewise.
21440 (aarch64_parse_tune_string): Likewise.
21441 (aarch64_parse_one_override_token): Likewise.
21442 (aarch64_parse_override_string): Likewise.
21443 (aarch64_override_options): Parse the -override string if it
21446 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21448 * config/aarch64/aarch64-protos.h (tune_params): Remove
21449 const from members.
21450 (aarch64_tune_params): Remove const, change to no longer be
21452 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
21453 change to no longer be a pointer, initialize to generic_tunings.
21454 (aarch64_min_divisions_for_recip_mul): Change dereference of
21455 aarch64_tune_params to member access.
21456 (aarch64_reassociation_width): Likewise.
21457 (aarch64_rtx_mult_cost): Likewise.
21458 (aarch64_address_cost): Likewise.
21459 (aarch64_branch_cost): Likewise.
21460 (aarch64_rtx_costs): Likewise.
21461 (aarch64_register_move_cost): Likewise.
21462 (aarch64_memory_move_cost): Likewise.
21463 (aarch64_sched_issue_rate): Likewise.
21464 (aarch64_builtin_vectorization_cost): Likewise.
21465 (aarch64_override_options): Take a copy of the selected tuning
21466 struct in to aarch64_tune_params, rather than just setting
21467 a pointer, change dereferences of aarch64_tune_params to member
21469 (aarch64_override_options_after_change): Change dereferences of
21470 aarch64_tune_params to member access.
21471 (aarch64_macro_fusion_p): Likewise.
21472 (aarch_macro_fusion_pair_p): Likewise.
21473 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
21475 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21477 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
21478 (aarch64_tune_flags): Likewise.
21479 (AARCH64_TUNE_FMA_STEERING): Likewise.
21480 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
21481 to AARCH64_FL_USE_FMA_STEERING_PASS.
21482 (cortex-a57.cortex-a53): Likewise.
21483 (cortex-a72): Use cortexa72_tunings.
21484 (cortex-a72.cortex-a53): Likewise.
21485 (exynos-m1): Likewise.
21486 * config/aarch64/aarch64-protos.h (tune_params): Add
21487 a field: extra_tuning_flags.
21488 * config/aarch64/aarch64-tuning-flags.def: New.
21489 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
21490 (aarch64_extra_tuning_flags): Likewise.
21491 (aarch64_tune_params): Declare here.
21492 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
21493 (cortexa53_tunings): Likewise.
21494 (cortexa57_tunings): Likewise.
21495 (thunderx_tunings): Likewise.
21496 (xgene1_tunings): Likewise.
21497 (cortexa72_tunings): New.
21498 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
21499 (gate): Check against aarch64_tune_params.
21500 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
21503 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21505 * config/aarch64/aarch64-fusion-pairs.def: New.
21506 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
21507 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
21508 aarch64_fusion_pairs.
21509 (AARCH64_FUSE_MOV_MOVK): Likewise.
21510 (AARCH64_FUSE_ADRP_ADD): Likewise.
21511 (AARCH64_FUSE_MOVK_MOVK): Likewise.
21512 (AARCH64_FUSE_ADRP_LDR): Likewise.
21513 (AARCH64_FUSE_CMP_BRANCH): Likewise.
21515 2015-06-26 Jiong Wang <jiong.wang@arm.com>
21517 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
21518 SYMBOL_SMALL_GOT_28K.
21519 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
21520 relocation modifiers.
21521 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
21522 (ldr_got_small_28k_<mode>): New.
21523 (ldr_got_small_28k_sidi): New.
21524 * config/aarch64/iterators.md (got_modifier): New mode iterator.
21525 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
21526 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
21527 SYMBOL_SMALL_GOT_28K.
21528 (aarch64_rtx_costs): Add costs for new instruction sequences.
21529 (initialize_aarch64_code_model): Initialize new model.
21530 (aarch64_classify_symbol): Recognize new model and new symbol classification.
21531 (aarch64_asm_preferred_eh_data_format): Support new model.
21532 (aarch64_load_symref_appropriately): Generate new instruction
21533 sequences for -fpic.
21534 (TARGET_USE_PSEUDO_PIC_REG): New definition.
21535 (aarch64_use_pseudo_pic_reg): New function.
21537 2015-06-26 Jiong Wang <jiong.wang@arm.com>
21539 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
21540 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
21541 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
21542 (aarch64_expand_mov_immediate): Ditto.
21543 (aarch64_print_operand): Ditto.
21544 (aarch64_classify_symbol): Ditto.
21546 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
21548 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
21550 2015-06-26 Bin Cheng <bin.cheng@arm.com>
21553 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
21554 assertion failed. Remove assertion itself.
21556 2015-06-26 Richard Biener <rguenther@suse.de>
21558 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
21559 and -A CMP CST -> A CMP -CST which is redundant with a pattern
21561 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
21562 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
21563 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
21564 * match.pd: ... patterns here.
21566 2015-06-26 Marek Polacek <polacek@redhat.com>
21568 * match.pd ((x | y) & ~(x & y) -> x ^ y,
21569 (x | y) & (~x ^ y) -> x & y): New patterns.
21571 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
21573 * rtl.h (emit): Add an optional boolean parameter to control
21574 whether barriers are emitted.
21575 * emit-rtl.c (emit): Likewise.
21576 * gensupport.c (get_emit_function): Return null rather than "emit".
21577 * genemit.c (gen_emit_seq): Handle the null return value.
21578 Don't emit barriers after the final instruction in the sequence.
21579 * gentarget-def.c (main): Don't emit barriers after the instruction.
21581 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21583 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
21584 TARGET_UNIFIED_ASM.
21586 2015-06-26 Richard Biener <rguenther@suse.de>
21588 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
21590 2015-06-26 Richard Biener <rguenther@suse.de>
21592 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
21593 irrespective on whether the inner operation has a single use
21594 of both off are constant.
21596 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
21597 Segher Boessenkool <segher@kernel.crashing.org>
21600 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
21601 before doing PUT_MODE or PUT_CODE on operands to avoid
21602 in-place RTX modification.
21604 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
21606 * gentarget-def.c (def_target_insn): Cast return of strtol to
21609 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
21611 * gimple.h (gimple_call_set_fn): Move inline function.
21612 * gimple.c (gimple_call_set_fn): Relocate here.
21614 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
21618 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
21619 the replacement insn will work.
21621 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
21623 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
21626 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
21628 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
21629 * cgraph.h: Include ipa-ref.h and plugin-api.h.
21630 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
21631 (symtab_node::address_can_be_compared_p): Move function.
21632 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
21634 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
21635 * auto-profile.c: Likewise.
21636 * bb-reorder.c: Likewise.
21637 * builtins.c: Likewise.
21638 * calls.c: Likewise.
21639 * cfgexpand.c: Likewise.
21640 * cgraphbuild.c: Likewise.
21641 * cgraphclones.c: Likewise.
21642 * cgraphunit.c: Likewise.
21643 * combine.c: Likewise.
21644 * coverage.c: Likewise.
21645 * data-streamer-in.c: Likewise.
21646 * data-streamer-out.c: Likewise.
21647 * data-streamer.c: Likewise.
21648 * dbxout.c: Likewise.
21649 * dwarf2out.c: Likewise.
21650 * except.c: Likewise.
21651 * expr.c: Likewise.
21652 * final.c: Likewise.
21653 * fold-const.c: Likewise.
21654 * ggc-page.c: Likewise.
21655 * gimple-fold.c: Likewise.
21656 * gimple-iterator.c: Likewise.
21657 * gimple-pretty-print.c: Likewise.
21658 * gimple-streamer-in.c: Likewise.
21659 * gimple-streamer-out.c: Likewise.
21660 * gimple.c: Likewise.
21661 * gimplify.c: Likewise.
21662 * ipa-chkp.c: Likewise.
21663 * ipa-comdats.c: Likewise.
21664 * ipa-cp.c: Likewise.
21665 * ipa-devirt.c: Likewise.
21666 * ipa-icf-gimple.c: Likewise.
21667 * ipa-icf.c: Likewise.
21668 * ipa-inline-analysis.c: Likewise.
21669 * ipa-inline-transform.c: Likewise.
21670 * ipa-inline.c: Likewise.
21671 * ipa-polymorphic-call.c: Likewise.
21672 * ipa-profile.c: Likewise.
21673 * ipa-prop.c: Likewise.
21674 * ipa-pure-const.c: Likewise.
21675 * ipa-ref.c: Likewise.
21676 * ipa-reference.c: Likewise.
21677 * ipa-split.c: Likewise.
21678 * ipa-utils.c: Likewise.
21679 * ipa-visibility.c: Likewise.
21681 * langhooks.c: Likewise.
21682 * lto-cgraph.c: Likewise.
21683 * lto-compress.c: Likewise.
21684 * lto-opts.c: Likewise.
21685 * lto-section-in.c: Likewise.
21686 * lto-section-out.c: Likewise.
21687 * lto-streamer-in.c: Likewise.
21688 * lto-streamer-out.c: Likewise.
21689 * lto-streamer.c: Likewise.
21690 * omp-low.c: Likewise.
21691 * opts-global.c: Likewise.
21692 * passes.c: Likewise.
21693 * predict.c: Likewise.
21694 * print-tree.c: Likewise.
21695 * profile.c: Likewise.
21697 * sanopt.c: Likewise.
21698 * stor-layout.c: Likewise.
21699 * symtab.c: Likewise.
21700 * toplev.c: Likewise.
21701 * trans-mem.c: Likewise.
21702 * tree-cfg.c: Likewise.
21703 * tree-chkp.c: Likewise.
21704 * tree-eh.c: Likewise.
21705 * tree-emutls.c: Likewise.
21706 * tree-inline.c: Likewise.
21707 * tree-nested.c: Likewise.
21708 * tree-parloops.c: Likewise.
21709 * tree-pretty-print.c: Likewise.
21710 * tree-profile.c: Likewise.
21711 * tree-sra.c: Likewise.
21712 * tree-ssa-alias.c: Likewise.
21713 * tree-ssa-live.c: Likewise.
21714 * tree-ssa-loop-ivcanon.c: Likewise.
21715 * tree-ssa-loop-ivopts.c: Likewise.
21716 * tree-ssa-pre.c: Likewise.
21717 * tree-ssa-sccvn.c: Likewise.
21718 * tree-ssa-strlen.c: Likewise.
21719 * tree-ssa-structalias.c: Likewise.
21720 * tree-streamer-in.c: Likewise.
21721 * tree-streamer-out.c: Likewise.
21722 * tree-streamer.c: Likewise.
21723 * tree-switch-conversion.c: Likewise.
21724 * tree-tailcall.c: Likewise.
21725 * tree-vect-data-refs.c: Likewise.
21726 * tree-vect-stmts.c: Likewise.
21727 * tree-vectorizer.c: Likewise.
21728 * tree.c: Likewise.
21729 * tsan.c: Likewise.
21730 * ubsan.c: Likewise.
21731 * value-prof.c: Likewise.
21732 * varasm.c: Likewise.
21733 * varpool.c: Likewise.
21734 * config/arm/arm.c: Likewise.
21735 * config/bfin/bfin.c: Likewise.
21736 * config/c6x/c6x.c: Likewise.
21737 * config/cris/cris.c: Likewise.
21738 * config/darwin-c.c: Likewise.
21739 * config/darwin.c: Likewise.
21740 * config/i386/i386.c: Likewise.
21741 * config/i386/winnt.c: Likewise.
21742 * config/microblaze/microblaze.c: Likewise.
21743 * config/mips/mips.c: Likewise.
21744 * config/rs6000/rs6000.c: Likewise.
21745 * config/rx/rx.c: Likewise.
21746 * config/s390/s390.c: Likewise.
21747 * config/tilegx/mul-tables.c: Likewise.
21749 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21751 * config/aarch64/aarch64.c, config/alpha/alpha.c,
21752 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
21753 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
21754 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
21755 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
21756 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
21757 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
21758 config/microblaze/microblaze.c, config/mips/mips.c,
21759 config/mmix/mmix.c, config/mn10300/mn10300.c,
21760 config/moxie/moxie.c, config/msp430/msp430.c,
21761 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
21762 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
21763 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
21764 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
21765 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
21766 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
21767 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
21768 target-def.h include.
21769 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
21771 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21773 * Makefile.in (TARGET_DEF): Add target-insns.def.
21774 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
21775 (build/gentarget-def.o): New rule.
21776 (genprogrtl): Add target-def.
21777 * target-insns.def, gentarget-def.c: New files.
21778 * target.def: Add targetm.have_* and targetm.gen_* hooks,
21779 based on the contents of target-insns.def.
21780 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
21781 (HAVE_return, gen_return): Delete.
21782 * target-def.h: Include insn-target-def.h.
21783 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
21784 instead of direct calls. Rely on them to do the appropriate assertions.
21785 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
21786 (convert_jumps_to_returns): Use targetm interface instead of
21788 (thread_prologue_and_epilogue_insns): Likewise.
21789 * reorg.c (find_end_label, dbr_schedule): Likewise.
21790 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
21791 * shrink-wrap.c (convert_to_simple_return): Likewise.
21792 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
21794 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21796 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
21797 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
21798 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
21799 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
21800 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
21801 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
21802 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
21803 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
21804 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
21805 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
21806 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
21807 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
21808 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
21809 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
21810 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
21811 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
21814 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21816 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
21817 (unbounded_int_hashmap_traits::key_type): Likewise.
21818 * hash-map.h (hash_map): Get the key type from the traits.
21819 * hash-traits.h (default_hash_traits): By default, inherit from the
21820 template parameter.
21821 * alias.c (alias_set_traits): Delete.
21822 (alias_set_entry_d::children): Use alias_set_hash as the first
21823 template parameter.
21824 (record_alias_subset): Update accordingly.
21825 * except.c (tree_hash_traits): Delete.
21826 (type_to_runtime_map): Use tree_hash as the first template parameter.
21827 (init_eh): Update accordingly.
21828 * genmatch.c (capture_id_map_hasher): Delete.
21829 (cid_map_t): Use nofree_string_hash as first template parameter.
21830 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
21831 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
21832 Use symbol_compare_hash as the first template parameter in
21833 subdivide_hash_map.
21834 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
21835 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
21836 template parameter.
21837 * passes.c (pass_registry_hasher): Delete.
21838 (name_to_pass_map): Use nofree_string_hash as the first template
21840 (register_pass_name): Update accordingly.
21841 * sanopt.c (sanopt_tree_map_traits): Delete.
21842 (sanopt_tree_triplet_map_traits): Delete.
21843 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
21844 template parameter.
21845 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
21846 the first template parameter.
21847 * sese.c (rename_map_hasher): Delete.
21848 (rename_map_type): Use tree_ssa_name_hash as the first template
21850 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
21851 (function_summary::m_map): Use map_hash as the first template
21853 (function_summary::release): Update accordingly.
21854 * tree-if-conv.c (phi_args_hash_traits): Delete.
21855 (predicate_scalar_phi): Use tree_operand_hash as the first template
21856 parameter to phi_arg_map.
21857 * tree-inline.h (dependence_hasher): Delete.
21858 (copy_body_data::dependence_map): Use dependence_hash as the first
21859 template parameter.
21860 * tree-inline.c (remap_dependence_clique): Update accordingly.
21861 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
21862 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
21864 (addr_stridxptr): Update accordingly.
21865 * value-prof.c (profile_id_traits): Delete.
21866 (cgraph_node_map): Use profile_id_hash as the first template
21868 (init_node_map): Update accordingly.
21869 * config/alpha/alpha.c (string_traits): Delete.
21870 (machine_function::links): Use nofree_string_hash as the first
21871 template parameter.
21872 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
21873 * config/m32c/m32c.c (pragma_traits): Delete.
21874 (pragma_htab): Use nofree_string_hash as the first template parameter.
21875 (m32c_note_pragma_address): Update accordingly.
21876 * config/mep/mep.c (pragma_traits): Delete.
21877 (pragma_htab): Use nofree_string_hash as the first template parameter.
21878 (mep_note_pragma_flag): Update accordingly.
21879 * config/mips/mips.c (mips16_flip_traits): Delete.
21880 (mflip_mips16_htab): Use nofree_string_hash as the first template
21882 (mflip_mips16_use_mips16_p): Update accordingly.
21883 (local_alias_traits): Delete.
21884 (mips16_local_aliases): Use nofree_string_hash as the first template
21886 (mips16_local_alias): Update accordingly.
21888 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21890 * hash-map-traits.h (default_hashmap_traits): Delete.
21892 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21894 * hash-map-traits.h (unbounded_hashmap_traits): New class.
21895 (unbounded_int_hashmap_traits): Likewise.
21896 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
21898 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21900 * ipa-icf.h (symbol_compare_hash): New class.
21901 (symbol_compare_hashmap_traits): Use it.
21902 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
21903 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
21904 (mem_alloc_description::reverse_mem_map_t): Remove redundant
21905 default_hashmap_traits.
21906 * sanopt.c (sanopt_tree_triplet_hash): New class.
21907 (sanopt_tree_triplet_map_traits): Use it.
21909 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21911 * gengtype-parse.c (require_template_declaration): Allow '+' in
21912 template parameters. Consolidate cases.
21913 * hash-traits.h (int_hash): New class.
21914 * alias.c (alias_set_hash): New structure.
21915 (alias_set_traits): Use it.
21916 * symbol-summary.h (function_summary::map_hash): New class.
21917 (function_summary::summary_hashmap_traits): Use it.
21918 * tree-inline.h (dependence_hash): New class.
21919 (dependence_hasher): Use it.
21920 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
21921 * value-prof.c (profile_id_hash): New class.
21922 (profile_id_traits): Use it.
21924 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21926 * config/mips/mips.c (mips16_flip_traits): Use it.
21927 (local_alias_traits, mips16_local_aliases): Convert from a map of
21928 rtxes to a map of symbol names.
21929 (mips16_local_alias): Update accordingly.
21931 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21933 * hash-traits.h (string_hash, nofree_string_hash): New classes.
21934 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
21935 * passes.c (pass_registry_hasher): Likewise.
21936 * config/alpha/alpha.c (string_traits): Likewise.
21937 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
21938 * config/m32c/m32c.c (pragma_traits): Likewise.
21939 * config/mep/mep.c (pragma_traits): Likewise.
21941 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21943 * tree-hash-traits.h (tree_hash): New class.
21944 * except.c: Include tree-hash-traits.h.
21945 (tree_hash_traits): Use tree_hash.
21947 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21949 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
21950 * sese.c: Include tree-hash-traits.h.
21951 (rename_map_hasher): Use tree_ssa_name_hasher.
21953 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21955 * tree-hash-traits.h (tree_decl_hash): New class.
21956 * tree-ssa-strlen.c: Include tree-hash-traits.h.
21957 (stridxlist_hash_traits): Use tree_decl_hash.
21959 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21961 * tree-hash-traits.h: New file.
21962 (tree_operand_hash): New class.
21963 * sanopt.c: Include tree-hash-traits.h.
21964 (sanopt_tree_map_traits): Use tree_operand_hash.
21965 * tree-if-conv.c: Include tree-hash-traits.h.
21966 (phi_args_hash_traits): Use tree_operand_hash.
21967 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
21968 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
21970 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21972 * hash-map-traits.h: Include hash-traits.h.
21973 (simple_hashmap_traits): New class.
21974 * mem-stats.h (hash_map): Change the default traits to
21975 simple_hashmap_traits<default_hash_traits<Key> >.
21977 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21979 * hash-table.h: Update comments.
21981 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21983 * hash-traits.h (default_hash_traits): New structure.
21984 * hash-set.h (default_hashset_traits): Delete.
21985 (hash_set): Use default_hash_traits<Key> instead of
21986 default_hashset_traits. Delete hash_entry type and use Key directly.
21987 * ipa-devirt.c (pair_traits): Delete.
21988 (default_hash_traits <type_pair>): Override.
21989 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
21990 (odr_types_equivalent_p, add_type_duplicate): Likewise.
21992 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21994 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
21996 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21998 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
21999 (has_is_empty, is_empty_helper): Delete.
22000 (has_mark_deleted, mark_deleted_helper): Delete.
22001 (has_mark_empty, mark_empty_helper): Delete.
22002 (hash_table::is_deleted): Call the Descriptor unconditionally.
22003 (hash_table::is_empty): Likewise.
22004 (hash_table::mark_deleted): Likewise.
22005 (hash_table::mark_empty): Likewise.
22007 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22009 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
22010 redundant typedefs and members.
22011 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
22012 redundant typedefs.
22013 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
22014 * ipa-devirt.c (odr_name_hasher): Likewise.
22015 (polymorphic_call_target_hasher): Likewise.
22016 * ira-costs.c (cost_classes_hasher): Likewise.
22017 * statistics.c (stats_counter_hasher): Likewise.
22018 * trans-mem.c (log_entry_hasher): Likewise.
22019 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
22020 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
22021 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
22022 * var-tracking.c (variable_hasher): Likewise.
22023 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
22024 Remove redundant typedefs and members.
22026 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22028 * hash-traits.h (ggc_cache_hasher): Rename to...
22029 (ggc_cache_remove): ...this and remove typedefs.
22030 (ggc_cache_ptr_hash): New class.
22031 * hash-table.h: Update commentary.
22032 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
22033 rather than ggc_cache_hasher.
22034 (const_wide_int_hasher, reg_attr_hasher): Likewise.
22035 (const_double_hasher, const_fixed_hasher): Likewise.
22036 * function.c (insn_cache_hasher): Likewise.
22037 * trans-mem.c (tm_wrapper_hasher): Likewise.
22038 * tree.h (tree_decl_map_cache_hasher): Likewise.
22039 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
22040 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
22041 * ubsan.c (tree_type_map_cache_hasher): Likewise.
22042 * varasm.c (tm_clone_hasher): Likewise.
22043 * config/i386/i386.c (dllimport_hasher): Likewise.
22044 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
22045 (tree_hasher): Likewise.
22047 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22049 * hash-traits.h (ggc_hasher): Rename to...
22050 (ggc_remover): ...this and remove typedefs.
22051 (ggc_cache_hasher): Update accordingly. Add typedefs.
22052 (ggc_ptr_hash): New class.
22053 * hash-table.h: Update comment.
22054 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
22056 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
22057 (tree_descriptor_hasher): Likewise.
22058 * cgraph.c (function_version_hasher): Likewise.
22059 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
22060 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
22061 (dw_loc_list_hasher, addr_hasher): Likewise.
22062 * function.h (used_type_hasher): Likewise.
22063 * function.c (temp_address_hasher): Likewise.
22064 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
22065 * libfuncs.h (libfunc_hasher): Likewise.
22066 * lto-streamer.h (decl_state_hasher): Likewise.
22067 * optabs.c (libfunc_decl_hasher): Likewise.
22068 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
22069 * varasm.c (section_hasher, object_block_hasher): Likewise.
22070 (const_rtx_desc_hasher): Likewise.
22071 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
22072 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
22074 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22076 * hash-traits.h (free_ptr_hash): New class.
22077 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
22078 rather than typed_free_remove. Remove redudant typedefs.
22079 (external_ref_hasher): Likewise.
22080 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
22081 (ehspec_hasher): Likewise.
22082 * ggc-common.c (saving_hasher): Likewise.
22083 * gimplify.c (gimplify_hasher): Likewise.
22084 * haifa-sched.c (delay_i2_hasher): Likewise.
22085 * loop-invariant.c (invariant_expr_hasher): Likewise.
22086 * loop-iv.c (biv_entry_hasher): Likewise.
22087 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
22088 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
22089 * tree-cfg.c (locus_discrim_hasher): Likewise.
22090 * tree-eh.c (finally_tree_hasher): Likewise.
22091 * tree-into-ssa.c (var_info_hasher): Likewise.
22092 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
22093 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
22094 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
22095 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
22096 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
22097 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
22098 (shared_bitmap_hasher): Likewise.
22099 * tree-ssa-threadupdate.c (redirection_data): Likewise.
22100 * tree-vectorizer.h (peel_info_hasher): Likewise.
22101 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
22102 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
22104 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22106 * hash-table.h: Update comments.
22107 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
22108 (nofree_ptr_hash): New class.
22109 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
22110 than typed_noop_remove. Remove redudant typedefs.
22111 * attribs.c (attribute_hasher): Likewise.
22112 * cfg.c (bb_copy_hasher): Likewise.
22113 * cselib.c (cselib_hasher): Likewise.
22114 * dse.c (invariant_group_base_hasher): Likewise.
22115 * dwarf2cfi.c (trace_info_hasher): Likewise.
22116 * dwarf2out.c (macinfo_entry_hasher): Likewise.
22117 (comdat_type_hasher, loc_list_hasher): Likewise.
22118 * gcse.c (pre_ldst_expr_hasher): Likewise.
22119 * genmatch.c (id_base): Likewise.
22120 * genrecog.c (test_pattern_hasher): Likewise.
22121 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
22122 * haifa-sched.c (delay_i1_hasher): Likewise.
22123 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
22124 * ipa-icf.h (congruence_class_group_hash): Likewise.
22125 * ipa-profile.c (histogram_hash): Likewise.
22126 * ira-color.c (allocno_hard_regs_hasher): Likewise.
22127 * lto-streamer.h (string_slot_hasher): Likewise.
22128 * lto-streamer.c (tree_entry_hasher): Likewise.
22129 * plugin.c (event_hasher): Likewise.
22130 * postreload-gcse.c (expr_hasher): Likewise.
22131 * store-motion.c (st_expr_hasher): Likewise.
22132 * tree-sra.c (uid_decl_hasher): Likewise.
22133 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
22134 (ssa_name_var_hash): Likewise.
22135 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
22136 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
22137 * tree-ssa-pre.c (pre_expr_d): Likewise.
22138 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
22139 * vtable-verify.h (registration_hasher): Likewise.
22140 * vtable-verify.c (vtbl_map_hasher): Likewise.
22141 * config/arm/arm.c (libcall_hasher): Likewise.
22142 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
22143 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
22144 * config/sol2.c (comdat_entry_hasher): Likewise.
22145 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
22146 (print_fold_checksum, fold_checksum_tree): Likewise.
22147 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
22148 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
22149 (fold_build_call_array_loc): Likewise.
22150 * tree-ssa-ccp.c (gimple_htab): Likewise.
22151 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
22152 rather than pointer_type.
22154 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22156 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
22157 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
22159 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22161 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
22162 (ggc_hasher::ggc_mx): Likewise.
22163 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
22164 that duplicate ggc_hasher ones.
22166 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22168 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
22169 (gt_cleare_cache): Check here for deleted and empty entries.
22170 Replace handle_cache_entry with a call to keep_cache_entry.
22171 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
22172 (ggc_cache_hasher::keep_cache_entry): New function.
22173 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
22174 (tm_wrapper_hasher::keep_cache_entry): New function.
22175 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
22176 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
22177 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
22178 (type_cache_hasher::keep_cache_entry): New function.
22179 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
22180 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
22181 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
22182 (tree_type_map_cache_hasher::keep_cache_entry): New function.
22183 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
22184 (tm_clone_hasher::keep_cache_entry): New function.
22185 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
22186 (dllimport_hasher::keep_cache_entry): New function.
22188 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22190 * hash-table.h: Include hash-traits.h.
22191 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
22192 (ggc_cache_hasher): Move to...
22193 * hash-traits.h: ...this new file.
22195 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22197 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
22198 struct cl_optimization.
22199 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
22200 * tree.c (make_node_stat): Allocate cl_optimization struct.
22201 (copy_node_stat): Allocate and copy cl_optimization struct.
22203 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22205 * function.h (struct incoming_args): Move struct.
22206 (pass_by_reference, reference_callee_copied): Remove prototypes.
22207 * emit-rtl.h (struct incoming_args): Relocate struct here.
22208 * calls.h (pass_by_reference, reference_callee_copied): Relocate
22210 * function.c (pass_by_reference, reference_callee_copied): Move.
22211 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
22212 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
22213 * ipa-chkp.c: Include calls.h.
22215 2015-06-25 Andrew Macleod <amacleod@redhat.com>
22217 * alias.h (alias_set_type): Move typedef.
22218 * coretypes.h (alias_set_type): Relocate typedef here.
22219 * rtl.h: Don't include alias.h.
22221 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22223 * cgraph.h (cgraph_rtl_info): Move to rtl.h
22224 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
22226 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
22227 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
22229 * calls.c: Include hard-reg-set.h before rtl.h.
22232 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
22233 Vladimir Makarov <vmakarov@redhat.com>
22235 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
22238 2015-06-25 Richard Biener <rguenther@suse.de>
22240 * fold-const.c (fold_binary_loc): Move simplification of
22241 (X <<>> C1) & C2 ...
22242 * match.pd: ... here.
22244 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
22246 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
22248 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22250 * match.pd: Add patterns for vec_conds between 1 and 0.
22252 2015-06-25 Richard Biener <rguenther@suse.de>
22254 * tree-vect-stmts.c (vectorizable_conversion): Do not set
22255 STMT_VINFO_VEC_STMT for SLP.
22256 (vectorizable_store): Likewise.
22257 (vectorizable_load): Likewise.
22258 (vect_transform_stmt): Catch SLP vectorization clobbering
22259 STMT_VINFO_VEC_STMT.
22261 2015-06-25 Richard Biener <rguenther@suse.de>
22263 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
22265 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
22266 cleanup resulting dead code and parameters.
22267 (vect_transform_slp_perm_load): Adjust.
22269 2015-06-25 Nick Clifton <nickc@redhat.com>
22271 * config/bfin/bfin.c (bfin_expand_prologue): Set
22272 current_function_static_stack_size if flag_stack_usage_info is set.
22273 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
22274 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
22275 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
22276 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
22278 2015-06-25 Tom de Vries <tom@codesourcery.com>
22280 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
22281 comment that the generated IV is unsigned.
22283 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22286 * config/arm/arm.c (arm_dbx_register_number): Return
22287 DWARF_FRAME_REGISTERS by default.
22289 2015-06-25 Tom de Vries <tom@codesourcery.com>
22291 * dominance.c (calculate_dominance_info): Fix verify_dominators call
22292 argument. Call verify_dominator when reusing dominator info.
22294 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
22297 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
22298 an additional element of the unspec vector. Modify indices
22300 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
22301 * config/sh/sh.c (prepare_move_operands): Pass incremented
22302 const_int to gen_GOTaddr2picreg.
22303 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
22305 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
22307 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
22308 Condition on TARGET_FLOAT.
22310 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
22312 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
22315 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
22317 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
22319 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
22320 aarch64_err_no_fpadvsimd.
22322 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
22323 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
22324 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
22325 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
22326 Turn error into assert, test TARGET_FLOAT.
22327 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
22330 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
22333 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
22335 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
22337 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
22339 2015-06-24 Renlin Li <renlin.li@arm.com>
22341 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
22342 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
22344 2015-06-24 Richard Biener <rguenther@suse.de>
22346 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
22348 (lower_opt_convert): Support lowering of conditional view_convert.
22349 (parser::parse_operation): Likewise.
22350 (parser::parse_for): Likewise.
22352 2015-06-24 Renlin Li <renlin.li@arm.com>
22354 * varasm.c (emit_local): Use unsigned int for align variable.
22356 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22359 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
22360 for negative numbers.
22362 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22364 PR rtl-optimization/66306
22365 * reload.c (find_reloads): Swap the match_dup info for
22366 commutative operands.
22368 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22370 * config/s390/vx-builtins.md
22371 ("vec_scatter_element<mode>_<non_vec_int>")
22372 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
22373 attribute with bhfgq.
22375 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22377 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
22379 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22381 * config/s390/s390-builtin-types.def: Add flag to indicate the
22382 options under which the function type is needed.
22383 * config/s390/s390-builtins.def: Add flag to indicate the options
22384 under which the builtin is enabled.
22385 * config/s390/s390-builtins.h: Add flags parameter to macro
22387 (bflags_for_builtin): New function.
22388 (flags_for_builtin): Renamed to ...
22389 (opflags_for_builtin): ... this.
22390 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
22391 flags_for_builtin to bflags_for_builtin and
22392 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
22393 * config/s390/s390.c: Add initialization of bflags_builtin and
22394 opflags_builtin arrays.
22395 Remove code for flags_builtin.
22396 (s390_init_builtins): Only create builtin function types if one of
22397 their flags is active.
22398 Only create builtins if all of their flags are active.
22399 (s390_expand_builtin): Rename flags_for_builtin to
22400 opflags_for_builtin.
22402 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22404 * config/s390/vecintrin.h: Remove internal builtins.
22406 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22408 * config/s390/s390.c (s390_secondary_reload): Fix check for
22409 GENERAL_REGS register class.
22411 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22413 * config/s390/s390.c (s390_support_vector_misalignment): Call
22414 default implementation for !TARGET_VX.
22416 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22418 * config/s390/s390.c (s390_legitimate_constant_p): Add
22421 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22423 * config/s390/s390.c (s390_vector_abi): New variable definition.
22424 (s390_check_type_for_vector_abi): New function.
22425 (TARGET_ASM_FILE_END): New macro definition.
22426 (s390_asm_file_end): New function.
22427 (s390_function_arg): Call s390_check_type_for_vector_abi.
22428 (s390_gimplify_va_arg): Likewise.
22429 * configure: Regenerate.
22430 * configure.ac: Check for .gnu_attribute Binutils feature.
22432 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
22435 * config/bfin/bfin.c (hwloop_optimize): Initialize
22436 JUMP_LABEL for newly created jump.
22438 2015-06-23 Tristan Gingold <gingold@adacore.com>
22440 * collect-utils.c (collect_wait): Unlink the response file here
22442 (do_wait): ...here.
22443 (utils_cleanup): ...and here.
22445 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
22447 * df-scan.c: Don't include target-def.h.
22448 * targhooks.c: Likewise.
22449 * config/arm/arm-c.c: Likewise.
22450 * config/i386/i386-c.c: Likewise.
22451 * config/nds32/nds32-cost.c: Likewise.
22452 * config/nds32/nds32-fp-as-gp.c: Likewise.
22453 * config/nds32/nds32-intrinsic.c: Likewise.
22454 * config/nds32/nds32-isr.c: Likewise.
22455 * config/nds32/nds32-md-auxiliary.c: Likewise.
22456 * config/nds32/nds32-memory-manipulation.c: Likewise.
22457 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22458 * config/nds32/nds32-predicates.c: Likewise.
22460 2015-06-23 Richard Biener <rguenther@suse.de>
22462 PR tree-optimization/66636
22463 * tree-vect-stmts.c (vectorizable_store): Properly compute the
22464 def type for further defs for strided stores.
22466 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
22468 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
22469 conditional selects.
22470 (setcc_int<mode>, setcc_float<mode>): Reformat.
22472 2015-06-23 Marek Polacek <polacek@redhat.com>
22474 * match.pd ((x + y) - (x | y) -> x & y,
22475 (x + y) - (x & y) -> x | y): New patterns.
22477 2015-06-23 Ludovic Courtès <ludo@gnu.org>
22480 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
22481 '-dynamic-linker' within %{!shared: ...}.
22483 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
22486 * config/i386/predicates.md (addsub_vm_operator): New predicate.
22487 (addsub_vs_operator): Ditto.
22488 (addsub_vs_parallel): Ditto.
22489 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
22490 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
22491 Put minus RTX before plus and adjust vec_merge selector.
22492 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
22493 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
22494 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
22495 (addsub vec_merge splitters): New combiner splitters.
22496 (addsub vec_select/vec_concat splitters): Ditto.
22498 2015-06-23 Bin Cheng <bin.cheng@arm.com>
22500 PR tree-optimization/66449
22501 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
22502 POINTER_PLUS_EXPR for pointers.
22504 2015-06-23 Alan Modra <amodra@gmail.com>
22506 * rtlanal.c (commutative_operand_precedence): Correct comments.
22507 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
22508 declaration. Return an int. Distinguish REG,REG return from
22510 (struct simplify_plus_minus_op_data): Make local to function.
22511 (simplify_plus_minus): Don't set canonicalized if merely sorting
22512 registers. Avoid packing ops if nothing changes. White space fixes.
22514 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
22516 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
22517 -fdump-ada-spec is passed but not if -fsyntax-only is.
22519 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
22522 * lra-lives.c (process_bb_lives): Check insn copying the same
22523 reload pseudo and don't create a copy for it.
22525 2015-06-22 Tom de Vries <tom@codesourcery.com>
22527 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
22530 2015-06-22 Tom de Vries <tom@codesourcery.com>
22532 * builtins.def (DEF_GOMP_BUILTIN): Test
22533 'flag_tree_parallelize_loops > 1' instead of
22534 'flag_tree_parallelize_loops'. Test flag_cilkplus.
22536 2015-06-22 Tom de Vries <tom@codesourcery.com>
22538 * dominance.c (calculate_dominance_info): Verify dominators if
22541 2015-06-22 Marek Polacek <polacek@redhat.com>
22543 * match.pd ((x ^ y) ^ (x | y) -> x & y,
22544 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
22545 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
22546 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
22548 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
22551 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
22552 cost of embedded comparison.
22554 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22557 * config/rs6000/predicates.md (altivec_register_operand): Permit
22558 virtual stack registers.
22559 (vsx_register_operand): Likewise.
22560 (vfloat_operand): Likewise.
22561 (vint_operand): Likewise.
22562 (vlogical_operand): Likewise.
22564 2015-06-22 Richard Biener <rguenther@suse.de>
22566 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
22567 and single_scalar_iteration_cost members.
22568 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
22569 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
22570 (vect_get_single_scalar_iteration_cost): Remove.
22571 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
22572 Use LOOP_VINFO_SCALAR_ITERATION_COST.
22573 * tree-vect-loop.c (destroy_loop_vec_info): Free
22575 (vect_get_single_scalar_iteration_cost): Compute result into
22576 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
22577 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
22578 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
22579 (vect_estimate_min_profitable_iters): Use them.
22581 2015-06-22 Christian Bruel <christian.bruel@st.com>
22584 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
22585 (TARGET_INSERT_ATTRIBUTES): Define.
22586 (thumb_flipper): New var.
22587 * config/arm/arm.opt (-mflip-thumb): New switch.
22589 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
22590 Martin Liska <mliska@suse.cz>
22593 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
22594 construction of arg_types.
22595 (sem_function::sem_function): Likewise.
22596 (sem_function::~sem_function): Remove destruction of arg_types.
22597 (sem_function::compatible_parm_types_p): New function.
22598 (sem_function::equals_wpa): Reorg matching of return values
22599 and parameter types.
22600 (sem_function::equals_private): Reorg mathcing of argument types.
22601 (sem_function::parse_tree_args): Remove.
22602 * ipa-icf.h (init_wpa): Do not call it.
22603 (parse_tree_args): Remove.
22604 (compatible_parm_types_p): Declare.
22605 (result_type): Remove.
22606 (arg_types): Remove.
22608 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
22611 * ipa-polymorphic-call.c
22612 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
22613 initializing alias oracle; fix formating; set base_alias_set if it
22616 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
22618 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
22619 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
22620 (find_inc): Likewise.
22621 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
22623 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
22624 * df-scan.c (df_swap_refs): Remove.
22625 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
22626 * dominance.c (link_roots): Use std::swap instead of manually swapping.
22627 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
22628 * fold-const.c (fold_relational_const): Likewise.
22629 * genattrtab.c (simplify_test_exp): Likewise.
22630 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
22631 gimple_simplify): Likewise.
22632 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
22633 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
22634 * ipa-devirt.c (add_type_duplicate): Likewise.
22635 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
22636 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
22637 * lra.c (lra_create_copy): Likewise.
22638 * lto-streamer-out.c (DFS::DFS): Likewise.
22639 * modulo-sched.c (get_sched_window): Likewise.
22640 * omega.c (omega_pretty_print_problem): Likewise.
22641 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
22642 * reload1.c (reloads_unique_chain_p): Likewise.
22643 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
22644 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
22646 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
22648 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
22649 predicate_mem_writes): Likewise.
22650 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
22651 * tree-predcom.c (combine_chains): Likewise.
22652 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
22653 refs_may_alias_p_1): Likewise.
22654 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
22655 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
22656 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
22657 number_of_iterations_cond): Likewise.
22658 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
22659 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
22660 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
22661 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
22662 * tree-vrp.c (extract_range_from_binary_expr_1,
22663 extract_range_from_unary_expr_1): Likewise.
22665 2015-06-20 Marek Polacek <polacek@redhat.com>
22667 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
22669 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
22672 * config/sh/sh.c (prepare_move_operands): Replace subreg
22673 index term with R0 for base and index addressing.
22675 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
22677 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
22679 (movsf_aarch64): Change condition from register_operand to
22680 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
22681 load1. Change type for alternative 7 to store1.
22682 (movdf_aarch64): Likewise.
22684 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
22686 * config/vax/vax.md: Adjust sign/zero extend patterns to
22687 handle SUBREGs in operands[1].
22689 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22691 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
22692 of manually swapping.
22693 (expand_vec_perm_interleave2): Likewise.
22695 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
22697 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
22698 reuse bounds created for abnormal ssa names.
22700 2015-06-19 Jakub Jelinek <jakub@redhat.com>
22702 * config/nvptx/nvptx.md (allocate_stack): Rename to...
22703 (allocate_stack_<mode>): ... this, and add :P on both
22704 match_operand and unspec.
22705 (allocate_stack): New expander.
22707 2015-06-19 Christian Bruel <christian.bruel@st.com>
22711 * config/arm/arm.c (arm_set_current_function): Handle
22712 explicit default options.
22714 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
22716 * config/i386/i386.md (*movsicc_noc_zext): New insn.
22717 (zero-extended cmove with mem peephole2): New pattern.
22718 (cmove with mem peephole2): Merge patterns.
22720 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
22722 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
22724 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
22726 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
22727 * config/mips/mips.md (*madd4<mode>): Ditto.
22728 (*nmadd3<mode>) Ditto.
22729 (*nmadd4<mode>_fastmath): Ditto.
22730 (*nmadd3<mode>_fastmath): Ditto.
22731 (*nmsub4<mode>): Ditto.
22732 (*nmsub3<mode>): Ditto.
22733 (*nmsub4<mode>_fastmath): Ditto.
22734 (*nmsub3<mode>_fastmath): Ditto.
22736 2015-06-18 Michael Matz <matz@suse.de>
22738 PR middle-end/66253
22739 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
22740 grouped strided stores.
22741 (vectorizable_load): Don't use the DR from first_stmt in
22742 the non-SLP grouped strided case.
22744 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
22747 * function.c (assign_bounds): Add arguments assign_regs,
22748 assign_special, assign_bt.
22749 (assign_parms): For vararg functions handle bounds in BT
22750 and special slots after incoming vararg bounds.
22752 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
22754 PR middle-end/66568
22755 * cfgexpand.c (expand_return): Handle missing bounds.
22756 (expand_gimple_stmt_1): Likewise.
22757 * tree-chkp.c (chkp_expand_zero_bounds): New.
22758 * tree-chkp.h (chkp_expand_zero_bounds): New.
22760 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
22762 PR middle-end/66567
22763 * ipa-chkp.c (chkp_maybe_create_clone): Require
22764 functions to be instrumentable.
22765 * tree-chkp.c (chkp_replace_function_pointer): Use
22766 chkp_instrumentable_p instead of attribute check.
22768 2015-06-18 Richard Biener <rguenther@suse.de>
22770 PR tree-optimization/66510
22771 * tree-vect-stmts.c (vectorizable_load): Properly compute the
22772 number of vector loads for SLP permuted loads.
22773 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
22774 check the stride for loop vectorization.
22775 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
22776 vectorization factor.
22777 (vect_analyze_group_access): If the group size is not a power
22778 of two require a epilogue loop.
22779 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
22780 compute and optimizing and alias test pruning after final
22781 vectorization factor computation.
22782 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
22784 (vect_transform_slp_perm_load): Properly compute the original
22785 number of vector load stmts.
22787 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
22789 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
22790 "unlikely character , in @var" warning.
22792 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
22794 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
22795 (ix86_function_arg_advance): Ditto.
22796 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
22798 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
22800 * function.h (struct rtl_data): Remove struct and accessor macros.
22801 * emit-rtl.h (struct rtl_data): Relocate to here.
22802 * Makefile.in (GTFILES): Add emit-rtl.h.
22803 * df-core.c: Include emit-rtl.h.
22804 * genattrtab.c: Likewise.
22805 * genconditions.c: Likewise.
22806 * genpreds.c: Likewise.
22807 * genrecog.c: Likewise.
22808 * regcprop.c: Likewise.
22809 * resource.c: Likewise.
22810 * sched-rgn.c: Likewise.
22811 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22812 * config/i386/winnt.c: Likewise.
22814 2015-06-17 Jakub Jelinek <jakub@redhat.com>
22816 PR middle-end/66429
22817 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
22818 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
22819 and has_force_vectorize_loops flags from cfun into
22821 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
22822 if simduid is non-NULL.
22823 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
22824 * passes.def (pass_simduid_cleanup): Add new pass after loop
22826 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
22827 indirection from htab argument's type.
22828 (shrink_simd_arrays): New function.
22829 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
22830 Don't call adjust_simduid_builtins if there are no loops.
22831 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
22832 (pass_simduid_cleanup::execute): New method.
22833 (make_pass_simduid_cleanup): New function.
22835 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
22837 * tree-core.h (tree_target_option): Make opts field a pointer to a
22838 cl_target_option instead of an instance of the struct.
22839 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
22841 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
22842 TARGET_OPTION_NODE.
22843 (copy_node_stat): Allocate and copy struct cl_target_option.
22845 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
22847 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
22848 Remove conditional exposure of prototypes.
22849 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
22850 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
22851 definitions in tree.h with functions.
22852 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
22854 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
22856 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
22858 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
22859 (*cmp<mode>_signed): ... this.
22860 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
22861 (*cmp<mode>_unsigned): ... this. Remove %b.
22863 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
22865 * coretypes.h: Include input.h and as-a.h.
22866 * rtl.h: Include input.h and as-a.h for generator files.
22867 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
22868 * vec.c: Don't include diagnostic-core.h.
22869 * alias.c: Do not include input.h, line-map.h or is-a.h.
22870 * asan.c: Likewise.
22871 * attribs.c: Likewise.
22872 * auto-inc-dec.c: Likewise.
22873 * auto-profile.c: Likewise.
22874 * bb-reorder.c: Likewise.
22875 * bt-load.c: Likewise.
22876 * builtins.c: Likewise.
22877 * caller-save.c: Likewise.
22878 * calls.c: Likewise.
22879 * ccmp.c: Likewise.
22881 * cfganal.c: Likewise.
22882 * cfgbuild.c: Likewise.
22883 * cfgcleanup.c: Likewise.
22884 * cfgexpand.c: Likewise.
22885 * cfghooks.c: Likewise.
22886 * cfgloop.c: Likewise.
22887 * cfgloop.h: Likewise.
22888 * cfgloopanal.c: Likewise.
22889 * cfgloopmanip.c: Likewise.
22890 * cfgrtl.c: Likewise.
22891 * cgraph.c: Likewise.
22892 * cgraphbuild.c: Likewise.
22893 * cgraphclones.c: Likewise.
22894 * cgraphunit.c: Likewise.
22895 * cilk-common.c: Likewise.
22896 * combine-stack-adj.c: Likewise.
22897 * combine.c: Likewise.
22898 * compare-elim.c: Likewise.
22899 * convert.c: Likewise.
22900 * coverage.c: Likewise.
22901 * cppbuiltin.c: Likewise.
22902 * cprop.c: Likewise.
22904 * cselib.c: Likewise.
22905 * data-streamer-in.c: Likewise.
22906 * data-streamer-out.c: Likewise.
22907 * data-streamer.c: Likewise.
22908 * dbxout.c: Likewise.
22911 * debug.c: Likewise.
22912 * df-core.c: Likewise.
22913 * df-problems.c: Likewise.
22914 * df-scan.c: Likewise.
22917 * diagnostic-core.h: Likewise.
22918 * diagnostic.c: Likewise.
22919 * dojump.c: Likewise.
22920 * dominance.c: Likewise.
22921 * domwalk.c: Likewise.
22922 * double-int.c: Likewise.
22924 * dumpfile.c: Likewise.
22925 * dumpfile.h: Likewise.
22926 * dwarf2asm.c: Likewise.
22927 * dwarf2cfi.c: Likewise.
22928 * dwarf2out.c: Likewise.
22929 * emit-rtl.c: Likewise.
22930 * et-forest.c: Likewise.
22931 * except.c: Likewise.
22932 * explow.c: Likewise.
22933 * expmed.c: Likewise.
22934 * expr.c: Likewise.
22935 * final.c: Likewise.
22936 * fixed-value.c: Likewise.
22937 * fold-const.c: Likewise.
22938 * function.c: Likewise.
22939 * fwprop.c: Likewise.
22940 * gcc-plugin.h: Likewise.
22941 * gcse.c: Likewise.
22942 * generic-match-head.c: Likewise.
22943 * ggc-page.c: Likewise.
22944 * gimple-builder.c: Likewise.
22945 * gimple-expr.c: Likewise.
22946 * gimple-fold.c: Likewise.
22947 * gimple-iterator.c: Likewise.
22948 * gimple-low.c: Likewise.
22949 * gimple-match-head.c: Likewise.
22950 * gimple-pretty-print.c: Likewise.
22951 * gimple-ssa-isolate-paths.c: Likewise.
22952 * gimple-ssa-strength-reduction.c: Likewise.
22953 * gimple-streamer-in.c: Likewise.
22954 * gimple-streamer-out.c: Likewise.
22955 * gimple-streamer.h: Likewise.
22956 * gimple-walk.c: Likewise.
22957 * gimple.c: Likewise.
22958 * gimplify-me.c: Likewise.
22959 * gimplify.c: Likewise.
22960 * godump.c: Likewise.
22961 * graph.c: Likewise.
22962 * graphite-blocking.c: Likewise.
22963 * graphite-dependences.c: Likewise.
22964 * graphite-interchange.c: Likewise.
22965 * graphite-isl-ast-to-gimple.c: Likewise.
22966 * graphite-optimize-isl.c: Likewise.
22967 * graphite-poly.c: Likewise.
22968 * graphite-scop-detection.c: Likewise.
22969 * graphite-sese-to-poly.c: Likewise.
22970 * graphite.c: Likewise.
22971 * haifa-sched.c: Likewise.
22972 * hw-doloop.c: Likewise.
22973 * ifcvt.c: Likewise.
22974 * init-regs.c: Likewise.
22975 * input.c: Likewise.
22976 * internal-fn.c: Likewise.
22977 * ipa-chkp.c: Likewise.
22978 * ipa-comdats.c: Likewise.
22979 * ipa-cp.c: Likewise.
22980 * ipa-devirt.c: Likewise.
22981 * ipa-icf-gimple.c: Likewise.
22982 * ipa-icf.c: Likewise.
22983 * ipa-inline-analysis.c: Likewise.
22984 * ipa-inline-transform.c: Likewise.
22985 * ipa-inline.c: Likewise.
22986 * ipa-polymorphic-call.c: Likewise.
22987 * ipa-profile.c: Likewise.
22988 * ipa-prop.c: Likewise.
22989 * ipa-pure-const.c: Likewise.
22990 * ipa-ref.c: Likewise.
22991 * ipa-reference.c: Likewise.
22992 * ipa-split.c: Likewise.
22993 * ipa-utils.c: Likewise.
22994 * ipa-visibility.c: Likewise.
22996 * ira-build.c: Likewise.
22997 * ira-color.c: Likewise.
22998 * ira-conflicts.c: Likewise.
22999 * ira-costs.c: Likewise.
23000 * ira-emit.c: Likewise.
23001 * ira-lives.c: Likewise.
23003 * jump.c: Likewise.
23004 * langhooks.c: Likewise.
23006 * loop-doloop.c: Likewise.
23007 * loop-init.c: Likewise.
23008 * loop-invariant.c: Likewise.
23009 * loop-iv.c: Likewise.
23010 * loop-unroll.c: Likewise.
23011 * lower-subreg.c: Likewise.
23012 * lra-assigns.c: Likewise.
23013 * lra-coalesce.c: Likewise.
23014 * lra-constraints.c: Likewise.
23015 * lra-eliminations.c: Likewise.
23016 * lra-lives.c: Likewise.
23017 * lra-remat.c: Likewise.
23018 * lra-spills.c: Likewise.
23020 * lto-cgraph.c: Likewise.
23021 * lto-compress.c: Likewise.
23022 * lto-opts.c: Likewise.
23023 * lto-section-in.c: Likewise.
23024 * lto-section-out.c: Likewise.
23025 * lto-streamer-in.c: Likewise.
23026 * lto-streamer-out.c: Likewise.
23027 * lto-streamer.c: Likewise.
23029 * mode-switching.c: Likewise.
23030 * modulo-sched.c: Likewise.
23031 * omega.c: Likewise.
23032 * omp-low.c: Likewise.
23033 * optabs.c: Likewise.
23034 * opts-global.c: Likewise.
23035 * opts.h: Likewise.
23036 * passes.c: Likewise.
23037 * plugin.c: Likewise.
23038 * postreload-gcse.c: Likewise.
23039 * postreload.c: Likewise.
23040 * predict.c: Likewise.
23041 * pretty-print.h: Likewise.
23042 * print-rtl.c: Likewise.
23043 * print-tree.c: Likewise.
23044 * profile.c: Likewise.
23045 * real.c: Likewise.
23046 * realmpfr.c: Likewise.
23047 * recog.c: Likewise.
23049 * reg-stack.c: Likewise.
23050 * regcprop.c: Likewise.
23051 * reginfo.c: Likewise.
23052 * regrename.c: Likewise.
23053 * regstat.c: Likewise.
23054 * reload.c: Likewise.
23055 * reload1.c: Likewise.
23056 * reorg.c: Likewise.
23057 * resource.c: Likewise.
23058 * rtl-chkp.c: Likewise.
23059 * rtl-error.c: Likewise.
23060 * rtlanal.c: Likewise.
23061 * rtlhooks.c: Likewise.
23062 * sanopt.c: Likewise.
23063 * sched-deps.c: Likewise.
23064 * sched-ebb.c: Likewise.
23065 * sched-rgn.c: Likewise.
23066 * sched-vis.c: Likewise.
23067 * sdbout.c: Likewise.
23068 * sel-sched-dump.c: Likewise.
23069 * sel-sched-ir.c: Likewise.
23070 * sel-sched.c: Likewise.
23071 * sese.c: Likewise.
23072 * shrink-wrap.c: Likewise.
23073 * simplify-rtx.c: Likewise.
23074 * stack-ptr-mod.c: Likewise.
23075 * statistics.c: Likewise.
23076 * stmt.c: Likewise.
23077 * stor-layout.c: Likewise.
23078 * store-motion.c: Likewise.
23079 * streamer-hooks.c: Likewise.
23080 * stringpool.c: Likewise.
23081 * symtab.c: Likewise.
23082 * target-globals.c: Likewise.
23083 * targhooks.c: Likewise.
23084 * toplev.c: Likewise.
23085 * tracer.c: Likewise.
23086 * trans-mem.c: Likewise.
23087 * tree-affine.c: Likewise.
23088 * tree-browser.c: Likewise.
23089 * tree-call-cdce.c: Likewise.
23090 * tree-cfg.c: Likewise.
23091 * tree-cfgcleanup.c: Likewise.
23092 * tree-chkp-opt.c: Likewise.
23093 * tree-chkp.c: Likewise.
23094 * tree-chrec.c: Likewise.
23095 * tree-complex.c: Likewise.
23096 * tree-data-ref.c: Likewise.
23097 * tree-dfa.c: Likewise.
23098 * tree-diagnostic.c: Likewise.
23099 * tree-dump.c: Likewise.
23100 * tree-eh.c: Likewise.
23101 * tree-emutls.c: Likewise.
23102 * tree-if-conv.c: Likewise.
23103 * tree-inline.c: Likewise.
23104 * tree-into-ssa.c: Likewise.
23105 * tree-iterator.c: Likewise.
23106 * tree-loop-distribution.c: Likewise.
23107 * tree-nested.c: Likewise.
23108 * tree-nrv.c: Likewise.
23109 * tree-object-size.c: Likewise.
23110 * tree-outof-ssa.c: Likewise.
23111 * tree-parloops.c: Likewise.
23112 * tree-phinodes.c: Likewise.
23113 * tree-predcom.c: Likewise.
23114 * tree-pretty-print.c: Likewise.
23115 * tree-profile.c: Likewise.
23116 * tree-scalar-evolution.c: Likewise.
23117 * tree-sra.c: Likewise.
23118 * tree-ssa-address.c: Likewise.
23119 * tree-ssa-alias.c: Likewise.
23120 * tree-ssa-ccp.c: Likewise.
23121 * tree-ssa-coalesce.c: Likewise.
23122 * tree-ssa-copy.c: Likewise.
23123 * tree-ssa-copyrename.c: Likewise.
23124 * tree-ssa-dce.c: Likewise.
23125 * tree-ssa-dom.c: Likewise.
23126 * tree-ssa-dse.c: Likewise.
23127 * tree-ssa-forwprop.c: Likewise.
23128 * tree-ssa-ifcombine.c: Likewise.
23129 * tree-ssa-live.c: Likewise.
23130 * tree-ssa-loop-ch.c: Likewise.
23131 * tree-ssa-loop-im.c: Likewise.
23132 * tree-ssa-loop-ivcanon.c: Likewise.
23133 * tree-ssa-loop-ivopts.c: Likewise.
23134 * tree-ssa-loop-manip.c: Likewise.
23135 * tree-ssa-loop-niter.c: Likewise.
23136 * tree-ssa-loop-prefetch.c: Likewise.
23137 * tree-ssa-loop-unswitch.c: Likewise.
23138 * tree-ssa-loop.c: Likewise.
23139 * tree-ssa-math-opts.c: Likewise.
23140 * tree-ssa-operands.c: Likewise.
23141 * tree-ssa-phiopt.c: Likewise.
23142 * tree-ssa-phiprop.c: Likewise.
23143 * tree-ssa-pre.c: Likewise.
23144 * tree-ssa-propagate.c: Likewise.
23145 * tree-ssa-reassoc.c: Likewise.
23146 * tree-ssa-sccvn.c: Likewise.
23147 * tree-ssa-scopedtables.c: Likewise.
23148 * tree-ssa-sink.c: Likewise.
23149 * tree-ssa-strlen.c: Likewise.
23150 * tree-ssa-structalias.c: Likewise.
23151 * tree-ssa-tail-merge.c: Likewise.
23152 * tree-ssa-ter.c: Likewise.
23153 * tree-ssa-threadedge.c: Likewise.
23154 * tree-ssa-threadupdate.c: Likewise.
23155 * tree-ssa-uncprop.c: Likewise.
23156 * tree-ssa-uninit.c: Likewise.
23157 * tree-ssa.c: Likewise.
23158 * tree-ssanames.c: Likewise.
23159 * tree-stdarg.c: Likewise.
23160 * tree-streamer-in.c: Likewise.
23161 * tree-streamer-out.c: Likewise.
23162 * tree-streamer.c: Likewise.
23163 * tree-switch-conversion.c: Likewise.
23164 * tree-tailcall.c: Likewise.
23165 * tree-vect-data-refs.c: Likewise.
23166 * tree-vect-generic.c: Likewise.
23167 * tree-vect-loop-manip.c: Likewise.
23168 * tree-vect-loop.c: Likewise.
23169 * tree-vect-patterns.c: Likewise.
23170 * tree-vect-slp.c: Likewise.
23171 * tree-vect-stmts.c: Likewise.
23172 * tree-vectorizer.c: Likewise.
23173 * tree-vrp.c: Likewise.
23174 * tree.c: Likewise.
23175 * tsan.c: Likewise.
23176 * ubsan.c: Likewise.
23177 * valtrack.c: Likewise.
23178 * value-prof.c: Likewise.
23179 * var-tracking.c: Likewise.
23180 * varasm.c: Likewise.
23181 * varpool.c: Likewise.
23182 * vmsdbgout.c: Likewise.
23183 * vtable-verify.c: Likewise.
23185 * wide-int.cc: Likewise.
23186 * xcoffout.c: Likewise.
23187 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
23188 * common/common-targhooks.c: Likewise.
23189 * config/aarch64/aarch64-builtins.c: Likewise.
23190 * config/aarch64/aarch64.c: Likewise.
23191 * config/alpha/alpha.c: Likewise.
23192 * config/arc/arc.c: Likewise.
23193 * config/arm/aarch-common.c: Likewise.
23194 * config/arm/arm-builtins.c: Likewise.
23195 * config/arm/arm-c.c: Likewise.
23196 * config/arm/arm.c: Likewise.
23197 * config/avr/avr-c.c: Likewise.
23198 * config/avr/avr-log.c: Likewise.
23199 * config/avr/avr.c: Likewise.
23200 * config/bfin/bfin.c: Likewise.
23201 * config/c6x/c6x.c: Likewise.
23202 * config/cr16/cr16.c: Likewise.
23203 * config/cris/cris.c: Likewise.
23204 * config/darwin-c.c: Likewise.
23205 * config/darwin.c: Likewise.
23206 * config/default-c.c: Likewise.
23207 * config/epiphany/epiphany.c: Likewise.
23208 * config/epiphany/mode-switch-use.c: Likewise.
23209 * config/epiphany/resolve-sw-modes.c: Likewise.
23210 * config/fr30/fr30.c: Likewise.
23211 * config/frv/frv.c: Likewise.
23212 * config/ft32/ft32.c: Likewise.
23213 * config/glibc-c.c: Likewise.
23214 * config/h8300/h8300.c: Likewise.
23215 * config/i386/i386-c.c: Likewise.
23216 * config/i386/i386.c: Likewise.
23217 * config/i386/msformat-c.c: Likewise.
23218 * config/i386/winnt-cxx.c: Likewise.
23219 * config/i386/winnt-stubs.c: Likewise.
23220 * config/i386/winnt.c: Likewise.
23221 * config/ia64/ia64-c.c: Likewise.
23222 * config/ia64/ia64.c: Likewise.
23223 * config/iq2000/iq2000.c: Likewise.
23224 * config/lm32/lm32.c: Likewise.
23225 * config/m32c/m32c-pragma.c: Likewise.
23226 * config/m32c/m32c.c: Likewise.
23227 * config/m32r/m32r.c: Likewise.
23228 * config/m68k/m68k.c: Likewise.
23229 * config/mcore/mcore.c: Likewise.
23230 * config/mep/mep-pragma.c: Likewise.
23231 * config/mep/mep.c: Likewise.
23232 * config/microblaze/microblaze-c.c: Likewise.
23233 * config/microblaze/microblaze.c: Likewise.
23234 * config/mips/mips.c: Likewise.
23235 * config/mmix/mmix.c: Likewise.
23236 * config/mn10300/mn10300.c: Likewise.
23237 * config/moxie/moxie.c: Likewise.
23238 * config/msp430/msp430-c.c: Likewise.
23239 * config/msp430/msp430.c: Likewise.
23240 * config/nds32/nds32-cost.c: Likewise.
23241 * config/nds32/nds32-fp-as-gp.c: Likewise.
23242 * config/nds32/nds32-intrinsic.c: Likewise.
23243 * config/nds32/nds32-isr.c: Likewise.
23244 * config/nds32/nds32-md-auxiliary.c: Likewise.
23245 * config/nds32/nds32-memory-manipulation.c: Likewise.
23246 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23247 * config/nds32/nds32-predicates.c: Likewise.
23248 * config/nds32/nds32.c: Likewise.
23249 * config/nios2/nios2.c: Likewise.
23250 * config/nvptx/nvptx.c: Likewise.
23251 * config/pa/pa.c: Likewise.
23252 * config/pdp11/pdp11.c: Likewise.
23253 * config/rl78/rl78-c.c: Likewise.
23254 * config/rl78/rl78.c: Likewise.
23255 * config/rs6000/rs6000-c.c: Likewise.
23256 * config/rs6000/rs6000.c: Likewise.
23257 * config/rx/rx.c: Likewise.
23258 * config/s390/s390-c.c: Likewise.
23259 * config/s390/s390.c: Likewise.
23260 * config/sh/sh-c.c: Likewise.
23261 * config/sh/sh-mem.cc: Likewise.
23262 * config/sh/sh.c: Likewise.
23263 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23264 * config/sh/sh_treg_combine.cc: Likewise.
23265 * config/sol2-c.c: Likewise.
23266 * config/sol2-cxx.c: Likewise.
23267 * config/sol2-stubs.c: Likewise.
23268 * config/sol2.c: Likewise.
23269 * config/sparc/sparc-c.c: Likewise.
23270 * config/sparc/sparc.c: Likewise.
23271 * config/spu/spu-c.c: Likewise.
23272 * config/spu/spu.c: Likewise.
23273 * config/stormy16/stormy16.c: Likewise.
23274 * config/tilegx/mul-tables.c: Likewise.
23275 * config/tilegx/tilegx-c.c: Likewise.
23276 * config/tilegx/tilegx.c: Likewise.
23277 * config/tilepro/mul-tables.c: Likewise.
23278 * config/tilepro/tilepro-c.c: Likewise.
23279 * config/tilepro/tilepro.c: Likewise.
23280 * config/v850/v850-c.c: Likewise.
23281 * config/v850/v850.c: Likewise.
23282 * config/vax/vax.c: Likewise.
23283 * config/visium/visium.c: Likewise.
23284 * config/vms/vms-c.c: Likewise.
23285 * config/vms/vms.c: Likewise.
23286 * config/vxworks.c: Likewise.
23287 * config/winnt-c.c: Likewise.
23288 * config/xtensa/xtensa.c: Likewise.
23290 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
23292 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
23294 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
23296 2015-06-17 Richard Biener <rguenther@suse.de>
23298 PR tree-optimization/66251
23299 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
23300 stmts for SLP strided stores.
23303 2015-05-22 Richard Biener <rguenther@suse.de>
23305 PR tree-optimization/66251
23306 * tree-vect-stmts.c (vectorizable_conversion): Properly
23307 set STMT_VINFO_VEC_STMT even for the SLP case.
23309 2015-05-26 Michael Matz <matz@suse.de>
23311 PR middle-end/66251
23312 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
23313 STMT_VINFO_VEC_STMT, also with SLP.
23315 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
23318 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
23319 (*avx_addsubv4df3_1s): Ditto.
23320 (*sse3_addsubv2df3_1): Ditto.
23321 (*sse3_addsubv2df3_1s): Ditto.
23322 (*avx_addsubv8sf3_1): Ditto.
23323 (*avx_addsubv8sf3_1s): Ditto.
23324 (*sse3_addsubv4sf3_1): Ditto.
23325 (*sse3_addsubv4sf3_1s): Ditto.
23327 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
23329 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
23330 (SYSROOT_SUFFIX_SPEC): Update.
23331 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
23332 (STARTFILE_PREFIX_SPEC): Update.
23333 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
23334 (MULTILIB_REQUIRED): New.
23335 (MULTILIB_OSDIRNAMES): New.
23336 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
23337 (MULTILIB_REQUIRED): New.
23338 (MULTILIB_OSDIRNAMES): New.
23340 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
23342 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
23343 * config/aarch64/aarch64-options-extensions.def: Update "fP",
23344 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
23345 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
23346 (AARCH64_FL_PAN): New.
23347 (AARCH64_FL_LOR): New.
23348 (AARCH64_FL_RDMA): New.
23349 (AARCH64_FL_FOR_ARCH8_1): New.
23350 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
23351 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
23353 2015-06-16 Martin Liska <mliska@suse.cz>
23355 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
23356 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
23359 2015-06-16 Richard Biener <rguenther@suse.de>
23361 * tree-vect-stmts.c (vectorizable_store): Adjust.
23362 (vectorizable_load): Likewise.
23363 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
23365 (vect_create_data_ref_ptr): Likewise.
23366 (bump_vector_ptr): Adjust.
23368 2015-06-16 Richard Biener <rguenther@suse.de>
23370 * tree-vect-stmts.c (vectorizable_load): Properly start loads
23371 with the first element if this is grouped loads.
23373 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
23375 * config/arm/arm-protos.h (struct tune_params): Rename
23376 log_op_non_sc to log_op_non_short_circuit, and rename enum
23377 values to expand SC to SHORT_CIRCUIT.
23378 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
23379 to LOG_OP_NON_SHORT_CIRCUIT.
23380 (arm_fastmul_tune):Likewise
23381 (arm_strongarm_tune): Likewise.
23382 (arm_xscale_tune): Likewise.
23383 (arm_9e_tune): Likewise.
23384 (arm_marvell_pj4_tune): Likewise.
23385 (arm_v6t2_tune): Likewise.
23386 (arm_cortex_tune): Likewise.
23387 (arm_cortex_a8_tune): Likewise.
23388 (arm_cortex_a7_tune): Likewise.
23389 (arm_cortex_a15_tune): Likewise.
23390 (arm_cortex_a53_tune): Likewise.
23391 (arm_cortex_a57_tune): Likewise.
23392 (arm_xgene1_tune): Likewise.
23393 (arm_cortex_a5_tune): Likewise.
23394 (arm_cortex_a9_tune): Likewise.
23395 (arm_cortex_a12_tune): Likewise.
23396 (arm_v7m_tune): Likewise.
23397 (arm_cortex_m7_tune): Likewise.
23398 (arm_v6m_tune): Likewise.
23399 (arm_fa726te_tune): Likewise.
23401 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
23403 * altivec.md: Delete UNSPEC_VMLADDUHM.
23404 (mulv4si3_p8): New pattern.
23405 (mulv4si3): Use it for POWER8.
23406 (mulv8hi3): Use vmladduhm with zero addend.
23407 (altivec_vmladduhm): Descriptive RTL.
23409 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
23411 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
23412 to use neon_move instead of mov_imm.
23413 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
23414 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
23416 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
23417 aarch64_float_const_zero_rtx_p check before TFmode check.
23418 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
23420 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
23421 code and attributes to match. Change condition from register_operand
23422 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
23423 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
23426 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
23429 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
23430 there is no parent.
23432 2015-06-14 Shiva Chen <shiva0217@gmail.com>
23434 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
23435 HOST_WIDE_INT parameter.
23437 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
23440 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
23441 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
23443 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
23445 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
23447 * rtl.h (classify_insn): Declare.
23448 * emit-rtl.c (classify_insn): Move to...
23449 * rtl.c: ...here and add generator support.
23450 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
23451 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
23452 * genemit.c (gen_emit_seq): New function.
23453 (gen_expand, gen_split): Use it.
23455 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
23457 * tree.c (make_vector_stat): Fix comment to state that the
23458 function returns a VECTOR_CST.
23460 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
23462 * gensupport.h (add_implicit_parallel): Declare.
23463 * genrecog.c (add_implicit_parallel): Move to...
23464 * gensupport.c (add_implicit_parallel): ...here.
23465 (process_one_cond_exec): Use it.
23466 * genemit.c (gen_insn): Likewise.
23468 2015-06-13 Iain Sandoe <iain@codesourcery.com>
23471 * passes.c (rest_of_decl_compilation): Do not register globals for
23472 early debug if they are declared in built-ins.
23474 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
23476 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
23478 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23480 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
23482 (noce_try_cmove_arith): Likewise.
23483 (noce_get_alt_condition): Likewise.
23485 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23487 * common/config/i386/i386-common.c
23488 (OPTION_MASK_ISA_MWAITX_SET): New.
23489 (ix86_handle_option): Handle mwaitx.
23490 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
23491 (x86_64-*-*): Likewise.
23492 * config/i386/mwaitxintrin.h: New header.
23493 * config/i386/cpuid.h (bit_MWAITX): Define.
23494 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23496 * config/i386/i386.opt (mwaitx): New.
23497 * config/i386/i386-builtin-types.def
23498 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
23499 * config/i386/i386-c.c: Define __MWAITX__ if needed.
23500 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
23502 (ix86_option_override_internal): Handle new option.
23503 (processor_alias_table): Added PTA_MWAITX.
23504 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
23505 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
23506 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
23507 IX86_BUILTIN_MONITORX built-ins.
23508 * config/i386/i386.h (TARGET_MWAITX): New.
23509 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
23511 (mwaitx): New pattern.
23512 (monitorx_<mode>): New pattern.
23513 * config/i386/x86intrin.h: Include mwaitxintrin.h.
23514 * doc/extend.texi: Document monitorx and mwaitx builtins.
23515 * doc/invoke.texi: Document -mmwaitx option.
23517 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
23519 * emit-rtl.c (need_atomic_barrier_p): Mask model with
23520 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
23522 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
23524 * dbxout.c (xcoff_debug_hooks): Provide a function for
23525 register_main_translation_unit hook.
23527 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
23529 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
23530 variants cases from switch.
23531 (rs6000_post_atomic_barrier): Same.
23532 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
23533 (rs6000_expand_atomic_exchange): Same.
23534 (rs6000_expand_atomic_op): Same.
23535 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
23536 SYNC variants cases from switch.
23537 (atomic_load): Same.
23538 (atomic_store): Same.
23540 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
23542 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
23543 CONST_INT for goto.
23545 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
23548 * dwarf2out.c (check_die): Check for common duplicate attributes.
23549 (add_location_or_const_value_attribute): Do not add duplicate
23551 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
23553 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
23554 (gen_type_die_with_usage): Call check_die.
23555 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
23557 2015-06-11 Jason Merrill <jason@redhat.com>
23559 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
23562 2015-06-11 Marek Polacek <polacek@redhat.com>
23564 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
23566 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
23569 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
23570 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
23571 (*addx_extend_sp32): Fix pasto.
23572 (*subx_extend): Rename into...
23573 (*subx_extend_sp32): ...this.
23574 (*adddi3_extend_sp32): Add earlyclobber.
23575 (*subdi3_insn_sp32): Likewise.
23576 (*subdi3_extend_sp32): Likewise.
23577 (*and_not_di_sp32): Likewise.
23578 (*or_not_di_sp32): Likewise.
23579 (*xor_not_di_sp32): Likewise.
23580 (*negdi2_sp32): Likewise.
23581 (*one_cmpldi2_sp32): Likewise.
23583 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
23585 * debug.h (struct gcc_debug_hooks): Add a
23586 register_main_translation_unit hook.
23587 * debug.c (do_nothing_debug_hooks): Provide a function for this
23589 * dbxout.c (dbx_debug_hooks): Likewise.
23590 * sdbout.c (sdb_debug_hooks): Likewise.
23591 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
23592 * dwarf2out.c (main_translation_unit): New global variable.
23593 (dwarf2out_register_main_translation_unit): New function
23594 implementing the new hook.
23595 (dwarf2_debug_hooks): Assign
23596 dwarf2out_register_main_translation_unit to this new hook.
23597 (dwarf2out_init): Associate any main translation unit to
23600 2015-06-11 Marek Polacek <polacek@redhat.com>
23602 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
23604 2015-06-11 Marek Polacek <polacek@redhat.com>
23606 * match.pd: Use single_use throughout.
23608 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23610 * config/arm/arm.c (arm_option_params_internal): When optimising
23611 for speed set max_insns_skipped when arm_restrict_it.
23613 2015-06-11 Christian Bruel <christian.bruel@st.com>
23616 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
23618 (arm_cpu_builtins): New function.
23619 (arm_pragma_target_parse): Call arm_cpu_builtins.
23620 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
23621 (arm_register_target_pragmas): Likewise.
23622 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
23623 Call arm_register_target_pragmas.
23624 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
23625 (arm_pragma_target_parse): Likewise.
23627 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
23629 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
23630 of the second operand.
23632 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
23635 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
23636 to prepare mask operand for AVX512 modes.
23638 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
23641 * doc/md.texi (Machine Constraints): Document that on the PowerPC
23642 if you use a constraint that targets a VSX register, you must use
23643 %x<n> in the template.
23645 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
23647 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
23648 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
23649 (define_insn "trap"): New definition.
23651 2015-06-10 Richard Biener <rguenther@suse.de>
23653 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
23655 (vect_supported_load_permutation_p): ... here. Handle
23656 supportable permutations in reductions.
23657 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
23658 for vectorizing strided group loads.
23660 2015-06-10 Jakub Jelinek <jakub@redhat.com>
23663 * config/i386/i386.c (ix86_split_long_move): For collisions
23664 involving direct tls segment refs, move the UNSPEC_TP possibly
23665 wrapped in ZERO_EXTEND out of the address for lea, to each of
23668 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23670 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
23671 dmb sy. Adjust tabs.
23673 2015-06-10 Tom de Vries <tom@codesourcery.com>
23675 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
23677 2015-06-10 Martin Liska <mliska@suse.cz>
23680 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
23681 all enum values in mem_alloc_origin.
23682 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
23684 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
23685 * bitmap.c (bitmap_register): Likewise.
23686 (dump_bitmap_statistics): Likewise.
23687 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
23688 (ggc_record_overhead): Likewise.
23689 * hash-map.h: Likewise.
23690 * hash-set.h: Likewise.
23691 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
23692 * hash-table.h: Likewise.
23693 * vec.c (vec_prefix::register_overhead): Likewise.
23694 (vec_prefix::release_overhead): Likewise.
23695 (dump_vec_loc_statistics): Likewise.
23697 2015-06-09 Christian Bruel <christian.bruel@st.com>
23700 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
23701 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
23702 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
23703 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
23704 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
23705 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
23706 (arm_valid_target_attribute_p): Likewise.
23707 (arm_set_current_function, arm_can_inline_p): Likewise.
23708 (arm_valid_target_attribute_rec): Likewise.
23709 (arm_previous_fndecl): New variable.
23710 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
23711 (TARGET_CAN_INLINE_P): Define.
23712 (arm_asm_trampoline_template): Emit mode.
23713 (arm_file_start): Don't set unified syntax.
23714 (arm_declare_function_name): Set unified syntax and mode.
23715 (arm_option_override): Init target_option_default_node.
23716 and target_option_current_node.
23717 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
23718 (*call_symbol): Likewise.
23719 * doc/extend.texi: Document ARM/Thumb target attribute.
23720 * doc/invoke.texi: Likewise.
23722 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
23725 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
23726 PR rtl-optimization/64164
23727 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
23728 * tree-ssa-copyrename.c: Removed.
23729 * opts.c (default_options_table): Drop -ftree-copyrename. Add
23730 -ftree-coalesce-vars.
23731 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
23732 * common.opt (ftree-copyrename): Ignore.
23733 (ftree-coalesce-inlined-vars): Likewise.
23734 * doc/invoke.texi: Remove the ignored options above.
23735 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
23736 * tree-ssa-coalesce.h: ... here.
23737 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
23738 headers required by it.
23739 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
23740 across variables when flag_tree_coalesce_vars. Check register
23741 use and promoted modes to allow coalescing. Moved to
23742 tree-ssa-coalesce.c.
23743 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
23744 with its member functions to tree-ssa-coalesce.c.
23745 (var_map_base_init): Likewise. Renamed to
23746 compute_samebase_partition_bases.
23747 (partition_view_normal): Drop want_bases parameter.
23748 (partition_view_bitmap): Likewise.
23749 * tree-ssa-live.h: Adjust declarations.
23750 * tree-ssa-coalesce.c: Include explow.h.
23751 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
23752 default defs at the entry point.
23753 (dump_part_var_map): New.
23754 (compute_optimized_partition_bases): New, called by...
23755 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
23756 of compute_samebase_partition_bases. Adjust.
23757 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
23758 * cfgexpand.c (leader_merge): New.
23759 (get_rtl_for_parm_ssa_default_def): New.
23760 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
23761 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
23762 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
23763 redundant MEM attr setting.
23764 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
23766 (expand_one_stack_var): ... this. New wrapper to check and
23767 skip already expanded SSA partitions.
23768 (record_alignment_for_reg_var): New, factored out of...
23769 (expand_one_var): ... this.
23770 (expand_one_ssa_partition): New.
23771 (adjust_one_expanded_partition_var): New.
23772 (expand_one_register_var): Check and skip already expanded SSA
23774 (expand_used_vars): Don't create DECLs for anonymous SSA
23775 names. Expand all SSA partitions, then adjust all SSA names.
23776 (pass::execute): Replace the loops that set
23777 SA.partition_to_pseudo from partition leaders and cleared
23778 DECL_RTL for multi-location variables, and that which used to
23779 rename vars and set attrs, with one that clears DECL_RTL and
23780 checks that PARMs and RESULTs default_defs match DECL_RTL.
23781 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
23782 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
23783 * explow.c (promote_ssa_mode): New.
23784 * explow.h (promote_ssa_mode): Declare.
23785 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
23786 * function.c: Include cfgexpand.h.
23787 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
23788 (use_register_for_parm_decl): Wrapper for the above to
23789 special-case the result_ptr.
23790 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
23791 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
23792 multiple locations.
23793 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
23794 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
23795 (assign_parm_setup_block): Prefer SSA-assigned location.
23796 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
23797 if stack_parm is NULL.
23798 (assign_parm_setup_stack): Prefer SSA-assigned location.
23799 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
23800 rtl before testing for pointer bounds. Special-case result_ptr.
23801 (expand_function_start): Maybe reset DECL_RTL of result.
23802 Prefer SSA-assigned location for result and static chain.
23803 Factor out DECL_RESULT and SET_DECL_RTL.
23804 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
23805 anonymous SSA names. Use promote_ssa_mode.
23806 (get_temp_reg): Likewise.
23807 (remove_ssa_form): Adjust.
23808 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
23809 and get its reg_usage for reg invalidation.
23810 (compute_bb_dataflow): Pass it insn.
23811 (emit_notes_in_bb): Likewise.
23812 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
23813 fail assert on conversion between unsigned types.
23815 2015-06-09 Tom de Vries <tom@codesourcery.com>
23817 PR tree-optimization/65460
23818 * omp-low.c (expand_omp_target): Set parallelized_function on
23819 cgraph_node for child_fn.
23821 2015-06-09 Tom de Vries <tom@codesourcery.com>
23823 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
23824 parallelized_function before add_new_function.
23826 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
23828 * gcc-plugin.h: Move decls to plugin.h and include it.
23829 * plugin.h: Relocate decls from gcc-plugin.h
23830 * ggc-page.c: Include required header files.
23831 * passes.c: Likewise.
23832 * cgraphunit.c: Likewise.
23834 2015-06-09 Tom de Vries <tom@codesourcery.com>
23836 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
23838 2015-06-09 Jason Merrill <jason@redhat.com>
23841 * toplev.c (check_global_declaration): Don't warn about a clone.
23843 2015-06-09 Marek Polacek <polacek@redhat.com>
23845 PR tree-optimization/66299
23846 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
23847 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
23850 2015-06-09 Richard Biener <rguenther@suse.de>
23852 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
23853 (vect_analyze_slp_instance): Instead do not falsely drop
23856 2015-06-09 Richard Biener <rguenther@suse.de>
23858 PR middle-end/66423
23859 * match.pd: Handle A % (unsigned)(1 << B).
23861 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
23863 * varasm.c (output_object_block_htab): Remove.
23864 (output_object_block_compare): New.
23865 (output_object_blocks): Sort named object_blocks before outputting
23868 2015-06-09 Richard Biener <rguenther@suse.de>
23870 PR tree-optimization/66419
23871 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
23872 consider GROUP_GAP when detecting a perfect subchain.
23874 2015-06-09 Nick Clifton <nickc@redhat.com>
23876 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
23877 place read only data in the .frodata section.
23879 2015-06-09 Shiva Chen <shiva0217@gmail.com>
23881 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
23882 (atomic_store<mode>): Likewise.
23884 2015-06-09 Richard Biener <rguenther@suse.de>
23886 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
23888 2015-06-09 Richard Biener <rguenther@suse.de>
23890 PR middle-end/66413
23891 * tree-inline.c (insert_init_debug_bind): Unshare value.
23893 2015-06-09 Richard Biener <rguenther@suse.de>
23895 PR tree-optimization/66396
23896 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
23897 Rename virtual operands.
23899 2015-06-09 Tom de Vries <tom@codesourcery.com>
23901 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
23902 always return false.
23904 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
23906 PR rtl-optimization/64164
23907 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
23908 * tree-ssa-copyrename.c: Removed.
23909 * opts.c (default_options_table): Drop -ftree-copyrename. Add
23910 -ftree-coalesce-vars.
23911 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
23912 * common.opt (ftree-copyrename): Ignore.
23913 (ftree-coalesce-inlined-vars): Likewise.
23914 * doc/invoke.texi: Remove the ignored options above.
23915 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
23916 * tree-ssa-coalesce.h: ... here.
23917 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
23918 headers required by it.
23919 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
23920 across variables when flag_tree_coalesce_vars. Check register
23921 use and promoted modes to allow coalescing. Moved to
23922 tree-ssa-coalesce.c.
23923 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
23924 with its member functions to tree-ssa-coalesce.c.
23925 (var_map_base_init): Likewise. Renamed to
23926 compute_samebase_partition_bases.
23927 (partition_view_normal): Drop want_bases parameter.
23928 (partition_view_bitmap): Likewise.
23929 * tree-ssa-live.h: Adjust declarations.
23930 * tree-ssa-coalesce.c: Include explow.h.
23931 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
23932 default defs at the entry point.
23933 (dump_part_var_map): New.
23934 (compute_optimized_partition_bases): New, called by...
23935 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
23936 of compute_samebase_partition_bases. Adjust.
23937 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
23938 * cfgexpand.c (leader_merge): New.
23939 (get_rtl_for_parm_ssa_default_def): New.
23940 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
23941 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
23942 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
23943 redundant MEM attr setting.
23944 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
23946 (expand_one_stack_var): ... this. New wrapper to check and
23947 skip already expanded SSA partitions.
23948 (record_alignment_for_reg_var): New, factored out of...
23949 (expand_one_var): ... this.
23950 (expand_one_ssa_partition): New.
23951 (adjust_one_expanded_partition_var): New.
23952 (expand_one_register_var): Check and skip already expanded SSA
23954 (expand_used_vars): Don't create DECLs for anonymous SSA
23955 names. Expand all SSA partitions, then adjust all SSA names.
23956 (pass::execute): Replace the loops that set
23957 SA.partition_to_pseudo from partition leaders and cleared
23958 DECL_RTL for multi-location variables, and that which used to
23959 rename vars and set attrs, with one that clears DECL_RTL and
23960 checks that PARMs and RESULTs default_defs match DECL_RTL.
23961 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
23962 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
23963 * explow.c (promote_ssa_mode): New.
23964 * explow.h (promote_ssa_mode): Declare.
23965 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
23966 * function.c: Include cfgexpand.h.
23967 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
23968 (use_register_for_parm_decl): Wrapper for the above to
23969 special-case the result_ptr.
23970 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
23971 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
23972 multiple locations.
23973 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
23974 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
23975 (assign_parm_setup_block): Prefer SSA-assigned location.
23976 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
23977 if stack_parm is NULL.
23978 (assign_parm_setup_stack): Prefer SSA-assigned location.
23979 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
23980 rtl before testing for pointer bounds. Special-case result_ptr.
23981 (expand_function_start): Maybe reset DECL_RTL of result.
23982 Prefer SSA-assigned location for result and static chain.
23983 Factor out DECL_RESULT and SET_DECL_RTL.
23984 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
23985 anonymous SSA names. Use promote_ssa_mode.
23986 (get_temp_reg): Likewise.
23987 (remove_ssa_form): Adjust.
23988 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
23989 and get its reg_usage for reg invalidation.
23990 (compute_bb_dataflow): Pass it insn.
23991 (emit_notes_in_bb): Likewise.
23992 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
23993 fail assert on conversion between unsigned types.
23995 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
23998 * tree-inline.c (reset_debug_binding): New.
23999 (reset_debug_bindings): Likewise.
24000 (expand_call_inline): Call it.
24002 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24004 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
24007 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24009 * lto-streamer-out.c (lto_output_location): Stream
24010 reserved locations correctly.
24011 * lto-streamer-in.c (lto_output_location): Likewise.
24013 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
24015 * coretypes.h: Include hash-table.h and hash-set.h for host files.
24016 * ggc.h: Don't include statistics.h>
24017 * hash-map.h: Remove all includes.
24018 * hash-set.h: Likewise.
24019 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
24020 the include list. Remove <new>.
24021 * inchash.h: Remove all includes.
24022 * mem-stats.h: Likewise.
24023 * vec.h: No special processing for generators or ggc.
24024 * alias.c : Adjust include files.
24025 * alloc-pool.c : Likewise.
24026 * alloc-pool.h : Likewise.
24027 * asan.c : Likewise.
24028 * attribs.c : Likewise.
24029 * auto-inc-dec.c : Likewise.
24030 * auto-profile.c : Likewise.
24031 * bb-reorder.c : Likewise.
24032 * bitmap.c : Likewise.
24033 * bitmap.h : Likewise.
24034 * bt-load.c : Likewise.
24035 * builtins.c : Likewise.
24036 * caller-save.c : Likewise.
24037 * calls.c : Likewise.
24038 * ccmp.c : Likewise.
24039 * cfg.c : Likewise.
24040 * cfganal.c : Likewise.
24041 * cfgbuild.c : Likewise.
24042 * cfgcleanup.c : Likewise.
24043 * cfgexpand.c : Likewise.
24044 * cfghooks.c : Likewise.
24045 * cfgloop.c : Likewise.
24046 * cfgloop.h : Likewise.
24047 * cfgloopanal.c : Likewise.
24048 * cfgloopmanip.c : Likewise.
24049 * cfgrtl.c : Likewise.
24050 * cgraph.c : Likewise.
24051 * cgraphbuild.c : Likewise.
24052 * cgraphclones.c : Likewise.
24053 * cgraphunit.c : Likewise.
24054 * cilk-common.c : Likewise.
24055 * combine-stack-adj.c : Likewise.
24056 * combine.c : Likewise.
24057 * compare-elim.c : Likewise.
24058 * context.c : Likewise.
24059 * convert.c : Likewise.
24060 * coverage.c : Likewise.
24061 * cppbuiltin.c : Likewise.
24062 * cprop.c : Likewise.
24063 * cse.c : Likewise.
24064 * cselib.c : Likewise.
24065 * data-streamer-in.c : Likewise.
24066 * data-streamer-out.c : Likewise.
24067 * data-streamer.c : Likewise.
24068 * data-streamer.h : Likewise.
24069 * dbxout.c : Likewise.
24070 * dce.c : Likewise.
24071 * ddg.c : Likewise.
24072 * debug.c : Likewise.
24073 * df-core.c : Likewise.
24074 * df-problems.c : Likewise.
24075 * df-scan.c : Likewise.
24077 * dfp.c : Likewise.
24078 * dojump.c : Likewise.
24079 * dominance.c : Likewise.
24080 * domwalk.c : Likewise.
24081 * double-int.c : Likewise.
24082 * dse.c : Likewise.
24083 * dumpfile.c : Likewise.
24084 * dwarf2asm.c : Likewise.
24085 * dwarf2cfi.c : Likewise.
24086 * dwarf2out.c : Likewise.
24087 * emit-rtl.c : Likewise.
24088 * et-forest.c : Likewise.
24089 * except.c : Likewise.
24090 * except.h : Likewise.
24091 * explow.c : Likewise.
24092 * expmed.c : Likewise.
24093 * expr.c : Likewise.
24094 * final.c : Likewise.
24095 * fixed-value.c : Likewise.
24096 * fold-const.c : Likewise.
24097 * function.c : Likewise.
24098 * fwprop.c : Likewise.
24099 * gcc-plugin.h : Likewise.
24100 * gcc.c : Likewise.
24101 * gcse-common.c : Likewise.
24102 * gcse.c : Likewise.
24103 * genattrtab.c : Likewise.
24104 * genautomata.c : Likewise.
24105 * genconditions.c : Likewise.
24106 * genemit.c : Likewise.
24107 * generic-match-head.c : Likewise.
24108 * genextract.c : Likewise.
24109 * gengtype-state.c : Likewise.
24110 * gengtype.c : Likewise.
24111 * genhooks.c : Likewise.
24112 * genmatch.c : Likewise.
24113 * genmodes.c : Likewise.
24114 * genrecog.c : Likewise.
24115 * gensupport.c : Likewise.
24116 * ggc-common.c : Likewise.
24117 * ggc-internal.h : Likewise.
24118 * ggc-none.c : Likewise.
24119 * ggc-page.c : Likewise.
24120 * gimple-builder.c : Likewise.
24121 * gimple-expr.c : Likewise.
24122 * gimple-fold.c : Likewise.
24123 * gimple-iterator.c : Likewise.
24124 * gimple-low.c : Likewise.
24125 * gimple-match-head.c : Likewise.
24126 * gimple-pretty-print.c : Likewise.
24127 * gimple-ssa-isolate-paths.c : Likewise.
24128 * gimple-ssa-strength-reduction.c : Likewise.
24129 * gimple-ssa.h : Likewise.
24130 * gimple-streamer-in.c : Likewise.
24131 * gimple-streamer-out.c : Likewise.
24132 * gimple-streamer.h : Likewise.
24133 * gimple-walk.c : Likewise.
24134 * gimple.c : Likewise.
24135 * gimplify-me.c : Likewise.
24136 * gimplify.c : Likewise.
24137 * godump.c : Likewise.
24138 * graph.c : Likewise.
24139 * graphds.c : Likewise.
24140 * graphite-blocking.c : Likewise.
24141 * graphite-dependences.c : Likewise.
24142 * graphite-interchange.c : Likewise.
24143 * graphite-isl-ast-to-gimple.c : Likewise.
24144 * graphite-optimize-isl.c : Likewise.
24145 * graphite-poly.c : Likewise.
24146 * graphite-scop-detection.c : Likewise.
24147 * graphite-sese-to-poly.c : Likewise.
24148 * graphite.c : Likewise.
24149 * haifa-sched.c : Likewise.
24150 * hard-reg-set.h : Likewise.
24151 * hw-doloop.c : Likewise.
24152 * ifcvt.c : Likewise.
24153 * inchash.c : Likewise.
24154 * incpath.c : Likewise.
24155 * init-regs.c : Likewise.
24156 * input.c : Likewise.
24157 * internal-fn.c : Likewise.
24158 * ipa-chkp.c : Likewise.
24159 * ipa-comdats.c : Likewise.
24160 * ipa-cp.c : Likewise.
24161 * ipa-devirt.c : Likewise.
24162 * ipa-icf-gimple.c : Likewise.
24163 * ipa-icf.c : Likewise.
24164 * ipa-inline-analysis.c : Likewise.
24165 * ipa-inline-transform.c : Likewise.
24166 * ipa-inline.c : Likewise.
24167 * ipa-polymorphic-call.c : Likewise.
24168 * ipa-profile.c : Likewise.
24169 * ipa-prop.c : Likewise.
24170 * ipa-pure-const.c : Likewise.
24171 * ipa-ref.c : Likewise.
24172 * ipa-reference.c : Likewise.
24173 * ipa-split.c : Likewise.
24174 * ipa-utils.c : Likewise.
24175 * ipa-visibility.c : Likewise.
24176 * ipa.c : Likewise.
24177 * ira-build.c : Likewise.
24178 * ira-color.c : Likewise.
24179 * ira-conflicts.c : Likewise.
24180 * ira-costs.c : Likewise.
24181 * ira-emit.c : Likewise.
24182 * ira-lives.c : Likewise.
24183 * ira.c : Likewise.
24184 * jump.c : Likewise.
24185 * langhooks.c : Likewise.
24186 * lcm.c : Likewise.
24187 * libfuncs.h : Likewise.
24188 * lists.c : Likewise.
24189 * loop-doloop.c : Likewise.
24190 * loop-init.c : Likewise.
24191 * loop-invariant.c : Likewise.
24192 * loop-iv.c : Likewise.
24193 * loop-unroll.c : Likewise.
24194 * lower-subreg.c : Likewise.
24195 * lra-assigns.c : Likewise.
24196 * lra-coalesce.c : Likewise.
24197 * lra-constraints.c : Likewise.
24198 * lra-eliminations.c : Likewise.
24199 * lra-lives.c : Likewise.
24200 * lra-remat.c : Likewise.
24201 * lra-spills.c : Likewise.
24202 * lra.c : Likewise.
24203 * lto-cgraph.c : Likewise.
24204 * lto-compress.c : Likewise.
24205 * lto-opts.c : Likewise.
24206 * lto-section-in.c : Likewise.
24207 * lto-section-out.c : Likewise.
24208 * lto-streamer-in.c : Likewise.
24209 * lto-streamer-out.c : Likewise.
24210 * lto-streamer.c : Likewise.
24211 * lto-streamer.h : Likewise.
24212 * mcf.c : Likewise.
24213 * mode-switching.c : Likewise.
24214 * modulo-sched.c : Likewise.
24215 * omega.c : Likewise.
24216 * omp-low.c : Likewise.
24217 * optabs.c : Likewise.
24218 * opts-global.c : Likewise.
24219 * opts.h : Likewise.
24220 * passes.c : Likewise.
24221 * plugin.c : Likewise.
24222 * postreload-gcse.c : Likewise.
24223 * postreload.c : Likewise.
24224 * predict.c : Likewise.
24225 * print-rtl.c : Likewise.
24226 * print-tree.c : Likewise.
24227 * profile.c : Likewise.
24228 * read-md.c : Likewise.
24229 * read-md.h : Likewise.
24230 * read-rtl.c : Likewise.
24231 * real.c : Likewise.
24232 * realmpfr.c : Likewise.
24233 * recog.c : Likewise.
24234 * ree.c : Likewise.
24235 * reg-stack.c : Likewise.
24236 * regcprop.c : Likewise.
24237 * reginfo.c : Likewise.
24238 * regrename.c : Likewise.
24239 * regstat.c : Likewise.
24240 * reload.c : Likewise.
24241 * reload1.c : Likewise.
24242 * reorg.c : Likewise.
24243 * resource.c : Likewise.
24244 * rtl-chkp.c : Likewise.
24245 * rtl.c : Likewise.
24246 * rtl.h : Likewise.
24247 * rtlanal.c : Likewise.
24248 * rtlhash.c : Likewise.
24249 * rtlhash.h : Likewise.
24250 * rtlhooks.c : Likewise.
24251 * sanopt.c : Likewise.
24252 * sched-deps.c : Likewise.
24253 * sched-ebb.c : Likewise.
24254 * sched-rgn.c : Likewise.
24255 * sched-vis.c : Likewise.
24256 * sdbout.c : Likewise.
24257 * sel-sched-dump.c : Likewise.
24258 * sel-sched-ir.c : Likewise.
24259 * sel-sched-ir.h : Likewise.
24260 * sel-sched.c : Likewise.
24261 * sese.c : Likewise.
24262 * shrink-wrap.c : Likewise.
24263 * shrink-wrap.h : Likewise.
24264 * simplify-rtx.c : Likewise.
24265 * stack-ptr-mod.c : Likewise.
24266 * statistics.c : Likewise.
24267 * stmt.c : Likewise.
24268 * stor-layout.c : Likewise.
24269 * store-motion.c : Likewise.
24270 * stringpool.c : Likewise.
24271 * symtab.c : Likewise.
24272 * target-globals.c : Likewise.
24273 * targhooks.c : Likewise.
24274 * tlink.c : Likewise.
24275 * toplev.c : Likewise.
24276 * tracer.c : Likewise.
24277 * trans-mem.c : Likewise.
24278 * tree-affine.c : Likewise.
24279 * tree-affine.h : Likewise.
24280 * tree-browser.c : Likewise.
24281 * tree-call-cdce.c : Likewise.
24282 * tree-cfg.c : Likewise.
24283 * tree-cfgcleanup.c : Likewise.
24284 * tree-chkp-opt.c : Likewise.
24285 * tree-chkp.c : Likewise.
24286 * tree-chrec.c : Likewise.
24287 * tree-complex.c : Likewise.
24288 * tree-data-ref.c : Likewise.
24289 * tree-dfa.c : Likewise.
24290 * tree-diagnostic.c : Likewise.
24291 * tree-dump.c : Likewise.
24292 * tree-eh.c : Likewise.
24293 * tree-eh.h : Likewise.
24294 * tree-emutls.c : Likewise.
24295 * tree-hasher.h : Likewise.
24296 * tree-if-conv.c : Likewise.
24297 * tree-inline.c : Likewise.
24298 * tree-inline.h : Likewise.
24299 * tree-into-ssa.c : Likewise.
24300 * tree-iterator.c : Likewise.
24301 * tree-loop-distribution.c : Likewise.
24302 * tree-nested.c : Likewise.
24303 * tree-nrv.c : Likewise.
24304 * tree-object-size.c : Likewise.
24305 * tree-outof-ssa.c : Likewise.
24306 * tree-parloops.c : Likewise.
24307 * tree-phinodes.c : Likewise.
24308 * tree-predcom.c : Likewise.
24309 * tree-pretty-print.c : Likewise.
24310 * tree-profile.c : Likewise.
24311 * tree-scalar-evolution.c : Likewise.
24312 * tree-sra.c : Likewise.
24313 * tree-ssa-address.c : Likewise.
24314 * tree-ssa-alias.c : Likewise.
24315 * tree-ssa-ccp.c : Likewise.
24316 * tree-ssa-coalesce.c : Likewise.
24317 * tree-ssa-copy.c : Likewise.
24318 * tree-ssa-copyrename.c : Likewise.
24319 * tree-ssa-dce.c : Likewise.
24320 * tree-ssa-dom.c : Likewise.
24321 * tree-ssa-dse.c : Likewise.
24322 * tree-ssa-forwprop.c : Likewise.
24323 * tree-ssa-ifcombine.c : Likewise.
24324 * tree-ssa-live.c : Likewise.
24325 * tree-ssa-loop-ch.c : Likewise.
24326 * tree-ssa-loop-im.c : Likewise.
24327 * tree-ssa-loop-ivcanon.c : Likewise.
24328 * tree-ssa-loop-ivopts.c : Likewise.
24329 * tree-ssa-loop-manip.c : Likewise.
24330 * tree-ssa-loop-niter.c : Likewise.
24331 * tree-ssa-loop-prefetch.c : Likewise.
24332 * tree-ssa-loop-unswitch.c : Likewise.
24333 * tree-ssa-loop.c : Likewise.
24334 * tree-ssa-math-opts.c : Likewise.
24335 * tree-ssa-operands.c : Likewise.
24336 * tree-ssa-phiopt.c : Likewise.
24337 * tree-ssa-phiprop.c : Likewise.
24338 * tree-ssa-pre.c : Likewise.
24339 * tree-ssa-propagate.c : Likewise.
24340 * tree-ssa-reassoc.c : Likewise.
24341 * tree-ssa-sccvn.c : Likewise.
24342 * tree-ssa-scopedtables.c : Likewise.
24343 * tree-ssa-sink.c : Likewise.
24344 * tree-ssa-strlen.c : Likewise.
24345 * tree-ssa-structalias.c : Likewise.
24346 * tree-ssa-tail-merge.c : Likewise.
24347 * tree-ssa-ter.c : Likewise.
24348 * tree-ssa-threadedge.c : Likewise.
24349 * tree-ssa-threadupdate.c : Likewise.
24350 * tree-ssa-uncprop.c : Likewise.
24351 * tree-ssa-uninit.c : Likewise.
24352 * tree-ssa.c : Likewise.
24353 * tree-ssanames.c : Likewise.
24354 * tree-stdarg.c : Likewise.
24355 * tree-streamer-in.c : Likewise.
24356 * tree-streamer-out.c : Likewise.
24357 * tree-streamer.c : Likewise.
24358 * tree-streamer.h : Likewise.
24359 * tree-switch-conversion.c : Likewise.
24360 * tree-tailcall.c : Likewise.
24361 * tree-vect-data-refs.c : Likewise.
24362 * tree-vect-generic.c : Likewise.
24363 * tree-vect-loop-manip.c : Likewise.
24364 * tree-vect-loop.c : Likewise.
24365 * tree-vect-patterns.c : Likewise.
24366 * tree-vect-slp.c : Likewise.
24367 * tree-vect-stmts.c : Likewise.
24368 * tree-vectorizer.c : Likewise.
24369 * tree-vectorizer.h : Likewise.
24370 * tree-vrp.c : Likewise.
24371 * tree.c : Likewise.
24372 * tsan.c : Likewise.
24373 * ubsan.c : Likewise.
24374 * valtrack.c : Likewise.
24375 * valtrack.h : Likewise.
24376 * value-prof.c : Likewise.
24377 * var-tracking.c : Likewise.
24378 * varasm.c : Likewise.
24379 * varpool.c : Likewise.
24381 * vmsdbgout.c : Likewise.
24382 * vtable-verify.c : Likewise.
24383 * vtable-verify.h : Likewise.
24384 * web.c : Likewise.
24385 * wide-int.cc : Likewise.
24386 * xcoffout.c : Likewise.
24387 * config/aarch64/aarch64-builtins.c : Likewise.
24388 * config/aarch64/aarch64.c : Likewise.
24389 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
24390 * config/alpha/alpha.c : Likewise.
24391 * config/arc/arc.c : Likewise.
24392 * config/arm/aarch-common.c : Likewise.
24393 * config/arm/arm-builtins.c : Likewise.
24394 * config/arm/arm-c.c : Likewise.
24395 * config/arm/arm.c : Likewise.
24396 * config/avr/avr-c.c : Likewise.
24397 * config/avr/avr-log.c : Likewise.
24398 * config/avr/avr.c : Likewise.
24399 * config/bfin/bfin.c : Likewise.
24400 * config/c6x/c6x.c : Likewise.
24401 * config/cr16/cr16.c : Likewise.
24402 * config/cris/cris.c : Likewise.
24403 * config/darwin-c.c : Likewise.
24404 * config/darwin.c : Likewise.
24405 * config/default-c.c : Likewise.
24406 * config/epiphany/epiphany.c : Likewise.
24407 * config/epiphany/mode-switch-use.c : Likewise.
24408 * config/epiphany/resolve-sw-modes.c : Likewise.
24409 * config/fr30/fr30.c : Likewise.
24410 * config/frv/frv.c : Likewise.
24411 * config/ft32/ft32.c : Likewise.
24412 * config/glibc-c.c : Likewise.
24413 * config/h8300/h8300.c : Likewise.
24414 * config/i386/i386-c.c : Likewise.
24415 * config/i386/i386.c : Likewise.
24416 * config/i386/msformat-c.c : Likewise.
24417 * config/i386/winnt-cxx.c : Likewise.
24418 * config/i386/winnt-stubs.c : Likewise.
24419 * config/i386/winnt.c : Likewise.
24420 * config/ia64/ia64-c.c : Likewise.
24421 * config/ia64/ia64.c : Likewise.
24422 * config/iq2000/iq2000.c : Likewise.
24423 * config/lm32/lm32.c : Likewise.
24424 * config/m32c/m32c-pragma.c : Likewise.
24425 * config/m32c/m32c.c : Likewise.
24426 * config/m32r/m32r.c : Likewise.
24427 * config/m68k/m68k.c : Likewise.
24428 * config/mcore/mcore.c : Likewise.
24429 * config/mep/mep-pragma.c : Likewise.
24430 * config/mep/mep.c : Likewise.
24431 * config/microblaze/microblaze-c.c : Likewise.
24432 * config/microblaze/microblaze.c : Likewise.
24433 * config/mips/mips.c : Likewise.
24434 * config/mmix/mmix.c : Likewise.
24435 * config/mn10300/mn10300.c : Likewise.
24436 * config/moxie/moxie.c : Likewise.
24437 * config/msp430/msp430-c.c : Likewise.
24438 * config/msp430/msp430.c : Likewise.
24439 * config/nds32/nds32-cost.c : Likewise.
24440 * config/nds32/nds32-fp-as-gp.c : Likewise.
24441 * config/nds32/nds32-intrinsic.c : Likewise.
24442 * config/nds32/nds32-isr.c : Likewise.
24443 * config/nds32/nds32-md-auxiliary.c : Likewise.
24444 * config/nds32/nds32-memory-manipulation.c : Likewise.
24445 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
24446 * config/nds32/nds32-predicates.c : Likewise.
24447 * config/nds32/nds32.c : Likewise.
24448 * config/nios2/nios2.c : Likewise.
24449 * config/nvptx/nvptx.c : Likewise.
24450 * config/pa/pa.c : Likewise.
24451 * config/pdp11/pdp11.c : Likewise.
24452 * config/rl78/rl78-c.c : Likewise.
24453 * config/rl78/rl78.c : Likewise.
24454 * config/rs6000/rs6000-c.c : Likewise.
24455 * config/rs6000/rs6000.c : Likewise.
24456 * config/rx/rx.c : Likewise.
24457 * config/s390/s390-c.c : Likewise.
24458 * config/s390/s390.c : Likewise.
24459 * config/sh/sh-c.c : Likewise.
24460 * config/sh/sh-mem.cc : Likewise.
24461 * config/sh/sh.c : Likewise.
24462 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
24463 * config/sh/sh_treg_combine.cc : Likewise.
24464 * config/sol2-c.c : Likewise.
24465 * config/sol2-cxx.c : Likewise.
24466 * config/sol2-stubs.c : Likewise.
24467 * config/sol2.c : Likewise.
24468 * config/sparc/sparc-c.c : Likewise.
24469 * config/sparc/sparc.c : Likewise.
24470 * config/spu/spu-c.c : Likewise.
24471 * config/spu/spu.c : Likewise.
24472 * config/stormy16/stormy16.c : Likewise.
24473 * config/tilegx/mul-tables.c : Likewise.
24474 * config/tilegx/tilegx-c.c : Likewise.
24475 * config/tilegx/tilegx.c : Likewise.
24476 * config/tilepro/mul-tables.c : Likewise.
24477 * config/tilepro/tilepro-c.c : Likewise.
24478 * config/tilepro/tilepro.c : Likewise.
24479 * config/v850/v850-c.c : Likewise.
24480 * config/v850/v850.c : Likewise.
24481 * config/vax/vax.c : Likewise.
24482 * config/visium/visium.c : Likewise.
24483 * config/vms/vms-c.c : Likewise.
24484 * config/vms/vms.c : Likewise.
24485 * config/vxworks.c : Likewise.
24486 * config/winnt-c.c : Likewise.
24487 * config/xtensa/xtensa.c : Likewise.
24489 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24492 * ipa-utils.h (warn_types_mismatch): Update prototype.
24493 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
24495 (type_mismatch_p): New function.
24496 (warn_types_mismatch): Reorg to work better on non-C++ types.
24497 (odr_types_equivalent_p): Add loc1/loc2 parameters.
24498 (add_type_duplicate): Update.
24500 2015-06-08 Tom de Vries <tom@codesourcery.com>
24502 PR rtl-optimization/66444
24503 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
24506 2015-06-08 Richard Biener <rguenther@suse.de>
24508 PR tree-optimization/66422
24509 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
24510 block after inserted gcc_unreachable.
24512 2015-06-08 Nick Clifton <nickc@redhat.com>
24514 * config/rx/rx.c (rx_function_value): Do not promote vector types.
24515 (rx_promote_function_mode): Likewise.
24516 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
24518 2015-06-08 Jakub Jelinek <jakub@redhat.com>
24520 * genattrtab.c (insn_alternatives): Change type from int *
24522 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
24523 (get_attr_value): Change type of num_alt to uint64_t.
24524 (compute_alternative_mask): Change return type from
24525 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
24526 (make_alternative_compare, mk_attr_alt): Change argument type
24527 from int to uint64_t.
24528 (simplify_test_exp): Change type of i from int to uint64_t.
24529 Shift ((uint64_t) 1) instead of 1 up.
24530 (main): Adjust oballocvec first argument from int to uint64_t.
24531 Shift ((uint64_t) 1) instead of 1 up.
24533 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
24536 * gdbhooks.py: Import sys.
24537 (intptr): New function. Replace int(...) by intptr(...).
24539 2015-06-08 Richard Biener <rguenther@suse.de>
24541 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
24542 adjustment for gaps at the end of a SLP load group properly.
24543 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
24544 all permutations we can generate.
24545 (vect_transform_slp_perm_load): Use the correct group-size.
24547 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
24549 * genmatch.c (expr::gen_transform): For conditions, guess the type
24550 from the second operand.
24552 2015-06-08 Tom de Vries <tom@codesourcery.com>
24554 PR tree-optimization/66442
24555 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
24556 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
24557 if the loop latch is not a singleton. Use
24558 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
24560 2015-06-08 Marek Polacek <polacek@redhat.com>
24563 * toplev.c (check_global_declaration): Don't warn about artificial
24566 2015-06-08 Tom de Vries <tom@codesourcery.com>
24568 PR tree-optimization/66436
24569 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
24571 * gimplify.c: Add tree-dump.h include.
24572 (gimplify_function_tree): Dump function to gimple dump file.
24573 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
24576 2015-06-08 Tom de Vries <tom@codesourcery.com>
24578 PR tree-optimization/66435
24579 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
24582 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
24584 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
24585 of ptr_type_node to not be ptr_to_node.
24586 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
24587 TREE_TYPE of pointers.
24588 * gimple-expr.c (useless_type_conversion): Reorder the check for
24589 function pointers and TYPE_CANONICAL.
24591 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
24594 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
24595 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
24596 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
24598 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
24599 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
24600 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
24601 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
24602 and non iso if unix2003.
24604 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
24606 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
24608 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
24610 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
24611 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
24612 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
24613 except.c, final.c, function.c, gcse-common.c, genemit.c,
24614 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
24615 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
24616 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
24617 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
24620 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
24622 * combine.c (combine_split_insns): Remove cast.
24623 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
24624 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
24625 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
24626 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
24627 * genemit.c (gen_split): Change return type of generated functions to
24629 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
24630 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
24631 gen_peephole2_* functions.
24632 (print_subroutine, main): Likewise.
24633 * recog.c (peephole2_optimize): Remove cast.
24634 (peep2_next_insn): Promote return type to rtx_insn.
24635 * recog.h (peep2_next_insn): Fix prototype.
24636 * rtl.h (try_split, split_insns): Likewise.
24638 2015-06-06 DJ Delorie <dj@redhat.com>
24640 * config/msp430/msp430.c (msp430_asm_integer): Support addition
24641 and subtraction too.
24643 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
24646 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
24647 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
24648 instead of Snd. Disparage Sid/z alternative with '^'.
24650 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
24652 * dwarf2out.c: Remove deferred_locations*.
24653 (dwarf2_debug_hooks): Add early_finish hook.
24654 Remove global_decl hook.
24655 Add early_global_decl and late_global_decl hook.
24656 New global early_dwarf.
24657 New structure set_early_dwarf.
24658 (output_die): Indicate whether a DIE was generated early
24659 when generating assembly with -dA.
24660 (struct limbo_die_struct): Document created_for field.
24661 Remove file_table_last_lookup.
24662 (remove_AT): Return TRUE if successful.
24663 (remove_child_TAG): Clear die_parent.
24664 (reparent_child): New function abstracted from...
24665 (splice_child_die): ...here.
24666 (new_die): ICE if a DIE ends up in limbo too late.
24668 (defer_location): Remove.
24669 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
24670 (fill_variable_array_bounds): New.
24671 (decl_start_label): Call fill_variable_array_bounds.
24672 (gen_formal_parameter_die): Rewrite to reuse previously generated
24674 (gen_subprogram_die): Same.
24675 (gen_variable_die): Same.
24676 (gen_const_die): Same.
24677 (gen_label_die): Same.
24678 (gen_lexical_block_die): Same.
24679 (decl_will_get_specification_p): New.
24680 (local_function_static): New.
24681 (gen_struct_or_union_type_die): Fill in variable-length fields.
24682 (gen_typedef_die): Fill in variable-length typedefs.
24683 (gen_tagged_type_die): Gracefully return on error_mark_node.
24684 Handle re-entrancy.
24685 (gen_type_die_with_usage): Handle variable-length types.
24686 Remove duplicate code for ARRAY_TYPE case.
24687 (process_scope_var): Only process imported modules during early
24689 (dwarf2out_early_global_decl): New.
24690 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
24691 (dwarf2out_type_decl): Set early_dwarf while calling
24693 (dwarf2out_decl): Verify that we did not recreate a previously
24695 Do not return on DECL_EXTERNALs in VAR_DECLs.
24696 Abstract some code to local_function_static.
24697 (lookup_filename): Remove use of file_table_last_lookup.
24698 Gracefully exit on missing file_name.
24699 (dwarf2out_finish): Verify limbo list.
24700 Remove deferred_locations_list use.
24701 Move deferred_asm_name and limbo flushing to...
24702 (dwarf2out_early_finish): ...here. New.
24703 (dwarf2out_c_finalize): Remove set of deferred_location_list,
24704 deferred_asm_name, and file_table_last_lookup.
24705 * cgraph.h (referred_to_p): Add default argument.
24706 * cgraphunit.c (referred_to_p): Add and handle include_self
24708 (analyze_functions): Add first_time argument.
24709 Call check_global_declaration for all symbols.
24710 Call late_global_decl for nodes for moribund nodes.
24711 (finalize_compilation_unit): Add new argument to
24713 Call early_global_decl for functions.
24714 Call early_finish debug hook.
24715 * dbxout.c (dbxout_early_global_decl): New.
24716 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
24717 (dbx_debug_hooks): Add new hooks.
24718 (xcoff_debug_hooks): Same.
24719 * debug.c (do_nothing_debug_hooks): Add early_finish field.
24720 Add early and late debug hooks.
24721 Remove global_decl hook.
24722 * debug.h (struct gcc_debug_hooks): Add early_finish,
24723 early_global_decl, and late_global_decl fields.
24724 Remove global_decl field.
24725 Document gcc_debug_hooks.
24726 * gengtype.c (output_typename): Remove.
24727 * godump.c (go_early_global_decl): New.
24728 (go_late_global_decl): New.
24729 (go_global_decl): Remove.
24730 (dump_go_spec_init): Remove global_decl. Add
24731 {early,late}_global_decl.
24732 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
24733 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
24734 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
24735 (write_global_declarations): Remove.
24736 (global_decl_processing): New.
24737 * langhooks.h (struct lang_hooks_for_decls): Remove
24738 final_write_globals field.
24739 Add post_compilation_parsing_cleanups field.
24740 * passes.c (rest_of_decl_compilation): Call early_global_decl.
24741 * sdbout.c: Add early and late_global_decl hooks. Remove
24742 sdbout_global_decl hook.
24743 Add early_finish field for sdb_debug_hooks.
24744 (sdbout_global_decl): Remove.
24745 (sdbout_early_global_decl): New.
24746 (sdbout_late_global_decl): New.
24747 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
24748 * toplev.c (check_global_declaration): Rename from
24749 check_global_declaration_1.
24750 Adapt to use symtab infrastructure.
24751 (check_global_declarations): Remove.
24752 (emit_debug_global_declarations): Remove.
24753 (compile_file): Remove call to final_write_globals langhook.
24754 Run the actual compilation process.
24755 Perform any post compilation parser cleanups.
24756 Generate late debug info.
24757 * toplev.h (check_global_declaration): New.
24758 (check_global_declaration_1): Remove.
24759 (check_global_declarations): Remove.
24760 (write_global_declarations): Remove.
24761 (emit_debug_global_declarations): Remove.
24762 (global_decl_processing): New.
24763 * tree-core.h (struct tree_block): Add DIE field.
24764 * tree.h (BLOCK_DIE): New.
24765 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
24767 (vmsdbgout_early_global_decl): New.
24768 (vmsdbgout_late_global_decl): New.
24769 Add early_finish debug hook field to vmsdbg_debug_hooks.
24770 Remove vmsdbgout_decl to vmsdbgout_function_decl.
24771 Add early and late_global_decl debug hooks.
24773 2015-06-05 Julian Brown <julian@codesourcery.com>
24774 Sandra Loosemore <sandra@codesourcery.com>
24776 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
24777 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
24778 to print-sysroot-suffix.sh script.
24780 2015-06-05 Tom de Vries <tom@codesourcery.com>
24782 merge from gomp4 branch:
24783 2015-05-28 Tom de Vries <tom@codesourcery.com>
24785 PR tree-optimization/65443
24786 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
24787 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
24788 (try_transform_to_exit_first_loop_alt): New function.
24789 (transform_to_exit_first_loop): Use
24790 try_transform_to_exit_first_loop_alt.
24792 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
24794 * builtins.c (expand_builtin_atomic_compare_exchange): Call
24795 emit_cmp_and_jump_insns with the mode of target.
24797 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24799 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
24801 2015-06-04 DJ Delorie <dj@redhat.com>
24803 * config/msp430/msp430.md (movsi_s): New. Special case for
24804 storing a 20-bit symbol into a 32-bit register.
24805 * config/msp430/msp430.c (msp430_subreg): Add support for it.
24806 * config/msp430/predicates.md (msp430_symbol_operand): New.
24808 2015-06-04 Sriraman Tallam <tmsriram@google.com>
24810 * c-family/c-common.c (noplt): New attribute.
24811 (handle_noplt_attribute): New handler.
24812 * calls.c (prepare_call_address): Check for noplt
24814 * config/i386/i386.c (ix86_expand_call): Check
24815 for noplt attribute.
24816 (ix86_nopic_noplt_attribute_p): New function.
24817 (ix86_output_call_insn): Output indirect call for non-pic
24819 * doc/extend.texi (noplt): Document new attribute.
24820 * doc/invoke.texi: Document new attribute.
24822 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
24824 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
24825 real.h, and fixed-value.h when included in host source files.
24826 * double-int.h: Remove redundant #includes listed above.
24827 * fixed-value.h: Likewise.
24828 * real.h: Likewise.
24829 * wide-int.h: Likewise.
24830 * inchash.h: Likewise.
24831 * rtl.h: Add some include files When included from a generator file.
24832 * target.h: Remove wide-int.h and insn-modes.h from the include list.
24833 * internal-fn.h: Don't include coretypes.h.
24834 * alias.c: Adjust includes for restructured coretypes.h.
24835 * asan.c: Likewise.
24836 * attribs.c: Likewise.
24837 * auto-inc-dec.c: Likewise.
24838 * auto-profile.c: Likewise.
24839 * bb-reorder.c: Likewise.
24840 * bt-load.c: Likewise.
24841 * builtins.c: Likewise.
24842 * caller-save.c: Likewise.
24843 * calls.c: Likewise.
24844 * ccmp.c: Likewise.
24846 * cfganal.c: Likewise.
24847 * cfgbuild.c: Likewise.
24848 * cfgcleanup.c: Likewise.
24849 * cfgexpand.c: Likewise.
24850 * cfghooks.c: Likewise.
24851 * cfgloop.c: Likewise.
24852 * cfgloop.h: Likewise.
24853 * cfgloopanal.c: Likewise.
24854 * cfgloopmanip.c: Likewise.
24855 * cfgrtl.c: Likewise.
24856 * cgraph.c: Likewise.
24857 * cgraphbuild.c: Likewise.
24858 * cgraphclones.c: Likewise.
24859 * cgraphunit.c: Likewise.
24860 * cilk-common.c: Likewise.
24861 * combine-stack-adj.c: Likewise.
24862 * combine.c: Likewise.
24863 * compare-elim.c: Likewise.
24864 * convert.c: Likewise.
24865 * coverage.c: Likewise.
24866 * cppbuiltin.c: Likewise.
24867 * cprop.c: Likewise.
24869 * cselib.c: Likewise.
24870 * data-streamer-in.c: Likewise.
24871 * data-streamer-out.c: Likewise.
24872 * data-streamer.c: Likewise.
24873 * dbxout.c: Likewise.
24876 * debug.c: Likewise.
24877 * df-core.c: Likewise.
24878 * df-problems.c: Likewise.
24879 * df-scan.c: Likewise.
24882 * dojump.c: Likewise.
24883 * dominance.c: Likewise.
24884 * domwalk.c: Likewise.
24885 * double-int.c: Likewise.
24887 * dumpfile.c: Likewise.
24888 * dwarf2asm.c: Likewise.
24889 * dwarf2cfi.c: Likewise.
24890 * dwarf2out.c: Likewise.
24891 * dwarf2out.h: Likewise.
24892 * emit-rtl.c: Likewise.
24893 * et-forest.c: Likewise.
24894 * except.c: Likewise.
24895 * explow.c: Likewise.
24896 * expmed.c: Likewise.
24897 * expr.c: Likewise.
24898 * final.c: Likewise.
24899 * fixed-value.c: Likewise.
24900 * fold-const.c: Likewise.
24901 * function.c: Likewise.
24902 * fwprop.c: Likewise.
24903 * gcc-plugin.h: Likewise.
24904 * gcse.c: Likewise.
24905 * generic-match-head.c: Likewise.
24906 * ggc-page.c: Likewise.
24907 * gimple-builder.c: Likewise.
24908 * gimple-expr.c: Likewise.
24909 * gimple-fold.c: Likewise.
24910 * gimple-iterator.c: Likewise.
24911 * gimple-low.c: Likewise.
24912 * gimple-match-head.c: Likewise.
24913 * gimple-pretty-print.c: Likewise.
24914 * gimple-ssa-isolate-paths.c: Likewise.
24915 * gimple-ssa-strength-reduction.c: Likewise.
24916 * gimple-streamer-in.c: Likewise.
24917 * gimple-streamer-out.c: Likewise.
24918 * gimple-streamer.h: Likewise.
24919 * gimple-walk.c: Likewise.
24920 * gimple.c: Likewise.
24921 * gimplify-me.c: Likewise.
24922 * gimplify.c: Likewise.
24923 * godump.c: Likewise.
24924 * graph.c: Likewise.
24925 * graphite-blocking.c: Likewise.
24926 * graphite-dependences.c: Likewise.
24927 * graphite-interchange.c: Likewise.
24928 * graphite-isl-ast-to-gimple.c: Likewise.
24929 * graphite-optimize-isl.c: Likewise.
24930 * graphite-poly.c: Likewise.
24931 * graphite-scop-detection.c: Likewise.
24932 * graphite-sese-to-poly.c: Likewise.
24933 * graphite.c: Likewise.
24934 * haifa-sched.c: Likewise.
24935 * hooks.h: Likewise.
24936 * hw-doloop.c: Likewise.
24937 * ifcvt.c: Likewise.
24938 * incpath.c: Likewise.
24939 * init-regs.c: Likewise.
24940 * internal-fn.c: Likewise.
24941 * ipa-chkp.c: Likewise.
24942 * ipa-comdats.c: Likewise.
24943 * ipa-cp.c: Likewise.
24944 * ipa-devirt.c: Likewise.
24945 * ipa-icf-gimple.c: Likewise.
24946 * ipa-icf.c: Likewise.
24947 * ipa-inline-analysis.c: Likewise.
24948 * ipa-inline-transform.c: Likewise.
24949 * ipa-inline.c: Likewise.
24950 * ipa-polymorphic-call.c: Likewise.
24951 * ipa-profile.c: Likewise.
24952 * ipa-prop.c: Likewise.
24953 * ipa-pure-const.c: Likewise.
24954 * ipa-ref.c: Likewise.
24955 * ipa-reference.c: Likewise.
24956 * ipa-split.c: Likewise.
24957 * ipa-utils.c: Likewise.
24958 * ipa-visibility.c: Likewise.
24960 * ira-build.c: Likewise.
24961 * ira-color.c: Likewise.
24962 * ira-conflicts.c: Likewise.
24963 * ira-costs.c: Likewise.
24964 * ira-emit.c: Likewise.
24965 * ira-lives.c: Likewise.
24967 * jump.c: Likewise.
24968 * langhooks.c: Likewise.
24970 * loop-doloop.c: Likewise.
24971 * loop-init.c: Likewise.
24972 * loop-invariant.c: Likewise.
24973 * loop-iv.c: Likewise.
24974 * loop-unroll.c: Likewise.
24975 * lower-subreg.c: Likewise.
24976 * lra-assigns.c: Likewise.
24977 * lra-coalesce.c: Likewise.
24978 * lra-constraints.c: Likewise.
24979 * lra-eliminations.c: Likewise.
24980 * lra-lives.c: Likewise.
24981 * lra-remat.c: Likewise.
24982 * lra-spills.c: Likewise.
24984 * lto-cgraph.c: Likewise.
24985 * lto-compress.c: Likewise.
24986 * lto-opts.c: Likewise.
24987 * lto-section-in.c: Likewise.
24988 * lto-section-out.c: Likewise.
24989 * lto-streamer-in.c: Likewise.
24990 * lto-streamer-out.c: Likewise.
24991 * lto-streamer.c: Likewise.
24993 * mode-switching.c: Likewise.
24994 * modulo-sched.c: Likewise.
24995 * omega.c: Likewise.
24996 * omp-low.c: Likewise.
24997 * optabs.c: Likewise.
24998 * opts-global.c: Likewise.
24999 * passes.c: Likewise.
25000 * plugin.c: Likewise.
25001 * postreload-gcse.c: Likewise.
25002 * postreload.c: Likewise.
25003 * predict.c: Likewise.
25004 * print-rtl.c: Likewise.
25005 * print-tree.c: Likewise.
25006 * profile.c: Likewise.
25007 * real.c: Likewise.
25008 * realmpfr.c: Likewise.
25009 * realmpfr.h: Likewise.
25010 * recog.c: Likewise.
25012 * reg-stack.c: Likewise.
25013 * regcprop.c: Likewise.
25014 * reginfo.c: Likewise.
25015 * regrename.c: Likewise.
25016 * regs.h: Likewise.
25017 * regstat.c: Likewise.
25018 * reload.c: Likewise.
25019 * reload1.c: Likewise.
25020 * reorg.c: Likewise.
25021 * resource.c: Likewise.
25022 * rtl-chkp.c: Likewise.
25023 * rtlanal.c: Likewise.
25024 * rtlhooks.c: Likewise.
25025 * sanopt.c: Likewise.
25026 * sched-deps.c: Likewise.
25027 * sched-ebb.c: Likewise.
25028 * sched-rgn.c: Likewise.
25029 * sched-vis.c: Likewise.
25030 * sdbout.c: Likewise.
25031 * sel-sched-dump.c: Likewise.
25032 * sel-sched-ir.c: Likewise.
25033 * sel-sched.c: Likewise.
25034 * sese.c: Likewise.
25035 * shrink-wrap.c: Likewise.
25036 * shrink-wrap.h: Likewise.
25037 * simplify-rtx.c: Likewise.
25038 * stack-ptr-mod.c: Likewise.
25039 * statistics.c: Likewise.
25040 * stmt.c: Likewise.
25041 * stor-layout.c: Likewise.
25042 * store-motion.c: Likewise.
25043 * stringpool.c: Likewise.
25044 * symtab.c: Likewise.
25045 * target-globals.c: Likewise.
25046 * targhooks.c: Likewise.
25047 * toplev.c: Likewise.
25048 * tracer.c: Likewise.
25049 * trans-mem.c: Likewise.
25050 * tree-affine.c: Likewise.
25051 * tree-affine.h: Likewise.
25052 * tree-browser.c: Likewise.
25053 * tree-call-cdce.c: Likewise.
25054 * tree-cfg.c: Likewise.
25055 * tree-cfgcleanup.c: Likewise.
25056 * tree-chkp-opt.c: Likewise.
25057 * tree-chkp.c: Likewise.
25058 * tree-chrec.c: Likewise.
25059 * tree-complex.c: Likewise.
25060 * tree-data-ref.c: Likewise.
25061 * tree-dfa.c: Likewise.
25062 * tree-diagnostic.c: Likewise.
25063 * tree-dump.c: Likewise.
25064 * tree-eh.c: Likewise.
25065 * tree-emutls.c: Likewise.
25066 * tree-if-conv.c: Likewise.
25067 * tree-inline.c: Likewise.
25068 * tree-into-ssa.c: Likewise.
25069 * tree-iterator.c: Likewise.
25070 * tree-loop-distribution.c: Likewise.
25071 * tree-nested.c: Likewise.
25072 * tree-nrv.c: Likewise.
25073 * tree-object-size.c: Likewise.
25074 * tree-outof-ssa.c: Likewise.
25075 * tree-parloops.c: Likewise.
25076 * tree-phinodes.c: Likewise.
25077 * tree-predcom.c: Likewise.
25078 * tree-pretty-print.c: Likewise.
25079 * tree-pretty-print.h: Likewise.
25080 * tree-profile.c: Likewise.
25081 * tree-scalar-evolution.c: Likewise.
25082 * tree-sra.c: Likewise.
25083 * tree-ssa-address.c: Likewise.
25084 * tree-ssa-alias.c: Likewise.
25085 * tree-ssa-ccp.c: Likewise.
25086 * tree-ssa-coalesce.c: Likewise.
25087 * tree-ssa-copy.c: Likewise.
25088 * tree-ssa-copyrename.c: Likewise.
25089 * tree-ssa-dce.c: Likewise.
25090 * tree-ssa-dom.c: Likewise.
25091 * tree-ssa-dse.c: Likewise.
25092 * tree-ssa-forwprop.c: Likewise.
25093 * tree-ssa-ifcombine.c: Likewise.
25094 * tree-ssa-live.c: Likewise.
25095 * tree-ssa-loop-ch.c: Likewise.
25096 * tree-ssa-loop-im.c: Likewise.
25097 * tree-ssa-loop-ivcanon.c: Likewise.
25098 * tree-ssa-loop-ivopts.c: Likewise.
25099 * tree-ssa-loop-manip.c: Likewise.
25100 * tree-ssa-loop-niter.c: Likewise.
25101 * tree-ssa-loop-prefetch.c: Likewise.
25102 * tree-ssa-loop-unswitch.c: Likewise.
25103 * tree-ssa-loop.c: Likewise.
25104 * tree-ssa-loop.h: Likewise.
25105 * tree-ssa-math-opts.c: Likewise.
25106 * tree-ssa-operands.c: Likewise.
25107 * tree-ssa-phiopt.c: Likewise.
25108 * tree-ssa-phiprop.c: Likewise.
25109 * tree-ssa-pre.c: Likewise.
25110 * tree-ssa-propagate.c: Likewise.
25111 * tree-ssa-reassoc.c: Likewise.
25112 * tree-ssa-sccvn.c: Likewise.
25113 * tree-ssa-scopedtables.c: Likewise.
25114 * tree-ssa-sink.c: Likewise.
25115 * tree-ssa-strlen.c: Likewise.
25116 * tree-ssa-structalias.c: Likewise.
25117 * tree-ssa-tail-merge.c: Likewise.
25118 * tree-ssa-ter.c: Likewise.
25119 * tree-ssa-threadedge.c: Likewise.
25120 * tree-ssa-threadupdate.c: Likewise.
25121 * tree-ssa-uncprop.c: Likewise.
25122 * tree-ssa-uninit.c: Likewise.
25123 * tree-ssa.c: Likewise.
25124 * tree-ssanames.c: Likewise.
25125 * tree-stdarg.c: Likewise.
25126 * tree-streamer-in.c: Likewise.
25127 * tree-streamer-out.c: Likewise.
25128 * tree-streamer.c: Likewise.
25129 * tree-switch-conversion.c: Likewise.
25130 * tree-tailcall.c: Likewise.
25131 * tree-vect-data-refs.c: Likewise.
25132 * tree-vect-generic.c: Likewise.
25133 * tree-vect-loop-manip.c: Likewise.
25134 * tree-vect-loop.c: Likewise.
25135 * tree-vect-patterns.c: Likewise.
25136 * tree-vect-slp.c: Likewise.
25137 * tree-vect-stmts.c: Likewise.
25138 * tree-vectorizer.c: Likewise.
25139 * tree-vrp.c: Likewise.
25140 * tree.c: Likewise.
25141 * tsan.c: Likewise.
25142 * ubsan.c: Likewise.
25143 * valtrack.c: Likewise.
25144 * value-prof.c: Likewise.
25145 * var-tracking.c: Likewise.
25146 * varasm.c: Likewise.
25147 * varpool.c: Likewise.
25148 * vmsdbgout.c: Likewise.
25149 * vtable-verify.c: Likewise.
25151 * wide-int-print.cc: Likewise.
25152 * wide-int-print.h: Likewise.
25153 * wide-int.cc: Likewise.
25154 * xcoffout.c: Likewise.
25155 * config/aarch64/aarch64-builtins.c: Likewise.
25156 * config/aarch64/aarch64.c: Likewise.
25157 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25158 * config/alpha/alpha.c: Likewise.
25159 * config/arc/arc.c: Likewise.
25160 * config/arm/aarch-common.c: Likewise.
25161 * config/arm/arm-builtins.c: Likewise.
25162 * config/arm/arm-c.c: Likewise.
25163 * config/arm/arm.c: Likewise.
25164 * config/avr/avr-c.c: Likewise.
25165 * config/avr/avr-log.c: Likewise.
25166 * config/avr/avr.c: Likewise.
25167 * config/bfin/bfin.c: Likewise.
25168 * config/c6x/c6x.c: Likewise.
25169 * config/cr16/cr16.c: Likewise.
25170 * config/cris/cris.c: Likewise.
25171 * config/darwin-c.c: Likewise.
25172 * config/darwin.c: Likewise.
25173 * config/default-c.c: Likewise.
25174 * config/epiphany/epiphany.c: Likewise.
25175 * config/epiphany/mode-switch-use.c: Likewise.
25176 * config/epiphany/resolve-sw-modes.c: Likewise.
25177 * config/fr30/fr30.c: Likewise.
25178 * config/frv/frv.c: Likewise.
25179 * config/ft32/ft32.c: Likewise.
25180 * config/glibc-c.c: Likewise.
25181 * config/h8300/h8300.c: Likewise.
25182 * config/i386/i386-c.c: Likewise.
25183 * config/i386/i386.c: Likewise.
25184 * config/i386/msformat-c.c: Likewise.
25185 * config/i386/winnt-cxx.c: Likewise.
25186 * config/i386/winnt-stubs.c: Likewise.
25187 * config/i386/winnt.c: Likewise.
25188 * config/ia64/ia64-c.c: Likewise.
25189 * config/ia64/ia64.c: Likewise.
25190 * config/iq2000/iq2000.c: Likewise.
25191 * config/lm32/lm32.c: Likewise.
25192 * config/m32c/m32c-pragma.c: Likewise.
25193 * config/m32c/m32c.c: Likewise.
25194 * config/m32r/m32r.c: Likewise.
25195 * config/m68k/m68k.c: Likewise.
25196 * config/mcore/mcore.c: Likewise.
25197 * config/mep/mep-pragma.c: Likewise.
25198 * config/mep/mep.c: Likewise.
25199 * config/microblaze/microblaze-c.c: Likewise.
25200 * config/microblaze/microblaze.c: Likewise.
25201 * config/mips/mips.c: Likewise.
25202 * config/mmix/mmix.c: Likewise.
25203 * config/mn10300/mn10300.c: Likewise.
25204 * config/moxie/moxie.c: Likewise.
25205 * config/msp430/msp430-c.c: Likewise.
25206 * config/msp430/msp430.c: Likewise.
25207 * config/nds32/nds32-cost.c: Likewise.
25208 * config/nds32/nds32-fp-as-gp.c: Likewise.
25209 * config/nds32/nds32-intrinsic.c: Likewise.
25210 * config/nds32/nds32-isr.c: Likewise.
25211 * config/nds32/nds32-md-auxiliary.c: Likewise.
25212 * config/nds32/nds32-memory-manipulation.c: Likewise.
25213 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25214 * config/nds32/nds32-predicates.c: Likewise.
25215 * config/nds32/nds32.c: Likewise.
25216 * config/nios2/nios2.c: Likewise.
25217 * config/nvptx/nvptx.c: Likewise.
25218 * config/pa/pa.c: Likewise.
25219 * config/pdp11/pdp11.c: Likewise.
25220 * config/rl78/rl78-c.c: Likewise.
25221 * config/rl78/rl78.c: Likewise.
25222 * config/rs6000/rs6000-c.c: Likewise.
25223 * config/rs6000/rs6000.c: Likewise.
25224 * config/rx/rx.c: Likewise.
25225 * config/s390/s390-c.c: Likewise.
25226 * config/s390/s390.c: Likewise.
25227 * config/sh/sh-c.c: Likewise.
25228 * config/sh/sh-mem.cc: Likewise.
25229 * config/sh/sh.c: Likewise.
25230 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25231 * config/sh/sh_treg_combine.cc: Likewise.
25232 * config/sol2-c.c: Likewise.
25233 * config/sol2-cxx.c: Likewise.
25234 * config/sol2-stubs.c: Likewise.
25235 * config/sol2.c: Likewise.
25236 * config/sparc/sparc-c.c: Likewise.
25237 * config/sparc/sparc.c: Likewise.
25238 * config/spu/spu-c.c: Likewise.
25239 * config/spu/spu.c: Likewise.
25240 * config/stormy16/stormy16.c: Likewise.
25241 * config/tilegx/mul-tables.c: Likewise.
25242 * config/tilegx/tilegx-c.c: Likewise.
25243 * config/tilegx/tilegx.c: Likewise.
25244 * config/tilepro/mul-tables.c: Likewise.
25245 * config/tilepro/tilepro-c.c: Likewise.
25246 * config/tilepro/tilepro.c: Likewise.
25247 * config/v850/v850-c.c: Likewise.
25248 * config/v850/v850.c: Likewise.
25249 * config/vax/vax.c: Likewise.
25250 * config/visium/visium.c: Likewise.
25251 * config/vms/vms-c.c: Likewise.
25252 * config/vms/vms.c: Likewise.
25253 * config/vxworks.c: Likewise.
25254 * config/winnt-c.c: Likewise.
25255 * config/xtensa/xtensa.c: Likewise.
25256 * common/config/bfin/bfin-common.c: Likewise.
25258 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
25260 * tree.h (tree_code_for_canonical_type_merging): New function.
25261 * tree.c (gimple_canonical_types_compatible_p): Use
25262 tree_code_for_canonical_type_merging..
25264 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25268 * doc/tm.texi: Regenerate.
25269 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
25270 * target.def (TARGET_RELAXED_ORDERING): Likewise.
25271 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
25272 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
25273 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
25274 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
25275 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
25276 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
25277 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
25279 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25281 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
25282 register fma steering pass.
25283 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
25284 AARCH64_TUNE_FMA_STEERING.
25286 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
25288 * tree.c (verify_type_variant): Verify that type and variant is
25290 (gimple_canonical_types_compatible_p): Look for main variants.
25292 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
25294 * config.gcc (powerpc*-*-*): Add support for a new configure
25295 option --with-advance-toolchain=<xxx> which overrides using the
25296 default header files, libraries and dynamic linker.
25298 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
25299 specs to support the configure --with-advance-toolchain=<xxx>
25301 (INCLUDE_EXTRA_SPEC): Likewise.
25302 (LINK_OS_EXTRA_SPEC32): Likewise.
25303 (LINK_OK_EXTRA_SPEC64): Likewise.
25304 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
25305 (DYNAMIC_LINKER_PREFIX): Likewise.
25306 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
25308 (GLIBC_DYNAMIC_LINKER32): Likewise.
25309 (GLIBC_DYNAMIC_LINKER64): Likewise.
25310 (LINK_OS_LINUX_SPEC32): Likewise.
25311 (LINK_OS_LINUX_SPEC64): Likewise.
25313 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
25314 configuration option.
25316 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
25319 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
25320 to determine current function ABI.
25321 (ix86_function_value_regno_p): Ditto.
25323 2015-06-03 Martin Liska <mliska@suse.cz>
25325 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
25326 * bitmap.h (struct bitmap_usage): Likewise.
25327 * ggc-common.c (struct ggc_usage): Likewise.
25328 * mem-stats.h (struct mem_location): Likewise.
25329 (struct mem_usage): Likewise.
25330 * vec.c (struct vec_usage): Likewise.
25332 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
25334 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
25337 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
25339 * doc/plugins.texi (enum plugin_event): New event.
25340 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
25341 and PLUGIN_FINISH_FUNCTION.
25342 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
25343 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
25345 2015-06-03 Richard Biener <rguenther@suse.de>
25347 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
25348 compute GROUP_GAP for the first element.
25349 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
25352 2015-06-03 Nick Clifton <nickc@redhat.com>
25354 * config/rl78/rl78-real.md: Add peepholes to avoid a register
25355 copy when calling a function.
25356 * config/rl78/rl78.c (need_to_save): Do not push the frame
25357 pointer in an interrupt handler prologue if it is never used.
25359 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25361 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
25363 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
25365 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
25366 reference when cloning alias node.
25368 2015-06-03 Martin Liska <mliska@suse.cz>
25370 * alloc-pool.h (struct pool_usage): Correct space padding.
25371 * ggc-page.c (ggc_print_statistics): Align columns in a report.
25372 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
25373 * tree.c (dump_tree_statistics): Align columns in a report.
25375 2015-06-03 Martin Liska <mliska@suse.cz>
25377 * alloc-pool.c (allocate_pool_descriptor): Remove.
25378 (struct pool_output_info): Likewise.
25379 (print_alloc_pool_statistics): Likewise.
25380 (dump_alloc_pool_statistics): Likewise.
25381 * alloc-pool.h (struct pool_usage): New struct.
25382 (pool_allocator::initialize): Change usage of memory statistics
25383 to a new interface.
25384 (pool_allocator::release): Likewise.
25385 (pool_allocator::allocate): Likewise.
25386 (pool_allocator::remove): Likewise.
25387 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
25388 for a pool allocator.
25389 * mem-stats.h (struct mem_location): Add new ctor.
25390 (struct mem_usage): Add counter for number of
25392 (mem_alloc_description::register_descriptor): New overload of
25393 * mem-stats.h (mem_location::to_string): New function.
25394 * bitmap.h (struct bitmap_usage): Use this new function.
25395 * ggc-common.c (struct ggc_usage): Likewise.
25398 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
25400 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
25401 of GCC_INSN_FLAGS_H block.
25403 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
25405 * explow.c (plus_constant): Update check after force_const_mem call
25406 to see if the value returned is not a NULL_RTX.
25408 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
25410 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
25411 remove instumentation thunks calling reachable functions.
25412 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
25413 * lto/lto-partition.c (privatize_symbol_name_1): New.
25414 (privatize_symbol_name): Privatize both decl and orig_decl
25415 names for instrumented functions.
25416 * cgraph.c (cgraph_node::verify_node): Add transparent
25417 alias chain check for instrumented node.
25419 2015-06-03 Marek Polacek <polacek@redhat.com>
25423 * tree.c (attribute_value_equal): Handle attribute format.
25424 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
25426 2015-06-03 Richard Biener <rguenther@suse.de>
25428 PR tree-optimization/63916
25429 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
25430 Forward-propagate non-invariant addresses by splicing their
25431 reference ops if the result isn't going to be used by PRE.
25432 (vn_reference_lookup_3): Remove pointless assert.
25434 2015-06-03 Richard Biener <rguenther@suse.de>
25436 PR tree-optimization/66375
25437 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
25438 add to the evolution before following SSA edges.
25440 2015-06-03 Bin Cheng <bin.cheng@arm.com>
25442 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
25443 (dump_use, dump_cand, find_induction_variables): Pass new argument
25445 (record_use): Preserve the ssa name information in IV.
25447 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
25449 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
25451 (add_mode_tests): Don't add mode tests if the predicate only
25452 accepts scalar constant integers. Otherwise, allow the mode
25453 of "op" to be VOIDmode if the predicate does accept such integers.
25455 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
25458 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
25459 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
25460 (aarch64_secondary_reload): Likewise
25461 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
25463 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
25466 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
25467 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25470 * cprop.c (try_replace_reg): Check cost of constants before propagating.
25472 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25474 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
25475 provide access to the IBM extended double floating point mode if
25476 long double is IEEE 128-bit floating point.
25477 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
25478 point if long double is the IBM extended double type.
25480 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
25481 enable adding IEEE 128-bit floating point support.
25482 (-mfloat128-software): Likewise.
25483 (-mfloat128-sw): Likewise.
25485 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
25486 128-bit floating point types to occupy any register if
25487 -mlong-double-64. Do not allow use of IFmode/KFmode unless
25488 -mfloat128-software is enabled.
25489 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
25491 (rs6000_option_override_internal): Add -mfloat128-* support.
25492 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
25494 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
25495 and float128 type nodes.
25496 (ieee128_float_type_node): Likewise.
25497 (ibm128_float_type_node): Likewise.
25499 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25502 * config/aarch64/geniterators.sh: Rewrite in awk.
25504 2015-06-02 Martin Liska <mliska@suse.cz>
25506 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
25507 values to avoid -Wmaybe-uninitialized errors.
25509 2015-06-02 Richard Biener <rguenther@suse.de>
25512 * dwarf2out.c (lookup_context_die): New function.
25513 (resolve_addr): Avoid forcing a full DIE for the
25514 target of a DW_TAG_GNU_call_site during late compilation.
25515 Instead create a stub DIE without a type if we have a
25516 context DIE present.
25518 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
25520 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
25522 2015-06-02 Bin Cheng <bin.cheng@arm.com>
25524 PR tree-optimization/48052
25525 * cfgloop.h (struct control_iv): New.
25526 (struct loop): New field control_ivs.
25527 * tree-ssa-loop-niter.c : Include "stor-layout.h".
25528 (number_of_iterations_lt): Set no_overflow information.
25529 (number_of_iterations_exit): Init control iv in niter struct.
25530 (record_control_iv): New.
25531 (estimate_numbers_of_iterations_loop): Call record_control_iv.
25532 (loop_exits_before_overflow): New. Interface factored out of
25533 scev_probably_wraps_p.
25534 (scev_probably_wraps_p): Factor loop niter related code into
25535 loop_exits_before_overflow.
25536 (free_numbers_of_iterations_estimates_loop): Free control ivs.
25537 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
25539 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
25541 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
25542 the target doesn't belong to the current function.
25544 2015-06-02 Marek Polacek <polacek@redhat.com>
25546 PR middle-end/66345
25547 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
25548 get_maxval_strlen does not produce an INTEGER_CST.
25550 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
25552 * config/arc/constraints.md: Use lower-case names in match_code.
25553 * config/mmix/constraints.md: Likewise.
25555 2015-06-02 Richard Biener <rguenther@suse.de>
25557 PR tree-optimization/65961
25558 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
25559 check and clarify dump message.
25560 (vect_build_slp_tree): If all children are built up from scalars
25561 build up the parent from scalars instead.
25562 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
25564 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
25567 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
25568 instead of print ... .
25570 2015-06-02 Alan Modra <amodra@gmail.com>
25572 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
25575 2015-06-02 Bin Cheng <bin.cheng@arm.com>
25577 PR tree-optimization/52563
25578 PR tree-optimization/62173
25579 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
25580 (alloc_iv, set_iv): New parameter.
25581 (determine_biv_step): Delete.
25582 (find_bivs): Inline original determine_biv_step. Pass new
25583 argument to set_iv.
25584 (idx_find_step): Use no_overflow information for conversion.
25585 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
25586 resolve_mixers handle folded_casts.
25587 (instantiate_scev_name): Change bool parameter to bool pointer.
25588 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
25589 (instantiate_array_ref, instantiate_scev_not): Ditto.
25590 (instantiate_scev_3, instantiate_scev_2): Ditto.
25591 (instantiate_scev_1, instantiate_scev_r): Ditto.
25592 (instantiate_scev_convert, ): Change parameter. Pass argument
25593 to chrec_convert_aggressive.
25594 (instantiate_scev): Change argument.
25595 (resolve_mixers): New parameter and set it.
25596 (scev_const_prop): New argument.
25597 * tree-scalar-evolution.h (resolve_mixers): New parameter.
25598 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
25600 (chrec_convert): New parameter. Move definition below.
25601 (chrec_convert_aggressive): New parameter and set it. Call
25602 convert_affine_scev.
25603 * tree-chrec.h (chrec_convert): New parameter.
25604 (chrec_convert_aggressive): Ditto.
25606 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
25608 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
25609 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
25610 the LHS of a no-return call if its type has variable size.
25611 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
25612 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
25614 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
25616 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
25617 * config.in: Regenerate.
25619 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
25621 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
25622 consecutive accesses within outer-loop with force_vectorize
25623 for references with zero step in inner-loop.
25625 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
25627 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
25628 rather than from gcc/build directory.
25630 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
25633 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
25634 for __sync memory models, emit initial loads and final barriers as
25637 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
25640 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
25641 (aarch64_split_atomic_op): Check for __sync memory models, emit
25642 appropriate initial loads and final barriers.
25644 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
25646 * Makefile.in: Fix gcov dependencies that should
25647 not point to a build folder.
25649 2015-06-01 Richard Biener <rguenther@suse.de>
25652 2015-05-29 Richard Biener <rguenther@suse.de>
25654 PR tree-optimization/66314
25655 * tree-ssa-threadupdate.c (create_block_for_threading): Add
25656 parameter that says which loop the new block belongs to.
25657 (ssa_create_duplicates): Blocks duplicated for the threaded
25658 path belong to the loop of the thread destination.
25660 2015-06-01 Martin Liska <mliska@suse.cz>
25662 * sched-deps.c: Include pool-alloc.h before
25663 cselib.h header file is included.
25665 2015-06-01 Richard Biener <rguenther@suse.de>
25667 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
25670 2015-06-01 Martin Liska <mliska@suse.cz>
25672 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
25673 a function local variable.
25675 2015-06-01 Martin Liska <mliska@suse.cz>
25677 * alloc-pool.c (create_alloc_pool): Remove.
25678 (empty_alloc_pool): Likewise.
25679 (free_alloc_pool): Likewise.
25680 (free_alloc_pool_if_empty): Likewise.
25681 (pool_alloc): Likewise.
25682 (pool_free): Likewise.
25683 * alloc-pool.h: Remove old declarations.
25685 2015-06-01 Martin Liska <mliska@suse.cz>
25687 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
25688 (ira_create_object): Likewise.
25689 (ira_create_allocno): Likewise.
25690 (ira_create_live_range): Likewise.
25691 (copy_live_range): Likewise.
25692 (ira_finish_live_range): Likewise.
25693 (ira_free_allocno_costs): Likewise.
25694 (finish_allocno): Likewise.
25695 (finish_allocnos): Likewise.
25696 (initiate_prefs): Likewise.
25697 (ira_create_pref): Likewise.
25698 (finish_pref): Likewise.
25699 (finish_prefs): Likewise.
25700 (initiate_copies): Likewise.
25701 (ira_create_copy): Likewise.
25702 (finish_copy): Likewise.
25703 (finish_copies): Likewise.
25704 (finish_prefs): Likewise.
25706 2015-06-01 Martin Liska <mliska@suse.cz>
25708 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
25709 (allocate_and_init_ipcp_value): Likewise.
25710 (ipcp_lattice::add_value): Likewise.
25711 (merge_agg_lats_step): Likewise.
25712 (ipcp_driver): Likewise.
25713 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
25714 (ipa_free_all_structures_after_iinln): Likewise.
25715 * ipa-prop.h: Likewise.
25717 2015-06-01 Martin Liska <mliska@suse.cz>
25719 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
25721 (set_hint_predicate): Likewise.
25722 (inline_summary_alloc): Likewise.
25723 (reset_inline_edge_summary): Likewise.
25724 (reset_inline_summary): Likewise.
25725 (set_cond_stmt_execution_predicate): Likewise.
25726 (set_switch_stmt_execution_predicate): Likewise.
25727 (compute_bb_predicates): Likewise.
25728 (estimate_function_body_sizes): Likewise.
25729 (inline_free_summary): Likewise.
25731 2015-06-01 Martin Liska <mliska@suse.cz>
25733 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
25734 (ipa_edge_duplication_hook): Likewise.
25735 (ipa_free_all_structures_after_ipa_cp): Likewise.
25736 (ipa_free_all_structures_after_iinln): Likewise.
25738 2015-06-01 Martin Liska <mliska@suse.cz>
25740 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
25741 (ipa_profile_generate_summary): Likewise.
25742 (ipa_profile_read_summary): Likewise.
25743 (ipa_profile): Likewise.
25745 2015-06-01 Martin Liska <mliska@suse.cz>
25747 * tree-ssa-structalias.c (new_var_info): Use new type-based
25749 (new_constraint): Likewise.
25750 (init_alias_vars): Likewise.
25751 (delete_points_to_sets): Likewise.
25753 2015-06-01 Martin Liska <mliska@suse.cz>
25755 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
25756 (free_strinfo): Likewise.
25757 (pass_strlen::execute): Likewise.
25759 2015-06-01 Martin Liska <mliska@suse.cz>
25761 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
25763 (vn_reference_insert_pieces): Likewise.
25764 (vn_phi_insert): Likewise.
25765 (visit_reference_op_call): Likewise.
25766 (copy_phi): Likewise.
25767 (copy_reference): Likewise.
25768 (process_scc): Likewise.
25769 (allocate_vn_table): Likewise.
25770 (free_vn_table): Likewise.
25772 2015-06-01 Martin Liska <mliska@suse.cz>
25774 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
25776 (add_repeat_to_ops_vec): Likewise.
25777 (get_ops): Likewise.
25778 (maybe_optimize_range_tests): Likewise.
25779 (init_reassoc): Likewise.
25780 (fini_reassoc): Likewise.
25782 2015-06-01 Martin Liska <mliska@suse.cz>
25784 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
25786 (bitmap_set_new): Likewise.
25787 (get_or_alloc_expr_for_constant): Likewise.
25788 (get_or_alloc_expr_for): Likewise.
25789 (phi_translate_1): Likewise.
25790 (compute_avail): Likewise.
25791 (init_pre): Likewise.
25792 (fini_pre): Likewise.
25794 2015-06-01 Martin Liska <mliska@suse.cz>
25796 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
25797 (delete_dep_node): Likewise.
25798 (create_deps_list): Likewise.
25799 (free_deps_list): Likewise.
25800 (sched_deps_init): Likewise.
25801 (sched_deps_finish): Likewise.
25803 2015-06-01 Martin Liska <mliska@suse.cz>
25805 * regcprop.c (free_debug_insn_changes): Use new type-based
25807 (replace_oldest_value_reg): Likewise.
25808 (pass_cprop_hardreg::execute): Likewise.
25810 2015-06-01 Martin Liska <mliska@suse.cz>
25812 * ira-build.c (initiate_cost_vectors): Use new type-based
25814 (ira_allocate_cost_vector): Likewise.
25815 (ira_free_cost_vector): Likewise.
25816 (finish_cost_vectors): Likewise.
25818 2015-06-01 Martin Liska <mliska@suse.cz>
25820 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
25822 (free_sched_pools): Likewise.
25823 * sel-sched-ir.h (_list_alloc): Likewise.
25824 (_list_remove): Likewise.
25826 2015-06-01 Martin Liska <mliska@suse.cz>
25828 * stmt.c (add_case_node): Use new type-based pool allocator.
25829 (expand_case): Likewise.
25830 (expand_sjlj_dispatch_table): Likewise.
25832 2015-06-01 Martin Liska <mliska@suse.cz>
25834 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
25835 (free_bb): Likewise.
25836 (pass_cse_reciprocals::execute): Likewise.
25838 2015-06-01 Martin Liska <mliska@suse.cz>
25840 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
25841 (sra_deinitialize) Likewise.
25842 (create_access_1) Likewise.
25843 (build_accesses_from_assign) Likewise.
25844 (create_artificial_child_access) Likewise.
25846 2015-06-01 Martin Liska <mliska@suse.cz>
25848 * dse.c (get_group_info):Use new type-based pool allocator.
25849 (dse_step0) Likewise.
25850 (free_store_info) Likewise.
25851 (delete_dead_store_insn) Likewise.
25852 (free_read_records) Likewise.
25853 (record_store) Likewise.
25854 (replace_read) Likewise.
25855 (check_mem_read_rtx) Likewise.
25856 (scan_insn) Likewise.
25857 (dse_step1) Likewise.
25858 (dse_step7) Likewise.
25860 2015-06-01 Martin Liska <mliska@suse.cz>
25862 * df-scan.c (struct df_scan_problem_data):Use new type-based
25864 (df_scan_free_internal) Likewise.
25865 (df_scan_alloc) Likewise.
25866 (df_grow_reg_info) Likewise.
25867 (df_free_ref) Likewise.
25868 (df_insn_create_insn_record) Likewise.
25869 (df_mw_hardreg_chain_delete) Likewise.
25870 (df_insn_info_delete) Likewise.
25871 (df_free_collection_rec) Likewise.
25872 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
25873 (df_sort_and_compress_mws) Likewise.
25874 (df_ref_create_structure) Likewise.
25875 (df_ref_record) Likewise.
25877 2015-06-01 Martin Liska <mliska@suse.cz>
25879 * df-problems.c (df_chain_create):Use new type-based pool allocator.
25880 (df_chain_unlink_1) Likewise.
25881 (df_chain_unlink) Likewise.
25882 (df_chain_remove_problem) Likewise.
25883 (df_chain_alloc) Likewise.
25884 (df_chain_free) Likewise.
25885 * df.h (struct dataflow) Likewise.
25887 2015-06-01 Martin Liska <mliska@suse.cz>
25889 * cselib.c (new_elt_list):Use new type-based pool allocator.
25890 (new_elt_loc_list) Likewise.
25891 (unchain_one_elt_list) Likewise.
25892 (unchain_one_elt_loc_list) Likewise.
25893 (unchain_one_value) Likewise.
25894 (new_cselib_val) Likewise.
25895 (cselib_init) Likewise.
25896 (cselib_finish) Likewise.
25898 2015-06-01 Martin Liska <mliska@suse.cz>
25900 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
25901 (sh_reorg) Likewise.
25903 2015-06-01 Martin Liska <mliska@suse.cz>
25905 * cfg.c (initialize_original_copy_tables):Use new type-based
25907 (free_original_copy_tables) Likewise.
25908 (copy_original_table_clear) Likewise.
25909 (copy_original_table_set) Likewise.
25911 2015-06-01 Martin Liska <mliska@suse.cz>
25913 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
25915 (asan_mem_ref_new) Likewise.
25916 (free_mem_ref_resources) Likewise.
25918 2015-06-01 Martin Liska <mliska@suse.cz>
25920 * var-tracking.c (variable_htab_free):Use new type-based
25922 (attrs_list_clear) Likewise.
25923 (attrs_list_insert) Likewise.
25924 (attrs_list_copy) Likewise.
25925 (shared_hash_unshare) Likewise.
25926 (shared_hash_destroy) Likewise.
25927 (unshare_variable) Likewise.
25928 (var_reg_delete_and_set) Likewise.
25929 (var_reg_delete) Likewise.
25930 (var_regno_delete) Likewise.
25931 (drop_overlapping_mem_locs) Likewise.
25932 (variable_union) Likewise.
25933 (insert_into_intersection) Likewise.
25934 (canonicalize_values_star) Likewise.
25935 (variable_merge_over_cur) Likewise.
25936 (dataflow_set_merge) Likewise.
25937 (remove_duplicate_values) Likewise.
25938 (variable_post_merge_new_vals) Likewise.
25939 (dataflow_set_preserve_mem_locs) Likewise.
25940 (dataflow_set_remove_mem_locs) Likewise.
25941 (variable_from_dropped) Likewise.
25942 (variable_was_changed) Likewise.
25943 (set_slot_part) Likewise.
25944 (clobber_slot_part) Likewise.
25945 (delete_slot_part) Likewise.
25946 (loc_exp_insert_dep) Likewise.
25947 (notify_dependents_of_changed_value) Likewise.
25948 (emit_notes_for_differences_1) Likewise.
25949 (vt_emit_notes) Likewise.
25950 (vt_initialize) Likewise.
25951 (vt_finalize) Likewise.
25953 2015-06-01 Martin Liska <mliska@suse.cz>
25955 * ira-color.c (init_update_cost_records):Use new type-based
25957 (get_update_cost_record) Likewise.
25958 (free_update_cost_record_list) Likewise.
25959 (finish_update_cost_records) Likewise.
25960 (initiate_cost_update) Likewise.
25962 2015-06-01 Martin Liska <mliska@suse.cz>
25964 * lra.c (init_insn_regs): Use new type-based pool allocator.
25965 (new_insn_reg) Likewise.
25966 (free_insn_reg) Likewise.
25967 (free_insn_regs) Likewise.
25968 (finish_insn_regs) Likewise.
25969 (init_insn_recog_data) Likewise.
25970 (init_reg_info) Likewise.
25971 (finish_reg_info) Likewise.
25972 (lra_free_copies) Likewise.
25973 (lra_create_copy) Likewise.
25974 (invalidate_insn_data_regno_info) Likewise.
25976 2015-06-01 Martin Liska <mliska@suse.cz>
25978 * lra-lives.c (free_live_range): Use new type-based pool allocator.
25979 (free_live_range_list) Likewise.
25980 (create_live_range) Likewise.
25981 (copy_live_range) Likewise.
25982 (lra_merge_live_ranges) Likewise.
25983 (remove_some_program_points_and_update_live_ranges) Likewise.
25984 (lra_live_ranges_init) Likewise.
25985 (lra_live_ranges_finish) Likewise.
25987 2015-06-01 Martin Liska <mliska@suse.cz>
25989 * et-forest.c (et_new_occ): Use new type-based pool allocator.
25990 (et_new_tree): Likewise.
25991 (et_free_tree): Likewise.
25992 (et_free_tree_force): Likewise.
25993 (et_free_pools): Likewise.
25994 (et_split): Likewise.
25996 2015-06-01 Martin Liska <mliska@suse.cz>
25998 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
26000 * alloc-pool.h (pool_allocator::pool_allocator): New function.
26001 (pool_allocator::release): Likewise.
26002 (inline pool_allocator::release_if_empty): Likewise.
26003 (inline pool_allocator::~pool_allocator): Likewise.
26004 (pool_allocator::allocate): Likewise.
26005 (pool_allocator::remove): Likewise.
26007 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26009 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
26012 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26014 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
26016 * config/arm/arm.c (arm_print_tune_info): Likewise.
26017 (arm_macro_fusion_p): Likewise.
26018 (arm_macro_fusion_pair_p): Likewise.
26020 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26022 * config/aarch64/aarch64-protos.h (tune_params): Rename
26023 fuseable_ops to fusible_ops.
26024 * config/aarch64/aarch64.c (generic_tunings): Rename
26025 fuseable_ops to fusible_ops.
26026 (cortexa53_tunings): Likewise.
26027 (cortexa57_tunings): Likewise.
26028 (thunderx_tunings): Likewise.
26029 (xgene1_tunings): Likewise.
26030 (aarch64_macro_fusion_p): Likewise.
26031 (aarch64_macro_fusion_pair_p): Likewise.
26033 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
26035 * config/s390/driver-native.c: New file.
26036 * config/s390/x-native: New file.
26037 * config.host: Add new files for s390.
26038 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
26040 * config.gcc: Likewise.
26041 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
26042 * config/s390/s390-opts.h (enum processor_type): Ditto.
26043 * config/s390/s390.c (s390_option_override): Catch unhandled
26046 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
26049 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
26050 redirection for instrumented calls.
26051 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
26052 (append_compiler_options): Append -fcheck-pointer-bounds.
26053 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
26054 (chkp_redirect_edge): New.
26055 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
26056 (chkp_redirect_edge): New.
26058 2015-06-01 Richard Biener <rguenther@suse.de>
26060 PR tree-optimization/66280
26061 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
26064 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26066 * config/aarch64/aarch64.md
26067 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
26070 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
26072 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
26073 Remove obsolete kludge.
26075 2015-06-01 Richard Biener <rguenther@suse.de>
26077 * tree-ssa-reassoc.c (get_rank): Simplify.
26079 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
26081 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
26082 * configure: Regenerated.
26084 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
26086 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
26087 issue (add space between string literal and macro).
26088 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
26090 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
26092 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
26093 implict or explicit -fPIE or -fpie.
26095 2015-05-30 Mike Frysinger <vapier@gentoo.org>
26097 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
26099 2015-05-28 DJ Delorie <dj@redhat.com>
26101 * expmed.c (extract_bit_field_1): Avoid clobbering a
26102 yet-to-be-used base/index register.
26104 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
26106 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
26107 (alias_stats): Add num_universal.
26108 (alias_set_subset_of): Special case pointers; be ready for NULL
26110 (alias_sets_conflict_p): Special case pointers; be ready for NULL
26112 (init_alias_set_entry): Break out from ...
26113 (record_alias_subset): ... here; propagate new fields;
26114 allocate children only when really needed.
26115 (get_alias_set): Do less generous pointer globbing.
26116 (dump_alias_stats_in_alias_c): Update statistics.
26118 2015-05-30 Alan Modra <amodra@gmail.com>
26120 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
26121 correct block for use of r12.
26122 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
26124 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26127 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
26130 2015-05-29 Jakub Jelinek <jakub@redhat.com>
26132 PR tree-optimization/66142
26133 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
26134 virtual phis that feed themselves.
26136 2015-05-29 Richard Biener <rguenther@suse.de>
26138 PR tree-optimization/66314
26139 * tree-ssa-threadupdate.c (create_block_for_threading): Add
26140 parameter that says which loop the new block belongs to.
26141 (ssa_create_duplicates): Blocks duplicated for the threaded
26142 path belong to the loop of the thread destination.
26144 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26146 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
26147 to cleanup-saved-temps.
26148 * doc/sourcebuild.texi (Clean up generated test files): Expand
26150 (dg-keep-saved-temps): Document new proc.
26151 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
26152 cleanup-saved-temps): Remove.
26154 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
26156 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
26157 gcc_AC_CHECK_DECLS.
26158 * configure: Regenerate.
26160 2015-05-28 Mike Frysinger <vapier@gentoo.org>
26162 * config/nios2/linux.h (CPP_SPEC): Define.
26164 2015-05-28 Mike Frysinger <vapier@gentoo.org>
26166 * config/microblaze/linux.h (CPP_SPEC): Define.
26168 2015-05-28 Mike Frysinger <vapier@gentoo.org>
26170 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
26171 -pthread is specified.
26173 2015-05-28 Richard Biener <rguenther@suse.de>
26175 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
26176 (vect_fixup_scalar_cycles_with_patterns): Likewise.
26177 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
26178 after pattern recog.
26179 (vect_create_epilog_for_reduction): Properly handle reductions
26181 (vectorizable_reduction): Likewise.
26182 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
26184 (vect_get_constant_vectors): Create the correct number of
26185 initial values for reductions.
26186 (vect_schedule_slp_instance): Handle reduction chains that are
26187 type changing properly.
26188 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
26190 2015-05-28 Richard Biener <rguenther@suse.de>
26192 PR tree-optimization/66142
26193 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
26194 values better in memcpy destination handling. Handle non-aliasing
26197 2015-05-28 Lawrence Velázquez <vq@larryv.me>
26200 * config/darwin-c.c (version_components): New global enum.
26201 (parse_version, version_as_legacy_macro)
26202 (version_as_modern_macro, macosx_version_as_macro): New functions.
26203 (version_as_macro): Remove.
26204 (darwin_cpp_builtins): Use new function.
26206 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
26208 * builtins.c (expand_builtin_acc_on_device): Mark parameters
26209 with ATTRIBUTE_UNUSED.
26211 2015-05-28 Julian Brown <julian@codesourcery.com>
26215 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
26216 sequence for !ACCEL_COMPILER.
26218 2015-05-28 Nick Clifton <nickc@redhat.com>
26220 * config/rx/rx.c (push_regs): New function. Extracts code from...
26221 (rx_expand_prologue): ... here. Use push_regs to push even small
26222 spans of registers.
26223 (pop_regs): New function.
26224 (rx_expand_epilogue): Use pop_regs to pop even small spans of
26227 2015-05-28 Richard Biener <rguenther@suse.de>
26229 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
26231 (SLP_INSTANCE_BODY_COST_VEC): Remove.
26232 (vect_update_slp_costs_according_to_vf): Likewise.
26233 (vect_slp_analyze_operations): Update prototype.
26234 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
26235 vect_update_slp_costs_according_to_vf, adjust.
26236 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
26237 (vect_analyze_slp_cost_1): Likewise.
26238 (vect_analyze_slp_cost): Likewise. Properly deal with
26239 widening reduction ops. Commit body costs.
26240 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
26241 cost for loops from here.
26242 (vect_slp_analyze_operations): But do it from here when
26243 the vectorization factor is known and stmts are analyzed.
26244 (vect_bb_vectorization_profitable_p): Simplify.
26245 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
26246 (vect_update_slp_costs_according_to_vf): Remove.
26248 2015-05-27 Magnus Granberg <zorry@gentoo.org>
26249 H.J. Lu <hongjiu.lu@intel.com>
26251 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
26252 (BUILD_CFLAGS): Likewise.
26253 (BUILD_CXXFLAGS): Likewise.
26254 (LINKER): Add @NO_PIE_FLAG@.
26255 (BUILD_LDFLAGS): Likewise.
26256 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
26257 --enable-default-pie.
26258 * common.opt (fPIE): Initialize to -1.
26260 (no-pie): New option.
26261 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
26262 * configure.ac: Add --enable-default-pie.
26263 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
26264 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
26265 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
26266 * gcc.c (NO_PIE_SPEC): New.
26267 (PIE_SPEC): Likewise.
26268 (NO_FPIE1_SPEC): Likewise.
26269 (FPIE1_SPEC): Likewise.
26270 (NO_FPIE2_SPEC): Likewise.
26271 (FPIE2_SPEC): Likewise.
26272 (NO_FPIE2_SPEC): Likewise.
26273 (FPIE_SPEC): Likewise.
26274 (NO_FPIE_SPEC): Likewise.
26275 (NO_FPIC1_SPEC): Likewise.
26276 (FPIC1_SPEC): Likewise.
26277 (NO_FPIC2_SPEC): Likewise.
26278 (FPIC2_SPEC): Likewise.
26279 (NO_FPIC2_SPEC): Likewise.
26280 (FPIC_SPEC): Likewise.
26281 (NO_FPIC_SPEC): Likewise.
26282 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
26283 (FPIE1_OR_FPIC1_SPEC): Likewise.
26284 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
26285 (FPIE2_OR_FPIC2_SPEC): Likewise.
26286 (NO_FPIE_AND_FPIC_SPEC): Likewise.
26287 (FPIE_OR_FPIC_SPEC): Likewise.
26288 (LD_PIE_SPEC): Likewise.
26289 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
26290 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
26291 * config/darwin.h (PIE_SPEC): Renamed to ...
26292 (DARWIN_PIE_SPEC): This.
26293 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
26294 * config/darwin9.h (PIE_SPEC): Renamed to ...
26295 (DARWIN_PIE_SPEC): This.
26296 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
26297 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
26298 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
26299 FPIE2_OR_FPIC2_SPEC.
26300 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
26301 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
26302 * config/sol2.h (ASM_PIC_SPEC): Likewise.
26303 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26304 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26305 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26306 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
26307 * config/m32r/m32r.h (ASM_SPEC): Likewise.
26308 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
26309 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
26310 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
26311 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
26312 * config/sparc/linux.h (ASM_SPEC): Likewise.
26313 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26314 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
26315 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
26316 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26317 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
26318 * config/sparc/sparc.h (ASM_SPEC): Likewise.
26319 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
26320 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
26321 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
26322 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
26323 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
26324 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
26325 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
26326 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
26327 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
26328 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
26329 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
26330 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
26331 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26332 * config/vax/linux.h (ASM_SPEC): Likewise.
26333 * doc/install.texi: Document --enable-default-pie.
26334 * doc/invoke.texi: Document -no-pie.
26335 * config.in: Regenerated.
26336 * configure: Likewise.
26338 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
26340 PR rtl-optimization/66168
26341 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
26342 can_move_invariant_reg.
26344 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
26347 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
26348 REG_EQUAL note when doing insert.
26350 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
26351 instead of "%d" for 'o' operand.
26353 2015-05-27 Nathan Sidwell <nathan@acm.org>
26356 * tree.c (build_pointer_type_for_mode): Canonical type does not
26357 inherit can_alias_all.
26358 (build_reference_type_for_mode): Likewise.
26360 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
26362 * expr.h (array_at_struct_end_p): Move to...
26363 (array_ref_element_size): Likewise.
26364 (component_ref_field_offset): Likewise.
26365 * tree.h (array_ref_element_size): ...here.
26366 (array_at_struct_end_p): Likewise.
26367 (component_ref_field_offset): Likewise.
26368 * expr.c (array_ref_element_size): Move to...
26369 (array_ref_low_bound): Likewise.
26370 (array_at_struct_end_p): Likewise.
26371 (array_ref_up_bound): Likewise.
26372 (component_ref_field_offset): Likewise.
26373 * tree.c (array_ref_element_size): ...here.
26374 (array_ref_low_bound): Likewise.
26375 (array_ref_up_bound): Likewise.
26376 (array_at_struct_end_p): Likewise.
26377 (component_ref_field_offset): Likewise.
26379 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
26380 Szabolcs Nagy <szabolcs.nagy@arm.com>
26382 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
26384 2015-05-27 Jason Merrill <jason@redhat.com>
26387 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
26388 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
26389 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
26391 2015-05-22 Aditya Kumar <hiraditya@msn.com>
26393 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
26396 * statistics.c (statistics_fini_pass): Print pass name.
26398 2015-05-27 Richard Biener <rguenther@suse.de>
26400 PR tree-optimization/66272
26402 2014-08-15 Richard Biener <rguenther@suse.de>
26404 PR tree-optimization/62031
26405 * tree-data-ref.c (dr_analyze_indices): Do not set
26406 DR_UNCONSTRAINED_BASE.
26407 (dr_may_alias_p): All indirect accesses have to go the
26408 formerly DR_UNCONSTRAINED_BASE path.
26409 * tree-data-ref.h (struct indices): Remove
26410 unconstrained_base member.
26411 (DR_UNCONSTRAINED_BASE): Remove.
26413 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
26415 * dwarf2out.c: Remove block_map.
26416 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
26417 (gen_lexical_block_die): Same.
26418 (dwarf2out_function_decl): Remove block_map use.
26419 (dwarf2out_c_finalize): Same.
26420 * tree-core.h (struct tree_block): Add die field.
26421 * tree.h (BLOCK_DIE): New.
26423 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26426 * expr.c (memory_load_overlap): New function.
26427 (emit_push_insn): When pushing partial args to the stack would
26428 clobber the register part load the overlapping part into a pseudo
26429 and put it into the hard reg after pushing. Change return type
26430 to bool. Add bool argument.
26431 * expr.h (emit_push_insn): Change return type to bool.
26433 * calls.c (expand_call): Cancel sibcall optimization when encountering
26434 partial argument on targets with ARGS_GROW_DOWNWARD and
26435 !STACK_GROWS_DOWNWARD.
26436 (emit_library_call_value_1): Update callsite of emit_push_insn.
26437 (store_one_arg): Likewise.
26439 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
26441 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
26443 2015-05-27 Martin Liska <mliska@suse.cz>
26445 * Makefile.in: Add additional dependencies related to memory report
26447 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
26448 * bitmap.c (struct bitmap_descriptor_d): Remove.
26449 (struct loc): Likewise.
26450 (struct bitmap_desc_hasher): Likewise.
26451 (bitmap_desc_hasher::hash): Likewise.
26452 (bitmap_desc_hasher::equal): Likewise.
26453 (get_bitmap_descriptor): Likewise.
26454 (bitmap_register): User new memory descriptor API.
26455 (register_overhead): Likewise.
26456 (bitmap_find_bit): Register nsearches and search_iter statistics.
26457 (struct bitmap_output_info): Remove.
26458 (print_statistics): Likewise.
26459 (dump_bitmap_statistics): Use new memory descriptor.
26460 * bitmap.h (struct bitmap_usage): New class.
26461 * genmatch.c: Extend header file inclusion.
26462 * genpreds.c: Likewise.
26463 * ggc-common.c (struct ggc_usage): New class.
26464 (struct ggc_loc_desc_hasher): Remove.
26465 (ggc_loc_desc_hasher::hash): Likewise.
26466 (ggc_loc_desc_hasher::equal): Likewise.
26467 (struct ggc_ptr_hash_entry): Likewise.
26468 (struct ptr_hash_hasher): Likewise.
26469 (ptr_hash_hasher::hash): Likewise.
26470 (ptr_hash_hasher::equal): Likewise.
26471 (make_loc_descriptor): Likewise.
26472 (ggc_prune_ptr): Likewise.
26473 (dump_ggc_loc_statistics): Use new memory descriptor.
26474 (ggc_record_overhead): Likewise.
26475 (ggc_free_overhead): Likewise.
26476 (final_cmp_statistic): Remove.
26477 (cmp_statistic): Likewise.
26478 (ggc_add_statistics): Liekwise.
26479 (ggc_prune_overhead_list): Likewise.
26480 * hash-map-traits.h: New file.
26481 * hash-map.h (struct default_hashmap_traits): Move the traits to a
26482 separate header file.
26483 * hash-set.h: Pass memory statistics info to ctor.
26484 * hash-table.c (void dump_hash_table_loc_statistics): New function.
26485 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
26486 (hash_table::~hash_table): Register memory release operation.
26487 (hash_table::alloc_entries): Handle memory allocation operation.
26488 (hash_table::expand): Likewise.
26489 * inchash.c (iterative_hash_hashval_t): Move implementation to header
26491 (iterative_hash_host_wide_int): Likewise.
26492 * inchash.h (class hash): Likewise.
26493 * mem-stats-traits.h: New file.
26494 * mem-stats.h: New file.
26495 (mem_location): Add new class.
26496 (mem_usage): Likewise.
26497 (mem_alloc_description): Likewise.
26498 * sese.c: Add new header file inclusision.
26499 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
26501 * tree-sra.c: Add new header file inclusision.
26502 * vec.c (struct vec_descriptor): Remove.
26503 (hash_descriptor): Likewise.
26504 (struct vec_usage): Likewise.
26505 (struct ptr_hash_entry): Likewise.
26506 (hash_ptr): Likewise.
26507 (eq_ptr): Likewise.
26508 (vec_prefix::register_overhead): Use new memory descriptor API.
26509 (vec_prefix::release_overhead): Likewise.
26510 (add_statistics): Remove.
26511 (dump_vec_loc_statistics): Use new memory descriptor API.
26512 * vec.h (struct vec_prefix): Likewise.
26513 (va_heap::reserve): Likewise.
26514 (va_heap::release): Likewise.
26515 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
26517 2015-05-27 Richard Biener <rguenther@suse.de>
26519 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
26520 earlier and remove ??? comment.
26521 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
26522 and got called from loop analysis bail out. Always pass the SLP
26523 node to the vectorizable_* functions.
26524 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
26525 the premature SLP check here.
26526 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
26527 detected SLP stmts.
26528 (vect_detect_hybrid_slp_1): Likewise.
26530 2015-05-26 Jeff Law <law@redhat.com>
26532 * combine.c (find_split_point): Verify that the shift count is a
26533 constant when choosing (plus (ashift ...)) as a split point.
26535 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
26536 No functional changes.
26538 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
26540 * ipa-polymorphic-call.c
26541 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
26542 case when call target is already known.
26544 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
26547 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
26548 take into account the case that operands[1] and operands[2]
26549 are the same register.
26551 2015-05-26 Michael Matz <matz@suse.de>
26553 PR middle-end/66251
26555 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
26557 (vect_create_vectorized_demotion_stmts): Always set
26558 STMT_VINFO_VEC_STMT, also with SLP.
26559 (vectorizable_store): Handle strided group stores.
26561 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26564 * config/aarch64/aarch64.md
26565 (*adds_shift_imm_<mode>): New pattern.
26566 (*subs_shift_imm_<mode>): Likewise.
26567 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
26568 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
26569 (*add_uxt<mode>_shift2): Likewise.
26570 (*add_uxtsi_shift2_uxtw): Likewise.
26571 (*sub_uxt<mode>_shift2): Likewise.
26572 (*sub_uxtsi_shift2_uxtw): Likewise.
26574 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
26576 * config/rs6000/constraints.md (Y, U): Use match_test.
26578 2015-05-26 Christian Bruel <christian.bruel@st.com>
26581 * config/arm/arm.c (arm_option_check_internal)
26582 (arm_option_params_internal): Check opts->target_flags to set macros.
26583 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
26584 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
26585 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
26586 (builtin_define): Replaced with def_or_undef_macro.
26587 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
26588 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
26589 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
26590 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
26591 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
26592 (TARGET_ARM_FEATURE_LDREX_P)
26593 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
26594 * config/arm/arm-c.c (def_or_undef_macro): New function.
26595 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
26597 2015-05-26 Christian Bruel <christian.bruel@st.com>
26599 * c-common.h (builtin_define_with_int_value)
26600 (builtin_define_type_sizeof): Declare.
26601 * c-cppbuiltin.c (builtin_define_with_int_value)
26602 (builtin_define_type_sizeof): Externalize.
26603 (builtin_define_std): Cleanup declaration.
26604 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
26605 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
26606 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
26607 (builtin_define, builtin_assert): New macros.
26609 2015-05-26 Richard Biener <rguenther@suse.de>
26611 PR tree-optimization/66142
26612 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
26613 MEM_REFs for the same base address.
26615 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26618 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
26620 2015-05-26 Jason Merrill <jason@redhat.com>
26622 * configure.ac: Set CXXFLAGS for ISL test.
26623 * configure: Regenerate.
26625 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
26626 strstr and basename.
26627 * configure: Regenerate.
26629 2015-05-26 Richard Biener <rguenther@suse.de>
26631 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
26632 X % C -> X & (C - 1) for C being a power-of two to ...
26633 * match.pd: ... patterns.
26635 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
26637 * match.pd (swapped_tcc_comparison): New operator list.
26638 (-A CMP -B): New simplification.
26639 * fold-const.c (fold_comparison): Remove corresponding code.
26641 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
26643 * caller-save.c (init_caller_save): Base temporary register numbers
26644 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
26645 * cfgloopanal.c (init_set_costs): Likewise.
26646 * dojump.c (prefer_and_bit_test): Likewise.
26647 * expr.c (init_expr_target): Likewise.
26648 * ira.c (setup_prohibited_mode_move_regs): Likewise.
26649 * lower-subreg.c (init_lower_subreg): Likewise.
26650 * postreload.c (reload_cse_regs_1): Likewise.
26652 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
26654 * gensupport.h (compute_test_codes): Declare.
26655 * gensupport.c (compute_predicate_codes): Rename to...
26656 (compute_test_codes): ...this. Generalize error message.
26657 (process_define_predicate): Update accordingly.
26658 * genpreds.c (compute_maybe_allows): Delete.
26659 (add_constraint): Use compute_test_codes to determine whether
26660 something can accept a SUBREG, REG or MEM.
26662 2015-05-26 Torvald Riegel <triegel@redhat.com>
26664 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
26665 'memory model' to align with C++11; fix description of memory orders;
26668 2015-05-26 Richard Biener <rguenther@suse.de>
26670 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
26671 (vect_analyze_loop_operations): ... here. Remove slp parameter,
26672 detect whether we apply SLP. Remove call to
26673 vect_update_slp_costs_according_to_vf.
26674 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
26675 vect_update_slp_costs_according_to_vf from here. Dispatch
26676 to vect_slp_analyze_operations to analyze SLP stmts.
26677 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
26678 unused bb_vec_info parameter, adjust assert.
26679 (vect_slp_analyze_operations): Pass in the slp instance tree
26680 instead of bb_vec_info.
26681 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
26682 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
26684 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
26686 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
26687 Q_REGS. Expand comment.
26688 (REG_CLASS_NAMES): Ditto.
26689 (REG_CLASS_CONTENTS): Ditto.
26691 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
26694 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
26695 when LEGACY_INT_REGNO_P is processed.
26697 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
26699 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
26701 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26703 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
26704 register if not marked dead/unused, before return.
26706 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
26709 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
26710 is set; check for assembler name at LTO time.
26711 (type_in_anonymous_namespace): Remove hacks, check that all
26712 anonymous types are called "<anon>"
26713 (odr_type_p): Simplify; add check for "<anon>"
26714 (odr_subtypes_equivalent): Add odr_type_p check.
26715 * tree.c (need_assembler_name_p): Even anonymous namespace needs
26718 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
26720 * ipa-utils.h (method_class_type): Remove.
26721 * cgraphunit.c (walk_polymorphic_call_targets): Use
26722 TYPE_METHOD_BASETYPE.
26723 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
26724 on main variants only.
26725 (method_class_type): Remove.
26726 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
26727 (build_type_inheritance_graph): Likewise.
26728 * ipa-icf.c (sem_function::equals_wpa): Likewise.
26729 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
26730 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
26732 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
26734 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
26735 is_typedef_decl, typedef_variant_p): Constify.
26736 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
26737 is_typedef_decl, typedef_variant_p): Constify.
26739 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26741 * defaults.h (gen_tablejump): New function.
26742 (HAVE_tablejump): Add default value.
26744 * stmt.c: Likewise.
26746 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26748 * defaults.h (gen_store_multiple): New function.
26749 (HAVE_store_multiple): Add default value.
26750 * expr.c (move_block_from_reg): Adjust.
26752 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26754 * defaults.h (gen_load_multiple): New function.
26755 (HAVE_load_multiple): Add default value.
26756 * expr.c (move_block_to_reg): Adjust.
26758 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26760 * defaults.h (gen_mem_signal_fence): New function.
26761 (HAVE_mem_signal_fence): Add default value.
26762 * optabs.c: Adjust.
26764 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26766 * defaults.h (gen_memory_barrier): New function.
26767 (HAVE_memory_barrier): Add default value.
26768 * optabs.c: Adjust.
26770 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26772 * defaults.h (gen_mem_thread_fence): New function.
26773 (HAVE_mem_thread_fence): Add default definition.
26774 * optabs.c: Adjust.
26776 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26778 * combine.c (find_split_point): Check the value of HAVE_lo_sum
26779 instead of if it is defined.
26780 (combine_simplify_rtx): Likewise.
26781 * lra-constraints.c (process_address_1): Likewise.
26782 * config/darwin.c: Adjust.
26783 * genconfig.c (main): Always define HAVE_lo_sum.
26785 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26787 * genmatch.c (parser::parse_operation): Reject expanding
26788 operator-list inside 'for'.
26790 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26792 * genmatch.c (parser::parse_for): Reject iterator if used as
26795 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26797 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
26798 after end of id-list.
26800 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
26802 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
26803 we do not try to compute canonical type for type that does not need
26805 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
26807 * tree.h (type_with_alias_set_p): New.
26809 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
26811 * tree.c (gimple_canonical_types_compatible_p): Do not compare
26812 function attributes.
26813 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
26815 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
26817 * Makefile.in (check_gcc_parallelize): Delete.
26818 (lang_checks_parallelized): Update comment.
26820 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
26822 PR rtl-optimization/66237
26823 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
26824 location of an "as_a" cast.
26826 2015-05-22 Jeff Law <law@redhat.com>
26828 * config/pa/pa.md (non-canonical shift-add insns): Remove.
26829 (peepholes with non-canonical RTL sources): Remove.
26830 (peepholes for indexed stores of FP regs in integer modes): Match and
26831 generate canonical RTL.
26833 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
26835 PR tree-optimization/63387
26836 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
26837 ((x ord x) & (y ord y) -> (x ord y),
26838 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
26839 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
26840 vectors like scalars.
26842 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
26844 * convert.c (convert_to_integer, convert_to_vector): Include the
26845 types in the error message.
26847 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
26849 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
26852 2015-05-22 Jeff Law <law@redhat.com>
26854 * config/pa/pa.md (integer_indexed_store splitters): Use
26855 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
26856 insns -- adjusting the constant 2nd operand accordingly.
26858 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
26859 (plus (ashift X log2) Y) if it is a split point.
26861 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
26862 out of hppa_legitimize_address to handle both forms of a multiply
26864 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
26865 Always generate the ASHIFT variant as the result is not directly
26866 used in a MEM. Update comments and refactor slightly to improve
26869 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26872 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
26873 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
26874 (aarch64_composite_type_p): Return false if given type and mode are
26875 for a short vector.
26877 2015-05-22 Richard Biener <rguenther@suse.de>
26879 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
26881 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
26882 patterns when determining whether SLP is pure.
26883 (vect_is_slp_reduction): Remove check for pattern stmts.
26884 (vect_is_simple_reduction_1): Remove dead code.
26885 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
26886 (vect_get_and_check_slp_defs): Pass in the stmt number.
26887 Allow the first def in a reduction to be not a pattern stmt when
26888 the rest of the stmts def are patterns.
26889 (vect_build_slp_tree_1): Allow tcc_expression codes like
26890 SAD_EXPR and DOT_PROD_EXPR.
26891 (vect_build_slp_tree): Adjust.
26892 (vect_analyze_slp): Refactor and move BB vect error message ...
26893 (vect_slp_analyze_bb_1): ... here.
26895 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
26897 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
26898 for CSWTCH temporary.
26900 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26902 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
26903 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
26906 2015-05-22 Richard Biener <rguenther@suse.de>
26908 PR tree-optimization/66251
26909 * tree-vect-stmts.c (vectorizable_conversion): Properly
26910 set STMT_VINFO_VEC_STMT even for the SLP case.
26912 2015-05-22 Marek Polacek <polacek@redhat.com>
26914 * doc/extend.texi: Use @pxref instead of @xref.
26916 2015-05-22 hiraditya <hiraditya@msn.com>
26918 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
26921 2015-05-22 Richard Biener <rguenther@suse.de>
26923 PR tree-optimization/65701
26924 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26925 Move peeling cost models into one place. Peel for alignment
26926 for single loads only if an aligned load is cheaper than
26929 2015-05-22 Marek Polacek <polacek@redhat.com>
26932 * doc/extend.texi (Enumerator Attributes): New section.
26933 Document syntax of enumerator attributes.
26935 2015-05-22 Richard Biener <rguenther@suse.de>
26937 * tree-vect-loop.c (get_reduction_op): New function.
26938 (vect_model_reduction_cost): Use it, add reduc_index parameter.
26939 Make ready for BB reductions.
26940 (vect_create_epilog_for_reduction): Use get_reduction_op.
26941 (vectorizable_reduction): Init reduc_index to a valid value.
26942 Adjust vect_model_reduction_cost call.
26943 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
26944 operand for reduction defaults. Add SAD_EXPR support.
26945 Assert we have a neutral op for SLP reductions.
26946 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
26947 walking pattern stmt ops only recurse to SSA names.
26949 2015-05-22 Richard Biener <rguenther@suse.de>
26951 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
26952 assert with guard, remove check on detected reduction.
26953 (vect_recog_sad_pattern): Likewise.
26954 (vect_recog_widen_sum_pattern): Likewise.
26956 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26958 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
26959 __always_inline__ attribute.
26960 (vaesdq_u8): Likewise.
26961 (vaesmcq_u8): Likewise.
26962 (vaesimcq_u8): Likewise.
26963 (vsha1cq_u32): Likewise.
26964 (vsha1mq_u32): Likewise.
26965 (vsha1pq_u32): Likewise.
26966 (vsha1h_u32): Likewise.
26967 (vsha1su0q_u32): Likewise.
26968 (vsha1su1q_u32): Likewise.
26969 (vsha256hq_u32): Likewise.
26970 (vsha256h2q_u32): Likewise.
26971 (vsha256su0q_u32): Likewise.
26972 (vsha256su1q_u32): Likewise.
26973 (vmull_p64): Likewise.
26974 (vmull_high_p64): Likewise.
26976 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26978 * final.c (final_scan_insn): Don't check HAVE_peephole with the
26980 * output.h: Likewise.
26981 * genconfig.c (main): Alwways define HAVE_peephole.
26982 * genpeep.c: Don't emit checks of HAVE_peephole.
26984 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26986 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
26987 check HAVE_conditional_move with the preprocessor.
26989 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26991 * genconfig.c (main): Always define HAVE_conditional_move.
26992 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
26993 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
26996 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26998 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
26999 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
27000 and FRAME_POINTER_REGNUM with the preprocessor.
27002 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27004 * defaults.h: Add default for STACK_PUSH_CODE.
27005 * expr.c: Don't redefine STACK_PUSH_CODE.
27006 * recog.c: Likewise.
27008 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27010 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
27011 sched-deps.c: Use if instead of preprocessor checks with
27012 STACK_GROWS_DOWNWARD.
27014 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27016 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
27018 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
27019 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
27020 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
27021 * doc/tm.texi: Regenerate.
27023 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
27026 * config/i386/constraints.md (Bg): New constraint for GOT memory
27028 * config/i386/i386.md (*call_got_x32): New pattern.
27029 (*call_value_got_x32): Likewise.
27030 * config/i386/predicates.md (GOT_memory_operand): New predicate.
27032 2015-05-21 Jakub Jelinek <jakub@redhat.com>
27034 PR tree-optimization/66233
27035 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
27038 2015-05-21 Jeff Law <law@redhat.com>
27040 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
27041 than MULT for shadd sequences.
27043 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
27045 * alias.c (alias_stats): New static var.
27046 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
27047 (dump_alias_stats_in_alias_c): New function.
27048 * alias.h (dump_alias_stats_in_alias_c): Declare.
27049 * tree-ssa-alias.c (dump_alias_stats): Call it.
27051 2015-05-08 Michael Matz <matz@suse.de>
27053 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
27055 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
27056 (STMT_VINFO_STRIDED_P): ... this.
27057 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
27058 (vect_verify_datarefs_alignment): Likewise.
27059 (vect_enhance_data_refs_alignment): Likewise.
27060 (vect_analyze_data_ref_access): Likewise.
27061 (vect_analyze_data_refs): Accept strided stores.
27062 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
27063 (vect_model_load_cost): Adjust for macro rename.
27064 (vectorizable_mask_load_store): Likewise.
27065 (vectorizable_load): Likewise.
27066 (vectorizable_store): Open code strided stores.
27068 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27070 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
27071 Document sqrt_insn.
27073 2015-05-21 Richard Biener <rguenther@suse.de>
27076 * match.pd: Guard pattern optimzing (int)(float)int
27077 conversions to apply only on GIMPLE.
27079 2015-05-21 Jeff Law <law@redhat.com>
27081 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
27082 multiply-accumulate/shift-add insn generation.
27084 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
27087 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
27088 operands[1] are the same.
27090 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
27092 PR middle-end/66221
27093 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
27094 build_distinct_type_copy to copy bounds.
27096 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
27098 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
27099 Change to unsigned int.
27101 2015-05-20 Jeff Law <law@redhat.com>
27103 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
27104 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
27105 (pa_shadd_constant_p): Allow constants for shadd insns rather
27106 than valid scaling constants for memory addresses.
27107 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
27108 * config/pa/predicates.md (mem_shadd_operand): New predicate.
27109 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
27110 (shift-add insns using ASHIFT): New patterns.
27112 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
27114 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
27116 (fix_up_fall_thru_edges): Likewise.
27117 (fix_crossing_conditional_branches): Likewise. Promote jump targets
27118 from to rtx_insn to rtx_code_label where feasible.
27119 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
27120 gen_move_insn (returned type changed to rtx_insn).
27121 * builtins.c (expand_errno_check): Fix arguments of
27122 do_compare_rtx_and_jump (now expects rtx_code_label).
27123 (expand_builtin_acc_on_device): Likewise.
27124 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
27125 invert_jump (now exprects rtx_jump_insn).
27126 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
27127 (construct_init_block): Use rtx_code_label.
27128 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
27129 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
27130 calling redirect_jump.
27131 (patch_jump_insn): Likewise.
27132 (redirect_branch_edge): Likewise.
27133 (force_nonfallthru_and_redirect): Likewise.
27134 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
27136 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
27137 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
27138 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
27139 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
27140 to store the value retured by gen_label_rtx.
27141 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
27143 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
27144 (split_branches): Fix calls of redirect_jump.
27145 * dojump.c (jumpifnot): Promote argument type from rtx to
27147 (jumpifnot_1): Likewise.
27148 (jumpif): Likewise.
27149 (jumpif_1): Likewise.
27150 (do_jump_1): Likewise.
27151 (do_jump): Likewise. Use rtx_code_label when feasible.
27152 (do_jump_by_parts_greater_rtx): Likewise.
27153 (do_jump_by_parts_zero_rtx): Likewise.
27154 (do_jump_by_parts_equality_rtx): Likewise.
27155 (do_compare_rtx_and_jump): Likewise.
27156 * dojump.h: Update function prototypes.
27157 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
27159 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
27161 (emit_label_before): Likewise.
27162 (emit_jump_insn_after_noloc): Likewise.
27163 (emit_jump_insn_after_setloc): Likewise.
27164 (emit_jump_insn_after): Likewise
27165 (emit_jump_insn_before_setloc): Likewise.
27166 (emit_jump_insn_before): Likewise.
27167 (emit_label_before): Promote return type to rtx_code_label.
27168 (emit_label): Likewise.
27169 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
27170 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
27172 (emit_stack_restore): Likewise.
27173 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
27174 (do_cmp_and_jump): Likewise.
27175 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
27176 from rtx to rtx_code_label.
27177 (gen_move_insn_uncast): New function.
27178 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
27179 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
27180 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
27181 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
27182 invert_jump_1 and redirect_jump_1.
27183 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
27184 do_compare_rtx_and_jump.
27185 (expand_addsub_overflow): Likewise.
27186 (expand_neg_overflow): Likewise.
27187 (expand_mul_overflow): Likewise.
27188 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
27189 return value of gen_move_insn.
27190 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
27191 * loop-doloop.c (add_test): Use rtx_code_label.
27192 (doloop_modify): Likewise.
27193 (doloop_optimize): Likewise.
27194 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
27195 * lra-constraints.c (emit_spill_move): Remove cast of value returned
27197 (inherit_reload_reg): Add cast when calling dump_insn_slim.
27198 (split_reg): Likewise.
27199 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
27201 * optabs.c (expand_binop_directly): Remove casts of values returned by
27203 (expand_unop_direct): Likewise.
27204 (expand_abs): Likewise.
27205 (maybe_emit_unop_insn): Likewise.
27206 (maybe_gen_insn): Promote return type to rtx_insn.
27207 * optabs.h: Update prototype of maybe_gen_insn.
27208 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
27210 * recog.c (struct peep2_insn_data): Promote type of insn field to
27212 (peep2_reinit_state): Use NULL instead of NULL_RTX.
27213 (peep2_attempt): Remove casts of insn in peep2_insn_data.
27214 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
27215 * recog.h (struct insn_gen_fn): Promote return types of function
27216 pointers and operator ().from rtx to rtx_insn.
27217 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
27218 (fill_eager_delay_slots): Likewise.
27219 (relax_delay_slots): Likewise.
27220 (make_return_insns): Likewise.
27221 (dbr_schedule): Likewise.
27222 (optimize_skips): Likewise.
27223 (reorg_redirect_jump): Likewise.
27224 (fill_slots_from_thread): Likewise.
27225 * reorg.h: Update prototypes.
27226 * resource.c (find_dead_or_set_registers): Use dyn_cast to
27227 rtx_jump_insn instead of check. Use it's jump_target method.
27228 * rtl.h (rtx_jump_insn::jump_label): Define new method.
27229 (rtx_jump_insn::jump_target): Define new method.
27230 (rtx_jump_insn::set_jump_target): Define new method.
27231 * rtlanal.c (tablejump_p): Promote type of one local variable.
27232 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
27233 (sched_analyze_insn): Likewise.
27234 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
27235 (print_insn): Likewise.
27236 * stmt.c (label_rtx): Promote return type to rtx_insn.
27237 (force_label_rtx): Likewise.
27238 (jump_target_rtx): Define new function.
27239 (expand_label): Use it, get rid of one cast.
27240 (expand_naked_return): Promote rtx to rtx_code_label.
27241 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
27242 (expand_case): Use rtx_code_label instread of rtx where feasible.
27243 (expand_sjlj_dispatch_table): Likewise.
27244 (emit_case_nodes): Likewise.
27245 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
27246 * store-motion.c (insert_store): Make use of new return type of
27247 gen_move_insn and remove a cast.
27248 (replace_store_insn): Likewise.
27250 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
27252 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
27253 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
27255 2015-05-20 Jeff Law <law@redhat.com>
27257 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
27258 dispose of the jump thread path when the jump threading
27259 opportunity is cancelled.
27261 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27263 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
27264 when printing the caret character.
27266 2015-05-20 Marek Polacek <polacek@redhat.com>
27268 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
27270 2015-05-20 Marek Polacek <polacek@redhat.com>
27272 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
27273 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
27274 * gimple-fold.c (canonicalize_bool): Likewise.
27275 (same_bool_result_p): Likewise.
27276 * tree-if-conv.c (parse_predicate): Likewise.
27278 2015-05-20 Marek Polacek <polacek@redhat.com>
27280 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
27281 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
27283 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27285 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
27286 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
27289 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
27291 * config/mips/mips.h (micromips_globals): Declare.
27293 2015-05-20 David Malcolm <dmalcolm@redhat.com>
27295 * timevar.def (TV_INITIALIZE_RTL): New.
27296 * toplev.c (initialize_rtl): Use an auto_timevar to account this
27297 function's time to TV_INITIALIZE_RTL.
27299 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
27301 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
27302 gimple_build_nop calls.
27303 (chkp_find_bounds_for_elem): Likewise.
27304 (chkp_get_zero_bounds): Likewise.
27305 (chkp_get_none_bounds): Likewise.
27306 (chkp_get_bounds_by_definition): Likewise.
27307 (chkp_generate_extern_var_bounds): Likewise.
27308 (chkp_get_bounds_for_decl_addr): Likewise.
27309 (chkp_get_bounds_for_string_cst): Likewise.
27311 2015-05-20 Bin Cheng <bin.cheng@arm.com>
27313 PR tree-optimization/65447
27314 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
27315 (dump_use, dump_uses): Support to dump sub use.
27316 (record_use): New parameters to support sub use. Remove call to
27318 (record_sub_use, record_group_use): New functions.
27319 (compute_max_addr_offset, split_all_small_groups): New functions.
27320 (group_address_uses, rewrite_use_address): New functions.
27321 (strip_offset): New declaration.
27322 (find_interesting_uses_address): Call record_group_use.
27323 (add_candidate): New assertion.
27324 (infinite_cost_p): Move definition forward.
27325 (add_costs): Check INFTY cost and return immediately.
27326 (get_computation_cost_at): Clear setup cost and dependent bitmap
27328 (determine_use_iv_cost_address): Compute cost for sub uses.
27329 (rewrite_use_address_1): Rename from old rewrite_use_address.
27330 (free_loop_data): Free sub uses.
27331 (tree_ssa_iv_optimize_loop): Call group_address_uses.
27333 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
27334 Jim Wilson <jim.wilson@linaro.org>
27336 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
27337 new fields loadv and storev.
27338 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
27339 Initialize loadv and storev.
27340 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
27341 (cortexa53_extra_costs): Likewise.
27342 (cortexa57_extra_costs): Likewise.
27343 (xgene1_extra_costs): Likewise.
27344 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
27347 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
27349 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
27351 (cortexa8_extra_costs): Likewise.
27352 (cortexa5_extra_costs): Likewise.
27353 (cortexa7_extra_costs): Likewise.
27354 (cortexa12_extra_costs): Likewise.
27355 (cortexa15_extra_costs): Likewise.
27356 (v7m_extra_costs): Likewise.
27358 2015-05-20 Jeff Law <law@redhat.com>
27360 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
27361 instead of open-coded version. Also delete the jump thread created
27362 within this function.
27364 2015-05-20 Alan Modra <amodra@gmail.com>
27366 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
27367 stack adjusting insn. Formatting.
27368 (rs6000_emit_prologue): Track stack adjusting insn, and use of
27369 r12. If possible, emit first -fsplit-stack arg pointer insn
27370 before stack adjust. Don't use r12 to save cr if split-stack.
27372 2015-05-20 Alan Modra <amodra@gmail.com>
27374 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
27376 (rs6000_supports_split_stack): New function.
27377 * config/rs6000/rs6000.c (machine_function): Add
27378 split_stack_arg_pointer.
27379 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
27380 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
27381 rather than virtual_incoming_args_rtx.
27382 (rs6000_va_start): Likewise.
27383 (split_stack_arg_pointer_used_p): New function.
27384 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
27385 (morestack_ref): New var.
27386 (gen_add3_const, rs6000_expand_split_stack_prologue,
27387 rs6000_internal_arg_pointer, rs6000_live_on_entry,
27388 rs6000_split_stack_space_check): New functions.
27389 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
27390 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
27391 (UNSPECV_SPLIT_STACK_RETURN): Define.
27392 (split_stack_prologue, load_split_stack_limit,
27393 load_split_stack_limit_di, load_split_stack_limit_si,
27394 split_stack_return, split_stack_space_check): New expands and insns.
27395 * config/rs6000/rs6000-protos.h
27396 (rs6000_expand_split_stack_prologue): Declare.
27397 (rs6000_split_stack_space_check): Declare.
27399 2015-05-20 Alan Modra <amodra@gmail.com>
27401 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
27402 (direct_return): Test vrsave_size rather than vrsave_mask.
27403 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
27404 (rs6000_emit_epilogue): Likewise.
27406 2015-05-20 Alan Modra <amodra@gmail.com>
27408 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
27409 when not saving registers.
27410 (debug_stack_info): Adjust to omit printing unused offsets,
27412 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
27415 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27418 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
27419 value_type to const char *.
27421 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
27423 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
27424 to build a biarch toolchain again.
27426 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
27428 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
27429 or implicit declarations.
27430 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
27432 (get_odr_type): Check type has linkage before adding bases.
27433 (register_odr_type): Check that type has linkage before adding it.
27434 (type_known_to_have_no_deriavations_p): Rename to ..
27435 (type_known_to_have_no_derivations_p): This one.
27436 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
27437 (type_known_to_have_no_derivations_p): This one.
27438 * ipa-polymorphic-call.c
27439 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
27442 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
27444 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
27445 (layout_type): Use RECORD_OR_UNION_TYPE_P.
27447 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27449 * config/s390/s390.c (s390_vector_bool_type_p): New function.
27450 (s390_invalid_binary_op): New function.
27451 (TARGET_INVALID_BINARY_OP): Define macro.
27453 2015-05-19 David Sherwood <david.sherwood@arm.com>
27455 * loop-invariant.c (create_new_invariant): Don't calculate address cost
27456 if mode is not a scalar integer.
27457 (get_inv_cost): Increase computational cost for unused invariants.
27459 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27461 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
27462 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
27463 * config/s390/s390-builtin-types.def: New file.
27464 * config/s390/s390-builtins.def: New file.
27465 * config/s390/s390-builtins.h: New file.
27466 * config/s390/s390-c.c: New file.
27467 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
27468 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
27469 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
27470 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
27472 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
27474 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
27475 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
27476 variable definitions.
27477 (s390_const_operand_ok): New function.
27478 (s390_expand_builtin): Rewrite.
27479 (s390_init_builtins): New function.
27480 (s390_handle_vectorbool_attribute): New function.
27481 (s390_attribute_table): Add s390_vector_bool attribute.
27482 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
27483 (s390_branch_condition_mask): Generate masks for new modes.
27484 (s390_expand_vec_compare_cc): New function.
27485 (s390_mangle_type): Add mangling for vector bool types.
27486 (enum s390_builtin): Remove.
27487 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
27489 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
27490 s390_cpu_cpp_builtins.
27491 (REGISTER_TARGET_PRAGMAS): New macro.
27492 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
27493 (insn_cmp mode attribute): Add new CC modes.
27494 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
27495 (lcbb): New pattern definition.
27496 * config/s390/s390intrin.h: Include vecintrin.h.
27497 * config/s390/t-s390: New file.
27498 * config/s390/vecintrin.h: New file.
27499 * config/s390/vector.md: Include vx-builtins.md.
27500 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
27503 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27505 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
27507 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
27508 (s390_select_ccmode): Likewise.
27509 (s390_canonicalize_comparison): Swap operands if necessary.
27510 (s390_expand_vec_compare_scalar): Expand DFmode compare using
27511 single element vector instructions.
27512 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
27513 (s390_branch_condition_mask): Generate CC masks for the new modes.
27514 * config/s390/s390.md (v0, vf, vd): New mode attributes.
27515 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
27516 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
27517 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
27518 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
27519 (*extend<DSF:mode><BFP:mode>2): New insn definition.
27520 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
27521 (extend<DSF:mode><BFP:mode>2): Turn into expander.
27522 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
27523 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
27524 (sqrt<mode>2): Add vector instruction.
27526 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27528 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
27530 * config/s390/predicates.md (const0_operand, constm1_operand)
27531 (constable_operand): Accept vector operands.
27532 * config/s390/s390-modes.def: Add supported vector modes.
27533 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
27534 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
27535 (s390_bytemask_vector_p, s390_expand_vec_strlen)
27536 (s390_expand_vec_compare, s390_expand_vcond)
27537 (s390_expand_vec_init): Add prototypes.
27538 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
27539 (s390_vector_mode_supported_p): New function.
27540 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
27541 (s390_contiguous_bitmask_vector_p): New function.
27542 (s390_bytemask_vector_p): New function.
27543 (s390_split_ok_p): Vector regs don't work either.
27544 (regclass_map): Add VEC_REGS.
27545 (s390_legitimate_constant_p): Handle vector constants.
27546 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
27547 (legitimate_reload_vector_constant_p): New function.
27548 (s390_preferred_reload_class): Handle CONST_VECTOR.
27549 (s390_reload_symref_address): Likewise.
27550 (s390_secondary_reload): Vector memory instructions only support
27551 short displacements. Rename reload*_nonoffmem* to reload*_la*.
27552 (s390_emit_ccraw_jump): New function.
27553 (s390_expand_vec_strlen): New function.
27554 (s390_expand_vec_compare): New function.
27555 (s390_expand_vcond): New function.
27556 (s390_expand_vec_init): New function.
27557 (s390_dwarf_frame_reg_mode): New function.
27558 (print_operand): Handle addresses with 'O' and 'R' constraints.
27559 (NR_C_MODES, constant_modes): Add vector modes.
27560 (s390_output_pool_entry): Handle vector constants.
27561 (s390_hard_regno_mode_ok): Handle vector registers.
27562 (s390_class_max_nregs): Likewise.
27563 (s390_cannot_change_mode_class): New function.
27564 (s390_invalid_arg_for_unprototyped_fn): New function.
27565 (s390_function_arg_vector): New function.
27566 (s390_function_arg_float): Remove size variable.
27567 (s390_pass_by_reference): Handle vector arguments.
27568 (s390_function_arg_advance): Likewise.
27569 (s390_function_arg): Likewise.
27570 (s390_return_in_memory): Vector values are returned in a VR if
27572 (s390_function_and_libcall_value): Handle vector arguments.
27573 (s390_gimplify_va_arg): Likewise.
27574 (s390_call_saved_register_used): Consider the arguments named.
27575 (s390_conditional_register_usage): Disable v16-v31 for non-vec
27577 (s390_preferred_simd_mode): New function.
27578 (s390_support_vector_misalignment): New function.
27579 (s390_vector_alignment): New function.
27580 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
27581 (TARGET_VECTOR_MODE_SUPPORTED_P)
27582 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
27583 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
27584 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
27585 (TARGET_VECTOR_ALIGNMENT): Define target macro.
27586 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
27587 (FIRST_PSEUDO_REGISTER): Increase value.
27588 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
27589 (VECTOR_REG_P): Define macros.
27590 (FIXED_REGISTERS, CALL_USED_REGISTERS)
27591 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
27592 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
27593 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
27594 Add vector registers.
27595 (CANNOT_CHANGE_MODE_CLASS): Call C function.
27596 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
27597 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
27599 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
27600 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
27601 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
27602 (VR*_REGNUM): New constants.
27603 (ALL): New mode iterator.
27604 (INTALL): Remove mode iterator.
27606 (movti): Implement TImode moves for VRs.
27607 Disable TImode splitter for VR targets.
27608 Implement splitting TImode GPR<->VR moves.
27609 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
27610 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
27611 reload<mode>_la_in, reload<mode>_la_out.
27612 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
27613 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
27614 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
27615 (mov<mode> SF SD): Prefer lder, lde for loading.
27616 Add lrl and strl instructions.
27617 Add vector instructions.
27618 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
27619 Call s390_expand_vec_strlen on z13.
27620 (*cc_to_int): Change predicate to nonimmediate_operand.
27621 (addti3): Rename to *addti3. New expander.
27622 (subti3): Rename to *subti3. New expander.
27623 * config/s390/vector.md: New file.
27625 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27627 * common/config/s390/s390-common.c (processor_flags_table): Add
27629 * config.gcc: Add z13.
27630 * config/s390/s390-opts.h (enum processor_type): Add
27631 PROCESSOR_2964_Z13.
27632 * config/s390/s390.c (s390_adjust_priority): Check for
27633 PROCESSOR_2964_Z13.
27634 (s390_reorg): Likewise.
27635 (s390_sched_reorder): Likewise.
27636 (s390_sched_variable_issue): Likewise.
27637 (s390_loop_unroll_adjust): Likewise.
27638 (s390_option_override): Likewise. Default to -mvx when available.
27639 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
27640 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
27641 (TARGET_VX_ABI): Define macros.
27643 (TARGET_DEFAULT): Add MASK_OPT_VX.
27644 * config/s390/s390.md ("cpu" attribute): Add z13.
27645 ("cpu_facility" attribute): Add vec.
27646 * config/s390/s390.opt (processor_type): Add z13.
27647 (mvx): New options.
27648 * doc/invoke.texi: Add z13 option for -march.
27650 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27652 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
27653 mode check to make sure that only scalar integer values are
27656 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
27658 * tree.c (verify_type_variant): Fix #undef.
27659 (gimple_canonical_types_compatible_p): Move here from lto.c
27660 (verify_type): Verify TYPE_CANONICAL compatibility.
27661 * tree.h (gimple_canonical_types_compatible_p): Declare.
27663 2015-05-19 Jakub Jelinek <jakub@redhat.com>
27665 PR middle-end/66199
27666 * tree.h (OMP_TEAMS_COMBINED): Define.
27667 * gimplify.c (enum gimplify_omp_var_data): Add
27668 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
27669 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
27670 (omp_notice_variable): Accept both ORT_TEAMS
27671 and ORT_COMBINED_TEAMS. Don't recurse if
27672 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
27673 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
27675 (omp_no_lastprivate): New function.
27676 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
27677 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
27678 notice_outer and set appropriate bits, otherwise make
27679 sure default(none) combined constructs won't complain.
27680 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
27681 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
27682 omp_no_lastprivate either remove the clause or turn it
27683 into OMP_CLAUSE_PRIVATE.
27684 (gimplify_omp_for): Fix up handling of implicit
27685 lastprivate or linear iterators.
27686 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
27687 ORT_COMBINED_TEAMS.
27688 * omp-low.c (lower_omp_for_lastprivate): For combined
27689 for simd use fd.loop.n2 from the for rather than simd.
27691 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27693 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
27694 instead of gen_rtx_raw_REG.
27695 (cris_expand_epilogue): Likewise.
27696 * config/microblaze/microblaze.c (microblaze_classify_address):
27698 * config/sparc/sparc.md: Likewise.
27700 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
27702 * config/alpha/alpha.c (alpha_legitimize_reload_address)
27703 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
27704 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
27705 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
27706 Use CASE_CONST_SCALAR_INT.
27707 (print_operand) <case 'M'>: Use mode_width_operand to check the
27708 value of the constant.
27709 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
27710 * config/alpha/predicates.md (input_operand): Use general_operand
27711 instead of match_code as operand check.
27712 (symbolic_operand): Use match_code with subexpression digits.
27713 * config/alpha/constraints.md (Q): Ditto.
27715 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27717 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
27719 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27721 * config/s390/s390.c (s390_secondary_reload): Fix check for
27722 load/store relative.
27724 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27726 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
27727 alternative_mask to uint64_t.
27729 2015-05-19 Jakub Jelinek <jakub@redhat.com>
27731 PR tree-optimization/66187
27732 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
27733 Pass TYPE_SIGN to tree_int_cst_min_precision. If
27734 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
27736 2015-05-19 David Malcolm <dmalcolm@redhat.com>
27738 * diagnostic.c (diagnostic_report_current_module): Strengthen
27739 local "new_map" from const line_map * to
27740 const line_map_ordinary *.
27741 * genmatch.c (error_cb): Likewise for local "map".
27742 (output_line_directive): Likewise for local "map".
27743 * input.c (expand_location_1): Likewise for local "map".
27744 Pass NULL rather than &map to
27745 linemap_unwind_to_first_non_reserved_loc, since the value is never
27746 read from there, and the value written back not read from here.
27747 (is_location_from_builtin_token): Strengthen local "map" from
27748 const line_map * to const line_map_ordinary *.
27749 (dump_location_info): Strengthen locals "map" from
27750 line_map *, one to const line_map_ordinary *, the other
27751 to const line_map_macro *.
27752 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
27753 const line_map * to const line_map_macro *.
27754 (maybe_unwind_expanded_macro_loc): Add a call to
27755 linemap_check_macro when writing to the "map" field of the
27757 Introduce local const line_map_ordinary * "ord_map", using it in
27758 place of "map" in the part of the function where we know we have
27759 an ordinary map. Strengthen local "m" from const line_map * to
27760 const line_map_ordinary *.
27762 2015-05-19 Nick Clifton <nickc@redhat.com>
27765 * config/msp430/msp430.md (zero_extendhisi2): Add support for
27766 separate source and destination registers.
27768 2015-05-19 Richard Biener <rguenther@suse.de>
27770 PR tree-optimization/66165
27771 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
27772 for no load permutation.
27774 PR tree-optimization/66185
27775 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
27776 when building the SLP node from scalars.
27778 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
27779 Tristan Gingold <gingold@adacore.com>
27781 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
27782 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
27783 (expand_stack_restore): Call record_new_stack_level.
27784 (expand_stack_save): Do not call do_pending_stack_adjust.
27785 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
27786 * calls.c (expand_call): Call record_new_stack_level for alloca.
27787 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
27788 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
27789 (update_sjlj_context): New global function.
27790 * except.h (update_sjlj_context): Declare.
27791 * explow.c (record_new_stack_level): New global function.
27792 (allocate_dynamic_stack_space): Call record_new_stack_level.
27793 * explow.h (record_new_stack_level): Declare.
27794 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
27795 * cfgrtl.c (duplicate_insn_chain): Likewise.
27797 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27799 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
27800 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
27801 STACK_GROWS_DOWNWARD as normal if.
27802 (expand_call): Likewise.
27804 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
27807 * config/sh/sh.md (*round_int_even): New insn_and_split and
27808 accompanying new unnamed split.
27810 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27812 * bitmap.c (bitmap_set_range): Handle count==1 specially.
27813 (bitmap_clear_range): Likewise.
27814 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
27815 bitmap_set_range unconditionally.
27816 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
27817 * df-scan.c (df_mark_reg): Likewise.
27818 * haifa-sched.c (setup_ref_regs): Likewise.
27819 * sched-rgn.c (update_live_1): Likewise.
27821 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27823 * regs.h (END_HARD_REGNO): Delete.
27824 (END_REGNO): Move to...
27826 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
27827 * caller-save.c (mark_set_regs): Likewise.
27828 * combine.c (move_deaths, distribute_notes): Likewise.
27829 * cse.c (invalidate, invalidate_for_call): Likewise.
27830 * df-scan.c (df_ref_record): Likewise.
27831 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
27832 (record_last_reg_set_info): Likewise.
27833 * reg-stack.c (convert_regs_exit): Likewise.
27834 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
27835 * resource.c (update_live_status): Likewise.
27836 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
27838 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27840 * rtl.h (reg_info): Add an nregs field.
27841 (REG_NREGS): Use it.
27842 (SET_REGNO_RAW): Delete.
27843 (set_regno_raw): New function.
27844 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
27845 (END_REGNO): Redefine in terms of REG_NREGS.
27846 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
27848 * emit-rtl.c (set_mode_and_regno): Likewise.
27849 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
27850 instead of SET_REGNO_RAW.
27852 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27854 * rtl.h (PUT_MODE_RAW): New macro.
27855 (PUT_REG_NOTE_KIND): Use it.
27856 (set_mode_and_regno): Declare.
27857 (gen_raw_REG): Change regno to "unsigned int".
27858 (gen_rtx_REG): Change "unsigned" to "unsigned int".
27859 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
27860 use set_mode_and_regno to change the mode of registers.
27861 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
27862 * emit-rtl.c (set_mode_and_regno): New function.
27863 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
27864 * caller-save.c (reg_save_code): Use set_mode_and_regno.
27865 * expr.c (init_expr_target): Likewise.
27866 * ira.c (setup_prohibited_mode_move_regs): Likewise.
27867 * postreload.c (reload_cse_simplify_operands): Likewise.
27869 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27871 * caller-save.c (init_caller_save): Use word_mode and
27872 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
27873 * expr.c (init_expr_target): Likewise.
27874 * ira.c (setup_prohibited_mode_move_regs): Likewise.
27875 * postreload.c (reload_cse_regs_1): Likewise.
27877 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27879 * rtl.def (REG): Change format to "r".
27880 * rtl.h (rtunion): Remove rt_reg.
27881 (reg_info): New structure.
27882 (rtx_def): Add reg field to main union.
27883 (X0REGATTR): Delete.
27884 (REG_CHECK): New macro.
27885 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
27886 * rtl.c (rtx_format): Document "r".
27887 (rtx_code_size): Handle REG specially.
27888 * gengenrtl.c (special_format): Return true for formats
27890 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
27891 Deal with REG_ATTRS after the field loop.
27892 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
27893 * expmed.c (init_expmed): Call gen_raw_REG instead of
27895 * expr.c (init_expr_target): Likewise.
27896 * regcprop.c (maybe_mode_change): Likewise.
27897 * varasm.c (make_decl_rtl): Likewise.
27898 * final.c (leaf_renumber_regs_insn): Return early after
27900 * genemit.c (gen_exp): Handle 'r' fields.
27901 * genpeep.c (match_rtx): Likewise.
27902 * gensupport.c (subst_pattern_match): Likewise.
27903 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
27904 (alter_constraints, subst_dup): Likewise.
27905 * read-rtl.c (read_rtx_code): Likewise.
27906 * print-rtl.c (print_rtx): Likewise.
27907 * genrecog.c (find_operand, find_matching_operand): Likewise.
27908 (validate_pattern, match_pattern_2): Likewise.
27909 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
27910 (rtx_test::regno_field): New function.
27911 (operator ==, safe_to_hoist_p, transition_parameter_type)
27912 (parameter_type_string, print_parameter_value)
27913 (print_nonbool_test, print_test): Handle new enum values.
27914 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
27915 * lra-constraints.c (operands_match_p): Likewise.
27917 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27919 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
27920 Change type of new_regno to unsigned int.
27921 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
27922 new_regno to unsigned int.
27923 (df_ref_change_reg_with_loc): Remove old_regno parameter.
27924 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
27925 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
27926 (SET_REGNO_RAW): Add space after ",".
27928 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27930 * rtl.h (REG_NREGS): New macro
27931 * alias.c (record_set): Use it.
27932 * cfgcleanup.c (mark_effect): Likewise.
27933 * combine.c (likely_spilled_retval_1): Likewise.
27934 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
27935 (move_deaths, distribute_notes): Likewise.
27936 * cselib.c (cselib_record_set): Likewise.
27937 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
27938 * df-scan.c (df_mark_reg): Likewise.
27939 * dse.c (look_for_hardregs): Likewise.
27940 * dwarf2out.c (reg_loc_descriptor): Likewise.
27941 (multiple_reg_loc_descriptor): Likewise.
27942 * expr.c (write_complex_part, read_complex_part): Likewise.
27943 (emit_move_complex): Likewise.
27944 * haifa-sched.c (setup_ref_regs): Likewise.
27945 * ira-lives.c (mark_hard_reg_live): Likewise.
27946 * lra.c (lra_set_insn_recog_data): Likewise.
27947 * mode-switching.c (create_pre_exit): Likewise.
27948 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
27949 (reload_combine_recognize_pattern): Likewise.
27950 (reload_combine_note_use, move2add_record_mode): Likewise.
27951 (reload_cse_move2add): Likewise.
27952 * reg-stack.c (subst_stack_regs_pat): Likewise.
27953 * regcprop.c (kill_value, copy_value): Likewise.
27954 (copyprop_hardreg_forward_1): Likewise.
27955 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
27956 (build_def_use): Likewise.
27957 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
27958 (deps_analyze_insn): Likewise.
27959 * sched-rgn.c (check_live_1, update_live_1): Likewise.
27960 * sel-sched.c (count_occurrences_equiv): Likewise.
27961 * valtrack.c (dead_debug_insert_temp): Likewise.
27963 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27965 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
27966 * dse.c (note_add_store): Likewise.
27967 * ira-lives.c (mark_hard_reg_dead): Likewise.
27968 * loop-invariant.c (mark_reg_store): Likewise.
27969 (mark_reg_death): Likewise.
27970 * postreload.c (reload_combine): Likewise.
27971 (reload_combine_note_store): Likewise.
27972 (reload_combine_note_use): Likewise.
27973 * recog.c (peep2_reg_dead_p): Likewise.
27975 2015-05-19 Alan Modra <amodra@gmail.com>
27977 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
27978 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
27979 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
27981 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
27982 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
27983 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
27984 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
27986 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
27988 * config/mips/mips.md (JOIN_MODE): New mode iterator.
27989 (join2_load_Store<JOIN_MODE:mode>): New pattern.
27990 (join2_loadhi): Likewise.
27991 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
27992 load-load and store-stores.
27993 * config/mips/mips.opt (mload-store-pairs): New option.
27994 (TARGET_LOAD_STORE_PAIRS): New macro.
27995 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
27996 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
27997 * config/mips/mips.c (mips_load_store_bonding_p): New function.
27999 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
28001 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
28003 * dojump.c (do_compare_rtx_and_jump): Likewise.
28004 * expmed.c (emit_store_flag_1): Likewise.
28005 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
28006 * final.c (sprint_ul): Use std::reverse for reversing a string.
28007 * fold-const.c (extract_muldiv_1): Use std::swap.
28008 * genmodes.c (emit_mode_int_n): Likewise.
28009 * ifcvt.c (dead_or_predicable): Likewise.
28010 * ira-build.c (ira_merge_live_ranges): Likewise.
28011 (swap_allocno_copy_ends_if_necessary): Likewise.
28012 * ira.c (ira_setup_alts): Likewise.
28013 * loop-iv.c (iv_analyze_expr): Likewise.
28014 (implies_p): Likewise.
28015 (canon_condition): Likewise.
28016 * lra-constraints.c (swap_operands): Likewise.
28017 * lra-lives.c (lra_merge_live_ranges): Likewise.
28018 * omega.c (swap): Remove.
28020 (omega_unprotect_1): Use std::swap.
28021 (omega_solve_geq): Likewise.
28022 * optabs.c (expand_binop_directly): Likewise.
28023 (expand_binop): Likewise.
28024 (emit_conditional_move): Likewise.
28025 (emit_conditional_add): Likewise.
28026 * postreload.c (reload_cse_simplify_operands): Likewise.
28027 * reg-stack.c (emit_swap_insn): Likewise.
28028 (swap_to_top): Likewise.
28029 (compare_for_stack_reg): Likewise.
28030 (subst_asm_stack_regs): Likewise.
28031 * reload.c (find_reloads): Likewise.
28032 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
28033 * sel-sched.c (invoke_reorder_hooks): Likewise.
28034 (create_block_for_bookkeeping): Likewise.
28035 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
28036 (lambda_matrix_right_hermite): Use std::swap.
28037 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
28038 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
28039 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
28040 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
28041 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
28042 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
28043 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
28044 * tree-vrp.c (compare_ranges): Likewise.
28045 * var-tracking.c (add_with_sets): Likewise.
28046 (vt_find_locations): Likewise.
28048 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
28050 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
28052 (FBSD_ENDFILE_SPEC): Likewise.
28053 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
28054 config/freebsd-spec.h.
28055 (ENDFILE_SPEC): Likewise.
28057 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
28058 Richard Henderson <rth@redhat.com>
28061 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
28062 Check for a memory location that is not a reference (using an AND)
28063 to an unaligned location here.
28064 * config/alpha/predicates.md (normal_memory_operand): Remove.
28066 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
28068 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
28069 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
28071 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
28073 * config/mips/mips.c (micromips_globals): New variable.
28074 (mips_set_compression_mode): Save and reinitialize target-dependent
28075 state for microMIPS.
28077 2015-05-18 Martin Liska <mliska@suse.cz>
28079 * dbgcnt.def: Add new counter.
28080 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
28082 2015-05-18 Martin Liska <mliska@suse.cz>
28084 * dbgcnt.def: Sort counters.
28085 * opts.c (common_handle_option): Do not compile if
28086 -fdbg-cnt-list is enabled.
28088 2015-05-18 Tom de Vries <tom@codesourcery.com>
28090 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
28091 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
28092 address operator to va_list operand.
28093 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
28095 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
28097 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
28098 * config/s390/s390.c (s390_gimplify_va_arg): Same.
28099 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
28101 2015-05-18 Tom de Vries <tom@codesourcery.com>
28103 * tree-ssa-tail-merge.c: Fix whitespace.
28105 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
28107 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
28108 cortex-a17, and cortex-a17.cortex-a7.
28110 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
28113 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
28115 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
28118 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
28119 QImode inner modes for TARGET_AVX512BW. Force mask operand
28120 to a register for AVX512F modes.
28122 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
28124 * toplev.c (emit_debug_global_declarations): Do not output debug info
28125 when doing slim LTO objects.
28127 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
28129 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
28130 odr_types_equivalent_p): Declare.
28131 (odr_type_p): Use gcc_checking_assert.
28132 (type_in_anonymous_namespace_p) Declare.
28133 (type_with_linkage_p): Declare.
28134 * common.opt (Wlto-type-mismatch): New warning.
28135 * ipa-devirt.c (compound_type_base): New function.
28136 (odr_or_derived_type_p): New function.
28137 (odr_types_equivalent_p): New function.
28138 (add_type_duplicate): Simplify.
28139 (type_with_linkage_p): Add hack to prevent false positives on C types
28140 (type_in_anonymous_namespace_p): Likewise.
28141 * tree.c (need_assembler_name_p): Use type_with_linkage.
28142 * tree.h (type_in_anonymous_namespace_p): Remove.
28143 * doc/invoke.texi (-Wlto-type-mismatch): Document
28145 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
28147 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
28148 (verify_type): Verify STRING_FLAG.
28150 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
28153 * tree-pretty-print.c (percent_K_format): Replace locus pointer
28154 with accessor function.
28155 * tree-diagnostic.c (diagnostic_report_current_function): Use
28156 diagnostic_location function.
28157 (maybe_unwind_expanded_macro_loc): Likewise.
28158 (virt_loc_aware_diagnostic_finalizer): Likewise.
28159 (default_tree_printer): Replace locus pointer with accessor function.
28160 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
28161 (diagnostic_set_info_translated): Initialize second location.
28162 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
28163 (diagnostic_show_locus): Handle two locations. Call
28164 diagnostic_print_caret_line.
28165 (diagnostic_print_caret_line): New.
28166 (default_diagnostic_starter): Use diagnostic_location function.
28167 (diagnostic_report_diagnostic): Use diagnostic_location function.
28168 (verbatim): Do not set text.locus.
28169 * diagnostic.h (struct diagnostic_info): Remove location field.
28170 (struct diagnostic_context): Make caret_chars an array of two.
28171 (diagnostic_location): New inline.
28172 (diagnostic_expand_location): Handle two locations.
28173 (diagnostic_same_line): New inline.
28174 (diagnostic_print_caret_line): Declare.
28175 (CARET_LINE_MARGIN): New constant.
28176 * pretty-print.c (pp_printf): Do not set text.locus.
28177 (pp_verbatim): Do not set text.locus.
28178 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
28179 (struct text_info): Replace locus pointer with locations
28180 array. Add accessor functions.
28182 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
28183 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28186 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
28187 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
28188 large constants in register instead of splitting them.
28190 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
28193 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
28194 replacements in memory addresses.
28195 (get_unaligned_address): Ditto.
28197 2015-05-16 James Bowman <james.bowman@ftdichip.com>
28199 * config/ft32/*: New files for FT32 port.
28200 * doc/install.texi: Add FT32 information.
28201 * doc/invoke.texi: Add FT32 information.
28202 * doc/md.texi: Add FT32 information.
28203 * doc/contrib.texi: Self added.
28205 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
28207 PR tree-optimization/64454
28208 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
28209 (-1 - A -> ~A): Remove unnecessary condition.
28211 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
28213 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
28214 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
28215 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
28217 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
28219 * ipa-chkp.h (chkp_wrap_function): New.
28220 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
28221 (chkp_wrap_function_name): New.
28222 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
28223 to get wrapper name.
28224 * lto-cgraph.c: Include ipa-chkp.h.
28225 (input_cgraph_1): Avoid alias chain for wrappers.
28227 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
28229 PR middle-end/66134
28230 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
28231 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
28233 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28235 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
28236 (AARCH64_FL_SLOWMUL): Delete.
28237 (AARCH64_FL_CRC): Redefine to 1<<3.
28238 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
28240 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28242 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
28245 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
28247 * config/alpha/alpha.md (extendqidi2): Use general_operand
28248 instead of some_operand for operand[1] predicate.
28249 (extendhidi2): Ditto.
28250 (cbranchdi4): Use general_operand instead of some_operand
28251 for operand[1] and operands[2] predicates.
28252 (cstoredi4): Ditto.
28253 * config/alpha/predicates.md (some_operand): Remove unused predicate.
28254 (some_ni_operand): Ditto.
28256 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
28258 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
28259 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
28260 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
28261 low part of the constant using alpha_emit_set_const_1.
28262 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
28264 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
28266 * varasm.c (output_constant_pool_1): Pass down alignment from
28267 constant pool entry's descriptor to output_constant_pool_2.
28268 (output_object_block): Add comment prior to call to
28269 output_constant_pool_1.
28271 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
28273 PR rtl-optimization/65862
28274 * target.def (ira_change_pseudo_allocno_class): New hook.
28275 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
28277 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
28278 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
28280 * ira-costs.c (find_costs_and_classes): Call the hook and change
28281 classes when it is necessary.
28282 * doc/tm.texi: Update.
28284 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
28286 * config/i386/i386.md (sibcall_memory): Check that register with
28287 callee address is not also used as one of the arguments, instead
28288 of checking that it is not live after the sibcall.
28289 (sibcall_pop_memory): Ditto.
28290 (sibcall_value_memory): Ditto.
28291 (sibcall_value_pop_memory): Ditto.
28293 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
28295 * generic-match-head.c (types_match): Handle non-types.
28296 * gimple-match-head.c (types_match): Likewise.
28297 * match.pd: Remove unnecessary TREE_TYPE for types_match.
28299 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
28301 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
28302 (csneg3<mode>_insn): Enable expansion of pattern.
28304 2015-05-14 Nick Clifton <nickc@redhat.com>
28306 * config/rl78/rl78.c (rl78_select_section): Select the correct
28307 default section based upon the category of the decl.
28309 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
28311 PR rtl-optimization/30967
28312 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
28313 destination mode for the cost of scc patterns.
28315 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
28317 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
28318 using SWIM248 mode iterator.
28319 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
28320 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
28321 for operand[2] constraint.
28322 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
28324 2015-05-13 Jakub Jelinek <jakub@redhat.com>
28326 PR middle-end/66133
28327 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
28328 make sure it is never noreturn, even when the task body does not
28330 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
28331 right before GIMPLE_OMP_RETURN.
28332 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
28333 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
28334 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
28336 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28338 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
28339 * tree-ssa-math-opts.c: Include params.h
28340 (pow_synth_sqrt_info): New struct.
28341 (representable_as_half_series_p): New function.
28342 (get_fn_chain): Likewise.
28343 (print_nested_fn): Likewise.
28344 (dump_fractional_sqrt_sequence): Likewise.
28345 (dump_integer_part): Likewise.
28346 (expand_pow_as_sqrts): Likewise.
28347 (gimple_expand_builtin_pow): Use above to attempt to expand
28348 pow as series of square roots. Removed now unused variables.
28350 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
28352 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
28353 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
28354 Remove *p0 and *p1 arguments. Rewrite function.
28355 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
28356 (alpha_split_const_mov): Update calls to alpha_extract_integer and
28357 alpha_emit_set_long_const.
28358 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
28359 (alpha_output_mi_thunk_osf): Ditto.
28360 * config/alpha/alpha.md (movti): Do not check operands[1]
28363 2015-05-13 Richard Biener <rguenther@suse.de>
28365 PR tree-optimization/66129
28366 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
28368 (vect_schedule_slp_instance): Fix typo.
28370 2015-05-13 David Malcolm <dmalcolm@redhat.com>
28372 * common.opt (fdump-internal-locations): New option.
28373 * input.c: Include diagnostic-core.h.
28374 (get_end_location): New function.
28375 (write_digit): New function.
28376 (write_digit_row): New function.
28377 (dump_location_range): New function.
28378 (dump_labelled_location_range): New function.
28379 (dump_location_info): New function.
28380 * input.h (dump_location_info): New prototype.
28381 * toplev.c (compile_file): Handle flag_dump_locations.
28383 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
28385 * gimple-expr.h (is_gimple_constant): Reorder.
28386 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
28388 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
28390 * combine.c (simplify_set): When generating a CC set, if the
28391 source already is in the correct mode, do not wrap it in a
28392 compare. Simplify the rest of that code.
28394 2015-05-13 Richard Biener <rguenther@suse.de>
28396 PR tree-optimization/66123
28397 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
28400 2015-05-13 Richard Biener <rguenther@suse.de>
28402 PR middle-end/66110
28403 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
28405 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
28407 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
28409 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
28410 * aclocal.m4: Regenerated with automake-1.11.6.
28412 2015-05-13 Tom de Vries <tom@codesourcery.com>
28414 PR tree-optimization/66010
28415 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
28416 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
28417 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
28418 and rval based on do_deref.
28420 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
28423 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
28424 link time constants into adress expressions and therefore set
28427 2015-05-13 Jakub Jelinek <jakub@redhat.com>
28430 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
28431 Use SWI248 iterator instead of SWI.
28432 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
28433 Use eq_attr "alternative" "0" instead of match_test in
28434 length_immediate attribute computation.
28435 (*mulvhi4, *mulvhi4_1): New define_insns.
28438 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
28439 SIGNED to get precision of non-negative value.
28441 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
28444 * function.c (diddle_return_value_1): Process bounds first.
28445 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
28448 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
28450 PR rtl-optimization/64616
28451 * loop-invariant.c (can_move_invariant_reg): New.
28452 (move_invariant_reg): Call above new function to decide whether
28453 instruction can just be moved, skipping creation of temporary
28456 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
28458 PR target/pr66047.c
28459 * i386.c (ix86_function_sseregparm): Only return -1 if local function
28460 with implied regparm is called from -mno-sse function.
28461 (init_cumulative_args): Output error if ix86_function_sseregparm
28462 return -1 and SSE register would be needed.
28463 (function_arg_advance_32): Likewise.
28464 (function_arg_32): Likewise.
28465 * i386.h (ix86_args): Add decl field.
28467 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
28470 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
28471 inlines across optimization boundary.
28473 2015-05-12 Jason Merrill <jason@redhat.com>
28475 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
28476 string literal and macro name.
28478 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
28480 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
28481 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
28482 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
28484 2015-05-12 David Malcolm <dmalcolm@redhat.com>
28486 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
28487 (-Wmisleading-indentation): New option.
28488 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
28490 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
28492 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
28493 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
28494 (alpha_extract_integer): Ditto.
28495 (alpha_legitimate_constant_p): Ditto.
28496 (alpha_split_tmode_pair): Ditto.
28497 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
28498 (alpha_expand_mov): Ditto.
28499 (print_operand): Remove handling of 'H' modifier.
28500 <case 'm'>: Remove CONST_DOUBLE handling.
28501 (summarize_insn): Handle CONST_WIDE_INT.
28502 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
28504 (movti): Handle CONST_WIDE_INT.
28505 * config/alpha/constraints.md ('H'): Remove constraint definition.
28506 ('G'): Do not match MODE_FLOAT class.
28507 * config/alpha/predicates.md (const0_operand): Also match
28509 (non_add_const_operand): Ditto.
28510 (non_zero_const_operand): Ditto.
28511 (some_operand): Ditto.
28512 (input_operand): Ditto. Handle CONST_WIDE_INT.
28513 (and_operand): Do not match const_double.
28514 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
28516 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
28519 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
28520 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
28521 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
28522 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
28523 is_mm_seq_cst, is_mm_sync): New accessor functions.
28524 * builtins.c (expand_builtin_sync_operation,
28525 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
28526 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
28527 (get_memmodel, expand_builtin_atomic_compare_exchange,
28528 expand_builtin_atomic_load, expand_builtin_atomic_store,
28529 expand_builtin_atomic_clear): Use new accessor routines.
28530 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
28531 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
28532 (maybe_emit_sync_lock_test_and_set): Use new accessors and
28533 MEMMODEL_SYNC_ACQUIRE.
28534 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
28535 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
28536 expand_atomic_store): Use new accessors.
28537 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
28538 * tsan.c (instrument_builtin_call): Update check for memory model beyond
28539 final enum to use MEMMODEL_LAST.
28540 * c-family/c-common.c: Use new accessor for memmodel_base.
28541 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
28543 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
28544 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
28545 mem_thread_fence, *dmb): Likewise.
28546 * config/alpha/alpha.c (alpha_split_compare_and_swap,
28547 alpha_split_compare_and_swap_12): Likewise.
28548 * config/arm/arm.c (arm_expand_compare_and_swap,
28549 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
28550 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
28551 atomic_loaddi): Likewise.
28552 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
28554 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
28555 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
28557 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
28558 atomic_store<mode>, atomic_compare_and_swap<mode>,
28559 atomic_exchange<mode>): Use new accessors.
28560 * config/mips/mips.c (mips_process_sync_loop): Likewise.
28561 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
28562 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
28563 rs6000_post_atomic_barrier): Add new cases.
28564 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
28565 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
28566 (atomic_load<mode>): Add new cases and use new accessors.
28567 (store_quadpti): Add new cases.
28568 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
28570 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
28571 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
28574 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
28576 * ipa-devirt.c (type_with_linkage_p): New function.
28577 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
28579 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
28580 (can_be_name_hashed_p): Simplify.
28581 (hash_odr_name): Check that type has linkage before checking if it is
28583 (types_same_for_odr): Likewise.
28584 (odr_name_hasher::equal): Likewise.
28585 (odr_subtypes_equivalent_p): Likewise.
28586 (warn_types_mismatch): Likewise.
28587 (get_odr_type): Likewise.
28588 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
28589 * ipa-utils.h (odr_type_p): Move offline.
28590 * tree.c (need_assembler_name_p): Fix handling of types
28592 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
28594 2015-05-12 David Malcolm <dmalcolm@redhat.com>
28596 * timevar.c (timevar_enable): Delete in favor of...
28597 (g_timer): New global.
28598 (struct timevar_def): Move to timevar.h inside class timer.
28599 (struct timevar_stack_def): Likewise.
28600 (timevars): Delete global in favor of field "m_timevars" within
28601 class timer in timevar.h
28602 (stack): Likewise, in favor of field "m_stack".
28603 (unused_stack_instances): Likewise, in favor of field
28604 "m_unused_stack_instances".
28605 (start_time): Likewise, in favor of field "m_start_time".
28606 (get_time): Eliminate check for timevar_enable.
28607 (timer::timer): New function, built from part of timevar_init.
28608 (timevar_init): Rewrite idempotency test from using
28609 "timevar_enable" bool to using dynamic allocation of "g_timer".
28610 Move rest of implementation into timer's constructor.
28611 (timevar_push_1): Rename to...
28612 (timer::push): ...this, adding "m_" prefixes to variables that
28613 are now fields of timer.
28614 (timevar_pop_1): Likewise, rename to...
28615 (timer::pop): ...this, and add "m_" prefixes.
28616 (timevar_start): Replace test for "timevar_enable" with one for
28617 "g_timer", and move bulk of implementation to...
28618 (timer::start): ...here, adding "m_" prefixes.
28619 (timevar_stop): Likewise, from here...
28620 (timer::stop): ...to here.
28621 (timevar_cond_start): Likewise, from here...
28622 (timer::cond_start): ...to here.
28623 (timevar_cond_stop): Likewise, from here...
28624 (timer::cond_stop): ...to here.
28625 (validate_phases): Rename to...
28626 (timer::validate_phases): ...this, and add "m_" prefixes. Make
28627 locals "total" and "tv" const.
28628 (timevar_print): Rename to...
28629 (timer::print): ...this, and add "m_" prefixes. Make locals
28630 "total" and "tv" const. Eliminate test for timevar_enable.
28631 * timevar.h (timevar_enable): Eliminate.
28632 (g_timer): New declaration.
28633 (timevar_push_1): Eliminate.
28634 (timevar_pop_1): Eliminate.
28635 (timevar_print): Eliminate.
28636 (class timer): New class.
28637 (timevar_push): Rewrite to use g_timer.
28638 (timevar_pop): Likewise.
28639 * toplev.c (toplev::~toplev): Likewise.
28641 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
28643 * arm-protos.h (arm_sched_autopref): Delete.
28644 (tune_params): Re-organize, use enums for flag values.
28645 (FUSE_OPS): New macro.
28646 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
28647 (ARM_PREFETCH_BENEFICIAL): Likewise.
28648 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
28649 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
28650 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
28651 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
28652 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
28653 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
28654 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
28655 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
28657 (arm_option_override, thumb2_reorg, arm_print_tune_info)
28658 (aarch_macro_fusion_pair_p): Update uses of current_tune.
28659 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
28661 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
28663 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
28666 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
28667 Sandra Loosemore <sandra@codesourcery.com>
28669 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
28671 (REG_CLASS_NAMES): Add "IJMP_REGS".
28672 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
28673 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
28674 use new "c" register constraint.
28675 * config/nios2/constraint.md (c): New register constraint
28676 corresponding to IJMP_REGS.
28678 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28680 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
28681 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
28682 define_splits): Delete, revamp, transmogrify into ...
28683 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
28684 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
28685 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
28688 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28690 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
28691 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
28693 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28695 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
28696 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
28697 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
28698 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
28699 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
28700 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
28701 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
28702 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
28703 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
28704 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
28705 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
28706 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
28707 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
28708 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
28709 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
28710 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
28711 and 30 corresponding splitters): Delete.
28713 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28715 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
28718 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28720 * combine.c (recog_for_combine_1): New function, factored out
28721 from recog_for_combine.
28722 (change_zero_ext): New function.
28723 (recog_for_combine): If recog fails, try again with the pattern
28724 modified by change_zero_ext; if that still fails, restore the
28727 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28729 * combine.c (get_undo_marker): New function.
28730 (undo_to_marker): New function, largely factored out from ...
28731 (undo_all): ... this. Adjust.
28733 2015-05-12 Richard Biener <rguenther@suse.de>
28735 PR tree-optimization/66101
28736 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
28737 fixup if we turn a loop exit edge to a fallthru edge.
28739 2015-05-12 Richard Biener <rguenther@suse.de>
28741 PR tree-optimization/37021
28742 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
28743 (SLP_TREE_TWO_OPERATORS): New define.
28744 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
28745 SLP_TREE_TWO_OPERATORS.
28746 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
28748 (vect_build_slp_tree): Adjust.
28749 (vect_analyze_slp_cost_1): Likewise.
28750 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
28751 emitting two vector stmts and mixing the results.
28753 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
28755 * call.c (print_z_candidates): Remove dead code.
28757 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28759 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
28760 and zEC12_simple_fp.
28761 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
28764 2015-05-12 Tom de Vries <tom@codesourcery.com>
28766 PR tree-optimization/66010
28767 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
28769 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
28770 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
28771 va_lists are passed, and remove corresponding handling.
28772 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
28773 do_deref argument to ifn_va_arg.
28774 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
28777 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28780 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
28781 REG before taking its REGNO.
28783 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
28785 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
28786 rsp->sign_bit_copies and rsp->nonzero_bits into ...
28787 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
28788 present to get more accurate information about the number of sign bit
28789 copies and non zero bits.
28791 2015-05-12 Richard Biener <rguenther@suse.de>
28793 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
28794 do not allow unrolling.
28796 2015-05-11 Richard Henderson <rth@redhat.com>
28798 * config/i386/i386-modes.def (CCP): New.
28799 * config/i386/i386.c (put_condition_code): Handle it.
28800 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
28802 2015-05-11 Richard Henderson <rth@redhat.com>
28804 * target.def (md_asm_clobbers): Replace with...
28805 (md_asm_adjust): this.
28806 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
28807 (TARGET_MD_ASM_ADJUST): New.
28808 * tm.texi: Rebuild.
28809 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
28810 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
28811 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
28813 * cfgexpand.c (check_operand_nalternatives): Accept vector of
28814 constraints instead of lists of outputs and inputs.
28815 (expand_asm_stmt): Save and restore input_location around the
28816 body of the function. Move asm data into vectors instead of
28817 building tree lists. Generate cleanup sequences as needed,
28818 rather than waiting til the end. Use new md_asm_adjust hook.
28820 * config/vxworks.c: Include vec.h before target.h.
28821 * gimple.c: Likewise.
28822 * incpath.c: Likewise.
28823 * mode-switching.c: Likewise.
28825 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
28826 (cris_md_asm_adjust): this.
28827 (TARGET_MD_ASM_CLOBBERS): Remove.
28828 (TARGET_MD_ASM_ADJUST): New.
28829 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
28830 (ix86_md_asm_adjust): this.
28831 (TARGET_MD_ASM_CLOBBERS): Remove.
28832 (TARGET_MD_ASM_ADJUST): New.
28833 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
28834 (mn10300_md_asm_adjust): this.
28835 (TARGET_MD_ASM_CLOBBERS): Remove.
28836 (TARGET_MD_ASM_ADJUST): New.
28837 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
28838 (rs6000_md_asm_adjust): this.
28839 (TARGET_MD_ASM_CLOBBERS): Remove.
28840 (TARGET_MD_ASM_ADJUST): New.
28841 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
28842 (visium_md_asm_adjust): this.
28843 (TARGET_MD_ASM_CLOBBERS): Remove.
28844 (TARGET_MD_ASM_ADJUST): New.
28846 2015-05-11 Richard Henderson <rth@redhat.com>
28848 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
28849 if noutputs is zero.
28850 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
28852 * cfgexpand.c (expand_asm_operands): Merge into...
28853 (expand_asm_stmt): ... here.
28855 * cfgexpand.c (expand_asm_operands): Don't call
28856 resolve_asm_operand_names.
28857 * stmt.c (resolve_asm_operand_names): Clarify block comment.
28859 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
28861 * dwarf2out.c (gen_member_die): Sanity check that we access
28862 TYPE_MAIN_VARIANT for TYPE_METHODS.
28863 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
28864 checking TYPE_METHODS.
28865 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
28867 (build_distinct_type_copy): Clear TYPE_METHODS.
28868 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
28869 (verify_type): Allow TYPE_METHODS to be error_mark_node.
28870 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
28872 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
28874 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
28875 (emit_pattern_before_setloc): Likewise.
28877 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
28879 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
28880 for define_peephole2s.
28881 (get_peephole2_pattern): New function.
28882 (main): Use it. Call validate_pattern.
28884 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
28886 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
28887 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
28888 (Last callee saved reg is different for AVR_TINY architecture)
28890 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
28892 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
28893 when looking for memory references.
28895 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
28898 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
28899 via function pointers.
28901 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
28903 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
28904 indirect call by forcing address into a pseudo with -fno-plt.
28905 * common.opt (flag_plt): New option.
28906 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
28907 ([-fno-plt]): Document.
28909 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
28912 * config/rs6000/option-defaults.h: Add space between string literal
28915 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
28917 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
28918 accross ARM targets.
28920 2015-05-11 Christian Bruel <christian.bruel@st.com>
28922 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
28923 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
28925 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
28927 PR rtl-optimization/66076
28928 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
28929 Don't grow the heap array if it is already big enough from a
28930 previous iteration.
28932 2015-05-11 Christian Bruel <christian.bruel@st.com>
28934 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
28935 (is_called_in_ARM_mode): Remove.
28936 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
28937 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
28938 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
28939 arm_declare_function_name.
28941 2015-05-11 Christian Bruel <christian.bruel@st.com>
28943 * config/arm/arm.c (arm_option_override): Reoganized and split into :
28944 (arm_option_params_internal); New function.
28945 (arm_option_check_internal): New function.
28946 (arm_option_override_internal): New function.
28947 (thumb_code, thumb1_code): Remove.
28948 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
28949 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
28950 (thumb_code, thumb1_code): Remove.
28951 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
28953 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
28955 * config/alpha/alpha.c (alpha_emit_set_const_1)
28956 (alpha_emit_set_long_const, alpha_extract_integer)
28957 (alpha_legitimate_constant_p, alpha_split_const_mov)
28958 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
28959 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
28960 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
28962 * config/alpha/predicates.md (mode_mask_operand): Do not match
28964 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
28965 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
28966 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
28967 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
28968 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
28970 2015-05-11 Jakub Jelinek <jakub@redhat.com>
28973 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
28974 default_binds_local_p_2.
28975 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
28976 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
28978 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
28980 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
28982 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
28984 Patch by Richard Biener
28985 * coverage.c (coverage_obj_init): Delay building of type variant
28986 until the type is finished.
28988 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
28990 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
28991 mismatch between C and C++ type; compoare correctly ARG_TYPES
28992 for non-prototypes and output correctly parameter index for METHOD_TYPE.
28993 (odr_types_equivalent_p): Fix wording of warning about attributes;
28994 it is OK to match prototype and non-prototype.
28996 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
28998 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
28999 TYPE_ARG_TYPES list.
29000 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
29001 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
29003 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29005 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
29006 * tree.h (is_lang_specific): Constify.
29008 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
29010 PR tree-optimization/64454
29011 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
29014 2015-05-08 Jason Merrill <jason@redhat.com>
29016 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
29017 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
29018 config/darwin.h, config/darwin9.h, config/elfos.h,
29019 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
29020 config/microblaze/microblaze.h, config/mips/mips.h,
29021 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
29022 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
29023 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
29024 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
29025 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
29026 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
29027 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
29028 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
29029 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
29030 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
29031 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
29032 between string literal and macro name.
29034 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29036 * jump.c: Change argument types to rtx_insn *.
29039 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29041 * lra-constraints.c: Change argument type to rtx_insn *.
29043 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29045 * df-problems.c: Change argument type to rtx_insn *.
29047 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29049 * combine.c: Change argument type to rtx_insn *.
29051 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29054 * rtlanal.c: Change argument type to rtx_insn *.
29056 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29058 * sched-deps.c: Change argument types to rtx_insn *.
29059 * sched-int.h: Adjust.
29061 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29063 * dwarf2cfi.c: Change argument type to rtx_insn *.
29065 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29067 * ira.c (decrease_live_ranges_number): Changetype of local
29068 variable to rtx_insn *.
29069 * recog.c: Change argument types to rtx_insn *.
29072 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29074 * reorg.c: Change argument types to rtx_insn *.
29076 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29078 * ira-color.c: Change argument types to rtx_insn *.
29079 * lra-eliminations.c: Likewise.
29082 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29084 * gcse.c: Change argument types to rtx_insn *.
29086 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29088 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
29090 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29092 * emit-rtl.c (emit_debug_insn_before): Change argument type to
29096 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29098 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
29101 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29103 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
29106 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29108 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
29111 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29113 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
29116 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29118 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
29122 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29124 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
29128 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29130 * except.c (can_nonlocal_goto): Change type of argument to
29134 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29136 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
29139 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29141 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
29142 * cfgrtl.c (can_delete_label_p): Adjust.
29145 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29147 * reorg.c (stop_search_p): Change argument to rtx_insn *.
29149 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29151 * except.c (make_reg_eh_region_note): Change argument to
29153 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
29154 * except.h: Adjust.
29156 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29158 * mode-switching.c (commit_mode_sets): Change type of local
29159 variable from rtx to rtx_insn *.
29161 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
29163 * doc/install.texi (--enable-languages): Add missing jit and lto info.
29164 Add ^ to grep command.
29165 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
29166 arg to last gimple_simplify declaration. Add missing gimple_build
29167 declaration for built-in function case with four tree args.
29169 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
29170 Szabolcs Nagy <szabolcs.nagy@arm.com>
29172 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
29173 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
29174 (GNU_USER_DYNAMIC_LINKERN32): Update.
29176 2015-05-08 Richard Biener <rguenther@suse.de>
29178 PR tree-optimization/66036
29179 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
29180 Handle strided group loads.
29181 (vect_verify_datarefs_alignment): Likewise.
29182 (vect_enhance_data_refs_alignment): Likewise.
29183 (vect_analyze_group_access): Likewise.
29184 (vect_analyze_data_ref_access): Likewise.
29185 (vect_analyze_data_ref_accesses): Likewise.
29186 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
29187 (vectorizable_load): Likewise.
29189 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
29191 * config/rs6000/rs6000.md: Require operand inequality in one
29194 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
29195 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
29197 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
29199 * config/rx/rx.md (movdi, movdf): Likewise.
29200 Likewise for define_peephole2s.
29202 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
29204 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
29205 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
29206 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
29207 vtst_u64): Rewrite using gcc vector extensions.
29209 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
29211 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
29212 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
29214 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
29216 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
29218 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
29220 * config/glibc-stdint.h (OPTION_MUSL): Define.
29221 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
29222 Change the definition based on OPTION_MUSL for 64 bit targets.
29223 * config/linux.h (OPTION_MUSL): Redefine.
29224 * config/alpha/linux.h (OPTION_MUSL): Redefine.
29225 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
29226 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
29228 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
29229 Szabolcs Nagy <szabolcs.nagy@arm.com>
29231 * config.gcc (LIBC_MUSL): New tm_defines macro.
29232 * config/linux.h (OPTION_MUSL): Define.
29233 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
29234 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
29235 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29236 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29237 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29238 * config/linux.opt (mmusl): New option.
29239 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
29240 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29241 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29242 * configure: Regenerate.
29244 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
29245 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29248 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
29249 * config/i386/knetbsd-gnu64.h: New file.
29251 2015-05-08 Marek Polacek <polacek@redhat.com>
29254 * doc/invoke.texi: Document -Woverride-init-side-effects.
29256 2015-05-07 Marek Polacek <polacek@redhat.com>
29259 * doc/invoke.texi: Document -Wshift-negative-value.
29261 2015-05-06 Aditya Kumar <hiraditya@msn.com>
29263 * gcov-tool.c (do_merge): Refactore to remove int ret.
29264 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
29265 !type == FUNC to type != FUNC.
29266 * reload.h (struct target_reload): Changee to type of
29267 x_spill_indirect_levels from bool to unsigned char.
29269 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
29271 * rtl.h (always_void_p): New function.
29272 * gengenrtl.c (always_void_p): Likewise.
29273 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
29274 with code foo are always VOIDmode.
29275 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
29276 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
29277 compare-elim.c, config/aarch64/aarch64.c,
29278 config/aarch64/aarch64.md, config/alpha/alpha.c,
29279 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
29280 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
29281 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
29282 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
29283 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
29284 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
29285 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
29286 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
29287 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
29288 config/ia64/vect.md, config/iq2000/iq2000.c,
29289 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
29290 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
29291 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
29292 config/mep/mep.c, config/microblaze/microblaze.c,
29293 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
29294 config/mn10300/mn10300.c, config/msp430/msp430.c,
29295 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
29296 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
29297 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
29298 config/rs6000/altivec.md, config/rs6000/rs6000.c,
29299 config/rs6000/rs6000.md, config/rs6000/vector.md,
29300 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
29301 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
29302 config/sh/sh.md, config/sh/sh_treg_combine.cc,
29303 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
29304 config/spu/spu.md, config/stormy16/stormy16.c,
29305 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
29306 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
29307 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
29308 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
29309 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
29310 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
29311 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
29312 var-tracking.c: Update calls accordingly.
29314 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
29317 PR middle-end/54303
29318 * varasm.c (function_mergeable_rodata_prefix): New function.
29319 (mergeable_string_section): Use it.
29320 (mergeable_constant_section): Use it.
29322 2015-05-07 Jeff Law <law@redhat.com>
29325 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29326 simplifier to narrow arithmetic.
29327 * generic-match-head.c: (types_match, single_use): New functions.
29328 * gimple-match-head.c: (types_match, single_use): New functions.
29330 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29332 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
29335 2015-05-07 Richard Biener <rguenther@suse.de>
29337 PR tree-optimization/66002
29338 * passes.def: Schedule another pass_merge_phi after ifcombine, right
29341 2015-05-07 Marek Polacek <polacek@redhat.com>
29342 Martin Uecker <uecker@eecs.berkeley.edu>
29344 * doc/invoke.texi: Document -fsanitize=bounds-strict.
29345 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
29346 into SANITIZE_NONDEFAULT.
29347 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
29349 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
29352 * config/alpha/alpha.c (alpha_override_options_after_change): New.
29353 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
29354 (alpha_override_options): Move align_loops, align_jumps and
29355 align_functions handling into alpha_override_options_after_change.
29357 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
29358 Chris Jones <chrisj@nvidia.com>
29359 Joshua Conner <jconner@nvidia.com>
29361 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
29362 linking of crtfastmath.o.
29363 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
29365 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
29367 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
29368 (cstore<mode>4_unsigned_imm): New expander.
29369 (cstore<mode>4): Remove empty constraint strings. Use the new
29372 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
29375 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
29378 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
29380 * config/aarch64/geniterators.sh: Use standard BRE in sed.
29382 2015-05-06 Alan Modra <amodra@gmail.com>
29385 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
29386 (UNSPEC_NOP): Define.
29387 (reload_vsx_from_gpr<mode>): Add missing DONE.
29388 (reload_gpr_from_vsx<mode>): Likewise.
29389 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
29390 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
29392 2015-05-06 Christian Bruel <christian.bruel@st.com>
29395 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
29396 align_jumps, align_functions into aarch64_override_options_after_change.
29398 2015-05-06 Richard Biener <rguenther@suse.de>
29400 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
29401 vect_transform_slp_perm_load to check if we support a permutation
29402 for basic-block vectorization.
29404 2015-05-06 Nick Clifton <nickc@redhat.com>
29406 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
29407 used, even if it is not being used as a frame pointer.
29409 2015-05-05 Jason Merrill <jason@redhat.com>
29411 * dwarf2out.c (gen_member_die): Don't emit anything for an
29412 anonymous class constructor.
29414 2015-05-05 David Malcolm <dmalcolm@redhat.com>
29416 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
29417 that it reflects the block structure.
29418 (afdo_propagate_edge): Likewise.
29419 (afdo_calculate_branch_prob): Likewise.
29420 (afdo_annotate_cfg): Likewise.
29421 * cfgcleanup.c (equal_different_set_p): Likewise.
29422 (try_crossjump_to_edge): Likewise.
29423 * cgraph.c (cgraph_node::verify_node): Likewise.
29424 * cgraphunit.c (expand_all_functions): Likewise.
29425 * config/i386/i386.c (ix86_expand_copysign): Likewise.
29426 (exact_dependency_1): Likewise.
29427 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
29428 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
29429 * gensupport.c (process_define_subst): Likewise.
29430 * lto-wrapper.c (merge_and_complain): Likewise.
29431 * tree-if-conv.c (if_convertible_bb_p): Likewise.
29432 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
29433 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
29434 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
29435 * tree-vect-loop.c (vectorizable_reduction): Likewise.
29436 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
29437 * tree-vect-stmts.c (vectorizable_shift): Likewise.
29438 * tree-vrp.c (vrp_finalize): Likewise.
29439 * tree.c (variably_modified_type_p): Likewise.
29441 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
29443 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
29444 on darwin12 and later.
29445 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
29446 file to pass -rdynamic on darwin12 and later.
29447 * config/darwin.opt (rdynamic): Add.
29449 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29451 * doc/extend.texi (C Extensions): Update menu for moved Variable
29452 Attributes and Type Attributes sections.
29454 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29457 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
29458 if rep_8byte stringop strategy was specified for 32-bit target.
29460 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
29463 * config/i386/i386.md (vector convert to float spltiter): Check for
29464 xmm16+, when splitting scalar float conversion.
29465 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
29467 2015-05-05 Nick Clifton <nickc@redhat.com>
29469 * config/msp430/msp430-opts.h (enum msp430_regions): New.
29470 * config/msp430/msp430.c (msp430_override_options): Complain if
29471 -mcode-region or -mdata-region is used on a non MSP430X.
29472 (msp430_section_attr): New function. Checks lower, upper and
29474 (msp430_attribute_table): Add lower, upper and either.
29475 (gen_prefix): New function. Generates a prefix for a section
29477 (msp430_select_section): New function - handles the choice of
29478 section for an object. Takes into account memory region
29479 attributes and options.
29480 (msp430_function_section): Use gen_prefix.
29481 (TARGET_SECTION_TYPE_FLAGS): Define.
29482 (msp430_section_type_flags): New function.
29483 (TARGET_ASM_UNIQUE_SECTION): Define.
29484 (msp430_unique_section): New function.
29485 (msp430_output_aligned_decl_common): New function.
29486 (msp430_do_not_relax_short_jumps): New function.
29487 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
29489 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
29490 * config/msp430/msp430-protos.h
29491 (msp430_do_not_relax_short_jumps): New prototype.
29492 (msp430_output_aligned_decl_common): New prototype.
29493 * config/msp430/msp430.md (length): New attribute.
29494 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
29495 then use a long code sequence for short jumps.
29496 * config/msp430/msp430.opt (mcode-region): New.
29497 (mdata-region): New.
29498 * doc/invoke.texi: Document new options.
29499 * doc/extend.texi: Document new attributes.
29501 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
29503 * config/aarch64-protos.h (struct cpu_branch_cost): New.
29504 (tune_params): Add field branch_costs.
29505 (aarch64_branch_cost): Declare.
29506 * config/aarch64.c (generic_branch_cost): New.
29507 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
29508 (cortexa53_tunings): Likewise.
29509 (cortexa57_tunings): Likewise.
29510 (thunderx_tunings): Likewise.
29511 (xgene1_tunings): Likewise.
29512 (aarch64_branch_cost): Define.
29513 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
29515 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29517 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
29518 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
29519 * config/i386/i386.md: Ditto.
29520 * config/i386/winnt.c: Ditto.
29522 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
29524 * doc/extend.texi (__atomic Builtins): Move implementation details
29525 to the end of the description, rewrite opening paragraphs, state
29526 difference with __sync builtins, state C11/C++11 assumptions,
29527 weaken itemized descriptions, add explanation of memory model
29528 behaviour, expand description of compare-exchange, simplify text.
29530 2015-05-05 Renlin Li <renlin.li@arm.com>
29532 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
29534 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
29536 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
29537 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
29538 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
29539 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
29540 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
29541 * configure: Regenerate.
29542 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
29543 * doc/install.texi (aarch64*-*-*): Document new
29544 --enable-fix-cortex-a53-843419 option.
29545 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
29546 and -mno-fix-cortex-a53-843419 options.
29548 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29551 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
29553 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
29555 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
29556 fix overactive TYPE_MIN_VALUE check and add FIXME for type
29557 compatibility problems.
29559 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
29561 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
29563 (cbranchsi4_reg): New.
29564 * config/microblaze/microblaze.c
29565 (microblaze_expand_conditional_branch_reg): New.
29566 * config/microblaze/microblaze-protos.h
29567 (microblaze_expand_conditional_branch_reg): New prototype.
29569 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
29571 * config/microblaze/microblaze.md (peephole2): New.
29573 2015-05-04 Jeff Law <law@redhat.com>
29576 2015-05-04 Jeff Law <law@redhat.com>
29578 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29579 simplifier to narrow arithmetic.
29580 * generic-match-head.c: (types_match, single_use): New functions.
29581 * gimple-match-head.c: (types_match, single_use): New functions.
29583 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
29586 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
29587 (split_branches): Likewise.
29589 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
29591 * common.opt (fdelete-null-pointer-checks): Init to -1.
29592 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
29593 override flag_delete_null_pointer_checks default.
29594 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
29595 behavior re address zero. Better document target-specific behavior.
29596 (-fisolate-errneous-paths-dereference): Mention relationship to
29597 -fdelete-null-pointer-checks.
29599 2015-05-04 Jakub Jelinek <jakub@redhat.com>
29601 PR tree-optimization/65984
29602 * ubsan.c: Include tree-cfg.h.
29603 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
29604 stmt_could_throw_p test, rename can_throw variable to ends_bb.
29606 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
29608 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
29609 to CONST_DOUBLE_P predicate.
29610 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
29611 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
29612 allow only operands that satisfy standard_sse_constant_p predicate.
29613 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
29614 to CONST_DOUBLE_P predicate.
29616 2015-05-04 Jeff Law <law@redhat.com>
29618 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29619 simplifier to narrow arithmetic.
29620 * generic-match-head.c: (types_match, single_use): New functions.
29621 * gimple-match-head.c: (types_match, single_use): New functions.
29623 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
29625 * config/arm/arm.c: Restore bootstrap.
29627 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
29629 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
29630 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
29631 as CONST_WIDE_INT, not CONST_DOUBLE.
29632 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
29633 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
29634 (ix86_find_base_term): Do not check for CONST_DOUBLE.
29635 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
29636 (ix86_build_signbit_mask): Rewrite using wide ints.
29637 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
29638 (ix86_rtx_costs): Handle CONST_WIDE_INT.
29639 (find_constant): Ditto.
29640 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
29641 using gen_int_mode.
29642 * config/i386/predicates.md (x86_64_immediate_operand)
29643 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
29644 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
29645 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
29646 (const0_operand): Also match const_wide_int.
29647 (constm1_operand): Ditto.
29648 (const1_operand): Ditto.
29650 2015-05-04 Richard Biener <rguenther@suse.de>
29652 PR tree-optimization/65965
29653 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
29654 store groups at gaps.
29656 2015-05-04 Richard Biener <rguenther@suse.de>
29658 PR tree-optimization/65935
29659 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
29660 then make sure to apply that swapping to the IL.
29662 2015-05-04 Jakub Jelinek <jakub@redhat.com>
29664 * Makefile.in (PATCHLEVEL_c): New variable.
29665 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
29666 expand the same way as if DEVPHASE_c was non-empty.
29668 2015-05-04 Kai Tietz <ktietz@redhat.com>
29671 * lto-wrapper.c (run_gcc): Open filename
29674 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
29676 * doc/extend.texi (Variable Attributes, Type Attributes): Move
29677 sections up in file, to immediately after the Function Attributes
29680 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
29682 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
29684 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29686 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
29687 (insert_partition_copy_on_edge): Adjust.
29688 (insert_rtx_to_part_on_edge): Likewise.
29689 (insert_part_to_rtx_on_edge): Likewise.
29691 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29693 * function.c (set_return_jump_label): Change type of argument to
29695 * function.h (set_return_jump_label): Adjust.
29697 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29699 * reload.h (struct reg_equivs_t): Change type of init to
29701 * ira.c (fix_reg_equiv_init): Adjust.
29702 * reload1.c (eliminate_regs_1): Likewise.
29703 (init_eliminable_invariants): Likewise.
29705 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29707 * cselib.c (fp_setter_insn): Take a rtx_insn *.
29708 * cselib.h (fp_setter_insn): Adjust.
29710 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29712 * recog.c (struct validate_replace_src_data): Change type of
29713 insn field to rtx_insn *.
29714 (validate_replace_src_group): Change type of argument to rtx_insn *.
29715 * recog.h (validate_replace_src_group): Adjust.
29717 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29719 * haifa-sched.c: Change the type of some variables to rtx_insn *.
29720 * sched-deps.c: Likewise.
29721 * sched-int.h: Likewise.
29722 * sched-rgn.c: Likewise.
29723 * sel-sched.c: Likewise.
29725 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29728 * config/i386/i386.c: Change the type of some arguments to
29730 * config/arm/arm.c: Likewise.
29732 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29734 * lra-constraints.c: Change type of some arguments to rtx_insn *.
29736 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29738 * regcprop.c (kill_autoinc_value): Change type of argument to
29741 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29743 * genrecog.c (print_subroutine): Adjust.
29744 * recog.c (get_bool_attr_mask_uncached): Likewise.
29745 * recog.h (struct recog_data_d): Change the type of insn to
29748 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29750 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
29752 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29754 * df-problems.c (df_set_note): Change type of argument to
29757 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29759 * builtins.c (expand_builtin_trap): Change type of local
29760 variable to rtx_insn *.
29761 (add_sched_insns_for_speculation): Likewise.
29762 (ix86_emit_save_regs): Likewise.
29763 (get_scratch_register_on_entry): Likewise.
29764 (ix86_emit_restore_reg_using_pop): Likewise.
29765 (ix86_emit_leave): Likewise.
29766 (ix86_emit_restore_regs_using_mov): Likewise.
29767 (ix86_expand_epilogue): Likewise.
29769 (rl78_alloc_physical_registers_umul): Likewise.
29770 * cselib.c (discard_useless_locs): Likewise.
29771 (cselib_invalidate_regno): Likewise.
29772 (cselib_invalidate_mem): Likewise.
29773 * function.c (expand_function_start): Likewise.
29774 (emit_use_return_register_into_block): Likewise.
29775 * gcse.c: Likewise.
29776 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
29777 * ifcvt.c (noce_get_alt_condition): Likewise.
29778 * loop-doloop.c (doloop_condition_get): Likewise.
29779 * lra-constraints.c (inherit_in_ebb): Likewise.
29780 * modulo-sched.c (sms_schedule_by_order): Likewise.
29781 * recog.c (next_insn_tests_no_inequality): Likewise.
29782 * reorg.c (emit_delay_sequence): Likewise.
29783 (update_reg_dead_notes): Likewise.
29784 (fix_reg_dead_note): Likewise.
29785 (fill_slots_from_thread): Likewise.
29786 (delete_computation): Likewise.
29788 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
29790 * doc/extend.texi (Variable Attributes): Add menu and proper
29791 @nodes to subsections. Move Microsoft Windows attributes to
29792 their own subsection.
29793 (Type Attributes): Reorganize introduction to remove duplicate
29794 list of attributes. Add menu and proper @nodes to subsections.
29795 Alphabetize the main table of common attributes.
29797 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
29799 * match.pd: New simplification patterns.
29800 (x + (x & 1)) -> ((x + 1) & ~1)
29801 (x & ~(x & y)) -> ((x & ~y))
29802 (x | ~(x | y)) -> ((x | ~y))
29804 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29806 * target.def (attribute_table): Mention that struct attribute_spec
29807 is defined in tree-core.h rather than tree.h
29808 * doc/tm.texi: Regenerate.
29810 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
29812 * genrecog.c (test): Rename to rtx_test. Update rest of file
29815 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
29817 PR translation/65959
29818 * params.h (DEFPARAM): Rename msgid to nocmsgid.
29820 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
29822 * config/aarch64/aarch64-protos.h (tune_params):
29823 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
29824 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
29825 Return value depending on target.
29826 (generic_tunings): Initialize new target settings.
29827 (cortexa53_tunings): Likewise.
29828 (cortexa57_tunings): Likewise.
29829 (thunderx_tunings): Likewise.
29830 (xgene1_tunings): Likewise.
29832 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
29834 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
29835 Make Cortex-A53 shift costs more accurate.
29837 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29839 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
29842 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
29844 * config/aarch64/aarch64.c (aarch64_rtx_costs):
29845 Calculate cost of op0 and op1 in PLUS and MINUS cases.
29847 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29849 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
29850 Add cost of op0 in the compare-with-fpzero case.
29852 2015-04-30 David Malcolm <dmalcolm@redhat.com>
29854 * builtins.c (fold_builtin_1): Remove spurious second
29856 * cgraph.h (symtab_node::get_availability): Likewise.
29857 * opts.c (common_handle_option): Remove spurious second semicolon.
29858 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
29859 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
29861 2015-04-30 Caroline Tice <cmtice@google.com>
29863 PR gcov-profile/65929
29864 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
29865 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
29866 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
29867 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
29868 * doc/tm.texi: Regenerate.
29869 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
29870 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
29871 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
29872 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
29874 2015-04-30 Marek Polacek <polacek@redhat.com>
29876 * varasm.c (handle_cache_entry): Fix logic.
29878 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29880 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
29881 (*extrsi5_insn_uxtw_alt): Likewise.
29882 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
29883 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
29886 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29888 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
29891 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29893 * config/aarch64/aarch64.md
29894 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
29895 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
29896 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
29897 appropriately. Handle alternative EON form.
29899 2015-04-30 Renlin Li <renlin.li@arm.com>
29901 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
29902 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
29904 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
29907 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
29908 -fstrict-aliasing boundaries.
29910 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29912 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
29913 and [SU]MNEGL patterns.
29915 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29917 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
29918 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
29919 combined arithmetic-shift ops. Properly handle all shift and extend
29920 operations that can occur in combination with PLUS/MINUS.
29921 Rename maybe_fma to compound_p.
29922 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
29923 arithmetic and shift operations.
29925 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29927 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
29928 rather than arith_shift cost when costing ADD/MINUS of an
29931 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
29934 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
29937 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
29939 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
29940 are for the same position.
29942 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
29944 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
29946 (vectorize_loops): Use it.
29948 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
29950 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
29951 for aggregate types.
29952 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
29953 type to be non_ODR.
29954 * tree.c (need_assembler_name_p): Compute mangled name for
29955 non-fundamental types and integer types.
29957 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
29959 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
29961 * expr.c (expand_expr_real_2): Likewise.
29963 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
29965 * tree.c (build_common_builtin_nodes): Do not build
29966 __builtin_alloca_with_align as equivalent of library alloca.
29968 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
29970 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
29971 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
29973 * tree.c: Include print-tree.h and ipa-utils.h
29974 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
29975 (free_lang_data_in_cgraph): Call verify_type.
29976 (verify_type_variant): New function.
29977 (verify_type): New function.
29978 * tree.h (verify_type): Declare.
29980 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
29982 * config/mips/mips-cpus.def: (mips4): Change default processor
29983 from PROCESSOR_R8000 to PROCESSOR_R10000.
29985 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
29987 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
29988 la/jalr instead of jal.
29990 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
29993 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
29994 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
29995 (setcc+movzbl peephole2): Check also clobbered reg.
29996 (setcc+andl peephole2): Ditto.
29998 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
30001 * config/nvptx/mkoffload.c (target_ilp32): New variable.
30002 (main): Set it depending on "-foffload-abi=[...]".
30003 (compile_native, main): Use it to pass "-m32" or "-m64" to the
30006 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
30009 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
30010 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
30011 Flip lane index back at assembly time for bigendian.
30013 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
30015 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
30016 * gimplify.c (gimplify_omp_workshare): Use it.
30018 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30020 * Makefile.in (build/genrecog.o): Depend on inchash.h.
30021 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
30023 * genrecog.c: Rewrite most of the code except for the third page.
30025 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30027 * inchash.h, inchash.c: Include bconfig.h for build objects.
30028 * Makefile.in (build/inchash.o): New rule.
30030 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
30033 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
30034 number in type attribute expression.
30036 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30038 * loop-iv.c (canon_condition): Generalize to all types of integer
30041 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
30043 * gimple-walk.c: Prune duplicate or unneeded includes.
30044 (walk_gimple_asm): Only call parse_input_constraint or
30045 parse_output_constraint if their findings are used.
30046 Honour parse_input_constraint and parse_output_constraint
30049 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
30051 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
30053 2015-04-29 Tom de Vries <tom@codesourcery.com>
30055 PR tree-optimization/65893
30056 * passes.def (pass_all_optimizations): Move pass_stdarg to after
30059 2015-04-29 Richard Biener <rguenther@suse.de>
30061 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
30062 compute GROUP_SIZE for basic-block SLP.
30063 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
30064 take into account gaps.
30065 (vect_get_mask_element): Properly reject references to previous
30067 (vect_transform_slp_perm_load): Likewise.
30069 2015-04-29 Christian Bruel <christian.bruel@st.com>
30072 * config/i386/i386.c (ix86_default_align): New function.
30073 (ix86_override_options_after_change): Call ix86_default_align.
30074 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
30075 (ix86_override_options_after_change): New function.
30077 2015-04-28 Jeff Law <law@redhat.com>
30079 * tree-ssa-dom.c (record_equality); Fix comment typos.
30081 2015-04-28 Tom de Vries <tom@codesourcery.com>
30083 PR tree-optimization/65887
30084 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
30086 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
30088 * doc/extend.texi (Declaring Attributes of Functions): Split into
30089 subsections by target. Alphabetize the table of common attributes.
30090 Rewrite some of the introductory text to reflect the new structure.
30091 Update some cross-references to point to the new subsections.
30092 (Attribute Syntax): Put paragraph about "__" naming here. Remove
30093 duplicate copies in the discussion of function, label, and type
30096 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
30099 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
30101 2015-04-28 Jason Merrill <jason@redhat.com>
30104 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
30105 (finalize_type_size): Respect TYPE_USER_ALIGN.
30106 (layout_type) [ARRAY_TYPE]: Likewise.
30108 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
30110 * config/arm/arm.md (*arm_movt): Fix type attribute.
30111 (*cmpsi_shiftsi): Likewise.
30112 (*cmpsi_shiftsi_swp): Likewise.
30113 (*movsicc_insn): Likewise.
30114 (*cond_move): Likewise.
30115 (*if_plus_move): Likewise.
30116 (*if_move_plus): Likewise.
30117 (*if_arith_move): Likewise.
30118 (*if_move_arith): Likewise.
30119 (*if_shift_move): Likewise.
30120 (*if_move_shift): Likewise.
30121 (*arm_movtas_ze): Likewise.
30122 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
30123 redundancy and type attribute.
30124 (*thumb2_movsi_insn): Fix type attribute.
30125 (*thumb2_addsi_short): Likewise.
30126 (thumb2_addsi3_compare0): Likewise.
30127 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
30128 attributes accordingly.
30130 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
30133 * function.c (pad_to_arg_alignment): Add parentheses.
30135 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
30137 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
30138 libgcc/config/frv/elf-lib.h.
30140 2015-04-28 Tom de Vries <tom@codesourcery.com>
30142 * tree-call-cdce.c: Fix example in header comment.
30144 2015-04-28 Richard Biener <rguenther@suse.de>
30146 PR tree-optimization/62283
30147 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
30148 fails fatally and we are vectorizing a basic-block simply
30149 cause the child to be constructed piecewise.
30150 (vect_analyze_slp_cost_1): Adjust.
30151 (vect_detect_hybrid_slp_stmts): Likewise.
30152 (vect_bb_slp_scalar_cost): Likewise.
30153 (vect_get_constant_vectors): For piecewise constructed
30154 constants place them after the last def.
30155 (vect_get_slp_defs): Adjust.
30156 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
30157 externals for basic-block vectorization.
30159 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
30162 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
30164 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
30165 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
30166 (AARCH64_TUNE_FMA_STEERING): Likewise.
30167 * config/aarch64/aarch64-cores.def: Set
30168 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
30169 FMUL/FMADD instructions.
30170 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
30171 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
30172 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
30173 * config/aarch64/cortex-a57-fma-steering.h: New file.
30174 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
30176 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
30178 * gensupport.c (std_preds): Add missing codes to address_operand entry.
30180 2015-04-28 Richard Biener <rguenther@suse.de>
30182 PR tree-optimization/65851
30183 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
30184 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
30185 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
30186 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
30187 (ccp_visit_phi_node): Adjust.
30188 (evaluate_stmt): For simplifications to SSA names return its
30189 lattice value if that isn't VARYING. Return immediately when
30190 simplified to a constant.
30191 (visit_assignment): Adjust.
30192 (ccp_visit_stmt): Likewise.
30194 2015-04-28 Tom de Vries <tom@codesourcery.com>
30196 PR tree-optimization/65818
30197 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
30200 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30202 * calls.c (save_fixed_argument_area): Don't check
30203 ARGS_GROW_DOWNWARD with the preprocessor.
30204 (restore_fixed_argument_area): Likewise.
30205 (mem_overlaps_already_clobbered_arg_p): Likewise.
30206 (check_sibcall_argument_overlap): Likewise.
30207 (expand_call): Likewise.
30208 (emit_library_call_value_1): Likewise.
30209 (store_one_arg): Likewise.
30210 * function.c (assign_parms): Likewise.
30211 (locate_and_pad_parm): Likewise.
30212 (pad_to_arg_alignment): Likewise.
30213 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
30215 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30217 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
30218 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
30219 * calls.c (save_fixed_argument_area): Don't chekc if
30220 ARGS_GROW_DOWNWARD is defined.
30221 (restore_fixed_argument_area): Likewise.
30222 (mem_overlaps_already_clobbered_arg_p): Likewise.
30223 (check_sibcall_argument_overlap): Likewise.
30224 (expand_call): Likewise.
30225 (emit_library_call_value_1): Likewise.
30226 (store_one_arg): Likewise.
30227 * function.c (assign_parms): Likewise.
30228 (locate_and_pad_parm): Likewise.
30229 (pad_to_arg_alignment): Likewise.
30230 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
30232 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30234 * defaults.h (gen_epilogue): New function.
30235 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
30237 * cfgrtl.c (cfg_layout_finalize): Likewise.
30238 * df-scan.c: Likewise.
30239 * function.c (thread_prologue_and_epilogue_insns): Likewise.
30240 (reposition_prologue_and_epilogue_notes): Likewise.
30241 * reorg.c (find_end_label): Likewise.
30242 * toplev.c: Likewise.
30244 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30246 * bb-reorder.c (HAVE_return): Don't check if its undefined.
30247 * defaults.h (gen_simple_return): New function.
30248 (gen_simple_return): Likewise.
30249 (HAVE_return): Add default definition to false.
30250 (HAVE_simple_return): Likewise.
30251 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
30252 HAVE_return and HAVE_simple_return are defined.
30253 * function.c (gen_return_pattern): Likewise.
30254 (convert_jumps_to_returns): Likewise.
30255 (thread_prologue_and_epilogue_insns): Likewise.
30256 * reorg.c (find_end_label): Likewise.
30257 (dbr_schedule): Likewise.
30258 * shrink-wrap.c: Likewise.
30259 * shrink-wrap.h: Likewise.
30261 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30263 * defaults.h (EPILOGUE_USES): Add default definition of false.
30264 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
30265 * resource.c (init_resource_info): Likewise.
30267 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30269 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
30271 * dwarf2out.c (field_byte_offset): REmove check if
30272 PCC_BITFIELD_TYPE_MATTERS is defined.
30273 * stor-layout.c (layout_decl): Likewise.
30274 (update_alignment_for_field): Likewise.
30275 (place_field): Likewise.
30277 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30279 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
30281 * regrename.c (check_new_reg_p): Remove check if
30282 HARD_REGNO_RENAME_OK is defined.
30283 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
30285 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30287 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
30288 * cse.c (fold_rtx): Likewise.
30289 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
30290 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
30291 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
30292 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
30293 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
30294 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
30295 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
30296 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
30297 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
30298 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
30300 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
30301 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
30302 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
30303 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
30304 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
30305 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
30306 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
30307 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
30308 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
30309 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
30310 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
30311 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
30312 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
30313 * doc/tm.texi: Regenerate.
30314 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
30315 either true or false.
30317 2015-04-27 Jeff Law <law@redhat.com>
30319 PR tree-optimization/65217
30320 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
30321 of them has a single use, make sure it is the LHS of the implied
30324 2015-04-28 Alan Modra <amodra@gmail.com>
30327 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
30328 (offsettable_ok_by_alignment): Use minimum of decl and toc
30329 pointer alignment. Replace dead code with assertion.
30330 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
30331 case if size exceeds toc pointer alignment.
30332 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
30333 (rs6000_emit_move): Likewise.
30334 * configure.ac: Add linker toc pointer alignment check.
30335 * configure: Regenerate.
30336 * config.in: Regenerate.
30338 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
30340 * config.gcc: Add h8300-*-linux.
30341 * config/h8300/linux.h: New.
30342 * config/h8300/t-linux: New.
30343 * config/h8300/h8300.c (h8300_option_override): Normal mode
30344 is not supported for h8300-*-linux.
30345 (h8300_file_start): Target priority change.
30346 (get_shift_alg): Likewise.
30347 (h8300_shift_need_scratch_p): Likewise.
30348 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
30349 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
30351 2015-04-27 Caroline Tice <cmtice@google.com>
30353 * final.c (final_scan_insn): Output cold_function_name as function
30355 * varasm.c (cold_function_name): Make global.
30356 (assemble_start_function): Re-set cold_function_name.
30357 (assemble_end_function): Output cold partition size.
30358 * varasm.h (cold_function_name): Declare global.
30360 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
30362 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
30363 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
30365 (*movxi_internal_avx512f): Ditto.
30366 (define_split): Check for xmm16+, when splitting scalar float_extend.
30367 (*extendsfdf2_mixed): Use "v" constraint.
30368 (define_split): Check for xmm16+, when splitting scalar float_truncate.
30369 (*truncdfsf_fast_sse): Use "v" constraint.
30370 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
30371 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
30372 (define_peephole2): Check for xmm16+, when converting scalar
30374 (define_peephole2): Check for xmm16+, when converting scalar
30376 (*fop_<mode>_comm_mixed): Use "v" constraint.
30377 (*fop_<mode>_comm_sse): Ditto.
30378 (*fop_<mode>_1_mixed): Ditto.
30379 (*sqrt<mode>2_sse): Ditto.
30380 (*ieee_s<ieee_maxmin><mode>3): Ditto.
30382 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30384 * combine.c (simplify_if_then_else): Use std::swap instead
30385 of manually swapping.
30386 (known_cond): Likewise.
30387 (simplify_comparison): Likewise.
30389 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
30392 * config/rs6000/htm.md: Remove all define_expands.
30393 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
30394 UNSPECV_HTM_TABORTWCI): Remove.
30395 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
30396 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
30397 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
30398 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
30399 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
30400 tabortwci_internal): Remove define_insns.
30401 (tabort<wd>c, tabort<wd>ci): New define_insns.
30402 (tabort): Use gpc_reg_operand.
30403 (tcheck): Remove operand.
30404 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
30405 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
30407 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
30408 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
30409 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
30410 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
30411 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
30412 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
30413 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
30414 (tcheck): Remove builtin argument.
30415 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
30417 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
30418 tabortdc and tabortdci builtins when not in 64-bit mode.
30419 Modify code to handle the loss of the HTM define_expands.
30420 Emit code to copy the CR register to TARGET.
30421 (htm_init_builtins): Modify code to handle the loss of the HTM
30423 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
30424 (RS6000_BTC_64BIT): Likewise.
30425 (RS6000_BTC_CR): New macro.
30426 * doc/extend.texi: Update documentation for htm builtins.
30428 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30430 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
30431 of manually swapping.
30432 (simplify_associative_operation): Likewise.
30433 (simplify_binary_operation): Likewise.
30434 (simplify_plus_minus): Likewise.
30435 (simplify_relational_operation): Likewise.
30436 (simplify_ternary_operation): Likewise.
30438 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
30440 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
30441 (xs_hi_nonmemory_operand): Remove error.
30442 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
30443 general_operand rather than xs_hi_general_operand.
30445 2015-04-27 Richard Biener <rguenther@suse.de>
30447 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
30448 (record_equivalences_from_stmt): Valueize rhs.
30449 (record_equality): Canonicalize x and y order via
30450 tree_swap_operands_p. Do not swap operands for same loop depth.
30452 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
30456 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
30457 Add hint how to use own spec file.
30459 2015-04-27 Jakub Jelinek <jakub@redhat.com>
30461 PR tree-optimization/65875
30462 * tree-vrp.c (update_value_range): If in is_new case setting
30463 old_vr to VR_VARYING, also set new_vr to it. Remove
30464 old_vr->type == VR_VARYING test.
30465 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
30466 SSA_PROP_INTERESTING if update_value_range returned true,
30467 but new range is VR_VARYING.
30469 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
30471 * combine.c (sign_extend_short_imm): New.
30472 (set_nonzero_bits_and_sign_copies): Use above new function for sign
30473 extension of src short immediate.
30474 (reg_nonzero_bits_for_combine): Likewise for tem.
30476 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
30478 * stor-layout.c (self_referential_component_ref_p): New predicate.
30479 (copy_self_referential_tree_r): Use it.
30480 (self_referential_size): Punt for simple operations directly involving
30481 self-referential component references.
30482 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
30484 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
30486 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
30488 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
30490 * vec.h (vec): Make splice arguments const. Update definitions
30493 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
30495 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
30498 2015-04-26 Tom de Vries <tom@codesourcery.com>
30500 PR tree-optimization/65826
30501 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
30503 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
30505 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
30506 (*madd3<mode>): Ditto.
30507 (*msub4<mode>): Ditto.
30508 (*msub3<mode>): Ditto.
30509 (*nmadd4<mode>): Ditto.
30510 (*nmadd3<mode>): Ditto.
30511 (*nmadd4<mode>_fastmath): Ditto.
30512 (*nmadd3<mode>_fastmath): Ditto.
30513 (*nmsub4<mode>): Ditto.
30514 (*nmsub3<mode>): Ditto.
30515 (*nmsub4<mode>_fastmath): Ditto.
30516 (*nmsub3<mode>_fastmath): Ditto.
30518 2015-04-24 Jason Merrill <jason@redhat.com>
30521 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
30522 down when building TYPE_CANONICAL.
30523 (build_pointer_type_for_mode): Likewise.
30525 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
30527 * genrecog.c (validate_pattern): Check matching constraint refers
30528 to a lower numbered operand.
30530 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
30533 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
30534 save to independent variables use the Save attribute. This will
30535 allow these options to be modified with the #pragma/attribute
30537 (-mallow-movmisalign): Likewise.
30538 (-mallow-df-permute): Likewise.
30539 (-msched-groups): Likewise.
30540 (-malways-hint): Likewise.
30541 (-malign-branch-targets): Likewise.
30542 (-mvectorize-builtins): Likewise.
30543 (-msave-toc-indirect): Likewise.
30545 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
30546 can be set via the #pragma/attribute target support.
30547 (rs6000_opt_vars): Likewise.
30548 (rs6000_inner_target_options): If VSX was set, also set
30549 -mno-avoid-indexed-addresses.
30551 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30553 * config/arm/iterators.md (shiftable_ops): Rename to...
30554 (SHIFTABLE_OPS): ... This. Update use in comments.
30555 (ior_xor): Rename to...
30556 (IOR_XOR): ... This.
30557 (vqh_ops): Rename to...
30558 (VQH_OPS): ... This.
30559 (vqhs_ops): Rename to...
30560 (VQHS_OPS): ... This.
30561 (rshifts): Rename to...
30562 (RSHIFTS): ... This.
30563 (returns): Rename to...
30564 (RETURNS): ... This.
30565 * config/arm/arm.md: Update uses of the above.
30566 * config/arm/neon.md: Likewise.
30568 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30570 * config.host (case ${host}): Add aarch64*-*-linux case.
30571 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
30572 fields to all the cores.
30573 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
30574 Add MCPU_MTUNE_NATIVE_SPECS.
30575 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
30576 field to all extensions.
30577 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
30578 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
30579 Adjust definition of AARCH64_OPT_EXTENSION.
30580 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
30581 (MCPU_MTUNE_NATIVE_SPECS): Define.
30582 * config/aarch64/driver-aarch64.c: New file.
30583 * config/aarch64/x-arch64: New file.
30584 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
30587 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
30588 Wei Mi <wmi@google.com>
30590 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
30591 * config/i386/i386.c (extract_base_offset_in_addr): New function.
30592 (ix86_operands_ok_for_move_multiple): Ditto.
30593 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
30594 (movlpd/movhpd to movupd peephole2): Ditto.
30596 2015-04-24 Marek Polacek <polacek@redhat.com>
30599 * input.h (from_macro_expansion_at): Define.
30602 * doc/invoke.texi: Update description of -Wlogical-op.
30604 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
30606 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
30607 ternary operator in fprintf and harmonize spacing.
30609 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
30611 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
30612 Mark operand1 commutative.
30614 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
30616 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
30617 input operands in memory.
30618 (*vec_concatv2si_sse4_1): Ditto.
30619 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
30620 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
30622 (vec_extract_hi_v32hi): Ditto.
30623 (vec_extract_hi_v64hi): Ditto.
30624 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
30626 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
30627 Steven Bosscher <steven@gcc.gnu.org>
30629 PR rtl-optimization/34503
30630 * cprop.c (cprop_reg_p): New.
30631 (hash_scan_set): Use above function to check if register can be
30633 (find_avail_set): Return up to two sets, one whose source is a
30634 register and one whose source is a constant. Sets are returned in an
30635 array passed as parameter rather than as a return value.
30636 (cprop_insn): Use a do while loop rather than a goto. Try each of the
30637 sets returned by find_avail_set, starting with the one whose source is
30638 a constant. Use cprop_reg_p to check if register can be propagated.
30639 (do_local_cprop): Use cprop_reg_p to check if register can be
30641 (implicit_set_cond_p): Likewise.
30643 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30645 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
30646 (sem_function::equals): IGNORED_NODES parameter is now unused;
30647 update call of equals_private.
30648 (sem_function::equals_private): Do not call equals_wpa; skip
30649 gimple body matching if there is no body.
30650 (sem_function::init): Add logic to hash tthunk info.
30651 (sem_function::parse): Also parse thunks.
30652 * ipa-icf.h (equals_private): Update declaration.
30654 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30656 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
30657 asterisk from name so this can be generated directly.
30658 (*altivec_stvx_<mode>_internal): Likewise.
30659 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
30660 that this is never called during or after reload/lra.
30661 (rs6000_frame_related): Remove split_reg
30662 argument and logic that references it.
30663 (emit_frame_save): Remove last parameter from call to
30664 rs6000_frame_related.
30665 (rs6000_emit_prologue): Remove last parameter from eight calls to
30666 rs6000_frame_related. Force generation of stvx instruction for
30667 Altivec register saves. Remove split_reg handling, which is no
30669 (rs6000_emit_epilogue): Force generation of lvx instruction for
30670 Altivec register restores.
30672 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30674 * config/rs6000/rs6000.opt (mcrypto): Change option description to
30675 match category changes in ISA 2.07B.
30677 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30679 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
30681 (cmp_op, cmp_type): New code attributes.
30682 (NEON_VCMP, NEON_VACMP): New int iterators.
30683 (cmp_op_unsp): New int attribute.
30684 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
30685 (neon_vceq<mode>): Delete.
30686 (neon_vc<cmp_op><mode>_insn): New pattern.
30687 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
30688 (neon_vcgeu<mode>): Delete.
30689 (neon_vcle<mode>): Likewise.
30690 (neon_vclt<mode>: Likewise.
30691 (neon_vcage<mode>): Likewise.
30692 (neon_vcagt<mode>): Likewise.
30693 (neon_vca<cmp_op><mode>): New define_expand.
30694 (neon_vca<cmp_op><mode>_insn): New pattern.
30695 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
30697 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30699 * tree.h (attribute_value_equal): Declare.
30700 * tree.c (attribute_value_equal): Export.
30702 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30704 * ipa-icf.c (sem_item::compare_attributes): New function.
30705 (sem_item::compare_referenced_symbol_properties): Compare variable
30707 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
30708 (sem_function::param_used_p): New function.
30709 (sem_function::equals_wpa): Fix attribute comparsion; match
30710 parameter type codes; do not compare paremter flags when
30711 they are not used; compare edge flags; compare indirect calls.
30712 (sem_item::update_hash_by_addr_refs): Hash reference type.
30713 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
30714 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
30715 reference use type.
30716 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
30717 * ipa-icf.h (compare_attributes, param_used_p): Declare.
30719 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30721 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
30723 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
30724 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
30725 (sem_item::compare_referenced_symbol_properties): New.
30726 (sem_item::hash_referenced_symbol_properties): New.
30727 (sem_item::compare_cgraph_references): Rename to ...
30728 (sem_item::compare_symbol_references): ... this one; use
30729 compare_referenced_symbol_properties.
30730 (sem_function::equals_wpa): Do not compare
30731 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
30732 DECL_IS_OPERATOR_NEW; compare pointer sizes.
30733 (sem_item::update_hash_by_addr_refs): Call
30734 hash_referenced_symbol_properties.
30735 (sem_item::update_hash_by_local_refs): Cleanup.
30736 (sem_function::merge): Do not mix up symbol properties.
30737 (sem_variable::equals_wpa): Use compare_symbol_references.
30738 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
30739 (sem_item::hash_referenced_symbol_properties): New.
30740 (sem_item::compare_symbol_references): New.
30741 (sem_item::compare_cgraph_references): Remove.
30743 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
30746 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
30747 Emit size of local.
30749 2015-04-23 Nick Clifton <nickc@redhat.com>
30751 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
30752 ATTRIBUTE_UNUSED to x parameter.
30753 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
30755 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30757 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
30758 TARGET_CRYPTO to TARGET_P8_VECTOR>
30759 (crypto_vpermxor_<mode>): Likewise.
30760 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
30761 (BU_CRYPTO_3A): Likewise.
30762 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
30763 (BU_CRYPTO_OVERLOAD_3A): New #define.
30764 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
30765 (VPMSUMH): Likewise.
30766 (VPMSUMW): Likewise.
30767 (VPMSUMD): Likewise.
30768 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
30769 (VPERMXOR_V4SI): Likewise.
30770 (VPERMXOR_V8HI): Likewise.
30771 (VPERMXOR_V16QI): Likewise.
30772 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
30773 BU_CRYPTO_OVERLOAD_2A.
30774 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
30775 BU_CRYPTO_OVERLOAD_3A.
30776 * config/rs6000/rs6000.opt (mcrypto): Change description of
30779 2015-04-23 Richard Biener <rguenther@suse.de>
30781 * passes.def: Remove copy propagation passes run directly after CCP.
30782 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
30784 (ccp_visit_phi_node): Rework to handle first executable edge
30787 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
30789 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
30790 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
30791 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
30792 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
30793 (thumb_legimitimize_reload_address): Remove.
30794 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
30796 (thumb_legimitimize_reload_address): Remove.
30798 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30800 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
30802 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30804 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
30806 (store_multiple): Likewise.
30808 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30810 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
30811 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
30812 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
30813 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
30814 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
30815 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
30816 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
30817 Specify issue_rate value.
30818 (arm_issue_rate): Look up issue rate from tuning structs. Remove
30819 large switch statement.
30820 (arm_marvell_pj4_tune): New struct.
30821 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
30824 2015-04-23 Richard Biener <rguenther@suse.de>
30826 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
30827 (vect_find_last_store_in_slp_instance): Rename to ...
30828 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
30829 (vect_analyze_slp_cost_1): Use vector_load for constant defs
30830 and vec_construct for external defs when estimating prologue cost.
30831 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
30832 Compute costs here only when vectorizing loops.
30833 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
30834 have been determined.
30835 (vect_schedule_slp_instance): Simplify vectorized code placement
30836 and prepare for in-BB external defs.
30837 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
30838 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
30839 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
30841 (vect_model_load_cost): Likewise.
30842 (vectorizable_store): Instead add it here.
30843 (vectorizable_load): Likewise.
30844 (vect_is_simple_use): Dump def type textually.
30846 2015-04-23 Richard Biener <rguenther@suse.de>
30848 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
30849 * cfgloop.c (verify_loop_structure): Verify the root loop node.
30850 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
30851 instead of get_eh_region_from_lp_number.
30852 * loop-init.c (fix_loop_structure): If we removed a loop, reset
30855 2015-04-23 Anton Blanchard <anton@samba.org>
30857 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
30858 need for -mprofile-kernel to save LR to stack.
30860 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30862 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
30864 (insn_is_swappable_p): Return 1 for a convert from double to
30865 single precision when all of its uses are splats of BE element
30868 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
30870 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
30872 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30875 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
30876 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
30877 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
30879 (rs6000_builtin_mask_for_load): Return 0 for targets with
30880 efficient unaligned VSX accesses so that the vectorizer will use
30881 direct unaligned loads.
30882 (rs6000_builtin_support_vector_misalignment): Always return true
30883 for targets with efficient unaligned VSX accesses.
30884 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
30885 stores on targets with efficient unaligned VSX accesses is almost
30886 always the same as the cost of an aligned load or store, so model
30888 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
30889 unaligned vectors if we have efficient unaligned VSX accesses.
30890 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
30891 undocumented option.
30893 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30896 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
30898 * config.gcc (LIBC_MUSL): New tm_defines macro.
30899 * config/linux.h (OPTION_MUSL): Define.
30900 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30901 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30902 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30904 * config/linux.opt (mmusl): New option.
30905 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30906 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30908 * configure: Regenerate.
30910 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
30912 * config.gcc (LIBC_MUSL): New tm_defines macro.
30913 * config/linux.h (OPTION_MUSL): Define.
30914 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30915 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30916 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30918 * config/linux.opt (mmusl): New option.
30919 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30920 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30922 * configure: Regenerate.
30924 2015-04-22 Yury Gribov <y.gribov@samsung.com>
30926 * doc/invoke.texi (-fsanitize-sections): Update description.
30927 * asan.c (set_sanitized_sections): Parse incoming arg.
30928 (section_sanitized_p): Support wildcards.
30930 2015-04-22 Tom de Vries <tom@codesourcery.com>
30932 PR tree-optimization/65823
30933 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
30934 equality between ap_copy and ap.
30936 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30939 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
30941 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30944 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
30946 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30949 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
30950 remove already contained t-files.
30952 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30954 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
30955 Remove unneeded forward declarations.
30956 (suitable_for_tail_call_opt_p): Commentary typo fix.
30958 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30960 * varasm.c (emit_bss): Remove redundant guard.
30962 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30964 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
30966 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30968 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
30970 2015-04-22 Hale Wang <hale.wang@arm.com>
30971 Terry Guo <terry.guo@arm.com>
30973 PR rtl-optimization/64818
30974 * combine.c (can_combine_p): Don't combine user-specified
30975 register if it is in an asm input.
30977 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
30980 * passes.def (early_optimizations): Add pass_dse.
30982 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30984 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
30985 * reorg.c (redundant_insn): Remove ifdef
30986 INSN_REFERENCES_ARE_DELAYED.
30987 * resource.c (mark_referenced_resources): Likewise.
30989 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30991 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
30992 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
30993 * resource.c (mark_set_resources): Likewise.
30995 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30997 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
30998 * cfgcleanup.c (flow_find_cross_jump): Likewise.
30999 (flow_find_head_matching_sequence): Likewise.
31000 (try_head_merge_bb): Likewise.
31001 * combine.c (can_combine_p): Likewise.
31002 (try_combine): Likewise.
31003 (distribute_notes): Likewise.
31004 * df-problems.c (can_move_insns_across): Likewise.
31005 * final.c (final): Likewise.
31006 * gcse.c (insert_insn_end_basic_block): Likewise.
31007 * ira.c (find_moveable_pseudos): Likewise.
31008 * reorg.c (try_merge_delay_insns): Likewise.
31009 (fill_simple_delay_slots): Likewise.
31010 (fill_slots_from_thread): Likewise.
31011 * sched-deps.c (sched_analyze_2): Likewise.
31013 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31015 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
31016 PIC_OFFSET_TABLE_REGNUM.
31018 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31020 * alias.c (init_alias_target): Remove ifdef
31021 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
31022 * df-scan.c (df_insn_refs_collect): Likewise.
31023 (df_get_regular_block_artificial_uses): Likewise.
31024 (df_get_eh_block_artificial_uses): Likewise.
31025 (df_get_entry_block_def_set): Likewise.
31026 (df_get_exit_block_use_set): Likewise.
31027 * emit-rtl.c (gen_rtx_REG): Likewise.
31028 * ira.c (ira_setup_eliminable_regset): Likewise.
31029 * reginfo.c (init_reg_sets_1): Likewise.
31030 * regrename.c (rename_chains): Likewise.
31031 * reload1.c (reload): Likewise.
31032 (eliminate_regs_in_insn): Likewise.
31033 * resource.c (mark_referenced_resources): Likewise.
31034 (init_resource_info): Likewise.
31036 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31038 * defaults.h (MASK_RETURN_ADDR): New definition.
31039 * except.c (expand_builtin_extract_return_addr): Remove ifdef
31042 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31044 * defaults.h (RETURN_ADDR_OFFSET): New definition.
31045 * except.c (expand_builtin_extract_return_addr): Remove ifdef
31046 RETURN_ADDR_OFFSET.
31047 (expand_builtin_frob_return_addr): Likewise.
31049 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31051 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
31052 (try_redirect_by_replacing_jump): Likewise.
31053 (rtl_tidy_fallthru_edge): Likewise.
31054 * combine.c (insn_a_feeds_b): Likewise.
31055 (find_split_point): Likewise.
31056 (simplify_set): Likewise.
31057 * cprop.c (cprop_jump): Likewise.
31058 * cse.c (cse_extended_basic_block): Likewise.
31059 * df-problems.c (can_move_insns_across): Likewise.
31060 * function.c (emit_use_return_register_into_block): Likewise.
31061 * haifa-sched.c (sched_init): Likewise.
31062 * ira.c (find_moveable_pseudos): Likewise.
31063 * loop-invariant.c (find_invariant_insn): Likewise.
31064 * lra-constraints.c (curr_insn_transform): Likewise.
31065 * postreload.c (reload_combine_recognize_const_pattern):
31067 * reload.c (find_reloads): Likewise.
31068 * reorg.c (delete_scheduled_jump): Likewise.
31069 (steal_delay_list_from_target): Likewise.
31070 (steal_delay_list_from_fallthrough): Likewise.
31071 (redundant_insn): Likewise.
31072 (fill_simple_delay_slots): Likewise.
31073 (fill_slots_from_thread): Likewise.
31074 (delete_computation): Likewise.
31075 * sched-rgn.c (add_branch_dependences): Likewise.
31077 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31079 * genconfig.c (main): Always define HAVE_cc0.
31080 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
31082 * cfgcleanup.c (flow_find_cross_jump): Likewise.
31083 (flow_find_head_matching_sequence): Likewise.
31084 (try_head_merge_bb): Likewise.
31085 * cfgrtl.c (rtl_merge_blocks): Likewise.
31086 (try_redirect_by_replacing_jump): Likewise.
31087 (rtl_tidy_fallthru_edge): Likewise.
31088 * combine.c (do_SUBST_MODE): Likewise.
31089 (insn_a_feeds_b): Likewise.
31090 (combine_instructions): Likewise.
31091 (can_combine_p): Likewise.
31092 (try_combine): Likewise.
31093 (find_split_point): Likewise.
31095 (simplify_set): Likewise.
31096 (distribute_notes): Likewise.
31097 * cprop.c (cprop_jump): Likewise.
31098 * cse.c (cse_extended_basic_block): Likewise.
31099 * df-problems.c (can_move_insns_across): Likewise.
31100 * final.c (final): Likewise.
31101 (final_scan_insn): Likewise.
31102 * function.c (emit_use_return_register_into_block): Likewise.
31103 * gcse.c (insert_insn_end_basic_block): Likewise.
31104 * haifa-sched.c (sched_init): Likewise.
31105 * ira.c (find_moveable_pseudos): Likewise.
31106 * loop-invariant.c (find_invariant_insn): Likewise.
31107 * lra-constraints.c (curr_insn_transform): Likewise.
31108 * optabs.c (prepare_cmp_insn): Likewise.
31109 * postreload.c (reload_combine_recognize_const_pattern):
31111 * reload.c (find_reloads): Likewise.
31112 (find_reloads_address_1): Likewise.
31113 * reorg.c (delete_scheduled_jump): Likewise.
31114 (steal_delay_list_from_target): Likewise.
31115 (steal_delay_list_from_fallthrough): Likewise.
31116 (try_merge_delay_insns): Likewise.
31117 (redundant_insn): Likewise.
31118 (fill_simple_delay_slots): Likewise.
31119 (fill_slots_from_thread): Likewise.
31120 (delete_computation): Likewise.
31121 (relax_delay_slots): Likewise.
31122 * sched-deps.c (sched_analyze_2): Likewise.
31123 * sched-rgn.c (add_branch_dependences): Likewise.
31125 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31127 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
31128 that is trivially ded on non cc0 targets.
31129 (simplify_set): Likewise.
31130 (mark_used_regs_combine): Likewise.
31131 * cse.c (new_basic_block): Likewise.
31132 (fold_rtx): Likewise.
31133 (cse_insn): Likewise.
31134 (cse_extended_basic_block): Likewise.
31135 (set_live_p): Likewise.
31136 * rtlanal.c (canonicalize_condition): Likewise.
31137 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
31139 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31141 * conditions.h: Define macros even if HAVE_cc0 is undefined.
31142 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
31143 * final.c: Likewise.
31144 * jump.c: Likewise.
31145 * recog.c: Likewise.
31146 * recog.h: Declare functions even when HAVE_cc0 is undefined.
31147 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
31149 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31151 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
31152 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
31153 * builtins.c (expand_builtin): Remove check if
31154 EH_RETURN_DATA_REGNO is defined.
31155 * df-scan.c (df_bb_refs_collect): Likewise.
31156 (df_get_exit_block_use_set): Likewise.
31157 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
31158 * ira-lives.c (process_bb_node_lives): Likewise.
31159 * lra-lives.c (process_bb_lives): Likewise.
31161 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
31163 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
31164 FIRST_PSEUDO_REG): New.
31165 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
31166 (ARG_POINTER_REGNUM): Define to ARGP_REG.
31167 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
31168 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
31169 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
31170 (FIRST_INT_REG): New.
31171 (LAST_INT_REG): New.
31172 (FIRST_*_REG): Define using *_REG.
31173 (LAST_*_REG): Ditto.
31174 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
31175 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
31176 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
31178 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31180 * expmed.c: (synth_mult): Only assume overlapping
31181 shift with previous steps in alg_sub_t_m2 case.
31183 2015-04-21 Richard Biener <rguenther@suse.de>
31185 PR tree-optimization/65650
31186 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
31187 transitions involving copies.
31188 (set_lattice_value): Adjust for copy lattice state.
31189 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
31190 if that doesn't dominate the merge point.
31191 (bit_value_unop): Adjust what we treat as varying mask.
31192 (bit_value_binop): Likewise.
31193 (bit_value_assume_aligned): Likewise.
31194 (evaluate_stmt): When we simplified to a SSA name record a copy
31195 instead of dropping to varying.
31196 (visit_assignment): Simplify.
31198 * gimple-match.h (gimple_simplify): Add another callback.
31199 * gimple-fold.c (fold_stmt_1): Adjust caller.
31200 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
31201 for the 2nd callback.
31202 * gimple-match-head.c (gimple_simplify): Add a callback that is
31203 used to valueize the stmt operands and use it that way.
31205 2015-04-21 Richard Biener <rguenther@suse.de>
31207 PR tree-optimization/65788
31208 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
31210 2015-04-21 Richard Biener <rguenther@suse.de>
31212 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
31213 vec_construct cost by vec_stmt_cost.
31215 2015-04-21 Richard Biener <rguenther@suse.de>
31217 * cfghooks.h (create_basic_block): Replace with two overloads
31218 for RTL and GIMPLE.
31219 (split_block): Likewise.
31220 * cfghooks.c (split_block): Rename to ...
31221 (split_block_1): ... this.
31222 (split_block): Add two type-safe overloads for RTL and GIMPLE.
31223 (split_block_after_labels): Call split_block_1.
31224 (create_basic_block): Rename to ...
31225 (create_basic_block_1): ... this.
31226 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
31227 (create_empty_bb): Call create_basic_block_1.
31228 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
31229 split_block_after_labels.
31230 * omp-low.c (expand_parallel_call): Likewise.
31231 (expand_omp_target): Likewise.
31232 (simd_clone_adjust): Likewise.
31233 * tree-chkp.c (chkp_get_entry_block): Likewise.
31234 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
31235 create_basic_block overload.
31236 (cgraph_node::expand_thunk): Likewise.
31237 * tree-cfg.c (make_blocks): Likewise.
31238 (handle_abnormal_edges): Likewise.
31239 * tree-inline.c (copy_bb): Likewise.
31241 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31243 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
31245 (*xor_one_cmplsidi3_ze): Likewise.
31247 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
31249 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
31250 use df_remove_problem rather than manually removing problems, leaving
31251 holes in df->problems_in_order[].
31253 2015-04-21 Tom de Vries <tom@codesourcery.com>
31255 PR tree-optimization/65802
31256 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
31258 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31260 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
31262 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
31263 at '.'. Assert that there's enough space for everything.
31265 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
31267 PR tree-optimization/64950
31269 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
31272 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
31275 2015-04-20 Shiva Chen <shiva0217@gmail.com>
31277 PR rtl-optimization/64916
31278 * cfgcleanup.c (values_equal_p): New function.
31279 (can_replace_by): Use it.
31281 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
31284 * doc/invoke.texi ([-Wnarrowing]): Update.
31286 2015-04-20 Jeff Law <law@redhat.com>
31288 PR tree-optimization/65658
31289 * tree-ssa-threadupdate.c (redirection_block_p): Remove
31290 redundant test for GIMPLE_ASSIGN in last change.
31292 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
31294 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
31295 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
31296 (legitimize_tls_address): Ditto.
31297 (ix86_expand_move): Ditto.
31298 (ix86_expand_binary_operator): Remove reload_in_progress checks.
31299 (ix86_expand_unary_operator): Ditto.
31300 * config/i386/predicates.md (index_register_operand): Ditto.
31302 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
31304 * reorg.c (try_merge_delay_insns): Improve correctness checking
31305 for targets with multiple delay slots.
31307 2015-04-20 Jeff Law <law@redhat.com>
31309 PR tree-optimization/65658
31310 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
31313 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
31315 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
31316 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
31319 2015-04-20 Jakub Jelinek <jakub@redhat.com>
31322 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
31324 2015-04-20 Richard Biener <rguenther@suse.de>
31326 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
31327 * gimple-fold.c (gimple_build_valueize): New function.
31328 (gimple_build): Always use gimple_build_valueize as valueize hook.
31330 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
31333 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
31334 and overwrite variable parts if <= 1/2 the elements are variable.
31336 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
31338 PR rtl-optimization/65805
31339 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
31340 Don't use difference of offset and previous offset if
31341 update_sp_offset is non-zero.
31342 (eliminate_regs_in_insn): Ditto.
31343 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
31344 lra_eliminate_regs_1 call.
31345 * lra-constraints.c (get_equiv_with_elimination): Ditto.
31347 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
31349 * hash-table.h: Remove version of hash_table that stored value_type *.
31350 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
31351 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
31352 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
31353 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
31354 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
31355 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
31356 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
31357 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
31358 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
31359 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
31360 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
31361 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
31362 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
31363 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
31364 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
31365 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
31367 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31368 Jakub Jelinek <jakub@redhat.com>
31371 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
31372 subsequent SH_NONE operand does not overwrite an existing *special
31374 (adjust_extract): Handle case where a vec_extract operation is
31375 wrapped in a PARALLEL.
31377 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
31380 * config/i386/i386.c (ix86_binds_local_p): Define only if
31381 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
31383 2015-04-17 Jeff Law <law@redhat.com>
31385 PR tree-optimization/47679
31386 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
31387 * tree-ssa-scopedtables.c: New file.
31388 * tree-ssa-scopedtables.h: New file.
31389 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
31390 (const_and_copies): Change name/type.
31391 (record_const_or_copy): Move into tree-ssa-scopedtables.c
31392 (record_const_or_copy_1): Similarly.
31393 (restore_vars_to_original_value): Similarly.
31394 (pass_dominator::execute): Create and destroy const_and_copies table.
31395 (thread_across_edge): Update passing of const_and_copies.
31396 (record_temporary_equivalence): Use method calls rather than
31397 manipulating const_and_copies directly.
31398 (record_equality, cprop_into_successor_phis): Similarly.
31399 (dom_opt_dom_walker::before_dom_children): Similarly.
31400 (dom_opt_dom_walker::after_dom_children): Similarly.
31401 (eliminate_redundant_computations): Similarly.
31402 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
31403 (record_temporary_equivalence): Likewise.
31404 (invalidate_equivalences): Likewise.
31405 (record_temporary_equivalences_from_phis): Update due to type
31406 change of const_and_copies. Use method calls rather than
31407 manipulating the stack directly.
31408 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
31409 (thread_through_normal_block, thread_across_edge): Likewise.
31410 (thread_across_edge): Likewise.
31411 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
31412 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
31414 (identify_jump_threads): Update due to type change of equiv_stack.
31415 (finalize_jump_threads): Delete the equiv_stack when complete.
31417 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
31419 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31420 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
31421 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
31423 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
31426 * config.gcc: Exit with a comment when we do not have a major version
31427 number for the FreeBSD target.
31429 2015-04-17 Jakub Jelinek <jakub@redhat.com>
31432 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
31433 maybe_allows_mem bitfields.
31434 (maybe_allows_none_start, maybe_allows_none_end,
31435 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
31436 maybe_allows_mem_end): New variables.
31437 (compute_maybe_allows): New function.
31438 (add_constraint): Use it to initialize maybe_allows_reg and
31439 maybe_allows_mem fields.
31440 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
31441 is_address constraints such that those that allow neither mem nor
31442 reg come first, then those that only allow reg but not mem, then
31443 those that only allow mem but not reg, then the rest.
31444 (write_allows_reg_mem_function): New function.
31445 (write_tm_preds_h): Call it.
31446 * stmt.c (parse_output_constraint, parse_input_constraint): Use
31447 the generated insn_extra_constraint_allows_reg_mem function
31448 instead of always setting *allows_reg = true; *allows_mem = true;
31449 for unknown extra constraints.
31451 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
31454 * output.h (default_binds_local_p_3): New.
31455 * varasm.c (default_binds_local_p_3): Make it public. Take an
31456 argument to indicate if common symbol may be local. If common
31457 symbol may be local, treat non-external variable as defined
31459 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
31460 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
31461 * config/i386/i386.c (ix86_binds_local_p): New.
31462 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
31463 ix86_binds_local_p.
31465 2015-04-17 Jakub Jelinek <jakub@redhat.com>
31468 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
31469 trying mem_loc_descriptor on XEXP (rtl, 0).
31471 2015-04-17 Martin Liska <mliska@suse.cz>
31473 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
31474 Release symbol_compare_collection.
31475 * ipa-reference.c: Add TODO that a vector should be released.
31477 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
31480 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
31481 to new AVR-LibC file layout (bug #44574).
31482 (*avrlibc_devicelib): Same.
31483 * config/avr/avr-mcus.def: Adjust comments.
31484 * config/avr/avr.opt (nodevicelib): Adjust help.
31486 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
31488 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
31490 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
31493 * gimplify.c (gimplify_init_constructor): Always emit a
31494 side-effecting constructor.
31496 2015-04-17 Tom de Vries <tom@codesourcery.com>
31498 PR tree-optimization/64950
31499 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
31500 in cfun->curr_properties.
31501 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
31502 if we generate an IFN_VA_ARG.
31503 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
31504 function if PROP_gimple_lva is not set in src function.
31506 2015-04-17 Tom de Vries <tom@codesourcery.com>
31507 Michael Matz <matz@suse.de>
31509 PR tree-optimization/64950
31510 * gimple-iterator.c (update_modified_stmts): Remove static.
31511 * gimple-iterator.h (update_modified_stmts): Declare.
31512 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
31513 (gimplify_va_arg_internal): New function.
31514 (gimplify_va_arg_expr): Use IFN_VA_ARG.
31515 * gimplify.h (gimplify_va_arg_internal): Declare.
31516 * internal-fn.c (expand_VA_ARG): New unreachable function.
31517 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
31518 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
31519 (expand_ifn_va_arg): New function.
31520 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
31521 (pass_stdarg::execute): Call expand_ifn_va_arg.
31522 (pass_data_lower_vaarg): New pass_data.
31523 (pass_lower_vaarg): New gimple_opt_pass.
31524 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
31525 (make_pass_lower_vaarg): New function.
31526 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
31527 properties_required field.
31528 * passes.def (all_passes): Add pass_lower_vaarg.
31529 * tree-pass.h (PROP_gimple_lva): Add define.
31530 (make_pass_lower_vaarg): Declare.
31532 2015-04-17 Tom de Vries <tom@codesourcery.com>
31534 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
31535 * calls.c (call_expr_flags): Same.
31537 2015-04-17 Tom de Vries <tom@codesourcery.com>
31539 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
31540 (pass_stdarg::execute): ... here.
31542 2015-04-17 Tom de Vries <tom@codesourcery.com>
31543 Michael Matz <matz@suse.de>
31545 * tree-cfg.c (make_blocks_1): Factor out of ...
31546 (make_blocks): ... here.
31547 (make_edges_bb): Factor out of ...
31548 (make_edges): ... here.
31549 (gimple_find_sub_bbs): New function.
31550 * tree-cfg.h (gimple_find_sub_bbs): Declare.
31552 2015-04-17 Tom de Vries <tom@codesourcery.com>
31554 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
31556 2015-04-17 Yury Gribov <y.gribov@samsung.com>
31558 * asan.c (set_sanitized_sections): New function.
31559 (section_sanitized_p): Ditto.
31560 (asan_protect_global): Optionally sanitize user-defined
31562 * asan.h (set_sanitized_sections): Declare new function.
31563 * common.opt (fsanitize-sections): New option.
31564 * doc/invoke.texi (-fsanitize-sections): Document new option.
31565 * opts-global.c (handle_common_deferred_options): Handle new
31568 2015-04-17 Jakub Jelinek <jakub@redhat.com>
31571 * dwarf2out.c (loc_list_from_tree): Return NULL
31572 for DEBUG_EXPR_DECL.
31574 2015-04-17 Christian Bruel <christian.bruel@st.com>
31576 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
31579 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
31581 * ira-color.c (setup_left_conflict_sizes_p): Do not process
31582 node itself when computing left conflict subnode size.
31584 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
31586 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
31587 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
31588 *fop_<mode>_1_sse using enabled attribute. Use
31589 register_mixssei387nonimm_operand operand 1 predicate. Change
31590 alternative 3 constraints from "x" to "v".
31592 2015-04-16 Richard Biener <rguenther@suse.de>
31594 PR tree-optimization/65774
31595 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
31596 bit-value tracking on.
31598 2015-04-16 Richard Biener <rguenther@suse.de>
31600 PR tree-optimization/64277
31601 * tree-vrp.c (check_array_ref): Fix anti-range handling,
31602 simplify upper bound handling.
31603 (search_for_addr_array): Simplify.
31604 (check_array_bounds): Handle ADDR_EXPRs here.
31605 (check_all_array_refs): Simplify.
31607 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
31609 * config/i386/i386.c (print_reg): Rewrite function.
31611 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31613 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
31614 Invert the condition.
31616 2015-04-16 Renlin Li <renlin.li@arm.com>
31618 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
31619 simplifications for UNSIGNED_FLOAT.
31621 2015-04-16 Nick Clifton <nickc@redhat.com>
31623 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
31625 (enum rl78_cpu_type): New.
31626 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
31627 (umulhi3_shift_virt): Remove m constraint from operand 1.
31628 (umulqihi3_virt): Likewise.
31629 * config/rl78/rl78.c (rl78_option_override): Add code to process
31630 -mcpu and -mmul options.
31631 (rl78_alloc_physical_registers): Add code to handle divhi and
31632 divsi valloc attributes.
31633 (set_origin): Likewise.
31634 * config/rl78/rl78.h (RL78_MUL_G14): Define.
31635 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
31636 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
31638 (ASM_SPEC): Pass -mcpu on to assembler.
31639 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
31640 (mulqi3_rl78): Likewise.
31641 (mulhi3_g13): Likewise.
31642 (mulhi3): Generate the G13 or G14 versions of the insn directly.
31643 (mulsi3): Likewise.
31644 (mulhi3_g14): Add clobbers of AX and BC.
31645 (mulsi3_g14): Likewise.
31646 (mulsi3_g13): Likewise.
31647 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
31648 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
31649 * config/rl78/rl78.opt (mmul): Initialise value to
31651 (mcpu): New option.
31652 (m13, m14, mrl78): New option aliases.
31653 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
31654 (MULTILIB_DIRNAMES): Add g13 and g14.
31655 * doc/invoke.texi: Document -mcpu and -mmul options.
31657 2015-04-16 Richard Biener <rguenther@suse.de>
31659 * tree-ssa-ccp.c (likely_value): See if we have operands that
31660 are marked as never simulate again and return CONSTANT in this
31662 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
31663 not have any operands that will be simulated again as
31664 not being simulated again.
31666 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
31668 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
31669 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
31670 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
31672 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
31674 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
31675 *float<SWI48:mode><MODEF:mode>2_sse.
31676 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
31678 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
31681 2015-04-15 Tom de Vries <tom@codesourcery.com>
31684 * function.c (push_dummy_function): New function.
31685 (init_dummy_function_start): Use push_dummy_function.
31686 (pop_dummy_function): New function. Factored out of ...
31687 (expand_dummy_function_end): ... here.
31688 * function.h (push_dummy_function, pop_dummy_function): Declare.
31689 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
31690 pop_dummy_function.
31691 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
31693 2015-04-15 Jeff Law <law@redhat.com>
31695 PR tree-optimization/47679
31696 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
31697 need for forward declaration in upcoming changes.
31698 (record_conditions, record_edge_info): Likewise.
31700 PR rtl-optimization/42522
31701 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
31702 SIGN_EXTRACT as a whole object rather than simplifying
31705 2015-04-15 Jakub Jelinek <jakub@redhat.com>
31708 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
31709 and GIMPLE_PREDICT use break instead of return true. For
31710 GIMPLE_EH_DISPATCH, compare dispatch region.
31712 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
31714 * doc/extend.texi (__sync Builtins): Simplify some text. Update
31715 details about the implementation. Make clear preference for
31716 __atomic builtins. Reduce possibility of future change.
31718 2015-04-15 Nick Clifton <nickc@redhat.com>
31720 * config/rx/rx.opt (mallow-string-insns): New option.
31721 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
31722 builtin if string instructions are denied.
31723 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
31724 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
31726 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
31727 * config/rx/rx.md (movstr): Enable pattern only if string
31728 instructions are allowed.
31729 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
31730 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
31731 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
31732 (MULTILIB_DIRNAMES): Add no-strings.
31733 * doc/invoke.texi: Document -mno-allow-string-insns.
31735 2015-04-15 Alan Modra <amodra@gmail.com>
31739 PR middle-end/36043
31740 * calls.c (load_register_parameters): Don't load past end of
31741 mem unless suitably aligned.
31743 2015-04-15 Nick Clifton <nickc@redhat.com>
31745 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
31746 decrement instruction as being frame related.
31747 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
31749 If zero extending a function address enclose the operation in
31751 (rl78_preferred_reload_class): New function.
31752 (TARGET_PREFERRED_RELOAD_CLASS): Define.
31753 * config/rl78/rl78.md: Remove useless constraints in expanders.
31754 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
31755 (mulhi3_rl78): Likewise.
31756 (mulhi3_g13): Likewise.
31757 (mulsi3_rl78): Likewise.
31758 (es_addr): Move to before the multiply patterns.
31760 2015-04-15 Alan Modra <amodra@gmail.com>
31762 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
31763 and sequence_stack. Add seq.
31764 (seq_stack): Delete.
31765 * function.c (prepare_function_start): Don't access x_last_insn.
31766 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
31767 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
31768 * emit_rtl.c (start_sequence, push_topmost_sequence,
31769 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
31770 sequence accessors.
31771 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
31772 remove_insn): Likewise. Simplify.
31773 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
31774 and pop_topmost_sequence.
31775 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
31777 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
31779 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
31782 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
31785 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
31787 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
31788 (LEGACY_INT_REGNO_P): Ditto.
31789 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
31790 (ANY_MASK_REG_P): Remove.
31791 (BND_REG_P): Rename from ANY_BND_REG_P.
31792 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
31793 legacy integer registers. Do not handle MMX_REG_P in a special way.
31794 Merge 64byte and 32byte SSE handling.
31796 2015-04-14 Nick Clifton <nickc@redhat.com>
31798 * expr.c (expand_assignment): Force an address offset computation
31799 into a register before changing its mode.
31800 (expand_expr_real_1): Likewise.
31802 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
31804 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
31805 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
31806 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
31807 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
31808 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
31809 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
31810 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
31811 and __aarch64_vget_lane_any.
31813 2015-04-14 Jakub Jelinek <jakub@redhat.com>
31815 PR rtl-optimization/65761
31816 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
31817 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
31819 2015-04-14 Richard Biener <rguenther@suse.de>
31821 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
31822 (graphite_can_represent_scev): Use POINTER_TYPE_P.
31824 2015-04-14 Richard Biener <rguenther@suse.de>
31826 PR tree-optimization/65758
31827 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
31829 (ccp_lattice_meet): Likewise.
31830 (bit_value_unop): Likewise.
31831 (bit_value_binop): Likewise.
31832 (bit_value_assume_aligned): Likewise.
31834 2015-04-14 Christian Bruel <christian.bruel@st.com>
31836 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
31839 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
31841 PR tree-optimization/63387
31842 * match.pd ((x unord x) | (y unord y) -> (x unord y),
31843 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
31845 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
31847 * config/i386/predicates.md (any_QIreg_operand): Rename from
31848 q_regs_operand. Do not process subregs.
31849 (QIreg_operand): Use QI_REGNO_P predicate.
31850 (ext_QIreg_operand): Ditto.
31851 (ext_register_operand): Ditto.
31852 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
31853 (AND splitters): Ditto.
31854 (AND with -65536 splitter): Add SWI48 mode for operand 0.
31855 (AND with -256 splitter): Use any_QIreg_operand predicate and
31856 SWI248 mode for operand 0.
31857 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
31858 mode for operand 0.
31859 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
31861 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
31863 * doc/plugins.texi: Rewrite first introductory paragraph.
31865 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31867 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
31868 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
31870 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31872 * ipa-profie.c (ipa_profile): Check number of parameters
31873 and possible polymorphic call targets before
31876 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
31878 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
31879 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
31881 2015-04-13 Richard Biener <rguenther@suse.de>
31883 PR tree-optimization/65204
31884 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
31885 takens for bit-CCP.
31887 2015-04-13 Richard Biener <rguenther@suse.de>
31890 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
31891 and cond_not_taken_branch_cost to 4 and 2.
31892 (bdver2_cost): Likewise.
31893 (bdver3_cost): Likewise.
31894 (bdver4_cost): Likewise.
31896 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31898 * hash-table.h (hash_table constructor): Add mem stats.
31899 (alloc_entries): Likewise.
31901 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31903 * ipa-cp.c (ipcp_driver): Relase prev_edge.
31904 * passes.c (execute_one_pass): Only add transform if pass has one.
31906 2015-04-12 Joseph Myers <joseph@codesourcery.com>
31908 * config/i386/i386.c (ix86_option_override_internal): Don't set
31909 -fprefetch-loop-arrays if optimizing for size.
31911 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31912 Gerald Pfeifer <gerald@pfeifer.com>
31914 * doc/contrib.texi (Contributors): Add Martin Jambor and
31917 2015-04-12 Jakub Jelinek <jakub@redhat.com>
31919 * BASE-VER: Set to 6.0.0.
31921 PR tree-optimization/65747
31922 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
31923 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
31925 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
31927 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
31928 sentence. Improve grammar.
31930 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
31932 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
31934 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
31937 * ipa-inline-transform.c (speculation_removed): Remove static var.
31938 (check_speculations): New function.
31939 (clone_inlined_nodes): Do not check spculations.
31940 (inline_call): Call check_speculations.
31941 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
31942 consider non-invariants.
31944 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
31945 Martin Liska <mliska@suse.cz>
31948 * ipa-icf.c (sem_item::compare_cgraph_references): function and
31949 variable can not match.
31950 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
31951 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
31953 2015-04-11 Jakub Jelinek <jakub@redhat.com>
31955 PR tree-optimization/65735
31956 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
31957 Remove visited_phis argument, add visited_bbs, avoid recursing into the
31958 same bb rather than just into the same phi node.
31959 (thread_through_normal_block): Adjust caller.
31961 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
31963 * doc/contrib.texi (Contributors): Add Ira Rosen.
31965 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
31967 * gcov.c (find_source): Fix miswording in error message.
31968 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
31969 (ix86_expand_sse_comi_round): Fix typo in error message.
31971 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
31973 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
31975 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
31977 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
31979 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
31982 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
31983 Print bad_spills_num and insn_pseudos_num.
31985 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31988 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
31989 when creating +1 values for SImode.
31991 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
31994 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
31997 2015-04-10 Jakub Jelinek <jakub@redhat.com>
31998 Iain Sandoe <iain@codesourcery.com>
32001 * configure: Regenerate.
32003 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
32006 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
32008 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
32010 * doc/contrib.texi (Contributors): Add John Marino.
32012 2015-04-09 Jakub Jelinek <jakub@redhat.com>
32014 PR tree-optimization/65709
32015 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
32016 TREE_TYPE (TREE_TYPE (t)).
32018 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
32021 * lra-int.h (lra_bad_spill_regno_start): New.
32022 * lra.c (lra_bad_spill_regno_start): New.
32023 (lra): Set up lra_bad_spill_regno_start. Set up
32024 lra_constraint_new_regno_start unconditionally.
32025 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
32028 2015-04-09 Marek Polacek <polacek@redhat.com>
32029 Jakub Jelinek <jakub@redhat.com>
32031 PR middle-end/65554
32032 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
32033 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
32036 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
32038 PR rtl-optimization/65693
32039 * combine.c (is_parallel_of_n_reg_sets): Move outside of
32042 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
32045 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
32046 device specs file if "device-specs%s" didn't resolve to a path.
32048 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
32051 * config/i386/i386.c (fixup_modeless_constant): New.
32052 (ix86_expand_args_builtin): Fixup modeless constant operand.
32053 (ix86_expand_round_builtin): Ditto.
32054 (ix86_expand_special_args_builtin): Ditto.
32055 (ix86_expand_builtin): Ditto.
32057 2015-04-09 Jakub Jelinek <jakub@redhat.com>
32060 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
32061 any pow2 integer in between 2 and 0x80000000U inclusive.
32063 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
32065 PR rtl-optimization/65693
32066 * combine.c (is_parallel_of_n_reg_sets): Change first argument
32067 from an rtx_insn * to an rtx.
32068 (try_combine): Adjust both callers. Use it once more.
32070 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
32072 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
32073 (chkp_make_static_const_bounds): Search existing
32074 symbol by assembler name. Use make_decl_one_only.
32075 (chkp_get_zero_bounds_var): Remove node search which
32076 is now performed in chkp_make_static_const_bounds.
32077 (chkp_get_none_bounds_var): Likewise.
32079 2015-04-08 Michael Witten <mfwitten@gmail.com>
32081 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
32084 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32086 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
32088 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
32090 * doc/extend.texi (__sync Builtins): Fix grammar.
32092 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32094 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
32096 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32098 * varasm.c (emit_local): Move definition of align.
32100 2015-04-08 Julian Brown <julian@codesourcery.com>
32102 * config/nvptx/mkoffload.c (process): Support variable mapping.
32104 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
32106 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
32108 (alpha_write_one_linkage): Correct typo.
32110 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
32112 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
32114 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
32116 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
32118 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
32120 * tree-chkp.h (chkp_insert_retbnd_call): New.
32121 * tree-chkp.c (chkp_insert_retbnd_call): New.
32122 * ipa-split.c (insert_bndret_call_after): Remove.
32123 (split_function): Use chkp_insert_retbnd_call.
32124 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
32125 bounds for instrumented functions.
32127 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
32130 * calls.c (initialize_argument_information): When producing tail
32131 call also turn SSA_NAMES passed by references to original PARM_DECLs
32133 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
32136 * lra-remat.c (do_remat): Process input and non-input insn
32137 registers separately.
32139 2015-04-07 Jakub Jelinek <jakub@redhat.com>
32142 * valtrack.c (debug_lowpart_subreg): New function.
32143 (dead_debug_insert_temp): Use it.
32145 PR middle-end/65680
32146 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
32147 into signed HOST_WIDE_INT the same as negative bit_offset.
32149 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
32151 * ipa-comdats.c (ipa_comdats): Visit all thunks
32152 to set proper comdat group.
32154 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32157 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
32158 on constants for NEON VSTRUCT modes.
32160 2015-04-07 Jakub Jelinek <jakub@redhat.com>
32161 Iain Sandoe <iain@codesourcery.com>
32164 * configure: Regenerate.
32166 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
32169 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
32170 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
32171 that LFD is used to load double constants instead of LFS. Add
32172 defaults for all costs structures. Add comments for missing
32173 initialization fields.
32174 (size32_cost): Likewise.
32175 (size64_cost): Likewise.
32176 (rs64a_cost): Likewise.
32177 (mpccore_cost): Likewise.
32178 (ppc403_cost): Likewise.
32179 (ppc405_cost): Likewise.
32180 (ppc440_cost): Likewise.
32181 (ppc476_cost): Likewise.
32182 (ppc601_cost): Likewise.
32183 (ppc603_cost): Likewise.
32184 (ppc604_cost): Likewise.
32185 (ppc604e_cost): Likewise.
32186 (ppc620_cost): Likewise.
32187 (ppc630_cost): Likewise.
32188 (ppccell_cost): Likewise.
32189 (ppc750_cost): Likewise.
32190 (ppc7450_cost): Likewise.
32191 (ppc8540_cost): Likewise.
32192 (ppce300c2c3_cost): Likewise.
32193 (ppce500mc_cost): Likewise.
32194 (ppce500mc64_cost): Likewise.
32195 (ppce5500_cost): Likewise.
32196 (ppce6500_cost): Likewise.
32197 (titan_cost): Likewise.
32198 (power4_cost): Likewise.
32199 (power6_cost): Likewise.
32200 (power7_cost): Likewise.
32201 (power8_cost): Likewise.
32202 (ppca2_cost): Likewise.
32203 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
32205 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
32206 instead of XXLOR to copy SFmode to clear out dirty bits created
32207 when SFmode denormals are generated.
32208 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
32209 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
32211 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
32213 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
32214 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
32215 * config/aarch64/aarch64-tune.md: Regenerate.
32217 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
32219 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
32220 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
32221 * config/arm/arm-cores.def (exynos-m1): New core.
32222 * config/arm/arm-tune.md: Regenerate.
32223 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
32224 * config/arm/bpabi.h: Likewise.
32226 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
32228 * ipa-cp (set_single_call_flag): Remove too
32229 restrictive assert.
32231 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
32233 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
32234 GOMP_offload_unregister from the destructor.
32236 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
32238 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
32239 flags for instrumentation thunk.
32240 (chkp_produce_thunks): Likewise.
32242 2015-04-05 Martin Liska <mliska@suse.cz>
32245 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
32246 has computed data structure.
32247 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
32249 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
32251 * invoke.texi (inline-unit-growth): Increase growth to 20%
32252 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
32254 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
32257 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
32259 (lra_rematerialization_iter): New.
32260 * lra.c (lra): Initialize lra_rematerialization_iter.
32261 Stop updating lra_constraint_new_regno_start after switching of
32262 inheritance and rematerialization.
32263 * lra-remat.c (lra_rematerialization_iter): New.
32264 (lra_remat): Add printing pass iteration. Do rematerialization
32265 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
32267 2015-04-04 Richard Biener <rguenther@suse.de>
32269 PR tree-optimization/64909
32270 PR tree-optimization/65660
32271 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
32272 to take a cost vector for scalar iteration cost.
32273 (vect_get_single_scalar_iteration_cost): Likewise.
32274 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
32275 Compute the scalar iteration cost into a cost vector.
32276 (vect_get_known_peeling_cost): Use the scalar cost vector to
32277 account for the cost of the peeled iterations.
32278 (vect_estimate_min_profitable_iters): Likewise.
32279 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
32282 2015-04-04 Alan Modra <amodra@gmail.com>
32286 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
32287 0.0 constant unless TARGET_VSX.
32288 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
32291 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
32294 * ipa-inline-transform.c (inline_call): Skip sanity check to work
32297 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
32300 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
32301 speculative indirect edges to avoid ordering issue.
32303 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
32306 * ipa-inline.c (edge_badness): Add combined size to the denominator.
32308 2015-04-03 Jakub Jelinek <jakub@redhat.com>
32310 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
32311 TYPE_ARTIFICIAL on the .omp_data* types.
32313 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32315 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
32316 instrumentation thunks.
32318 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32320 * config/i386/i386.c (ix86_expand_call): Avoid nested
32321 PARALLEL in returned call value.
32323 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32325 * lto-cgraph.c (input_cgraph_1): Always link instrumented
32326 assembler name with original one.
32328 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
32330 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
32332 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
32334 Revert parts of r216820.
32335 * config/i386/i386.md (movqi_internal): Correct type calculation
32336 for alternatives 3 and 5.
32338 2015-04-02 Jakub Jelinek <jakub@redhat.com>
32340 PR preprocessor/61977
32341 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
32342 predefine __vector/__bool/__pixel macros nor context sensitive
32343 macros for CLK_ASM.
32344 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
32346 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
32348 * config/pa/pa.c (pa_output_move_double): Directly handle register
32349 indexed memory operand. Simplify handling of scaled register indexed
32352 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32355 * config/i386/linux-common.h (MPX_SPEC): New.
32356 (CHKP_SPEC): Add MPX_SPEC.
32357 * doc/invoke.texi (-fcheck-pointer-boudns): Document
32358 possible issues with '-z bndplt' support in linker.
32360 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
32362 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
32363 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
32364 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
32365 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
32366 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
32368 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
32370 * config/i386/sync.md (UNSPEC_MOVA): Remove.
32371 (atomic_load<mode>): Change operand 0 predicate to
32372 nonimmediate_operand and fix up the destination when needed.
32374 (atomic_loaddi_fpu): Use UNSPEC_LDA.
32375 (atomic_store<mode>): Change operand 1 predicate to
32376 nonimmendate_operand and move the source to register when needed.
32378 (atomic_store<mode>_1): Use UNSPEC_STA.
32379 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
32380 Fix moves from memory operand. Use UNSPEC_STA.
32382 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
32384 * expmed.c (strict_volatile_bitfield_p): Check that the access will
32385 not cross a MODESIZE boundary.
32386 (store_bit_field, extract_bit_field): Added assertions in the
32387 strict volatile bitfields code path.
32389 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
32392 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
32393 Increase args array size by one to avoid buffer overflow.
32395 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
32397 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
32399 * ipa-inline.c (edge_badness): Add wrapper penalty.
32400 (sum_callers): Move up.
32401 (inline_small_functions): Set single_caller.
32402 * ipa-inline.h (inline_summary): Add single_caller.
32403 * ipa-split.c (split_function): Set split_part.
32404 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
32405 * cgraph.h (cgraph_node): Add split_part.
32407 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
32410 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
32411 Do not split operands 0 and operands 2 to halfmode.
32412 (atomic_compare_and_swap<mode>): Update for
32413 atomic_compare_and_swap<dwi>_doubleword changes.
32415 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
32417 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
32418 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
32419 no caching is done.
32421 2015-03-31 Martin Liska <mliska@suse.cz>
32424 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
32425 has already filled up function summary.
32426 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
32428 2015-03-31 Richard Biener <rguenther@suse.de>
32430 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
32433 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
32435 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
32437 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
32438 (s390_asm_output_function_label): Adapt to new signature of
32439 s390_function_num_hotpatch_hw
32440 Optimise the code generating assembler output.
32441 Add comments to assembler file.
32443 2015-03-31 Richard Biener <rguenther@suse.de>
32445 PR middle-end/65626
32446 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
32447 of the noreturn call so it is last and cleanup_control_flow_bb
32448 can do the CFG part.
32450 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
32453 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
32454 same_comdat_group for external symbols.
32455 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
32456 infinite same_comdat_group traversal loop.
32458 2015-03-31 Jakub Jelinek <jakub@redhat.com>
32461 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
32462 automatically to $headers.
32464 2015-03-30 Jakub Jelinek <jakub@redhat.com>
32467 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
32468 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
32470 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
32472 * ipa-prop.c (param_type_may_change_p): Likewise.
32473 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
32474 (remove_unused_scope_block_p): Add in_ctor_dtor_block
32475 argument. Before inlining, preserve
32476 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
32477 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
32479 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
32481 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32484 * ipa-inline.c (edge_badness): Base denominator on callee's
32487 2015-03-27 Martin Jambor <mjambor@suse.cz>
32490 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
32491 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
32492 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
32493 node_calling_single_call.
32494 * ipa-cp.c (count_callers): New function.
32495 (set_single_call_flag): Likewise.
32496 (initialize_node_lattices): Count callers and set single_flag_call if
32498 (incorporate_penalties): New function.
32499 (good_cloning_opportunity_p): Use it, dump new flags.
32500 (propagate_constants_topo): Set node_within_scc flag if appropriate.
32501 * doc/invoke.texi (ipa-cp-recursion-penalty,
32502 ipa-cp-single-call-pentalty): Document.
32504 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32507 * symtab.c (symtab_node::get_partitioning_class): Register vars
32509 * varpool.c (symbol_table::output_variables) Do not assemble unefined
32510 decls for non-symbols.
32512 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
32515 * output.h (default_binds_local_p_2): New.
32516 * varasm.c (default_binds_local_p_2): Renamed to ...
32517 (default_binds_local_p_3): This. Don't return true on protected
32518 data symbol if protected data may be external.
32519 (default_binds_local_p): Use default_binds_local_p_3.
32520 (default_binds_local_p_1): Likewise.
32521 (default_binds_local_p_2): New.
32522 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
32523 default_binds_local_p_2 if TARGET_MACHO is undefined.
32525 2015-03-27 Jakub Jelinek <jakub@redhat.com>
32528 * config/i386/i386.c (legitimize_pic_address): If base
32529 is SYMBOL_REF or LABEL_REF using %rip addressing, force
32530 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
32532 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32535 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
32538 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32541 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
32542 of optimized out indirect call.
32543 (redirect_to_unreachable): Always build symbol table node for
32544 BUILT_IN_UNREACHABLE
32546 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
32549 * ira-costs.c (record_reg_classes): Process all constraint string
32552 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
32554 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
32558 * config/c6x/constraints.md (S3): New constraint.
32559 * config/c6x/c6x.md (real_jump): Use it.
32561 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32563 PR middle-end/65595
32564 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
32565 do redirection if the call is not optimized out.
32567 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
32570 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
32571 (fchkp-check-incomplete-type): Add LTO.
32572 (fchkp-zero-input-bounds-for-main): Likewise.
32573 (fchkp-first-field-has-own-bounds): Likewise.
32574 (fchkp-narrow-bounds): Likewise.
32575 (fchkp-narrow-to-innermost-array): Likewise.
32576 (fchkp-use-static-bounds): Likewise.
32577 (fchkp-use-static-const-bounds): Likewise.
32578 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
32580 2015-03-27 Marek Polacek <polacek@redhat.com>
32582 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
32584 2015-03-27 Marek Polacek <polacek@redhat.com>
32587 * ubsan.c (ubsan_create_edge): New function.
32588 (instrument_bool_enum_load): Call it.
32589 (instrument_nonnull_arg): Likewise.
32590 (instrument_nonnull_return): Likewise.
32591 (instrument_object_size): Likewise.
32593 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32595 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
32598 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32601 * lto-streamer.h (class lto_location_cache): New.
32602 (struct data_in): Add location_cache.
32603 (lto_input_location): Update prototype.
32604 (stream_input_location_now): New.
32605 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
32606 pointer to location.
32607 (stream_input_location): Update.
32608 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
32609 (warn_odr): Apply location cache before warning.
32610 (lto_input_location): Update prototype.
32611 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
32612 Use stream_input_location_now.
32613 * lto-streamer-in.c (lto_location_cache::current_cache): New static
32615 (lto_location_cache::cmp_loc): New function.
32616 (lto_location_cache::apply_location_cache): New function.
32617 (lto_location_cache::accept_location_cache): New function.
32618 (lto_location_cache::revert_location_cache): New function.
32619 (lto_location_cache::input_location): New function.
32620 (lto_input_location): Do location caching.
32621 (stream_input_location_now): New function.
32622 (input_eh_region, input_struct_function_base): Use
32623 stream_input_location_now.
32624 (lto_data_in_create): use new.
32625 (lto_data_in_delete): Use delete.
32626 * tree-streamer-in.c (unpack_ts_block_value_fields,
32627 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
32628 lto_input_ts_exp_tree_pointers): Update for cached location api.
32630 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32633 * passes.def: Add pass_nothrow.
32634 * ipa-pure-const.c: (pass_data_nothrow): New.
32635 (pass_nothrow): New.
32636 (pass_nothrow::execute): New.
32637 (make_pass_nothrow): New.
32638 * tree-pass.h (make_pass_nothrow): Declare.
32640 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32642 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
32643 edge to change by speculation resolution or redirection.
32644 (edge_set_predicate): Likewise.
32645 (inline_summary_t::duplicate): Likewise.
32646 (remap_edge_summaries): Likewise.
32648 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32650 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
32652 (can_inline_edge_p): Relax option matching for always inline functions.
32654 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
32657 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
32658 Check operand 4 and operand 0 for equality.
32659 (avx512f_vextract<shuffletype>32x4_1_maskm):
32660 Check operand 6 and operand 0 for equality.
32661 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
32663 (vec_extract_hi_<mode>_maskm): Ditto.
32665 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32667 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
32668 dead calls back to live.
32669 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
32671 (cgraph_node::verify_node): ... here; verify only callee edges,
32673 * cif-code.def (CILK_SPAWN): New code.
32675 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32677 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
32678 (edge_set_predicate): Use it to mark unreachable edges.
32679 (inline_summary_t::duplicate): Remove unnecesary code.
32680 (remap_edge_summaries): Likewise.
32681 (dump_inline_summary): Report contains_cilk_spawn.
32682 (compute_inline_parameters): Compute contains_cilk_spawn.
32683 (inline_read_section, inline_write_summary): Stream
32684 contains_cilk_spawn.
32685 * ipa-inline.c (can_inline_edge_p): Do not touch
32686 DECL_STRUCT_FUNCTION that may not be available;
32687 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
32688 remove check for callee_fun->can_throw_non_call_exceptions and
32689 replace it by optimization attribute check; check for flag_exceptions.
32690 * ipa-inline-transform.c (inline_call): Maintain
32691 DECL_FUNCTION_PERSONALITY
32692 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
32694 2015-03-26 Jakub Jelinek <jakub@redhat.com>
32696 PR tree-optimization/65551
32697 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
32698 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
32700 2015-03-26 Richard Biener <rguenther@suse.de>
32702 PR middle-end/65555
32703 * tree-cfg.c (verify_gimple_call): Do not require a call to
32704 have no LHS if it wasn't recognized as control altering yet.
32706 2015-03-26 Jakub Jelinek <jakub@redhat.com>
32708 PR tree-optimization/64715
32709 * passes.def: Add another instance of pass_object_sizes before ccp1.
32710 * tree-object-size.c (pass_object_sizes::execute): In
32711 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
32712 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
32713 __bos result and the computed constant. Remove redundant
32714 checks, obsoleted by gimple_call_builtin_p test.
32716 * var-tracking.c (variable_tracking_main_1): Don't track
32717 variables for targetm.no_register_allocation targets.
32719 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
32721 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
32722 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
32724 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
32727 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
32728 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
32729 0.0 is correctly setup.
32730 (extenddftf2_internal): Likewise.
32732 2015-03-25 Sebastian Pop <s.pop@samsung.com>
32734 PR tree-optimization/65177
32735 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
32737 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
32738 edges not adjacent on the path to the original code.
32740 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
32743 * doc/install.texi (Building a native compiler): Document new
32744 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
32745 configuration assumes that the host supports the linker plugin.
32747 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
32750 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
32751 chain for generated call.
32753 2015-03-25 Richard Biener <rguenther@suse.de>
32755 * passes.c (pass_manager::execute_early_local_passes): Guard
32756 execution of pass_chkp_instrumentation_passes with
32757 flag_check_pointer_bounds.
32758 (pass_chkp_instrumentation_passes::gate): Likewise.
32760 2015-03-25 Martin Liska <mliska@suse.cz>
32762 PR tree-optimization/65538
32763 * symbol-summary.h (function_summary::~function_summary):
32764 Relese memory for allocated summaries.
32765 (function_summary::release): New function.
32767 2015-03-25 Jakub Jelinek <jakub@redhat.com>
32770 * lto-streamer-out.c (DFS::worklist): New struct.
32771 (DFS::worklist_vec): New data member.
32772 (DFS::next_dfs_num): Remove.
32773 (DFS::DFS): Rewritten using worklist instead of recursion,
32774 using most of code from DFS::DFS_write_tree.
32775 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
32776 pass it to DFS_write_tree calls.
32777 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
32778 quick initial checks push it into worklist_vec and return.
32780 2015-03-25 Richard Biener <rguenther@suse.de>
32782 PR middle-end/65519
32783 * genmatch.c (expr::gen_transform): Re-write to avoid
32784 using gimple_build.
32786 2015-03-25 Bin Cheng <bin.cheng@arm.com>
32788 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
32790 2015-03-25 Bin Cheng <bin.cheng@arm.com>
32792 * config/arm/arm.opt (print_tune_info): New option.
32793 * config/arm/arm.c (arm_print_tune_info): New function.
32794 (arm_file_start): Call arm_print_tune_info.
32795 * config/arm/arm-protos.h (struct tune_params): Add comment.
32796 * doc/invoke.texi (@item -mprint-tune-info): New item.
32797 (-mtune): mention it in ARM Option Summary.
32799 2015-03-25 DJ Delorie <dj@redhat.com>
32801 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
32804 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
32805 Martin Liska <mliska@suse.cz>
32807 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
32808 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
32809 (sem_item::add_type): New function.
32810 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
32811 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
32812 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
32813 (sem_function::equals_wpa): Fix typo.
32814 * ipa-icf.h (sem_item::add_type): New function.
32815 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
32818 2015-03-24 Jakub Jelinek <jakub@redhat.com>
32820 PR tree-optimization/65533
32821 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
32822 with swapped operands, call vect_free_slp_tree on
32823 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
32826 2015-03-24 Richard Biener <rguenther@suse.de>
32828 PR middle-end/65517
32829 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
32830 for fixup if necessary.
32832 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
32834 * doc/extend.texi (Function Attributes): Add @cindex entries
32835 for all attributes and regularize their format. Delete text
32836 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
32837 information about "eightbit_data", "tiny_data", and "model"
32838 variable attributes to the Variable Attributes section. Fix
32839 some obvious typos and copy-editing issues.
32840 (Variable Attributes, Type Attributes): Likewise add/fix
32841 @cindex entries for all attributes.
32843 2015-03-23 Jakub Jelinek <jakub@redhat.com>
32846 * tree-chkp.c (chkp_build_returned_bound): Ignore
32847 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
32849 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
32852 * config/sh/predicates.md (simple_mem_operand,
32853 displacement_mem_operand): Add test for reg.
32854 (short_displacement_mem_operand): Test for displacement_mem_operand
32855 before invoking sh_disp_addr_displacement.
32856 * config/sh/constraints.md (Sdd, Sra): Simplify.
32857 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
32858 Remove redundant displacement_mem_operand tests.
32860 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
32863 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
32864 the same -mmcu=MCU more than once.
32866 2015-03-23 Jakub Jelinek <jakub@redhat.com>
32869 * ipa-devirt.c: Remove duplicate demangle.h include.
32872 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
32874 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
32875 REG_POINTER on *destptr after adjusting it for prologue size.
32878 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
32879 ultimate_alias_target ()->order ints instead of
32880 ultimate_alias_target () pointers.
32882 2015-03-23 Richard Biener <rguenther@suse.de>
32884 PR tree-optimization/65518
32885 * tree-vect-stmts.c (vectorizable_load): Reject single-element
32886 interleaving cases we generate absymal code for.
32888 2015-03-23 Richard Biener <rguenther@suse.de>
32890 PR tree-optimization/65494
32891 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
32893 (vect_analyze_slp_instance): But do that here, always and once.
32895 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32897 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
32898 adding T or multiplying by T+1 and subracting T.
32900 2015-03-22 Jeff Law <law@redhat.com>
32902 PR rtl-optimization/64317
32903 * Makefile.in (OBJS): Add gcse-common.c
32904 * gcse.c: Include gcse-common.h
32905 (struct modify_pair_s): Move structure definition to gcse-common.h
32906 (compute_transp): Move function to gcse-common.c.
32907 (canon_list_insert): Similarly.
32908 (record_last_mem_set_info): Break out some code and put it into
32909 gcse-common.c. Call into the new common code.
32910 (compute_local_properties): Pass additional arguments to compute_transp.
32911 * postreload-gcse.c: Include gcse-common.h and df.h
32912 (modify_mem_list_set, blocks_with_calls): New variables.
32913 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
32914 (get_bb_avail_insn): Pass in the expression index too.
32915 (alloc_mem): Allocate memory for the new bitmaps and lists.
32916 (free_mem): Free memory for the new bitmaps and lists.
32917 (insert_expr_in_table): Record a bitmap index for each entry we
32919 (record_last_mem_set_info): Call into common code in gcse-common.c.
32920 (get_bb_avail_insn): If no available insn was found in the requested
32921 BB. If BB has a single predecessor, see if the expression is
32922 transparent in BB and available in that single predecessor.
32923 (compute_expr_transp): New wrapper for compute_transp.
32924 (eliminate_partially_redundant_load): Pass expression's bitmap_index
32925 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
32926 (gcse_after_reload_main): If there are elements in the hash table,
32927 then compute transparency for all the elements in the hash table.
32928 * gcse-common.h: New file.
32929 * gcse-common.c: New file.
32931 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
32933 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
32935 (System Headers): Likewise.
32937 (Traditional macros): Likewise.
32938 (Invocation): Likewise.
32939 (Option Index): Likewise.
32940 * doc/cppopts.texi (-M): Likewise.
32941 (-finput-charset): Likewise.
32942 (--help): Likewise.
32943 * doc.invoke.texi (AVR Options): Likewise.
32944 (V850 Options): Likewise.
32946 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
32949 * ipa-devirt.c: Include demangle.h
32950 (odr_type_d): Add field rtti_broken.
32951 (odr_subtypes_equivalent_p): Do not require name to match.
32952 (compare_virtual_tables): Fix typo; if type already has ODR violation,
32953 bypass the tests; be ready for function referneces in vtables that are
32954 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
32955 (warn_odr): Give up for nameless types.
32956 (warn_types_mismatch): Report mismatch in mangled names;
32957 report mismatch in anonymous namespaces; look into component types to
32958 give useful error; report when mismatch is dragged in from other ODR
32960 (odr_types_equivalent_p): Match types for being polymorphic; avoid
32961 duplicated diagnostics.
32962 (add_type_duplicate): Reorder checks so more informative ones come
32963 first; fix typo; do not output "the extra base is defined here" when
32965 (BINFO_N_BASE_BINFOS): Relax sanity check.
32967 2015-03-22 Martin Liska <mliska@suse.cz>
32968 Jakub Jelinek <jakub@redhat.com>
32970 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
32971 masks that can potentially include a builtin.
32972 (ix86_add_new_builtins): Introduce fast filter for isa values
32973 that cannot trigger builtin inclusion.
32975 2015-03-22 Martin Liska <mliska@suse.cz>
32977 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
32978 (sem_item::update_hash_by_local_refs): Likewise.
32979 (sem_variable::get_hash): Empty line is fixed.
32980 (sem_item_optimizer::execute): Include adding of hash references.
32981 (sem_item_optimizer::update_hash_by_addr_refs): New function.
32982 (sem_item_optimizer::build_hash_based_classes): Use local hash.
32983 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
32984 (sem_item::update_hash_by_local_refs): Likewise.
32986 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
32989 * ipa-comdats.c (enqueue_references): Walk through thunks.
32990 (ipa_comdats): Likewise.
32991 (set_comdat_group_1): New function.
32993 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
32996 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
32999 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
33000 Gerald Pfeifer <gerald@pfeifer.com>
33002 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
33004 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
33005 Sandra Loosemore <sandra@codesourcery.com>
33007 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
33008 function parameter declaration.
33009 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
33010 Update arguments to nios2_adjust_call_address().
33011 (sibcall_internal): Rename from *sibcall.
33012 (sibcall_value_internal): Rename from *sibcall_value.
33013 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
33014 (nios2_large_got_address): Add target temp reg parameter.
33015 (nios2_got_address): Adjust call to nios2_large_got_address, add
33016 force_reg around it.
33017 (nios2_load_pic_address): Add target temp reg parameter, replace call
33018 to nios2_got_address with corresponding code.
33019 (nios2_legitimize_constant_address): Update call to
33020 nios2_load_pic_address.
33021 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
33022 to use temp reg for PIC loading purposes.
33023 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
33024 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
33025 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
33027 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33029 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
33030 usage of "the @option{...}".
33031 (-Wopenmp-simd): Likewise.
33032 (-fsanitize-recover): Likewise.
33033 (-fsanitize-undefined-trap-on-error): Likewise.
33035 (tracer-dynamic-coverage-feedback): Likewise.
33036 (reorder-block-duplicate-feedback): Likewise.
33037 (loop-unroll-jam-size): Likewise.
33040 (-mabs=legacy): Likewise.
33041 (-mupper-regs-df): Likewise.
33042 (-mupper-regs-sf): Likewise.
33043 (-mpointers-to-nested-functions): Likewise.
33045 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33047 * doc/extend.texi (Cilk Plus Builtins): Add markup.
33049 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33051 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
33052 additional index entries and cross-references.
33053 (-fchkp-check-incomplete-type): Likewise.
33054 (-fchkp-first-field-has-own-bounds): Likewise.
33055 (-fchkp-narrow-to-innermost-array): Likewise.
33056 (-fchkp-use-fast-string-functions): Likewise.
33057 (-fchkp-use-nochk-string-functions): Likewise.
33058 (-fchkp-use-static-const-bounds): Likewise.
33059 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33060 (-fchkp-instrument-marked-only): Likewise.
33061 (-fchkp-use-wrappers): Likewise.
33062 (-static-libmpx): Likewise.
33063 (-static-libmpxwrappers): Likewise.
33064 * doc/extend.texi (bnd_legacy): Likewise.
33065 (bnd_instrument): Likewise.
33066 (bnd_variable_size): Likewise.
33067 (Pointer Bounds Checker builtins): Likewise.
33069 2015-03-21 Tom de Vries <tom@codesourcery.com>
33071 PR tree-optimization/65458
33072 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
33073 * cgraph.h (cgraph_node): Add parallelized_function field.
33074 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
33075 (input_overwrite_node): Read parallelized_function field.
33076 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
33077 parallelized_function on cgraph_node for child_fn.
33078 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
33079 Remove include of gt-tree-parloops.h.
33080 (parallelized_functions): Remove static variable.
33081 (parallelized_function_p): Rewrite using parallelized_function field of
33083 (create_loop_fn): Remove adding to parallelized_functions.
33084 * Makefile.in (GTFILES): Remove tree-parloops.c
33086 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
33088 PR rtl-optimization/64366
33089 * lra.c (lra_update_insn_regno_info): Consider regs in
33090 CALL_INSN_FUNCTION_USAGE memory.
33092 2015-03-20 Richard Biener <rguenther@suse.de>
33094 PR middle-end/64715
33095 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
33096 for type comparison and gcc_checking_assert.
33097 (chrec_fold_plus_poly_poly): Likewise.
33098 (chrec_fold_multiply_poly_poly): Likewise.
33099 (chrec_convert_1): Likewise.
33100 * gimplify.c (gimplify_expr): Remove premature folding of
33101 &X + CST to &MEM[&X, CST].
33103 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
33105 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
33107 (ipa_inline): Recompute inline_failed codes.
33108 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
33109 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
33112 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
33114 PR rtl-optimization/60851
33115 * recog.c (constrain_operands): Accept a pseudo register before reload
33116 for LRA enabled targets.
33118 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
33121 * config/rs6000/predicates.md (easy_fp_constant): Remove special
33122 -ffast-math handling that kept non-0 constants live in the RTL
33123 until reload. Remove logic testing the number of instructions it
33124 took to create a constant in a GPR that was never used, due to a
33125 test for soft-float earlier.
33126 (memory_fp_constant): Delete, no longer used.
33128 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
33129 alternatives for loading non-0 constants into GPRs for hard
33130 floating point that is no longer needed due to changes in
33131 easy_fp_constant. Add support for loading 0.0 into GPRs.
33132 (mov<mode>_hardfloat32): Likewise.
33133 (mov<mode>_hardfloat64): Likewise.
33134 (mov<mode>_64bit_dm): Likewise.
33135 (movtd_64bit_nodm): Likewise.
33136 (pre-reload move FP constant define_split): Delete define_split,
33137 since it is no longer used.
33138 (extenddftf2_internal): Remove GHF constraints that are not valid
33141 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
33143 PR rtl-optimization/63491
33144 * lra-constraints.c (check_and_process_move): Use src instead of
33145 sreg. Remove some dead code.
33147 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
33150 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
33151 (sem_variable::merge): Likewise.
33153 2015-03-19 Martin Liska <mliska@suse.cz>
33156 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
33157 all fields of cgraph_thunk_info.
33159 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
33161 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
33162 clone instrumented thunks.
33164 2015-03-19 Richard Biener <rguenther@suse.de>
33167 2015-03-10 Richard Biener <rguenther@suse.de>
33169 PR middle-end/63155
33170 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
33171 * tree-ssa-coalesce.c: Include timevar.h.
33172 (attempt_coalesce): Handle graph being NULL.
33173 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
33174 Split out abnormal coalescing to ...
33175 (perform_abnormal_coalescing): ... this function.
33176 (coalesce_ssa_name): Perform abnormal coalescing without computing
33178 (verify_ssa_coalescing_worker): New function.
33179 (verify_ssa_coalescing): Likewise.
33181 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
33182 Jakub Jelinek <jakub@redhat.com>
33185 * tsan.c (instrument_gimple): Clear tail call flag on
33188 2015-03-19 Jakub Jelinek <jakub@redhat.com>
33191 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
33192 call in the return bb.
33193 (find_split_points): Add RETURN_BB argument, don't call
33195 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
33196 if true append TSAN_FUNC_EXIT internal call after the call to
33197 the split off function.
33198 (execute_split_functions): Call find_return_bb here.
33199 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
33200 Adjust find_split_points and split_function calls.
33202 2015-03-18 DJ Delorie <dj@redhat.com>
33204 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
33205 (iorqi3_virt): Likewise.
33207 2015-03-18 Tom de Vries <tom@codesourcery.com>
33209 * tree-parloops.c (parallelize_loops): Make static.
33210 * tree-parloops.h (parallelize_loops): Remove extern declaration.
33212 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
33214 PR middle-end/64491
33216 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
33218 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
33219 condition would be removed due to undefined behaviour.
33221 2015-03-18 Martin Liska <mliska@suse.cz>
33224 * cgraph.c (cgraph_node::get_create): Remove unnecessary
33225 xstrdup_for_dump wrapper.
33226 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
33228 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
33229 with xstrdup_for_dump.
33230 (sem_variable::equals): Likewise.
33231 (sem_item_optimizer::read_section): Use symtab_node::name instead of
33233 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
33234 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
33235 symtab_node::asm_name with xstrdup_for_dump.
33236 (congruence_class::dump): Use symtab_node::name instead of
33238 * ipa-icf.h (symtab_node::name): Remove.
33239 (symtab_node::asm_name): Likewise.
33241 2015-03-18 Jakub Jelinek <jakub@redhat.com>
33243 PR tree-optimization/65450
33244 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
33246 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
33247 it instead of duplicate_ssa_name_ptr_info.
33250 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
33252 2015-03-18 Richard Biener <rguenther@suse.de>
33254 * tree-data-ref.h (struct access_matrix): Remove.
33255 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
33256 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
33257 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
33258 (am_vector_index_for_loop): Likewise.
33259 (struct data_reference): Remove access_matrix member.
33260 (DR_ACCESS_MATRIX): Remove.
33261 (lambda_vector_new): Add comment.
33262 (lambda_matrix_new): Use XOBNEWVEC.
33264 2015-03-18 Richard Biener <rguenther@suse.de>
33266 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
33267 (pass_ch::execute): Cleanup the CFG only if we did sth.
33268 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
33270 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33272 * expmed.c (synth_mult): Use std::swap instead of manually
33273 swapping algorithms.
33275 2015-03-18 Jakub Jelinek <jakub@redhat.com>
33278 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
33280 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
33283 * config/avr/avr.opt (-nodevicelib): New option.
33284 * doc/invoke.texi (AVR Options): Document it.
33285 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
33286 libgcc.a, libc.a, libm.a.
33287 * config/avr/specs.h: Same.
33288 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
33289 which don't (directly) depend on the device. Print more help.
33290 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
33291 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
33292 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
33294 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
33295 for specs file name.
33296 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
33297 * config/avr/avr-mcus.def: Adjust initializers and comments.
33299 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
33301 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
33302 DECL_ONE_ONLY to check if decl is one only.
33303 * ipa-split.c (consider_split): Limit splitt of one only functions.
33305 2015-03-16 Jakub Jelinek <jakub@redhat.com>
33307 PR tree-optimization/65427
33308 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
33310 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
33312 2015-03-16 Marek Polacek <polacek@redhat.com>
33314 * cgraph.h (add_new_static_var): Remove declaration.
33315 * varpool.c (add_new_static_var): Remove function.
33317 2015-03-16 Jakub Jelinek <jakub@redhat.com>
33319 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
33320 instead of vec<tree> * with vec_alloc and release for args.
33323 PR middle-end/65431
33324 * omp-low.c (delete_omp_context): Only splay_tree_delete
33325 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
33326 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
33328 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
33331 * cfgexpand.c (align_base): New function.
33332 (alloc_stack_frame_space): Call it.
33333 (expand_stack_vars): Align prev_frame to be sure
33334 data->asan_vec elements aligned properly.
33336 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
33338 PR middle-end/65409
33339 * expr.c (store_field): Do not do a direct block copy if the source is
33340 a PARALLEL with BLKmode.
33342 2015-03-16 Tom de Vries <tom@codesourcery.com>
33344 PR middle-end/65414
33346 2015-03-12 Tom de Vries <tom@codesourcery.com>
33348 PR rtl-optimization/64895
33349 * lra-lives.c (check_pseudos_live_through_calls): Use
33350 actual_call_used_reg_set instead of call_used_reg_set, if available.
33352 2015-03-16 Alan Modra <amodra@gmail.com>
33355 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
33356 Modify Z->r bswapdi splitter to use dest in place of scratch.
33357 In r->Z and Z->r bswapdi splitter rename word_high, word_low
33358 to word1, word2 and rearrange logic to suit.
33359 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
33360 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
33361 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
33362 Add one '?' on r->r. Modify Z->r splitter to avoid need for
33365 2015-03-14 Jakub Jelinek <jakub@redhat.com>
33367 PR tree-optimization/65369
33368 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
33369 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
33370 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
33372 PR tree-optimization/65418
33373 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
33374 are casts in the first PLUS_EXPR operand, ensure tbias and
33375 *totallowp are in the inner type.
33377 PR rtl-optimization/65401
33378 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
33379 argument. If true, adjust_address_nv of x with big-endian
33380 correction for the mode widening to GET_MODE (y).
33381 (make_field_assignment): Don't do MEM mode widening here.
33382 Use MEM_P instead of GET_CODE == MEM.
33384 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
33386 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
33387 the external decls.
33389 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33392 * config/arm/arm.c (arm_gen_constant, AND case): Use
33393 ARM_SIGN_EXTEND when constructing AND mask.
33395 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
33397 * graph.c (print_graph_cfg): Make function names visible and append
33398 parenthesis to it. Also make groups of basic blocks belonging to the
33399 same function visible.
33401 2015-03-12 Richard Biener <rguenther@suse.de>
33403 PR middle-end/44563
33404 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
33405 to avoid quadratic behavior with inline expansion splitting blocks.
33406 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
33407 with the successor if the predecessor will be merged with it.
33408 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
33409 entry block with its successor.
33411 2015-03-13 Richard Biener <rguenther@suse.de>
33413 PR middle-end/44563
33414 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
33415 (cleanup_tree_cfg_1): Do not call it.
33416 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
33417 (fixup_noreturn_call): Mark the stmt as control altering.
33418 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
33420 (pass_data_fixup_cfg): Produce a dump file.
33421 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
33422 (need_noreturn_fixup): New global.
33423 (pass_dominator::execute): Fixup queued noreturn calls.
33424 (optimize_stmt): Queue calls that became noreturn for fixup.
33425 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
33426 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
33427 (el_to_fixup): New global.
33428 (eliminate_dom_walker::before_dom_childre): Queue calls that
33429 became noreturn for fixup.
33430 (eliminate): Fixup queued noreturn calls.
33431 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
33432 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
33433 (substitute_and_fold_dom_walker::before_dom_children): Queue
33434 alls that became noreturn for fixup.
33435 (substitute_and_fold): Fixup queued noreturn calls.
33437 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
33439 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
33440 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
33441 are building; for methods check ODR type of class they belong to if
33442 they may lead to a polymorphic call.
33443 (sem_function::compare_polymorphic_p): Be bit smarter about testing
33444 when function may lead to a polymorphic call.
33445 (sem_function::compare_type_list): Remove.
33446 (sem_variable::equals): Update use of compatible_types_p.
33447 (sem_variable::parse_tree_refs): Remove.
33448 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
33450 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
33452 (func_checker::compatible_polymorphic_types_p): Break out from ...
33453 (unc_checker::compatible_types_p): ... here.
33454 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
33456 (unc_checker::compatible_types_p): Update.
33457 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
33460 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33462 PR rtl-optimization/65235
33463 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
33464 When first element of vec_concat is const_int, calculate its size
33465 using second element.
33467 2015-03-12 Richard Biener <rguenther@suse.de>
33469 PR middle-end/65270
33470 * fold-const.c (operand_equal_p): Fix ordering of resetting
33471 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
33473 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
33475 * config/s390/s390.c (s390_reorg): Move code to output nops after label
33477 (s390_asm_output_function_label): Likewise.
33478 * config/s390/s390.c (s390_asm_output_function_label):
33479 Fix function label alignment with -mhtopatch.
33480 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
33481 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
33482 ("nop_2_byte"): New define_insn.
33483 ("nop_4_byte"): Likewise.
33484 ("nop_6_byte"): Likewise.
33485 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
33486 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
33488 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
33491 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
33494 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
33497 * toplev.c (process_options): Restrict Pointer Bounds Checker
33498 usage with Address Sanitizer.
33500 2015-03-12 Richard Biener <rguenther@suse.de>
33502 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
33504 * omp-low.c (expand_omp_taskreg): Split block before removing
33506 (expand_omp_target): Likewise.
33507 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
33508 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
33509 stmt to split_block.
33511 2015-03-12 Tom de Vries <tom@codesourcery.com>
33513 PR rtl-optimization/64895
33514 * lra-lives.c (check_pseudos_live_through_calls): Use
33515 actual_call_used_reg_set instead of call_used_reg_set, if available.
33517 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
33519 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
33520 (cgraph_node::remove): Likewise.
33521 (cgraph_node::get_untransformed_body): Likewise.
33522 * varpool.c (varpool_node::remove): Likewise.
33523 (varpool_node::get_constructor): Add sanity check.
33525 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
33527 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
33529 (-fabi-compat-version): Likewise.
33530 (-ffriend-injection): Likewise.
33531 (-Wdeclaration-after-statement): Likewise.
33532 (-fomit-frame-pointer): Likewise.
33533 (-ftree-coalesce-inlined-vars): Likewise.
33534 (-fvisibility=): Likewise.
33535 * doc/extend.texi (Typeof): Likewise.
33536 (Zero Length): Likewise.
33537 (Escaped Newlines): Likewise.
33538 (Compound Literals): Likewise.
33539 (Function Attributes): Likewise.
33540 (Label Attributes): Likewise.
33541 (Type Attributes): Likewise.
33542 (Function Names): Likewise.
33543 (Other Builtins): Likewise.
33544 (Function Specific Option Pragmas): Likewise.
33545 (C++ Interface): Likewise.
33547 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
33549 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
33551 2015-03-11 Marek Polacek <polacek@redhat.com>
33553 PR tree-optimization/65388
33554 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
33556 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
33559 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
33560 * configure: Regenerate.
33561 * config.in: Regenerate.
33562 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
33563 [-mn-flash]: Document it.
33564 [__AVR_ARCH__]: Document avrtiny.
33566 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
33567 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
33568 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
33570 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
33572 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
33574 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
33577 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
33578 allow reloads of PLUS in floating point/VSX registers.
33580 2015-03-11 Junmo Park <junmoz.park@samsung.com>
33582 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
33583 crypto_sha256_fast.
33584 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
33586 2015-03-11 Richard Biener <rguenther@suse.de>
33588 PR tree-optimization/65310
33589 * tree-sra.c (build_ref_for_offset): Also preserve larger
33592 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
33594 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
33596 2015-03-10 Jakub Jelinek <jakub@redhat.com>
33599 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
33601 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
33603 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
33605 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
33606 (sem_function::equals_wpa): ... here.
33608 2015-03-10 Marek Polacek <polacek@redhat.com>
33609 Jakub Jelinek <jakub@redhat.com>
33612 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
33613 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
33616 2015-03-10 Jakub Jelinek <jakub@redhat.com>
33619 * config/rs6000/t-linux: For powerpc64* target set
33620 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
33622 2015-03-10 Richard Biener <rguenther@suse.de>
33624 PR middle-end/44563
33625 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
33626 for redirect_all_calls.
33628 2015-03-10 Marek Polacek <polacek@redhat.com>
33630 * gdbinit.in (pcfun): Define and document.
33632 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
33634 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
33635 of libgomp-plugin.h.
33636 (find_target_compiler): Support a case when the path to gcc is
33637 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
33638 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
33639 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
33641 (main): Use GCC_INSTALL_NAME as target_driver_name.
33642 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
33644 (mkoffload.o): Remove obsolete include path and defines.
33645 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
33647 2015-03-10 Richard Biener <rguenther@suse.de>
33649 PR middle-end/63155
33650 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
33651 * tree-ssa-coalesce.c: Include timevar.h.
33652 (attempt_coalesce): Handle graph being NULL.
33653 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
33654 Split out abnormal coalescing to ...
33655 (perform_abnormal_coalescing): ... this function.
33656 (coalesce_ssa_name): Perform abnormal coalescing without computing
33658 (verify_ssa_coalescing_worker): New function.
33659 (verify_ssa_coalescing): Likewise.
33661 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
33664 * config.gcc (extra_options) [avr]: Remove.
33665 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
33666 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
33667 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
33669 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
33670 (-mmcu=): Add Var and MissingArgError properties.
33672 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
33673 * config/avr/t-multilib: Regenerate.
33674 * config/avr/specs.h: New file.
33675 * config/avr/driver-avr.c: New file.
33676 * config/avr/genopt.sh: Remove file.
33677 * config/avr/avr-tables.opt: Remove file.
33678 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
33679 * config/avr/avr-c.c: Same.
33680 * avr-arch.h: Same.
33681 (avr_current_device): Remove proto.
33682 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
33683 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
33684 (EXTRA_SPEC_FUNCTIONS): Define.
33685 (avr_devicespecs_file): New specs function proto.
33686 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
33687 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
33688 (avr_current_device): Remove definition and usage.
33689 (avr_set_core_architecture): New static function.
33690 (avr_option_override): Use it.
33691 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
33692 (mcu_name): New static array.
33693 (comparator, avr_archs_str, avr_mcus_str): New static functions.
33694 (avr_inform_devices, avr_inform_core_architectures): New functions.
33695 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
33696 (avrlibc.h) [WITH_AVRLIBC]: Include.
33697 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
33698 (print_mcu): Rewrite from scratch.
33699 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
33700 Forward to avr-specific specs defined in device-specs file.
33701 * config/avr/t-avr (driver-avr.o): New rule.
33702 (avr-devices.o): Depend on avr-arch.h.
33703 (avr-mcus): No more depend on avr-tables.opt.
33704 (avr-tables.opt): Remove rule.
33705 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
33707 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
33709 * c-family/c.opt (fchkp-use-wrappers): New.
33710 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
33711 (chkp_wrap_function): New.
33712 (chkp_build_instrumented_fndecl): Support wrapped
33714 * doc/invoke.texi (-fcheck-pointer-bounds): New.
33715 (-fchkp-check-incomplete-type): New.
33716 (-fchkp-first-field-has-own-bounds): New.
33717 (-fchkp-narrow-bounds): New.
33718 (-fchkp-narrow-to-innermost-array): New.
33719 (-fchkp-optimize): New.
33720 (-fchkp-use-fast-string-functions): New.
33721 (-fchkp-use-nochk-string-functions): New.
33722 (-fchkp-use-static-bounds): New.
33723 (-fchkp-use-static-const-bounds): New.
33724 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
33725 (-fchkp-check-read): New.
33726 (-fchkp-check-write): New.
33727 (-fchkp-store-bounds): New.
33728 (-fchkp-instrument-calls): New.
33729 (-fchkp-instrument-marked-only): New.
33730 (-fchkp-use-wrappers): New.
33731 (-static-libmpx): New.
33732 (-static-libmpxwrappers): New.
33734 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
33736 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
33737 (CHKP_SPEC): Add wrappers library.
33738 * c-family/c.opt (static-libmpxwrappers): New.
33740 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
33742 * config/i386/linux-common.h (LIBMPX_LIBS): New.
33743 (LIBMPX_SPEC): New.
33745 * gcc.c (CHKP_SPEC): New.
33746 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
33747 * c-family/c.opt (static-libmpx): New.
33749 2015-03-10 Richard Biener <rguenther@suse.de>
33751 PR middle-end/44563
33752 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
33754 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
33755 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
33756 (cgraph_add_edge_to_call_site_hash): Likewise.
33757 (cgraph_node::get_edge): Likewise.
33758 (cgraph_edge::set_call_stmt): Likewise.
33759 (cgraph_edge::remove_caller): Likewise.
33761 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
33763 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
33764 (callee_saved_gpr_regs_size): ... this.
33765 (callee_saved_regs_first_regno): Rename to ...
33766 (callee_saved_first_gpr_regno): ... this.
33767 (callee_saved_regs_last_regno) Rename to ...
33768 (callee_saved_last_gpr_regno): ... this.
33769 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
33771 (nds32_initial_elimination_offset): Likewise.
33772 (nds32_expand_prologue): Likewise.
33773 (nds32_expand_epilogue): Likewise.
33774 (nds32_expand_prologue_v3push): Likewise.
33775 (nds32_expand_epilogue_v3pop): Likewise.
33776 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
33777 Adjust renamed variables.
33778 (nds32_output_stack_pop): Likewise.
33780 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
33782 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
33785 2015-03-10 Jakub Jelinek <jakub@redhat.com>
33787 PR rtl-optimization/65321
33788 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
33790 * var-tracking.c (use_narrower_mode): Likewise.
33792 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
33794 PR tree-optimization/65355
33795 * varasm.c (notice_global_symbol): Do not produce RTL.
33796 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
33798 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
33799 check for section anchors.
33801 2015-03-10 Alan Modra <amodra@gmail.com>
33804 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
33805 to be single-arch by default. Set cpu_is_64bit for powerpc64
33806 given --with-cpu=native.
33807 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
33808 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
33810 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
33811 rs6000_isa_flags rather than TARGET_64BIT.
33813 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
33814 Kaz Kojima <kkojima@gcc.gnu.org>
33816 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
33818 2015-03-09 Jakub Jelinek <jakub@redhat.com>
33821 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
33822 on a TREE_BINFO, instead use BINFO_TYPE.
33824 2015-03-09 Richard Biener <rguenther@suse.de>
33826 PR middle-end/65270
33827 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
33828 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
33829 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
33830 of that. When comparing dereferences compare alignment.
33831 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
33833 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
33835 * ipa-inline-analysis.c (check_callers): Check
33836 node->can_remove_if_no_direct_calls_and_refs_p.
33837 (growth_likely_positive): Reorganize to call
33838 can_remove_if_no_direct_calls_p later.
33839 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
33840 will_be_removed_from_program_if_no_direct_calls_p): Add
33841 will_inline parameter.
33842 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
33843 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
33844 Handle inliner case correctly.
33846 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
33848 PR tree-optimization/63743
33849 * cfgexpand.c (reorder_operands): Also reorder if only second operand
33850 had its definition forwarded by TER.
33852 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
33855 * ipa-utils.h (types_odr_comparable): Add strict argument.
33856 * ipa-devirt.c: Fix whitespace;
33857 (odr_hasher): Remove.
33858 (odr_name_hasher, odr_vtable_hasher): New hashers.
33859 (can_be_name_hashed_p): New predicate.
33860 (hash_type_name): remove.
33861 (hash_odr_name): New.
33862 (odr_name_hasher::hash): new.
33863 (can_be_vtable_hashed_p): New.
33864 (hash_odr_vtable): New.
33865 (odr_vtable_hasher::hash): New.
33866 (types_same_for_odr): Add strict parameter.
33867 (types_odr_comparable): Likewise.
33868 (odr_name_hasher::equal): New.
33869 (odr_vtable_hasher::equal): New.
33870 (odr_name_hasher::remove): New.
33871 (odr_hash_type): Change to hash_table<odr_name_hasher>.
33872 (odr_vtable_hash_type): New.
33873 (odr_vtable_hash): New.
33874 (odr_subtypes_equivalent_p): Do strict comparsion.
33875 (add_type_duplicate): Merge type names; cleanup; avoid type
33877 (register_odr_type): Initialize vtable hash.
33878 (build_type_inheritance_graph): Likewise
33879 (get_odr_type): Reorg to use two hashes.
33880 (dump_possible_polymorphic_call_targets): Move sanity check after debug
33882 (ipa_devirt): Dump type_inheritance_graph.
33883 (types_same_for_odr): Add strict mode.
33885 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
33888 * cgraph.h (symtab_node): Add definition_alignment,
33889 can_increase_alignment_p and increase_alignment.
33890 * symtab.c (symtab_node::can_increase_alignment_p,
33891 increase_alignment_1, symtab_node::increase_alignment,
33892 symtab_node::definition_alignment): New.
33893 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
33894 can_increase_alignment_p.
33895 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
33896 * tree-vect-stmts.c (ensure_base_align): Likewise.
33897 * varasm.c (function_section_1): Use definition_alignment.
33898 (assemble_start_function): Likewise.
33899 (emit_local): likewise.
33900 (build_constant_desc): Likewsie.
33901 (output_constant_def_contents): Likewise.
33902 (place_block_symbol): Likewise.
33903 (output_object_block): Likewise.
33905 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
33908 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
33909 when outputting debug.
33911 2015-03-07 Marek Polacek <polacek@redhat.com>
33912 Martin Uecker <uecker@eecs.berkeley.edu>
33915 * doc/invoke.texi: Update description of -fsanitize=bounds.
33917 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
33919 * tree-ssa-phiopt.c (neg_replacement): Remove.
33920 (tree_ssa_phiopt_worker): Remove negate optimization.
33922 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
33925 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
33927 2015-03-06 Richard Biener <rguenther@suse.de>
33929 PR middle-end/64928
33930 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
33931 and liveout_obstack members.
33932 (calculate_live_on_exit): Remove.
33933 (calculate_live_ranges): Change declaration.
33934 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
33935 (new_tree_live_info): Adjust.
33936 (calculate_live_ranges): Delete livein when not wanted.
33937 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
33938 Deal with partly deleted live info.
33939 (loe_visit_block): Remove temporary bitmap by using
33940 bitmap_ior_and_compl_into.
33941 (live_worklist): Adjust accordingly.
33942 (calculate_live_on_exit): Make static.
33943 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
33944 we do not need livein.
33946 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
33948 * real.c (real_from_string): Fix typo in assertion.
33950 2015-03-06 Alex Velenko <alex.velenko@arm.com>
33952 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
33955 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
33957 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
33959 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
33962 * lra-assigns.c (find_hard_regno_for): Rename to
33963 find_hard_regno_for_1. Add a new parameter.
33964 (find_hard_regno_for): New function using find_hard_regno_for_1.
33966 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
33968 PR rtl-optimization/65067
33969 * expmed.c (store_bit_field, extract_bit_field): Reworked the
33970 strict volatile bitfield handling.
33972 2015-03-05 Martin Liska <mliska@suse.cz>
33975 * ipa-icf.c (sem_variable::equals): Compare variables types.
33977 2015-03-05 Richard Henderson <rth@redhat.com>
33980 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
33981 correctly check weak symbol binding.
33983 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
33985 PR middle-end/65315
33986 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
33989 2015-03-05 Martin Liska <mliska@suse.cz>
33991 * ipa-inline.c (inline_small_functions): Set default value to
33992 prevent warning during bootstrap.
33993 * tree.h: Add pragma guard that ignores false positives during
33996 2015-03-05 Richard Biener <rguenther@suse.de>
33998 PR tree-optimization/65310
33999 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
34000 Properly preserve alignment of the base of the access.
34002 2015-03-05 Richard Biener <rguenther@suse.de>
34005 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
34006 Compare dependence info.
34008 2015-03-05 Richard Biener <rguenther@suse.de>
34010 PR middle-end/65233
34011 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
34013 (walk_ssa_copies): Revert last chage. Instead do not walk
34014 SSA names registered for SSA update.
34016 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34019 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
34020 vtable references for their containing type.
34021 (sem_function::equals_wpa): Compare TYPE_RESTRICT
34022 and type attributes.
34024 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
34026 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
34027 before negating it.
34028 * stor-layout.c (finalize_record_size): Revert latest change.
34030 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
34032 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
34034 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34036 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
34037 for correct comdat handling.
34038 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34040 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
34041 (used_from_object_file_p_worker): Remove.
34042 (cgraph_node::only_called_directly_or_alised): Add
34043 used_from_object_file_p.
34044 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
34045 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
34046 can_remove_if_no_direct_calls_and_refs_p.
34048 2015-03-04 Nick Clifton <nickc@redhat.com>
34050 * config/rl78/rl78.h (enum reg_class): Remove real registers from
34051 General register class.
34052 * config/rl78/rl78-real.md: Replace general register constraints
34053 with real+virtual register constraints.
34055 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34057 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
34058 from checking for -mhtm option.
34060 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34062 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
34063 (struct ipa_sra_check_caller_data): Add has_thunk field.
34064 (ipa_sra_check_caller): Check for thunk.
34065 (ipa_sra_preliminary_function_checks): Give up on function with
34067 (ipa_early_sra): Use call_for_symbol_and_aliases.
34069 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
34072 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
34073 called for __stack_chk_guard symbol.
34075 2015-03-03 DJ Delorie <dj@redhat.com>
34077 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
34079 (*addhi3_real): Likewise.
34080 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
34081 pattern to match incrementing memory.
34082 * config/rl78/predicates.md (rl78_1_2_operand): New.
34083 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
34084 it's the same and only mem.
34085 (rl78_alloc_physical_registers_op2): If there's effectively only
34086 one MEM, transcode it into HL.
34087 (rl78_far_p): Reject addresses that aren't legitimate.
34089 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
34091 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
34094 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
34096 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
34098 Implement call0 ABI for xtensa
34099 * config/xtensa/constraints.md ("a" constraint): Include stack
34100 pointer in case of call0 ABI.
34101 ("q" constraint): Make empty in case of call0 ABI.
34102 ("D" constraint): Include stack pointer in case of call0 ABI.
34103 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
34104 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
34106 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
34108 (xtensa_regno_to_class): Make it a local variable in the
34109 function xtensa_regno_to_class.
34110 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
34111 macro, function prototype and implementation.
34112 (reg_nonleaf_alloc_order): Make it a local variable in the
34113 function order_regs_for_local_alloc.
34114 (xtensa_conditional_register_usage): New function.
34115 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
34116 (xtensa_valid_move): Allow direct moves to stack pointer
34117 register in call0 ABI.
34118 (xtensa_setup_frame_addresses): Only spill register windows in
34120 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
34121 call0 ABI respectively.
34122 (xtensa_function_arg_1): Only mark a7 register for copying in
34124 (xtensa_call_save_reg): New function.
34125 (compute_frame_size): Add space for callee saved register
34126 storage to the frame size in call0 ABI.
34127 (xtensa_expand_prologue): Generate code to set up stack frame
34128 and save callee-saved registers in call0 ABI.
34129 (xtensa_expand_epilogue): New function.
34130 (xtensa_set_return_address): New function.
34131 (xtensa_return_addr): Calculate return address in call0 ABI.
34132 (xtensa_builtin_saveregs): Only mark a7 register for copying and
34133 emit copying code in windowed ABI.
34134 (order_regs_for_local_alloc): Add preferred register allocation
34135 order for non-leaf function in call0 ABI.
34136 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
34137 (xtensa_asm_trampoline_template): Add trampoline generation for
34139 (xtensa_trampoline_init): Add trampoline initialization for
34141 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
34143 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
34144 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
34145 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
34146 ABI call-used registers.
34147 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
34148 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
34150 (REG_CLASS_CONTENTS): Include all registers into the preferred
34151 reload registers set, adjust the set in the
34152 xtensa_conditional_register_usage.
34153 (xtensa_regno_to_class): Drop variable declaration.
34154 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
34156 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
34158 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
34159 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
34160 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
34161 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
34162 location in call0 ABI.
34163 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
34164 stack adjustment size when handling exception.
34165 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
34166 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
34168 ("return" pattern): Generate ret.n/ret in call0 ABI.
34169 ("epilogue" pattern): Expand epilogue.
34170 ("nonlocal_goto" pattern): Use default in call0 ABI.
34171 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
34172 emit eh_set_a0_* depending on ABI.
34173 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
34174 ("eh_set_a0_call0", "blockage"): New patterns.
34176 2015-03-03 Martin Liska <mliska@suse.cz>
34179 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
34181 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
34184 * config/rs6000/rs6000-tables.opt: Regenerate table.
34186 2015-03-03 Renlin Li <renlin.li@arm.com>
34188 * doc/md.texi (@item ^): Change ? into ^.
34190 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
34192 * doc/tm.texi: Regenerated.
34194 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
34196 * builtins.c (expand_builtin_return_addr): Add
34197 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
34198 surrounding #ifdef.
34199 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
34201 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
34203 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
34205 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
34208 2015-03-03 Martin Jambor <mjambor@suse.cz>
34209 Eric Botcazou <ebotcazou@adacore.com>
34211 * tree-sra.c (ipa_sra_check_caller_data): New type.
34212 (has_caller_p): Removed.
34213 (ipa_sra_check_caller): New function.
34214 (ipa_sra_preliminary_function_checks): Use it.
34216 2015-03-03 Martin Liska <mliska@suse.cz>
34218 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
34219 instead of if branch.
34221 2015-03-03 Martin Liska <mliska@suse.cz>
34224 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
34226 2015-03-23 Jeff Law <law@redhat.com>
34228 PR tree-optimization/65241
34229 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
34230 hash table if INSERT is true.
34232 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
34235 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
34237 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
34240 * config/avr/avr.c (context.h, tree-pass.h): Include them.
34241 (avr_pass_data_recompute_notes): New static variable.
34242 (avr_pass_recompute_notes): New class.
34243 (avr_register_passes): New static function.
34244 (avr_option_override): Call it.
34246 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
34248 Fix various problems with specs file generation.
34251 * config.gcc (extra_gcc_objs) [avr]: Remove.
34252 * config/avr/driver-avr.c: Remove file.
34253 * config/avr/t-avr (driver-avr.o): Remove rule.
34254 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
34255 INCLUDES to build. Depend on TM_H.
34256 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
34257 build warnings. Fix non-matching types and non-existing %-codes.
34259 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
34260 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
34261 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
34262 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
34263 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
34264 (LIBGCC_SPEC): Remove definitions.
34266 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
34268 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
34269 to create a register in testing mode.
34271 2015-03-03 Martin Liska <mliska@suse.cz>
34272 Jan Hubicka <hubicka@ucw.cz>
34275 * cgraph.c (cgraph_node::has_thunk_p): New function.
34276 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
34277 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
34278 (sem_function::merge): Assert is changed.
34280 2015-03-03 Martin Liska <mliska@suse.cz>
34281 Martin Jambor <mjambor@suse.cz>
34284 * ipa-icf.c (sem_item_optimizer::execute): Change function
34285 return value to boolean.
34286 (sem_item_optimizer::merge_classes): Likewise.
34287 (ipa_icf_driver): Return TODO_remove_functions in case there's
34288 a merge operation processed.
34289 * ipa-icf.h: Change function return value to boolean.
34291 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
34294 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
34295 processor type for 64-bit little endian PowerPC.
34297 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
34298 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
34299 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
34300 printing built-in mask so it does not pass NULL pointers.
34302 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
34305 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
34308 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
34309 !ISA_HAS_FP_CONDMOVE.
34311 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
34313 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
34316 2015-03-02 Ulrich Drepper <drepper@gmail.com>
34318 * doc/invoke.texi (Options for Code Generation Conventions):
34319 Fix URL of DSO paper.
34321 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
34324 * ipa-inline.c (check_callers): Looks for recursion.
34325 (inline_to_all_callers): Give up on uninlinable or recursive edges.
34326 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
34327 summary of inline clones.
34328 (do_estimate_growth_1): Fix recursion check.
34330 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
34333 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
34336 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
34337 Aldy Hernandez <aldyh@redhat.com>
34340 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
34341 when checking TYPE_BINFO.
34343 2015-03-02 Richard Biener <rguenther@suse.de>
34346 * ipa-icf-gimple.c: Include builtins.h.
34347 (func_checker::compare_memory_operand): Compare base alignment.
34349 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
34352 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
34353 passed by reference.
34355 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
34358 * tree-chkp.c (chkp_check_lower): Don't check against
34359 zero bounds for already instrumented functions.
34360 (chkp_check_upper): Likewise.
34361 (chkp_fini): Clean pass local data to avoid wrong reusage.
34363 2015-02-28 Martin Liska <mliska@suse.cz>
34364 Jan Hubicka <hubicka@ucw.cz>
34366 * ipa-icf.c (sem_variable::equals): Improve debug output;
34367 get variable constructor.
34368 (sem_variable::parse): Do not filter out too early; give up on
34369 volatile and register vars.
34370 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
34372 * ipa-icf.h (sem_variable::init): Do not set ctor.
34373 (sem_variable::ctor): Remove.
34375 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
34377 PR middle-end/65233
34378 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
34380 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34382 * ipa-icf.c: Include stor-layout.h
34383 (sem_function::compare_cgraph_references): Rename to ...
34384 (sem_item::compare_cgraph_references): ... this one.
34385 (sem_variable::equals_wpa): New function
34386 (sem_variable::equals): Do not check stuff already verified by
34388 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
34389 * ipa-icf.h (sem_item): Add compare_cgraph_references.
34390 (sem_function): Remove compare_cgraph_references.
34391 (sem_variable): Turns equals_wpa into non-inline.
34393 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34395 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
34396 (sem_item::add_expr): New function.
34397 (sem_function::hash_stmt): Handle operands of most statements.
34398 (sem_variable::get_hash): Hash the actual constructor.
34399 * ipa-icf.h (sem_item): Add add_expr.
34400 (sem_function): Update prototype of hash_stmt
34402 2015-02-28 Martin Liska <mliska@suse.cz>
34403 Jan Hubicka <hubicka@ucw.cz>
34406 * ipa-icf-gimple.c (func_checker::compare_function_decl):
34408 (func_checker::compare_variable_decl): Skip symtab vars.
34409 (func_checker::compare_cst_or_decl): Update.
34410 * ipa-icf.c (sem_function::parse): Do not consider aliases.
34411 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
34412 use correct symtab predicates.
34413 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
34414 (sem_variable::parse): Update comment.
34415 (sem_item_optimizer::build_graph): Consider ultimate aliases
34418 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34420 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
34423 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34425 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
34426 (sem_variable::merge) Likewise.
34428 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34430 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
34431 target; also match flag_ipa_devirt.
34433 2015-03-01 Martin Liska <mliska@suse.cz>
34434 Jan Hubicka <hubicka@ucw.cz>
34436 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
34437 Validate variable alignment.
34438 * ipa-icf.c (sem_function::equals_private): Be more precise
34439 about non-common function attributes.
34440 (sem_variable::equals): Likewise.
34442 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34445 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
34446 across COMDAT group boundary.
34448 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34451 * ipa-icf.c (clear_decl_rtl): New function.
34452 (sem_function::merge): Clear RTL before forming alias.
34453 (sem_variable::merge): Clear RTL before forming alias.
34455 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34458 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
34460 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
34462 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
34465 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
34467 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
34468 a typo in the description.
34470 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
34473 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
34474 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
34475 * lra-constraints.c: Include "params.h".
34476 (EBB_PROBABILITY_CUTOFF): Use
34477 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
34478 (lra_inheritance): Use '<' instead of '<=' for
34479 EBB_PROBABILITY_CUTOFF.
34480 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
34483 2015-02-27 Martin Liska <mliska@suse.cz>
34485 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
34486 vector length condition.
34488 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
34490 * doc/extend.texi (x86 transactional memory intrinsics):
34491 Reorganize discussion of _xbegin. Clarify that the return
34492 value is a bit mask. Expand example and move to end of section.
34494 2015-02-26 Jakub Jelinek <jakub@redhat.com>
34495 Aldy Hernandez <aldyh@redhat.com>
34497 PR rtl-optimization/65220
34498 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
34500 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
34503 * lra-remat.c (update_scratch_ops): New.
34504 (do_remat): Call it.
34505 * lra.c (lra_register_new_scratch_op): New. Take code from ...
34506 (remove_scratches): ... here.
34507 * lra-int.h (lra_register_new_scratch_op): New prototype.
34509 2015-02-27 Marek Polacek <polacek@redhat.com>
34512 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
34513 -Wformat-signedness anymore.
34515 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34517 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
34519 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
34521 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34523 * config/s390/s390.c (enum s390_builtin):
34524 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
34525 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
34526 (s390_init_builtins): Generate new builtin functions.
34527 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
34528 (s390_sfpc, s390_efpc): New pattern definitions.
34530 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34532 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
34533 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
34534 (s390_builtin_decls): New array.
34535 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
34536 (s390_builtin_decl): New function.
34537 (TARGET_BUILTIN_DECL): Define macro.
34539 2015-02-27 Richard Biener <rguenther@suse.de>
34541 PR middle-end/63175
34542 * builtins.c (get_object_alignment_2): Make sure to re-apply
34543 the ANDed mask after recursing to its operand gets us a new
34544 misalignment bit position.
34546 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
34547 Martin Liska <mliska@suse.cz>
34550 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
34551 Use address_matters_p.
34552 (redirect_all_callers, set_addressable): New functions.
34553 (sem_function::merge): Reorganize and fix merging issues.
34554 (sem_variable::merge): Likewise.
34555 (sem_variable::compare_sections): Remove.
34556 * common.opt (fmerge-all-constants, fmerge-constants): Remove
34558 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
34560 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
34562 (address_matters_1): New function.
34563 (symtab_node::address_matters_p): New function.
34564 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
34565 check for merged flag.
34566 * cgraph.h (address_matters_p): Declare.
34567 (symtab_node::address_taken_from_non_vtable_p): Remove.
34568 (symtab_node::address_can_be_compared_p): New method.
34569 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
34570 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
34572 (comdat_can_be_unshared_p_1) Use address_matters_p.
34573 (update_vtable_references): Fix formating.
34574 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
34575 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
34576 * cgraphclones.c: Preserve merged and icf_merged flags.
34578 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
34580 * doc/extend.texi (Function Attributes): Fix spelling and typos.
34581 (Label Attributes): Likewise.
34582 (Cilk Plus Builtins): Likewise.
34583 (ARC SIMD Built-in Functions): Likewise.
34584 (ARM C Language Extensions (ACLE)): Likewise.
34585 (PowerPC Built-in Functions): Likewise.
34586 (PowerPC Hardware Transactional Memory Built-in Functions):
34589 2015-02-26 Jakub Jelinek <jakub@redhat.com>
34591 PR tree-optimization/65216
34592 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
34593 new stmt and new SSA_NAME for lhs whenever the arguments have
34594 changed and weren't just swapped. Fix comment typo.
34596 PR tree-optimization/65215
34597 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
34598 for PDP endian targets.
34599 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
34600 Fix up formatting issues.
34601 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
34602 size is smaller than the original, adjust MEM_REF offset by the
34603 difference of sizes. Use is_gimple_mem_ref_addr instead of
34604 is_gimple_min_invariant test to avoid adding address temporaries.
34606 2015-02-26 Martin Liska <mliska@suse.cz>
34607 Jan Hubicka <hubicka@ucw.cz>
34610 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
34611 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
34612 (sem_item_optimizer::process_cong_reduction): Include division by
34613 sensitive references.
34614 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
34615 * ipa-ref.c (ipa_ref::address_matters_p): New function.
34616 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
34618 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
34621 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
34623 * config/avr/avr.c: Same.
34624 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
34625 Refuse any constant address not in 0..0xbf.
34626 * config/avr/avr.md (*mov<mode>, *movsf): Remove
34627 tiny_valid_direct_memory_access_range from insn conditions.
34628 (mov<mode>): Don't special-case expansion of avrtiny addresses.
34630 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
34633 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
34634 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
34635 * config/sh/predicates.md (const_logical_operand): New predicate.
34636 * config/sh/sh.md: Add new peephole2 patterns.
34638 2015-02-26 Marek Polacek <polacek@redhat.com>
34641 * ipa-inline.c (early_inliner): Recompute inline parameters.
34643 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34646 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
34647 instructions with TImode operands are included in the analysis.
34649 2015-02-26 Sebastian Pop <s.pop@samsung.com>
34651 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
34652 of an EDGE_FSM_THREAD.
34654 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
34656 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
34658 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
34661 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
34663 2015-02-26 Sebastian Pop <s.pop@samsung.com>
34665 PR tree-optimization/65048
34666 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
34667 (thread_through_all_blocks): Call valid_jump_thread_path.
34668 Remove invalid FSM jump-thread paths.
34670 2015-02-26 Jakub Jelinek <jakub@redhat.com>
34672 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
34673 (ipa_write_optimization_summaries): Likewise.
34674 * tree-streamer.h: Include data-streamer.h.
34675 (streamer_mode_table): Declare extern variable.
34676 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
34677 * lto-streamer-out.c (lto_output_init_mode_table,
34678 lto_write_mode_table): New functions.
34679 (produce_asm_for_decls): Call lto_write_mode_table when streaming
34681 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
34682 (lto_create_simple_input_block): Add mode_table argument to the
34683 lto_input_block constructors.
34684 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
34686 * data-streamer-in.c (string_for_index): Likewise.
34687 * ipa-inline-analysis.c (inline_read_section): Likewise.
34688 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
34689 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
34690 * lto-streamer-in.c (lto_read_body_or_constructor,
34691 lto_input_toplevel_asms): Likewise.
34692 (lto_input_mode_table): New function.
34693 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
34694 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
34695 Use bp_pack_machine_mode.
34696 * real.h (struct real_format): Add name field.
34697 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
34698 (class lto_input_block): Add mode_table member.
34699 (lto_input_block::lto_input_block): Add mode_table_ argument,
34700 initialize mode_table.
34701 (struct lto_file_decl_data): Add mode_table field.
34702 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
34703 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
34704 unpack_ts_decl_common_value_fields,
34705 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
34706 * tree-streamer.c (streamer_mode_table): New variable.
34707 * real.c (ieee_single_format, mips_single_format,
34708 motorola_single_format, spu_single_format, ieee_double_format,
34709 mips_double_format, motorola_double_format,
34710 ieee_extended_motorola_format, ieee_extended_intel_96_format,
34711 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
34712 ibm_extended_format, mips_extended_format, ieee_quad_format,
34713 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
34714 decimal_single_format, decimal_double_format, decimal_quad_format,
34715 ieee_half_format, arm_half_format, real_internal_format): Add name
34717 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
34719 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
34722 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
34723 reordering for selective scheduling.
34725 2015-02-26 Terry Guo <terry.guo@arm.com>
34727 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
34728 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
34729 (arm_arch_no_volatile_ce): Declare new global variable.
34730 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
34731 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
34732 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
34733 (TARGET_NO_VOLATILE_CE): New macro.
34734 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
34735 volatile memory access in IT block
34737 2015-02-25 Kai Tietz <ktietz@redhat.com>
34739 PR tree-optimization/61917
34740 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
34741 that reduc_def_stmt is null.
34743 2015-02-25 Martin Liska <mliska@suse.cz>
34745 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
34746 hard register variables.
34748 2015-02-25 Kai Tietz <ktietz@redhat.com>
34751 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
34752 (symtab::noninterposable_alias): Likewise.
34754 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
34757 * config/i386/i386.c (ix86_function_arg_regno_p): Support
34759 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
34761 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
34764 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
34765 as split condition; force split via '#' in output pattern.
34767 2015-02-25 Richard Biener <rguenther@suse.de>
34768 Kai Tietz <ktietz@redhat.com>
34770 PR tree-optimization/61917
34771 * tree-vect-loop.c (vectorizable_reduction): Allow
34772 vect_internal_def without reduction to exit graceful.
34774 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
34777 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
34778 only with NONDEBUG_INSN_P.
34780 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
34782 Use variadic macros with avr-log.c.
34784 * config/avr/avr-protos.h (avr_vdump): New prototype.
34785 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
34786 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
34787 * config/avr/avr-log.c: Adjust comments.
34788 (avr_vdump): New function.
34789 (avr_vadump): Pass caller as 2nd argument instead of format string.
34790 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
34791 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
34793 2015-02-25 Jakub Jelinek <jakub@redhat.com>
34796 * target.def (target_option_stream_in): New target hook.
34797 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
34798 targetm.target_option.post_stream_in if non-NULL.
34799 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
34800 * doc/tm.texi: Updated.
34801 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
34803 (TARGET_OPTION_POST_STREAM_IN): Redefine.
34805 2015-02-24 Jeff Law <law@redhat.com>
34808 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
34809 of operand 0 and operand 2.
34810 (zero_cost_loop_end, loop_end): Similarly.
34812 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
34814 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
34817 2015-02-24 DJ Delorie <dj@redhat.com>
34819 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
34820 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
34821 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
34822 instead of hardcoding SImode.
34824 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
34826 * omp-low.c (create_omp_child_function): Tag entrypoint
34827 functions with a special attribute.
34829 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
34832 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
34834 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
34836 PR rtl-optimization/65123
34837 * lra-remat.c (operand_to_remat): Check hard regs in insn
34840 2015-02-24 Nick Clifton <nickc@redhat.com>
34842 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
34845 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
34848 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
34849 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
34850 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
34851 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
34852 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
34853 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
34854 (BUILT_IN_GOACC_PARALLEL): Specify as
34855 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
34856 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
34857 * builtin-types.def
34858 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
34859 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
34860 Remove function types.
34861 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
34862 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
34863 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
34864 New function types.
34866 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
34868 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
34870 2015-02-24 Jakub Jelinek <jakub@redhat.com>
34872 PR tree-optimization/65170
34873 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
34874 if val[1] < 0, clear also val[2] and return 3.
34876 2015-02-24 Alan Modra <amodra@gmail.com>
34879 * config/rs6000/rs6000.c (get_memref_parts): Only return true
34880 when *base is a reg. Handle nested plus addresses. Simplify
34883 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
34885 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
34886 use natural alignment when optimizing for size.
34888 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
34891 * config/sh/sh.md (movsicc_true+3): Remove peephole.
34892 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
34893 * config/sh/sh.c (replace_n_hard_rtx): Remove.
34895 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
34898 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
34899 too big for a wide_int. Implement missing wrapping operation.
34901 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
34904 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
34905 instead of const_int 4294901760.
34907 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
34909 * config/avr/t-avr: Fix typo in comment.
34911 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
34913 * doc/rtl.texi (fma): Clarify documentation.
34915 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
34918 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
34919 over input_location.
34921 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
34923 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
34924 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
34925 restrict alignments to absolute_biggest_alignment.
34926 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
34928 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
34929 * doc/tm.texi: Regenerate.
34930 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
34932 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
34935 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
34937 2015-02-20 Richard Biener <rguenther@suse.de>
34939 PR tree-optimization/65136
34940 * tree-ssa-propagate.c: Include cfgloop.h.
34941 (replace_phi_args_in): Avoid replacing loop latch edge PHI
34942 arguments with constants.
34944 2015-02-20 Jakub Jelinek <jakub@redhat.com>
34945 Martin Liska <mliska@suse.cz>
34948 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
34949 don't try to create_thunk if stdarg_p. If
34950 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
34951 redirect_callers if possible.
34952 (sem_item_optimizer::execute): Call unregister_hooks here...
34953 (ipa_icf_driver): ... instead of here.
34955 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34957 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
34958 Mark operand 0 as earlyclobber in 2nd alternative.
34959 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
34960 Write negated shift amount into QI lowpart operand 0 and use it
34962 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
34964 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
34966 * cgraph.h (clone_function_name_1): Declare.
34967 * cgraphclones.c (clone_function_name_1): New function.
34968 (clone_function_name): Use it.
34969 * lto-partition.c: Include "stringpool.h".
34970 (must_not_rename, maybe_rewrite_identifier)
34971 (validize_symbol_for_target): New static functions.
34972 (privatize_symbol_name): Use must_not_rename.
34973 (promote_symbol): Call validize_symbol_for_target.
34974 (lto_promote_cross_file_statics): Likewise.
34975 (lto_promote_statics_nonwpa): Likewise.
34977 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
34980 * config/avr/avr.md (pushhi_insn): New insn.
34981 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
34983 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
34984 Jakub Jelinek <jakub@redhat.com>
34986 * tree-streamer.c (preload_common_nodes): Don't preload
34987 TI_VA_LIST* for offloading.
34988 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
34991 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
34993 * config/pa/pa.c (pa_emit_move_sequence): Always force
34994 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
34997 * config/pa/pa.c (pa_reloc_rw_mask): New function.
34998 (TARGET_ASM_RELOC_RW_MASK): Define.
34999 (pa_cannot_force_const_mem): Revert previous change.
35001 2015-02-19 Martin Jambor <mjmabor@suse.cz>
35002 Jan Hubicka <hubicka@ucw.cz>
35005 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
35006 across jump functions.
35008 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
35010 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
35012 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
35014 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
35016 2015-02-19 Richard Henderson <rth@redhat.com>
35018 PR middle-end/65074
35019 * varasm.c (default_binds_local_p_2): Don't test node->definition;
35020 test DECL_EXTERNAL independent of symtab_node.
35022 2015-02-19 Jakub Jelinek <jakub@redhat.com>
35025 * varpool.c (varpool_node::get_constructor): Return early
35026 if this->lto_file_data is NULL.
35028 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35030 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
35031 (rank_for_schedule_debug): Update.
35032 (ready_sort): Make static. Move sorting logic to ...
35033 (ready_sort_debug, ready_sort_real): New static functions.
35034 (schedule_block): Sort both debug insns and real insns in preparation
35035 for ready list trimming. Improve debug output.
35036 * sched-int.h (ready_sort): Remove global declaration.
35038 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
35040 * ipa-icf.c (sem_function::equals_private): Adjust.
35041 (sem_function::bb_dict_test): Take a vec<int> * instead of
35043 * ipa-icf.h (bb_dict_test): Likewise.
35045 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35047 PR gcov-profile/64634
35048 * tree-eh.c (frob_into_branch_around): Fix up typos
35049 in function comment.
35050 (lower_catch): Put eh_seq resulting from EH lowering of
35051 the cleanup sequence after the cleanup rather than before it.
35053 2015-02-18 Tom de Vries <tom@codesourcery.com>
35055 * common.opt (fstdarg-opt): New option.
35056 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
35057 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
35058 (@item -fstdarg-opt): New item.
35060 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
35063 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
35064 for common symbols.
35066 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35068 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
35070 (ALL_HOST_OBJS): Add mkoffload.o.
35071 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
35073 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
35075 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
35076 (compare_virtual_tables): Be smarter about skipping typeinfos;
35077 do sane output on virtual table table mismatch.
35078 (warn_odr): Be ready for forward declarations of enums;
35079 output sane info on base mismatch and virtual table mismatch.
35080 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
35081 when only one type is polymorphic.
35082 (get_odr_type): Fix hashtable corruption.
35083 (dump_odr_type): Dump mangled names.
35085 2015-02-18 Richard Biener <rguenther@suse.de>
35087 PR tree-optimization/65063
35088 * tree-predcom.c (determine_unroll_factor): Return 1 if we
35089 have replaced looparound PHIs.
35091 2015-02-18 Martin Liska <mliska@suse.cz>
35093 * lto-streamer.c (lto_streamer_init): Encapsulate
35094 streamer_check_handled_ts_structures with checking macro.
35096 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35099 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
35100 section if !implicit_section.
35101 (cgraph_node::create_version_clone_with_body): Likewise.
35102 * trans-mem.c (ipa_tm_create_version): Likewise.
35104 2015-02-18 Richard Biener <rguenther@suse.de>
35106 PR tree-optimization/62217
35107 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
35110 2015-02-18 Marek Polacek <polacek@redhat.com>
35113 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
35114 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
35115 is in range [-16K, -1]. Don't issue run-time error if
35116 (ptr > ptr + offset).
35118 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
35120 * doc/install.texi (nvptx-*-none): New section.
35121 * doc/invoke.texi (Nvidia PTX Options): Likewise.
35122 * config/nvptx/nvptx.opt: Update.
35124 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
35125 (access_check): New functions, copied from
35126 config/i386/intelmic-mkoffload.c.
35127 (main): For non-installed testing, look in all COMPILER_PATHs for
35130 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
35132 2015-02-18 Andrew Pinski <apinski@cavium.com>
35133 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35135 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
35136 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
35138 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
35140 * ipa-visibility.c (function_and_variable_visibility): Only
35141 check locality if node is not already local.
35142 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
35143 call_for_symbol_and_aliases instead of
35144 call_for_symbol_thunks_and_aliases.
35145 (ipa_inline): Likewise.
35146 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
35147 first walk aliases.
35148 * ipa.c (symbol_table::remove_unreachable_nodes): Use
35149 call_for_symbol_and_aliases.
35150 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
35151 (ipa_propagate_frequency_1): Use it; use opt_for_fn
35152 (ipa_propagate_frequency): Update.
35153 (ipa_profile): Add opt_for_fn gueards.
35155 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
35157 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
35158 * doc/invoke.texi (SH options): Document it.
35159 * config/sh/sh.c (sh_insn_length_adjustment): Check
35160 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
35162 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
35164 * common.opt (fipa-cp-alignment): New.
35165 * ipa-cp.c (ipcp_store_alignment_results): Check
35166 flag_ipa_cp_alignment.
35167 * opts.c (default_options_table): Enable -fipa-cp-alignment for
35169 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
35170 * doc/invoke.texi: Document -fipa-cp-alignment.
35172 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
35175 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
35176 to nil. Adjust comments.
35178 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
35180 * ipa-visibility.c (function_and_variable_visibility): Only
35181 check locality if node is not already local.
35182 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
35183 call_for_symbol_and_aliases instead of
35184 call_for_symbol_thunks_and_aliases.
35185 (ipa_inline): Likewise.
35186 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
35187 first walk aliases.
35188 * ipa.c (symbol_table::remove_unreachable_nodes): Use
35189 call_for_symbol_and_aliases.
35190 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
35191 (ipa_propagate_frequency_1): Use it; use opt_for_fn
35192 (ipa_propagate_frequency): Update.
35193 (ipa_profile): Add opt_for_fn guards.
35195 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
35197 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
35198 skipping of "strange" tokens.
35200 2015-02-17 Jeff Law <law@redhat.com>
35202 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
35205 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
35207 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
35208 as forcing a HARD_DEP between instructions, thereby
35209 disallowing rewriting to break dependencies.
35211 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
35213 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
35214 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
35215 variables in boundary that have no inlitalizer encoded and are
35217 * varasm.c (default_binds_local_p_2): External definitions do not
35218 count as definitions here.
35220 2015-02-16 Jeff Law <law@redhat.com>
35222 PR tree-optimization/64823
35223 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
35225 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
35226 threading through blocks with PHIs, but no statements.
35227 (thread_through_normal_block): Distinguish between blocks where
35228 we did not process all the statements and blocks with no statements.
35230 2015-02-16 Jakub Jelinek <jakub@redhat.com>
35231 James Greenhalgh <james.greenhalgh@arm.com>
35234 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
35235 section if not linkonce. Fix up formatting.
35236 (cgraph_node::create_version_clone_with_body): Copy section.
35237 * trans-mem.c (ipa_tm_create_version): Likewise.
35239 2015-02-16 Richard Biener <rguenther@suse.de>
35241 PR tree-optimization/65077
35242 * tree-ssa-structalias.c (get_constraint_for_1): Handle
35243 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
35244 (find_func_aliases): Allow float values to carry pointers again.
35246 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
35248 * doc/install.texi (Specific): Reorder targets list to put
35249 aarch64 in alphabetical order. Add a link to aarch64*-*-*
35252 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
35253 David Edelsohn <dje.gcc@gmail.com>
35256 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
35257 mapping class to external variable or function reference.
35258 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
35261 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
35264 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
35265 ASM_WEAKEN_DECL if defined.
35267 2015-02-16 Richard Biener <rguenther@suse.de>
35270 * varasm.c (default_file_start): For LTO produced units
35271 emit <artificial> as file directive.
35273 2015-02-16 Richard Biener <rguenther@suse.de>
35275 PR tree-optimization/63593
35276 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
35277 stmts and releasing SSA names until...
35278 (execute_pred_commoning): ... after processing all chains.
35280 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
35283 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
35284 external functions.
35286 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
35288 * doc/bugreport.texi: Adjust section titles throughout the file
35289 to use "Title Case".
35290 * doc/extend.texi: Likewise.
35291 * doc/gcov.texi: Likewise.
35292 * doc/implement-c.texi: Likewise.
35293 * doc/implement-cxx.texi: Likewise.
35294 * doc/invoke.texi: Likewise.
35295 * doc/objc.texi: Likewise.
35296 * doc/standards.texi: Likewise.
35297 * doc/trouble.texi: Likewise.
35299 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
35301 * cgraph.h (symtab_node::has_aliases_p): Simplify.
35302 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
35303 * tree.c (lookup_binfo_at_offset): Make static.
35304 (get_binfo_at_offset): Do not shadow offset; add explanatory
35307 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
35309 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
35310 for all floading point loads and stores except those using a register
35312 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
35315 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
35317 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
35318 (do_estimate_growth_1): Record if any uninlinable edge was seen.
35319 (estimate_growth): Handle uninlinable edges correctly.
35320 (check_callers): New.
35321 (growth_likely_positive): Handle aliases correctly.
35323 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
35325 * ipa-chkp.c: Use iterate_direct_aliases.
35326 * symtab.c (resolution_used_from_other_file_p): Move inline.
35327 (symtab_node::create_reference): Fix formating.
35328 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
35329 (symtab_node::iterate_reference): Move inline.
35330 (symtab_node::iterate_referring): Move inline.
35331 (symtab_node::iterate_direct_aliases): Move inline.
35332 (symtab_node::used_from_object_file_p_worker): Inline into ...
35333 (symtab_node::used_from_object_file_p): ... this one; move inline.
35334 (symtab_node::call_for_symbol_and_aliases): Move inline;
35335 use iterate_direct_aliases.
35336 (symtab_node::call_for_symbol_and_aliases_1): New method.
35337 (cgraph_node::call_for_symbol_and_aliases): Move inline;
35338 use iterate_direct_aliases.
35339 (cgraph_node::call_for_symbol_and_aliases_1): New method.
35340 (varpool_node::call_for_node_and_aliases): Rename to ...
35341 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
35342 use iterate_direct_aliases.
35343 (varpool_node::call_for_symbol_and_aliases_1): New method.
35344 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
35345 (ipa_discover_readonly_nonaddressable_var): Update.
35346 * ipa-devirt.c: Fix formating.
35347 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
35349 (cgraph_node::call_for_symbol_and_aliases): Move inline.
35350 (cgraph_node::call_for_symbol_and_aliases_1): New function..
35351 * cgraph.h (used_from_object_file_p_worker): Remove.
35352 (resolution_used_from_other_file_p): Move inline.
35353 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
35354 (symtab_node::iterate_reference): Move inline.
35355 (symtab_node::iterate_referring): Move inline.
35356 (symtab_node::iterate_direct_aliases): Move inline.
35357 (symtab_node::used_from_object_file_p_worker): Inline into ...
35358 (symtab_node::used_from_object_file_p): Move inline.
35359 * tree-emutls.c (ipa_lower_emutls): Update.
35360 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
35361 (varpool_node::call_for_node_and_aliases): Remove.
35363 2015-02-14 Jakub Jelinek <jakub@redhat.com>
35365 PR tree-optimization/62209
35366 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
35367 op == range->exp, insert seq and gimplified code after labels
35368 instead of after the phi.
35370 2015-02-13 Jeff Law <law@redhat.com>
35373 Revert my change for tree-optimization/64823.
35375 2015-02-13 Jakub Jelinek <jakub@redhat.com>
35377 PR tree-optimization/65053
35378 * tree-ssa-phiopt.c (value_replacement): When moving assign before
35379 cond, either reset VR on lhs or set it to phi result VR.
35381 2015-02-13 Jeff Law <law@redhat.com>
35383 PR tree-optimization/64823
35384 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
35385 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
35386 threading through blocks with PHIs, but no statements.
35387 (thread_through_normal_block): Distinguish between blocks where
35388 we did not process all the statements and blocks with no statements.
35390 PR rtl-optimization/47477
35391 * match.pd (convert (plus/minus (convert @0) (convert @1): New
35392 simplifier to narrow arithmetic.
35394 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
35397 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
35398 polymorphic call info when type is not known to be preserved.
35400 2015-02-13 Maritn Jambor <mjambor@suse.cz>
35403 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
35404 (inline_call): Use it.
35406 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
35408 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
35409 GOMP_DEVICE_NVIDIA_PTX.
35411 2015-02-13 Jakub Jelinek <jakub@redhat.com>
35414 * stmt.c (emit_case_nodes): Use void_type_node instead of
35415 NULL_TREE as LABEL_DECL type.
35417 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
35419 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
35421 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
35422 symbolic references to data to be forced to constant memory on the
35425 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
35427 PR tree-optimization/65002
35428 * tree-cfg.c (pass_data_fixup_cfg): Don't update
35430 * tree-sra.c (some_callers_have_no_vuse_p): New.
35431 (ipa_early_sra): Reject functions whose callers
35432 assume function is read only.
35434 2015-02-13 Richard Biener <rguenther@suse.de>
35437 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
35438 for LTO produced CUs.
35440 2015-02-13 Bin Cheng <bin.cheng@arm.com>
35442 PR tree-optimization/64705
35443 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
35444 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
35445 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
35446 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
35447 expand_simple_operations.
35449 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
35450 Richard Henderson <rth@redhat.com>
35453 * cgraphunit.c (cgraph_node::finalize_function): Set definition
35454 before notice_global_symbol.
35455 (varpool_node::finalize_decl): Likewise.
35456 * varasm.c (default_binds_local_p_2): Rename from
35457 default_binds_local_p_1, add weak_dominate argument. Use direct
35458 returns instead of assigning to local variable. Unify varpool and
35459 cgraph paths via symtab_node. Reject undef weak variables before
35460 testing visibility. Reorder tests for simplicity.
35461 (default_binds_local_p): Use default_binds_local_p_2.
35462 (default_binds_local_p_1): Likewise.
35463 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
35465 (default_elf_asm_output_external): Emit visibility when specified.
35467 2015-02-13 Alan Modra <amodra@gmail.com>
35469 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
35470 code setting up r11 for out-of-line fp restore.
35472 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
35474 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
35475 (muser-mode): Likewise.
35477 2015-02-13 Alan Modra <amodra@gmail.com>
35479 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
35480 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
35482 2015-02-12 David Howells <dhowells@redhat.com>
35484 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
35486 * tree-ssa-uninit.c (dump_predicates): Likewise.
35487 * opts.c (print_filtered_help): Likewise.
35489 2015-02-12 Jakub Jelinek <jakub@redhat.com>
35491 * dwarf2out.c (output_die): Use "%s", name instead of name to
35492 avoid -Wformat-security warning.
35494 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
35495 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
35496 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
35497 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
35499 2015-02-12 Jason Merrill <jason@redhat.com>
35501 * common.opt (-flifetime-dse): New.
35503 2015-02-12 Jakub Jelinek <jakub@redhat.com>
35506 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
35508 PR tree-optimization/65014
35509 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
35510 use original second operand of arg0 or arg1 instead of
35511 that adjusted by STRIP_NOPS.
35513 2015-02-11 Jeff Law <law@redhat.com>
35516 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
35517 that needs to be queued, just queue it for a single cycle.
35519 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
35521 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
35522 bodies of thunks; comment on why.
35523 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
35524 symbols are extern.
35526 2015-02-11 Richard Henderson <rth@redhat.com>
35529 * tree-eh.c (mark_reachable_handlers): Mark source and destination
35530 regions of __builtin_eh_copy_values.
35532 2015-02-11 Jakub Jelinek <jakub@redhat.com>
35534 PR middle-end/65003
35535 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
35536 ultimate alias is MEM with SYMBOL_REF satisfying
35537 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
35538 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
35540 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
35542 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
35543 "diagnostic-core.h".
35544 (main): Initialize progname, and call diagnostic_initialize.
35546 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
35547 instead of __OPENMP_TARGET__.
35549 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
35550 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
35551 hard-coding PTX_ID.
35553 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
35555 * doc/sourcebuild.texi (pie_enabled): Document.
35557 2015-02-11 Martin Liska <mliska@suse.cz>
35560 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
35561 a return value for call to a function that is noreturn.
35563 2015-02-11 Richard Biener <rguenther@suse.de>
35566 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
35569 2015-02-11 Andrew Pinski <apinski@cavium.com>
35572 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
35573 Change the first argument type to size_type_node and add another
35575 (aarch64_simd_expand_builtin): Handle the new argument to
35576 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
35577 print an out when the first two arguments are not
35578 nonzero integer constants.
35579 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
35580 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
35582 2015-02-11 Jakub Jelinek <jakub@redhat.com>
35585 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
35586 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
35587 (ix86_set_current_function): Rewritten.
35588 (ix86_add_new_builtins): Temporarily clear current_target_pragma
35589 when creating builtin fndecls.
35591 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
35594 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
35596 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
35597 have no comdat group.
35598 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
35599 (lto_output_varpool_node): Always output alias info.
35600 (output_refs): Output refs of boundary aliases, too.
35601 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
35602 (output_symtab): Output call eges in thunks in boundary.
35603 (get_alias_symbol): Remove.
35604 (input_node, input_varpool_node): Do not special case weakrefs.
35605 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
35606 alias and thunks targets in the boundary; do not take removed symbols
35607 from their comdat groups.
35608 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
35609 (cgraph_node::global_info): Remove.
35610 (cgraph_node::rtl_info): Look through aliases and thunks.
35611 * cgrpah.h (global_info): Remove.
35612 (non_local_p): Remove.
35614 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
35615 Sandra Loosemore <sandra@codesourcery.com>
35617 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
35618 to inline asm. List dialects in proper order.
35620 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
35621 Sandra Loosemore <sandra@codesourcery.com>
35623 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
35625 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
35627 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
35628 modified) reference to Solaris.
35630 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
35632 * doc/extend.texi (Extended Asm): Fix typos.
35634 2015-02-10 Jakub Jelinek <jakub@redhat.com>
35637 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
35639 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
35642 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
35643 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
35644 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
35645 * config/sh/constraints.md (Ara, Add): New constraints.
35646 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
35648 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
35649 atomic_mem_operand_0. Don't use force_reg on the memory address.
35650 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
35651 Sra constraint. Convert to insn_and_split. Add workaround for
35653 (atomic_compare_and_swap<mode>_hard): Copy to
35654 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
35655 Use atomic_mem_operand_0 predicate.
35656 (atomic_compare_and_swap<mode>_soft_gusa,
35657 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
35658 AraAdd constraints.
35659 (atomic_compare_and_swap<mode>_soft_tcb,
35660 atomic_compare_and_swap<mode>_soft_imask,
35661 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
35662 atomic_mem_operand_0 predicate and SraSdd constraints.
35663 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
35665 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
35666 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
35667 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
35668 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
35669 force_reg on the memory address.
35670 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
35671 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
35672 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
35673 atomic_mem_operand_1 predicate and Sra constraint.
35674 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
35675 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
35676 Use atomic_mem_operand_1 predicate.
35677 (atomic_<fetchop_name><mode>_hard): Copy to
35678 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
35679 Use atomic_mem_operand_1 predicate.
35680 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
35681 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
35682 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
35683 insn_and_split. Use atomic_mem_operand_1 predicate.
35684 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
35685 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
35686 Use atomic_mem_operand_1 predicate.
35687 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
35688 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
35689 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
35690 in generated insn with original mem operand before emitting the insn.
35691 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
35692 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
35693 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
35694 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
35695 Use atomic_mem_operand_1 predicate and AraAdd constraints.
35696 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
35697 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
35698 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
35699 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
35700 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
35701 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
35702 atomic_not_fetch<mode>_soft_tcb,
35703 atomic_<fetchop_name>_fetch<mode>_soft_imask,
35704 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
35705 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
35706 Use atomic_mem_operand_1 predicate and SraSdd constraints.
35708 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
35710 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
35711 and 3 earlyclobber operands.
35713 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
35715 * common.opt (fstack-reuse): Mark as optimization.
35717 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
35720 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
35722 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
35724 PR tree-optimization/64326
35725 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
35727 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
35729 PR gcov-profile/61889
35730 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
35732 2015-02-10 Richard Biener <rguenther@suse.de>
35734 PR tree-optimization/64995
35735 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
35736 value we use is final.
35737 (visit_reference_op_store): Always valueize op.
35738 (visit_use): Properly valueize vuses.
35740 2015-02-10 Richard Biener <rguenther@suse.de>
35742 PR tree-optimization/64909
35743 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
35744 pass a scalar-stmt count estimate to the cost model.
35745 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
35747 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
35749 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
35750 enabled by default together with var-tracking.
35752 2015-02-10 Nick Clifton <nickc@redhat.com>
35754 * config/rl78/rl78.c: Remove DIV attribute code accidentally
35755 included in previous rl78 commit.
35757 2015-02-10 Richard Biener <rguenther@suse.de>
35759 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
35760 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
35761 return the bitpack.
35763 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
35765 PR gcov-profile/61889
35766 * config.in: regenerate.
35767 * configure.in: Likewise.
35768 * configure.ac: Check for ftw.h.
35769 * gcov-tool.c: Check for ftw.h before using nftw.
35771 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
35774 * ipa-visibility.c (update_visibility_by_resolution_info): Only
35775 assert when not in lto mode.
35777 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
35779 * ira-color.c (setup_left_conflict_sizes_p): Simplify
35780 initialization/assignment of conflict_size.
35782 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
35785 * ipa-cp.c (gather_caller_stats): Skip thunks.
35786 (propagate_constants_topo): Skip aliases.
35788 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
35791 * config/sh/sh.c (sh_option_override): Don't change
35792 -freorder-blocks-and-partition to -freorder-blocks even when
35793 unwinding is enabled.
35794 (sh_can_follow_jump): Return false if the followee jump is
35795 a crossing jump when -freorder-blocks-and-partition is specified.
35796 * config/sh/sh.md (*jump_compact_crossing): New insn.
35798 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
35799 Kaz Kojima <kkojima@gcc.gnu.org>
35802 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
35803 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
35804 (sh_can_redirect_branch): Rename to ...
35805 (sh_can_follow_jump): ... this. Constify argument types.
35806 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
35807 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
35808 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
35809 * doc/tm.texi: Regenerate.
35811 2015-02-09 Jakub Jelinek <jakub@redhat.com>
35814 * builtins.c (expand_builtin): Call targetm.expand_builtin
35815 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
35817 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35820 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
35822 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35825 * ipa-icf.c (set_local): New function.
35826 (sem_function::merge): Use it.
35828 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35830 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
35831 (add_type_duplicate): Fix comparison of BINFOs.
35833 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35835 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
35836 on getting VOID pointer.
35838 2015-02-09 Jakub Jelinek <jakub@redhat.com>
35841 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
35844 2015-02-09 Richard Biener <rguenther@suse.de>
35846 * genmatch.c (replace_id): Copy expr_type.
35848 2015-02-09 Richard Biener <rguenther@suse.de>
35850 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
35851 (streamer_write_tree_bitfields): Declare.
35852 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
35853 properly unpack padding.
35854 (unpack_value_fields): Inline ...
35855 (streamer_read_tree_bitfields): ... here.
35856 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
35857 and properly add padding bits.
35858 (streamer_pack_tree_bitfields): Fold into ...
35859 (streamer_write_tree_bitfields): ... this new function,
35860 exposing the bitpack object.
35861 * lto-streamer-out.c (lto_write_tree_1): Call
35862 streamer_write_tree_bitfields.
35864 2015-02-09 Richard Biener <rguenther@suse.de>
35866 PR tree-optimization/54000
35867 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
35868 (struct ivopts_data): Add loop_loc member.
35869 (tree_ssa_iv_optimize_loop): Dump loop location.
35870 (create_new_ivs): Likewise, also dump number of IVs generated.
35872 2015-02-09 Martin Liska <mliska@suse.cz>
35874 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
35875 just if not yet registered.
35876 (ipa_icf_generate_summary): Register callgraph hooks.
35878 2015-02-08 Andrew Pinski <apinski@cavium.com>
35880 * config/aarch64/aarch64.c (gty_dummy): Delete.
35882 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35885 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
35886 (cgraph_node::local_p): Remove thunk related FIXME.
35888 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35891 * i386.c (ix86_function_regparm): Look through aliases to see if callee
35892 is local and optimized.
35893 (ix86_function_sseregparm): Likewise; also use target's SSE math
35894 settings; error out instead of silently generating wrong code
35896 (init_cumulative_args): Look through aliases.
35898 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35901 * ipa-split.c (execute_split_functions): Split if function has aliases.
35903 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35906 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
35907 aliases before trying to expand it.
35908 (cgraph_node::expand_thunk): Fix formating.
35910 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
35912 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
35913 (Using Assembly Language with C): Expand introduction.
35914 (Basic Asm): Copy-edit. Add more information about uses of
35916 (Extended Asm): Copy-edit. Document new escape syntax and
35918 (Global Reg Vars): Copy-edit.
35919 (Local Reg Vars): Likewise.
35921 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
35925 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
35926 (DBX_CONTIN_CHAR): Define.
35928 2015-02-06 Sebastian Pop <s.pop@samsung.com>
35929 Brian Rzycki <b.rzycki@samsung.com>
35931 PR tree-optimization/64878
35932 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
35933 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
35934 Stop recursion at loop phi nodes after having visited a loop phi node.
35936 2015-02-06 Jakub Jelinek <jakub@redhat.com>
35938 * toplev.c (process_options): Change flag_ipa_ra before creating
35939 optimization_{default,current}_node.
35942 * cgraphunit.c (cgraph_node::expand_thunk): If
35943 restype is not is_gimple_reg_type nor the thunk_fndecl
35944 returns aggregate_value_p, set restmp to a temporary variable
35945 instead of resdecl.
35947 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
35949 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
35951 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
35954 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
35955 add a general secondary reload handler for SDmode, unless we have
35956 both read/write support for SDmode.
35958 2015-02-06 Jakub Jelinek <jakub@redhat.com>
35960 PR middle-end/64937
35961 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
35962 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
35963 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
35964 1 before, push it to abstract_vec.
35965 (dwarf2out_abstract_function): Adjust caller. Don't call
35966 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
35967 DECL_ABSTRACT_P flags for all abstract_vec elts.
35969 2015-02-06 Renlin Li <renlin.li@arm.com>
35971 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
35973 * tree-ssa.c (execute_update_addresses_taken): Likewise.
35975 2015-02-06 Jeff Law <law@redhat.com>
35978 * config/h8300/h8300.c (push): New argument "in_prologue".
35979 Pass "in_prologue" along to "F".
35980 (h8300_push_pop): Corresponding changes.
35981 (h8300_expand_prologue): Likewise.
35982 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
35984 2015-02-06 Jakub Jelinek <jakub@redhat.com>
35986 PR rtl-optimization/64957
35988 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
35989 IOR rather than for AND.
35991 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
35994 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
35995 of shift-add and (add + shift) operations. Rename local variable.
35997 2015-02-05 Jeff Law <law@redhat.com>
36000 * config/h8300/constraints.md (U): Correctly dectect
36001 "eightbit_data" memory addresses.
36002 * config/h8300/h8300.c (eightbit_constant_address_p): Also
36003 handle (const (plus (symbol_ref (x)))) where x is declared
36004 as an 8-bit data memory address.
36005 * config/h8300/h8300.md (call, call_value): Correctly detect
36006 "funcvec" functions.
36009 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
36010 24 to 28 bits for the H8/300.
36012 2015-02-06 Alan Modra <amodra@gmail.com>
36015 * config/rs6000/rs6000.c (chain_already_loaded): New function.
36016 (rs6000_call_aix): Use it.
36018 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
36020 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
36023 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
36025 * config/h8300/constraints.md ("U" constraint): Use strict
36026 variant of REG_OK_FOR_BASE_P after reload has started.
36028 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
36030 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
36031 define to zero if !TARGET_NEON.
36032 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
36034 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36035 Trevor Saunders <tsaunders@mozilla.com>
36038 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
36040 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36043 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
36044 when removing varpool nodes.
36046 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36049 * varpool.c (varpool_node::remove): Fix order of variables.
36051 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36054 * ipa-inline.c (inline_small_functions): Fix ordering issue between
36055 speculation resolution and key updates.
36057 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36059 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
36060 about not letting any speculative edges unupdated.
36062 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36065 * gcov-io.c (gcov_var): Export.
36067 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36069 PR middle-end/64922
36070 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
36071 edges that become speculative.
36073 2015-02-04 Jakub Jelinek <jakub@redhat.com>
36075 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
36076 or DW_LANG_Fortran08.
36077 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
36079 (gen_compile_unit_die): Handle "GNU Fortran2003" and
36080 "GNU Fortran2008" language strings.
36081 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
36082 * langhooks.h (lang_GNU_Fortran): New prototype.
36083 * langhooks.c (lang_GNU_Fortran): New function.
36084 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
36087 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
36089 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
36090 (RTX_OK_FOR_OLO10_P): Likewise.
36092 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
36094 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
36096 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36098 PR middle-end/64922
36099 * gimple.c: Include gimple-ssa.h.
36100 (maybe_remove_unused_call_args): New function.
36101 * gimple.h (maybe_remove_unused_call_args): Declare.
36102 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
36103 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
36104 * gimple-fold.c (gimple_fold_call): Likewise.
36106 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
36108 PR rtl-optimization/64905
36109 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
36110 pointer alignment if it isn't needed.
36112 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
36114 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
36115 cortex-a72.cortex-a53.
36116 * config/aarch64/aarch64-tune.md: Regenerate.
36117 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
36119 2015-02-04 Nick Clifton <nickc@redhat.com>
36121 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
36124 2015-02-04 Jakub Jelinek <jakub@redhat.com>
36126 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
36127 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
36128 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
36130 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
36131 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
36132 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
36133 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
36134 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
36135 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
36136 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
36137 * tree-core.h (enum built_in_function): In between
36138 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
36139 for builtins that use DEF_BUILTIN_CHKP macro.
36141 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
36144 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
36145 operands for tcc_comparison exprs. Fix typos.
36148 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
36149 of two XORs that have an intervening AND or IOR.
36152 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
36153 simplification of XOR of AND to not allocate new rtx before
36154 committing to a simplification.
36156 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36158 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
36159 manual swaps in all peepholes.
36161 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36163 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
36164 of manual swapping implementation.
36165 (aarch64_expand_vec_perm_const_1): Likewise.
36167 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
36169 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
36170 (generic_addrcost_table): Remove NAMED_PARAM.
36171 (cortexa57_addrcost_table): Likewise.
36172 (xgene1_addrcost_table): Likewise.
36173 (generic_regmove_table): Likewise.
36174 (cortexa53_regmove_table): Likewise.
36175 (xgene1_regmove_table): Likewise.
36176 (generic_vector_table): Likewise.
36177 (cortexa57_vector_table): Likewise.
36178 (xgene1_vector_table): Likewise.
36179 (generic_tunings): Likewise.
36180 (cortexa53_tunings): Likewise.
36181 (cortexa57_tunings): Likewise.
36182 (xgene1_tunings): Likewise.
36184 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
36186 * config/arm/arm-cores.def: Add cortex-a72 and
36187 cortex-a72.cortex-a53.
36188 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
36189 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
36190 * config/arm/arm-tune.md: Regenerate.
36191 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
36192 "cortex-a72.cortex-a53".
36193 * doc/invoke.texi (ARM Options/-mtune): Likewise.
36195 2015-02-04 Nick Clifton <nickc@redhat.com>
36198 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
36200 (nonimmediate_di_operand): Likewise.
36202 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
36203 prefixes of known F5 using MSP430 MCUs.
36205 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36207 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
36208 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
36209 instead of __builtin_sqrt.
36211 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
36213 * varasm.c (do_assemble_alias): Follow transparent alias
36215 (default_assemble_visibility): Follow transparent alias
36216 chain for decl name.
36218 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
36220 PR middle-end/62103
36221 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
36222 to compute size of referenced value in the constant case.
36224 2015-02-03 Jakub Jelinek <jakub@redhat.com>
36226 PR rtl-optimization/64756
36227 * cse.c (invalidate_dest): New function.
36228 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
36229 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
36230 invalidate and do not record it.
36232 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
36235 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
36236 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
36237 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
36238 atomic_nand<mode>_soft_tcb): New insns.
36239 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
36240 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
36241 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
36242 Split into atomic_not_fetchsi_hard if operands[0] is unused.
36243 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
36244 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
36245 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
36246 atomic_not<mode>_hard if operands[0] is unused.
36247 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
36248 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
36249 if operands[0] is unused.
36250 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
36251 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
36252 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
36253 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
36255 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
36256 into atomic_not<mode>_soft_tcb if operands[0] is unused.
36257 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
36258 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
36259 if operands[0] is unused.
36260 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
36261 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
36262 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
36263 atomic_nand_fetchsi_hard if operands[0] is unused.
36264 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
36265 atomic_nand<mode>_hard if operands[0] is unused.
36266 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
36267 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
36268 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
36269 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
36270 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
36271 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
36272 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
36273 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
36274 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
36275 atomic_not<mode>_hard if operands[0] is unused.
36276 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
36277 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
36279 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
36280 into atomic_not<mode>_soft_tcb if operands[0] is unused.
36281 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
36282 atomic_nand<mode>_hard if operands[0] is unused.
36283 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
36284 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
36286 2015-02-03 David Malcolm <dmalcolm@redhat.com>
36289 * Makefile.in (GCC_OBJS): Add gcc-main.o.
36290 * gcc-main.c: New file, containing "main" taken from gcc.c.
36291 * gcc.c (do_self_spec): Free decoded_options.
36292 (class driver): Move declaration to gcc.h.
36293 (main): Move declaration and implementation to new file
36295 (driver_get_configure_time_options): New function.
36296 * gcc.h (class driver): Move this declaration here, from
36298 (driver_get_configure_time_options): New declaration.
36300 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
36302 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
36303 cross-module inlining.
36304 * cgraph.h (cgraph_node): Add flag merged.
36305 * ipa-icf.c (sem_function::merge): Maintain it.
36307 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
36309 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
36310 instead of OBJECT_P.
36312 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
36315 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
36316 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
36317 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
36318 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
36320 2015-02-03 Jakub Jelinek <jakub@redhat.com>
36323 * combine.c (reg_n_sets_max): New variable.
36324 (can_change_dest_mode, reg_nonzero_bits_for_combine,
36325 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
36326 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
36327 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
36328 (rest_of_handle_combine): Initialize reg_n_sets_max.
36330 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
36332 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
36333 if some always_inline was inlined, apply changes before inlining
36336 2015-02-02 David Malcolm <dmalcolm@redhat.com>
36339 * config/arm/arm.c (arm_option_override): Set
36340 arm_selected_arch/cpu/tune to NULL on entry.
36342 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
36343 Andrew Pinski <pinskia@gcc.gnu.org>
36344 Jakub Jelinek <jakub@gcc.gnu.org>
36347 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
36348 integer typing for small model. Use IN_RANGE.
36350 2015-02-02 Richard Biener <rguenther@suse.de>
36352 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
36353 * tree-vrp.c (vrp_valueize_1): Likewise.
36355 2015-02-02 Alan Modra <amodra@gmail.com>
36357 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
36358 than mem for toc_restore.
36359 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
36360 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
36361 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
36363 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
36366 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
36367 explicit default options.
36369 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
36372 * ipa-utils.c (ipa_merge_profiles): Add release argument.
36373 * ipa-icf.c (sem_function::merge): Do not release body when merging.
36374 * ipa-utils.h (ipa_merge_profiles): Update prototype.
36376 2015-02-01 Jakub Jelinek <jakub@redhat.com>
36379 * cfgexpand.c (deep_ter_debug_map): New variable.
36380 (avoid_deep_ter_for_debug): New function.
36381 (expand_debug_expr): If TERed SSA_NAME is in
36382 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
36383 instead of trying to expand SSA_NAME's def stmt.
36384 (expand_debug_locations): When expanding debug bind
36385 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
36386 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
36388 (pass_expand::execute): Call avoid_deep_ter_for_debug on
36389 all debug bind stmts. Delete deep_ter_debug_map after
36390 expand_debug_location if non-NULL and clear it.
36392 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
36395 * config/sh/sync.md (atomic_fetch_notsi_hard,
36396 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
36397 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
36398 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
36399 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
36400 atomic_not_fetch<mode>_soft_imask): New insns.
36402 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36404 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
36405 (rank_for_schedule_debug): Split from ...
36406 (rank_for_schedule): ... this.
36407 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
36408 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
36410 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
36412 * doc/md.texi (Machine Constraints): Alphabetize table by target.
36413 * doc/extend.texi (x86 Variable Attributes): Move section to
36414 correct alphabetization after renaming.
36415 (x86 Type Attributes): Likewise.
36416 (Target Builtins): Re-alphabetize menu.
36417 (x86 Built-in Functions): Move section to correct alphabetization
36419 (x86 transactional memory intrinsics): Likewise.
36420 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
36421 and x86 Windows Options in table and menu.
36422 (x86 Options): Move section to correct alphabetization after
36424 (x86 Windows Options): Likewise.
36426 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
36428 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
36429 preferred names of the architecture and its 32- and 64-bit
36431 * doc/invoke.texi: Likewise.
36432 * doc/md.texi: Likewise.
36434 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
36437 * config/i386/predicates.md (address_no_seg_operand): Reject
36438 non-CONST_INT_P operands in invalid mode.
36440 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
36442 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
36443 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
36444 * config/i386/predicates.md (address_no_seg_operand): Call
36445 address_operand with VOIDmode.
36446 (vsib_address_operand): Ditto.
36447 (address_mpx_no_base_operand): Ditto.
36448 (address_mpx_no_index_operand): Ditto.
36450 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
36453 * lra-constraints.c (original_subreg_reg_mode): New.
36454 (simplify_operand_subreg): Try to simplify subreg of const. Use
36455 original_subreg_reg_mode for it.
36456 (swap_operands): Update original_subreg_reg_mode.
36457 (curr_insn_transform): Set up original_subreg_reg_mode.
36459 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
36462 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
36464 (process_alt_operands): Use it.
36465 (curr_insn_transform): Check the optional reload pseudo class is
36468 2015-01-30 Joseph Myers <joseph@codesourcery.com>
36470 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
36471 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
36473 * toplev.h (init_asm_output): Update comment on use of
36474 UNKNOWN_LOCATION with fatal_error.
36475 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
36476 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
36477 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
36478 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
36479 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
36480 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
36481 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
36482 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
36483 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
36484 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
36485 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
36486 fatal_error changed to pass input_location as first argument.
36488 2015-01-30 Martin Liska <mliska@suse.cz>
36490 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
36491 in #pragma GCC diagnostic guards.
36493 2015-01-30 Richard Biener <rguenther@suse.de>
36495 PR tree-optimization/64829
36496 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
36497 not add a widening conversion pattern but hand off extra
36498 widenings to callers.
36499 (vect_recog_widen_mult_pattern): Handle extra widening produced
36500 by vect_handle_widen_op_by_const.
36501 (vect_recog_widen_shift_pattern): Likewise.
36502 (vect_pattern_recog_1): Remove excess vertical space in dumping.
36503 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
36504 (vect_init_vector_1): Likewise.
36505 (vect_get_vec_def_for_operand): Likewise.
36506 (vect_finish_stmt_generation): Likewise.
36507 (vectorizable_load): Likewise.
36508 (vect_analyze_stmt): Likewise.
36509 (vect_is_simple_use): Likewise.
36511 2015-01-29 Jeff Law <law@redhat.com>
36513 * combine.c (try_combine): Fix typo in comment.
36515 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
36518 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
36519 (rs6000_stack_info): Add assert.
36520 (rs6000_output_savres_externs): New function, split off from...
36521 (rs6000_output_function_prologue): ... here. Do not call it for
36524 2015-01-29 Jeff Law <law@redhat.com>
36527 * combine.c (try_combine): If I0 is a memory load and I3 a store
36528 to a related address, increase the "goodness" of doing a 4-insn
36529 combination with I0-I3.
36530 (make_field_assignment): Handle SUBREGs in the ior+and case.
36532 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
36534 PR tree-optimization/64746
36535 * tree-if-conv.c (mask_exists): New function.
36536 (predicate_mem_writes): Save created mask with given size for further
36538 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
36539 (ifcvt_repair_bool_pattern): Collect all statements that are root
36540 of bool pattern and use iterative algorithm to remove multiple uses
36541 of predicates, display number of required iterations.
36543 2015-01-29 Richard Biener <rguenther@suse.de>
36545 PR tree-optimization/64853
36546 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
36547 stmt will get simulated again.
36548 * tree-ssa-ccp.c (valueize_op_1): Likewise.
36550 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36552 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
36553 return_in_pc. Remove redundant assignments.
36554 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
36555 (arm_expand_epilogue): Don't compare boolean with true in if condition.
36557 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
36559 * config/i386/i386.c (ix86_mode_after): Make static.
36561 2015-01-29 Richard Biener <rguenther@suse.de>
36563 PR tree-optimization/64844
36564 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
36565 dump cost model analysis.
36566 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
36567 Do not register adjusted load/store costs here.
36569 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
36570 Uros Bizjak <ubizjak@gmail.com>
36572 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
36573 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
36574 using x86_use_pseudo_pic_reg.
36575 * config/i386/i386.c (ix86_conditional_register_usage): Remove
36576 support for fixed PIC register.
36577 (ix86_use_pseudo_pic_reg): Not static any more.
36579 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
36581 PR middle-end/64805
36582 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
36583 to avoid error in cgraph node verification.
36585 2015-01-29 Marek Polacek <polacek@redhat.com>
36587 * doc/standards.texi: Reflect that the default for C is gnu11.
36589 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
36592 * reorg.c (switch_text_sections_between_p): New function.
36593 (relax_delay_slots): Call it when testing if the jump insn
36594 is removable. Use targetm.can_follow_jump when testing if
36595 the conditional branch can follow an unconditional jump.
36597 2015-01-27 Caroline Tice <cmtice@google.com>
36599 Committing VTV Cywin/Ming patch for Patrick Wollgast
36600 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
36601 if -fvtable-verify=preinit/std is used.
36602 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
36603 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
36604 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
36605 if -fvtable-verify=preinit/std is used.
36606 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
36607 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
36608 if -fvtable-verify=preinit/std is used.
36609 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
36610 * config/i386/mingw32.h (LIB_SPEC): Likewise.
36611 * varasm.c (assemble_variable): Add code to properly set the comdat
36612 section and name for the .vtable_map_vars section in case the
36613 target is PE or COFF.
36615 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
36618 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
36619 make sane BB profile.
36620 (cgraph_node::expand_thunk): Make sane BB profile.
36621 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
36622 * cgraph.h (init_lowered_empty_function): Update prototype.
36623 * config/i386/i386.c (make_resolver_func): Update call.
36624 * predict.c (gate): Disable branch prediction pass if
36625 profile is already there.
36627 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
36629 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
36630 * opth-gen.awk: Likewise.
36631 * common.opt: Mark flag_fp_contract_mode as Optimization.
36633 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
36635 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
36636 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
36638 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
36641 * config/sh/predicates.md (atomic_arith_operand,
36642 atomic_logical_operand): Remove.
36643 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
36644 (atomic_arith_operand_0): New predicate.
36645 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
36646 Use atomic_arith_operand_0 for input values.
36647 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
36648 atomic_compare_and_swap<mode>_soft_gusa,
36649 atomic_compare_and_swap<mode>_soft_tcb,
36650 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
36651 arith_reg_operand instead of register_operand.
36652 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
36653 atomic_arith_operand_0 for newval input.
36654 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
36655 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
36656 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
36657 arith_reg_operand instead of register_operand.
36658 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
36659 fetchop_predicate_1, fetchop_constraint_1_llcs,
36660 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
36661 fetchop_constraint_1_imask): New code iterator attributes.
36662 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
36663 register_operand. Use fetchop_predicate_1.
36664 (atomic_fetch_<fetchop_name>si_hard,
36665 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
36666 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
36667 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
36668 and arith_reg_operand instead of register_operand. Use
36669 fetchop_predicate_1, fetchop_constraint_1_gusa.
36670 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
36671 and arith_reg_operand instead of register_operand. Use
36672 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
36674 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
36675 and arith_reg_operand instead of register_operand. Use
36676 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
36678 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
36679 register_operand. Use atomic_logical_operand_1.
36680 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
36681 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
36682 arith_reg_operand instead of register_operand.
36683 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
36684 Use arith_reg_dest and arith_reg_operand instead of register_operand.
36685 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
36686 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
36687 register_operand. Use fetchop_predicate_1.
36688 (atomic_<fetchop_name>_fetchsi_hard,
36689 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
36690 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36691 fetchop_constraint_1_llcs.
36692 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
36693 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36694 fetchop_constraint_1_gusa.
36695 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
36696 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36697 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
36698 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
36699 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36700 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
36701 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
36702 register_operand. Use atomic_logical_operand_1.
36703 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
36704 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
36705 arith_reg_operand instead of register_operand.
36706 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
36707 arith_reg_operand instead of register_operand. Use logical_operand
36708 and K08. Adjust asm sequence to allow R0 usage.
36709 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
36710 arith_reg_operand instead of register_operand. Use logical_operand
36713 2015-01-28 Jakub Jelinek <jakub@redhat.com>
36716 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
36717 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
36718 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
36719 only get_full_len HOST_WIDE_INTs from get_val () array rather than
36720 all bits in *val_wide.
36722 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
36724 * varpool.c (tls_model_names): Fix names.
36725 (varpool_node::dump): Dump tls- prefix for tls models.
36727 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
36728 Bernd Schmidt <bernds@codesourcery.com>
36729 Nathan Sidwell <nathan@codesourcery.com>
36731 * config/nvptx/mkoffload.c: New file.
36732 * config/nvptx/t-nvptx: Add build rules for it.
36733 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
36734 (extra_programs): Add mkoffload.
36735 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
36737 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
36739 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
36741 PR middle-end/64809
36742 * cfgexpand.c (reorder_operands): Skip debug gimples.
36744 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
36746 PR tree-optimization/64277
36747 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
36748 range info when possible to refine estimation.
36750 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
36752 PR tree-optimization/64718
36753 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
36754 be a 16bit unsigned integer when n->range is 16.
36755 (bswap_replace): Convert src to that type if necessary for all bswap
36756 sizes. Fix rotation right notation in nearby comment. Use bswap_type
36757 set in pass_optimize_bswap::execute ().
36759 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
36761 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
36762 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
36763 integer and floating point variants.
36764 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
36766 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
36768 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
36769 for all vector modes.
36771 2015-01-28 Jakub Jelinek <jakub@redhat.com>
36774 * doc/sourcebuild.texi (comdat_group): Document.
36776 2015-01-28 Terry Guo <terry.guo@arm.com>
36778 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
36780 2015-01-27 David Malcolm <dmalcolm@redhat.com>
36782 * toplev.c (print_version): Add param "show_global_state", and
36783 only print GGC and plugin information if it is true.
36784 (init_asm_output): Pass in "true" for the new param when calling
36786 (process_options): Likewise.
36787 (toplev::main): Likewise.
36788 * toplev.h (print_version): Add new param to decl.
36790 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
36794 * tree.c (lookup_binfo_at_offset): New function.
36795 (get_binfo_at_offset): Use it.
36797 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
36800 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
36801 on vtable being vtable.
36803 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
36805 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
36806 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
36807 -mhotpatch= option.
36808 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
36809 -mno-hotpatch options. Change syntax of -mhotpatch= option.
36810 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
36812 (s390_hotpatch_trampoline_halfwords_max): Renamed.
36813 (s390_hotpatch_hw_max): New name.
36814 (s390_hotpatch_trampoline_halfwords): Renamed.
36815 (s390_hotpatch_hw_before_label): New name.
36816 (get_hotpatch_attribute): Removed.
36817 (s390_hotpatch_hw_after_label): New name.
36818 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
36820 (s390_attribute_table): Ditto.
36821 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
36822 (s390_function_num_hotpatch_hw): New name.
36823 Remove special handling of inline functions and hotpatching.
36824 Return number of nops before and after the function label.
36825 (s390_can_inline_p): Removed.
36826 (s390_asm_output_function_label): Emit a configurable number of nops
36827 after the function label.
36828 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
36829 (TARGET_CAN_INLINE_P) Removed.
36830 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
36832 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36833 Jiong Wang <jiong.wang@arm.com>
36835 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
36837 (cb<optab><mode>1): Likewise.
36838 * config/aarch64/iterators.md (bcond): New define_code_attr.
36840 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36842 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
36845 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36847 * config/s390/s390.c (s390_register_move_cost): Increase costs for
36850 2015-01-27 Richard Biener <rguenther@suse.de>
36852 * tree-vrp.c (update_value_range): Intersect the range with
36853 old recorded SSA name range information.
36855 2015-01-27 Nick Clifton <nickc@redhat.com>
36857 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
36858 BC, DE and HL registers directly, not via AX.
36859 When decrementing the stack pointer by a large amount, transfer SP
36860 into AX and perform the subtraction there.
36861 (rl78_expand_epilogue): Perform the inverse of the above
36864 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36866 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
36868 2015-01-27 Jakub Jelinek <jakub@redhat.com>
36869 Yury Gribov <y.gribov@samsung.com>
36872 * ubsan.c (ubsan_source_location): Refactor code.
36873 (ubsan_type_descriptor): Update type size. Refactor code.
36875 2015-01-27 Richard Biener <rguenther@suse.de>
36877 PR tree-optimization/56273
36878 PR tree-optimization/59124
36879 PR tree-optimization/64277
36880 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
36881 from the first VRP pass.
36883 2015-01-27 Jakub Jelinek <jakub@redhat.com>
36886 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
36887 handle the first argument in the same loop as all the other arguments.
36889 PR rtl-optimization/61058
36890 * jump.c (cleanup_barriers): Update basic block boundaries
36891 if BLOCK_FOR_INSN is non-NULL on PREV.
36893 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
36895 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
36896 bounds narrowing, already instrumented calls and calls to
36897 not instrumentable functions.
36899 2015-01-27 Jakub Jelinek <jakub@redhat.com>
36901 PR tree-optimization/64807
36902 * wide-int.cc (wi::divmod_internal): Clear
36903 b_dividend[dividend_blocks_needed].
36905 2015-01-26 DJ Delorie <dj@redhat.com>
36907 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
36908 volatile memory references.
36910 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
36913 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
36915 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
36916 shifts if it already fits into K08.
36918 2015-01-26 Jakub Jelinek <jakub@redhat.com>
36921 * ipa-inline.c (inline_small_functions): Print "unknown" even
36922 if edge->call_stmt is non-NULL, but has builtins or unknown
36925 PR middle-end/64421
36926 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
36927 with asterisk, skip the first character.
36929 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
36932 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
36935 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
36938 * config/i386/i386.md (*movdi_internal): Also check operand 0
36939 to determine TYPE_LEA operand.
36940 (*movsi_internal): Ditto.
36942 2015-01-26 Jakub Jelinek <jakub@redhat.com>
36944 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
36945 OPTION_MASK_QUAD_MEMORY_ATOMIC.
36947 2015-01-26 Renlin Li <renlin.li@arm.com>
36949 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
36951 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
36954 2015-01-26 Richard Biener <rguenther@suse.de>
36956 PR middle-end/64764
36957 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
36958 combining two BIT_AND_EXPR predicates.
36960 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
36963 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
36965 2015-01-26 Terry Guo <terry.guo@arm.com>
36967 * config/arm/arm.c (arm_file_start): Update the assignment of
36968 Tag_ABI_HardFP_use.
36970 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
36972 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
36974 config/arm/arm.md: Include the new Cortex-A57 model.
36975 (generic_sched): Don't use generic_sched when tuning for
36978 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
36979 Uros Bizjak <ubizjak@gmail.com>
36981 * config/i386/i386.c (get_builtin_code_for_version): Add
36982 support for BMI and BMI2 multiversion functions.
36984 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36986 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
36987 (extract_bit_field): Likewise.
36988 (extract_low_bits): Likewise.
36989 (expand_mult): Likewise.
36990 (expand_mult_highpart_adjust): Likewise.
36992 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
36994 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
36995 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
36996 * config/i386/i386.c (processor_model): Add
36997 M_INTEL_COREI7_BROADWELL.
36998 (arch_names_table): Add "broadwell".
37000 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
37009 * config/sh/sh-protos.h
37010 (sh_extending_set_of_reg::can_use_as_unextended_reg,
37011 sh_extending_set_of_reg::use_as_unextended_reg,
37012 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
37013 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
37014 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
37015 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
37016 (sh_treg_insns): New class.
37017 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
37018 (scope_counter): New class.
37019 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
37020 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
37021 sh_extending_set_of_reg::can_use_as_unextended_reg,
37022 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
37023 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
37024 sh_split_treg_set_expr): New functions.
37025 (addsubcosts): Handle treg_set_expr.
37026 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
37027 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
37028 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
37029 (sh_insn_operands_modified_between_p): Make non-static.
37030 * config/sh/predicates.md (zero_extend_movu_operand): Allow
37031 simple_mem_operand in addition to displacement_mem_operand.
37032 (zero_extend_operand): Don't allow zero_extend_movu_operand.
37033 (treg_set_expr, treg_set_expr_not_const01,
37034 arith_reg_or_treg_set_expr): New predicates.
37035 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
37036 arith_or_int_operand instead of logical_operand. Convert to
37037 insn_and_split. Try to optimize constant operand in splitter.
37038 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
37039 (*tstqi_t_zero): Delete.
37040 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
37041 (tstsi_t_and_not): Delete.
37042 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
37043 Convert to insn_and_split.
37044 (unnamed split, tstsi_t_zero_extract_xor,
37045 tstsi_t_zero_extract_subreg_xor_little,
37046 tstsi_t_zero_extract_subreg_xor_big): Delete.
37047 (*tstsi_t_shift_mask): New insn_and_split.
37048 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
37049 to recombine with surrounding insns when splitting.
37050 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
37051 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
37052 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
37053 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
37054 (*cbranch_div0s: Delete.
37055 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
37056 Try to recombine with surrounding insns when splitting. Add operand
37058 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
37059 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
37060 *addc_r_r_msb, *addc_2r_msb): Delete.
37061 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
37063 (*addc_negreg_t): New insn_and_split.
37064 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
37065 Try to recombine with surrounding insns when splitting.
37066 Add operand order variants.
37067 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
37068 insn_and_split patterns.
37069 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
37070 surrounding insns when splitting.
37071 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
37072 (*rotcl): Likewise. Add zero_extract variant.
37073 (*ashrsi2_31): New insn_and_split.
37074 (*negc): Convert to insn_and_split. Use treg_set_expr.
37075 (*zero_extend<mode>si2_disp_mem): Update comment.
37076 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
37078 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
37079 with surrounding insns when splitting.
37080 (any_treg_expr_to_reg): New insn_and_split.
37081 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
37082 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
37083 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
37084 *zero_extract_2): New single bit zero extract patterns.
37085 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
37086 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
37087 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
37088 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
37090 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
37091 register_operand for set source.
37093 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
37095 * i386.opt (prefetch_sse): New targetsave.
37096 * i386.c (ix86_function_specific_save): Save prefetch_sse.
37097 (ix86_function_specific_restore): Restore prefetch_sse and initialize
37098 ix86_cost/ix86_tune_cost.
37100 2015-01-23 David Malcolm <dmalcolm@redhat.com>
37102 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
37103 Support the JIT by using 0 as the language type.
37105 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
37108 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
37109 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
37110 (mark_regno_live, process_bb_lives): Pass new parameter value to
37111 make_hard_regno_born.
37113 2015-01-23 Jakub Jelinek <jakub@redhat.com>
37115 PR rtl-optimization/63637
37116 PR rtl-optimization/60663
37117 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
37118 if elt->cost is MAX_COST for ASM_OPERANDS.
37119 (find_sets_in_insn): Fix up comment typo.
37120 (cse_insn): Don't set src_volatile for all non-volatile
37121 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
37122 or with "memory" clobber. Set elt->cost to MAX_COST
37123 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
37124 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
37126 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
37128 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
37131 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
37133 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
37134 libgcc/config/i386/elf-lib.h.
37136 2015-01-23 Jakub Jelinek <jakub@redhat.com>
37139 * gcc.c (print_configuration): Don't print a blank line at the end
37141 (run_attempt): ... but here unstead.
37143 PR middle-end/64734
37144 * omp-low.c (scan_sharing_clauses): Don't ignore
37145 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
37146 on target data/update constructs.
37148 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
37151 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
37152 (DEBUG_RELOAD): Removed define.
37153 (m32c_limit_reload_class): Enable traces with if DEBUG0.
37154 (m32c_function_arg): Added a type cast.
37155 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
37156 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
37157 * config/m32c/bitops.md (andqi3_16): Likewise.
37158 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
37159 (push_a01_l): Likewise.
37161 2015-01-23 David Malcolm <dmalcolm@redhat.com>
37164 * main.c (main): Construct toplev instances with init_signals=true.
37165 * toplev.c (general_init): Add param "init_signals", and use it to
37166 conditionalize the calls to signal and host_hooks.extra_signals.
37167 (toplev::toplev): Add param "init_signals".
37168 (toplev::main): When invoking general_init, pass m_init_signals
37169 to control whether signal-handlers are installed.
37170 * toplev.h (toplev::toplev): Add param "init_signals".
37171 (toplev::m_init_signals): New field.
37173 2015-01-23 David Malcolm <dmalcolm@redhat.com>
37176 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
37177 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
37178 latter may be affected by the former (e.g. on i686).
37180 2015-01-23 Martin Liska <mliska@suse.cz>
37182 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
37183 false positive during profiledbootstrap.
37185 2015-01-23 Tom de Vries <tom@codesourcery.com>
37188 * lto-opts.c (lto_write_options): Output non-explicit conservative
37190 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
37191 (append_compiler_options): Pass -fopenacc through.
37193 2015-01-23 Tom de Vries <tom@codesourcery.com>
37196 * lto-opts.c (lto_write_options): Output non-explicit conservative
37198 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
37199 (append_compiler_options): Pass -fopenmp through.
37201 2015-01-23 Jakub Jelinek <jakub@redhat.com>
37204 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
37207 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
37208 * diagnostic.def (DK_ICE_NOBT): New kind.
37209 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
37210 like DK_ICE, but never print backtrace.
37211 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
37212 (internal_error_no_backtrace): New function.
37213 * gcc.c (execute): Use internal_error_no_backtrace instead of
37216 2015-01-22 Jeff Law <law@redhat.com>
37219 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
37220 improve code density for small immediate to memory case.
37221 (insv): Better handle bitfield assignments when the field is
37222 being set to all ones.
37223 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
37226 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37227 Jakub Jelinek <jakub@redhat.com>
37229 PR middle-end/64729
37230 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
37231 for !TARGET_LIBC_PROVIDES_SSP version and
37232 -fstack-protector-{all,strong,explicit} otherwise.
37233 * config/freebsd.h (LINK_SSP_SPEC): Handle
37234 -fstack-protector-{strong,explicit}.
37236 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
37237 H.J. Lu <hongjiu.lu@intel.com>
37240 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
37243 2015-01-22 Wei Mi <wmi@google.com>
37245 PR rtl-optimization/64557
37246 * dse.c (record_store): Call get_addr for mem_addr.
37247 (check_mem_read_rtx): Likewise.
37249 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
37251 * fold-const.c (const_binop): Add early return for non-tcc_binary.
37253 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
37255 * toplev.c (init_local_tick): Process the failure when read
37256 fails for random_seed.
37258 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
37259 'pretty_name' to avoid memory overflow.
37261 2015-01-22 Richard Biener <rguenther@suse.de>
37263 PR middle-end/64728
37264 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
37265 abnormal coalescing on undefined SSA names.
37267 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
37271 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
37273 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
37275 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
37277 PR middle-end/63325
37278 * fold-const.c (fold_checksum_tree): Don't include value of
37279 expr->decl_with_vis.symtab_node in the checksum.
37281 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37283 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
37285 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
37288 * gcc.c (insert_comments): New function.
37289 (try_generate_repro): Call it.
37290 (append_text): Removed.
37292 2015-01-22 Richard Biener <rguenther@suse.de>
37294 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
37295 with IL incompatible options. Properly honor user optimize
37298 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
37300 PR rtl-optimization/64682
37301 * combine.c (distribute_notes): When moving a death note for
37302 a register that is set in the new I2, make sure to put it
37303 before that new I2.
37305 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
37307 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
37308 not TARGET_DEFAULT.
37310 2015-01-21 Jakub Jelinek <jakub@redhat.com>
37313 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
37314 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
37315 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
37318 * doc/invoke.texi (-fsanitize=vptr): Document.
37320 PR rtl-optimization/62078
37321 * dse.c: Include cfgcleanup.h.
37322 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
37323 anything call purge_all_dead_edges and cleanup_cfg at the end
37326 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
37328 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
37331 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
37333 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
37336 2015-01-21 David Sherwood <david.sherwood@arm.com>
37337 Tejas Belagod <Tejas.Belagod@arm.com>
37339 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
37340 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
37341 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
37344 2015-01-21 David Sherwood <david.sherwood@arm.com>
37345 Tejas Belagod <Tejas.Belagod@arm.com>
37347 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
37348 (aarch64_reverse_mask): New decls.
37349 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
37350 (insn_count): New mode_attr.
37351 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
37352 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
37353 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
37354 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
37355 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
37356 (aarch64_simd_st4): New patterns.
37357 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
37358 (aarch64_reverse_mask): New functions.
37360 2015-01-21 Alan Hayward <alan.hayward@arm.com>
37362 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
37364 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
37365 addressing modes for BE.
37366 (aarch64_print_operand): Add 'R' specifier.
37367 (aarch64_simd_disambiguate_copy): Delete.
37368 (aarch64_simd_emit_reg_reg_move): New function.
37369 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
37370 in define_splits for structural moves.
37371 (mov<mode>): Use less restrictive predicates.
37372 (*aarch64_mov<mode>): Simplify and only allow for LE.
37373 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
37375 2015-01-21 Alan Hayward <alan.hayward@arm.com>
37377 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
37379 2015-01-21 Richard Henderson <rth@redhat.com>
37382 * ccmp.c (used_in_cond_stmt_p): Remove.
37383 (expand_ccmp_expr): Don't use it.
37385 2015-01-21 Nick Clifton <nickc@redhat.com>
37387 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
37390 2015-01-21 Richard Biener <rguenther@suse.de>
37392 PR middle-end/64313
37393 * tree-core.h (builtin_info, builtin_info_type): Turn from
37394 an object with two arrays into an array of an object with
37395 decl and two flags, implicit_p and declared_p.
37396 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
37397 set_builtin_decl, set_builtin_decl_implicit_p,
37398 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
37399 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
37400 * builtins.c (builtin_info): Adjust.
37401 * gimplify.c (gimplify_addr_expr): References to builtins
37402 that have been declared by the user makes them eligible for
37403 use by the compiler. Call set_builtin_decl_implicit_p on them.
37405 2015-01-20 Jeff Law <law@redhat.com>
37408 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
37409 allow pc-relative addresses in operand predicates or constraints.
37411 2015-01-21 Bin Cheng <bin.cheng@arm.com>
37413 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
37414 neon on aarch32 processors for stringops.
37416 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37419 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
37421 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37424 * ipa-inline.c: Include lto-streamer.h
37425 (report_inline_failed_reason): Output source file differences and
37426 flags on optimization/target node mismatch.
37427 (can_inline_edge_p): Consider caller to be the outer inline function;
37428 be less restrictive about matching opimize and optimize_size attributes.
37429 (inline_account_function_p): Break out from ...
37430 (inline_small_functions): ... here.
37431 * ipa-inline-transform.c (clone_inlined_nodes): Use
37432 inline_account_function_p.
37433 (inline_call): Use optimize attribution; use inline_account_function_p.
37434 (inline_transform): Use opt_for_fn.
37435 * ipa-inline.h (inline_account_function_p): Declare.
37437 2015-01-20 Jakub Jelinek <jakub@redhat.com>
37440 * dwarf2out.c (decl_piece_node): Don't put bitsize into
37441 mode if bitsize <= 0.
37442 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
37443 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
37444 sizes and positions.
37446 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
37448 * config/nios2/nios2.c (nios2_asm_file_end): Implement
37449 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
37451 (TARGET_ASM_FILE_END): Define.
37453 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37455 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
37456 (struct tune_params): Use the enum.
37457 * arm.c (arm_*_tune): Update.
37458 (arm_option_override): Update.
37460 2015-01-20 Richard Biener <rguenther@suse.de>
37463 * ipa-reference.c (add_static_var): Inline ...
37464 (analyze_function): ... here after splitting out from ...
37465 (is_proper_for_analysis): ... this.
37467 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
37470 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
37471 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
37472 replace the conditional with it's true branch.
37473 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
37474 (arm_lra_p): Remove.
37476 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
37478 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
37480 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
37482 * config/tilegx/mul-tables.c: Move symtab.h include after
37483 coretypes.h include.
37484 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
37485 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
37486 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
37487 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
37488 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
37490 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
37494 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
37496 PR rtl-optimization/64081
37497 * loop-iv.c (def_pred_latch_p): New function.
37498 (latch_dominating_def): Allow specific cases with non-single
37500 (iv_get_reaching_def): Likewise.
37501 (check_complex_exit_p): New function.
37502 (check_simple_exit): Use check_complex_exit_p to allow certain cases
37503 with exits not executing on any iteration.
37505 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37508 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
37509 to set branch cost.
37511 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37514 * i386.c (gate): Check flag_expensive_optimizations and
37516 (ix86_option_override_internal): Drop optimize_size condition
37517 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
37518 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
37519 MASK_PREFER_AVX128.
37520 (ix86_avx256_split_vector_move_misalign,
37521 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
37522 * sse.md (all uses of TARGET_PREFER_AVX128): Add
37523 optimize_insn_for_speed_p check.
37525 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
37527 * config/mips/mips.h (FP_ASM_SPEC): New define.
37528 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
37531 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
37534 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
37535 nullptr for insn when reaching the first insn.
37536 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
37537 (sh_insn_operands_modified_between_p): Add nullptr check.
37538 (sh_find_extending_set_of_reg): Fix log message. Don't accept
37539 sign extending mem load if the insn contains any UNSPEC or
37542 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37544 * params.def (inline-unit-growth): Drop to 15%.
37545 * invoke.texi (inline-unit-growth): Document change.
37547 2015-01-19 Martin Liska <mliska@suse.cz>
37550 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
37551 function for second argument of OBJ_TYPE_REF.
37553 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37556 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
37557 whether function is an alias.
37559 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37561 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
37564 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
37566 PR rtl-optimization/64671
37567 * lra-remat.c (operand_to_remat): Don't consider jump and call
37570 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
37573 * config/rs6000/default64.h: Include rs6000-cpus.def.
37574 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
37575 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
37576 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
37578 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
37580 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
37581 pseudo-op to specify assembler dialect.
37583 2015-01-19 Martin Liska <mliska@suse.cz>
37586 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
37587 Handle safe potentially removed nodes during filtering.
37589 2015-01-19 Martin Liska <mliska@suse.cz>
37591 * doc/extend.texi (no_icf): Add new attribute description.
37592 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
37593 where the pass attempts to merge a function with no_icf attribute.
37595 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37598 * doc/md.texi (ARM Options): Document register constraints.
37600 2015-01-19 Jiong Wang <jiong.wang@arm.com>
37601 Andrew Pinski <apinski@cavium.com>
37604 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
37605 (ashl<mode>3): Don't expand if operands[2] is not constant.
37607 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37610 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
37611 Match xor-and-xor RTL pattern.
37613 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
37615 PR rtl-optimization/64081
37616 * loop-iv.c (def_pred_latch_p): New function.
37617 (latch_dominating_def): Allow specific cases with non-single
37619 (iv_get_reaching_def): Likewise.
37620 (check_complex_exit_p): New function.
37621 (check_simple_exit): Use check_complex_exit_p to allow certain cases
37622 with exits not executing on any iteration.
37624 2015-01-19 Jakub Jelinek <jakub@redhat.com>
37626 * common.opt (fgraphite): Fix a typo.
37628 2015-01-19 Felix Yang <felix.yang@huawei.com>
37630 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
37632 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
37633 uminp, smax_nanp, smin_nanp): New builtins.
37634 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
37635 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
37636 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
37637 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
37638 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
37639 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
37640 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
37641 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
37642 vpminnms_f32): Rewrite using builtin functions.
37644 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
37647 * omp-low.c (offload_symbol_decl): Remove variable.
37648 (get_offload_symbol_decl): Remove function.
37649 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
37650 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
37651 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
37652 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
37653 BUILT_IN_GOACC_UPDATE don't pass it at all.
37655 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
37657 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
37660 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
37662 * ipa-chkp.c (chkp_produce_thunks): Add early param
37663 to split thunks production into two passes. Keep
37664 'always_inline' function bodies after the first pass.
37665 (pass_data_ipa_chkp_early_produce_thunks): New.
37666 (pass_ipa_chkp_early_produce_thunks): New.
37667 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
37668 chkp_produce_thunks signature.
37669 (make_pass_ipa_chkp_early_produce_thunks): New.
37670 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
37671 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
37672 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
37674 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
37676 * cgraph.c (cgraph_node::dump): Dump profile flags.
37678 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
37681 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
37682 reg appear first in the parallel.
37684 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
37686 * ipa-reference.c (set_reference_optimization_summary,
37687 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
37689 (ignore_module_statics): New static var.
37690 (propagate_bits): If ipa-reference is disabled, do not look into local
37692 (analyze_function): Disable analysis when ipa_reference is disabled.
37693 (generate_summary): Do not dump when reference is disabled;
37694 collect vars accessed from functions with ipa-reference disabled.
37695 (get_read_write_all_from_node): When ipa-reference is disabled, use the
37697 (gate): Enable for LTO.
37698 (ignore_edge_p): New function.
37699 (propagate): Skip functions w/o ipa-reference analysis.
37700 * optc-save-gen.awk: Handle optimize_debug correctly.
37701 * opth-gen.awk: Likewise.
37702 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
37703 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
37704 fira-share-save-slots, fira-share-spill-slots,
37705 fmodulo-sched-allow-regmoves, fpartial-inlining,
37706 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
37707 ftracer, ftree-parallelize-loops, fassociative-math,
37708 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
37710 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
37711 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
37713 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
37716 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
37719 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
37721 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
37723 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
37725 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
37726 Remove duplicate option listings.
37728 2015-01-18 Felix Yang <felix.yang@huawei.com>
37730 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
37731 (autofdo_source_profile::get_callsite_total_count,
37732 function_instance::get_function_instance_by_decl,
37733 string_table::get_index, string_table::get_index_by_decl,
37734 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
37735 Fix comment typos. Reformatting and minor code rearrangement.
37737 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
37739 * config/rs6000/rs6000.md (probe_stack): Delete.
37740 (probe_stack_address): New.
37742 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
37744 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
37745 to test for 32-bit ABIs, not !TARGET_POWERPC64.
37747 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
37749 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
37750 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
37751 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
37753 (rs6000_libcall_value): Use the new function.
37755 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
37757 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
37759 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
37761 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
37762 implement a more precise life analysis for it during backward scan.
37764 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
37766 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
37768 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
37770 PR rtl-optimization/52773
37771 * calls.c (emit_library_call_value): When pushing arguments use
37772 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
37773 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
37774 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
37776 2015-01-17 Jeff Law <law@redhat.com>
37778 PR rtl-optimization/32790
37779 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
37780 not ZERO_EXTEND in SET_DESTs.
37782 2015-01-17 Alan Modra <amodra@gmail.com>
37784 * cprop.c (do_local_cprop): Revert last change.
37786 2015-01-16 DJ Delorie <dj@redhat.com>
37787 Nick Clifton <nickc@redhat.com>
37789 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
37790 (addhi3_real): Likewise. Fix [HL+0] syntax.
37791 (subqi3_real): Likewise.
37792 (subhi3_real): Likewise.
37793 (cbranchqi4_real): Likewise. Allow saddr,#imm.
37794 (cbranchhi4_real): Likewise.
37795 (cbranchhi4_real_inverted): Likewise.
37796 (cbranchsi4_real_lt): Likewise.
37797 (cbranchsi4_real_ge): Likewise.
37798 (cbranchsi4_real_ge): Likewise.
37799 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
37800 (sub<mode>3_virt): Likewise.
37801 (cbranchqi4_virt): Likewise.
37802 (cbranchhi4_virt): Likewise.
37803 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
37804 always use '[reg+imm]' even when imm is zero.
37805 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
37806 (rl78_general_operand): New.
37807 (rl78_nonimmediate_operand): New.
37808 (rl78_nonfar_operand): Use them.
37809 (rl78_nonfar_nonimm_operand): Likewise.
37810 (rl78_stack_based_mem): Fix.
37811 * config/rl78/constraints.md (Ibqi): New.
37816 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
37817 (iorqi3): Likewise.
37818 (xorqi3): Likewise.
37819 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
37821 * config/rl78/constrains (Qs8): New constraint.
37822 * config/rl78/rl78.c (rl78_flags_already_set): New function.
37823 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
37824 * config/rl78/rl78-real.md (update_Z): New attribute.
37825 Update patterns to set it.
37826 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
37827 shorter compare and branch sequence can be used.
37828 (cbranchhi4_real): Likewise.
37829 (cbranchhi4_real_inverted): Likewise.
37831 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
37832 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
37834 * config/rl78/rl78.c (rl78_get_name_encoding): New.
37835 (rl78_option_override): Allow -mes0 only if C.
37836 (characterize_address): Support subregs of symbol_refs.
37837 (rl78_addr_space_address_mode): Move. Add __near.
37838 (rl78_far_p): Likewise.
37839 (rl78_addr_space_pointer_mode): Likewise.
37840 (rl78_as_legitimate_address): Likewise.
37841 (rl78_addr_space_subset_p): Likewise.
37842 (rl78_addr_space_convert): Likewise.
37843 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
37844 symbols with -mes0.
37845 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
37847 (rl78_alloc_physical_registers_op1): Change logic to prefer
37848 symbol[BC] addressing.
37849 (frodata_section): New.
37850 (rl78_asm_init_sections): Initialize it.
37851 (rl78_select_section): Put __far readonly symbols in .frodata.
37852 (rl78_make_type_far): New.
37853 (rl78_insert_attributes): Force all readonly symbols to be
37855 (rl78_asm_out_integer): New.
37856 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
37857 * config/rl78/rl78.opt (-mes0): New.
37859 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
37860 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
37861 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
37862 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
37863 (rl78_saddr_p): New.
37864 (rl78_output_aligned_common): New.
37865 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
37866 (rl78_handle_saddr_attribute): New.
37867 (rl78_handle_naked_attribute): New.
37868 (rl78_attribute_table): Add saddr.
37869 (rl78_print_operand_1): Don't print '!' on saddr operands.
37870 (rl78_print_operand_1): Strip encodings.
37872 (rl78_strip_name_encoding): New.
37873 (rl78_attrlist_to_encoding): New.
37874 (rl78_encode_section_info): New.
37875 (rl78_asm_init_sections): New.
37876 (rl78_select_section): New.
37877 (rl78_output_labelref): New.
37878 (rl78_output_aligned_common): New.
37879 (rl78_asm_out_integer): New.
37880 (rl78_asm_ctor_dtor): New.
37881 (rl78_asm_constructor): New.
37882 (rl78_asm_destructor): New.
37884 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
37885 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
37886 (transcode_memory_rtx): Update.
37887 (rl78_expand_epilogue): Use A_REG instead of 0.
37889 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37891 * config/arm/arm-protos.h (struct tune_params): New field
37892 sched_autopref_queue_depth.
37893 * config/arm/arm.c (sched-int.h): Include header.
37894 (arm_first_cycle_multipass_dfa_lookahead_guard,)
37895 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
37896 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
37897 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
37898 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
37899 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
37900 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
37901 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
37902 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
37903 * config/arm/t-arm (arm.o): Update.
37904 * haifa-sched.c (update_insn_after_change): Update.
37905 (rank_for_schedule): Use auto-prefetcher model, if requested.
37906 (autopref_multipass_init): New static function.
37907 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
37908 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
37909 variable for debug dumps.
37910 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
37911 (autopref_multipass_dfa_lookahead_guard): New global function that
37912 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
37913 (init_h_i_d): Update.
37914 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
37915 * sched-int.h (enum autopref_multipass_data_status): New const enum.
37916 (autopref_multipass_data_): Structure for auto-prefetcher data.
37917 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
37918 (struct _haifa_insn_data:autopref_multipass_data): New field.
37919 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
37920 (autopref_multipass_dfa_lookahead_guard): Declare.
37922 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37924 * rtlanal.c (get_base_term): Handle SCRATCH.
37926 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37928 * config/aarch64/aarch64.c
37929 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
37930 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
37932 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
37933 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
37935 2015-01-17 Alan Modra <amodra@gmail.com>
37937 * cprop.c (do_local_cprop): Disallow replacement of fixed
37940 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37943 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
37946 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
37948 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
37949 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
37951 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37953 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
37954 * config/arm/thumb1.md: ... Here.
37956 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37958 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
37959 TImode for TARGET_32BIT.
37961 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37963 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
37964 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
37966 (rs6000_abi_word_mode): New function.
37968 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37970 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
37971 instead of UNITS_PER_WORD to describe the size of stack slots.
37973 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37975 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
37976 as rs6000_promote_function_mode. Move comment to there.
37977 (rs6000_promote_function_mode): New function.
37979 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37981 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
37982 -mpowerpc64 is active.
37984 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
37986 PR middle-end/64353
37987 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
37990 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
37992 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
37993 introduced in revision 219724.
37995 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37996 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37999 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
38000 destination is not a GP reg.
38001 (*movdi_aarch64): Likewise.
38003 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
38006 * config/rs6000/default64.h: Revert ISA change.
38008 2015-01-16 Richard Biener <rguenther@suse.de>
38010 PR middle-end/64614
38011 * tree-ssa-uninit.c: Include tree-cfg.h.
38012 (MAX_SWITCH_CASES): New define.
38013 (convert_control_dep_chain_into_preds): Handle switch statements.
38014 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
38015 (normalize_one_pred_1): Do not split bit-manipulations.
38018 2015-01-16 Richard Biener <rguenther@suse.de>
38020 PR tree-optimization/64568
38021 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
38022 complex load rewriting for TARGET_MEM_REFs.
38024 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
38026 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
38028 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
38031 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
38033 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
38034 (aarch64_lra_p): Remove.
38036 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
38039 * ipa-chkp.h (chkp_instrumentable_p): New.
38040 * ipa-chkp.c: Include tree-inline.h.
38041 (chkp_instrumentable_p): New.
38042 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
38043 Fix processing of not instrumentable functions.
38044 (chkp_versioning): Use chkp_instrumentable_p. Warn about
38045 not instrumentable functions.
38046 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
38047 chkp_instrumentable_p.
38048 * tree-inline.h (copy_forbidden): New.
38049 * tree-inline.c (copy_forbidden): Not static anymore.
38051 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38053 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
38056 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
38058 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
38059 type OP_OUT to OP_INOUT.
38061 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
38063 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
38064 (high x) y) to y if x and y have the same base.
38066 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
38068 * config/arm/cortex-a57.md: New.
38069 * config/aarch64/aarch64.md: Include it.
38070 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
38071 * config/aarch64/aarch64-tune.md: Regenerate.
38073 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
38076 * ccmp.c (expand_ccmp_next): New function.
38077 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
38078 and compare insn sequence.
38079 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
38080 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
38081 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
38082 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
38083 (*ccmp_ior): Changed to ccmp_ior<mode>.
38084 (cmp<mode>): New pattern.
38085 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
38087 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
38089 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
38091 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
38092 _mm256_bsrli_epi128): New.
38093 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
38095 2015-01-15 Jiong Wang <jiong.wang@arm.com>
38097 * expmed.c (store_bit_field_using_insv): Improve warning message.
38098 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
38100 2015-01-15 Jiong Wang <jiong.wang@arm.com>
38102 PR rtl-optimization/64011
38103 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
38104 there is partial overflow.
38106 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38108 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
38110 (nds32_expand_epilogue_v3pop): Likewise.
38111 * config/nds32/nds32.md (sibcall): Define this for sibling call
38113 (sibcall_register): Likewise.
38114 (sibcall_immediate): Likewise.
38115 (sibcall_value): Likewise.
38116 (sibcall_value_register): Likewise.
38117 (sibcall_value_immediate): Likewise.
38118 (sibcall_epilogue): Likewise.
38119 (epilogue): Pass false to indicate this is not a sibcall epilogue.
38120 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
38121 (nds32_expand_epilogue_v3pop): Likewise.
38123 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38125 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
38126 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
38127 (return_internal): New.
38128 (return): Define this named pattern.
38129 (simple_return): Define this named pattern.
38130 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
38131 pattern instead of unspec_volatile_func_return.
38132 (nds32_expand_epilogue_v3pop): Likewise.
38133 (nds32_can_use_return_insn): New function.
38135 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38137 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
38138 * config/nds32/nds32.md (pop25return): New.
38139 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
38140 pop25return pattern.
38142 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38144 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
38145 -mforbid-fp-as-gp, and -mex9 options.
38147 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38149 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
38150 remove -mgp-direct option.
38152 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
38154 * doc/invoke.texi (--param early-inlining-insns): Update default value.
38155 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
38157 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
38159 * ipa-inline.c (inline_small_functions): Work around hints
38162 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
38165 * doc/invoke.texi (Option Summary): Document new Nios II
38167 (Nios II Options): Likewise.
38168 * config/nios2/nios2.opt: Add -mgpopt= option support.
38169 Modify existing -mgpopt and -mno-gpopt options to be aliases.
38170 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
38171 * config/nios2/nios2.c (nios2_option_override): Adjust
38172 -mgpopt defaulting.
38173 (nios2_in_small_data_p): Return true for explicit small data
38174 sections even with -G0.
38175 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
38178 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
38181 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
38183 (inline_call): Fix removal of aliases.
38185 2015-01-15 Jakub Jelinek <jakub@redhat.com>
38187 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
38188 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
38189 * opts.c (common_handle_option): Add -fsanitize=vptr.
38190 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
38191 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
38192 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
38193 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
38194 (ubsan_expand_vptr_ifn): New prototype.
38195 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
38196 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
38197 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
38198 expand_LOOP_VECTORIZED): Make argument nameless, remove
38200 (expand_UBSAN_VPTR): New function.
38201 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
38203 (UBSAN_VPTR): New internal function.
38204 * sanopt.c (tree_map_traits): Renamed to ...
38205 (sanopt_tree_map_traits): ... this.
38206 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
38207 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
38208 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
38209 (maybe_optimize_ubsan_vptr_ifn): New function.
38210 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
38211 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
38213 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
38214 internal calls like pure functions for aliasing, even when they
38215 have other side-effects that prevent making them ECF_PURE.
38216 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
38217 (ubsan_expand_vptr_ifn): New function.
38219 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
38221 PR rtl-optimization/64110
38222 * stmt.c (parse_output_constraint): Process '^' and '$'.
38223 (parse_input_constraint): Ditto.
38224 * lra-constraints.c (process_alt_operands): Process the new
38226 * ira-costs.c (record_reg_classes): Process the new constraint
38228 * genoutput.c (indep_constraints): Add '^' and '$'.
38229 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
38230 * doc/md.texi: Add description of the new constraints.
38232 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
38233 Bernd Schmidt <bernds@codesourcery.com>
38234 Cesar Philippidis <cesar@codesourcery.com>
38235 James Norris <jnorris@codesourcery.com>
38236 Tom de Vries <tom@codesourcery.com>
38237 Ilmir Usmanov <i.usmanov@samsung.com>
38238 Dmitry Bocharnikov <dmitry.b@samsung.com>
38239 Evgeny Gavrin <e.gavrin@samsung.com>
38240 Jakub Jelinek <jakub@redhat.com>
38242 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
38243 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38244 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38245 New function types.
38246 * builtins.c: Include "gomp-constants.h".
38247 (expand_builtin_acc_on_device): New function.
38248 (expand_builtin, is_inexpensive_builtin): Handle
38249 BUILT_IN_ACC_ON_DEVICE.
38250 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
38252 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
38254 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
38255 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
38256 i386/intelmic-offload.h.
38257 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
38258 to libgomp and its dependencies.
38259 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
38260 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
38261 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
38262 * config/ia64/hpux.h (LIB_SPEC): Likewise.
38263 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
38264 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
38265 * doc/generic.texi: Update for OpenACC changes.
38266 * doc/gimple.texi: Likewise.
38267 * doc/invoke.texi: Likewise.
38268 * doc/sourcebuild.texi: Likewise.
38269 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
38270 GF_OMP_FOR_KIND_OACC_LOOP.
38271 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
38272 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
38273 GF_OMP_TARGET_KIND_OACC_UPDATE,
38274 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
38276 * gimple.c: Update comments for OpenACC changes.
38277 * gimple.def: Likewise.
38278 * gimple.h: Likewise.
38279 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
38280 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
38281 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
38282 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
38283 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
38285 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
38286 * gimplify.c: Include "gomp-constants.h".
38287 Update comments for OpenACC changes.
38288 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
38289 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
38290 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
38291 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
38292 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
38293 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
38294 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
38295 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
38296 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
38298 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
38299 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
38300 OMP_CLAUSE_SET_MAP_KIND.
38301 (gimplify_oacc_cache): New function.
38302 (gimplify_omp_for): Handle OACC_LOOP.
38303 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
38305 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
38306 OACC_EXIT_DATA, OACC_UPDATE.
38307 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
38308 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
38309 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
38310 (gimplify_body): Consider flag_openacc next to flag_openmp.
38311 * lto-streamer-out.c: Include "gomp-constants.h".
38312 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
38313 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
38314 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
38315 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
38316 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
38317 (BUILT_IN_ACC_ON_DEVICE): New builtins.
38318 * omp-low.c: Include "gomp-constants.h".
38319 Update comments for OpenACC changes.
38320 (struct omp_context): Add reduction_map, gwv_below, gwv_this
38322 (extract_omp_for_data, use_pointer_for_field, install_var_field)
38323 (new_omp_context, delete_omp_context, scan_sharing_clauses)
38324 (create_omp_child_function, scan_omp_for, scan_omp_target)
38325 (check_omp_nesting_restrictions, lower_reduction_clauses)
38326 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
38327 Update for OpenACC changes.
38328 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
38329 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
38330 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
38331 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
38332 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
38333 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
38335 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
38336 Handle GF_OMP_FOR_KIND_OACC_LOOP.
38337 (expand_omp_target, lower_omp_target): Handle
38338 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
38339 GF_OMP_TARGET_KIND_OACC_UPDATE,
38340 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
38341 GF_OMP_TARGET_KIND_OACC_DATA.
38342 (pass_expand_omp::execute, execute_lower_omp)
38343 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
38345 (offload_symbol_decl): New variable.
38346 (oacc_get_reduction_array_id, oacc_max_threads)
38347 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
38348 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
38349 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
38350 (oacc_gimple_assign, oacc_initialize_reduction_data)
38351 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
38353 (is_targetreg_ctx): Remove function.
38354 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
38355 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
38356 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
38357 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
38358 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
38359 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
38360 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
38361 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
38362 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
38363 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
38364 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
38365 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
38366 * tree-core.h: Update comments for OpenACC changes.
38367 (enum omp_clause_map_kind): Remove.
38368 (struct tree_omp_clause): Change type of map_kind member from enum
38369 omp_clause_map_kind to unsigned char.
38370 * tree-inline.c: Update comments for OpenACC changes.
38371 * tree-nested.c: Likewise. Include "gomp-constants.h".
38372 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
38373 (convert_tramp_reference_stmt, convert_gimple_call): Update for
38374 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
38375 OMP_CLAUSE_SET_MAP_KIND.
38376 * tree-pretty-print.c: Include "gomp-constants.h".
38377 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
38378 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
38379 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
38380 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
38381 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
38382 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
38383 instead of OMP_CLAUSE_MAP_*.
38384 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
38385 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
38386 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
38387 * tree-streamer-in.c: Include "gomp-constants.h".
38388 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
38389 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
38390 * tree-streamer-out.c: Include "gomp-constants.h".
38391 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
38393 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
38394 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
38395 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
38396 * tree.c (omp_clause_num_ops): Update accordingly.
38397 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
38399 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
38400 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
38401 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
38402 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
38403 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
38404 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
38405 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
38406 (OMP_CLAUSE_SET_MAP_KIND): New macro.
38407 * varpool.c (varpool_node::get_create): Consider flag_openacc next
38409 * config/i386/intelmic-offload.h: New file.
38410 * config/nvptx/offload.h: Likewise.
38412 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38414 * explow.h: Remove duplicate contents.
38415 * dojump.h: Likewise.
38417 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
38419 * arm.c (arm_xgene_tune): Add default initializer for instruction
38422 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
38426 * ipa.c (symbol_table::remove_unreachable_nodes):
38427 Do not put abstract origins into boundary.
38429 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
38431 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
38432 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
38434 2015-01-15 Steve Ellcey <sellcey@mips.com>
38436 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
38437 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
38438 builtins.def, and chkp-builtins.def.
38440 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
38442 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
38445 2015-01-15 Richard Biener <rguenther@suse.de>
38447 PR tree-optimization/61743
38448 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
38449 information on PHIs for some simple cases.
38451 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38453 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
38455 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
38456 * config/arm/arm-cores.def (xgene1): New entry.
38457 * config/arm/arm-tables.opt: Regenerate.
38458 * config/arm/arm-tune.md: Regenerate.
38459 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
38461 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
38463 * tree-if-conv.c: Include hash-map.h.
38464 (aggressive_if_conv): New variable.
38465 (fold_build_cond_expr): Add simplification of non-zero condition.
38466 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
38467 destination block is not always executed.
38468 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
38469 than two predecessors if AGGRESSIVE_IF_CONV is true.
38470 (if_convertible_stmt_p): Fix commentary.
38471 (all_preds_critical_p): New function.
38472 (has_pred_critical_p): New function.
38473 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
38474 BB can have more than two predecessors and all incoming edges can be
38476 (predicate_bbs): Skip predication for loop exit block, use build2_loc
38477 to compute predicate for true edge.
38478 (find_phi_replacement_condition): Delete this function.
38479 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
38480 Allow interchange PHI arguments if EXTENDED is false.
38481 Change check that block containing reduction statement candidate
38482 is predecessor of phi-block since phi may have more than two arguments.
38483 (phi_args_hash_traits): New helper structure.
38484 (struct phi_args_hash_traits): New type.
38485 (phi_args_hash_traits::hash): New function.
38486 (phi_args_hash_traits::equal_keys): New function.
38487 (gen_phi_arg_condition): New function.
38488 (predicate_scalar_phi): Add handling of phi nodes with more than two
38489 arguments, delete COND and TRUE_BB arguments, insert body of
38490 find_phi_replacement_condition to predicate ordinary phi nodes.
38491 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
38492 delete call of find_phi_replacement_condition and invoke
38493 predicate_scalar_phi with two arguments.
38494 (insert_gimplified_predicates): Add assert that non-predicated block
38495 don't have statements to insert.
38496 (ifcvt_split_critical_edges): New function.
38497 (ifcvt_split_def_stmt): Likewise.
38498 (ifcvt_walk_pattern_tree): Likewise.
38499 (stmt_is_root_of_bool_pattern): Likewise.
38500 (ifcvt_repair_bool_pattern): Likewise.
38501 (ifcvt_local_dce): Likewise.
38502 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
38503 is copy of inner or outer loop force_vectorize field, invoke
38504 ifcvt_split_critical_edges, ifcvt_local_dce and
38505 ifcvt_repair_bool_pattern for aggressive if-conversion.
38507 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
38509 * config/aarch64/aarch64.md: Include xgene1.md.
38510 * config/aarch64/xgene1.md: New file.
38512 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38514 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
38515 xgene1 (APM XGene-1) core definition.
38516 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
38517 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
38518 * doc/invoke.texi: Document -mcpu=xgene1.
38520 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38522 * dojump.h: New header file.
38523 * explow.h: Likewise.
38524 * expr.h: Remove includes.
38525 Move expmed.c prototypes to expmed.h.
38526 Move dojump.c prototypes to dojump.h.
38527 Move alias.c prototypes to alias.h.
38528 Move explow.c prototypes to explow.h.
38529 Move calls.c prototypes to calls.h.
38530 Move emit-rtl.c prototypes to emit-rtl.h.
38531 Move varasm.c prototypes to varasm.h.
38532 Move stmt.c prototypes to stmt.h.
38533 (saved_pending_stack_adjust): Move to dojump.h.
38534 (adjust_address): Move to explow.h.
38535 (adjust_address_nv): Move to emit-rtl.h.
38536 (adjust_bitfield_address): Likewise.
38537 (adjust_bitfield_address_size): Likewise.
38538 (adjust_bitfield_address_nv): Likewise.
38539 (adjust_automodify_address_nv): Likewise.
38540 * explow.c (expr_size): Move to expr.c.
38541 (int_expr_size): Likewise.
38542 (tree_expr_size): Likewise.
38543 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38544 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
38545 * genemit.c (main): Generate includes statistics.h, real.h,
38546 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
38548 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
38549 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
38550 explow.h, emit-rtl.h, stmt.h.
38551 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
38552 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
38553 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
38554 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
38555 emit-rtl.h, varasm.h, stmt.h.
38556 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
38557 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
38558 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
38559 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
38560 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
38561 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
38562 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
38563 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
38564 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
38565 tm.h tree.h varasm.h vec.h wide-int.h.
38566 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38567 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
38568 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
38569 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
38570 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
38571 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
38572 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
38573 * loop-iv.c: Likewise.
38574 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
38575 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
38576 statistics.h stmt.h tree.h varasm.h wide-int.h.
38577 * lra-constraints.c: Likewise.
38578 * lra-eliminations.c: Likewise.
38579 * lra-lives.c: Likewise.
38580 * lra-remat.c: Likewise.
38581 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38582 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
38583 statistics.h stmt.h tree.h varasm.h wide-int.h.
38584 * hw-doloop.c: Likewise.
38585 * ira-color.c: Likewise.
38586 * ira-emit.c: Likewise.
38587 * loop-doloop.c: Likewise.
38588 * loop-invariant.c: Likewise.
38589 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38590 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
38591 statistics.h stmt.h tree.h varasm.h wide-int.h.
38592 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
38593 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
38594 statistics.h stmt.h tree.h varasm.h wide-int.h.
38595 * combine-stack-adj.c: Likewise.
38598 * ifcvt.c: Likewise.
38599 * ira-costs.c: Likewise.
38600 * jump.c: Likewise.
38601 * lra-coalesce.c: Likewise.
38602 * lra-spills.c: Likewise.
38603 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38604 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
38605 stmt.h varasm.h wide-int.h.
38606 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38607 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
38609 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
38610 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
38611 statistics.h stmt.h varasm.h wide-int.h.
38612 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
38613 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
38614 varasm.h wide-int.h.
38615 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
38616 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
38617 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
38618 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
38619 statistics.h stmt.h.
38620 * config/tilepro/tilepro.c: Likewise.
38621 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
38622 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
38623 * config/pdp11/pdp11.c: Likewise.
38624 * config/xtensa/xtensa.c: Likewise.
38625 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
38626 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
38628 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38629 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
38630 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
38631 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38632 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
38633 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
38634 * rtl-chkp.c: Likewise.
38635 * tree-chkp-opt.c: Likewise.
38636 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
38637 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
38638 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
38639 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38640 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
38641 statistics.h stmt.h.
38642 * tree-vect-data-refs.c: Likewise.
38643 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
38644 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38645 rtl.h statistics.h stmt.h varasm.h.
38646 * internal-fn.c: Likewise.
38647 * ipa-icf-gimple.c: Likewise.
38648 * lto-section-out.c: Likewise.
38649 * tree-data-ref.c: Likewise.
38650 * tree-nested.c: Likewise.
38651 * tree-outof-ssa.c: Likewise.
38652 * tree-predcom.c: Likewise.
38653 * tree-pretty-print.c: Likewise.
38654 * tree-scalar-evolution.c: Likewise.
38655 * tree-ssa-strlen.c: Likewise.
38656 * tree-vect-loop.c: Likewise.
38657 * tree-vect-patterns.c: Likewise.
38658 * tree-vect-slp.c: Likewise.
38659 * tree-vect-stmts.c: Likewise.
38660 * tsan.c: Likewise.
38661 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38662 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
38664 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
38665 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38666 statistics.h stmt.h varasm.h.
38667 * loop-unroll.c: Likewise.
38668 * ubsan.c: Likewise.
38669 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
38670 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
38672 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38673 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
38674 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
38675 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
38676 statistics.h stmt.h.
38677 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
38678 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
38679 statistics.h stmt.h varasm.h.
38680 * gimple-match-head.c: Likewise.
38681 * lto-cgraph.c: Likewise.
38682 * lto-section-in.c: Likewise.
38683 * lto-streamer-in.c: Likewise.
38684 * lto-streamer-out.c: Likewise.
38685 * tree-affine.c: Likewise.
38686 * tree-cfg.c: Likewise.
38687 * tree-cfgcleanup.c: Likewise.
38688 * tree-if-conv.c: Likewise.
38689 * tree-into-ssa.c: Likewise.
38690 * tree-ssa-alias.c: Likewise.
38691 * tree-ssa-copyrename.c: Likewise.
38692 * tree-ssa-dse.c: Likewise.
38693 * tree-ssa-forwprop.c: Likewise.
38694 * tree-ssa-live.c: Likewise.
38695 * tree-ssa-math-opts.c: Likewise.
38696 * tree-ssa-pre.c: Likewise.
38697 * tree-ssa-sccvn.c: Likewise.
38698 * tree-tailcall.c: Likewise.
38699 * tree-vect-generic.c: Likewise.
38700 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38701 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
38702 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38703 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
38704 * varasm.c: Likewise.
38705 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38706 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
38708 * init-regs.c: Likewise.
38710 * omp-low.c: Likewise.
38711 * stack-ptr-mod.c: Likewise.
38712 * tree-ssa-reassoc.c: Likewise.
38713 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38714 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
38716 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38717 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
38718 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38719 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
38720 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38721 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
38722 * tree-ssa-phiopt.c: Likewise.
38723 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38724 fixed-value.h hashtab.h real.h statistics.h stmt.h.
38725 * config/fr30/fr30.c: Likewise.
38726 * config/frv/frv.c: Likewise.
38727 * expr.c: Likewise.
38728 * final.c: Likewise.
38729 * optabs.c: Likewise.
38730 * passes.c: Likewise.
38731 * simplify-rtx.c: Likewise.
38732 * stmt.c: Likewise.
38733 * toplev.c: Likewise.
38734 * var-tracking.c: Likewise.
38735 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38736 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
38737 * lower-subreg.c: Likewise.
38738 * postreload-gcse.c: Likewise.
38740 * reginfo.c: Likewise.
38741 * store-motion.c: Likewise.
38742 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38743 fixed-value.h hashtab.h real.h stmt.h varasm.h.
38744 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38745 fixed-value.h hashtab.h statistics.h stmt.h.
38746 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38747 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
38748 * except.c: Likewise.
38749 * explow.c: Likewise.
38750 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38751 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
38753 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38754 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
38755 * tree-ssa-structalias.c: Likewise.
38756 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38757 fixed-value.h insn-config.h real.h statistics.h.
38758 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38759 fixed-value.h insn-config.h real.h statistics.h stmt.h.
38760 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38761 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
38762 * cfgbuild.c: Likewise.
38763 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38764 fixed-value.h real.h rtl.h statistics.h stmt.h.
38765 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38766 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
38767 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38768 fixed-value.h real.h statistics.h stmt.h.
38769 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38770 fixed-value.h real.h statistics.h stmt.h varasm.h.
38771 * cprop.c: Likewise.
38772 * modulo-sched.c: Likewise.
38773 * postreload.c: Likewise.
38774 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
38775 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
38776 statistics.h stmt.h varasm.h.
38777 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
38778 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38779 rtl.h statistics.h stmt.h varasm.h.
38780 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
38781 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
38783 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
38784 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
38786 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
38787 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
38789 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
38790 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
38791 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
38792 function.h real.h statistics.h stmt.h varasm.h.
38793 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
38794 insn-config.h real.h statistics.h stmt.h.
38795 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
38796 statistics.h stmt.h.
38797 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
38798 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
38799 statistics.h stmt.h varasm.h.
38800 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
38801 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
38802 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
38803 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
38804 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
38805 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
38806 statistics.h stmt.h varasm.h.
38807 * ipa-polymorphic-call.c: Likewise.
38808 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
38809 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38810 statistics.h stmt.h.
38811 * config/c6x/c6x.c: Likewise.
38812 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
38813 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38814 statistics.h stmt.h varasm.h.
38815 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
38816 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
38818 * ipa-split.c: Likewise.
38819 * tree-eh.c: Likewise.
38820 * tree-ssa-dce.c: Likewise.
38821 * tree-ssa-loop-niter.c: Likewise.
38822 * tree-vrp.c: Likewise.
38823 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
38824 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
38826 * config/nds32/nds32-fp-as-gp.c: Likewise.
38827 * config/nds32/nds32-intrinsic.c: Likewise.
38828 * config/nds32/nds32-isr.c: Likewise.
38829 * config/nds32/nds32-md-auxiliary.c: Likewise.
38830 * config/nds32/nds32-memory-manipulation.c: Likewise.
38831 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
38832 * config/nds32/nds32-predicates.c: Likewise.
38833 * config/nds32/nds32.c: Likewise.
38834 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
38835 fixed-value.h hashtab.h real.h statistics.h.
38836 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
38837 fixed-value.h hashtab.h real.h statistics.h stmt.h.
38838 * config/arm/arm.c: Likewise.
38839 * config/avr/avr.c: Likewise.
38840 * config/bfin/bfin.c: Likewise.
38841 * config/h8300/h8300.c: Likewise.
38842 * config/i386/i386.c: Likewise.
38843 * config/ia64/ia64.c: Likewise.
38844 * config/iq2000/iq2000.c: Likewise.
38845 * config/m32c/m32c.c: Likewise.
38846 * config/m32r/m32r.c: Likewise.
38847 * config/m68k/m68k.c: Likewise.
38848 * config/mcore/mcore.c: Likewise.
38849 * config/mep/mep.c: Likewise.
38850 * config/mips/mips.c: Likewise.
38851 * config/mn10300/mn10300.c: Likewise.
38852 * config/moxie/moxie.c: Likewise.
38853 * config/pa/pa.c: Likewise.
38854 * config/rl78/rl78.c: Likewise.
38855 * config/rx/rx.c: Likewise.
38856 * config/s390/s390.c: Likewise.
38857 * config/sh/sh.c: Likewise.
38858 * config/sparc/sparc.c: Likewise.
38859 * config/spu/spu.c: Likewise.
38860 * config/stormy16/stormy16.c: Likewise.
38861 * config/v850/v850.c: Likewise.
38862 * config/vax/vax.c: Likewise.
38863 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
38864 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
38865 * config/msp430/msp430.c: Likewise.
38866 * predict.c: Likewise.
38867 * value-prof.c: Likewise.
38868 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
38869 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
38870 * config/microblaze/microblaze.c: Likewise.
38871 * config/nios2/nios2.c: Likewise.
38872 * config/rs6000/rs6000.c: Likewise.
38873 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
38874 insn-config.h real.h rtl.h statistics.h stmt.h.
38875 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
38876 insn-config.h real.h statistics.h stmt.h.
38877 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
38878 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
38879 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
38880 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
38881 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
38882 fixed-value.h real.h statistics.h stmt.h.
38883 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
38884 fixed-value.h statistics.h stmt.h.
38885 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
38888 2015-01-15 Jakub Jelinek <jakub@redhat.com>
38890 * gengtype.c (create_user_defined_type): Workaround
38891 -Wmaybe-uninitialized false positives.
38892 * cse.c (fold_rtx): Likewise.
38893 * loop-invariant.c (gain_for_invariant): Likewise.
38895 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
38897 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
38898 set the memory attributes in all cases but clear MEM_EXPR if need be.
38900 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
38902 PR tree-optimization/64434
38903 * cfgexpand.c (reorder_operands): New function.
38904 (expand_gimple_basic_block): Insert call of reorder_operands if
38907 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
38909 * config/mips/micromips.md (*swp): Remove explicit parallel.
38910 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
38911 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
38912 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
38913 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
38914 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
38915 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
38916 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
38917 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
38918 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
38919 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
38920 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
38921 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
38922 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
38923 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
38924 (mips_wrdsp): Likewise.
38925 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
38927 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
38928 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
38929 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
38930 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
38931 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
38932 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
38933 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
38934 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
38935 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
38937 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
38939 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
38940 (mips_print_operand): Support 'y' to print exact log2 in decimal
38942 * config/mips/mips.h (ISA_HAS_LSA): New define.
38943 (ISA_HAS_DLSA): Likewise.
38944 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
38945 * config/mips/predicates.md (const_immlsa_operand): New predicate.
38947 2015-01-15 Martin Liska <mliska@suse.cz>
38950 * optc-save-gen.awk: Add support for array types.
38952 2015-01-15 Richard Biener <rguenther@suse.de>
38954 PR middle-end/64365
38955 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
38956 for MEM_REF access functions with the same base can never partially
38959 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
38961 * common.opt: New option -fstack-protector-explicit.
38962 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
38963 (stack_protect_decl_phase): Handle stack_protect attribute for
38964 explicit stack protection requests.
38965 (expand_used_vars): Similarly.
38966 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
38967 * doc/extend.texi: Add documentation for "stack_protect" attribute.
38968 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
38970 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
38973 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
38975 (sh_extending_set_of_reg): New struct.
38976 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
38977 sh_remove_reg_dead_or_unused_notes): New Declarations.
38978 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
38979 sh_find_extending_set_of_reg, sh_split_tst_subregs,
38980 sh_extending_set_of_reg::use_as_extended_reg): New functions.
38981 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
38982 convert to insn_and_split and use new function sh_split_tst_subregs.
38984 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
38986 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
38988 (Optimization Options): Move -fuse-ld documentation to...
38989 (Link Options): ...here.
38991 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
38993 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
38995 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
38996 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
38997 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
38998 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
38999 instead of ZR for the memory operand of LL/SC.
39000 (compare_and_swap_12, sync_add<mode>): Likewise.
39001 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
39002 (sync_new_<optab>_12, sync_nand_12): Likewise.
39003 (sync_old_nand_12, sync_new_nand_12): Likewise.
39004 (sync_sub<mode>, sync_old_add<mode>): Likewise.
39005 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
39006 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
39007 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
39008 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
39009 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
39010 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
39011 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
39012 * doc/md.texi (ZC): Update description.
39014 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
39016 * builtins.c (expand_builtin_atomic_exchange): Remove error when
39017 memory model is CONSUME.
39018 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
39019 expand_builtin_atomic_store): Change invalid memory model errors to
39021 (expand_builtin_atomic_clear): Change invalid model errors to warnings
39022 and issue warning for CONSUME.
39024 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
39026 * lto-cgraph: Update function comments for
39027 lto_symtab_encoder_encode_*.
39029 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
39031 * Makefile.in (site.exp): Do not set ENABLE_LTO.
39033 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
39035 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
39036 * lto-cgraph.c (select_what_to_stream): Remove argument, use
39037 lto_stream_offload_p instead.
39038 * lto-streamer.h (select_what_to_stream): Remove argument.
39039 * passes.c (ipa_write_summaries): Likewise.
39040 * tree-pass.h (ipa_write_summaries): Likewise.
39042 2015-01-14 Richard Biener <rguenther@suse.de>
39044 PR tree-optimization/59354
39045 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
39046 groups larger than the slp group size as having gaps.
39048 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
39050 PR middle-end/59448
39051 * builtins.c (get_memmodel): Promote consume to acquire always.
39053 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39056 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
39059 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39062 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
39064 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
39065 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
39066 AVX512VBMI, as it implies AVX512BW.
39068 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39071 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
39072 (vec_unpacks_hi_v16sf): Ditto.
39074 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39076 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
39079 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39081 * doc/invoke.texi (mapcs): Mention deprecation.
39082 (mapcs-frame): Likewise.
39084 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
39087 * config/arm/arm.c (callee_saved_reg_p): Define.
39088 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
39089 register is callee saved instead of !call_used_regs[reg].
39090 (thumb1_compute_save_reg_mask): Likewise.
39092 2015-01-14 Hale Wang <hale.wang@arm.com>
39094 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
39097 2015-01-14 Richard Biener <rguenther@suse.de>
39100 * tree-inline.c (insert_debug_decl_map): Check destination
39101 function MAY_HAVE_DEBUG_STMTS.
39102 (insert_init_debug_bind): Likewise.
39103 (insert_init_stmt): Remove redundant check.
39104 (remap_gimple_stmt): Drop debug stmts if the destination
39105 function has var-tracking assignments disabled.
39107 2015-01-14 Martin Liska <mliska@suse.cz>
39109 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
39110 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
39112 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39115 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
39116 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
39118 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
39120 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
39121 level from an ARCH; do not inject the default.
39122 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
39123 MIPS_ISA_LEVEL_SPEC.
39124 (MIPS_ISA_NAN2008_SPEC): Update comment.
39125 (BASE_DRIVER_SELF_SPECS): Likewise.
39126 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
39127 MIPS_DEFAULT_ISA_LEVEL_SPEC.
39128 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
39129 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
39130 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
39132 2015-01-14 Richard Biener <rguenther@suse.de>
39134 PR tree-optimization/64493
39135 PR tree-optimization/64495
39136 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
39137 assign the proper vectorized PHI to the inner loop exit PHIs.
39139 2015-01-14 Joey Ye <joey.ye@arm.com>
39141 * config/arm/arm.c (arm_compute_save_reg_mask):
39142 Do not save lr in case of tail call.
39143 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
39145 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
39147 * tree-vrp.c (check_array_ref): Emit more warnings
39148 for warn_array_bounds >= 2.
39149 * common.opt: New option -Warray-bounds=.
39150 * doc/invoke.texi: Document -Warray-bounds=.
39152 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
39154 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
39155 (mforbid-fp-as-gp): Remove.
39157 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
39158 (nds32_symbol_load_store_p): Remove.
39159 (nds32_fp_as_gp_check_available): Clean up implementation.
39160 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
39162 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
39163 fp-as-gp and ex9 cases.
39165 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
39167 * tree-profile.c (init_ic_make_global_vars): Drop workaround
39168 for bintuils bug 14342.
39169 (init_ic_make_global_vars): Likewise.
39170 (gimple_init_edge_profiler): Likewise.
39171 (gimple_gen_ic_func_profiler): Likewise.
39173 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
39175 * ipa-inline.c (inline_small_functions): Swap the operands in
39178 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
39181 * ipa-inline-analysis.c (node_growth_cache): Remove.
39182 (initialize_growth_caches): Do not initialize it.
39183 (free_growth_caches): Do not free it.
39184 (do_estimate_growth): Rename to ...
39185 (estimate_growth): ... this one; drop growth cache code.
39186 (growth_likely_positive): Always go the heuristics way.
39187 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
39188 (reset_edge_caches): Do not reset node growth.
39189 (heap_edge_removal_hook): Do not maintain cache.
39190 (inline_small_functions): Likewise; strenghten sanity check.
39191 (ipa_inline): Do not maintain caches.
39192 * ipa-inline.h (node_growth_cache): Remove.
39193 (do_estimate_growth): Remove to ...
39194 (estimate_growth): this one; remove inline version.
39195 (reset_node_growth_cache): Remove.
39197 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
39200 * ipa-inline.c (inline_small_functions): Update callee keys after
39201 resolving speculation
39202 (inline_small_functions): Always check monotonicity of the queue.
39204 2015-01-13 Marek Polacek <polacek@redhat.com>
39206 PR middle-end/64391
39207 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
39209 2015-01-13 Jakub Jelinek <jakub@redhat.com>
39211 PR rtl-optimization/64286
39212 * ree.c (combine_reaching_defs): Move part of comment earlier,
39213 remove !SCALAR_INT_MODE_P check.
39214 (add_removable_extension): Don't add vector mode
39215 extensions if all uses of the source register aren't the same
39218 2015-01-13 Renlin Li <renlin.li@arm.com>
39220 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
39221 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
39223 2015-01-13 Martin Liska <mliska@suse.cz>
39225 * ipa-icf.c (sem_function::equals_private): Call new functions
39226 cl_target_option_print_diff and cl_optimization_print_diff.
39227 * optc-save-gen.awk (cl_target_option_print_diff): New function.
39228 (cl_optimization_print_diff): Likewise.
39229 * opth-gen.awk: Likewise.
39231 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
39233 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
39234 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
39235 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
39236 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
39237 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
39238 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
39240 2015-01-13 Andrew Pinski <apinski@cavium.com>
39242 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
39243 instead of src mode.
39245 2015-01-13 Richard Biener <rguenther@suse.de>
39248 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
39251 2015-01-13 Andrew Pinski <apinski@cavium.com>
39253 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
39255 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
39257 2015-01-13 Jakub Jelinek <jakub@redhat.com>
39259 PR middle-end/63974
39260 * cfgexpand.c (expand_computed_goto): Don't call
39261 convert_memory_address here.
39263 2015-01-13 Richard Biener <rguenther@suse.de>
39265 PR tree-optimization/64406
39266 * tree-loop-distibution.c (pass_loop_distribution::execute):
39267 Reset the SCEV hashtable if we distributed anything.
39269 2015-01-13 Richard Biener <rguenther@suse.de>
39271 PR tree-optimization/64404
39272 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
39273 SLP types for CSEd loads.
39275 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
39277 PR tree-optimization/64436
39278 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
39279 merge of two symbolic numbers for a bitwise OR to ...
39280 (perform_symbolic_merge): This. Also fix computation of the range and
39281 end of the symbolic number corresponding to the result of a bitwise OR.
39283 2015-01-13 Richard Biener <rguenther@suse.de>
39285 PR tree-optimization/64568
39286 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
39287 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
39289 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39291 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
39292 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
39294 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39296 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
39297 target-specific symbol_ref flag.
39298 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
39299 resides in rodata section.
39300 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
39301 (nds32_encode_section_info): New function.
39303 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39305 * config/nds32/nds32.md (call): Use pseudo instruction bal which
39306 clobbers TA_REGNUM if large code model is specified.
39307 (call_register): Likewise.
39308 (call_immediate): Likewise.
39309 (call_value): Likewise.
39310 (call_value_register): Likewise.
39311 (call_value_immediate): Likewise.
39313 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39315 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
39316 (TARGET_CMODEL_MEDIUM): New macro.
39317 (TARGET_CMODEL_LARGE): New macro.
39318 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
39319 code model setting in assembly code.
39321 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39323 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
39324 Remove MASK_GP_DIRECT flag.
39325 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
39326 one of the multilib default options.
39327 * config/nds32/nds32.opt (mgp-direct): Remove.
39328 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
39329 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
39331 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39333 * config/nds32/nds32.opt (mcmodel): Add new option.
39334 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
39335 to describe code model.
39337 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
39340 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
39342 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
39344 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
39345 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
39346 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
39347 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
39348 __builtin_sh_set_fpscr.
39350 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
39352 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
39353 after a funtion name just to indicate it is a function.
39354 ([-fsanitize-undefined-trap-on-error]): Likewise.
39355 ([-fdbg-cnt=]): Likewise.
39356 ([-mmemcpy]): Likewise.
39357 ([-mflush-func]): Likewise.
39358 ([-msynci]): Likewise.
39360 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
39362 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
39365 2015-01-12 Jakub Jelinek <jakub@redhat.com>
39367 PR tree-optimization/64563
39368 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
39369 instead of != VR_VARYING.
39372 * config/i386/i386.c (ix86_expand_prologue): Add
39373 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
39375 PR tree-optimization/64454
39376 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
39377 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
39378 for signed or [0, op1 - 1] for unsigned modulo.
39379 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
39380 even if op1 does not satisfy integer_pow2p.
39383 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
39385 2015-01-12 Jeff Law <law@redhat.com>
39388 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
39389 (trunchiqi2, truncsihi2): Similarly.
39391 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
39392 rather than calling F.
39394 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
39396 * tsan.c (instrument_expr): Use force_gimple_operand.
39397 Use may_be_nonaddressable_p instead of is_gimple_addressable.
39399 2015-01-12 Richard Biener <rguenther@suse.de>
39401 PR tree-optimization/64530
39402 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
39405 2015-01-12 Richard Biener <rguenther@suse.de>
39407 PR middle-end/64357
39408 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
39411 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39413 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
39414 Cortex-A17 tuning parameters.
39415 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
39417 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39419 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
39420 * config/arm/arm.c (arm_macro_fusion_p): New function.
39421 (arm_macro_fusion_pair_p): Likewise.
39422 (TARGET_SCHED_MACRO_FUSION_P): Define.
39423 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
39424 (ARM_FUSE_NOTHING): Likewise.
39425 (ARM_FUSE_MOVW_MOVT): Likewise.
39426 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
39427 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
39428 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
39429 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
39430 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
39431 arm_cortex_a5_tune): Specify fuseable_ops value.
39433 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
39436 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
39437 test for PIE with copy reloc.
39438 * configure: Regenerated.
39440 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39442 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
39444 (arm_tls_descseq_addr): Likewise.
39445 (arm_gen_movmemqi): Likewise.
39446 (arm_expand_epilogue_apcs_frame): Likewise.
39447 (arm_expand_epilogue): Likewise.
39448 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
39451 2015-01-12 Martin Liska <mliska@suse.cz>
39454 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
39455 volatility for correct operands.
39457 2015-01-12 Martin Liska <mliska@suse.cz>
39459 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
39460 indication that a function is not leaf.
39461 (sem_function::compare_polymorphic_p): Likewise.
39463 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39465 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
39466 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
39467 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
39468 fold-const.h, tree-check.h.
39470 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
39474 * ipa-inline.c (compute_uninlined_call_time,
39475 compute_inlined_call_time): Use counts for extra precision when
39477 (big_speedup_p): Fix formating.
39478 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
39479 (relative_time_benefit): Remove.
39480 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
39481 merge guessed and read profile paths.
39482 (inline_small_functions): Count only !optimize_size functions into
39483 initial size; be more lax about sanity check when profile is used;
39484 be sure to update inlined function profile when profile is read.
39486 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
39489 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
39490 cost when edge becomes direct.
39491 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
39492 is resolved or when introducing new speculation.
39494 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
39498 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
39499 '||' to fix typo issue.
39501 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
39502 accept and return NULL.
39504 2015-01-12 Martin Liska <mliska@suse.cz>
39506 * cgraph.c (cgraph_edge::remove_callee): Move function to header
39507 file for being inlined.
39508 (cgraph_set_edge_callee): Delete.
39509 (cgraph_edge::redirect_callee): Move function to header file
39511 (cgraph_edge::make_direct): Use new function.
39512 (cgraph_edge::dump_edge_flags): New function created from
39513 static dump_edge_flags function.
39514 (cgraph_node::dump): Use new function.
39515 (cgraph_edge::verify_count_and_frequency): New function created
39516 from verify_edge_count_and_frequency.
39517 (cgraph_edge::verify_corresponds_to_fndecl): New function created
39518 from verify_edge_corresponds_to_fndecl.
39519 (verify_edge_corresponds_to_fndecl): Delete.
39520 (cgraph_node::verify_node): Use new function.
39521 * cgraph.h (cgraph_edge::set_callee): New function.
39522 (cgraph_edge::dump_edge_flags): Likewise.
39523 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
39525 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
39527 * ipa-utils.c (estimate_function_body_sizes): Do not
39528 free node params when called late with early=true.
39530 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
39532 * doc/md.texi (Instruction Patterns): Rewrite text for
39534 (Example): Likewise.
39536 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
39538 * doc/invoke.texi (Option Summary): Break long lines.
39539 [(-fdiagnostics-color)]: Put long literal in @smallexample
39541 [(-fsanitize-recover)]: Likewise.
39542 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
39543 [(-ffast-math)]: Likewise.
39544 [(--param max-inline-insns-recursive)]: Likewise.
39545 [(--param max-inline-recursive-depth)]: Likewise.
39546 [(-mno-text-section-literals)]: Likewise.
39548 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
39550 * doc/install.texi: Update for libgomp being renamed from "GNU
39551 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
39553 * doc/sourcebuild.texi: Likewise.
39555 2015-01-10 Anthony Green <green@moxielogic.com>
39557 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
39558 mul.x availability for moxiebox configuration.
39560 2015-01-09 Anthony Green <green@moxielogic.com>
39562 * config/moxie/moxie.md: Tabify assembly output.
39564 2015-01-09 Anthony Green <green@moxielogic.com>
39566 * config/moxie/moxie.md (CC_REG): Correct register definition.
39568 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
39570 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
39571 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
39574 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
39576 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
39578 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
39579 Jakub Jelinek <jakub@redhat.com>
39581 PR middle-end/64412
39582 * lto-streamer.h (lto_stream_offload_p): New declaration.
39583 * lto-streamer.c (lto_stream_offload_p): New variable.
39584 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
39585 at the same time as section_name_prefix.
39586 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
39587 if lto_stream_offload_p.
39588 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
39589 stream TREE_TARGET_OPTION if lto_stream_offload_p.
39590 (write_ts_function_decl_tree_pointers): Don't
39591 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
39592 * tree-streamer-in.c (unpack_value_fields): Don't stream
39593 TREE_TARGET_OPTION in if ACCEL_COMPILER.
39594 (lto_input_ts_function_decl_tree_pointers): Don't stream
39595 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
39596 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
39597 instead of section_name_prefix string comparisons.
39599 2015-01-09 Jakub Jelinek <jakub@redhat.com>
39601 PR rtl-optimization/64536
39602 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
39605 2015-01-09 Michael Collison <michael.collison@linaro.org>
39607 PR tree-optimization/64322
39608 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
39609 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
39611 2015-01-09 Tom de Vries <tom@codesourcery.com>
39613 PR rtl-optimization/64539
39614 * regcprop.c (kill_clobbered_values): Factor out of ...
39615 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
39616 instead of note_stores with kill_clobbered_value.
39618 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
39620 * ginclude/unwind-arm-common.h: Revert previous commit.
39622 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
39624 * config.gcc (arm*-*-freebsd*): New configuration.
39625 * config/arm/freebsd.h: New file.
39626 * config.host: Add extra components for arm*-*-freebsd*.
39627 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
39628 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
39630 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39632 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
39634 * config/rs6000/t-rtems: Add e6500 multilibs.
39636 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39638 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
39641 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39643 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
39644 MULTILIB_EXCEPTIONS.
39646 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39648 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
39649 MULTILIB_EXCEPTIONS.
39651 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39653 * config/arm/t-rtems-eabi: Rename to...
39654 * config/arm/t-rtems: ...this.
39655 * config/arm/rtems-eabi.h: Rename to...
39656 * config/arm/rtems.h: ...this.
39657 * config.gcc (arm*-*-rtems*): Reflect changes above.
39659 2015-01-09 Richard Biener <rguenther@suse.de>
39661 PR tree-optimization/64410
39662 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
39664 (execute_update_addresses_taken): Deal with that.
39665 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
39666 loads/stores for complex variables.
39668 2015-01-09 Martin Liska <mliska@suse.cz>
39670 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
39672 (func_checker::compare_memory_operand): New function.
39673 (func_checker::compare_operand): Split case to newly
39675 (func_checker::compare_cst_or_decl): New function.
39676 (func_checker::compare_gimple_call): Identify
39678 (func_checker::compare_gimple_assign): Likewise.
39679 * ipa-icf-gimple.h: New function.
39681 2015-01-09 Martin Liska <mliska@suse.cz>
39684 * sreal.c (sreal::dump): Change unsigned format to signed for
39686 (sreal::to_double): Replace exp2 with scalbln.
39688 2015-01-09 Martin Liska <mliska@suse.cz>
39690 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
39691 * ipa-icf.c (sem_function::equals_private): Add support for target and
39692 (sem_item_optimizer::merge_classes): Remove redundant function
39693 optimization flags comparison.
39694 * tree.h (target_opts_for_fn): New function.
39696 2015-01-09 Tom de Vries <tom@codesourcery.com>
39698 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
39700 2015-01-09 Kito Cheng <kito@0xlab.org>
39702 PR rtl-optimization/64348
39703 * lra-constraints.c (split_reg): Fix caller-save store/restore
39704 instruction generation.
39706 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
39708 PR gcov-profile/61790
39709 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
39710 long long. Fallback to int64_t if host doesn't have long long and
39711 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
39713 2015-01-08 Jakub Jelinek <jakub@redhat.com>
39715 PR tree-optimization/63989
39716 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
39717 from 1000 to 10000.
39718 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
39719 (get_stridx): If we don't have a record for certain SSA_NAME,
39720 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
39721 constant offset, call get_stridx_plus_constant.
39722 (get_stridx_plus_constant): New function.
39723 (zero_length_string): Don't use get_stridx here.
39726 PR middle-end/64388
39727 * dse.c (struct insn_info): Mention frame_read set also
39728 before reload for tail calls on some targets.
39729 (scan_insn): Revert 2014-12-22 change. Set frame_read
39730 also before reload for tail calls if
39731 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
39732 instead of add_non_frame_wild_read for non-const/memset
39733 tail calls after reload.
39735 2015-01-08 Jason Merrill <jason@redhat.com>
39737 * ubsan.c (do_ubsan_in_current_function): New.
39738 (pass_ubsan::gate): Use it.
39739 * ubsan.h: Declare it.
39740 * convert.c (convert_to_integer): Use it.
39742 2015-01-08 Jakub Jelinek <jakub@redhat.com>
39745 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
39746 compare_code when it is unconditionally overwritten afterwards.
39747 Use ix86_reverse_condition instead of reverse_condition. Don't
39748 change code if *reverse_condition* returned UNKNOWN and don't
39749 swap ct/cf and negate diff in that case.
39751 2015-01-08 Mike Stump <mikestump@comcast.net>
39753 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
39754 (pass_tsan_O0::gate): Likewise.
39755 * extend.texi (Function Attributes): Add no_sanitize_thread
39758 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
39760 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
39761 for registering builtins.
39762 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
39763 add -fopenmp to the argv_obstack used when invoking
39764 compile_for_target.
39766 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
39767 add "-m32" or "-m64" to argv_obstack.
39768 (generate_host_descr_file): Likewise, when invoking host_compiler.
39769 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
39772 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
39774 * config/sh/sh-mem.cc: Use constant as second operand when emitting
39777 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
39780 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
39781 constant load if constant operand fits into I08.
39783 2015-01-08 Jakub Jelinek <jakub@redhat.com>
39786 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
39787 and TREE_THIS_VOLATILE for MEM_REFs.
39788 (build5_stat): Fix up initialization of TREE_READONLY and
39789 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
39791 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
39794 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
39795 of r for the second alternative of the destination operand.
39797 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
39800 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
39802 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
39804 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
39806 ([-fivar-visibility], [-fvisibility]): Likewise.
39808 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
39810 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
39811 the file where @code, @command, etc is more appropriate.
39813 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
39815 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
39816 of -mrecip= documentation.
39818 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
39821 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
39822 correct reload handler if -m32 -mpowerpc64 is used.
39824 2015-01-06 Tom de Vries <tom@codesourcery.com>
39826 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
39828 2015-01-08 Christian Bruel <christian.bruel@st.com>
39831 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
39833 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
39835 PR tree-optimization/63259
39836 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
39837 if optab exists for 16bit byteswap.
39839 2015-01-06 Jakub Jelinek <jakub@redhat.com>
39841 * opts.c (common_handle_option): Add support for
39842 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
39843 * doc/invoke.texi: Document -fno-sanitize=all,
39844 -f{,no-}sanitize-recover=all. Document that
39845 -fsanitize=float-cast-overflow is not enabled
39846 by -fsanitize=undefined. Fix up documentation
39847 of -f{,no-}sanitize-recover.
39849 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
39851 * config.gcc: Add Visium support.
39852 * configure.ac: Likewise.
39853 * configure: Regenerate.
39854 * doc/extend.texi (interrupt attribute): Add Visium.
39855 * doc/invoke.texi: Document Visium options.
39856 * doc/install.texi: Document Visium target.
39857 * doc/md.texi: Document Visium constraints.
39858 * common/config/visium: New directory.
39859 * config/visium: Likewise.
39861 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
39863 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
39864 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
39866 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
39868 * combine.c (combine_validate_cost): Do not count the cost of a
39869 split I2 twice. Do not display it twice in the dump, either.
39871 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
39873 Revert parts of r219199.
39874 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
39876 ([-Wtraditional]): Restore markup on <limits.h>.
39878 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
39881 * doc/invoke.texi: Document -Wsuggest-override.
39883 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
39885 PR rtl-optimization/64287
39886 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
39887 (process_options): Disable flag_ipa_ra if profiling.
39889 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
39891 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
39893 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
39895 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
39896 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
39897 put under #if TARGET_LOOPS guard.
39899 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
39901 * config/i386/i386.c (output_387_binary_op): Use std::swap.
39903 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
39905 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
39906 * rtl.h (refers_to_regno_p): Add overload.
39908 * bt-load.c: Likewise.
39909 * combine.c: Likewise.
39910 * df-scan.c: Likewise.
39911 * sched-deps.c: Likewise.
39912 * config/s390/s390.c: Likewise.
39913 * config/m32r/m32r.c: Likewise.
39914 * config/rs6000/spe.md: Likewise.
39915 * config/rs6000/rs6000.c: Likewise.
39916 * config/pa/pa.c: Likewise.
39917 * config/stormy16/stormy16.c: Likewise.
39918 * config/cris/cris.c: Likewise.
39919 * config/arc/arc.md: Likewise.
39920 * config/arc/arc.c: Likewise.
39921 * config/sh/sh.md: Likewise.
39922 * config/sh/sh.c: Likewise.
39923 * config/frv/frv.c: Likewise.
39925 2015-01-05 Jakub Jelinek <jakub@redhat.com>
39928 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
39929 call as cleanup of the whole body.
39930 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
39931 * tsan.c (replace_func_exit): New function.
39932 (instrument_func_exit): Moved earlier.
39933 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
39934 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
39936 (tsan_pass): Don't call instrument_func_exit.
39937 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
39938 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
39942 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
39943 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
39944 it to libubsan handler instead of EXPR. Fold comparisons earlier,
39945 if the result is integer_zerop, return NULL_TREE.
39946 * convert.c (convert_to_integer): Pass expr as ARG.
39948 PR tree-optimization/64465
39949 * tree-inline.c (redirect_all_calls): During inlining
39950 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
39951 changed the stmt to a non-throwing call.
39953 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
39955 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
39956 etc markup throughout the file.
39958 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
39960 Enable experimental TSAN support for Ada.
39961 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
39963 2015-01-05 Jakub Jelinek <jakub@redhat.com>
39965 PR tree-optimization/64494
39966 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
39967 clear SSA_NAME_ANTI_RANGE_P flag.
39969 2015-01-05 Marek Polacek <polacek@redhat.com>
39971 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
39973 2015-01-05 Jakub Jelinek <jakub@redhat.com>
39975 Update copyright years.
39977 * gcc.c (process_command): Update copyright notice dates.
39978 * gcov-dump.c: Ditto.
39980 * doc/cpp.texi: Bump @copying's copyright year.
39981 * doc/cppinternals.texi: Ditto.
39982 * doc/gcc.texi: Ditto.
39983 * doc/gccint.texi: Ditto.
39984 * doc/gcov.texi: Ditto.
39985 * doc/install.texi: Ditto.
39986 * doc/invoke.texi: Ditto.
39988 * auto-profile.c, auto-profile.h: Fix up Copyright line.
39990 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
39992 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
39994 ([-fvtable-verify], [-fvtv-debug]): Likewise.
39995 ([-Wabi]): Likewise.
39996 ([-fmessage-length]): Likewise.
39997 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
39998 ([-Wno-discarded-qualifiers]): Likewise.
39999 ([-Wnodiscarded-array-qualifiers]): Likewise.
40000 ([-Wno-virtual-move-assign]): Likewise.
40001 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
40002 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
40003 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
40004 ([-fsanitize-undefined-trap-on-error]): Likewise.
40005 ([-floop-interchange]): Likewise.
40006 ([-ftree-coalesce-inlined-vars]): Likewise.
40007 ([-fvect-cost-model]): Likewise.
40008 ([-flto]): Likewise.
40009 ([--param]): Likewise.
40010 (Spec Files): Likewise.
40011 ([-mstrict-align]): Likewise.
40012 ([-mfix-cortex-a53-835769]): Likewise.
40013 ([-march], [-mtune]): Likewise.
40014 ([-mpic-register]): Likewise.
40015 ([-munaligned-access]): Likewise.
40016 ([-msp8]): Likewise.
40017 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
40018 (AVR Built-in Macros): Likewise.
40019 ([-mpreferred-stack-boundary]): Likewise.
40020 ([-mtune-crtl]): Likewise.
40021 ([-mashf]): Likewise.
40022 ([-mmcu=]): Likewise.
40023 ([-minrt]): Likewise.
40024 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
40025 ([-mupper-regs]): Likewise.
40026 ([-matomic-model]): Likewise.
40027 ([-mdiv]): Likewise.
40028 ([-mzdcbranch]): Likewise.
40029 ([-mdisable-callt]): Likewise.
40030 ([-msoft-float]): Likewise.
40031 ([-m8byte-align]): Likewise.
40032 ([-fstack-reuse]): Likewise.
40034 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40036 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
40037 Fix markup, light copy-editing.
40038 ([-fauto-profile]): Rewrite to fix formatting and content
40041 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40043 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
40044 Copy-edit description.
40045 ([-fisolate-erroneous-paths-attribute]): Likewise.
40046 * common.opt (fisolate-erroneous-paths-dereference):
40047 Copy-edit description.
40048 (fisolate-erroneous-paths-attribute): Likewise.
40050 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40052 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
40055 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40057 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
40058 ([-fvtv-debug]): Likewise.
40059 ([-Wc++-compat]): Likewise.
40060 ([-Wc++11-compat]): Likewise.
40061 ([-Wc++14-compat]): Likewise.
40062 ([-Wno-sized-deallocation]): Likewise.
40063 ([-femit-class-debug-always]): Likewise.
40064 ([-femit-struct-debug-detailed]): Likewise.
40065 ([-fno-keep-inline-dllexport]): Likewise.
40066 ([-fira-algorithm]): Likewise.
40067 ([-fira-region]): Likewise.
40068 ([-flra-remat]): Likewise.
40069 ([-fipa-ra]): Likewise.
40070 ([-fhoist-adjacent-loads]): Likewise.
40071 ([-fisolate-erroneous-paths-dereference]): Likewise.
40072 ([-fisolate-erroneous-paths-attribute]): Likewise.
40073 ([-ftree-switch-conversion]): Likewise.
40074 ([-ftree-tail-merge]): Likewise.
40075 ([-ftree-loop-if-convert]): Likewise.
40076 ([-ftree-loop-if-convert-stores]): Likewise.
40077 ([-ftree-loop-distribution]): Likewise.
40078 ([-ftree-loop-distribute-patterns]): Likewise.
40079 ([-flto-compression-level]): Likewise.
40080 ([-flto-report]): Likewise.
40081 ([-flto-report-wpa]): Likewise.
40082 ([-fuse-linker-plugin]): Likewise.
40083 ([-mfix-cortex-a53-835769]): Likewise.
40084 ([-mno-fix-cortex-a53-835769]): Likewise.
40085 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
40086 explicit listing; add a note to the discussion indicating they
40087 exist. Reorder table to group similar options. Add missing
40088 @opindex entries. Add @need commands throughout the table to
40089 allow it to be split across multiple pages.
40090 ([-m8bit-idiv]): Fix @opindex.
40091 ([-mavx256-split-unaligned-load]): Likewise.
40092 ([-mavx256-split-unaligned-store]): Likewise.
40093 ([-mstack-protector-guard]): Likewise.
40094 ([-mcpu=]): Likewise.
40095 ([-mcpu]): Likewise.
40096 ([-mpointer-size=]): Likewise.
40098 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
40100 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
40101 instead of `m' constraint. Likewise for unnamed movb comparison
40102 patterns using reg_before_reload_operand predicate.
40103 * config/pa/predicates.md (reg_before_reload_operand): Tighten
40104 predicate to reject register index and LO_SUM DLT memory forms
40107 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
40109 * doc/invoke.texi (Option Summary): Fix spelling of
40110 -fdevirtualize-at-ltrans.
40111 ([-fdevirtualize]): Fix markup.
40112 ([-fdevirtualize-speculatively]): Fix typo.
40113 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
40114 implementor-speaky.
40115 * common.opt (fdevirtualize-at-ltrans): Likewise.
40116 * ipa-devirt.c: Fix typos in comments throughout the file.
40117 (ipa_devirt): Fix typos in format strings for dump output.
40119 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
40121 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
40122 discussion of defaults, light copy-editing.
40124 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
40126 * tsan.c (instrument_expr): corrected previous checkin.
40128 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
40130 Instrument bit field and unaligned accesses for TSAN.
40131 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
40132 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
40133 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
40134 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
40135 unaligned memory regions.
40137 2015-01-01 Anthony Green <green@moxielogic.com>
40139 * config/moxie/predicates.md (moxie_general_movsrc_operand):
40140 Restrict move source register offsets to 16 bits.
40142 Copyright (C) 2015 Free Software Foundation, Inc.
40144 Copying and distribution of this file, with or without modification,
40145 are permitted in any medium without royalty provided the copyright
40146 notice and this notice are preserved.