1 2015-11-21 Nathan Sidwell <nathan@acm.org>
3 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
5 (write_func_decl_from_insn): Likewise.
6 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
7 (nvptx_file_end): Likewise.
8 (nvptx_function_end): Undent output.
9 (nvptx_expand_call): Fix formatting.
10 (nvptx_output_call_insn): Indent output.
11 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
12 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
14 2015-11-21 Jakub Jelinek <jakub@redhat.com>
17 * tree-inline.c (copy_debug_stmt): If
18 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
19 in decl_debug_args, don't call remap_gimple_op_r on it.
21 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
23 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
24 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
25 Check that all record types are complete.
26 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
27 compare alias sets for types w/o alias sets.
29 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
31 * config/sparc/sparc.md (umulxhi_vis): Move around.
32 (*umulxhi_sp64): Likewise.
33 (umulxhi_v8plus): Likewise.
34 (xmulx_vis): Likewise.
35 (*xmulx_sp64): Likewise.
36 (xmulx_v8plus): Likewise.
37 (xmulxhi_vis): Likewise.
38 (*xmulxhi_sp64): Likewise.
39 (xmulxhi_v8plus): Likewise.
41 2015-11-20 David Malcolm <dmalcolm@redhat.com>
44 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
45 (class layout): Update comment
46 (layout::print_any_fixits): New method.
47 (layout::move_to_column): New method.
48 (diagnostic_show_locus): Add call to layout.print_any_fixits.
50 2015-11-20 Jakub Jelinek <jakub@redhat.com>
53 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
54 has non-zero bias, subtract it in integer type instead of
55 pointer plus of negated bias.
58 * omp-low.c (expand_simd_clones): Call node->get_body () before
59 allocating stuff in GC.
61 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
63 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
65 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
67 * config/aarch64/aarch64.md (predicated): Copy attribute from
69 * config/arm/arm.md (predicated): Added description.
71 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
73 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
75 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
76 from matching condition.
77 (unaligned_loadhis): Likewise.
78 (unaligned_loadhiu): Likewise.
79 (unaligned_storesi): Likewise.
80 (unaligned_storehi): Likewise.
82 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
85 * config/arm/arm.md (unaligned_loaddi): Delete.
86 (unaligned_storedi): Likewise.
87 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
88 unaligned DImode memory ops. Instead perform two back-to-back
91 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
92 James Norris <jnorris@codesourcery.com>
94 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
95 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
97 2015-11-20 Alan Hayward <alan.hayward@arm.com>
99 PR tree-optimization/68413
100 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
102 (vectorizable_reduction): Use cached base
104 2015-11-20 Tom de Vries <tom@codesourcery.com>
106 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
108 (try_create_reduction_list): Same. Fix typo in dump-file string.
110 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
112 * doc/md.texi (Standard Names): Move entry for addptr3 around,
113 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
114 glitch in entries for cbranch4 and jump.
116 2015-11-20 Tom de Vries <tom@codesourcery.com>
118 PR tree-optimization/68373
119 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
121 (scev_const_prop): ... here.
122 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
123 * tree-parloops.c (try_create_reduction_list): Call
124 final_value_replacement_loop.
126 2015-11-20 Bin Cheng <bin.cheng@arm.com>
128 PR tree-optimization/52272
129 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
130 (struct iv_common_cand_hasher): New struct.
131 (iv_common_cand_hasher::hash): New function.
132 (iv_common_cand_hasher::equal): New function.
133 (struct ivopts_data): New fields, iv_common_cand_tab and
135 (tree_ssa_iv_optimize_init): Initialize above fields.
136 (record_common_cand, common_cand_cmp): New functions.
137 (add_iv_candidate_derived_from_uses): New function.
138 (add_iv_candidate_for_use): Record iv_common_cands derived from
139 iv use in hash table, instead of adding candidates directly.
140 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
141 (record_important_candidates): Add important candidates to iv uses'
142 related_cands. Always keep related_cands for future use.
143 (try_add_cand_for): Use iv uses' related_cands.
144 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
145 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
147 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
149 * config/s390/s390.md ("bswaphi2"): New pattern.
151 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
153 * config/s390/s390.md (GPR1_REGNUM): New constant.
154 ("*trunc<BFP:mode><DFP_ALL:mode>2")
155 ("*trunc<DFP_ALL:mode><BFP:mode>2")
156 ("trunc<BFP:mode><DFP_ALL:mode>2")
157 ("trunc<DFP_ALL:mode><BFP:mode>2")
158 ("*extend<BFP:mode><DFP_ALL:mode>2")
159 ("*extend<DFP_ALL:mode><BFP:mode>2")
160 ("extend<BFP:mode><DFP_ALL:mode>2")
161 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
163 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
164 Sebastian Pop <s.pop@samsung.com>
166 PR tree-optimization/68428
167 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
168 over basic blocks outside the scop.
170 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
171 Sebastian Pop <s.pop@samsung.com>
173 PR tree-optimization/68341
174 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
175 gcc_unreachable and safely fail codegen.
176 (copy_loop_close_phi_args): Do not insert merge phis in a basic
177 block with loop phi nodes.
178 (edge_for_new_close_phis): New.
179 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
181 2015-11-19 Nathan Sidwell <nathan@acm.org>
183 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
184 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
185 (nvptx_declare_objec_name): Likewise.
187 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
189 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
190 (get_false_edge_from_guard_bb): Move...
191 * sese.c (get_false_edge_from_guard_bb)
192 (get_true_edge_from_guard_bb): ... here.
194 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
197 2015-11-18 Alan Modra <amodra@gmail.com>
199 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
203 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
205 * tree.h (desired_pro_or_demotion_p): New function.
206 * tree-vrp.c (simplify_cond_using_ranges): Call it.
208 2015-11-19 Michael Matz <matz@suse.de>
210 * fwprop.c (update_uses): Use flag_checking instead of
213 2015-11-19 David Malcolm <dmalcolm@redhat.com>
215 * doc/gty.texi (Support for inheritance): Fix missing
216 parentheses in example.
218 2015-11-19 Marek Polacek <polacek@redhat.com>
220 PR tree-optimization/68431
221 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
223 2015-11-19 Nathan Sidwell <nathan@acm.org>
225 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
226 atomic_exchange<mode>): Input values can be immediates.
228 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
231 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
233 * configure: Regenerate.
235 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
238 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
239 (DTORS_SECTION_ASM_OP): Likewise.
241 2015-11-19 Jakub Jelinek <jakub@redhat.com>
243 PR rtl-optimization/68376
244 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
245 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
247 2015-11-19 Richard Biener <rguenther@suse.de>
250 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
251 redirect_edge_var_map_destroy.
253 2015-11-19 Jakub Jelinek <jakub@redhat.com>
256 * config/i386/i386.md (simple_return): Disable if
257 ix86_static_chain_on_stack is true.
259 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
262 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
265 2015-11-18 Jeff Law <law@redhat.com>
267 PR tree-optimization/68198
268 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
269 between threading a multi-way branch and a thread path that contains
270 a multi-way branch. Disallow the case where a path contains a
271 multi-way branch and does not thread a multi-way branch.
272 (thread_through_all_blocks): Update comment.
274 2015-11-18 Joseph Myers <joseph@codesourcery.com>
277 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
278 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
279 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
280 functions before defining as macros.
282 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
284 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
285 (nvptx_record_offload_symbol): Remove code compensating for lack
286 of default dimension handling.
287 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
289 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
291 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
292 type to bool for early exit.
293 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
295 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
296 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
297 predecessor dominates the other.
298 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
299 element is not found it returns -1.
300 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
301 out early when codegen fails.
302 (graphite_regenerate_ast_isl): Remove codegen region when pending
303 phis could not be generated.
305 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
307 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
309 (class translate_isl_ast_to_gimple): Indentation.
310 (translate_pending_phi_nodes): Comment.
311 (add_parameters_to_ivs_params): Moved from sese.c inside class
312 translate_isl_ast_to_gimple.
313 (get_max_schedule_dimensions): Same.
314 (generate_isl_context): Same.
315 (extend_schedule): Same.
316 (generate_isl_schedule): Same.
318 (scop_to_isl_ast): Same.
319 (is_valid_rename): Same.
321 (get_rename_from_scev): Same.
322 (get_def_bb_for_const): Same.
323 (get_new_name): Same.
324 (collect_all_ssa_names): Same.
325 (copy_loop_phi_args): Same.
326 (copy_loop_phi_nodes): Same.
327 (copy_loop_close_phi_args): Same.
328 (copy_loop_close_phi_nodes): Same.
329 (copy_cond_phi_args): Same.
330 (copy_cond_phi_nodes): Same.
331 (graphite_copy_stmts_from_block): Same.
332 (copy_bb_and_scalar_dependences): Same.
333 (add_phi_arg_for_new_expr): Same.
336 (set_rename_for_each_def): Same.
337 (gsi_insert_earliest): Same.
338 (rename_all_uses): Same.
339 (codegen_error_p): Same.
340 (print_isl_ast_node): Same.
341 (translate_isl_ast_for_loop): Call function codegen_error_p.
342 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
343 (translate_isl_ast_node_user): Make nb_loops const and release
345 (get_true_edge_from_guard_bb): Move all free-functions early.
346 (get_false_edge_from_guard_bb): Same.
347 (bb_contains_loop_close_phi_nodes): Same.
348 (bb_contains_loop_phi_nodes): Same.
349 (is_loop_closed_ssa_use): Same.
350 (number_of_phi_nodes): Same.
351 (phi_uses_name): Same.
352 (later_of_the_two): Same.
353 (substitute_ssa_name):
356 (get_loop_init_value): Same.
357 (find_init_value): Same.
358 (find_init_value_close_phi): Same.
359 (ast_build_before_for): Same.
360 (graphite_regenerate_ast_isl): Formatting changes.
361 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
362 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
364 (gsi_insert_earliest): Same.
365 (collect_all_ssa_names): Same.
366 (rename_all_uses): Same.
368 (get_def_bb_for_const): Same.
369 (copy_loop_phi_nodes): Same.
370 (copy_loop_close_phi_args): Same.
371 (copy_loop_close_phi_nodes): Same.
372 (copy_cond_phi_args): Same.
373 (copy_cond_phi_nodes): Same.
374 (set_rename_for_each_def): Same.
375 (graphite_copy_stmts_from_block): Same.
376 (copy_bb_and_scalar_dependences): Same.
377 (if_region_set_false_region): Same.
378 (scev_analyzable_p): Same.
379 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
381 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
383 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
384 commit from r125920 for FreeBSD.
386 2015-11-18 Jason Merrill <jason@redhat.com>
388 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
390 (add_finalizer): Split out from ggc_internal_alloc.
391 (ggc_handle_finalizers): Run finalizers for the current depth.
392 (init_ggc, ggc_pch_read): Reserve space for finalizers.
394 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
397 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
400 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
402 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
403 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
405 * doc/avr-mmcu.texi: Regenerate.
407 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
409 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
410 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
411 (struct bb_sese): New struct.
412 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
413 (BB_GET_SESE, BB_SET_SESE): Define.
414 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
415 (nvptx_find_sese): New.
416 (nvptx_neuter_pars): Find SESE regions when optimizing.
418 2015-11-18 Alan Modra <amodra@gmail.com>
420 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
423 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
426 * hash-set.h (hash_set::traverse): Expand Key typedef.
428 2015-11-18 Martin Liska <mliska@suse.cz>
430 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
433 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
435 * config/nvptx/nvptx.c (global_lock_var): New.
436 (nvptx_global_lock_addr): New.
437 (nvptx_lockless_update): Recomment and adjust for clarity.
438 (nvptx_lockfull_update): New.
439 (nvptx_reduction_update): New.
440 (nvptx_goacc_reduction_fini): Call it.
442 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
444 * regrename.h (struct du_head): Add target_data_1 and target_data_2
446 * regrename.c (create_new_chain): Clear entire struct after allocating.
448 * config/i386/i386.opt (mmitigate-rop): New option.
449 * doc/invoke.texi (mmitigate-rop): Document.
450 * config/i386/i386.c: Include "regrename.h".
451 (ix86_rop_should_change_byte_p, reg_encoded_number,
452 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
454 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
455 * config/i386/i386.md (attr "modrm_class"): New.
456 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
457 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
458 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
460 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
463 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
465 2015-11-18 Jakub Jelinek <jakub@redhat.com>
467 PR tree-optimization/68157
468 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
469 pow_stmt or mul_stmt from stmt's uid.
470 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
472 2015-11-18 Martin Liska <mliska@suse.cz>
474 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
476 2015-11-18 Martin Liska <mliska@suse.cz>
478 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
479 Fix GNU coding style.
480 (find_def_preds): Use auto_vec.
481 (destroy_predicate_vecs): Change signature of the function.
482 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
484 (simplify_preds_4): Use destroy_predicate_vecs instread of
485 just releasing preds vector.
486 (normalize_preds): Likewise.
487 (is_use_properly_guarded): Use new signature of
488 destroy_predicate_vecs.
489 (find_uninit_use): Likewise.
491 2015-11-18 Richard Biener <rguenther@suse.de>
493 PR tree-optimization/67790
494 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
495 IL rewrite for MINUS_EXPR reductions, rename back to ...
496 (vect_is_simple_reduction): ... this, removing the wrapper.
497 (vect_force_simple_reduction): Adjust.
498 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
499 reductions and make use if reduc_index in all places. For
500 the final reduction of MINUS_EXPR use PLUS_EXPR.
502 2015-11-18 Alan Modra <amodra@gmail.com>
504 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
506 * configure: Regenerate.
508 2015-11-17 Tom de Vries <tom@codesourcery.com>
510 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
512 2015-11-17 Tom de Vries <tom@codesourcery.com>
514 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
515 uses of ssa_name with constant.
517 2015-11-17 Tom de Vries <tom@codesourcery.com>
519 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
522 2015-11-17 Tom de Vries <tom@codesourcery.com>
524 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
525 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
526 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
528 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
530 * regrename.c (regrename_find_superclass): New function, code moved
532 (rename_chains): ... here. Call it.
533 * regrename.h (regrename_find_superclass): Declare.
535 * regrename.c (record_out_operands): Terminate earlyclobbered
539 * regrename.c (record_operand_use): Keep track of failed operands
540 and stop appending if we see any.
541 * regrename.h (struct operand_rr_info): Add a failed field and shrink
544 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
547 * doc/extend.texi (Common Function Attributes) [visibility]:
548 Add cross-references to matching variable and type attributes.
549 (Common Variable Attributes) [visibility]: Add missing entry.
551 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
553 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
554 entries that map directly to optabs.
556 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
558 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
559 entries that map directly to optabs.
561 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
563 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
564 * internal-fn.c (direct_internal_fn_array): Update accordingly.
565 * tree-vectorizer.h (vectorizable_function): Delete.
566 * tree-vect-stmts.c: Include internal-fn.h.
567 (vectorizable_internal_function): New function.
568 (vectorizable_function): Inline into...
569 (vectorizable_call): ...here. Explicitly reject calls that read
570 from or write to memory. Try using an internal function before
571 falling back on the old vectorizable_function behavior.
573 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
575 * target.def (builtin_vectorized_function): Take a combined_fn (in
576 the form of an unsigned int) rather than a function decl.
577 (builtin_md_vectorized_function): New.
578 * targhooks.h (default_builtin_vectorized_function): Replace the
579 fndecl argument with an unsigned int.
580 (default_builtin_md_vectorized_function): Declare.
581 * targhooks.c (default_builtin_vectorized_function): Replace the
582 fndecl argument with an unsigned int.
583 (default_builtin_md_vectorized_function): New function.
584 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
586 * doc/tm.texi: Regenerate.
587 * tree-vect-stmts.c (vectorizable_function): Update call to
588 builtin_vectorized_function, also passing internal functions.
589 Call builtin_md_vectorized_function for target-specific builtins.
590 * config/aarch64/aarch64-protos.h
591 (aarch64_builtin_vectorized_function): Replace fndecl argument
592 with an unsigned int.
593 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
594 (aarch64_builtin_vectorized_function): Update after above changes.
596 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
597 fndecl argument with an unsigned int.
598 * config/arm/arm-builtins.c: Include case-cfn-macros.h
599 (arm_builtin_vectorized_function): Update after above changes.
601 * config/i386/i386.c: Include case-cfn-macros.h
602 (ix86_veclib_handler): Take a combined_fn rather than a
604 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
605 mathfn_built_in rather than calling builtin_decl_implicit directly.
606 (ix86_builtin_vectorized_function) Update after above changes.
608 * config/rs6000/rs6000.c: Include case-cfn-macros.h
609 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
610 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
611 than calling builtin_decl_implicit directly.
612 (rs6000_builtin_vectorized_function): Update after above changes.
613 Use CASE_CFN_*. Move BUILT_IN_MD to...
614 (rs6000_builtin_md_vectorized_function): ...this new function.
615 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
617 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
619 * tree-vect-patterns.c: Include internal-fn.h.
620 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
622 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
624 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
625 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
627 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
629 * builtins.c (expand_errno_check, expand_builtin_mathfn)
630 (expand_builtin_mathfn_2): Delete.
631 (expand_builtin): Remove handling of functions with
632 internal function equivalents.
633 * internal-fn.def (SET_EDOM): New internal function.
634 * internal-fn.h (set_edom_supported_p): Declare.
635 * internal-fn.c (expand_SET_EDOM): New function.
636 (set_edom_supported_p): Likewise.
637 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
638 Rewrite comment at head of file.
639 (is_call_dce_candidate): Rename to...
640 (can_test_argument_range): ...this. Don't check gimple_call_lhs
641 or gimple_call_builtin_p here.
642 (edom_only_function): New function.
643 (shrink_wrap_one_built_in_call_with_conds): New function, split out
645 (shrink_wrap_one_built_in_call): ...here.
646 (can_use_internal_fn, use_internal_fn): New functions.
647 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
648 for calls that have an lhs.
649 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
650 (pass_call_cdce::execute): Skip blocks that are optimized for size.
651 Check gimple_call_builtin_p here. Use can_use_internal_fn for
653 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
656 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
658 * builtins.h (called_as_built_in): Declare.
659 * builtins.c (called_as_built_in): Make external.
660 * internal-fn.h (expand_internal_call): Define a variant that
661 specifies the internal function explicitly.
662 * internal-fn.c (expand_load_lanes_optab_fn)
663 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
664 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
665 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
666 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
667 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
668 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
669 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
670 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
671 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
672 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
673 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
674 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
675 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
677 (internal_fn_expanders): Update prototype.
678 (expand_internal_call): Define a variant that specifies the
679 internal function explicitly. Use it to implement the previous
681 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
682 functions as calls to internal functions.
684 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
686 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
687 (generated_files): Likewise.
688 (s-cfn-operators, cfn-operators.pd): New rules.
689 (s-match): Depend on cfn-operators.pd.
690 * gencfn-macros.c: Expand comment to describe -o behavior.
691 (print_define_operator_list): New function.
692 (main): Accept -o. Call print_define_operator_list.
693 * genmatch.c (main): Add the current directory to the include path.
694 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
697 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
699 * doc/match-and-simplify.texi: Document the "null" identifier.
700 * genmatch.c (id_base::NULL_ID): New kind.
701 (null_id): New variable.
702 (get_operator): Add a parameter that says whether null identifiers
704 (contains_id): New function.
705 (lower_for): Skip substitutions that would have a null_id in
706 either the match or the result.
707 (parser::parse_for): Allow the null identifier to be used.
708 (parser::parse_operator_list): Likewise.
709 (main): Initialize null_id.
711 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
713 * match.pd: Use HYPOT and COS rather than hypot and cos.
714 Use CASE_CFN_* macros. Guard log/exp folds with
716 * genmatch.c (internal_fn): New enum.
717 (fn_id::fn): Change to an unsigned int.
718 (fn_id::fn_id): Accept internal_fn too.
719 (add_builtin): Rename to...
720 (add_function): ...this and turn into a template.
721 (get_operator): Only try one variation if the original name fails.
722 Only add _EXPR if the original name was all lower case.
723 Try converting internal and built-in function names to their
725 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
726 (dt_simplify::gen_1): Likewise.
727 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
728 and get_call_combined_fn for generic.
729 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
730 (decision_tree::gen): Likewise.
731 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
732 Use add_function rather than add_builtin. Register internal
734 * generic-match-head.c: Include case-cfn-macros.h.
735 * gimple-fold.c (replace_stmt_with_simplification): Use
736 gimple_call_combined_fn to test whether we can keep an
738 * gimple-match.h (code_helper): Replace built_in_function
740 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
741 and case-fn-macros.h.
742 (gimple_resimplify1): Use fold_const_call.
743 (gimple_resimplify2, gimple_resimplify3): Likewise.
744 (build_call_internal, build_call): New functions.
745 (maybe_push_res_to_seq): Use them.
746 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
747 rather than a built-in function.
748 * tree.h (build_call_expr_internal_loc): Declare.
749 (maybe_build_call_expr_loc): Likewise.
750 * tree.c (build_call_expr_internal_loc_array): New function.
751 (maybe_build_call_expr_loc): Likewise.
753 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
755 * builtins.h (mathfn_built_in): Add a variant that takes
757 * builtins.c: Include case-cfn-macros.h.
758 (CASE_MATHFN): Use CASE_CFN_*.
759 (CASE_MATHFN_REENT): Use CFN_ codes.
760 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
761 argument with a combined_fn.
762 (mathfn_built_in): Add a variant that takes a combined_fn.
763 (expand_builtin_int_roundingfn_2): Update callers accordingly.
764 (fold_builtin_sincos, fold_builtin_classify): Likewise.
766 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
768 * tree-vect-patterns.c: Include case-cfn-macros.h.
769 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
771 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
773 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
774 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
775 (pass_cse_sincos::execute): Likewise.
777 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
779 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
780 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
781 (decrement_power, acceptable_pow_call): Likewise.
782 (attempt_builtin_copysign): Likewise.
784 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
786 * tree-vrp.c: Include case-cfn-macros.h.
787 (extract_range_basic): Switch on combined_fn rather than handling
788 built-in functions and internal functions separately.
790 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
792 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
793 than a built_in_function.
794 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
796 (integer_valued_real_call_p): Likewise.
797 * fold-const.c: Include case-cfn-macros.h
798 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
799 (negate_expr_p): Update accordingly.
800 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
802 (integer_valued_real_call_p): Likewise.
803 (tree_invalid_nonnegative_warnv_p): Update accordingly.
804 (integer_valued_real_p): Likewise.
805 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
806 to tree_call_nonnegative_warnv_p.
807 (gimple_call_integer_valued_real_p): Likewise
808 integer_valued_real_call_p.
809 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
810 (backprop::process_builtin_call_use): Extend to combined_fn.
811 (strip_sign_op_1): Likewise.
812 (backprop::process_use): Don't check for built-in calls here.
813 (backprop::execute): Likewise.
814 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
816 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
818 * fold-const-call.h (fold_const_call): Replace built_in_function
819 arguments with combined_fn arguments.
820 * fold-const-call.c: Include case-cfn-macros.h.
821 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
822 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
823 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
824 built_in_function arguments with combined_fn arguments.
825 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
826 (fold_builtin_3): Update calls to fold_const_call.
828 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
830 * Makefile.in (HASH_TABLE_H): Add GGC_H.
831 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
832 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
833 (build/gencfn-macros$(build_exeext): New rules.
834 (genprogerr): Add cfn-macros.
835 * hash-set.h (hash_set): Use the traits value_type as the key.
836 * gencfn-macros.c: New file.
838 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
840 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
841 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
842 * builtins.c (associated_internal_fn): Handle them.
844 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
846 * builtins.h (associated_internal_fn): Declare.
847 (replacement_internal_fn): Likewise.
848 * builtins.c: Include internal-fn.h
849 (associated_internal_fn, replacement_internal_fn): New functions.
850 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
851 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
852 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
853 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
854 (LDEXP): New functions.
855 * internal-fn.c: Include recog.h.
856 (unary_direct, binary_direct): New macros.
857 (expand_direct_optab_fn): New function.
858 (expand_unary_optab_fn): New macro.
859 (expand_binary_optab_fn): Likewise.
860 (direct_unary_optab_supported_p): Likewise.
861 (direct_binary_optab_supported_p): Likewise.
863 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
865 * coretypes.h (tree_pair): New type.
866 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
867 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
868 * internal-fn.h (direct_internal_fn_info): New structure.
869 (direct_internal_fn_array): Declare.
870 (direct_internal_fn_p, direct_internal_fn): New functions.
871 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
872 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
873 (mask_store_direct, store_lanes_direct): New macros.
874 (direct_internal_fn_array) New array.
875 (get_multi_vector_move): Return the optab handler without asserting
876 that it is available.
877 (expand_LOAD_LANES): Rename to...
878 (expand_load_lanes_optab_fn): ...this and add an optab argument.
879 (expand_STORE_LANES): Rename to...
880 (expand_store_lanes_optab_fn): ...this and add an optab argument.
881 (expand_MASK_LOAD): Rename to...
882 (expand_mask_load_optab_fn): ...this and add an optab argument.
883 (expand_MASK_STORE): Rename to...
884 (expand_mask_store_optab_fn): ...this and add an optab argument.
885 (direct_internal_fn_types, direct_optab_supported_p)
886 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
887 (direct_internal_fn_supported_p): New functions.
888 (direct_mask_load_optab_supported_p): New macro.
889 (direct_load_lanes_optab_supported_p): Likewise.
890 (direct_mask_store_optab_supported_p): Likewise.
891 (direct_store_lanes_optab_supported_p): Likewise.
893 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
895 * tree-core.h (internal_fn): Move immediately after the definition
896 of built_in_function.
897 (combined_fn): New enum.
898 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
899 (internal_fn_p, as_internal_fn): New functions.
900 (get_call_combined_fn, combined_fn_name): Declare.
901 * tree.c (get_call_combined_fn): New function.
902 (combined_fn_name): Likewise.
903 * gimple.h (gimple_call_combined_fn): Declare.
904 * gimple.c (gimple_call_combined_fn): New function.
906 2015-11-17 Martin Sebor <msebor@redhat.com>
909 * cp/init.c (build_new_1): Check for expression constness
912 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
915 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
917 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
918 discussion of the Microsoft structure layout details here from
919 its former home in extend.texi.
920 * doc/extend.texi (x86 Variable Attributes): Replace detailed
921 discussion with pointer to its new location. Add cross-reference
922 to corresponding type attributes.
923 (x86 Type Attributes): Add cross-references to command-line options
924 and variable attributes.
926 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
929 * targhooks.c (default_get_mask_mode): Filter out
930 scalar modes returned by mode_for_vector.
932 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
935 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
936 offset from dstbase and use it appropriately in
937 adjust_automodify_address.
938 (arm_block_set_aligned_vect): Likewise.
940 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
942 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
943 (MULTILIB_DIRNAMES): Adjust accordingly.
945 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
947 * config/aarch64/aarch64-cores.def (cortex-a35): New.
948 * config/aarch64/aarch64.c (cortexa35_tunings): New.
949 * config/aarch64/aarch64-tune.md: Regenerate.
950 * doc/invoke.texi (-mcpu): Add Cortex-A35
952 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
955 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
957 * config/i386/sse.md (*mov<mode>_internal): Always enable
958 AVX and SSE unaligned moves for IAMCU.
960 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
962 * tree-if-conv.c: Include varasm.h
963 (ref_DR_map): Define.
964 (baseref_DR_map): Like wise
965 (struct ifc_dr): Add new tree predicate field.
966 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
967 (memrefs_read_or_written_unconditionally): Remove.
968 (write_memrefs_written_at_least_once): Remove.
969 (ifcvt_memrefs_wont_trap): Use hash maps to query
970 unconditional read/written information.
971 (if_convertible_loop_p_1): Initialize hash maps and predicates
972 before hashing data references and delete hashmaps at the end.
974 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
977 * doc/invoke.texi (Optimize Options): Move @end table to the right
980 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
983 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
986 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
988 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
989 128-bit types, just types that fit in a single vector.
990 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
992 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
994 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
995 in the user documentation.
996 (define_peephole2, define_split): Similarly.
998 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
1000 * lto-streamer-out.c (write_global_references): Adjust integer type.
1001 (lto_output_decl_state_refs): Likewise.
1003 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
1005 * config/arm/arm-cores.def (cortex-a35): New.
1006 * config/arm/arm.c (arm_cortex_a35_tune): New.
1007 * config/arm/arm-tables.opt: Regenerate.
1008 * config/arm/arm-tune.md: Regenerate.
1009 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
1010 * config/arm/t-aprofile: Likewise.
1011 * doc/invoke.texi (-mcpu): Likewise.
1013 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
1015 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
1016 and qdf24xx and xgene1 to match -march=armv8-a.
1018 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1020 PR rtl-optimization/68330
1021 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
1022 of LSHIFTRT by a non-zero constant integer.
1024 2015-11-16 Richard Biener <rguenther@suse.de>
1026 PR tree-optimization/68306
1027 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
1028 bogus copying from verify_data_ref_alignment and use continue
1031 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
1032 Kaz Kojima <kkojima@gcc.gnu.org>
1035 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
1037 (*addsi3): Add another insn_and_split variant for reload.
1039 2015-11-16 Richard Biener <rguenther@suse.de>
1042 * cfgexpand.c (pass_expand::execute): Destroy the edge
1043 redirection var map before setting RTL CFG hooks.
1045 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
1047 * config/i386/sse.md (reduc_splus_v8df): Rename to...
1048 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
1050 (reduc_splus_v4df): Rename to...
1051 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
1053 (reduc_splus_v2df): Rename to...
1054 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
1056 (reduc_splus_v16sf): Rename to...
1057 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
1059 (reduc_splus_v8sf): Rename to...
1060 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
1062 (reduc_splus_v4sf): Rename to...
1063 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
1065 (reduc_<code>_<mode>, all 3 variants): Rename each to...
1066 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
1068 (reduc_umin_v8hf): Rename to...
1069 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
1071 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1073 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
1074 without additional conditions.
1075 * doc/extend.texi (@item simd): New.
1077 2015-11-16 Tom de Vries <tom@codesourcery.com>
1079 * passes.c (first_pass_instance): Remove variable.
1080 (execute_todo): Remove setting of first_pass_instance.
1081 * tree-pass.h (first_pass_instance): Remove declaration.
1083 2015-11-16 Tom de Vries <tom@codesourcery.com>
1085 * passes.def: Add arg to pass_ccp pass instantiation.
1086 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
1087 instead of first_pass_instance.
1088 (do_ssa_ccp): Add and handle param nonzero_p.
1089 (pass_ccp::pass_ccp): Initialize nonzero_p.
1090 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
1091 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
1092 (pass_ccp::nonzero_p): New private member.
1094 2015-11-16 Tom de Vries <tom@codesourcery.com>
1096 * passes.def: Add arg to pass_object_sizes pass instantiation.
1097 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
1099 (pass_object_sizes::set_pass_param): New member function. Set
1101 (pass_object_sizes::insert_min_max_p): New private member.
1102 (pass_object_sizes::execute): Use insert_min_max_p instead of
1103 first_pass_instance.
1105 2015-11-16 Tom de Vries <tom@codesourcery.com>
1107 * passes.def: Add arg to pass_dominator pass instantiation.
1108 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
1110 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
1111 may_peel_loop_headers_p.
1112 (pass_dominator::set_pass_param): New member function. Set
1113 may_peel_loop_headers_p.
1114 (pass_dominator::may_peel_loop_headers_p): New private member.
1115 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
1116 first_pass_instance.
1118 2015-11-16 Tom de Vries <tom@codesourcery.com>
1120 * passes.def: Add arg to pass_reassoc pass instantiation.
1121 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
1122 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
1123 of first_pass_instance.
1124 (execute_reassoc): Add and handle insert_powi_p parameter.
1125 (pass_reassoc::insert_powi_p): New private member.
1126 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
1127 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
1128 (pass_reassoc::execute): Call execute_reassoc with extra arg.
1130 2015-11-16 Tom de Vries <tom@codesourcery.com>
1132 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
1133 * gen-pass-instances.awk (handle_line): Same.
1134 * pass_manager.h (class pass_manager): Define and undefine
1136 * passes.c (opt_pass::set_pass_param): New function.
1137 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
1138 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
1139 * tree-pass.h (gimple_opt::set_pass_param): Declare.
1140 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
1141 warn_array_bounds_p parameter.
1142 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
1143 (pass_vrp::set_pass_param): New function.
1144 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
1145 (pass_vrp::warn_array_bounds_p): New private member.
1147 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
1149 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
1150 (output_probe_stack_range): Rotate the loop and simplify.
1152 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
1154 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
1155 (output_probe_stack_range): Rotate the loop and simplify.
1157 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
1159 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
1160 an lea instruction when possible.
1161 (output_adjust_stack_and_probe): Rotate the loop and simplify.
1162 (ix86_emit_probe_stack_range): Adjust.
1163 (output_probe_stack_range): Rotate the loop and simplify.
1165 2015-11-16 Christian Bruel <christian.bruel@st.com>
1167 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
1168 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
1169 with appropriate pragma GCC target.
1171 2015-11-16 Christian Bruel <christian.bruel@st.com>
1174 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
1175 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
1177 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
1179 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
1180 (cortexa57_tunings): Use it.
1182 2015-11-16 Christian Bruel <christian.bruel@st.com>
1185 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
1186 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
1187 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
1189 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
1190 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
1191 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
1192 * doc/extend.texi (-mfpu=): Describe attribute.
1194 2015-11-16 Christian Bruel <christian.bruel@st.com>
1197 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
1198 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
1199 arm_init_neon_builtins.
1200 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
1201 (arm_init_neon_builtins_internal)
1202 (arm_init_crypto_builtins_internal):
1203 Test and set neon_set_p, neon_crypto_set_p.
1204 (neon_set_p, neon_crypto_set_p): New static booleans.
1206 2015-11-16 Christian Bruel <christian.bruel@st.com>
1209 * config/arm/arm.c (arm_fpu_desc): Remove.
1210 (all_fpus): Make global.
1211 (arm_option_override): Use FPU TARGET accessors.
1212 (arm_declare_function_name): Likewise.
1213 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
1214 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
1215 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
1216 (TARGET_NEON): Likewise.
1217 (all_fpus): Declare extern.
1218 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
1219 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
1221 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1224 * sdbout.c: Include emit-rtl.h and function.h.
1226 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
1228 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
1229 Remove support for FreeBSD 5 and earlier.
1231 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1233 * configure: Regenerate.
1234 * configure.ac: Always define ENABLE_OFFLOADING.
1235 * cgraph.c (cgraph_node::create): Adjust.
1236 * gcc.c (process_command): Likewise.
1237 * omp-low.c (create_omp_child_function): Likewise.
1238 (expand_omp_target): Likewise.
1239 * varpool.c (varpool_node::get_create): Likewise.
1241 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1243 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
1244 * df-scan.c (df_get_exit_block_use_set): Adjust.
1245 * except.c (expand_eh_return): Likewise.
1247 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1249 * config/i386/i386.h (TARGET_PECOFF): Remove define.
1250 * defaults.h (TARGET_PECOFF): New default definition.
1251 * varasm.c (handle_vtv_comdat_section): Adjust.
1253 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1255 * defaults.h: New definition of SDB_DEBUGGING_INFO.
1256 * doc/tm.texi: Regenerate.
1257 * doc/tm.texi.in: Adjust.
1258 * final.c (rest_of_clean_state): Remove check if
1259 SDB_DEBUGGING_INFO is defined.
1260 * function.c (number_blocks): Likewise.
1261 * output.h: Likewise.
1262 * sdbout.c: Likewise.
1263 * toplev.c (process_options): Likewise.
1265 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1267 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
1268 (enum sdb_masks): Likewise.
1269 * sdbout.c (plain_type_1): Likewise.
1270 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
1272 2015-11-14 Jakub Jelinek <jakub@redhat.com>
1274 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
1275 internal calls - 0 if ordered simd and 1 for ordered threads simd.
1276 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
1277 argument is 1, replace it with GOMP_ordered_* call instead of removing
1280 2015-11-13 Rich Felker <dalias@libc.org>
1282 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
1283 address loading hack for FDPIC targets.
1285 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
1286 Jeff Law <law@redhat.com>
1288 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
1289 * common.opt (-fsplit-paths): New flag controlling path splitting.
1290 * doc/invoke.texi (fsplit-paths): Document.
1291 * opts.c (default_options_table): Add -fsplit-paths to -O2.
1292 * passes.def: Add split_paths pass.
1293 * timevar.def (TV_SPLIT_PATHS): New timevar.
1294 * tracer.c: Include "tracer.h"
1295 (ignore_bb_p): No longer static.
1296 (transform_duplicate): New function, broken out of tail_duplicate.
1297 (tail_duplicate): Use transform_duplicate.
1298 * tracer.h (ignore_bb_p): Declare
1299 (transform_duplicate): Likewise.
1300 * tree-pass.h (make_pass_split_paths): Declare.
1301 * gimple-ssa-split-paths.c: New file.
1303 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
1304 Marek Polacek <polacek@redhat.com>
1305 Jason Merrill <jason@redhat.com>
1307 * convert.c (maybe_fold_build1_loc): New.
1308 (maybe_fold_build2_loc): New.
1309 (convert_to_pointer_1): Split out from convert_to_pointer.
1310 (convert_to_pointer_nofold): New.
1311 (convert_to_real_1): Split out from convert_to_real.
1312 (convert_to_real_nofold): New.
1313 (convert_to_integer_1): Split out from convert_to_integer.
1314 (convert_to_integer_nofold): New.
1315 (convert_to_complex_1): Split out from convert_to_complex.
1316 (convert_to_complex_nofold): New.
1317 * convert.h: Declare new functions.
1318 * tree-complex.c (create_one_component_var): Break up line to
1319 avoid sequence point issues.
1321 2015-11-13 Jason Merrill <jason@redhat.com>
1323 * fold-const.c (fold_convert_const): Fold changing cv-quals on
1326 * hash-map.h (hash_map::empty): New.
1328 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1330 * gcc/omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
1331 (oacc_loop_fixed_partitions): Correct return type to bool.
1332 (oacc_loop_auto_partitions): New.
1333 (oacc_loop_partition): Take mask argument, call
1334 oacc_loop_auto_partitions.
1335 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
1337 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1339 * config/rs6000/constraints.md (we constraint): New constraint for
1340 64-bit power9 vector support.
1341 (wL constraint): New constraint for the element in a vector that
1342 can be addressed by the MFVSRLD instruction.
1344 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
1346 (convert_int_to_float128): Likewise.
1347 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
1348 hardware support for IEEE 128-bit floating point.
1349 (rs6000_expand_float128_convert): Likewise.
1350 (convert_float128_to_int): Likewise.
1351 (convert_int_to_float128): Likewise.
1353 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
1354 ISA 3.0 hardware IEEE 128-bit floating point.
1355 (UNSPEC_IEEE128_MOVE): Likewise.
1356 (UNSPEC_IEEE128_CONVERT): Likewise.
1357 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
1358 (Ff): Add support for DImode.
1360 (any_fix code iterator): New and updated iterators for IEEE
1361 128-bit floating point hardware support.
1362 (any_float code iterator): Likewise.
1363 (s code attribute): Likewise.
1364 (su code attribute): Likewise.
1365 (az code attribute): Likewise.
1366 (uns code attribute): Likewise.
1367 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
1368 floating point hardware support.
1369 (abs<mode>2, FLOAT128 iterator): Likewise.
1370 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
1371 floating point hardware.
1372 (sub<mode>3, IEEE128 iterator): Likewise.
1373 (mul<mode>3, IEEE128 iterator): Likewise.
1374 (div<mode>3, IEEE128 iterator): Likewise.
1375 (copysign<mode>3, IEEE128 iterator): Likewise.
1376 (sqrt<mode>2, IEEE128 iterator): Likewise.
1377 (neg<mode>2, IEEE128 iterator): Likewise.
1378 (abs<mode>2, IEEE128 iterator): Likewise.
1379 (nabs<mode>2, IEEE128 iterator): Likewise.
1380 (fma<mode>4_hw, IEEE128 iterator): Likewise.
1381 (fms<mode>4_hw, IEEE128 iterator): Likewise.
1382 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
1383 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
1384 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
1385 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
1386 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
1387 (fix_fixuns code attribute): Likewise.
1388 (float_floatuns code attribute): Likewise.
1389 (fix<uns>_<mode>si2_hw): Likewise.
1390 (fix<uns>_<mode>di2_hw): Likewise.
1391 (float<uns>_<mode>si2_hw): Likewise.
1392 (float<uns>_<mode>di2_hw): Likewise.
1393 (xscvqp<su>wz_<mode>): Likewise.
1394 (xscvqp<su>dz_<mode>): Likewise.
1395 (xscv<su>dqp_<mode): Likewise.
1396 (ieee128_mfvsrd): Likewise.
1397 (ieee128_mfvsrwz): Likewise.
1398 (ieee128_mtvsrw): Likewise.
1399 (ieee128_mtvsrd): Likewise.
1400 (trunc<mode>df2_odd): Likewise.
1401 (cmp<mode>_h): Likewise.
1402 (128-bit GPR splitters): Don't split a 128-bit move that is a
1403 direct move between GPR and vector registers using ISA 3.0 direct
1405 (maddld4): Add support for the ISA 3.0 integer multiply-add
1408 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
1410 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
1411 constraint. Disable the VSX<->GPR direct move helpers if we have
1412 the MFVSRLD and MTVSRDD instructions.
1413 (rs6000_secondary_reload_simple_move): Add support for doing
1414 vector direct moves directly without additional scratch registers
1415 if we have ISA 3.0 instructions.
1416 (rs6000_secondary_reload_direct_move): Update comments.
1417 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
1420 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
1421 direct move instructions.
1422 (vsx_movti_64bit): Likewise.
1423 (vsx_extract_<mode>): Likewise.
1425 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
1426 macros for ISA 3.0 direct move instructions.
1427 (TARGET_DIRECT_MOVE_128): Likewise.
1428 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
1431 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
1432 constraints. Update wa documentation to say not to use %x<n> on
1433 instructions that only take Altivec registers.
1435 2015-11-13 David Malcolm <dmalcolm@redhat.com>
1437 * Makefile.in (OBJS): Add gcc-rich-location.o.
1438 * diagnostic.c (diagnostic_append_note): Pass line_table to
1440 (emit_diagnostic): Likewise.
1442 (inform_n): Likewise.
1443 (warning): Likewise.
1444 (warning_at): Likewise.
1445 (warning_n): Likewise.
1446 (pedwarn): Likewise.
1447 (permerror): Likewise.
1449 (error_n): Likewise.
1450 (error_at): Likewise.
1452 (fatal_error): Likewise.
1453 (internal_error): Likewise.
1454 (internal_error_no_backtrace): Likewise.
1455 (source_range::debug): Likewise.
1456 * gcc-rich-location.c: New file.
1457 * gcc-rich-location.h: New file.
1458 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
1459 (warning_at): Likewise.
1460 * gimple.h (gimple_set_block): Use set_block function.
1461 * input.c (dump_line_table_statistics): Dump stats on how many
1462 ranges were optimized vs how many needed ad-hoc table.
1463 (write_digit_row): Add "map" param; use its range_bits
1464 to calculate the per-character offset.
1465 (dump_location_info): Print the range and column bits for each
1466 ordinary map. Use the range bits to calculate the per-character
1467 offset. Pass the map as a new param to the various calls to
1468 write_digit_row. Eliminate uses of
1469 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
1470 * print-tree.c (print_node): Print any source range information.
1471 * rtl-error.c (diagnostic_for_asm): Likewise.
1472 * toplev.c (general_init): Initialize line_table's
1474 * tree-cfg.c (move_block_to_fn): Likewise.
1475 (move_block_to_fn): Likewise.
1476 * tree-inline.c (copy_phis_for_bb): Likewise.
1477 * tree.c (tree_set_block): Likewise.
1478 (get_pure_location): New function.
1479 (set_source_range): New functions.
1480 (set_block): New function.
1481 (set_source_range): New functions.
1482 * tree.h (CAN_HAVE_RANGE_P): New.
1483 (EXPR_LOCATION_RANGE): New.
1484 (EXPR_HAS_RANGE): New.
1485 (get_expr_source_range): New inline function.
1486 (DECL_LOCATION_RANGE): New.
1487 (set_source_range): New decls.
1488 (get_decl_source_range): New inline function.
1490 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
1492 PR tree-optimization/67682
1493 * tree-vect-slp.c (vect_split_slp_store_group): New.
1494 (vect_analyze_slp_instance): During basic block SLP, recurse on
1495 subgroups if vect_build_slp_tree fails after 1st vector.
1497 2015-11-13 Christian Bruel <christian.bruel@st.com>
1500 * config/arm/arm.c (arm_option_override): Move NEON check...
1501 (arm_option_check_internal): here
1502 (arm_file_start): Move .fpu print...
1503 (arm_declare_function_name): here
1504 (arm_option_print): Dump current fpu name.
1505 * config/arm/arm.opt (arm_fpu_index): Mark Save.
1507 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
1508 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1510 * combine.c (subst): Don't substitute or simplify when
1511 handling register-wise widening multiply.
1512 (force_to_mode): Likewise.
1514 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
1516 PR tree-optimization/68264
1517 * tree-call-cdce.c (gen_one_condition): Update commentary.
1518 (gen_conditions_for_pow_int_base): Invert the sense of the tests
1519 passed to gen_one_condition.
1520 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
1521 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
1522 using EDGE_FALSE_VALUE for edges to the call block and
1523 EDGE_TRUE_VALUE for the others.
1525 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1527 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
1530 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1532 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
1534 2015-11-13 Tom de Vries <tom@codesourcery.com>
1536 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
1539 2015-11-13 Tom de Vries <tom@codesourcery.com>
1541 * gen-pass-instances.awk (handle_line): Add args_str variable.
1543 2015-11-13 Martin Liska <mliska@suse.cz>
1545 * graphite-poly.c (free_scop): Release scop->drs vector.
1546 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
1548 (try_generate_gimple_bb): Use vNULL as a default initialization
1551 2015-11-13 Martin Liska <mliska@suse.cz>
1554 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
1555 Replace array initialization (using a variable post-increment)
1556 that possible triggers multiple unsequenced modifications
1557 with a pair of pushes to a vector.
1559 2015-11-13 Richard Biener <rguenther@suse.de>
1561 PR tree-optimization/68306
1562 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
1563 loop related checks ...
1564 (vect_verify_datarefs_alignment): ... here.
1565 (vect_slp_analyze_and_verify_node_alignment): Compute and
1566 verify alignment of the single DR that it matters.
1567 * tree-vect-stmts.c (vectorizable_store): Add an assert.
1568 (vectorizable_load): Add a comment.
1569 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
1570 for determining load cost.
1572 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
1574 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
1575 mix of boolean and integer vectors in a single statement.
1576 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
1577 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
1578 determine constant type.
1579 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
1580 for loop invariants.
1582 2015-11-13 Alan Hayward <alan.hayward@arm.com>
1584 PR tree-optimization/66558
1585 * tree-vect-loop.c (is_integer_induction):Add.
1586 (vectorizable_reduction): Add integer induction checks.
1588 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
1590 Revert [ARM] Remove neon-testgen.ml and generated tests.
1592 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
1594 [ARM] Remove neon-testgen.ml and generated tests.
1596 * config/arm/neon-testgen.ml: Remove.
1598 2015-11-13 Richard Biener <rguenther@suse.de>
1600 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
1601 Signal fatal failure if early checks fail.
1602 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
1603 do not bother testing further vector sizes.
1605 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
1607 * config/i386/predicates.md (misaligned_operand): Return true if
1608 operand is aligned to less than its natural alignmnet.
1610 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
1612 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
1613 (vec_cmpu@var{m}@var{n}): New item.
1614 (vcond@var{m}@var{n}): Specify comparison is signed.
1615 (vcondu@var{m}@var{n}): New item.
1616 (vcond_mask_@var{m}@var{n}): New item.
1617 (maskload@var{m}@var{n}): New item.
1618 (maskstore@var{m}@var{n}): New item.
1620 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
1622 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
1623 types of stored value and storage are compatible.
1625 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
1627 * gcc.c (POST_LINK_SPEC): Define if not already defined.
1628 (LINK_COMMAND_SPEC): Use post_link.
1629 (post_link_spec): New, initialize to POST_LINK_SPEC.
1630 (post_link): Initialize new static spec.
1631 * doc/tm.texi.in (POST_LINK_SPEC): Document.
1632 * doc/tm.texi: Regenerated.
1634 2015-11-13 David Malcolm <dmalcolm@redhat.com>
1637 * Makefile.in (GCC_OBJS): Add spellcheck.o.
1638 (OBJS): Add spellcheck-tree.o.
1639 * gcc.c: Include "spellcheck.h".
1640 (suggest_option): New function.
1641 (driver::handle_unrecognized_options): Call suggest_option to
1642 provide a hint about misspelled options.
1643 * spellcheck.c: Update file comment.
1644 (levenshtein_distance): Convert 4-param implementation from static
1645 to extern scope. Remove note about unit tests from leading
1646 comment for const char * implementation. Move tree
1647 implementation to...
1648 * spellcheck-tree.c: New file.
1649 * spellcheck.h (levenshtein_distance): Add 4-param decl.
1651 2015-11-13 David Malcolm <dmalcolm@redhat.com>
1653 * Makefile.in (OBJS): Add spellcheck.o.
1654 * spellcheck.c: New file.
1655 * spellcheck.h: New file.
1657 2015-11-13 James Bowman <james.bowman@ftdichip.com>
1659 * config/ft32/ft32.md (*sne): New insn pattern.
1661 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
1663 * gcc/cprop.c (is_too_expensive): Remove.
1665 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
1667 * gcc/gcse.h (gcse_or_cprop_is_too_expensive): Declare.
1668 * gcc/gcse.c (is_too_expensive): Rename to ...
1669 (gcse_or_cprop_is_too_expensive): ... this.
1670 Expand warning to add required size of max-gcse-memory.
1671 (one_pre_gcse_pass): Use it.
1672 (one_code_hoisting_pass): Use it.
1673 * gcc/params.def (max-gcse-memory): Increase from 50MB to 128MB.
1675 2015-11-12 James Norris <jnorris@codesourcery.com>
1676 Joseph Myers <joseph@codesourcery.com>
1678 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
1679 GF_OMP_TARGET_KIND_OACC_DECLARE.
1680 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
1681 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
1682 * gimplify.c (oacc_declare_returns): New.
1683 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
1684 (device_resident_p): New function.
1685 (oacc_default_clause): Handle device_resident clause.
1686 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
1687 (gimplify_expr): Handle OACC_DECLARE.
1688 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
1689 * omp-low.c (expand_omp_target): Handle
1690 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
1691 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
1692 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
1693 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
1694 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
1695 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
1696 GOMP_MAP_DEVICE_RESIDENT.
1698 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
1700 [ARM] Remove neon-testgen.ml and generated tests.
1702 * config/arm/neon-testgen.ml: Remove.
1704 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
1706 * config/aarch64/aarch64-cores.def (qdf24xx): New.
1707 * config/aarch64/aarch64-tune.md: Regenerated.
1708 * config/arm/arm-cores.def (qdf24xx): New.
1709 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
1710 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
1711 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
1712 (ARM Options/-mtune): Likewise.
1714 2015-11-12 Martin Liska <mliska@suse.cz>
1716 * config/i386/i386.c (ix86_valid_target_attribute_p):
1717 Finalize options at the of the function.
1718 * gcc.c (driver_get_configure_time_options): Call newly
1719 introduced init_opts_obstack.
1720 * lto-wrapper.c (main): Likewise.
1721 * opts.c (init_opts_obstack): New function.
1722 (init_options_struct): Call newly introduced init_opts_obstack.
1723 * opts.h (init_options_struct): Declare.
1725 2015-11-12 Martin Liska <mliska@suse.cz>
1728 * ipa-icf.c (void sem_item::set_hash): New function.
1729 (sem_function::get_hash): Use renamed m_hash member variable.
1730 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
1731 (sem_item::update_hash_by_local_refs): Likewise.
1732 (sem_variable::get_hash): Use renamed m_hash member variable.
1733 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
1734 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
1735 (sem_item_optimizer::build_graph): As the hash value of an item
1736 is lazy initialized, force the calculation.
1737 * ipa-icf.h (set_hash): Declare new function and rename hash member
1740 2015-11-12 Richard Biener <rguenther@suse.de>
1742 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
1743 Rename to vect_slp_analyze_instance_dependence.
1744 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
1745 Remove WAR special-case.
1746 (vect_slp_analyze_node_dependences): Instead add more specific
1747 code here, not relying on other instances being vectorized.
1748 (vect_slp_analyze_instance_dependence): Adjust accordingly.
1749 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
1750 vertical space in dump files.
1751 (vect_print_slp_tree): Likewise.
1752 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
1753 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
1754 not vectorized stmts until after dependence analysis removed
1755 instances. Merge alignment and dependence checks.
1756 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
1759 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
1761 * config/aarch64/aarch64-protos.h (tune_params): Add new members
1762 "max_case_values" and "cache_line_size".
1763 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
1765 (aarch64_override_options_internal): Tune heuristics based on new
1766 members in "tune_params".
1767 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
1769 2015-11-12 Richard Biener <rguenther@suse.de>
1771 PR tree-optimization/68306
1772 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
1773 relevant and vectorizable checks here.
1774 (vect_verify_datarefs_alignment): Add relevant check here.
1776 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
1778 * gimplify.c (oacc_default_clause): New.
1779 (omp_notice_variable): Call it.
1781 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
1783 PR tree-optimization/68305
1784 * tree-vect-slp.c (vect_get_constant_vectors): Support
1785 COND_EXPR with SSA_NAME as a condition.
1787 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
1789 * config/visium/visium-protos.h (notice_update_cc): Delete.
1790 (print_operand): Likewise.
1791 (print_operand_address): Likewise.
1793 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
1795 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
1796 FUNCTION_VALUE_REGNO_P): Remove.
1797 * config/alpha/alpha-protos.h (function_value): Remove.
1798 * config/alpha/alpha.c (function_value): Rename to...
1799 (alpha_function_value_1): ... this. Make static.
1800 (alpha_function_value, alpha_libcall_value,
1801 alpha_function_value_regno_p): New functions.
1802 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1803 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1805 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
1807 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1808 * config/alpha/alpha.c (alpha_memory_latency): Make static.
1809 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
1810 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1812 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
1815 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
1816 assertion on the CFA register.
1818 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
1820 * expr.c (do_store_flag): Expand vector comparison as
1821 VEC_COND_EXPR if vector comparison is not supported by target.
1823 2015-11-12 Renlin Li <renlin.li@arm.com>
1825 * config/arm/arm.md (addsi3_compare_op2): Make the order of
1826 assembly pattern consistent with constraint order.
1828 2015-11-12 Tom de Vries <tom@codesourcery.com>
1830 * gen-pass-instances.awk (handle_line): Simplify match regexp.
1832 2015-11-12 Tom de Vries <tom@codesourcery.com>
1834 * gen-pass-instances.awk (handle_line): Simplify init of
1837 2015-11-12 Tom de Vries <tom@codesourcery.com>
1839 * gen-pass-instances.awk (handle_line): Rename var where to
1842 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
1844 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
1845 do not expand to rtl.
1847 2015-11-12 Richard Biener <rguenther@suse.de>
1849 PR tree-optimization/58497
1850 * tree-vect-generic.c: Include gimplify.h.
1851 (tree_vec_extract): Lookup constant/constructor DEFs.
1852 (do_cond): Unshare cond.
1854 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
1856 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
1857 combined insn if the alignment of vector mode memory operand
1858 is less than ssememalign.
1860 2015-11-12 Tom de Vries <tom@codesourcery.com>
1862 * gen-pass-instances.awk (handle_line): Print parentheses and
1863 pass_name explicitly.
1865 2015-11-12 Tom de Vries <tom@codesourcery.com>
1867 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
1870 2015-11-12 Tom de Vries <tom@codesourcery.com>
1872 * gen-pass-instances.awk (handle_line): Add comments.
1874 2015-11-12 Tom de Vries <tom@codesourcery.com>
1876 * gen-pass-instances.awk (handle_line): Rename len_of_end to
1879 2015-11-12 Tom de Vries <tom@codesourcery.com>
1881 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
1883 2015-11-12 Tom de Vries <tom@codesourcery.com>
1885 * gen-pass-instances.awk (handle_line): Restructure using early-out.
1887 2015-11-12 Tom de Vries <tom@codesourcery.com>
1889 * gen-pass-instances.awk (handle_line): Unify semicolon use.
1891 2015-11-12 Tom de Vries <tom@codesourcery.com>
1893 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
1895 2015-11-12 Tom de Vries <tom@codesourcery.com>
1897 * gen-pass-instances.awk: Add emacs indent setting.
1899 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1901 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
1903 Move Convert A/(B/C) to (A/B)*C to match.pd.
1904 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
1905 Move Optimize (X & (-A)) / A where A is a power of 2, to
1906 X >> log2(A) to match.pd.
1908 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
1909 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
1910 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
1912 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
1914 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
1916 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
1918 (neon_vst2_lane<mode>): Likewise.
1919 (neon_vld3_lane<mode>): Likewise.
1920 (neon_vst3_lane<mode>): Likewise.
1921 (neon_vld4_lane<mode>): Likewise.
1922 (neon_vst4_lane<mode>): Likewise.
1924 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
1925 Sebastian Pop <s.pop@samsung.com>
1927 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
1928 New member codegen_error
1929 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
1931 (translate_isl_ast_node_user): Early return in case of error.
1932 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
1933 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
1934 (add_parameters_to_ivs_params): Remove macro.
1935 (graphite_regenerate_ast_isl): Add if_region pointer to region.
1936 * graphite-poly.c (new_poly_dr): Remove macro.
1938 (new_gimple_poly_bb): Same.
1939 (free_gimple_poly_bb): Same.
1940 (print_scop_params): Same.
1941 * graphite-poly.h (struct poly_dr): Same.
1942 (struct poly_bb): Add new_bb.
1943 (gbb_from_bb): Remove dead code.
1944 (pbb_from_bb): Same.
1945 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
1946 (parameter_index_in_region): Same.
1947 (find_scop_parameters): Same.
1948 (build_cross_bb_scalars_def): New.
1949 (build_cross_bb_scalars_use): New.
1950 (graphite_find_cross_bb_scalar_vars): New
1951 (try_generate_gimple_bb): Reads and Writes.
1952 (build_alias_set): Move.
1953 (gather_bbs::before_dom_children): Gather bbs visited.
1954 (build_scops): call build_alias_set.
1955 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
1956 (remove_simple_copy_phi): Delete.
1957 (remove_invariant_phi): Delete.
1958 (simple_copy_phi_p): Delete.
1959 (reduction_phi_p): Delete.
1960 (isl_id_for_dr): Remove unused param.
1961 (parameter_index_in_region_1): Remove macro usage.
1962 (set_scop_parameter_dim): Same.
1963 (add_param_constraints): Same.
1964 (add_conditions_to_constraints): Same
1965 (build_scop_iteration_domain): Same.
1966 (pdr_add_alias_set): Comment.
1967 (add_scalar_version_numbers): New.
1968 (build_poly_dr): ISL id.
1969 (build_scop_drs): Move.
1970 (build_poly_sr_1): Same.
1971 (insert_stmts): Remove.
1972 (build_poly_sr): New.
1973 (new_pbb_from_pbb): Delete.
1974 (insert_out_of_ssa_copy_on_edge): Delete.
1975 (create_zero_dim_array): Delete.
1976 (scalar_close_phi_node_p): Delete.
1977 (propagate_expr_outside_region): Delete.
1978 (rewrite_close_phi_out_of_ssa): Delete.
1979 (rewrite_phi_out_of_ssa): Delete.
1980 (rewrite_degenerate_phi): Delete.
1981 (rewrite_reductions_out_of_ssa): Delete.
1982 (rewrite_cross_bb_scalar_dependence): Delete.
1983 (handle_scalar_deps_crossing_scop_limits):
1984 (rewrite_cross_bb_scalar_deps): Delete.
1985 (build_poly_scop): Remove calls to out-of-ssa functions.
1986 * graphite.c (graphite_transform_loops): Early return in case of
1988 * sese.c (debug_rename_map_1): Delete.
1989 (debug_rename_map): Delete.
1990 (sese_record_loop): Remove macro.
1991 (build_sese_loop_nests): Same.
1992 (new_sese_info): Same.
1993 (free_sese_info): Same.
1994 (sese_insert_phis_for_liveouts):
1995 (is_loop_closed_ssa_use): New.
1996 (number_of_phi_nodes): New.
1997 (bb_contains_loop_close_phi_nodes): New.
1998 (bb_contains_loop_phi_nodes): New.
1999 (phi_uses_name): New.
2001 (get_rename): Add old_bb and loop_phi for more precise matching of
2003 (set_rename): Pass region.
2004 (later_of_the_two): New.
2005 (gsi_insert_earliest): New.
2006 (collect_all_ssa_names): New.
2007 (substitute_ssa_name): New.
2008 (rename_all_uses): New.
2009 (get_rename_from_scev): New.
2010 (rename_uses): Pass old_bb for more precise matching of exprs.
2011 (get_def_bb_for_const): New.
2012 (get_new_name): New.
2015 (copy_loop_phi_args): New.
2016 (copy_loop_phi_nodes): New.
2017 (get_loop_init_value): New.
2018 (find_init_value): New.
2019 (find_init_value_close_phi): New.
2020 (copy_loop_close_phi_args): New.
2021 (copy_loop_close_phi_nodes): New.
2022 (add_phi_arg_for_new_expr): New.
2023 (copy_cond_phi_args): New.
2024 (copy_cond_phi_nodes): New.
2025 (copy_phi_nodes): New.
2026 (should_copy_to_new_region): New.
2027 (set_rename_for_each_def): New.
2028 (graphite_copy_stmts_from_block): Early return in case of error.
2029 (copy_bb_and_scalar_dependences): Same.
2030 * sese.h (vec_find): New.
2031 (SESE_PARAMS): Delete.
2032 (SESE_LOOPS): Delete.
2033 (SESE_LOOP_NEST): Delete.
2034 (sese_contains_loop): Remove macro usage.
2035 (sese_nb_params): Same.
2036 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
2038 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
2040 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
2041 isl_union_map_add_map on every pbb->schedule.
2043 2015-11-11 Tom de Vries <tom@codesourcery.com>
2045 * tree-parloops.c (create_parallel_loop): Return void.
2047 2015-11-11 Tom de Vries <tom@codesourcery.com>
2049 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
2050 block only when needed.
2052 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
2054 * config/alpha/alpha-protos.h (print_operand): Remove.
2055 (print_operand_address): Remove.
2056 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
2057 (PRINT_OPERAND_ADDRESS): Remove.
2058 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
2059 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
2060 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
2061 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
2062 (print_operand_address): Rename to...
2063 (alpha_print_operand_address): ...this and make static.
2064 (print_operand): Rename to...
2065 (alpha_print_operand): ...this and make static.
2066 (alpha_print_operand_punct_valid_p): New static function.
2068 2015-11-11 Richard Biener <rguenther@suse.de>
2070 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
2072 (vect_analyze_data_refs_alignment): Make loop vect specific.
2073 (vect_verify_datarefs_alignment): Likewise.
2074 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
2075 Add missing continue.
2076 (vect_compute_data_ref_alignment): Export.
2077 (vect_compute_data_refs_alignment): Merge into...
2078 (vect_analyze_data_refs_alignment): ... this.
2079 (verify_data_ref_alignment): Split out from ...
2080 (vect_verify_datarefs_alignment): ... here.
2081 (vect_slp_analyze_and_verify_node_alignment): New function.
2082 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
2083 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
2084 misplaced checks on alignment.
2085 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
2086 alignment analysis after SLP discovery and do it per instance.
2087 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
2088 bother to re-try using different vector sizes.
2090 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
2091 Cesar Philippidis <cesar@codesourcery.com>
2093 * gimplify.c (enum omp_region_type): Add ORT_ACC,
2094 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
2095 (gimple_add_tmp_var): Add ORT_ACC checks.
2096 (gimplify_var_or_parm_decl): Likewise.
2097 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
2098 (omp_add_variable): Look in outer contexts for openacc and allow
2099 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
2100 (omp_notice_variable, omp_is_private, omp_check_private): Add
2102 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
2103 Permit private openacc reductions.
2104 (gimplify_oacc_cache): Specify ORT_ACC.
2105 (gimplify_omp_workshare): Adjust OpenACC region types.
2106 (gimplify_omp_target_update): Likewise.
2107 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
2108 (lower-rec_input_clauses): Don't handle openacc firstprivate
2110 (lower_omp_target): Emit initializers for openacc firstprivate vars.
2112 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
2115 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
2116 frame pointer for stack checking if non-call exceptions aren't used.
2117 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
2119 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
2121 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
2124 2015-11-11 Martin Liska <mliska@suse.cz>
2125 Richard Biener <rguenther@suse.de>
2127 PR rtl-optimization/68287
2128 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
2131 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
2133 * config/mips/mips.c (mips_breakable_sequence_p): New function.
2134 (mips_break_sequence): New function.
2135 (mips_reorg_process_insns): Use them. Use compact branches in selected
2138 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
2140 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
2142 2015-11-11 Jiong Wang <jiong.wang@arm.com>
2143 Jim Wilson <wilson@gcc.gnu.org>
2146 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
2147 be true and eliminable registers mentioned.
2149 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
2151 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
2153 * config/arc/arc-opts.h: Add ARCv2 CPUs.
2154 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
2155 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
2156 situation, and store instructions with large offsets.
2157 (arc_secondary_reload_conv): New function.
2158 (arc_init): Add ARCv2 options.
2159 (arc_conditional_register_usage): Select the proper register usage
2160 for ARCv2 processors.
2161 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
2163 (arc_compute_function_type): Likewise.
2164 (arc_print_operand): Handle new ARCv2 punctuation characters.
2165 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
2166 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
2168 (arc_reorg, arc_hazard): Use it.
2169 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
2170 (ASM_SPEC): Add ARCv2 options.
2171 (TARGET_NORM): ARC HS has norm instructions by default.
2172 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
2173 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
2174 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
2175 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
2177 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
2178 (TARGET_LP_WR_INTERLOCK): Likewise.
2180 (commutative_binary_mult_comparison_result_used, movsicc_insn)
2181 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
2182 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
2183 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
2185 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
2186 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
2187 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
2188 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
2189 (extzvsi): New pattern.
2190 * config/arc/arc.opt: New ARCv2 options.
2191 * config/arc/arcEM.md: New file.
2192 * config/arc/arcHS.md: Likewise.
2193 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
2195 (Cm2): A signed 9-bit integer constant constraint.
2196 (C62): An unsigned 6-bit integer constant constraint.
2197 (C16): A signed 16-bit integer constant constraint.
2198 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
2199 (short_const_int_operand): New predicate.
2200 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
2201 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
2202 -mcode-density and -mdiv-rem.
2204 2015-11-11 Julia Koval <julia.koval@intel.com>
2206 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
2208 2015-11-11 Julia Koval <julia.koval@intel.com>
2210 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
2212 2015-11-11 Martin Liska <mliska@suse.cz>
2214 * gimple-ssa-strength-reduction.c (create_phi_basis):
2216 * passes.c (release_dump_file_name): New function.
2217 (pass_init_dump_file): Used from this function.
2218 (pass_fini_dump_file): Likewise.
2219 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
2220 * var-tracking.c (vt_initialize): Use pool_allocator.
2222 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
2223 Jiong Wang <jiong.wang@arm.com>
2225 PR tree-optimization/68234
2226 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
2227 node which estimiated to be VR_VARYING initially.
2229 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
2231 * regname.c (scan_rtx_reg): Check the matching number of consecutive
2232 registers when tying chains.
2233 (build_def_use): Move terminated_this_insn earlier in the function.
2235 2015-11-10 Mike Frysinger <vapier@gentoo.org>
2237 * configure.ac: Use = with test and not ==.
2238 * configure: Regenerated.
2240 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
2242 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
2243 machine asserts. Update defines for 64 bit.
2245 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
2248 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
2250 (neon_vst1_lane<mode>): Likewise.
2251 (neon_vld2_lane<mode>): Likewise.
2252 (neon_vst2_lane<mode>): Likewise.
2253 (neon_vld3_lane<mode>): Likewise.
2254 (neon_vst3_lane<mode>): Likewise.
2255 (neon_vld4_lane<mode>): Likewise.
2256 (neon_vst4_lane<mode>): Likewise.
2258 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
2261 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
2262 qualifier_struct_load_store_lane_index.
2263 (arm_storestruct_lane_qualifiers) Likewise.
2264 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
2266 (neon_vst1_lane<mode>) Likewise.
2267 (neon_vld2_lane<mode>) Likewise.
2268 (neon_vst2_lane<mode>) Likewise.
2269 (neon_vld3_lane<mode>) Likewise.
2270 (neon_vst3_lane<mode>) Likewise.
2271 (neon_vld4_lane<mode>) Likewise.
2272 (neon_vst4_lane<mode>) Likewise.
2274 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
2277 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
2278 qualifier_struct_load_store_lane_index.
2279 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2280 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
2281 argument qualifiers.
2282 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
2283 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
2285 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
2287 * config/nvptx/nvptx.opt (moptimize): New flag.
2288 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
2290 (nvptx_optimize_inner): New.
2291 (nvptx_process_pars): Call it when optimizing.
2292 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
2294 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2296 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
2297 Remove redundant code.
2299 2015-11-10 Jeff Law <law@redhat.com>
2301 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
2302 call to output_address.
2303 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
2304 Add unnamed machine_mode argument.
2306 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2308 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
2311 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
2313 * config/i386/i386.md (*movabs<mode>_1): Add explicit
2314 size directives for -masm=intel.
2315 (*movabs<mode>_2): Ditto.
2317 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
2319 * config/i386/i386.c (ix86_print_operand): Remove dead code that
2320 tried to avoid (%rip) for call operands.
2322 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
2324 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
2325 argument. Do not use RIP relative addressing when no_rip is set.
2326 (ix86_print_operand): Update call to ix86_print_operand_address_as.
2327 (ix86_print_operand_address): Ditto.
2328 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
2329 absolute movabs operand 0. Add square braces for -masm=intel.
2330 (*movabs<mode>_2): Ditto for operand 1.
2332 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2334 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
2335 combine_vcvtf2i pattern.
2337 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2339 * config/arm/arm.c (neon_valid_immediate): Remove integer
2340 CONST_DOUBLE handling. It should never occur.
2342 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
2344 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
2345 (ATOMIC_LDOP): Likewise.
2346 (atomic_ldop): Likewise.
2347 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
2348 (ATOMIC_LDOP): Likewise.
2349 (atomic_ldop): Likewise.
2351 2015-11-10 Martin Liska <mliska@suse.cz>
2353 * alloc-pool.h (allocate_raw): New function.
2354 (operator new (size_t, object_allocator<T> &a)): Use the
2355 function instead of object_allocator::allocate).
2357 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2359 * config/i386/sse.md (HALFMASKMODE): New attribute.
2360 (DOUBLEMASKMODE): New attribute.
2361 (vec_pack_trunc_qi): New.
2362 (vec_pack_trunc_<mode>): New.
2363 (vec_unpacks_lo_hi): New.
2364 (vec_unpacks_lo_si): New.
2365 (vec_unpacks_lo_di): New.
2366 (vec_unpacks_hi_hi): New.
2367 (vec_unpacks_hi_<mode>): New.
2369 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2371 * optabs.c (expand_binop_directly): Allow scalar mode for
2372 vec_pack_trunc_optab.
2373 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2374 boolean vector producers from pattern sequence when computing VF.
2375 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
2376 vect_recog_mask_conversion_pattern.
2377 (search_type_for_mask): Choose the smallest
2378 type if different size types are mixed.
2379 (build_mask_conversion): New.
2380 (vect_recog_mask_conversion_pattern): New.
2381 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
2382 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
2384 (vectorizable_conversion): Support boolean vectors.
2385 (free_stmt_vec_info): Allow patterns for statements with no lhs.
2386 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
2388 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2390 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
2391 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
2392 Cast mask to FP mode if required.
2393 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
2394 (vcond_mask_<mode><avx512fmaskmodelower>): New.
2395 (vcond_mask_<mode><sseintvecmodelower>): New.
2396 (vcond_mask_<mode><sseintvecmodelower>): New.
2397 (vcond_mask_v2div2di): New.
2398 (vcond_mask_<mode><sseintvecmodelower>): New.
2399 (vcond_mask_<mode><sseintvecmodelower>): New.
2401 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2403 * optabs-query.h (get_vcond_mask_icode): New.
2404 * optabs-tree.c (expand_vec_cond_expr_p): Use
2405 get_vcond_mask_icode for VEC_COND_EXPR with mask.
2406 * optabs.c (expand_vec_cond_mask_expr): New.
2407 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
2408 * optabs.def (vcond_mask_optab): New.
2409 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
2410 generate redundant comparison for COND_EXPR.
2411 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
2413 (vectorizable_condition): Likewise.
2414 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
2415 cond_exp with no embedded comparison.
2416 (vect_build_slp_tree_1): Likewise.
2418 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2420 * config/i386/sse.md (maskload<mode>): Rename to ...
2421 (maskload<mode><sseintvecmodelower>): ... this.
2422 (maskstore<mode>): Rename to ...
2423 (maskstore<mode><sseintvecmodelower>): ... this.
2424 (maskload<mode><avx512fmaskmodelower>): New.
2425 (maskstore<mode><avx512fmaskmodelower>): New.
2427 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2429 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
2430 (expand_MASK_STORE): Adjust to maskstore optab changes.
2431 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
2432 Adjust to maskload, maskstore optab changes.
2433 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
2434 * optabs.def (maskload_optab): Transform into convert optab.
2435 (maskstore_optab): Likewise.
2436 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
2437 can_vec_mask_load_store_p signature change.
2438 (predicate_mem_writes): Use boolean mask.
2439 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
2440 can_vec_mask_load_store_p signature change. Allow invariant masks.
2441 (vectorizable_operation): Ignore type precision for boolean vectors.
2443 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2445 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
2446 (const_vector_mask_from_tree): New.
2447 (const_vector_from_tree): Use const_vector_mask_from_tree
2448 for boolean vectors.
2449 * optabs-query.h (get_vec_cmp_icode): New.
2450 * optabs-tree.c (expand_vec_cmp_expr_p): New.
2451 * optabs-tree.h (expand_vec_cmp_expr_p): New.
2452 * optabs.c (vector_compare_rtx): Add OPNO arg.
2453 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
2454 (expand_vec_cmp_expr): New.
2455 * optabs.def (vec_cmp_optab): New.
2456 (vec_cmpu_optab): New.
2457 * optabs.h (expand_vec_cmp_expr): New.
2458 * tree-vect-generic.c (expand_vector_comparison): Add vector
2459 comparison optabs check.
2460 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
2461 operations for VF. Add mask type computation.
2462 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
2463 (vectorizable_comparison): New.
2464 (vect_analyze_stmt): Add vectorizable_comparison.
2465 (vect_transform_stmt): Likewise.
2466 (vect_init_vector): Support boolean vector invariants.
2467 (vect_get_vec_def_for_operand): Add VECTYPE arg.
2468 (vectorizable_condition): Directly provide vectype for invariants
2470 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
2471 (enum vect_var_kind): Add vect_mask_var.
2472 (enum stmt_vec_info_type): Add comparison_vec_info_type.
2473 (vectorizable_comparison): New.
2474 (vect_get_vec_def_for_operand): Add VECTYPE arg.
2475 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
2476 (vect_create_destination_var): Likewise.
2477 * tree-vect-patterns.c (check_bool_pattern): Check fails
2478 if we can vectorize comparison directly.
2479 (search_type_for_mask): New.
2480 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
2481 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
2482 comparison statements.
2483 (vect_get_constant_vectors): Support boolean vector constants.
2484 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
2485 (ix86_expand_int_vec_cmp): New.
2486 (ix86_expand_fp_vec_cmp): New.
2487 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
2488 op_true and op_false.
2489 (ix86_int_cmp_code_to_pcmp_immediate): New.
2490 (ix86_fp_cmp_code_to_pcmp_immediate): New.
2491 (ix86_cmp_code_to_pcmp_immediate): New.
2492 (ix86_expand_mask_vec_cmp): New.
2493 (ix86_expand_fp_vec_cmp): New.
2494 (ix86_expand_int_sse_cmp): New.
2495 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
2496 (ix86_expand_int_vec_cmp): New.
2497 (ix86_get_mask_mode): New.
2498 (TARGET_VECTORIZE_GET_MASK_MODE): New.
2499 * config/i386/sse.md (avx512fmaskmodelower): New.
2500 (vec_cmp<mode><avx512fmaskmodelower>): New.
2501 (vec_cmp<mode><sseintvecmodelower>): New.
2502 (vec_cmpv2div2di): New.
2503 (vec_cmpu<mode><avx512fmaskmodelower>): New.
2504 (vec_cmpu<mode><sseintvecmodelower>): New.
2505 (vec_cmpuv2div2di): New.
2507 2015-11-10 Richard Biener <rguenther@suse.de>
2509 PR tree-optimization/68240
2510 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
2512 (visit_phi): For PHIs with just a single executable edge
2513 take its value directly.
2514 (expressions_equal_p): Handle VN_TOP properly.
2516 2015-11-10 Richard Biener <rguenther@suse.de>
2518 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
2519 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
2522 2015-11-10 Richard Biener <rguenther@suse.de>
2524 PR tree-optimization/56118
2525 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
2526 cost favor vectorized version.
2528 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2530 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
2531 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
2532 (neg_not_op): New code attribute.
2534 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2536 * ifcvt.c (noce_try_inverse_constants): New function.
2537 (noce_process_if_block): Call it.
2538 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
2539 * optabs.def (negcc_optab, notcc_optab): Declare.
2540 * optabs.c (emit_conditional_neg_or_complement): New function.
2541 * doc/tm.texi (Standard Names): Document negcc, notcc names.
2543 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2545 PR rtl-optimization/68236
2546 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
2547 if insn_queue doesn't exist.
2548 (haifa_sched_finish): Reset insn_queue to NULL.
2550 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
2552 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
2553 (build_def_use): Initialize terminated_this_insn.
2554 (find_best_rename_reg): Pick and check register from the tied chain.
2555 (regrename_do_replace): Mark head as renamed.
2556 (struct du_head *terminated_this_insn). New static variable.
2557 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
2558 * regrename.h (struct du_head): Add tied_chain, renamed members.
2560 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2563 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
2566 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2569 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
2570 not promote the mode for aggregate types.
2572 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
2574 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
2575 * omp-low.c (build_oacc_routine_dims): New.
2577 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2579 * config/rs6000/constraints.md (wF constraint): New constraints
2580 for power9/toc fusion.
2581 (wG constraint): Likewise.
2583 * config/rs6000/predicates.md (u6bit_cint_operand): New
2584 predicate, recognize 0..63.
2585 (upper16_cint_operand): New predicate for power9 and toc fusion.
2586 (fpr_reg_operand): Likewise.
2587 (toc_fusion_or_p9_reg_operand): Likewise.
2588 (toc_fusion_mem_raw): Likewise.
2589 (toc_fusion_mem_wrapped): Likewise.
2590 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
2592 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
2594 (fusion_addis_mem_combo_load): Add support for power9 fusion of
2595 floating point loads, floating point stores, and gpr stores.
2596 (fusion_addis_mem_combo_store): Likewise.
2597 (fusion_offsettable_mem_operand): Likewise.
2599 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
2600 (emit_fusion_load_store): Likewise.
2601 (fusion_p9_p): Likewise.
2602 (expand_fusion_p9_load): Likewise.
2603 (expand_fusion_p9_store): Likewise.
2604 (emit_fusion_p9_load): Likewise.
2605 (emit_fusion_p9_store): Likewise.
2606 (fusion_wrap_memory_address): Likewise.
2608 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
2609 elements for power9 fusion.
2610 (rs6000_debug_print_mode): Rework debug information to print more
2611 information about fusion.
2612 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
2613 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
2614 offsettable memory address.
2615 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
2616 (emit_fusion_gpr_load): Move most of the code from
2617 emit_fusion_gpr_load into emit_fusion-addis that handles both
2618 power8 and power9 fusion.
2619 (emit_fusion_addis): Likewise.
2620 (emit_fusion_load_store): Likewise.
2621 (fusion_wrap_memory_address): Add support for TOC fusion.
2622 (fusion_split_address): Likewise.
2623 (fusion_p9_p): Add support for power9 fusion.
2624 (expand_fusion_p9_load): Likewise.
2625 (expand_fusion_p9_store): Likewise.
2626 (emit_fusion_p9_load): Likewise.
2627 (emit_fusion_p9_store): Likewise.
2629 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
2630 new instructions in ISA 3.0.
2631 (TARGET_CTZ): Likewise.
2632 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
2633 (TARGET_TOC_FUSION_FP): Likewise.
2635 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
2637 (UNSPEC_FUSION_ADDIS): Likewise.
2638 (QHSI mode iterator): New iterator for power9 fusion.
2639 (GPR_FUSION): Likewise.
2640 (FPR_FUSION): Likewise.
2641 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
2642 (umod<mode>3): Likewise.
2643 (divmod peephole): Likewise.
2644 (udivmod peephole): Likewise.
2645 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
2647 (ctz<mode>2_h): Likewise.
2648 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
2649 (ashdi3_extswsli_dot): Likewise.
2650 (ashdi3_extswsli_dot2): Likewise.
2651 (power9 fusion splitter): New power9/toc fusion support.
2652 (toc_fusionload_<mode>): Likewise.
2653 (toc_fusionload_di): Likewise.
2654 (fusion_gpr_load_<mode>): Update predicate function.
2655 (power9 fusion peephole2s): New power9/toc fusion support.
2656 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
2657 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
2658 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
2659 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
2660 (fusion_p9_<mode>_constant): Likewise.
2662 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
2664 * optabs.c (prepare_libcall_arg): New function.
2665 (expand_fixed_convert): Add call to prepare_libcall_arg.
2667 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
2669 * sched-int.h (dump_rgn_dependencies_dot): Declare
2670 * sched-rgn.c (dump_rgn_dependencies_dot): New function
2671 * print-rtl.h (print_insn): Add prototype
2673 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
2674 * common.opt (-fsched-verbose): Set default value to 1.
2675 * invoke.texi (-fsched-verbose): Update the option's description.
2677 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2679 * config/visium/visium.h (PRINT_OPERAND): Delete.
2680 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
2681 (PRINT_OPERAND_ADDRESS): Likewise.
2682 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
2684 (visium_print_operand_punct_valid_p): ...this. New function.
2685 (TARGET_PRINT_OPERAND): Define to...
2686 (print_operand): Rename to...
2687 (visium_print_operand): ...this.
2688 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
2689 (visium_output_address): Rename to...
2690 (visium_print_operand_address): ...this.
2691 (print_operand_address): Delete.
2693 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2696 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
2697 Check that the type of the first operand is an aggregate type.
2699 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
2701 * omp-low.c: Fix some OpenACC comment typos.
2702 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
2703 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
2704 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
2706 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
2708 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
2710 2015-11-09 Jeff Law <law@redhat.com>
2712 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
2713 being in gimple/ssa form. Remove redundant check for SSA_NAME.
2716 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2717 Peter Bergner <bergner@vnet.ibm.com>
2719 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
2721 (-mpower9-vector): Likewise.
2722 (-mpower9-dform): Likewise.
2723 (-mpower9-minmax): Likewise.
2724 (-mtoc-fusion): Likewise.
2725 (-mmodulo): Likewise.
2726 (-mfloat128-hardware): Likewise.
2728 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
2729 mask for ISA 3.0 (power9).
2730 (POWERPC_MASKS): Add new ISA 3.0 switches.
2731 (power9 cpu): Add power9 cpu.
2733 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
2734 (ASM_CPU_SPEC): Likewise.
2735 (EXTRA_SPECS): Likewise.
2737 * config/rs6000/rs6000-opts.h (enum processor_type): Add
2740 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
2741 (rs6000_debug_reg_global): Add support for power9 fusion.
2742 (rs6000_setup_reg_addr_masks): Cache mode size.
2743 (rs6000_option_override_internal): Until real power9 tuning is
2744 added, use -mtune=power8 for -mcpu=power9.
2745 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
2746 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
2747 of Altivec registers.
2748 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
2749 (rs6000_loop_align): Add support for power9 cpu.
2750 (rs6000_file_start): Likewise.
2751 (rs6000_adjust_cost): Likewise.
2752 (rs6000_issue_rate): Likewise.
2753 (insn_must_be_first_in_group): Likewise.
2754 (insn_must_be_last_in_group): Likewise.
2755 (force_new_group): Likewise.
2756 (rs6000_register_move_cost): Likewise.
2757 (rs6000_opt_masks): Likewise.
2759 * config/rs6000/rs6000.md (cpu attribute): Add power9.
2760 * config/rs6000/rs6000-tables.opt: Regenerate.
2762 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2763 _ARCH_PWR9 if power9 support is available.
2765 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
2766 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
2768 * configure.ac: Determine if the assembler supports the ISA 3.0
2770 * config.in (HAVE_AS_POWER9): Likewise.
2771 * configure: Regenerate.
2773 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
2776 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2778 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
2779 Remove integer CONST_DOUBLE handling. It should never occur.
2781 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2784 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
2785 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
2786 Delete VOIDmode case. Assert that mode is not VOIDmode.
2787 * config/aarch64/predicates.md (const0_operand): Remove const_double
2790 2015-11-09 Martin Liska <mliska@suse.cz>
2792 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
2793 body_info release function.
2794 * ipa-prop.c (ipa_release_body_info): New function.
2795 (ipa_analyze_node): Call the function.
2796 (ipa_node_params::~ipa_node_params): Release known_csts.
2797 * ipa-prop.h (ipa_release_body_info): Declare.
2799 2015-11-09 Martin Liska <mliska@suse.cz>
2801 * gcc.c (record_temp_file): Release name string.
2802 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
2803 * lra-lives.c (free_live_range_list): Utilize
2804 lra_live_range_pool for allocation and deallocation.
2805 (create_live_range): Likewise.
2806 (copy_live_range): Likewise.
2807 (lra_merge_live_ranges): Likewise.
2808 (remove_some_program_points_and_update_live_ranges): Likewise.
2809 (lra_create_live_ranges_1): Release point_freq_vec that can
2810 be not freed from previous iteration of the function.
2811 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
2812 * tree-sra.c (sra_deinitialize): Release all vectors in
2814 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
2815 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
2816 Release edge_info for a removed edge.
2817 (thread_through_all_blocks): Free region vector.
2818 * tree-ssa.h (free_dom_edge_info): Declare function extern.
2820 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
2822 * optabs.c (expand_vec_cond_expr): Always get sign from type.
2823 * tree.c (wide_int_to_tree): Support negative values for boolean.
2824 (build_nonstandard_boolean_type): Use signed type for booleans.
2826 2015-11-09 Richard Biener <rguenther@suse.de>
2828 PR tree-optimization/68248
2829 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
2831 2015-11-09 Richard Biener <rguenther@suse.de>
2833 PR tree-optimization/56118
2834 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
2835 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
2836 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
2838 (vect_slp_analyze_data_ref_dependences): Instead of computing
2839 all dependences of the region DRs just analyze the code motions
2840 SLP vectorization will perform. Remove SLP instances that
2841 cannot have their store/load motions applied.
2842 (vect_analyze_data_refs): Allow DRs without a vectype
2843 in BB vectorization.
2845 2015-11-09 Julian Brown <julian@codesourcery.com>
2847 * final.c (output_asm_insn): Pass VOIDmode to output_address.
2848 (output_address): Add MODE argument. Pass to print_operand_address
2850 * targhooks.c (default_print_operand_address): Add MODE argument.
2851 * targhooks.h (default_print_operand_address): Update prototype.
2852 * output.h (output_address): Update prototype.
2853 * target.def (print_operand_address): Add MODE argument.
2854 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
2856 (print_operand): Pass access mode to output_address.
2857 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
2859 (mcore_print_operand): Update calls to mcore_print_operand_address.
2860 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
2862 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
2864 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
2866 (tilegx_print_operand): Don't set above global. Update calls to
2868 (tilegx_print_operand_address): Add MODE argument. Use instead of
2869 output_memory_reference_mode global.
2870 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
2871 (frv_print_operand): Pass mode to frv_print_operand_address calls.
2872 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
2874 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
2875 (cris_print_operand): Pass mode to output_address calls.
2876 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
2877 * config/aarch64/aarch64.h (aarch64_print_operand)
2878 (aarch64_print_operand_address): Remove prototypes.
2879 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
2881 (aarch64_print_operand): Make static. Update calls to output_address.
2882 (aarch64_print_operand_address): Add MODE argument. Use instead of
2883 aarch64_memory_reference_mode global.
2884 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
2886 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
2887 Delete macro definitions.
2888 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
2889 * config/xtensa/xtensa.c (print_operand): Pass mode in
2890 output_address calls.
2891 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
2893 (h83000_print_operand): Update calls to h8300_print_operand_address
2895 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
2896 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
2898 (tilepro_print_operand): Pass mode to output_address.
2899 (tilepro_print_operand_address): Add MODE argument. Use instead of
2900 output_memory_reference_mode.
2901 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
2902 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
2903 to output_address calls.
2904 (nvptx_print_operand_address): Add MODE argument.
2905 * config/alpha/alpha.c (print_operand): Pass mode argument in
2906 output_address calls.
2907 * config/m68k/m68k.c (print_operand): Pass mode argument in
2908 output_address call.
2909 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
2910 (avr_print_operand): Update calls to avr_print_operand_address.
2911 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
2912 argument. Update calls to output_address.
2913 (sparc_print_operand): Pass mode to output_address.
2914 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
2916 (iq2000_print_operand): Pass mode in output_address calls.
2917 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
2919 (xstormy16_print_operand): Pass mode to
2920 xstormy16_print_operand_address calls.
2921 * config/mips/mips.c (mips_print_operand): Update calls to
2923 (mips_print_operand_address): Add MODE argument.
2924 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
2926 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
2927 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
2929 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
2930 (rx_print_operand): Update calls to output_address,
2931 rx_print_operand_address.
2932 * config/nds32/nds32.c (nds32_print_operand): Update calls to
2934 (nds32_print_operand_address): Add MODE argument.
2935 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
2936 output_address calls.
2937 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
2938 output_address call.
2939 (c6x_print_address_operand): Update calls to output_address.
2940 (c6x_print_operand_address): Pass mode to above.
2941 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
2942 (v850_print_operand): Pass mode to v850_print_operand_address,
2944 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
2945 (mmix_print_operand): Pass mode in output_address calls.
2946 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
2947 (sh_print_operand): Pass mem mode to output_address,
2948 sh_print_operand_address.
2949 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
2950 (cr16_print_operand): Pass mode to output_address,
2951 cr16_print_operand_address.
2952 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
2954 * config/microblaze/microblaze.c (print_operand): Pass mode to
2956 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
2958 (nios2_print_operand_address): Add MODE argument. Update call to
2959 nios2_print_operand_address.
2960 * config/s390/s390.c (print_operand): Pass mode to output_address.
2961 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
2962 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
2964 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
2965 Use instead of output_memory_reference_mode.
2966 (output_memory_reference_mode): Delete global.
2967 (arm_print_operand): Pass mem mode to output_address.
2968 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
2969 (m32r_print_operand): Pass mode to output_address.
2970 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
2972 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
2973 * config/i386/i386.c (ix86_print_operand): Pass mode to
2974 output_address calls.
2975 (ix86_print_operand_address): Add MODE argument.
2977 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2980 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
2981 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
2982 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
2983 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
2985 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2987 PR rtl-optimization/67749
2988 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
2989 case before emitting the two blocks. Instead modify the register
2990 in the corresponding final insn of the basic block.
2992 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2994 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
2997 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
2999 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
3000 HAVE_INITFINI_ARRAY_SUPPORT.
3001 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
3003 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
3004 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
3005 Don't check HAVE_AS_SPARC_NOBITS.
3006 Heed SECTION_NOTYPE.
3008 * configure: Regenerate.
3009 * config.in: Regenerate.
3011 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3014 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
3016 2015-11-09 Richard Henderson <rth@redhat.com>
3018 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
3019 __SEG_GS, __SEG_TLS.
3020 (ix86_register_pragmas): Register address spaces __seg_fs,
3021 __seg_gs, __seg_tls.
3022 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
3023 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
3024 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
3025 * config/i386/i386.c (ix86_decompose_address): Likewise.
3026 (ix86_legitimate_address_p): Likewise.
3027 (memory_address_length): Likewise. Check mem address space too.
3028 (ix86_print_operand): Use ix86_print_operand_address_as.
3029 (ix86_print_operand_address_as): Rename from
3030 ix86_print_operand_address, add new addr_space_t parameter.
3031 Validate that either the parameter or the ix86_address segment
3032 is default address space. Handle ADDR_SPACE_SEG_TLS.
3033 (ix86_print_operand_address): New.
3034 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
3035 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
3036 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
3037 (ix86_addr_space_zero_address_valid): New.
3038 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3039 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
3040 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
3041 * config/i386/predicates.md (address_no_seg_operand): Likewise.
3042 (vsib_address_operand): Likewise.
3043 (address_mpx_no_base_operand): Likewise.
3044 (address_mpx_no_index_operand): Likewise.
3045 * doc/extend.texi (x86 Named Address Spaces): New section.
3047 * config/i386/i386.c (ix86_check_no_addr_space): New.
3048 (decide_alg): Add have_as parameter.
3049 (alg_usable_p): Likewise; disable rep algorithms if set.
3050 (ix86_expand_set_or_movmem): Notice if either MEM has a
3051 non-default address space.
3052 (ix86_expand_strlen): Likewise.
3053 * config/i386/i386.md (strmov, strset): Likewise.
3054 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
3055 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
3056 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
3057 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
3058 *cmpstrnqi_1, *strlenqi_1): Likewise.
3060 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
3061 (*movabs<mode>_2): Likewise.
3063 * dwarf2out.c (modified_type_die): Pass the address space number
3064 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
3065 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
3066 * targhooks.c (default_addr_space_debug): New.
3067 * targhooks.h (default_addr_space_debug): Declare.
3068 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
3069 * doc/tm.texi: Rebuild.
3071 * gimple.c (check_loadstore): Return false when 0 is a valid address.
3072 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
3073 null when 0 is valid in the source address space.
3074 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3075 * targhooks.c (default_addr_space_zero_address_valid): New.
3076 * targhooks.h (default_addr_space_zero_address_valid): Declare.
3077 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
3078 * doc/tm.texi: Rebuild.
3080 * cselib.c (add_mem_for_addr): Compare address spaces when
3082 (cselib_lookup_mem): Likewise.
3083 * fold-const.c (operand_equal_p): Check address spaces of
3084 pointer types before checking integer constants.
3087 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
3088 the correct type for the base.
3090 2015-11-09 Jeff Law <law@redhat.com>
3092 * tree-into-ssa.c (names_to_release): No longer static.
3093 * tree-into-ssa.h (names_to_release): Declare.
3094 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
3095 (release_free_names_and_compact_live_names): New function extracted
3096 from pass_release_ssa_names::execute.
3097 (pass_release_ssa_names::execute): Use it.
3099 2015-11-09 Alan Modra <amodra@gmail.com>
3101 * gensupport.c (add_mnemonic_string): Make len param a size_t.
3102 (gen_mnemonic_setattr): Make "size" var a size_t. Use
3103 obstack_blank_fast to shrink obstack. Cast obstack_next_free
3106 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
3108 PR rtl-optimization/68182
3109 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
3110 branch with only one successor just like unconditional branches.
3112 2015-11-08 Jeff Law <law@redhat.com>
3114 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
3115 non-FSM path has no edges marked with EDGE_DFS_BACK.
3116 (ssa_redirect_edges): No longer call mark_loop_for_removal.
3117 (thread_single_edge, def_split_header_continue_p): Remove.
3118 (bb_ends_with_multiway_branch): Likewise.
3119 (thread_through_loop_header): Remove cases of threading from
3120 latch through the header. Simplify knowing we won't thread
3122 (thread_through_all_blocks): Simplify knowing that only the FSM
3123 threader needs to handle backedges.
3125 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
3127 * doc/extend.texi (type attributes): Document scalar_storage_order.
3128 (Structure-Packing Pragmas): Rename into...
3129 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
3130 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
3131 (Warnings): Document -Wno-scalar-storage-order.
3132 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
3133 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
3134 extract_bit_field and store_bit_field.
3135 (initialize_argument_information): Adjust call to store_expr.
3136 (load_register_parameters): Adjust call to extract_bit_field.
3137 * expmed.c (check_reverse_storage_order_support): New function.
3138 (check_reverse_float_storage_order_support): Likewise.
3139 (flip_storage_order): Likewise.
3140 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
3141 of the value if it is true. Pass REVERSE to recursive call after
3142 adjusting the target offset.
3143 Do not use extraction or movstrict instruction if REVERSE is true.
3144 Pass REVERSE to store_fixed_bit_field.
3145 (store_bit_field): Add REVERSE parameter and pass to it to above.
3146 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
3147 store_split_bit_field and store_fixed_bit_field_1.
3148 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
3149 order of the value if it is true and adjust the target offset.
3150 (store_split_bit_field): Add REVERSE parameter and pass it to
3151 store_fixed_bit_field. Adjust the target offset if it is true.
3152 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
3153 of the value if it is true. Pass REVERSE to recursive call after
3154 adjusting the target offset.
3155 Do not use extraction or subreg instruction if REVERSE is true.
3156 Pass REVERSE to extract_fixed_bit_field.
3157 (extract_bit_field): Add REVERSE parameter and pass to it to above.
3158 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
3159 extract_split_bit_field and extract_fixed_bit_field_1.
3160 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
3161 order of the value if it is true and adjust the target offset.
3162 (extract_split_bit_field): Add REVERSE parameter and pass it to
3163 extract_fixed_bit_field. Adjust the target offset if it is true.
3164 * expmed.h (flip_storage_order): Declare.
3165 (store_bit_field): Adjust prototype.
3166 (extract_bit_field): Likewise.
3167 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
3168 (emit_group_store): Adjust call to store_bit_field.
3169 (copy_blkmode_from_reg): Likewise.
3170 (copy_blkmode_to_reg): Likewise.
3171 (write_complex_part): Likewise.
3172 (read_complex_part): Likewise.
3173 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
3174 that it isn't true if the target is a register.
3175 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
3176 and flip the storage order of the value.
3177 <BIT_IOR_EXPR>: Flip the storage order of the value.
3178 (get_bit_range): Adjust call to get_inner_reference.
3179 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
3180 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
3181 with reverse storage order.
3182 (store_expr_with_bounds): Add REVERSE parameter and pass it to
3183 recursive calls and call to store_bit_field. Force the value into a
3184 register if it is true and then flip the storage order of the value.
3185 (store_expr): Add REVERSE parameter and pass it to above.
3186 (categorize_ctor_elements_1): Adjust call to
3187 initializer_constant_valid_p.
3188 (store_constructor_field): Add REVERSE parameter and pass it to
3189 recursive calls and call to store_field.
3190 (store_constructor): Add REVERSE parameter and pass it to calls to
3191 store_constructor_field and store_expr. Set it to true for an
3192 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
3193 (store_field): Add REVERSE parameter and pass it to recursive calls
3194 and calls to store_expr and store_bit_field. Temporarily flip the
3195 storage order of the value with record type and integral mode and
3196 adjust the shift if it is true.
3197 (get_inner_reference): Add PREVERSEP parameter and set it to true
3198 upon encoutering a reference with reverse storage order.
3199 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
3200 (expand_constructor): Adjust call to store_constructor.
3201 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
3202 of the union type to store_expr in the MEM case and assert that it
3203 isn't set in the REG case. Adjust call to store_field.
3204 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
3205 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
3206 get_inner_reference and extract_bit_field. Temporarily flip the
3207 storage order of the value with record type and integral mode and
3208 adjust the shift if it is true. Flip the storage order of the value
3209 at the end if it is true.
3210 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
3211 get_inner_reference. Do not fetch an inner reference if it is true.
3212 * expr.h (store_expr_with_bounds): Ajust prototype.
3213 (store_expr): Likewise.
3214 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
3215 REF_REVERSE_STORAGE_ORDER on the reference according to it.
3216 (optimize_bit_field_compare): Deal with reverse storage order.
3217 Adjust calls to get_inner_reference and make_bit_field_ref.
3218 (decode_field_reference): Add PREVERSEP parameter and adjust call to
3219 get_inner_reference.
3220 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
3221 to decode_field_reference and make_bit_field_ref.
3222 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
3223 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
3224 (fold_comparison): Adjust call to get_inner_reference.
3225 (split_address_to_core_and_offset): Adjust call to
3226 get_inner_reference.
3227 * gimple-expr.c (useless_type_conversion_p): Return false for array
3228 types with different TYPE_REVERSE_STORAGE_ORDER flag.
3229 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
3230 REF_REVERSE_STORAGE_ORDER flag.
3231 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
3232 * output.h (assemble_real): Adjust prototype.
3233 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
3234 * stor-layout.c (finish_record_layout): Propagate the
3235 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
3236 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
3237 (TYPE_SATURATING): Adjust.
3238 (REF_REVERSE_STORAGE_ORDER): Document.
3239 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
3240 set it to true upon encoutering a reference with reverse storage order.
3241 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
3242 * tree-inline.c (remap_gimple_op_r): Propagate the
3243 REF_REVERSE_STORAGE_ORDER flag.
3244 (copy_tree_body_r): Likewise.
3245 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
3247 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
3248 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
3249 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
3250 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
3251 REF_REVERSE_STORAGE_ORDER flag.
3252 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
3253 (gimple_canonical_types_compatible_p): Likewise.
3254 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
3255 (TYPE_SATURATING): Adjust.
3256 (REF_REVERSE_STORAGE_ORDER): New flag.
3257 (reverse_storage_order_for_component_p): New inline predicate.
3258 (storage_order_barrier_p): Likewise.
3259 (get_inner_reference): Adjust prototype.
3260 * varasm.c: Include expmed.h.
3261 (assemble_variable_contents): Adjust call to output_constant.
3262 (assemble_real): Add REVERSE parameter. Flip the storage
3263 order of the value if REVERSE is true.
3264 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
3265 (assemble_constant_contents): Adjust call to output_constant.
3266 (output_constant_pool_2): Adjust call to assemble_real.
3267 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
3268 TYPE_REVERSE_STORAGE_ORDER.
3269 (initializer_constant_valid_p): Add REVERSE parameter.
3270 (output_constant): Add REVERSE parameter.
3271 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
3272 <REAL_TYPE>: Adjust call to assemble_real.
3273 <COMPLEX_TYPE>: Pass it to recursive calls.
3274 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
3275 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
3276 (struct oc_local_state): Add REVERSE field.
3277 (output_constructor_array_range): Adjust calls to output_constant.
3278 (output_constructor_regular_field): Likewise.
3279 (output_constructor_bitfield): Adjust call to output_constructor.
3280 Flip the storage order of the value if REVERSE is true.
3281 (output_constructor): Add REVERSE parameter. Set it to true for an
3282 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
3283 output_constructor_bitfield.
3284 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
3285 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
3286 * builtins.c (get_object_alignment_2): Likewise.
3287 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
3288 and get_ref_base_and_extent.
3289 * dbxout.c (dbxout_expand_expr): Likewise.
3290 * dwarf2out.c (add_var_loc_to_decl): Likewise.
3291 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
3292 (loc_list_from_tree): Likewise.
3293 (fortran_common): Likewise.
3294 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
3295 get_ref_base_and_extent.
3296 (get_base_constructor): Likewise.
3297 (fold_const_aggregate_ref_1): Likewise.
3298 * gimple-laddress.c (pass_laddress::execute): Adjust call to
3299 get_inner_reference.
3300 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
3301 get_inner_reference and bail out on reverse storage order.
3302 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
3303 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
3304 build_ref_for_offset.
3305 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
3306 get_ref_base_and_extent.
3307 (ipa_polymorphic_call_context): Likewise.
3308 (extr_type_from_vtbl_ptr_store): Likewise.
3309 (check_stmt_for_type_change): Likewise.
3310 (get_dynamic_type): Likewise.
3311 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
3312 get_ref_base_and_extent.
3313 (compute_complex_assign_jump_func): Likewise.
3314 (get_ancestor_addr_info): Likewise.
3315 (compute_known_type_jump_func): Likewise.
3316 (determine_known_aggregate_parts): Likewise.
3317 (ipa_get_adjustment_candidate): Likewise.
3318 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
3319 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
3320 (build_ref_for_offset): Adjust prototype.
3321 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
3322 get_inner_reference.
3323 * tree-affine.c (tree_to_aff_combination): Adjust call to
3324 get_inner_reference.
3325 (get_inner_reference_aff): Likewise.
3326 * tree-data-ref.c (split_constant_offset_1): Likewise.
3327 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
3328 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
3329 get_inner_reference.
3330 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
3331 (dump_access): Print new fields.
3332 (create_access): Adjust call to get_ref_base_and_extent and set the
3333 REVERSE flag according to the result.
3334 (completely_scalarize_record): Set the REVERSE flag.
3335 (scalarize_elem): Add REVERSE parameter.
3336 (build_access_from_expr_1): Preserve storage order barriers.
3337 (build_accesses_from_assign): Likewise.
3338 (build_ref_for_offset): Add REVERSE parameter and set the
3339 REF_REVERSE_STORAGE_ORDER flag accordingly.
3340 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
3341 the REF_REVERSE_STORAGE_ORDER flag if there are components.
3342 (analyze_access_subtree): Likewise.
3343 (create_artificial_child_access): Set the REVERSE flag.
3344 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
3345 (turn_representatives_into_adjustments): Propagate REVERSE flag.
3346 (ipa_sra_check_caller): Adjust call to get_inner_reference.
3347 * tree-ssa-alias.c (ao_ref_base): Adjust call to
3348 get_ref_base_and_extent.
3349 (aliasing_component_refs_p): Likewise.
3350 (stmt_kills_ref_p_1): Likewise.
3351 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3352 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
3353 Return true if reverse storage order.
3354 <BIT_FIELD_REF>: Likewise.
3355 <COMPONENT_REF>: Likewise.
3356 <ARRAY_REF>: Likewise.
3357 <ARRAY_RANGE_REF>: Likewise.
3358 (split_address_cost): Likewise. Bail out if reverse storage order.
3359 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
3360 get_inner_reference. Bail out if reverse storage order.
3361 (bswap_replace): Adjust call to get_inner_reference.
3362 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
3363 the REF_REVERSE_STORAGE_ORDER flag.
3364 <BIT_FIELD_REF>: Likewise.
3365 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
3367 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
3368 to the REF_REVERSE_STORAGE_ORDER flag.
3369 <BIT_FIELD_REF>: Likewise.
3370 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
3371 (contains_storage_order_barrier_p): New predicate.
3372 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
3373 Punt on storage order barriers if necessary.
3374 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
3375 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
3376 call to get_ref_base_and_extent.
3377 (do_structure_copy): Likewise.
3378 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
3379 get_inner_reference.
3380 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
3381 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
3382 * ubsan.c (instrument_bool_enum_load): Likewise.
3383 (instrument_object_size): Likewise.
3384 * var-tracking.c (track_expr_p): Adjust call to
3385 get_ref_base_and_extent.
3386 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
3387 get_inner_reference.
3388 * config/s390/s390.c (s390_expand_atomic): Adjust call to
3390 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
3392 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
3394 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
3396 * config/sparc/sparc.opt (mfix-at697f): Add final period.
3398 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3400 PR rtl-optimization/67864
3401 * common/config/i386/i386-common.c (ix86_option_optimization_table)
3402 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
3405 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3407 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
3410 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3412 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
3413 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
3415 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3417 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
3418 * internal-fn.c: Don't undef it here.
3419 * tree-core.h: Likewise.
3421 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3423 * builtins.c (fold_builtin_nan): Delete.
3424 (fold_builtin_memcmp): Remove case where both arguments are constant.
3425 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
3426 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
3427 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
3428 * fold-const-call.c: Include fold-const.h.
3429 (host_size_t_cst_p): New function.
3430 (build_cmp_result, fold_const_builtin_nan): Likewise.
3431 (fold_const_call_1): New function, split out from...
3432 (fold_const_call): ...here (for all three interfaces). Handle
3433 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
3435 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3437 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
3438 (fold_builtin_1): Don't call them.
3439 * fold-const-call.c: Include tm.h.
3440 (fold_const_call_ss): New variant for integer-to-integer folds.
3441 (fold_const_call): Call it.
3443 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3445 * builtins.c (fold_builtin_classify): Move constant cases to...
3446 * fold-const-call.c (fold_const_call_ss): ...here.
3448 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3450 * builtins.h (c_getstr): Move to...
3451 * fold-const.h (c_getstr): ...here.
3452 * builtins.c (c_getstr): Move to...
3453 * fold-const.c (c_getstr): ...here.
3455 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3457 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
3458 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
3460 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3462 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
3463 the dominance info; free it if we can't.
3464 (pass_call_cdce::execute): Don't free the dominance info here.
3466 2015-11-06 Jeff Law <law@redhat.com>
3468 * tree-ssa-threadedge.c (dummy_simplify): Remove.
3469 (thread_around_empty_blocks): Remove backedge_seen_p argument.
3470 If we thread to a backedge, then return false. Update recursive
3471 call to eliminate backedge_seen_p argument.
3472 (thread_through_normal_block): Remove backedge_seen_p argument.
3473 Remove backedge_seen_p argument from calls to
3474 thread_around_empty_blocks. Remove checks on backedge_seen_p.
3475 If we thread to a backedge, then return 0.
3476 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
3477 pass it to thread_through_normal_block or thread_through_empty_blocks.
3478 For joiner handling, if we see a backedge, do not try normal
3481 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3483 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
3484 * graphite-poly.c (new_scop): Initialize original_schedule.
3485 (free_scop): Free original_schedule.
3486 * graphite-poly.h (struct scop): Add field original_schedule.
3487 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
3488 (build_poly_scop): Call build_scop_original_schedule.
3490 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3492 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
3493 (build_pbb_minimal_scattering_polyhedrons): New.
3494 (build_scop_scattering): Remove.
3495 (build_scop_minimal_scattering): New.
3496 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
3497 (build_poly_scop): Call build_scop_minimal_scattering.
3499 2015-11-06 Jeff Law <law@redhat.com>
3501 * cfg-flags.def (IGNORE): New edge flag.
3502 * tree-vrp.c (identify_jump_threads): Mark and clear edges
3503 scheduled for removal with EDGE_IGNORE around call into
3504 jump threader. Do no thread across edges with EDGE_IGNORE,
3505 but do allow threading across those with EDGE_DFS_BACK.
3507 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
3509 * doc/md.texi (multi-alternative constraints): Don't document
3510 alternatives inherently tied to reload for the user documentation.
3512 2015-11-06 Michael Collison <michael.collison@linaro.org>
3513 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3516 2015-08-01 Michael Collison <michael.collison@linaro.org
3517 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3519 * config/arm/arm.md (*arm_smin_cmp): New pattern.
3520 (*arm_umin_cmp): Likewise.
3522 2015-11-06 Jakub Jelinek <jakub@redhat.com>
3524 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
3525 * omp-low.c (check_omp_nesting_restrictions): Update for the
3526 various new OpenMP 4.5 nesting restrictions, clarified
3527 nesting glossary, closely nested region relationship clarified
3528 to mean explicit or implicit parallel regions (target/teams),
3529 use %</%> or %qs where appropriate.
3531 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
3532 Sebastian Pop <s.pop@samsung.com>
3534 * graphite-scop-detection.c (loop_is_valid_scop): Call
3535 optimize_loop_nest_for_speed_p.
3537 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
3538 Sebastian Pop <s.pop@samsung.com>
3540 * graphite-optimize-isl.c (optimize_isl): Call
3541 isl_options_set_schedule_maximize_band_depth.
3543 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
3544 Sebastian Pop <s.pop@samsung.com>
3546 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
3547 and exit edges should not be a part of irreducible loop.
3548 (scop_detection::can_represent_loop_1): Loops should not be
3550 (scop_detection::harmful_stmt_in_region): All the basic block
3551 should belong to reducible loops.
3553 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
3555 * config/aarch64/aarch64-simd-builtins.def: Update builtins
3556 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
3557 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
3558 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
3559 (aarch64_tbx4v8qi): Rename to...
3560 aarch64_tbx4<mode>): ... this.
3561 (aarch64_qtbl3<mode>): New pattern.
3562 (aarch64_qtbx3<mode>): New pattern.
3563 (aarch64_qtbl4<mode>): New pattern.
3564 (aarch64_qtbx4<mode>): New pattern.
3565 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
3566 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
3567 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
3568 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
3569 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
3570 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
3571 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
3572 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
3575 2015-11-06 Mike Stump <mikestump@comcast.net>
3578 * dwarf2out.c (get_full_len): Return a value based upon the actual
3579 precision needed for the value.
3580 (add_const_value_attribute): Use a maximal wide-int for
3581 CONST_WIDE_INTs, not VOIDmode.
3582 (output_die): Don't ever output NULL with printf.
3584 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
3585 BLKmode nor VOIDmode values.
3587 2015-11-06 David Malcolm <dmalcolm@redhat.com>
3589 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
3591 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
3592 * diagnostic-core.h (warning_at_rich_loc): New declaration.
3593 (error_at_rich_loc): New declaration.
3594 (permerror_at_rich_loc): New declaration.
3595 (inform_at_rich_loc): New declaration.
3596 * diagnostic-show-locus.c (adjust_line): Delete.
3597 (struct point_state): New struct.
3598 (class colorizer): New class.
3599 (class layout_point): New class.
3600 (class layout_range): New class.
3601 (struct line_bounds): New.
3602 (class layout): New class.
3603 (colorizer::colorizer): New ctor.
3604 (colorizer::~colorizer): New dtor.
3605 (layout::layout): New ctor.
3606 (layout::print_source_line): New method.
3607 (layout::print_annotation_line): New method.
3608 (layout::get_state_at_point): New method.
3609 (layout::get_x_bound_for_row): New method.
3610 (diagnostic_show_locus): Reimplement in terms of class layout.
3611 (diagnostic_print_caret_line): Delete.
3612 * diagnostic.c (diagnostic_initialize): Replace
3613 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
3614 (diagnostic_set_info_translated): Convert param from location_t
3615 to rich_location *. Eliminate calls to set_location on the
3616 message in favor of storing the rich_location ptr there.
3617 (diagnostic_set_info): Convert param from location_t to
3619 (diagnostic_build_prefix): Break out array into...
3620 (diagnostic_kind_color): New variable.
3621 (diagnostic_get_color_for_kind): New function.
3622 (diagnostic_report_diagnostic): Colorize the option_text
3623 using the color for the severity.
3624 (diagnostic_append_note): Update for change in signature of
3625 diagnostic_set_info.
3626 (diagnostic_append_note_at_rich_loc): New function.
3627 (emit_diagnostic): Update for change in signature of
3628 diagnostic_set_info.
3630 (inform_at_rich_loc): New function.
3631 (inform_n): Update for change in signature of diagnostic_set_info.
3632 (warning): Likewise.
3633 (warning_at): Likewise.
3634 (warning_at_rich_loc): New function.
3635 (warning_n): Update for change in signature of diagnostic_set_info.
3636 (pedwarn): Likewise.
3637 (permerror): Likewise.
3638 (permerror_at_rich_loc): New function.
3639 (error): Update for change in signature of diagnostic_set_info.
3640 (error_n): Likewise.
3641 (error_at): Likewise.
3642 (error_at_rich_loc): New function.
3643 (sorry): Update for change in signature of diagnostic_set_info.
3644 (fatal_error): Likewise.
3645 (internal_error): Likewise.
3646 (internal_error_no_backtrace): Likewise.
3647 (source_range::debug): New function.
3648 * diagnostic.h (struct diagnostic_info): Eliminate field
3649 "override_column". Add field "richloc".
3650 (struct diagnostic_context): Add field "colorize_source_p".
3651 (diagnostic_override_column): Delete.
3652 (diagnostic_set_info): Convert param from location_t to
3654 (diagnostic_set_info_translated): Likewise.
3655 (diagnostic_append_note_at_rich_loc): New function.
3656 (diagnostic_num_locations): New function.
3657 (diagnostic_expand_location): Get the location from the
3659 (diagnostic_print_caret_line): Delete.
3660 (diagnostic_get_color_for_kind): New declaration.
3661 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
3662 (error_cb): Update for change in signature of "error" callback.
3663 (fatal_at): Likewise.
3664 (warning_at): Likewise.
3665 * input.c (linemap_client_expand_location_to_spelling_point): New.
3666 * pretty-print.c (text_info::set_range): New method.
3667 (text_info::get_location): New method.
3668 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
3669 (struct text_info): Eliminate "locations" array in favor of
3670 "m_richloc", a rich_location *.
3671 (textinfo::set_location): Add a "caret_p" param, and reimplement
3672 in terms of a call to set_range.
3673 (textinfo::get_location): Eliminate inline implementation in favor of
3674 an out-of-line reimplementation.
3675 (textinfo::set_range): New method.
3676 * rtl-error.c (diagnostic_for_asm): Update for change in signature
3677 of diagnostic_set_info.
3678 * tree-diagnostic.c (default_tree_printer): Update for new
3679 "caret_p" param for textinfo::set_location.
3680 * tree-pretty-print.c (percent_K_format): Likewise.
3682 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3685 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3686 * config/aarch64/aarch64.c
3687 (aarch64_can_use_per_function_literal_pools_p): New.
3688 (aarch64_use_blocks_for_constant_p): Adjust declaration
3689 and use aarch64_can_use_function_literal_pools_p.
3690 (aarch64_select_rtx_section): Update.
3692 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3694 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
3695 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
3696 (arm_output_multireg_pop): Likewise.
3697 (output_move_double): Likewise.
3698 (output_move_quad): Likewise.
3699 (output_return_instruction): Likewise.
3700 (arm_print_operand): Remove support for %( and %. print modifiers.
3701 (arm_output_shift): Make unified asm.
3702 (arm_declare_function_name): Likewise.
3703 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
3704 (ASM_APP_OFF): Adjust.
3705 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
3706 (ASM_OUTPUT_REG_POP): Likewise.
3707 * config/arm/arm.md: Adjust uses of %., %(, %)
3708 * config/arm/sync.md: Likewise.
3709 * config/arm/thumb2.md: Likewise.
3710 * config/arm/ldmstm.md: Regenerate.
3711 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
3712 * doc/invoke.texi (masm-unified-syntax): Update documentation.
3714 2015-11-06 David Malcolm <dmalcolm@redhat.com>
3716 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
3718 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
3720 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
3721 add OEP_MATCH_SIDE_EFFECTS.
3722 * fold-const.c (operand_equal_p): Update documentation; handle
3723 OEP_MATCH_SIDE_EFFECTS.
3724 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
3725 OEP_MATCH_SIDE_EFFECTS.
3727 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
3728 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3730 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
3731 * config/aarch64/aarch64-protos.h: Declare.
3732 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
3734 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
3735 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
3736 code when applicable.
3737 * config/aarch64/aarch64.md: Added enum entries.
3738 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
3740 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
3744 * ipa-polymorphic-call.c
3745 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
3746 issue when offset is out of range.
3747 (contains_type_p): Fix out of range check, clear dynamic flag.
3749 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
3751 * config.gcc (e6500): Fix cpu_is_64bit typo.
3753 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
3755 * tree-sra.c (completely_scalarize): Properly handle negative array
3756 indices using offset_int.
3758 2015-11-06 Richard Biener <rguenther@suse.de>
3760 * alloc-pool.h (object_allocator::allocate): Default-initialize
3763 2015-11-06 Richard Biener <rguenther@suse.de>
3765 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
3766 * lra.c (init_reg_info): Truncate copy_vec instead of
3767 re-allocating a new one and leaking the old.
3768 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
3770 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
3771 * postreload-gcse.c (free_mem): Free modify_mem_list and
3772 canon_modify_mem_list.
3774 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
3776 PR tree-optimization/68145
3777 * tree-vect-stmts.c (vectorizable_operation): Fix
3778 determination for booleans.
3780 2015-11-06 Tom de Vries <tom@codesourcery.com>
3782 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
3783 cond_jump, instead of split after last nondebug insn before cond_jump.
3784 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
3787 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3790 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
3791 subregs from accumulator and make sure it's a register.
3793 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
3795 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
3797 (reduc_uplus_<mode>): Remove.
3798 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
3799 loongson_extract_lo_<mode>.
3800 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
3801 reduc_smax_<mode>, reduc_smax_<mode>, use vec
3802 loongson_extract_lo_<mode>.
3803 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
3805 2015-11-06 Richard Biener <rguenther@suse.de>
3807 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
3809 (vect_stmt_in_region_p): Declare.
3810 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
3811 (destroy_bb_vec_info): Likewise.
3812 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
3813 (vect_get_and_check_slp_defs): Likewise.
3814 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
3815 (vect_slp_bb): Likewise.
3816 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
3817 in terms of vect_stmt_in_region_p.
3818 (vect_pattern_recog): Iterate over the BB region.
3819 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
3820 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
3821 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
3822 * config/i386/i386.c: Include gimple-iterator.h.
3823 * config/aarch64/aarch64.c: Likewise.
3825 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
3827 PR rtl-optimization/67753
3828 PR rtl-optimization/64164
3829 * function.c (assign_parm_setup_block): Avoid allocating a
3830 stack slot if we don't have an ABI-reserved one. Emit the
3831 copy to target_reg in the conversion seq if the copy from
3832 entry_parm is in it too. Don't use the conversion seq to copy
3833 a PARALLEL to a REG or a CONCAT.
3835 2015-11-06 Richard Biener <rguenther@suse.de>
3837 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
3840 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
3841 Thomas Schwinge <thomas@codesourcery.com>
3842 James Norris <jnorris@codesourcery.com>
3845 * gimplify.c (gimplify_scan_omp_clauses): Add support for
3846 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
3847 (gimplify_adjust_omp_clauses): Likewise.
3848 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
3849 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
3850 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
3851 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
3852 (omp_clause_code_name): Likewise.
3853 (walk_tree_1): Handle OMP_CLAUSE_TILE.
3854 * tree.h (OMP_TILE_LIST): New macro.
3856 2015-11-05 Martin Sebor <msebor@redhat.com>
3859 * doc/invoke.texi (-Wplacement-new): Document new option.
3861 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
3863 PR tree-optimization/65963
3864 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
3865 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
3867 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
3869 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
3870 (noce_convert_multiple_sets): Likewise.
3871 (noce_process_if_block): Call them.
3873 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
3875 * gimple-fold.c: Include omp-low.h.
3876 (fold_internal_goacc_dim): New.
3877 (gimple_fold_call): Call it.
3879 2015-11-05 Jakub Jelinek <jakub@redhat.com>
3880 Ilya Verbin <ilya.verbin@intel.com>
3883 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
3884 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
3885 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
3886 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
3887 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
3888 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
3889 (struct cgraph_simd_clone_arg): Adjust comment.
3890 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
3891 to GOMP_target_ext. Add num_teams and thread_limit arguments.
3892 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
3893 to GOMP_target_data_ext.
3894 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
3895 to GOMP_target_update_ext.
3896 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
3897 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
3898 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
3899 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
3900 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
3901 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
3902 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
3903 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
3904 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
3905 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
3906 * tree-core.h (enum omp_clause_schedule_kind): Add
3907 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
3908 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
3909 OMP_CLAUSE_SCHEDULE_LAST value.
3910 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
3911 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
3912 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
3913 OMP_FOR_CHECK. Remove comment.
3914 * tree-pretty-print.c (dump_omp_clause): Handle
3915 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
3916 Simplify. Print schedule clause modifiers.
3917 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
3918 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
3920 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
3921 (omp_default_clause): Tweak for
3922 private/firstprivate/is_device_ptr variables on target
3923 construct and use_device_ptr on target data.
3924 (omp_check_private): Likewise.
3925 (omp_notice_variable): For references check whether what it refers
3926 to has mappable type, rather than the reference itself.
3927 (omp_is_private): Diagnose linear iteration variables on non-simd
3929 (omp_no_lastprivate): Return true only for Fortran.
3930 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
3931 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
3932 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
3933 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
3934 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
3935 lastprivate and linear when combined with distribute. Gimplify
3936 variable low-bound for array reduction. Look through
3937 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
3939 (gimplify_adjust_omp_clauses_1): For implicit references to
3940 variables with reference type and when not ref to scalar or
3941 ref to pointer, map what they refer to using tofrom and
3942 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
3943 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
3944 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
3945 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
3946 Diagnose the same var on both firstprivate and lastprivate on
3947 distribute construct.
3948 (gimplify_omp_for): Fix up handling of predetermined
3949 lastprivate or linear iter vars when combined with distribute.
3950 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
3952 (gimplify_omp_workshare): Call optimize_target_teams.
3953 * omp-low.c (struct omp_region): Add sched_modifiers field.
3954 (struct omp_for_data): Likewise.
3955 (omp_any_child_fn_dumped): New variable.
3956 (extract_omp_for_data): Fill in sched_modifiers, and mask out
3957 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
3959 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
3960 bits of OMP_CLAUSE_SCHED_KIND.
3961 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
3962 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
3963 for array section reductions.
3964 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
3965 for distribute parallel for, if there are lastprivate clauses on the
3967 (lower_rec_input_clauses): Handle non-zero low-bound on array
3969 (lower_reduction_clauses): Likewise.
3970 (lower_send_clauses): Look through POINTER_PLUS_EXPR
3971 for array section reductions.
3972 (expand_parallel_call): Use nonmonotonic entrypoints for
3973 nonmonotonic: dynamic/guided.
3974 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
3975 child_fn if current_function_decl has assembler name set, but child_fn
3976 does not. Dump the header and IL of the child function when not in SSA
3978 (expand_omp_target): Likewise. Pass num_teams and thread_limit
3979 arguments to BUILT_IN_GOMP_TARGET.
3980 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3981 Initialize the extra _looptemp_ clause to fd->loop.n2.
3982 (expand_omp_for): Use nonmonotonic entrypoints for
3983 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
3984 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
3985 again if we have dumped any child functions.
3986 (lower_omp_for_lastprivate): Determine the right count variable
3987 for distribute simd, or distribute parallel for{, simd}.
3988 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
3989 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
3991 (simd_clone_clauses_extract): Handle variable step
3992 for references and arguments passed by reference.
3993 (simd_clone_mangle): Mangle ref/uval/val variable steps.
3994 (simd_clone_adjust_argument_types): Handle
3995 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
3996 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
3997 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
3998 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
3999 (simd_clone_linear_addend): New function.
4000 (simd_clone_adjust): Handle variable step like similarly
4001 to constant step, use simd_clone_linear_addend to determine
4002 the actual step at runtime.
4004 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
4006 * target.def (goacc.dim_limit): New hook.
4007 * targhooks.h (default_goacc_dim_limit): Declare.
4008 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
4009 * doc/tm.texi: Rebuilt.
4010 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
4011 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
4012 (default_goacc_dim_limit): New.
4013 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4014 (nvptx_goacc_dim_limit) New.
4015 (TARGET_GOACC_DIM_LIMIT): Override.
4016 * tree-vrp.c: Include omp-low.h, target.h.
4017 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
4020 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
4022 * tree-vect-generic.c (do_compare): Use -1 for true
4023 result instead of 1.
4025 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4027 * config/aarch64/aarch64.c
4028 (aarch64_can_use_per_function_literal_pools_p): New.
4029 (aarch64_use_blocks_for_constant_p): Adjust declaration
4030 and use aarch64_can_use_function_literal_pools_p.
4031 (aarch64_select_rtx_section): Update.
4033 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
4035 * targhooks.c (default_get_mask_mode): Use BLKmode in
4036 case target doesn't support required vector mode.
4037 * stor-layout.c (layout_type); Check for BLKmode.
4039 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
4040 Sebastian Pop <s.pop@samsung.com>
4042 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
4043 Remove use of parameter_rename_map.
4045 (copy_internal_parameters): Remove.
4046 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
4047 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
4048 (free_sese_info): Do not free parameter_rename_map.
4049 (set_rename): Do not use parameter_rename_map.
4050 (rename_uses): Update call to set_rename.
4051 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
4052 * sese.h (parameter_rename_map_t): Remove.
4053 (struct sese_info_t): Remove field parameter_rename_map.
4055 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
4056 Sebastian Pop <s.pop@samsung.com>
4058 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
4059 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
4060 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
4061 anonymous namespace.
4062 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
4063 (isl_id_for_pbb): Use a buffer of size 10.
4064 (isl_id_for_ssa_name): Same.
4065 * sese.c (set_rename): Add more dumps.
4067 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4069 * omp-low.c (struct omp_context): Remove reduction_map field.
4070 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
4071 (new_omp_context, delete_omp_context, scan_omp_target): Remove
4072 reduction_map handling.
4073 (lower_omp_target): Remove obsolete openacc reduction handling.
4075 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4077 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
4079 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4080 Cesar Philippidis <cesar@codesourcery.com>
4082 * config/nvptx/nvptx.c: Include gimple headers.
4083 (worker_red_size, worker_red_align, worker_red_name,
4084 worker_red_sym): New.
4085 (nvptx_option_override): Initialize worker reduction buffer.
4086 (nvptx_file_end): Write out worker reduction buffer var.
4087 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
4088 nvptx_expand_cmp_swap): New builtin expanders.
4089 (enum nvptx_builtins): New.
4090 (nvptx_builtin_decls): New.
4091 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
4092 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4093 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
4094 nvptx_lockless_update): New helpers.
4095 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
4096 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
4097 (nvptx_goacc_reduction): New.
4098 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
4099 TARGET_BUILTIN_DECL): Override.
4100 (TARGET_GOACC_REDUCTION): Override.
4102 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4103 Cesar Philippidis <cesar@codesourcery.com>
4105 * internal-fn.def (GOACC_REDUCTION): New.
4106 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
4107 * internal-fn.c (expand_GOACC_REDUCTION): New.
4108 * target.def (goacc.reduction): New OpenACC hook.
4109 * targhooks.h (default_goacc_reduction): Declare.
4110 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
4111 * doc/tm.texi: Rebuilt.
4112 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
4113 scan_sharing_clauses): Remove oacc reduction handling here.
4114 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
4115 (oacc_lower_reduction_var_helper): Delete.
4116 (lower_oacc_reductions): New.
4117 (lower_reduction_clauses): Don't handle OpenACC reductions here.
4118 (lower_oacc_head_tail): Call lower_oacc_reductions.
4119 (oacc_gimple_assign, oacc_init_reduction_array,
4120 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
4121 oacc_process_reduction_data): Delete.
4122 (lower_omp_target): Remove old OpenACC reduction handling. Insert
4123 dummy OpenACC gang reduction for reductions at outer level.
4124 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
4125 (default_goacc_reduction): New.
4126 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
4128 2015-11-04 Martin Liska <mliska@suse.cz>
4130 * cgraphunit.c (cgraph_node::expand_thunk): Call
4131 allocate_struct_function before init_function_start.
4132 (cgraph_node::expand): Use push_cfun and pop_cfun.
4133 * config/i386/i386.c (ix86_code_end): Call
4134 allocate_struct_function before init_function_start.
4135 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
4136 * function.c (init_function_start): Move preamble to all
4138 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
4139 (execute_one_pass): Handle newly added TODO_discard_function.
4140 (execute_pass_list_1): Terminate if cfun equals to NULL.
4141 (execute_pass_list): Do not push and pop cfun, expect that
4143 * tree-pass.h (TODO_discard_function): Define.
4145 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
4147 * cfganal.c (inverted_post_order_compute): Remove conditional
4148 compilation, use flag_checking.
4149 * config.in: Regenerate.
4150 * configure: Regenerate.
4151 * configure.ac: Remove ENABLE_CHECKING.
4152 * genconditions.c: Do not #undef ENABLE_CHECKING.
4153 * sese.h (bb_in_region): Comment out broken check.
4154 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
4155 conditional compilation, use flag_checking.
4157 2015-11-04 Tom de Vries <tom@codesourcery.com>
4159 PR tree-optimization/67742
4160 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
4162 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
4163 (create_variable_info_for_1): Add and handle handle_param parameter.
4164 Add restrict handling.
4165 (create_variable_info_for): Call create_variable_info_for_1 with extra
4167 (make_param_constraints): Drop restrict_name parameter. Ignore
4168 vi->only_restrict_pointers.
4169 (intra_create_variable_infos): Call create_variable_info_for_1 with
4170 extra arg. Remove restrict handling. Call make_param_constraints with
4173 2015-11-04 Tom de Vries <tom@codesourcery.com>
4175 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
4178 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4180 * config/arm/coff.h: Remove.
4182 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
4184 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
4185 check for aggregate types and beef up comment for mode check.
4187 2015-11-03 Richard Biener <rguenther@suse.de>
4189 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
4190 data references here.
4191 * tree-vect-loop.c: Include cgraph.h.
4192 (vect_analyze_loop_2): Collect data references here.
4193 * tree-vect-slp.c (find_bb_location): Inline ...
4194 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
4195 Factor in vect_slp_transform_bb.
4196 (vect_slp_transform_bb): Removed.
4197 (vect_slp_analyze_bb_1): Collect data references here.
4198 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
4200 * tree-vectorizer.h (vect_slp_bb): Declare.
4201 (vect_slp_analyze_bb): Remove.
4202 (vect_slp_transform_bb): Remove.
4203 (find_bb_location): Remove.
4204 (vect_analyze_data_refs): Remove stmt count reference parameter.
4206 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
4208 * multiple_target.c (create_dispatcher_calls): Add target check
4210 (create_target_clone): Change assembler name for versioned declarations.
4212 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
4213 Chung-Lin Tang <cltang@codesourcery.com>
4215 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
4216 * omp-low.c (check_omp_nesting_restrictions): Allow
4217 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
4220 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
4222 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
4223 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
4224 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
4226 (vmulxq_f32): Likewise.
4228 (vmulxq_f64): Rewrite to call fmulx builtin.
4229 (vmulxs_f32): Likewise.
4230 (vmulxd_f64): Likewise.
4231 (vmulx_lane_f32): Remove.
4232 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
4234 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
4236 * config/aarch64/aarch64.md (*movhf_aarch64): Use
4237 aarch64_reg_or_fp_zero for second operand.
4239 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
4241 * gimple-expr.c: Include hash-set.h and rtl.h.
4242 (mark_addressable_queue): New var.
4243 (mark_addressable): Factor actual marking into...
4244 (mark_addressable_1): ... this. Queue it up during expand.
4245 (mark_addressable_2): New.
4246 (flush_mark_addressable_queue): New.
4247 * gimple-expr.h (flush_mark_addressable_queue): Declare.
4248 * cfgexpand.c: Include gimple-expr.h.
4249 (pass_expand::execute): Flush mark_addressable queue.
4251 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
4253 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
4254 bb_no_side_effects_p tests...
4255 (tree_ssa_ifcombine_bb): ... here.
4257 PR tree-optimization/68083
4258 * tree-ssa-ifcombine.c: Include tree-ssa.h.
4259 (bb_no_side_effects_p): Test for undefined uses too.
4260 * tree-ssa.c (gimple_uses_undefined_value_p): New.
4261 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
4263 2015-11-02 Jeff Law <law@redhat.com>
4265 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
4266 cases where the loop latch edge is in the middle of an FSM path.
4268 2015-11-03 Tom de Vries <tom@codesourcery.com>
4270 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
4271 (make_param_constraints): ... this. Add and handle restrict_name
4272 parameter. Handle is_full_var case.
4273 (intra_create_variable_infos): Use make_param_constraints.
4275 2015-11-03 Tom de Vries <tom@codesourcery.com>
4277 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
4278 make_copy_constraint call with make_constraint_from call.
4280 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
4282 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
4285 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
4287 * builtins.h (fold_fma): Move to fold-const-call.h.
4288 * builtins.c: Include fold-const-call.h.
4289 (mathfn_built_in_2): New function, split out from...
4290 (mathfn_built_in_1): ...here.
4291 (do_real_to_int_conversion, fold_const_builtin_pow)
4292 (fold_const_builtin_logb, fold_const_builtin_significand)
4293 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
4294 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
4295 (fold_builtin_sincos): Use fold_const_call to handle constants.
4296 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
4297 checks for ERROR_MARK. Use fold_const_call to handle constant
4298 folds for math functions.
4299 (fold_fma): Move to fold-const-call.c.
4300 * fold-const.c: Include fold-const-call.h.
4301 * Makefile.in (OBJS): Add fold-const-call.o.
4302 (PLUGIN_HEADERS): Add fold-const-call.h.
4303 * realmpfr.h (real_from_mpfr): Allow the format to be specified
4305 * realmpfr.c (real_from_mpfr): Likewise.
4306 * fold-const-call.h, fold-const-call.c: New files.
4308 2015-11-02 Julian Brown <julian@codesourcery.com>
4310 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
4311 brackets and semicolon.
4313 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
4316 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
4318 PR tree-optimization/65963
4319 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
4320 LSHIFT_EXPRs as equivalent MULT_EXPRs.
4322 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
4325 * fold-const.c: Include "md5.h".
4327 2015-11-01 Jeff Law <law@redhat.com>
4329 * vmsdbgout.c: Revert unused header file reduction patch.
4331 * config/mcore/mcore.c: Include regs.h.
4333 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
4335 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
4337 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
4339 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
4340 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
4341 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
4343 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
4345 * ggc-common.c: Restore needed header for checking=release.
4347 2015-10-31 Tom de Vries <tom@codesourcery.com>
4349 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
4351 2015-10-31 Tom de Vries <tom@codesourcery.com>
4353 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
4354 existing varinfo for arguments.
4356 2015-10-31 Tom de Vries <tom@codesourcery.com>
4358 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
4359 create_function_info_for. Dump constraints generated during
4360 create_function_info_for. Move intra_create_variable_infos call and
4361 function-return-values-escape bit to ...
4362 (create_function_info_for): ... here, and merge
4363 intra_create_variable_infos call with argument loop. Add and handle
4364 nonlocal_p parameter.
4366 2015-10-31 Tom de Vries <tom@codesourcery.com>
4368 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
4369 updating is alap, and seperated from preceding code. Make sure
4370 insert_vi_for_tree is seperated from surrounding code.
4372 2015-10-31 Tom de Vries <tom@codesourcery.com>
4374 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
4376 2015-10-30 Jeff Law <law@redhat.com>
4377 Nathan Sidwell <nathan@acm.org>
4379 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
4381 (MOVE_MAX): Set to 8.
4383 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
4385 * cgraph.c: Include context.h for offloading.
4386 * varpool.c: Include context.h and omp-low.h.
4388 2015-10-30 Anatoly Sokolov <aesok@post.ru>
4390 * rtl.h (contains_symbol_ref_p): Declare.
4391 (SYMBOL_REF_P): Define.
4392 * rtlanal.c (contains_symbol_ref_p: New function.
4393 * lra-constraints.c (contains_symbol_ref_p): Remove.
4394 * var-tracking.c (contains_symbol_ref): Remove.
4395 (track_expr_p): Use contains_symbol_ref_p instead of
4396 contains_symbol_ref.
4398 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
4400 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
4401 * fold-const.c (get_array_ctor_element_at_index): New.
4402 (fold): Remove binary-search through CONSTRUCTOR, call previous.
4404 * fold-const.h (get_array_ctor_element_at_index): New.
4406 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
4408 * Makefile.in (OBJS): Add multiple_target.o.
4409 * attrib.c (make_attribute): Moved from config/i386/i386.c
4410 * config/i386/i386.c (make_attribute): Deleted.
4411 * multiple_target.c (create_dispatcher_calls): New.
4412 (get_attr_len): Ditto.
4413 (get_attr_str): Ditto.
4414 (separate_attrs): Ditto.
4415 (is_valid_asm_symbol): Ditto.
4416 (create_new_asm_name): Ditto.
4417 (create_target_clone): Ditto.
4418 (expand_target_clones): Ditto.
4419 (ipa_target_clone): Ditto.
4420 (ipa_dispatcher_calls): Ditto.
4421 * passes.def (pass_target_clone): Two new ipa passes.
4422 * tree-pass.h (make_pass_target_clone): Ditto.
4423 * doc/extend.texi (target_clones): New attribute description.
4425 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
4427 PR rtl-optimization/68106
4428 * lra-remat.c (input_regno_present_p): Process hard regs
4429 explicitly present in machine description insns.
4430 (call_used_input_regno_present_p): Ditto.
4431 (calculate_gen_cands): Ditto.
4434 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
4436 * config/arm/neon-testgen.ml: Fix comment typo.
4438 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4440 * rtlanal.c (reg_set_p): Expand function comment.
4442 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
4444 * alias.c: Remove unused headers.
4446 * attribs.c: Likewise.
4447 * auto-inc-dec.c: Likewise.
4448 * auto-profile.c: Likewise.
4449 * bb-reorder.c: Likewise.
4450 * bitmap.c: Likewise.
4451 * bt-load.c: Likewise.
4452 * builtins.c: Likewise.
4453 * caller-save.c: Likewise.
4454 * calls.c: Likewise.
4457 * cfganal.c: Likewise.
4458 * cfgbuild.c: Likewise.
4459 * cfgcleanup.c: Likewise.
4460 * cfgexpand.c: Likewise.
4461 * cfghooks.c: Likewise.
4462 * cfgloop.c: Likewise.
4463 * cfgloopanal.c: Likewise.
4464 * cfgloopmanip.c: Likewise.
4465 * cfgrtl.c: Likewise.
4466 * cgraph.c: Likewise.
4467 * cgraphbuild.c: Likewise.
4468 * cgraphclones.c: Likewise.
4469 * cgraphunit.c: Likewise.
4470 * cilk-common.c: Likewise.
4471 * combine-stack-adj.c: Likewise.
4472 * combine.c: Likewise.
4473 * compare-elim.c: Likewise.
4474 * convert.c: Likewise.
4475 * coverage.c: Likewise.
4476 * cppbuiltin.c: Likewise.
4477 * cprop.c: Likewise.
4479 * cselib.c: Likewise.
4480 * data-streamer-in.c: Likewise.
4481 * data-streamer-out.c: Likewise.
4482 * data-streamer.c: Likewise.
4483 * dbxout.c: Likewise.
4486 * debug.c: Likewise.
4487 * df-core.c: Likewise.
4488 * df-problems.c: Likewise.
4489 * df-scan.c: Likewise.
4491 * dojump.c: Likewise.
4492 * dominance.c: Likewise.
4493 * domwalk.c: Likewise.
4494 * double-int.c: Likewise.
4496 * dumpfile.c: Likewise.
4497 * dwarf2asm.c: Likewise.
4498 * dwarf2cfi.c: Likewise.
4499 * dwarf2out.c: Likewise.
4500 * emit-rtl.c: Likewise.
4501 * except.c: Likewise.
4502 * explow.c: Likewise.
4503 * expmed.c: Likewise.
4505 * final.c: Likewise.
4506 * fixed-value.c: Likewise.
4507 * fold-const.c: Likewise.
4508 * function.c: Likewise.
4509 * fwprop.c: Likewise.
4511 * generic-match-head.c: Likewise.
4512 * ggc-common.c: Likewise.
4513 * gimple-builder.c: Likewise.
4514 * gimple-expr.c: Likewise.
4515 * gimple-fold.c: Likewise.
4516 * gimple-iterator.c: Likewise.
4517 * gimple-low.c: Likewise.
4518 * gimple-match-head.c: Likewise.
4519 * gimple-pretty-print.c: Likewise.
4520 * gimple-ssa-isolate-paths.c: Likewise.
4521 * gimple-ssa-strength-reduction.c: Likewise.
4522 * gimple-streamer-in.c: Likewise.
4523 * gimple-streamer-out.c: Likewise.
4524 * gimple-walk.c: Likewise.
4525 * gimple.c: Likewise.
4526 * gimplify-me.c: Likewise.
4527 * gimplify.c: Likewise.
4528 * godump.c: Likewise.
4529 * graph.c: Likewise.
4530 * graphds.c: Likewise.
4531 * haifa-sched.c: Likewise.
4532 * hw-doloop.c: Likewise.
4533 * ifcvt.c: Likewise.
4534 * init-regs.c: Likewise.
4535 * internal-fn.c: Likewise.
4536 * ipa-chkp.c: Likewise.
4537 * ipa-comdats.c: Likewise.
4538 * ipa-cp.c: Likewise.
4539 * ipa-devirt.c: Likewise.
4540 * ipa-icf-gimple.c: Likewise.
4541 * ipa-icf.c: Likewise.
4542 * ipa-inline-analysis.c: Likewise.
4543 * ipa-inline-transform.c: Likewise.
4544 * ipa-inline.c: Likewise.
4545 * ipa-polymorphic-call.c: Likewise.
4546 * ipa-profile.c: Likewise.
4547 * ipa-prop.c: Likewise.
4548 * ipa-pure-const.c: Likewise.
4549 * ipa-ref.c: Likewise.
4550 * ipa-reference.c: Likewise.
4551 * ipa-split.c: Likewise.
4552 * ipa-utils.c: Likewise.
4553 * ipa-visibility.c: Likewise.
4555 * ira-build.c: Likewise.
4556 * ira-color.c: Likewise.
4557 * ira-conflicts.c: Likewise.
4558 * ira-costs.c: Likewise.
4559 * ira-emit.c: Likewise.
4560 * ira-lives.c: Likewise.
4563 * langhooks.c: Likewise.
4565 * lists.c: Likewise.
4566 * loop-doloop.c: Likewise.
4567 * loop-init.c: Likewise.
4568 * loop-invariant.c: Likewise.
4569 * loop-iv.c: Likewise.
4570 * loop-unroll.c: Likewise.
4571 * lower-subreg.c: Likewise.
4572 * lra-assigns.c: Likewise.
4573 * lra-coalesce.c: Likewise.
4574 * lra-constraints.c: Likewise.
4575 * lra-eliminations.c: Likewise.
4576 * lra-lives.c: Likewise.
4577 * lra-remat.c: Likewise.
4578 * lra-spills.c: Likewise.
4580 * lto-cgraph.c: Likewise.
4581 * lto-compress.c: Likewise.
4582 * lto-opts.c: Likewise.
4583 * lto-section-in.c: Likewise.
4584 * lto-section-out.c: Likewise.
4585 * lto-streamer-in.c: Likewise.
4586 * lto-streamer-out.c: Likewise.
4587 * lto-streamer.c: Likewise.
4589 * mode-switching.c: Likewise.
4590 * modulo-sched.c: Likewise.
4591 * optabs.c: Likewise.
4592 * opts-global.c: Likewise.
4593 * passes.c: Likewise.
4594 * plugin.c: Likewise.
4595 * postreload-gcse.c: Likewise.
4596 * postreload.c: Likewise.
4597 * predict.c: Likewise.
4598 * print-tree.c: Likewise.
4599 * profile.c: Likewise.
4601 * realmpfr.c: Likewise.
4602 * recog.c: Likewise.
4604 * reg-stack.c: Likewise.
4605 * regcprop.c: Likewise.
4606 * reginfo.c: Likewise.
4607 * regrename.c: Likewise.
4608 * regstat.c: Likewise.
4609 * reload.c: Likewise.
4610 * reload1.c: Likewise.
4611 * reorg.c: Likewise.
4612 * resource.c: Likewise.
4613 * rtl-chkp.c: Likewise.
4614 * rtl-error.c: Likewise.
4615 * rtlanal.c: Likewise.
4616 * rtlhooks.c: Likewise.
4617 * sanopt.c: Likewise.
4618 * sched-deps.c: Likewise.
4619 * sched-ebb.c: Likewise.
4620 * sched-rgn.c: Likewise.
4621 * sdbout.c: Likewise.
4622 * sel-sched-dump.c: Likewise.
4623 * sel-sched-ir.c: Likewise.
4624 * sel-sched.c: Likewise.
4626 * shrink-wrap.c: Likewise.
4627 * simplify-rtx.c: Likewise.
4628 * stack-ptr-mod.c: Likewise.
4629 * statistics.c: Likewise.
4631 * stor-layout.c: Likewise.
4632 * store-motion.c: Likewise.
4633 * stringpool.c: Likewise.
4634 * symtab.c: Likewise.
4635 * target-globals.c: Likewise.
4636 * targhooks.c: Likewise.
4637 * toplev.c: Likewise.
4638 * tracer.c: Likewise.
4639 * trans-mem.c: Likewise.
4640 * tree-affine.c: Likewise.
4641 * tree-call-cdce.c: Likewise.
4642 * tree-cfg.c: Likewise.
4643 * tree-cfgcleanup.c: Likewise.
4644 * tree-chkp-opt.c: Likewise.
4645 * tree-chkp.c: Likewise.
4646 * tree-chrec.c: Likewise.
4647 * tree-complex.c: Likewise.
4648 * tree-data-ref.c: Likewise.
4649 * tree-dfa.c: Likewise.
4650 * tree-diagnostic.c: Likewise.
4651 * tree-dump.c: Likewise.
4652 * tree-eh.c: Likewise.
4653 * tree-emutls.c: Likewise.
4654 * tree-if-conv.c: Likewise.
4655 * tree-inline.c: Likewise.
4656 * tree-into-ssa.c: Likewise.
4657 * tree-iterator.c: Likewise.
4658 * tree-loop-distribution.c: Likewise.
4659 * tree-nested.c: Likewise.
4660 * tree-nrv.c: Likewise.
4661 * tree-object-size.c: Likewise.
4662 * tree-outof-ssa.c: Likewise.
4663 * tree-parloops.c: Likewise.
4664 * tree-phinodes.c: Likewise.
4665 * tree-predcom.c: Likewise.
4666 * tree-pretty-print.c: Likewise.
4667 * tree-profile.c: Likewise.
4668 * tree-scalar-evolution.c: Likewise.
4669 * tree-sra.c: Likewise.
4670 * tree-ssa-address.c: Likewise.
4671 * tree-ssa-alias.c: Likewise.
4672 * tree-ssa-ccp.c: Likewise.
4673 * tree-ssa-coalesce.c: Likewise.
4674 * tree-ssa-copy.c: Likewise.
4675 * tree-ssa-dce.c: Likewise.
4676 * tree-ssa-dse.c: Likewise.
4677 * tree-ssa-forwprop.c: Likewise.
4678 * tree-ssa-ifcombine.c: Likewise.
4679 * tree-ssa-live.c: Likewise.
4680 * tree-ssa-loop-ch.c: Likewise.
4681 * tree-ssa-loop-im.c: Likewise.
4682 * tree-ssa-loop-ivcanon.c: Likewise.
4683 * tree-ssa-loop-ivopts.c: Likewise.
4684 * tree-ssa-loop-manip.c: Likewise.
4685 * tree-ssa-loop-niter.c: Likewise.
4686 * tree-ssa-loop-prefetch.c: Likewise.
4687 * tree-ssa-loop-unswitch.c: Likewise.
4688 * tree-ssa-loop.c: Likewise.
4689 * tree-ssa-math-opts.c: Likewise.
4690 * tree-ssa-operands.c: Likewise.
4691 * tree-ssa-phiopt.c: Likewise.
4692 * tree-ssa-phiprop.c: Likewise.
4693 * tree-ssa-pre.c: Likewise.
4694 * tree-ssa-propagate.c: Likewise.
4695 * tree-ssa-reassoc.c: Likewise.
4696 * tree-ssa-scopedtables.c: Likewise.
4697 * tree-ssa-sink.c: Likewise.
4698 * tree-ssa-strlen.c: Likewise.
4699 * tree-ssa-structalias.c: Likewise.
4700 * tree-ssa-tail-merge.c: Likewise.
4701 * tree-ssa-ter.c: Likewise.
4702 * tree-ssa-threadupdate.c: Likewise.
4703 * tree-ssa-uncprop.c: Likewise.
4704 * tree-ssa-uninit.c: Likewise.
4705 * tree-ssa.c: Likewise.
4706 * tree-ssanames.c: Likewise.
4707 * tree-stdarg.c: Likewise.
4708 * tree-streamer-in.c: Likewise.
4709 * tree-streamer-out.c: Likewise.
4710 * tree-streamer.c: Likewise.
4711 * tree-switch-conversion.c: Likewise.
4712 * tree-tailcall.c: Likewise.
4713 * tree-vect-data-refs.c: Likewise.
4714 * tree-vect-generic.c: Likewise.
4715 * tree-vect-loop-manip.c: Likewise.
4716 * tree-vect-loop.c: Likewise.
4717 * tree-vect-patterns.c: Likewise.
4718 * tree-vect-slp.c: Likewise.
4719 * tree-vect-stmts.c: Likewise.
4720 * tree-vectorizer.c: Likewise.
4721 * tree-vrp.c: Likewise.
4724 * ubsan.c: Likewise.
4725 * value-prof.c: Likewise.
4726 * var-tracking.c: Likewise.
4727 * varasm.c: Likewise.
4728 * varpool.c: Likewise.
4729 * vmsdbgout.c: Likewise.
4730 * vtable-verify.c: Likewise.
4732 * wide-int-print.cc: Likewise.
4733 * wide-int.cc: Likewise.
4734 * xcoffout.c: Likewise.
4736 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
4738 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
4739 between pass numbering and execution order.
4741 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4743 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
4744 check for dependencies.
4746 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
4748 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
4751 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
4753 * real.h (format_helper): New.
4754 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
4755 (real_from_target, real_nan, real_2expN, real_value_truncate)
4756 (significand_size, real_from_string2, exact_real_inverse)
4757 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
4758 (real_round, real_isinteger, real_from_integer): Replace
4759 machine_mode arguments with format_helper arguments.
4760 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
4761 (real_from_integer, real_nan, real_2expN, real_convert)
4762 (real_value_truncate, exact_real_truncate, real_to_target)
4763 (real_from_target, significand_size, real_powi, real_trunc)
4764 (real_floor, real_ceil, real_round, real_isinteger): Replace
4765 machine_mode arguments with format_helper arguments.
4766 (real_to_target_fmt, real_from_target_fmt): Delete.
4767 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
4768 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
4769 argument with real_format.
4770 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
4772 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
4774 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
4775 (fixed_to_decimal, fixed_convert_from_real)
4776 (real_convert_from_fixed): Fix mode arguments to real_2expN.
4778 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
4780 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
4781 SCALAR_FLOAT_MODE_P.
4783 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
4785 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
4786 (completely_scalarize): Comment zero-length arrays.
4787 (get_access_replacement): Correct comment re. precondition.
4789 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4791 * config/i386/i386.c (get_builtin_code_for_version): Set priority
4792 for PROCESSOR_ZNVER1.
4793 (enum processor_model): Add M_AMDFAM17H_znver1.
4794 (struct arch_names_table): Likewise.
4795 * doc/extend.texi: ADD znver1.
4797 2015-10-30 Richard Biener <rguenther@suse.de>
4799 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
4800 fold () on single RHSs. Allow CONSTRUCTORS with trailing
4801 zeros to be folded to VECTOR_CSTs.
4802 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
4803 * fold-const.c (fold): Use build_vector_from_ctor.
4805 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
4807 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
4808 "mov %0.h[0], %1.h[0] to "neon_move".
4809 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
4810 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
4812 (*cmovsi_insn_uxtw): Likewise.
4814 2015-10-30 Tom de Vries <tom@codesourcery.com>
4816 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
4817 unsigned, and initialize, and use initial value instead of hardcoded
4818 constant. Add generic constraints dumping section. Don't dump global
4819 initializers constraints dumping section if empty. Don't update
4820 variable from if unused.
4822 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
4824 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
4825 flag_checking and/or CHECKING_P to eliminate conditional compilation
4827 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
4828 * config/bfin/bfin.c (hwloop_optimize): Likewise.
4829 * config/i386/i386.c (ix86_print_operand_address): Likewise.
4830 (output_387_binary_op): Likewise.
4831 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
4832 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
4833 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
4835 * config/rs6000/rs6000.h: Likewise.
4836 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
4838 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
4840 * config/sh/sh.opt (mfdpic): Add missing period.
4842 2015-08-29 Anatoly Sokolov <aesok@post.ru>
4844 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4845 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
4846 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4847 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
4848 mcore_base_register_rtx_p, mcore_legitimate_index_p,
4849 mcore_legitimate_address_p): New functions.
4850 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4852 2015-10-29 Jeff Law <law@redhat.com>
4854 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
4856 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
4857 * tree-ssa-threadedge.c
4858 (record_temporary_equivalences_from_stmts_at_dest): Remove
4859 backedge_seen argument and associated code which invalidated
4860 equivalences based on the value of that argument.
4861 (thread_through_normal_block): Corresponding changes.
4863 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
4865 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
4866 function earlier in the file.
4867 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
4868 df_regs_ever_live_p.
4870 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
4872 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
4875 2015-10-29 Richard Henderson <rth@redhat.com>
4879 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
4880 sse check to the exact conditions of PR 67609.
4882 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
4884 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
4885 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
4886 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
4887 of the traditional names that TFmode uses for handling IEEE
4888 extended double. If -mfloat128, add KFmode functions for all of
4889 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
4890 make TFmode use the same emulation functions as KFmode.
4891 (init_float128_ibm): Likewise.
4892 (init_float128_ieee): Likewise.
4893 (rs6000_generate_compare): For IEEE 128-bit floating point
4894 comparisons, call the unordered comparison function instead of the
4895 ordered comparison function.
4896 (rs6000_expand_float128_convert): Deal with operands that are
4897 memory operands. Restructure the code to use a switch statement on
4898 the mode. Add support for TFmode defaulting to either IBM extended
4899 double or IEEE 128-bit floating point. If the underlying types are
4900 the same, use a move instead of a conversion function.
4901 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
4902 use for IEEE 128-bit floating point constants with -mfloat128.
4903 (rs6000_c_mode_for_suffix): Likewise.
4904 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
4905 128-bit floating point with IBM extended double floating point.
4906 (rs6000_invalid_binary_op): Likewise.
4907 (rs6000_gen_le_vsx_permute): On little endian systems generate a
4908 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
4909 types that can go in vector registers.
4910 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
4911 point types that can go in vector registers on little endian
4913 (mark_swaps_for_removal): Likewise.
4914 (rs6000_analyze_swaps): Likewise.
4915 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
4917 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
4918 rework IEEE 128-bit floating point insns to deal with TFmode being
4919 either IBM extended double or IEEE 128-bit floating point.
4921 (IBM128): Update iterator to add condition that the mode is IBM
4923 (IEEE128): New iterator for IEEE 128-bit floating point.
4924 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
4925 (FLOAT128): Likewise.
4926 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
4928 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
4929 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
4930 instead of hard coding TFmode or KFmode.
4931 (negtf2_internal): Likewise.
4932 (neg<mode>2_internal): Likewise.
4933 (abs<mode>2): Likewise.
4934 (abstf2_internal): Likewise.
4935 (abs<mode>2_internal): Likewise.
4936 (ieee_128bit_neg<mode>2): Likewise.
4937 (ieee_128bit_neg<mode>2_internal): Likewise.
4938 (ieee_128bit_abs<mode>2): Likewise.
4939 (ieee_128bit_abs<mode>2_internal): Likewise.
4940 (ieee_128bit_nabs<mode>2): Likewise.
4941 (ieee_128bit_nabs<mode>2_internal): Likewise.
4942 (extendiftf2): Add explicit conversions between 128-bit floating
4943 point types. Drop the old conversions that had become unwieldy.
4944 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
4945 (extendifkf2): Likewise.
4946 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
4947 (extendtfkf2): Likewise.
4948 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
4949 (trunciftf2): Likewise.
4950 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
4951 (truncifkf2): Likewise.
4952 (float<SDI:mode><IFKF:mode>2): Likewise.
4953 (trunckftf2): Likewise.
4954 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
4955 (trunctfif2): Likewise.
4956 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
4957 (extenddftf2): Rework 128-bit floating point conversions to
4958 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
4959 KFmode expanders into one function.
4960 (extenddf<mode>2): Likewise.
4961 (extenddftf2_fprs): Likewise.
4962 (extenddf<mode>2_fprs): Likewise.
4963 (extenddftf2_vsx): Likewise.
4964 (extenddf<mode>2_vsx): Likewise.
4965 (extendsftf2): Likewise.
4966 (extendsf<mode>2): Likewise.
4967 (trunctfdf2): Likewise.
4968 (trunc<mode>df2): Likewise.
4969 (trunctfdf2_internal1): Likewise.
4970 (trunc<mode>df2_internal1): Likewise.
4971 (trunctfdf2_internal2): Likewise.
4972 (trunc<mode>df2_internal2): Likewise.
4973 (trunctfsf2): Likewise.
4974 (trunc<mode>sf2): Likewise.
4975 (trunctfsf2_fprs): Likewise.
4976 (trunc<mode>sf2_fprs): Likewise.
4977 (floatsit2f): Likewise.
4978 (floatsi<mode>2): Likewise.
4979 (fix_trunc_helper): Likewise.
4980 (fix_trunc_helper<mode>): Likewise.
4981 (fix_trunctfsi2): Likewise.
4982 (fix_trunc<mode>si2): Likewise.
4983 (fix_trunctfsi2_fprs): Likewise.
4984 (fix_trunc<mode>si2_fprs): Likewise.
4985 (fix_trunctfsi2_internal): Likewise.
4986 (fix_trunc<mode>si2_internal): Likewise.
4987 (fix_trunctfdi2): Likewise.
4988 (fix_trunc<mode>di2): Likewise.
4989 (fixuns_trunctf<mode>2): Likewise.
4990 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
4991 (floatditf2): Likewise.
4992 (floatdi<mode>2): Likewise.
4993 (floatuns<mode>tf2): Likewise.
4994 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
4995 (cmptf_internal1): Use a mode iterator to add support for both
4996 types (IFmode, TFmode) that support IBM extended double.
4997 (cmp<mode>_internal1): Likewise.
4998 (cmptf_internal2): Likewise.
4999 (cmp<mode>_internal2): Likewise.
5001 * doc/extend.texi (Floating Types): Document __ibm128 and
5002 __float128 on PowerPC.
5004 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5005 -mfloat128 and -mno-float128.
5007 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
5009 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
5010 floating point modes that can go in vector registers.
5011 (MODES_TIEABLE_P): Move tests for vector modes before tests for
5012 scalar floating point, so that IEEE 128-bit floating point that
5013 can go in vector registers bind with vectors and not FP.
5014 (struct rs6000_args): Add libcall field.
5016 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
5017 and -mfloat128-software switches. Replace them with a binary
5019 (-mfloat128): Likewise.
5021 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
5022 128-bit floating point types in GPRs, even if the appropriate
5023 option enabling the type was not used.
5024 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
5026 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
5027 pre-decrement on IEEE 128-bit floating point values.
5028 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
5029 is IEEE 128-bit floating point.
5030 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
5031 128-bit floating point types that can go in vector registers.
5032 (rs6000_option_override_internal): Change -mfloat128-none and
5033 -mfloat128-software to -mfloat128, and move code to be near other
5034 VSX option handling.
5035 (rs6000_option_override_internal): Disable -mfloat128 if we don't
5036 have the Altivec ABI.
5037 (rs6000_init_builtins): Don't make TFmode use either IFmode or
5038 KFmode floating point nodes. Instead, have three separate nodes.
5039 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
5040 eventually moving the long double default to IEEE 128-bit floating
5042 (rs6000_opt_masks): Add -mfloat128.
5043 (struct rs6000_opt_var): Fix typo in comment.
5044 (init_cumulative_args): Initialize libcall field in
5046 (rs6000_function_arg): Treat library functions as if they had
5047 prototypes to prevent IEEE 128-bit support functions from passing
5048 arguments in both GPRs and vector registers.
5049 (rs6000_arg_partial_bytes): Likewise.
5051 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
5052 an option that can be turned on via -mcpu=<xxx>.
5054 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
5057 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5058 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
5059 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
5060 double is IBM extended double.
5062 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
5065 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
5067 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
5068 * genconditions.c: Define CHECKING_P in the generated code.
5069 * genextract.c: Use flag_checking in insn_extract.
5070 * gengtype.c (main): Remove conditional compilation.
5071 * gengtype.h: Likewise.
5073 2015-10-29 Jeff Law <law@redhat.com>
5075 PR tree-optimization/67892
5076 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
5078 (thread_through_normal_block): If we have seen a backedge, then
5079 do nothing. No longer call find_jump_threads_backwards here.
5080 (thread_across_edge): Use find_jump_threads_backwards to find
5081 jump threads if the old style threader was not successful.
5082 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
5083 gsi_last_nondebug_bb. Return NULL if the block does not end
5084 with a control statement.
5085 (find_jump_threads_backwards): Setup code moved here from
5086 tree-ssa-threadedge.c::thread_through_normal_block. Accept
5087 single edge argument instead of name & block.
5088 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
5091 2015-10-29 Tom de Vries <tom@codesourcery.com>
5093 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
5096 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
5098 * omp-low.c (lower_omp_target): Remove unreachable code & merge
5101 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
5103 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
5105 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
5107 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
5108 guard_bb0 and use guard_bb throughout.
5110 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
5112 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
5115 2015-10-29 Richard Biener <rguenther@suse.de>
5118 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
5121 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
5123 * alias.c: Reorder #include statements and remove duplicates.
5125 * attribs.c: Likewise.
5126 * auto-inc-dec.c: Likewise.
5127 * auto-profile.c: Likewise.
5128 * bb-reorder.c: Likewise.
5129 * bt-load.c: Likewise.
5130 * builtins.c: Likewise.
5131 * caller-save.c: Likewise.
5132 * calls.c: Likewise.
5135 * cfganal.c: Likewise.
5136 * cfgbuild.c: Likewise.
5137 * cfgcleanup.c: Likewise.
5138 * cfgexpand.c: Likewise.
5139 * cfghooks.c: Likewise.
5140 * cfgloop.c: Likewise.
5141 * cfgloopanal.c: Likewise.
5142 * cfgloopmanip.c: Likewise.
5143 * cfgrtl.c: Likewise.
5144 * cgraph.c: Likewise.
5145 * cgraphbuild.c: Likewise.
5146 * cgraphclones.c: Likewise.
5147 * cgraphunit.c: Likewise.
5148 * cilk-common.c: Likewise.
5149 * combine-stack-adj.c: Likewise.
5150 * combine.c: Likewise.
5151 * compare-elim.c: Likewise.
5152 * convert.c: Likewise.
5153 * coverage.c: Likewise.
5154 * cppbuiltin.c: Likewise.
5155 * cprop.c: Likewise.
5157 * cselib.c: Likewise.
5158 * data-streamer-in.c: Likewise.
5159 * data-streamer-out.c: Likewise.
5160 * data-streamer.c: Likewise.
5161 * dbxout.c: Likewise.
5164 * debug.c: Likewise.
5165 * df-core.c: Likewise.
5166 * df-problems.c: Likewise.
5167 * df-scan.c: Likewise.
5169 * dojump.c: Likewise.
5170 * dominance.c: Likewise.
5171 * double-int.c: Likewise.
5173 * dumpfile.c: Likewise.
5174 * dwarf2asm.c: Likewise.
5175 * dwarf2cfi.c: Likewise.
5176 * dwarf2out.c: Likewise.
5177 * emit-rtl.c: Likewise.
5178 * except.c: Likewise.
5179 * explow.c: Likewise.
5180 * expmed.c: Likewise.
5182 * final.c: Likewise.
5183 * fixed-value.c: Likewise.
5184 * fold-const.c: Likewise.
5185 * function.c: Likewise.
5186 * fwprop.c: Likewise.
5188 * generic-match-head.c: Likewise.
5189 * ggc-common.c: Likewise.
5190 * gimple-builder.c: Likewise.
5191 * gimple-expr.c: Likewise.
5192 * gimple-fold.c: Likewise.
5193 * gimple-iterator.c: Likewise.
5194 * gimple-low.c: Likewise.
5195 * gimple-match-head.c: Likewise.
5196 * gimple-pretty-print.c: Likewise.
5197 * gimple-ssa-isolate-paths.c: Likewise.
5198 * gimple-ssa-strength-reduction.c: Likewise.
5199 * gimple-streamer-in.c: Likewise.
5200 * gimple-streamer-out.c: Likewise.
5201 * gimple-walk.c: Likewise.
5202 * gimple.c: Likewise.
5203 * gimplify-me.c: Likewise.
5204 * gimplify.c: Likewise.
5205 * godump.c: Likewise.
5206 * graph.c: Likewise.
5207 * graphite-poly.c: Likewise.
5208 * haifa-sched.c: Likewise.
5209 * hw-doloop.c: Likewise.
5210 * ifcvt.c: Likewise.
5211 * incpath.c: Likewise.
5212 * init-regs.c: Likewise.
5213 * internal-fn.c: Likewise.
5214 * ipa-chkp.c: Likewise.
5215 * ipa-comdats.c: Likewise.
5216 * ipa-cp.c: Likewise.
5217 * ipa-devirt.c: Likewise.
5218 * ipa-icf-gimple.c: Likewise.
5219 * ipa-icf.c: Likewise.
5220 * ipa-inline-analysis.c: Likewise.
5221 * ipa-inline-transform.c: Likewise.
5222 * ipa-inline.c: Likewise.
5223 * ipa-polymorphic-call.c: Likewise.
5224 * ipa-profile.c: Likewise.
5225 * ipa-prop.c: Likewise.
5226 * ipa-pure-const.c: Likewise.
5227 * ipa-ref.c: Likewise.
5228 * ipa-reference.c: Likewise.
5229 * ipa-split.c: Likewise.
5230 * ipa-utils.c: Likewise.
5231 * ipa-visibility.c: Likewise.
5233 * ira-build.c: Likewise.
5234 * ira-color.c: Likewise.
5235 * ira-conflicts.c: Likewise.
5236 * ira-costs.c: Likewise.
5237 * ira-emit.c: Likewise.
5238 * ira-lives.c: Likewise.
5241 * langhooks.c: Likewise.
5243 * lists.c: Likewise.
5244 * loop-doloop.c: Likewise.
5245 * loop-init.c: Likewise.
5246 * loop-invariant.c: Likewise.
5247 * loop-iv.c: Likewise.
5248 * loop-unroll.c: Likewise.
5249 * lower-subreg.c: Likewise.
5250 * lra-assigns.c: Likewise.
5251 * lra-coalesce.c: Likewise.
5252 * lra-constraints.c: Likewise.
5253 * lra-eliminations.c: Likewise.
5254 * lra-lives.c: Likewise.
5255 * lra-remat.c: Likewise.
5256 * lra-spills.c: Likewise.
5258 * lto-cgraph.c: Likewise.
5259 * lto-compress.c: Likewise.
5260 * lto-opts.c: Likewise.
5261 * lto-section-in.c: Likewise.
5262 * lto-section-out.c: Likewise.
5263 * lto-streamer-in.c: Likewise.
5264 * lto-streamer-out.c: Likewise.
5265 * lto-streamer.c: Likewise.
5266 * mode-switching.c: Likewise.
5267 * modulo-sched.c: Likewise.
5268 * omp-low.c: Likewise.
5269 * optabs.c: Likewise.
5270 * opts-global.c: Likewise.
5271 * passes.c: Likewise.
5272 * plugin.c: Likewise.
5273 * postreload-gcse.c: Likewise.
5274 * postreload.c: Likewise.
5275 * predict.c: Likewise.
5276 * print-tree.c: Likewise.
5277 * profile.c: Likewise.
5279 * realmpfr.c: Likewise.
5280 * recog.c: Likewise.
5282 * reg-stack.c: Likewise.
5283 * regcprop.c: Likewise.
5284 * reginfo.c: Likewise.
5285 * regrename.c: Likewise.
5286 * regstat.c: Likewise.
5287 * reload.c: Likewise.
5288 * reload1.c: Likewise.
5289 * reorg.c: Likewise.
5290 * resource.c: Likewise.
5291 * rtl-chkp.c: Likewise.
5292 * rtl-error.c: Likewise.
5293 * rtlanal.c: Likewise.
5294 * rtlhooks.c: Likewise.
5295 * sanopt.c: Likewise.
5296 * sched-deps.c: Likewise.
5297 * sched-ebb.c: Likewise.
5298 * sched-rgn.c: Likewise.
5300 * shrink-wrap.c: Likewise.
5301 * simplify-rtx.c: Likewise.
5302 * stack-ptr-mod.c: Likewise.
5303 * statistics.c: Likewise.
5305 * stor-layout.c: Likewise.
5306 * store-motion.c: Likewise.
5307 * stringpool.c: Likewise.
5308 * symtab.c: Likewise.
5309 * target-globals.c: Likewise.
5310 * targhooks.c: Likewise.
5311 * toplev.c: Likewise.
5312 * tracer.c: Likewise.
5313 * trans-mem.c: Likewise.
5314 * tree-affine.c: Likewise.
5315 * tree-call-cdce.c: Likewise.
5316 * tree-cfg.c: Likewise.
5317 * tree-cfgcleanup.c: Likewise.
5318 * tree-chkp-opt.c: Likewise.
5319 * tree-chkp.c: Likewise.
5320 * tree-chrec.c: Likewise.
5321 * tree-complex.c: Likewise.
5322 * tree-data-ref.c: Likewise.
5323 * tree-dfa.c: Likewise.
5324 * tree-diagnostic.c: Likewise.
5325 * tree-dump.c: Likewise.
5326 * tree-eh.c: Likewise.
5327 * tree-emutls.c: Likewise.
5328 * tree-if-conv.c: Likewise.
5329 * tree-inline.c: Likewise.
5330 * tree-into-ssa.c: Likewise.
5331 * tree-iterator.c: Likewise.
5332 * tree-loop-distribution.c: Likewise.
5333 * tree-nested.c: Likewise.
5334 * tree-nrv.c: Likewise.
5335 * tree-object-size.c: Likewise.
5336 * tree-outof-ssa.c: Likewise.
5337 * tree-parloops.c: Likewise.
5338 * tree-phinodes.c: Likewise.
5339 * tree-predcom.c: Likewise.
5340 * tree-pretty-print.c: Likewise.
5341 * tree-profile.c: Likewise.
5342 * tree-scalar-evolution.c: Likewise.
5343 * tree-sra.c: Likewise.
5344 * tree-ssa-address.c: Likewise.
5345 * tree-ssa-alias.c: Likewise.
5346 * tree-ssa-ccp.c: Likewise.
5347 * tree-ssa-coalesce.c: Likewise.
5348 * tree-ssa-copy.c: Likewise.
5349 * tree-ssa-dce.c: Likewise.
5350 * tree-ssa-dom.c: Likewise.
5351 * tree-ssa-dse.c: Likewise.
5352 * tree-ssa-forwprop.c: Likewise.
5353 * tree-ssa-ifcombine.c: Likewise.
5354 * tree-ssa-live.c: Likewise.
5355 * tree-ssa-loop-ch.c: Likewise.
5356 * tree-ssa-loop-im.c: Likewise.
5357 * tree-ssa-loop-ivcanon.c: Likewise.
5358 * tree-ssa-loop-ivopts.c: Likewise.
5359 * tree-ssa-loop-manip.c: Likewise.
5360 * tree-ssa-loop-niter.c: Likewise.
5361 * tree-ssa-loop-prefetch.c: Likewise.
5362 * tree-ssa-loop-unswitch.c: Likewise.
5363 * tree-ssa-loop.c: Likewise.
5364 * tree-ssa-math-opts.c: Likewise.
5365 * tree-ssa-operands.c: Likewise.
5366 * tree-ssa-phiopt.c: Likewise.
5367 * tree-ssa-phiprop.c: Likewise.
5368 * tree-ssa-pre.c: Likewise.
5369 * tree-ssa-propagate.c: Likewise.
5370 * tree-ssa-reassoc.c: Likewise.
5371 * tree-ssa-sccvn.c: Likewise.
5372 * tree-ssa-scopedtables.c: Likewise.
5373 * tree-ssa-sink.c: Likewise.
5374 * tree-ssa-strlen.c: Likewise.
5375 * tree-ssa-structalias.c: Likewise.
5376 * tree-ssa-tail-merge.c: Likewise.
5377 * tree-ssa-ter.c: Likewise.
5378 * tree-ssa-threadedge.c: Likewise.
5379 * tree-ssa-threadupdate.c: Likewise.
5380 * tree-ssa-uncprop.c: Likewise.
5381 * tree-ssa-uninit.c: Likewise.
5382 * tree-ssa.c: Likewise.
5383 * tree-ssanames.c: Likewise.
5384 * tree-stdarg.c: Likewise.
5385 * tree-streamer-in.c: Likewise.
5386 * tree-streamer-out.c: Likewise.
5387 * tree-streamer.c: Likewise.
5388 * tree-switch-conversion.c: Likewise.
5389 * tree-tailcall.c: Likewise.
5390 * tree-vect-data-refs.c: Likewise.
5391 * tree-vect-generic.c: Likewise.
5392 * tree-vect-loop-manip.c: Likewise.
5393 * tree-vect-loop.c: Likewise.
5394 * tree-vect-patterns.c: Likewise.
5395 * tree-vect-slp.c: Likewise.
5396 * tree-vect-stmts.c: Likewise.
5397 * tree-vectorizer.c: Likewise.
5398 * tree-vrp.c: Likewise.
5401 * ubsan.c: Likewise.
5402 * value-prof.c: Likewise.
5403 * var-tracking.c: Likewise.
5404 * varasm.c: Likewise.
5405 * varpool.c: Likewise.
5406 * vtable-verify.c: Likewise.
5408 * wide-int-print.cc: Likewise.
5409 * wide-int.cc: Likewise.
5410 * xcoffout.c: Likewise.
5412 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
5414 * Makefile.in (NO_PIE_CFLAGS): New.
5415 (NO_PIE_FLAG): Likewise.
5416 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
5417 (NO_PIE_FLAG_FOR_BUILD): Likewise.
5418 (BUILD_NO_PIE_CFLAGS): Likewise.
5419 (BUILD_NO_PIE_FLAG): Likewise.
5420 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
5421 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
5422 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
5423 $(BUILD_NO_PIE_CFLAGS).
5424 (BUILD_CXXFLAGS): Likewise.
5425 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
5426 $(BUILD_NO_PIE_FLAG).
5427 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
5428 (BUILD_NO_PIE_FLAG): Likewise.
5429 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
5430 (NO_PIE_FLAG_FOR_BUILD): Likewise.
5431 * configure: Regenerated.
5433 2015-10-29 Richard Biener <rguenther@suse.de>
5436 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
5437 unsigned conditonal negation to ABS_EXPR.
5439 2015-10-29 Richard Biener <rguenther@suse.de>
5441 * gimple-match-head.c (gimple_simplify): Remove premature checking
5442 of builtin_decl_implicit of function calls we simplify.
5444 2015-10-29 Bin Cheng <bin.cheng@arm.com>
5446 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
5447 (get_computation_cost_at): Ditto.
5448 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
5451 2015-10-28 Tom de Vries <tom@codesourcery.com>
5453 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
5456 2015-10-28 Jason Merrill <jason@redhat.com>
5458 * Makefile.in (TAGS): Include libcpp and libiberty.
5460 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
5462 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
5463 (extract_omp_for_data): Remove OpenACC special handling of
5466 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
5467 (struct parallel): Update comment.
5468 (nvptx_reorg): Likewise.
5469 (nvptx_neuter): Cleanup whitespace.
5471 2015-10-28 Richard Henderson <rth@redhat.com>
5473 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
5475 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5478 * config/avr/predicates.md (low_io_address_operand): Don't
5479 consider MODE when computing upper bound.
5480 (io_address_operand): Likewise.
5482 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
5484 * fold-const.c (operand_equal_p): Do not verify that types are
5485 compatible for MEM_REFs.
5487 2015-10-28 Richard Biener <rguenther@suse.de>
5489 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
5490 in simplifying VEC_COND_EXPR conditions.
5492 2015-10-28 Tom de Vries <tom@codesourcery.com>
5494 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
5495 into vi_next of a full_var.
5497 2015-10-28 Tom de Vries <tom@codesourcery.com>
5499 * tree-ssa-structalias.c (new_var_info, make_heapvar)
5500 (make_constraint_from_restrict, make_constraint_from_global_restrict)
5501 (create_function_info_for, create_variable_info_for_1)
5502 (create_variable_info_for): Add and handle add_id parameter.
5503 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
5504 (init_base_vars): Add extra argument to calls to new_var_info.
5505 (get_vi_for_tree): Add extra argument to call to
5506 create_variable_info_for.
5507 (process_constraint, do_deref, process_all_all_constraints): Add extra
5508 argument to calls to new_scalar_tmp_constraint_exp.
5509 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
5510 argument to calls to make_heapvar.
5511 (make_restrict_var_constraints): Add extra argument to call to
5512 make_constraint_from_global_restrict.
5513 (intra_create_variable_infos): Add extra argument to call to
5514 create_variable_info_for_1.
5515 (ipa_pta_execute): Add extra argument to call to
5516 create_function_info_for.
5518 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5520 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
5521 (sibcall_value): Likewise.
5523 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
5525 * config/nvptx/nvptx.h (struct machine_function): Add
5527 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
5528 nvptx_expand_oacc_join): Declare.
5529 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
5530 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
5531 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
5532 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
5533 UNSPECV_JOINING, UNSPECV_JOIN): New.
5534 (BITS, BITD): New mode iterators.
5535 (br_true_uni, br_false_uni): New.
5536 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
5537 (oacc_dim_size, oacc_dim_pos): New.
5538 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
5539 (oacc_fork, oacc_join): New.
5540 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
5541 (worker_load<mode>, worker_store<mode>): New.
5542 (nvptx_barsync): New.
5543 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
5544 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
5545 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
5546 worker_bcast_sym): New.
5547 (nvptx_option_override): Initialize worker broadcast buffer.
5548 (nvptx_emit_forking, nvptx_emit_joining): New.
5549 (nvptx_init_axis_predicate): New.
5550 (nvptx_declare_function_name): Init axis predicates.
5551 (nvptx_expand_call): Add fork/join markers around routine call.
5552 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
5553 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
5554 (nvptx_gen_vcast): New.
5555 (struct wcast_data_t): New.
5556 (enum propagate_mask): New.
5557 (nvptx_gen_wcast): New.
5558 (nvptx_print_operand): Add 'S' case.
5559 (struct parallel): New.
5560 (parallel::parallel, parallel::~parallel): New.
5561 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
5562 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
5563 nvptx_find_par, nvptx_discover_pars): New.
5564 (nvptx_propagate): New.
5565 (vprop_gen, nvptx_vpropagate): New.
5566 (wprop_gen, nvptx_wpropagate): New.
5568 (nvptx_single, nvptx_skip_par): New.
5569 (nvptx_process_pars, nvptx_neuter_pars): New.
5570 (ntptx_reorg): Split blocks, generate parallel structure, apply
5572 (nvptx_cannot_copy_insn_p): New.
5573 (nvptx_file_end): Emit worker broadcast decl.
5574 (nvptx_goacc_fork_join): New.
5575 (TARGET_CANNOT_COPY_INSN_P): Override.
5576 (TARGET_GOACC_FORK_JOIN): Override.
5578 2015-10-28 Richard Biener <rguenther@suse.de>
5580 * fold-const.c (negate_expr_p): Adjust the division case to
5581 properly avoid introducing undefined overflow.
5582 (fold_negate_expr): Likewise.
5584 2015-10-28 Richard Biener <rguenther@suse.de>
5586 PR tree-optimization/65962
5587 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5588 Avoid creating loop carried dependences also for outer loops
5589 of the loop a use to replace is in.
5591 2015-10-28 Richard Biener <rguenther@suse.de>
5593 * common.opt (fchecking): New flag controlling flag_checking.
5594 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
5595 * timevar.c (timer::print): Adjust output.
5596 * doc/invoke.texi (fchecking): Document.
5598 2015-10-28 Richard Biener <rguenther@suse.de>
5601 * fold-const.c (negate_expr_p): We cannot negate plus or minus
5602 if overflow is not wrapping. Likewise multiplication unless
5603 one operand is constant and not power of two.
5604 (fold_negate_expr): Adjust accordingly.
5606 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5608 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
5610 (is_oacc_parallel, is_oacc_kernels): New.
5611 (enclosing_target_ctx): May return NULL.
5612 (ctx_in_oacc_kernels_region): New.
5613 (check_oacc_kernel_gwv): New.
5614 (oacc_loop_or_target_p): Delete.
5615 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
5616 operands. Strip reductions fro kernels.
5617 (scan_omp_target): Don't calculate gwv mask.
5618 (lower_oacc_head_mark, lower_oacc_loop_marker,
5619 lower_oacc_head_tail): New.
5620 (struct oacc_collapse): New.
5621 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
5622 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5623 Remove OpenACC handling.
5624 (expand_oacc_for): New.
5625 (expand_omp_for): Call expand_oacc_for.
5626 (lower_omp_for): Call lower_oacc_head_tail.
5628 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
5630 * attribs.c (check_attribute_tables): New function, broken out from...
5631 (init_attributes): Use it.
5632 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
5633 gcc_checking_assert and checking_* functions to eliminate
5634 ENABLE_CHECKING conditionals.
5635 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
5636 (pass_expand::execute): Likewise.
5637 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
5638 * cgraphunit.c (mark_functions_to_output): Likewise.
5639 (cgraph_node::expand_thunk): Likewise.
5640 (symbol_table::compile): Likewise.
5641 * ddg.c (add_cross_iteration_register_deps): Likewise.
5642 (create_ddg_all_sccs): Likewise.
5643 * df-core.c (df_finish_pass, df_analyze): Likewise.
5644 * diagnostic-core.h: Likewise.
5645 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
5646 * dominance.c (calculate_dominance_info): Likewise.
5647 * dwarf2out.c (add_AT_die_ref): Likewise.
5648 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
5649 (loc_list_from_tree, gen_lexical_block_die): Likewise.
5650 gen_type_die_with_usage, gen_type_die): Likewise.
5651 (dwarf2out_decl): Likewise.
5652 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
5653 * except.c (duplicate_eh_regions): Likewise.
5654 * fwprop.c (register_active_defs, update_df_init): Likewise.
5655 (fwprop_init, fwprop_done): Likewise.
5656 (update_uses): Likewise.
5657 * ggc-page.c (ggc_grow): Likewise.
5658 * gimplify.c (gimplify_body): Likewise.
5659 (gimplify_hasher::equal): Likewise.
5660 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
5661 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
5663 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
5664 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
5665 * hash-table.h (::find_empty_slot_for_expand): Likewise.
5666 * ifcvt.c (if_convert): Likewise.
5667 * ipa-cp.c (ipcp_propagate_stage): Likewise.
5668 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
5669 (odr_type_p, odr_types_equivalent_p): Likewise.
5670 (add_type_duplicate, get_odr_type): Likewise.
5671 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
5672 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
5673 (sem_item_optimizer::verify_classes): Likewise.
5674 (sem_item_optimizer::traverse_congruence_split): Likewise.
5675 (sem_item_optimizer::checking_verify_classes): New.
5676 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
5678 * cfgrtl.c (commit_edge_insertions): Likewise.
5679 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
5680 (rtl_flow_call_edges_add): Likewise.
5681 * cgraph.c (symbol_table::create_edge): Likewise.
5682 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5683 * cgraph.h (symtab_node): Likewise.
5684 (symtab_node::checking_verify_symtab_nodes): Define.
5685 (cgraph_node::checking_verify_cgraph_nodes): Define.
5686 * cfghooks.h (checking_verify_flow_info): Define.
5687 * cfgloop.h (checking_verify_loop_structure): Define.
5688 * dominance.h (checking_verify_dominators): Define.
5689 * et-forest.c: Fix comment.
5690 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
5691 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5692 ENABLE_CHECKING conditionals.
5693 * ipa-inline-transform.c (save_inline_function_body): Likewise.
5694 * ipa-inline.c (inline_small_functions): Likewise.
5695 (early_inliner): Likewise.
5696 * ipa-inline.h (estimate_edge_growth): Likewise.
5697 * ipa-visibility.c (function_and_variable_visibility): Likewise.
5698 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5699 (ipa_single_use): Likewise.
5700 * ira-int.h: Likewise.
5701 * ira.c (ira): Likewise.
5702 * loop-doloop.c (doloop_optimize_loops): Likewise.
5703 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
5704 * loop-invariant.c (move_loop_invariants): Likewise.
5705 * lra-assigns.c (lra_assign): Likewise.
5706 * lra-constraints.c (lra_constraints): Likewise.
5707 * lra-eliminations.c (lra_eliminate): Likewise.
5708 * lra-int.h (struct lra_reg): Likewise.
5709 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
5710 (lra_create_live_ranges_1): Likewise.
5711 * lra-remat.c (create_remat_bb_data): Likewise.
5712 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
5714 (check_rtl): Always define. Remove incorrect guard around
5715 extract_constrain_insn call.
5716 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
5717 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5718 ENABLE_CHECKING conditionals.
5719 * lto-streamer-out.c (DFS::DFS): Likewise.
5720 (lto_output): Likewise.
5721 * lto-streamer.c (lto_streamer_init): Likewise.
5722 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
5723 expand_omp_target, execute_expand_omp): Likewise.
5724 (lower_omp_target): Likewise.
5725 * passes.c (execute_function_todo): Likewise.
5726 (execute_todo, execute_one_pass): Likewise.
5727 (verify_curr_properties): Always define.
5728 * predict.c (tree_estimate_probability: Use flag_checking,
5729 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5730 ENABLE_CHECKING conditionals.
5731 (propagate_freq): Likewise.
5732 * pretty-print.c (pp_format): Likewise.
5733 * real.c (real_to_decimal_for_mode): Likewise.
5734 * recog.c (split_all_insns): Likewise.
5735 * regcprop.c (kill_value_one_regno): Likewise.
5736 (copy_value): Likewise.
5737 (validate_value_data): Define unconditionally.
5738 * reload.c: Fix comment.
5739 * timevar.c: Include options.h
5740 * tree-ssa.h (checking_verify_ssa): Define.
5741 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
5742 * sched-deps.c (CHECK): Remove unused macro.
5743 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
5744 gcc_checking_assert and checking_* functions to eliminate
5745 ENABLE_CHECKING conditionals.
5746 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
5747 * sel-sched.c (struct moveop_static_params): Likewise.
5748 (find_best_reg_for_expr, move_cond_jump): Likewise.
5749 (move_op_orig_expr_not_found): Likewise.
5750 (code_motion_process_successors, move_op): Likewise.
5751 * ssa-iterators.h (first_readonly_imm_use): Likewise.
5752 (next_readonly_imm_use): Likewise.
5753 * store-motion.c (compute_store_table): Likewise.
5754 * symbol-summary.h (function_summary::function_summary): Likewise.
5755 * target.h (cumulative_args_t): Likewise.
5756 (get_cumulative_args, pack_cumulative_args): Likewise.
5757 * timevar.c: (timer::print): Likewise.
5758 * trans-mem.c (ipa_tm_execute): Likewise.
5759 * tree-cfg.c (move_stmt_op): Likewise.
5760 (move_sese_region_to_fn): Likewise.
5761 (gimple_flow_call_edges_add): Likewise.
5762 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
5764 * tree-eh.c (remove_unreachable_handlers): Likewise.
5765 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
5766 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
5767 * tree-into-ssa.c (update_ssa): Likewise.
5768 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
5769 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
5770 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
5771 * tree-predcom.c (suitable_component_p): Likewise.
5772 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
5773 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
5774 * tree-ssa-live.c (verify_live_on_entry): Likewise.
5775 * tree-ssa-live.h (register_ssa_partition): Likewise.
5776 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
5777 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
5778 (tree_transform_and_unroll_loop): Likewise.
5779 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
5780 * tree-ssa-operands.c (get_expr_operands): Likewise.
5781 * tree-ssa-propagate.c (replace_exp_1): Likewise.
5782 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
5783 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
5784 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
5785 * tree-ssanames.c (release_ssa_name_fn): Likewise.
5786 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
5787 * tree-vect-loop-manip.c
5788 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
5789 (slpeel_checking_verify_cfg_after_peeling): Likewise.
5790 (vect_do_peeling_for_loop_bound): Likewise.
5791 (vect_do_peeling_for_alignment): Likewise.
5792 * tree-vrp.c (supports_overflow_infinity): Likewise.
5793 (set_value_range): Likewise.
5794 * tree.c (free_lang_data_in_cgraph): Likewise.
5795 * value-prof.c (gimple_remove_histogram_value): Likewise.
5796 (free_hist): Likewise.
5797 * var-tracking.c (canonicalize_values_star): Likewise.
5798 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
5800 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5802 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
5803 IFN_GOACC_LOOP): New.
5804 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
5805 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
5806 IFN_UNIQUE_OACC_TAIL_MARK.
5807 (enum ifn_goacc_loop_kind): New.
5808 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
5809 IFN_UNIQUE_OACC_JOIN cases.
5810 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
5811 (expand_GOACC_LOOP): New.
5812 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
5813 * omp-low.c: Include gimple-pretty-print.h.
5814 (struct oacc_loop): New.
5815 (enum oacc_loop_flags): New.
5816 (oacc_thread_numbers): New.
5817 (oacc_xform_loop): New.
5818 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
5819 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
5820 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
5821 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
5822 oacc_loop_discovery): New.
5823 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
5824 oacc_loop_process): New.
5825 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
5826 (execute_oacc_device_lower): Discover & process loops. Process
5828 * target.def (goacc.fork_join): Change sense of hook, clarify
5830 * doc/tm.texi: Regenerated.
5832 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5834 * target-insns.def (oacc_fork, oacc_join): Define.
5835 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
5836 (goacc.fork_join): New GOACC hook.
5837 * targhooks.h (default_goacc_fork_join): Declare.
5838 * omp-low.c (default_goacc_forkjoin): New.
5839 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
5840 * doc/tm.texi: Regenerate.
5842 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5844 * omp-low.c (oacc_init_rediction_array): New.
5845 (oacc_initialize_reduction_data): Initialize array.
5847 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5849 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
5851 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5853 * internal-fn.c (expand_UNIQUE): New.
5854 * internal-fn.h (enum ifn_unique_kind): New.
5855 * internal-fn.def (IFN_UNIQUE): New.
5856 * target-insns.def (unique): Define.
5857 * gimple.h (gimple_call_internal_unique_p): New.
5858 * gimple.c (gimple_call_same_target_p): Check internal fn
5860 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
5861 * tree-ssa-threadedge.c
5862 (record_temporary_equivalences_from_stmts): Likewise.
5863 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
5865 2015-10-27 Richard Henderson <rth@redhat.com>
5868 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
5869 narrowing subregs on SSE and MMX registers.
5870 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
5871 appear to be sub-words of multi-register pseudos must be rejected.
5872 * doc/tm.texi: Regenerate.
5874 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5877 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
5878 operands[0] is a reg before taking its REGNO in split condition.
5879 (*movdi_aarch64): Likewise.
5881 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5883 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
5884 Handle floating point inner modes properly.
5886 2015-10-27 Alan Hayward <alan.hayward@arm.com>
5889 (vectorizable_live_operation): Change iterator.
5891 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5892 Aditya Kumar <aditya.k7@samsung.com>
5894 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
5895 function to schedule based on isl_schedule_node.
5896 (get_schedule_map_st): New schedule optimizer based on
5898 (scop_get_domains): New. Return the isl_union_set containing the
5899 domains of all the pbbs.
5900 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
5902 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
5905 * calls.c (prepare_call_address): Don't handle -fno-plt here.
5906 * config/i386/i386.c (ix86_expand_call): Generate indirect call
5907 via GOT for -fno-plt. Support indirect call via GOT for x32.
5908 * config/i386/predicates.md (sibcall_memory_operand): Allow
5911 2015-10-27 Richard Biener <rguenther@suse.de>
5913 PR tree-optimization/68104
5914 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
5915 strided access check ...
5916 (vect_compute_data_refs_alignment): ... here.
5918 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
5919 Joseph Myers <joseph@codesourcery.com>
5920 Mark Shinwell <shinwell@codesourcery.com>
5921 Andrew Stubbs <ams@codesourcery.com>
5922 Rich Felker <dalias@libc.org>
5924 * config.gcc: Handle --enable-fdpic.
5925 * config/sh/constraints.md (Ccl): New constraint.
5926 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
5927 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
5929 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
5931 * config/sh/sh-protos.h (function_symbol_result): New struct.
5932 (function_symbol): Return function_symbol_result.
5933 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
5935 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
5937 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
5938 (sh_option_override): Force -fPIC if FDPIC is in effect.
5939 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
5940 UNSPEC_GOTOFFFUNCDESC cases.
5941 (prepare_move_operands): Use FDPIC initial GOT register for
5942 TLS-related GOT access; inhibit cross-section address offset constants
5944 (sh_assemble_integer): New function.
5945 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
5946 PC-relative call sites.
5947 (expand_ashiftrt): Adapt invocation of function_symbol.
5948 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
5949 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
5950 UNSPEC_GOTOFFFUNCDESC.
5951 (legitimize_pic_address): Resolve function symbols to function
5952 descriptors for FDPIC. Do not use GOT-relative addressing for local
5953 data that may be read-only on FDPIC.
5954 (sh_emit_storesi, sh_emit_storehi): New functions.
5955 (sh_trampoline_init): Generate FDPIC trampolines.
5956 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
5957 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
5958 (sh_output_mi_thunk): Generate FDPIC call.
5959 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
5960 FDPIC, generate call site labels to use PC-relative addressing rather
5961 than GOT-relative addressing.
5962 (sh_conditional_register_usage): Make PIC register fixed and call used
5963 when FDPIC is in effect.
5964 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
5965 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
5966 sh_get_fdpic_reg_initial_val): New functions.
5967 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
5969 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
5970 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
5971 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
5972 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
5974 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
5975 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
5976 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
5977 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
5979 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
5980 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
5981 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
5982 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
5983 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
5984 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
5985 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
5986 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
5987 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
5988 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
5989 block_move_real, block_lump_real, block_move_real_i4,
5990 block_lump_real_i4): Add support for FDPIC calls.
5991 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
5992 call_value_pop): Adjust for new function_symbol signature.
5993 * config/sh/sh.opt (-mfdpic): New option.
5994 * doc/install.texi (Options specification): Document --enable-fdpic.
5995 * doc/invoke.texi (SH Options): Document -mfdpic.
5998 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
6000 PR tree-optimization/65963
6001 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6002 LSHIFT_EXPRs as equivalent MULT_EXPRs.
6004 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6007 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
6008 * config/arm/constraints.md (Dp): Update callsite.
6009 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
6011 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6013 * builtins.c (fold_builtin_load_exponent): Rename to...
6014 (fold_const_builtin_load_exponent): ...this and only handle
6016 (fold_builtin_2): Update accordingly.
6017 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
6019 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6021 * builtins.c (fold_builtin_logb): Rename to...
6022 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
6023 (fold_builtin_significand): Rename to...
6024 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
6025 (fold_builtin_1): Update accordingly.
6027 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6029 * builtins.c (fold_builtin_fmin_fmax): Delete.
6030 (fold_builtin_2): Handle constant fmin and fmax arguments here.
6031 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
6033 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
6035 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
6036 for register extension into sign and zero register extension.
6037 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
6038 for sign and zero register extension.
6039 (cortexa57_addrcost_table): Likewise.
6040 (xgene1_addrcost_table): Likewise.
6042 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6044 * fold-const.c (fold_minmax): Delete.
6045 (fold_binary_loc): Don't call it.
6046 * match.pd: Add rules previously handled by fold_minmax.
6048 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6050 * builtins.c (fold_builtin_fma): Remove constant handling.
6051 (fold_builtin_3): Handle constant fma arguments here.
6053 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6055 * builtins.c (fold_builtin_fabs): Remove constant handling.
6056 (fold_builtin_abs): Likewise.
6058 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6060 * builtins.c (fold_builtin_copysign): Delete.
6061 (fold_builtin_2): Handle constant copysign arguments here.
6062 * match.pd: Add rules previously handled by fold_builtin_copysign.
6064 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6066 * builtins.c (fold_builtin_signbit): Delete.
6067 (fold_builtin_2): Handle constant signbit arguments here.
6068 * match.pd: Add rules previously handled by fold_builtin_signbit.
6070 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6072 * match.pd: Handle sqrt(x) cmp 0 specially.
6074 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
6076 * tree-vect-generic.c (expand_vector_operations_1): Check
6077 optab type before using it.
6079 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6081 * config/aarch64/aarch64-protos.h
6082 (struct tune_params): Add autoprefetcher_model field.
6083 * config/aarch64/aarch64.c: Include params.h
6084 (generic_tunings): Specify autoprefetcher_model value.
6085 (cortexa53_tunings): Likewise.
6086 (cortexa57_tunings): Likewise.
6087 (cortexa72_tunings): Likewise.
6088 (thunderx_tunings): Likewise.
6089 (xgene1_tunings): Likewise.
6090 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
6091 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
6092 (aarch64_override_options_internal): Set
6093 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
6095 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6097 * builtins.c (fold_builtin_exponent): Delete.
6098 (fold_builtin_2): Handle constant expN arguments here.
6099 * match.pd: Fold expN(logN(x)) -> x.
6101 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6103 * builtins.c (fold_builtin_powi): Delete.
6104 (fold_builtin_2): Handle constant powi arguments here.
6105 * match.pd: Add rules previously handled by fold_builtin_powi.
6107 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6109 * builtins.c (fold_builtin_pow): Delete in favor of...
6110 (fold_const_builtin_pow): ...this new function. Only handle constant
6112 (fold_builtin_2): Update accordingly.
6113 * match.pd: Add rules previously handled by fold_builtin_pow.
6115 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6117 * builtins.c (fold_builtin_hypot): Delete.
6118 (fold_builtin_2): Handle constant hypot arguments here.
6119 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
6120 hypot(x, x) to fabs(x)*sqrt(2).
6122 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6124 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
6125 instead of make_ssa_name if not yet in SSA form.
6127 2015-10-27 Richard Biener <rguenther@suse.de>
6129 * cfg.c (free_edge): Add function argument and use it instead of cfun.
6130 (clear_edges): Likewise.
6131 * cfg.h (clear_edges): Adjust prototype.
6132 * cfgexpand.c (pass_expand::execute): Adjust.
6133 * cfgloop.c (release_recorded_exits): Add function argument and use
6135 * cfgloop.h (release_recorded_exits): Adjust prototype.
6136 (loops_state_satisfies_p): Add overload with function argument.
6137 (loops_state_set): Likewise.
6138 (loops_state_clear): Likewise.
6139 (struct loop_iterator): Add function argument to constructor
6140 and iterator and use it instead of cfun.
6141 (FOR_EACH_LOOP_FN): New macro.
6142 (loop_optimizer_finalize): Add overload with function argument.
6143 * loop-init.c (loop_optimizer_init): Adjust.
6144 (fix_loop_structure): Likewise.
6145 (loop_optimizer_finaliz): Add function argument and use it
6147 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
6148 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
6149 * cgraph.c (release_function_body): Do not push/pop cfun.
6150 * final.c (rest_of_clean_state): Adjust.
6151 * graphite.c (graphite_finalize): Likewise.
6152 * tree-ssa-copy.c (fini_copy_prop): Likewise.
6153 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
6154 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
6155 (tree_unroll_loops_completely): Likewise.
6156 (pass_complete_unrolli::execute): Likewise.
6157 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
6158 Add function argument and use it instead of cfun.
6159 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
6161 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
6162 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
6164 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
6165 * tree-ssanames.c (fini_ssanames): Add function argument and use it
6167 * tree-ssanames.c (fini_ssanames): Adjust prototype.
6168 * tree-vrp.c (execute_vrp): Adjust.
6169 * value-prof.c (free_histograms): Add function argument and use it
6171 * value-prof.h (free_histograms): Adjust prototype.
6173 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6175 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
6176 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
6177 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
6179 2015-10-27 Tom de Vries <tom@codesourcery.com>
6181 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
6184 2015-10-27 Bin Cheng <bin.cheng@arm.com>
6186 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
6187 (inv_can_prop_to_addr_use): New function.
6188 (record_use): Call can_prop_to_addr_uses, set the new field.
6189 (get_inv_cost): Count cost if inv can't be propagated into its
6192 2015-10-26 Doug Evans <dje@google.com>
6194 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
6196 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
6198 * match.pd (fold_widened_comparison): Apply simplifications to all
6201 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
6203 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
6204 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
6205 * doc/tm.texi: Regenerated.
6206 * reorg.c (dbr_schedule): Use new hook.
6207 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
6209 2015-10-26 Jeff Law <law@redhat.com>
6211 PR tree-optimization/68013
6212 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6213 Make sure the first block in the path is in VISITED_BBs.
6215 2015-10-26 Richard Biener <rguenther@suse.de>
6216 Dominik Vogt <vogt@linux.vnet.ibm.com>
6219 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
6220 Properly prune ref->ref for accesses outside of ref.
6222 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
6224 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
6225 new statements to be inserted if inplace. Allow calls to have
6228 2015-10-26 Richard Biener <rguenther@suse.de>
6230 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
6231 (do_valueize): New function.
6232 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
6234 * tree-ssa-threadedge.c: Remove builtins.h include, include
6236 (fold_assignment_stmt): Remove.
6237 (threadedge_valueize): New function.
6238 (record_temporary_equivalences_from_stmts): Use
6239 gimple_fold_stmt_to_constant_1, note additional cleanup
6242 2015-10-26 Richard Biener <rguenther@suse.de>
6244 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
6245 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
6247 2015-10-26 Alan Hayward <alan.hayward@arm.com>
6249 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
6250 VEC_COND_EXPR types.
6252 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6254 * auto-inc-dec.c (insert_move_insn_before): Delete.
6255 (attempt_change): Remember to cost the simple move in the
6256 FORM_PRE_ADD and FORM_POST_ADD cases.
6258 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
6261 * config/sh/sh.c (sh_vector_mode_supported_p): Use
6262 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
6264 2015-10-26 Tom de Vries <tom@codesourcery.com>
6266 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
6268 (intra_create_variable_infos): ... here.
6270 2015-10-26 Tom de Vries <tom@codesourcery.com>
6272 * tree-ssa-structalias.c (intra_create_variable_infos): Add
6273 restrict_pointer_p and recursive_restrict_p variables.
6275 2015-10-26 Tom de Vries <tom@codesourcery.com>
6277 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
6278 get_vi_for_tree call.
6280 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6283 * optabs.c (expand_atomic_compare_and_swap): Handle case when
6284 ptarget_oval or ptarget_bool are const0_rtx.
6286 2015-10-26 Christian Bruel <christian.bruel@st.com>
6288 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
6289 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
6290 * cp/method.c (implicitly_declare_fn): Likewise.
6291 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
6292 * java/class.c (add_method_1): Likewise.
6294 2015-10-26 Richard Biener <rguenther@suse.de>
6296 * alloc-pool.h (base_pool_allocator): Use placement new.
6297 (base_pool_allocator::remove): Likewise. Compute size outside of
6300 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
6302 * builtins.c (do_real_to_int_conversion): New function.
6303 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
6304 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
6306 * match.pd: Add rules previously handled by fold_fixed_mathfn
6307 and fold_builtin_int_roundingfn.
6309 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
6311 * match.pd: Use macros to define built-in operator lists.
6313 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
6314 Richard Biener <rguenther@suse.de>
6316 * genmatch.c (dt_simplify::gen): Skip captures that are
6318 (parser::parse_expr): Allow captures in results too.
6319 * builtins.c (fold_builtin_cexp): Delete.
6320 (fold_builtin_1): Handle constant cexp arguments here.
6321 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
6323 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
6325 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
6326 conditional compilation.
6327 (base_pool_allocator::remove): Use flag_checking.
6329 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
6331 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
6334 * dojump.c (do_compare_and_jump): Canonicalize both function and
6337 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
6340 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
6343 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6346 * ipa-polymorphic-call.c
6347 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
6348 instance offset with offset of outer type.
6350 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6352 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
6354 2015-10-23 Caroline Tice <cmtice@google.com>
6356 (from Richard Biener
6357 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
6358 call to iterative_hash_host_wide_int.
6360 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
6362 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
6365 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
6367 * tree-vect-generic.c (expand_vector_operations_1): Check
6368 optab exists before use it.
6370 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
6372 * tree-vect-generic.c (expand_vector_condition): Avoid
6373 uninitialized variable warning.
6375 2015-10-23 Jeff Law <law@redhat.com>
6377 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
6379 (execute_todo): Call it here.
6380 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
6382 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
6384 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
6385 Szabolcs Nagy <szabolcs.nagy@arm.com>
6387 * config.gcc (enable_secureplt): Add *-linux*-musl*.
6389 2015-10-23 Jeff Law <law@redhat.com>
6391 PR tree-optimization/67830
6392 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
6393 Explicitly verify the mask has no bits outside the type of
6394 the innermost operands.
6396 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
6397 Szabolcs Nagy <szabolcs.nagy@arm.com>
6399 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
6400 (MUSL_DYNAMIC_LINKER64): Define.
6401 (GNU_USER_DYNAMIC_LINKER32): Update.
6402 (GNU_USER_DYNAMIC_LINKER64): Update.
6403 (CHOOSE_DYNAMIC_LINKER): Update.
6405 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
6406 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
6407 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
6408 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
6409 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
6410 (CHOOSE_DYNAMIC_LINKER): Update.
6411 (INCLUDE_DEFAULTS): Redefine.
6413 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
6415 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6417 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
6418 comparing addresses.
6420 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6422 * fold-const.c (operand_equal_p): Handle matching of vector
6425 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
6427 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
6429 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
6430 Andrew Pinski <apinski@cavium.com>
6432 PR rtl-optimization/67736
6433 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
6436 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
6439 * tree.c (build_truth_vector_type): Support BLK mode
6440 returned for boolean vector.
6442 2015-10-23 Alan Hayward <alan.hayward@arm.com>
6444 PR tree-optimization/65947
6446 (vect_is_simple_reduction_1): Find condition reductions.
6447 (vect_model_reduction_cost): Add condition reduction costs.
6448 (get_initial_def_for_reduction): Add condition reduction initial var.
6449 (vect_create_epilog_for_reduction): Add condition reduction epilog.
6450 (vectorizable_reduction): Condition reduction support.
6451 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
6452 * doc/sourcebuild.texi (Vector-specific attributes): Document
6455 2015-10-23 Richard Biener <rguenther@suse.de>
6457 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
6460 2015-10-23 Richard Biener <rguenther@suse.de>
6461 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6463 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
6464 into (A ^ B) - B to match.pd
6465 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
6467 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
6469 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
6471 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
6473 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
6475 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
6476 INTEGER_CST@1)): New simplifier.
6478 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
6480 * builtins.c (integer_valued_real_p): Move to fold-const.c.
6481 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
6482 (fold_builtin_ceil, fold_builtin_round): Delete.
6483 (fold_builtin_1): Handle constant trunc, floor, ceil and round
6485 * convert.c (convert_to_real): Remove narrowing of rounding
6487 * fold-const.h (integer_valued_real_unary_p)
6488 (integer_valued_real_binary_p, integer_valued_real_call_p)
6489 (integer_valued_real_single_p, integer_valued_real_p): Declare.
6490 * fold-const.c (tree_single_nonnegative_warnv_p): Move
6491 name_registered_for_update_p check to SSA_NAME case statement.
6492 Don't call tree_simple_nonnegative_warnv_p for SSA names.
6493 (integer_valued_real_unary_p, integer_valued_real_binary_p)
6494 (integer_valued_real_call_p, integer_valued_real_single_p)
6495 (integer_valued_real_invalid_p): New functions.
6496 (integer_valued_real_p): Move from fold-const.c and rework
6497 to call the functions above. Handle SSA names.
6498 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
6499 * gimple-fold.c (gimple_assign_integer_valued_real_p)
6500 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
6501 (gimple_stmt_integer_valued_real_p): New functions.
6502 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
6503 Fold f(x)->x for the same f if x is known to be integer-valued.
6504 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
6505 the result. Canonicalize floor(x) as trunc(x) if x is
6508 2015-10-23 Tom de Vries <tom@codesourcery.com>
6510 * tree-ssa-structalias.c (intra_create_variable_infos): Use
6511 make_constraint_from.
6513 2015-10-23 Tom de Vries <tom@codesourcery.com>
6515 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
6516 setting of is_full_var in case of a single field.
6518 2015-10-22 Martin Sebor <msebor@redhat.com>
6521 * config/i386/i386.opt: Add missing periods to the ends of sentences.
6522 * config/msp430/msp430.opt: Same.
6524 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
6526 * doc/extend.exp (Global Register Variables): Rewrite.
6528 2015-10-22 Jeff Law <law@redhat.com>
6530 * genattrtab.c (main): If we do not have any annul-true or annul-false
6531 slots, then write out a dummy eligible_for_annul_true or
6532 eligible_for_annul_false as needed.
6534 2015-10-22 Nick Clifton <nickc@redhat.com>
6536 * config/msp430/msp430.opt: Add -msilicon-errata and
6537 -msilicon-errata-warn.
6538 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
6540 * doc/invoke.texi: Document new options.
6542 2015-10-22 Richard Biener <rguenther@suse.de>
6544 PR tree-optimization/58497
6545 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
6546 (expand_vector_operations_1): Use it. Lower operations on
6547 all uniform vectors to scalar operations if the HW supports it.
6549 2015-10-22 Richard Biener <rguenther@suse.de>
6551 PR tree-optimization/19049
6552 PR tree-optimization/65962
6553 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
6554 to strided accesses if single-element interleaving doesn't work.
6556 2015-10-22 Richard Biener <rguenther@suse.de>
6560 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
6561 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
6562 (expand_unop): Likewise.
6564 2015-10-22 Richard Biener <rguenther@suse.de>
6566 * fold-const.c (fold_addr_of_array_ref_difference): Properly
6567 convert operands before folding a MINUS_EXPR.
6568 (fold_binary_loc): Move simplification of MINUS_EXPR on
6569 converted POINTER_PLUS_EXPRs ...
6570 * match.pd: ... here.
6572 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
6574 * builtins.c (fold_builtin_tan): Delete.
6575 (fold_builtin_1): Handle constant tan arguments here.
6576 * match.pd: Simplify (tan (atan x)) to x.
6578 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
6580 * builtins.c (fold_builtin_cproj): Delete.
6581 (fold_builtin_1): Handle constant arguments here.
6582 (build_complex_cproj): Move and rename to...
6583 * tree.c: (build_complex_inf): ...this.
6584 * tree.h (build_complex_inf): Declare.
6585 * match.pd: Fold cproj(x)->x if x has no infinity.
6586 Use build_complex_inf for existing cproj rules.
6588 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6591 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
6592 already have a comparison result.
6594 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6597 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
6598 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
6599 (aarch64_classify_address): Likewise.
6600 (aarch64_secondary_reload): Likewise.
6601 (aarch64_override_options_after_change_1): Adjust.
6602 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
6603 Use aarch64_nopcrelative_literal_loads.
6604 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
6605 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
6608 2015-10-21 Martin Sebor <msebor@redhat.com>
6611 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
6612 (print_filtered_help): Reference aliased option's name and encourage
6613 readers to use it in preference to the alias if the former is not
6614 documented. Mention when using an option is diagnosed.
6615 * gcc.c (display_help): End each sentence with a period.
6617 * common.opt: End each sentence that describes an option with
6619 * config/aarch64/aarch64.opt: Same.
6620 * config/alpha/alpha.opt: Same.
6621 * config/arc/arc.opt: Same.
6622 * config/arm/arm.opt: Same.
6623 * config/avr/avr.opt: Same.
6624 * config/bfin/bfin.opt: Same.
6625 * config/c6x/c6x.opt: Same.
6626 * config/cr16/cr16.opt: Same.
6627 * config/cris/cris.opt: Same.
6628 * config/cris/linux.opt: Same.
6629 * config/darwin.opt: Same.
6630 * config/epiphany/epiphany.opt: Same.
6631 * config/fr30/fr30.opt: Same.
6632 * config/frv/frv.opt: Same.
6633 * config/ft32/ft32.opt: Same.
6634 * config/g.opt: Same.
6635 * config/h8300/h8300.opt: Same.
6636 * config/i386/cygming.opt: Same.
6637 * config/i386/djgpp.opt: Same.
6638 * config/i386/i386.opt: Same.
6639 * config/i386/interix.opt: Same.
6640 * config/i386/mingw-w64.opt: Same.
6641 * config/i386/mingw.opt: Same.
6642 * config/ia64/ia64.opt: Same.
6643 * config/ia64/ilp32.opt: Same.
6644 * config/iq2000/iq2000.opt: Same.
6645 * config/linux.opt: Same.
6646 * config/lm32/lm32.opt: Same.
6647 * config/lynx.opt: Same.
6648 * config/m32c/m32c.opt: Same.
6649 * config/m32r/m32r.opt: Same.
6650 * config/m68k/ieee.opt: Same.
6651 * config/m68k/m68k.opt: Same.
6652 * config/mcore/mcore.opt: Same.
6653 * config/mep/mep.opt: Same.
6654 * config/microblaze/microblaze.opt: Same.
6655 * config/mips/mips.opt: Same.
6656 * config/mmix/mmix.opt: Same.
6657 * config/mn10300/mn10300.opt: Same.
6658 * config/moxie/moxie.opt: Same.
6659 * config/msp430/msp430.opt: Same.
6660 * config/nios2/elf.opt: Same.
6661 * config/nios2/nios2.opt: Same.
6662 * config/nvptx/nvptx.opt: Same.
6663 * config/pa/pa-hpux.opt: Same.
6664 * config/pa/pa-hpux1010.opt: Same.
6665 * config/pa/pa-hpux1111.opt: Same.
6666 * config/pa/pa-hpux1131.opt: Same.
6667 * config/pa/pa.opt: Same.
6668 * config/pa/pa64-hpux.opt: Same.
6669 * config/pdp11/pdp11.opt: Same.
6670 * config/rl78/rl78.opt: Same.
6671 * config/rs6000/476.opt: Same.
6672 * config/rs6000/aix64.opt: Same.
6673 * config/rs6000/darwin.opt: Same.
6674 * config/rs6000/linux64.opt: Same.
6675 * config/rs6000/rs6000.opt: Same.
6676 * config/rs6000/sysv4.opt: Same.
6677 * config/s390/s390.opt: Same.
6678 * config/s390/tpf.opt: Same.
6679 * config/sh/sh.opt: Same.
6680 * config/sol2.opt: Same.
6681 * config/sparc/long-double-switch.opt: Same.
6682 * config/sparc/sparc.opt: Same.
6683 * config/spu/spu.opt: Same.
6684 * config/stormy16/stormy16.opt: Same.
6685 * config/tilegx/tilegx.opt: Same.
6686 * config/tilepro/tilepro.opt: Same.
6687 * config/v850/v850.opt: Same.
6688 * config/vax/vax.opt: Same.
6689 * config/visium/visium.opt: Same.
6690 * config/vms/vms.opt: Same.
6691 * config/vxworks.opt: Same.
6692 * config/xtensa/xtensa.opt: Same.
6694 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6695 Sebastian Pop <s.pop@samsung.com>
6697 * graphite-scop-detection.c (parameter_index_in_region): Update call to
6698 invariant_in_sese_p_rec.
6699 * graphite-sese-to-poly.c (extract_affine): Same.
6700 * sese.c (invariant_in_sese_p_rec): Pass in an extra
6701 parameter has_vdefs.
6702 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
6703 variable depends on virtual definitions in the current region.
6704 * sese.h (invariant_in_sese_p_rec): Update declaration.
6706 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6707 Sebastian Pop <s.pop@samsung.com>
6709 * graphite-scop-detection.c (build_scops): Do not handle scops
6710 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
6711 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
6713 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
6715 * config.in: Regenerate.
6716 * configure: Regenerate.
6717 * configure.ac (CHECKING_P): Define.
6718 * system.h: Use CHECKING_P.
6720 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6723 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
6724 is negative we don't know the type.
6725 (check_stmt_for_type_change): Skip constructors of non-polymorphic
6726 types as those won't help devirutalization.
6728 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6730 * fold-const.c (operand_equal_p): Add code matching empty constructors.
6732 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
6734 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
6736 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
6737 Add comments on sign of the result.
6738 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
6739 Recurse on operand #1 instead of operand #0.
6740 <CEIL_MOD_EXPR>: Do not recurse.
6741 <ROUND_MOD_EXPR>: Likewise.
6743 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6745 * cfgrtl.c (pass_free_cfg::execute): Adjust.
6746 * final.c (dbr_sequence_length): Always define.
6747 (shorten_branches): Adjust.
6748 * genattr-common.c (main): Always define DELAY_SLOTS.
6749 * genattr.c (main): Unconditionally declare functions and define
6750 macros related to delay slots.
6751 * genattrtab.c (write_eligible_delay): Adjust.
6752 (main): Always write out delay slot functions.
6753 * opts.c (default_options_table): Adjust.
6754 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
6755 (redirect_with_delay_list_safe_p): Likewise.
6756 (fill_simple_delay_slots): Likewise.
6757 (fill_slots_from_thread): Likewise.
6758 (make_return_insns): Likewise.
6759 (dbr_schedule): Likewise.
6760 (rest_of_handle_delay_slots): Likewise.
6761 (pass_delay_slots::gate): Likewise.
6762 * toplev.c (process_options): Likewise.
6764 2015-10-21 Richard Henderson <rth@redhat.com>
6766 * targhooks.c (default_addr_space_pointer_mode): Remove check
6767 for generic address space.
6768 (default_addr_space_address_mode): Likewise.
6769 (default_addr_space_valid_pointer_mode): Likewise.
6770 (default_addr_space_legitimate_address_p): Likewise.
6771 (default_addr_space_legitimize_address): Likewise.
6772 * target.def (addr_space.pointer_mode): Update documentation
6773 of default behavior.
6774 (addr_space.address_mode): Likewise.
6777 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
6780 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
6782 * builtins.c (fold_builtin_cabs): Delete.
6783 (fold_builtin_1): Update accordingly. Handle constant arguments here.
6784 * match.pd: Add rules previously handled by fold_builtin_cabs.
6786 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
6788 * fold-const.h (fold_strip_sign_ops): Delete.
6789 * fold-const.c (fold_strip_sign_ops): Likewise.
6790 (fold_unary_loc, fold_binary_loc): Remove calls to it.
6791 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
6792 (fold_builtin_ccos): Delete.
6793 (fold_builtin_pow): Don't call fold_strip_sign_ops.
6794 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
6795 Remove fndecl argument.
6796 (fold_builtin_1): Update calls accordingly. Handle constant
6797 cos, cosh, ccos and ccosh here.
6799 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
6801 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
6802 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
6803 * common.opt (fssa-backprop): New option.
6804 * fold-const.h (negate_mathfn_p): Declare.
6805 * fold-const.c (negate_mathfn_p): Make public.
6806 * timevar.def (TV_TREE_BACKPROP): New.
6807 * tree-pass.h (make_pass_backprop): Declare.
6808 * passes.def (pass_backprop): Add.
6809 * gimple-ssa-backprop.c: New file.
6811 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6812 Sebastian Pop <s.pop@samsung.com>
6814 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
6815 Do not call create_empty_if_region_on_edge when cond_expr is true.
6816 (translate_isl_ast_node_for): Check whether a guard has been generated.
6818 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6820 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
6821 (operator=): Removed.
6822 (dr_info): Make alias_set number the last argument with default
6823 value of invalid_alias_set.
6824 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
6826 (rewrite_reductions_out_of_ssa): Iterate only through the
6827 basic blocks which are inside region.
6828 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
6829 * sese.h (struct sese_l): Removed assignment operator.
6830 (split_region_for_bb): Removed dead code.
6832 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6834 * graphite-poly.h (struct dr_info): Removed conversion constructor.
6835 (struct scop): Renamed scop::region to scop::scop_info
6836 (scop_set_region): Same.
6837 (SCOP_REGION): Removed
6838 (SCOP_CONTEXT): Removed.
6839 (POLY_SCOP_P): Removed.
6840 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
6841 Rename scop->region to scop->scop_info.
6842 (add_parameters_to_ivs_params): Same.
6843 (graphite_regenerate_ast_isl): Same.
6844 * graphite-poly.c (new_scop): Same.
6846 (print_scop_params): Same.
6847 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
6848 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
6849 (dot_all_scops_1): Rename scop->region to scop->scop_info.
6850 (scop_detection::nb_pbbs_in_loops): Same.
6851 (find_scop_parameters): Same.
6852 (try_generate_gimple_bb): Same.
6853 (gather_bbs::before_dom_children): Same.
6854 (gather_bbs::after_dom_children): Same.
6855 (build_scops): Same.
6856 * graphite-sese-to-poly.c (build_scop_scattering): Same.
6857 (extract_affine_chrec): Same.
6858 (extract_affine): Same.
6859 (set_scop_parameter_dim): Same.
6860 (build_loop_iteration_domains): Same.
6861 (create_pw_aff_from_tree): Same.
6862 (add_param_constraints): Same.
6863 (build_scop_iteration_domain): Same.
6864 (build_scop_drs): Same.
6865 (analyze_drs_in_stmts): Same.
6866 (insert_out_of_ssa_copy_on_edge): Same.
6867 (rewrite_close_phi_out_of_ssa):Same.
6868 (rewrite_reductions_out_of_ssa):Same.
6869 (handle_scalar_deps_crossing_scop_limits):Same.
6870 (rewrite_cross_bb_scalar_deps):Same.
6871 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
6872 (build_poly_scop):Same.
6873 (build_alias_set): Use pointer to dr_info.
6874 * graphite.c (print_graphite_scop_statistics):
6875 (graphite_transform_loops):
6876 * sese.h (struct sese_l): Remove conversion constructor.
6878 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6881 * tree.c (verify_type): Verify that TYPE_MODE match
6882 between TYPE_CANONICAL and type.
6883 * expr.c (store_expr_with_bounds): Revert my previous change.
6884 * expmed.c (store_bit_field_1): Revert prevoius change.
6885 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
6886 to match for all types.
6888 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
6890 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
6893 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
6895 * doc/tm.texi: Regenerated.
6896 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
6897 * stor-layout.c (layout_type): Use mode to get vector mask size.
6898 * target.def (get_mask_mode): New.
6899 * targhooks.c (default_get_mask_mode): New.
6900 * targhooks.h (default_get_mask_mode): New.
6901 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
6903 * tree.c (MAX_BOOL_CACHED_PREC): New.
6904 (nonstandard_boolean_type_cache): New.
6905 (build_nonstandard_boolean_type): New.
6906 (make_vector_type): Vector mask has no canonical type.
6907 (build_truth_vector_type): New.
6908 (build_same_sized_truth_vector_type): New.
6909 (truth_type_for): Support vector masks.
6910 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
6911 (build_truth_vector_type): New.
6912 (build_same_sized_truth_vector_type): New.
6913 (build_nonstandard_boolean_type): New.
6914 * tree-cfg.c (verify_gimple_comparison) Require boolean
6915 vector type for vector comparison.
6916 (verify_gimple_assign_ternary): Likewise.
6917 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
6919 * tree-vect-stmts.c (vectorizable_condition): Use boolean
6920 vector type for vector comparison.
6921 * tree-vect-generic.c (elem_op_func): Add new operand to hold
6923 (do_unop): Adjust to modified function type.
6924 (do_binop): Likewise.
6925 (do_plus_minus): Likewise.
6926 (do_negate); Likewise.
6927 (expand_vector_piecewise): Likewise.
6928 (do_cond): Likewise.
6929 (do_compare): Use comparison instead of condition.
6930 (expand_vector_divmod): Use boolean vector type for comparison.
6931 (expand_vector_operations_1): Skip scalar mask operations.
6933 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
6935 * omp-low.c (simd_clone_create): Set in_other_partition
6938 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
6940 * doc/extend.exp (Local Register Variables): Rewrite.
6942 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
6944 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
6945 and x*x in cases where the operands are sign ops. Extend these
6946 rules to handle copysign as a sign op (including for cos, cosh
6947 and pow, which already treated negate and abs as sign ops).
6949 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
6952 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
6953 for 64-bit MS_ABI targets also when default incoming stack boundary
6956 2015-10-21 Richard Biener <rguenther@suse.de>
6958 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
6959 cond stmts, enhanced and split out from ...
6960 (vn_phi_eq): ... here.
6962 2015-10-21 Richard Biener <rguenther@suse.de>
6965 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
6966 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
6967 (tree_single_nonnegative_warnv_p): ... here. For SSA names
6968 make sure they are not registered for update.
6970 2015-10-21 Richard Biener <rguenther@suse.de>
6972 PR tree-optimization/68026
6973 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
6974 unsigned VARYING values.
6976 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
6978 * asan.c (asan_emit_stack_protection): Don't pass local stack to
6979 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
6980 NULL and use local stack than.
6981 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
6982 in addition to __asan_init.
6983 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
6984 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
6985 * asan.h (asan_intercepted_p): Handle new string builtins.
6986 * ubsan.c (ubsan_use_new_style_p): New function.
6987 (ubsan_instrument_float_cast): If location is unknown, assign
6988 input_location to loc. Propagate loc to ubsan_create_data if
6989 ubsan_use_new_style_p returned true.
6991 2015-10-21 Jeff Law <law@redhat.com>
6993 * Makefile.in (OBJS): Remove sched-vis.c
6994 * sched-vis.c: Removed. Code moved into...
6995 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
6996 * rtl.h: Remove prototypes for functions now living in print-rtl.c
6997 * print-rtl.h Add prototypes for new functions in print-rtl.c.
6998 * auto-inc-dec.c: Include print-rtl.h
6999 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
7000 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
7002 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
7005 2015-10-21 Richard Biener <rguenther@suse.de>
7006 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7008 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
7010 Move (a * (1 << b)) is (a << b) to match.pd.
7011 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
7012 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
7013 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
7015 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
7017 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
7018 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
7019 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
7021 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
7023 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
7025 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
7026 Szabolcs Nagy <szabolcs.nagy@arm.com>
7027 Alan Modra <amodra@gmail.com>
7029 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
7030 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
7031 (LINK_SPEC): Add %(link_secure_plt).
7032 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
7033 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
7035 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
7036 Szabolcs Nagy <szabolcs.nagy@arm.com>
7038 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
7039 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
7041 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7043 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
7045 (fusion_load_store): Use it.
7046 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
7047 ldp and stp in VD modes.
7048 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
7049 (store_pair<mode>, VD): Likewise.
7051 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
7053 PR rtl-optimization/67609
7054 * lra-splill.c (lra_final_code_change): Don't remove all
7057 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7059 * simplify-rtx.c (simplify_binary_operation): If either operand was
7060 a constant pool reference use them if all other simplifications failed.
7062 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7064 * config/aarch64/aarch64.md
7065 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
7066 * config/aarch64/aarch64-simd.md
7067 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
7068 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
7069 (aarch64_fpconst_pow_of_2): New function.
7070 (aarch64_vec_fpconst_pow_of_2): Likewise.
7071 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
7073 (aarch64_vec_fpconst_pow_of_2): Likewise.
7074 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
7075 (aarch64_fp_vec_pow2): Likewise.
7077 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
7079 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
7080 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
7081 * config/alpha/alpha.c (alpha_function_arg_advance): Update
7082 ALPHA_ARG_SIZE usage.
7083 (alpha_arg_partial_bytes): Ditto.
7085 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
7088 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
7089 error_mark_node decls.
7091 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
7095 * common/config/i386/i386-common.c (ix86_handle_option): Remove
7096 OPT_miamcu handling.
7097 * config/i386/i386.c (PTA_NO_80387): New macro.
7098 (processor_alias_table): Add PTA_NO_80387 to lakemont.
7099 (ix86_option_override_internal): Update MASK_80387 from
7100 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
7101 SSE math only if 80387 is supported. Don't change
7103 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
7105 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
7106 if TARGET_80387 is true and TARGET_IAMCU is false.
7107 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
7108 is true and TARGET_IAMCU_P is false.
7110 2015-10-20 Richard Biener <rguenther@suse.de>
7112 PR tree-optimization/68017
7113 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
7115 2015-10-20 Martin Liska <mliska@suse.cz>
7117 * cgraphclones.c (cgraph_node::create_virtual_clone):
7118 Verify cgraph_node.local.versionable instead of calling
7119 tree_versionable_function_p.
7120 * ipa-cp.c (determine_versionability): Save the information
7121 to ipa_node_params summary.
7122 (ipcp_versionable_function_p): Use it.
7123 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
7124 (ipcp_generate_summary): Do not compute cgraph_node
7126 * ipa-inline-analysis.c (inline_generate_summary): Compute
7127 versionability for all cgraph nodes.
7128 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
7129 ipa_node_params::versionability.
7130 * ipa-prop.h (struct ipa_node_params): Declare it.
7132 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7135 * varasm.c (assemble_variable): Move special vtv handling to..
7136 (handle_vtv_comdat_sections): .. here. New function.
7137 (output_object_block): Handle vtv sections.
7139 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
7142 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
7144 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
7146 * doc/extend.texi: Update documentation WRT inline functions.
7148 2015-10-20 Alan Modra <amodra@gmail.com>
7151 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
7152 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
7153 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
7155 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
7157 PR rtl-optimization/66790
7158 * df.h (DF_MIR): New macro.
7159 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
7160 (DF_MIR_INFO_BB): New macro.
7161 (DF_MIR_IN, DF_MIR_OUT): New macros.
7162 (struct df_mir_bb_info): New.
7163 (df_mir): New macro.
7164 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
7166 (df_mir_get_bb_info): New.
7167 * df-problems.c (struct df_mir_problem_data): New.
7168 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
7169 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
7170 df_mir_confluence_0, df_mir_confluence_n,
7171 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
7172 df_mir_bottom_dump, df_mir_verify_solution_start,
7173 df_mir_verify_solution_end): New.
7175 (df_mir_add_problem, df_mir_simulate_one_insn): New.
7176 * timevar.def (TV_DF_MIR): New.
7177 * ree.c: Include bitmap.h
7178 (add_removable_extension): Add an INIT_REGS parameter. Use it
7179 to skip zero-extensions that may get an uninitialized register.
7180 (find_removable_extensions): Compute must-initialized registers
7181 using the MIR dataflow problem. Update the call to
7182 add_removable_extension.
7183 (find_and_remove_re): Call df_mir_add_problem.
7185 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
7187 * common/config/mn10300/mn10300-common.c
7188 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
7189 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
7191 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
7193 * doc/extend.texi (Explicit Register Variables): Simplify and
7194 avoid unnecessary and confusion abbreviations. Update cross
7196 doc/implement-c.tex: Update cross reference.
7198 2015-10-19 Jeff Law <law@redhat.com>
7200 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
7201 that create irreducible loops unless the path elimiantes a multiway
7204 2015-10-19 Richard Biener <rguenther@suse.de>
7206 PR tree-optimization/67975
7207 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
7208 * tree-cfg.c (extract_true_false_controlled_edges): Split out
7209 core worker from ...
7210 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
7211 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
7212 instead of block number for PHIs with two or one args.
7213 (vn_phi_eq): Compare edge predicates of PHIs that are in different
7216 2015-10-19 Richard Biener <rguenther@suse.de>
7218 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
7219 (gimple_stmt_nonnegative_warnv_p): Use it.
7220 * match.pd (CPROJ): New operator list.
7221 (cproj (complex ...)): Move simplifications from ...
7222 * builtins.c (fold_builtin_cproj): ... here.
7224 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
7226 * config/i386/i386.c (ix86_expand_vector_move): Use
7227 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
7230 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
7232 * doc/invoke.texi: Replace @optindex with @opindex.
7234 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
7237 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
7238 arch= is set, clear all bits in x_ix86_isa_flags, except for
7239 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
7241 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
7244 * common.opt (fkeep-static-functions): New option.
7245 * doc/invoke.texi: Document it.
7246 * cgraphunit.c (cgraph_node::finalize_function): Use it.
7248 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7250 * sched-int.h (struct autopref_multipass_data_): Remove offset
7251 field. Add min_offset, max_offset, multi_mem_insn_p fields.
7252 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
7253 (autopref_multipass_init): Use it. Handle PARALLEL sets.
7254 (autopref_rank_data): New function.
7255 (autopref_rank_for_schedule): Use it.
7256 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
7258 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
7261 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
7263 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7265 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
7266 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
7267 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
7268 (STANDARD_STARTFILE_PREFIX_1): New.
7269 (STANDARD_STARTFILE_PREFIX_2): New.
7271 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7273 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
7274 (darwin_driver_init): Note a version-min when provided on the c/l.
7275 * config/darwin.h (%darwin_minversion): Remove.
7276 * config/i386/darwin.h: Likewise.
7277 * config/rs6000/darwin.h: Likewise.
7278 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
7279 rather than an arbitrary constant.
7281 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7283 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
7284 PPC, detect conflicts between -arch and multilib settings. Detect
7285 and warn about conflicts between multiple -arch definitions.
7287 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7289 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
7291 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7293 * lra-constraints.c (add_next_usage_insn): Change argument type
7294 from rtx to rtx_insn *.
7296 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
7298 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
7301 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
7303 * config/tilepro/gen-mul-tables.cc: Adjust include files.
7304 * config/tilegx/mul-tables.c: Regenerate.
7305 * config/tilepro/mul-tables.c: Regenerate.
7307 * config/tilegx/tilegx-c.c: Adjust include files.
7308 * config/tilegx/tilegx.c: Likewise.
7309 * config/tilepro/tilepro-c.c: Likewise.
7310 * config/tilepro/tilepro.c: Likewise.
7311 * config/aarch64/aarch64-builtins.c: Likewise.
7312 * config/aarch64/aarch64.c: Likewise.
7313 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7314 * config/alpha/alpha.c: Likewise.
7315 * config/arc/arc.c: Likewise.
7316 * config/arm/aarch-common.c: Likewise.
7317 * config/arm/arm-builtins.c: Likewise.
7318 * config/arm/arm-c.c: Likewise.
7319 * config/arm/arm.c: Likewise.
7320 * config/avr/avr-c.c: Likewise.
7321 * config/avr/avr-devices.c: Likewise.
7322 * config/avr/avr-log.c: Likewise.
7323 * config/avr/avr.c: Likewise.
7324 * config/bfin/bfin.c: Likewise.
7325 * config/c6x/c6x.c: Likewise.
7326 * config/cr16/cr16.c: Likewise.
7327 * config/cris/cris.c: Likewise.
7328 * config/darwin-c.c: Likewise.
7329 * config/darwin-driver.c: Likewise.
7330 * config/darwin.c: Likewise.
7331 * config/default-c.c: Likewise.
7332 * config/epiphany/epiphany.c: Likewise.
7333 * config/epiphany/mode-switch-use.c: Likewise.
7334 * config/epiphany/resolve-sw-modes.c: Likewise.
7335 * config/fr30/fr30.c: Likewise.
7336 * config/frv/frv.c: Likewise.
7337 * config/ft32/ft32.c: Likewise.
7338 * config/glibc-c.c: Likewise.
7339 * config/h8300/h8300.c: Likewise.
7340 * config/i386/host-cygwin.c: Likewise.
7341 * config/i386/host-mingw32.c: Likewise.
7342 * config/i386/i386-c.c: Likewise.
7343 * config/i386/i386.c: Likewise.
7344 * config/i386/msformat-c.c: Likewise.
7345 * config/i386/winnt-cxx.c: Likewise.
7346 * config/i386/winnt-stubs.c: Likewise.
7347 * config/i386/winnt.c: Likewise.
7348 * config/ia64/ia64-c.c: Likewise.
7349 * config/ia64/ia64.c: Likewise.
7350 * config/iq2000/iq2000.c: Likewise.
7351 * config/lm32/lm32.c: Likewise.
7352 * config/m32c/m32c-pragma.c: Likewise.
7353 * config/m32c/m32c.c: Likewise.
7354 * config/m32r/m32r.c: Likewise.
7355 * config/mcore/mcore.c: Likewise.
7356 * config/mep/mep-pragma.c: Likewise.
7357 * config/mep/mep.c: Likewise.
7358 * config/microblaze/microblaze-c.c: Likewise.
7359 * config/microblaze/microblaze.c: Likewise.
7360 * config/mips/mips-tables.opt
7361 * config/mips/mips.c: Likewise.
7362 * config/mmix/mmix.c: Likewise.
7363 * config/mn10300/mn10300.c: Likewise.
7364 * config/moxie/moxie.c: Likewise.
7365 * config/msp430/msp430-c.c: Likewise.
7366 * config/msp430/msp430.c: Likewise.
7367 * config/nds32/nds32-cost.c: Likewise.
7368 * config/nds32/nds32-fp-as-gp.c: Likewise.
7369 * config/nds32/nds32-intrinsic.c: Likewise.
7370 * config/nds32/nds32-isr.c: Likewise.
7371 * config/nds32/nds32-md-auxiliary.c: Likewise.
7372 * config/nds32/nds32-memory-manipulation.c: Likewise.
7373 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7374 * config/nds32/nds32-predicates.c: Likewise.
7375 * config/nds32/nds32.c: Likewise.
7376 * config/nios2/nios2.c: Likewise.
7377 * config/nvptx/mkoffload.c: Likewise.
7378 * config/nvptx/nvptx.c: Likewise.
7379 * config/pa/pa.c: Likewise.
7380 * config/pdp11/pdp11.c: Likewise.
7381 * config/rl78/rl78-c.c: Likewise.
7382 * config/rl78/rl78.c: Likewise.
7383 * config/rs6000/host-darwin.c: Likewise.
7384 * config/rs6000/rs6000-c.c: Likewise.
7385 * config/rs6000/rs6000-linux.c: Likewise.
7386 * config/rs6000/rs6000.c: Likewise.
7387 * config/rx/rx.c: Likewise.
7388 * config/s390/s390-c.c: Likewise.
7389 * config/s390/s390.c: Likewise.
7390 * config/sh/sh-c.c: Likewise.
7391 * config/sh/sh-mem.cc: Likewise.
7392 * config/sh/sh.c: Likewise.
7393 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7394 * config/sh/sh_treg_combine.cc: Likewise.
7395 * config/sol2-c.c: Likewise.
7396 * config/sol2-cxx.c: Likewise.
7397 * config/sol2-stubs.c: Likewise.
7398 * config/sol2.c: Likewise.
7399 * config/sparc/sparc-c.c: Likewise.
7400 * config/sparc/sparc.c: Likewise.
7401 * config/spu/spu-c.c: Likewise.
7402 * config/spu/spu.c: Likewise.
7403 * config/stormy16/stormy16.c: Likewise.
7404 * config/v850/v850-c.c: Likewise.
7405 * config/v850/v850.c: Likewise.
7406 * config/vax/vax.c: Likewise.
7407 * config/visium/visium.c: Likewise.
7408 * config/vms/vms-c.c: Likewise.
7409 * config/vms/vms.c: Likewise.
7410 * config/vxworks.c: Likewise.
7411 * config/winnt-c.c: Likewise.
7412 * config/xtensa/xtensa.c: Likewise.
7414 2015-10-16 Christian Bruel <christian.bruel@st.com>
7417 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
7418 (FUNCTION_BOUNDARY_P): New macro:
7419 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
7421 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
7422 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
7423 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
7424 * function.c (allocate_struct_function): Call
7425 relayout_function hook.
7426 * passes.c (rest_of_decl_compilation): Likewise.
7428 2015-10-16 Christian Bruel <christian.bruel@st.com>
7431 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
7432 * config/arm/arm.c (arm_option_override_internal): Call
7433 arm_override_options_after_change_1.
7434 (arm_override_options_after_change): New function.
7435 (arm_override_options_after_change_1): Likewise.
7436 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
7438 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7441 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
7444 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
7446 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
7447 argument is an ADDR_EXPR.
7449 2015-10-16 Richard Biener <rguenther@suse.de>
7451 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
7452 and get rid of force_gimple_operand_gsi.
7453 (gimple_fold_builtin_memory_chk): Likewise.
7454 (gimple_fold_builtin_stxcpy_chk): Likewise.
7455 (rewrite_to_defined_overflow): Likewise.
7456 (gimple_convert_to_ptrofftype): New function.
7457 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
7459 2015-10-16 Richard Biener <rguenther@suse.de>
7461 * tree-nested.h (build_addr): Adjust prototype.
7462 * tree-nested.c (build_addr): Remove context argument and use
7464 (get_static_chain): Adjust calls to build_addr.
7465 (convert_nl_goto_reference): Likewise.
7466 (convert_tramp_reference_op): Likewise.
7467 (finalize_nesting_tree_1): Likewise.
7468 * value-prof.c (gimple_ic): Likewise.
7469 * gimple-low.c (lower_builtin_setjmp): Likewise.
7470 * tree-parloops.c (take_address_of): Likewise.
7471 (create_call_for_reduction_1): Likewise.
7472 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
7473 (gimple_gen_ic_func_profiler): Likewise.
7475 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7477 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
7480 2015-10-16 Michael Collison <michael.collison@linaro.org>
7481 Andrew Pinski <andrew.pinski@caviumnetworks.com>
7483 * match.pd ((x < y) && (x < z) -> x < min (y,z),
7484 (x > y) and (x > z) -> x > max (y,z))
7486 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
7487 Szabolcs Nagy <szabolcs.nagy@arm.com>
7489 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
7490 (DYNAMIC_LINKER): Renamed to ...
7491 (GLIBC_DYNAMIC_LINKER): This.
7492 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
7494 2015-10-15 Marek Polacek <polacek@redhat.com>
7496 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
7497 gimple_call_builtin instead of is_gimple_call.
7499 2015-10-15 Richard Biener <rguenther@suse.de>
7501 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
7503 2015-10-15 Richard Biener <rguenther@suse.de>
7505 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
7506 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
7507 * tree-vect-loop.c (get_initial_def_for_induction): Drop
7508 use of force_gimple_operand in favor of gimple_build.
7509 Use vect_get_new_ssa_name.
7510 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
7511 (vectorizable_mask_load_store): Likewise.
7512 (vectorizable_call): Likewise.
7513 (vectorizable_store): Likewise.
7514 (vectorizable_load): Likewise.
7515 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
7517 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
7519 PR tree-optimization/67945
7520 * tree-pass.h (PROP_gimple_opt_math): New property flag.
7521 * generic-match-head.c (canonicalize_math_p): New function.
7522 * gimple-match-head.c: Include tree-pass.h.
7523 (canonicalize_math_p): New function.
7524 * match.pd: Group math built-in rules into simplifications
7525 and canonicalizations. Guard the latter with canonicalize_math_p.
7526 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
7527 PROP_gimple_opt_math property.
7529 2015-10-15 Marek Polacek <polacek@redhat.com>
7531 PR tree-optimization/67953
7532 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
7534 2015-10-15 Jiong Wang <jiong.wang@arm.com>
7536 * config.gcc: Recognize "." in architecture base name for AArch64.
7538 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
7540 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
7542 * config/mips/mips.c (mips_setup_incoming_varargs): Use
7543 ROUND_DOWN to calculate off.
7544 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
7545 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
7548 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
7550 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
7552 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
7553 Torvald Riegel <triegel@redhat.com>
7556 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
7557 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
7558 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
7559 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
7560 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
7561 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
7562 trechkpt, treclaim, tsr, ttest): New define_expands.
7563 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
7564 __TM_FENCE__ for htm.
7565 * doc/extend.texi: Update documentation for htm builtins.
7567 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
7570 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
7571 REG_CFA_EXPRESSION to aligned SSE stores.
7573 2015-10-14 Jeff Law <law@redhat.com>
7575 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
7576 num_threaded_edges for successful FSM threads too.
7578 2015-10-14 Richard Biener <rguenther@suse.de>
7580 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
7581 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
7582 (vect_get_vec_def_for_operand): Remove unused parameter.
7583 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
7584 (vect_create_epilog_for_reduction): Likewise.
7585 (vectorizable_reduction): Likewise.
7586 (vectorizable_live_operation): Likewise.
7587 * tree-vect-patterns.c (type_conversion_p): Likewise.
7588 (vect_recog_vector_vector_shift_pattern): Likewise.
7589 (check_bool_pattern): Likewise.
7590 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
7591 (vect_analyze_slp_cost_1): Likewise.
7592 * tree-vect-stmts.c (process_use): Likewise.
7593 (vect_get_vec_def_for_operand): Do not handle reductions.
7594 (vect_get_vec_defs): Adjust.
7595 (vectorizable_mask_load_store): Likewise.
7596 (vectorizable_call): Likewise.
7597 (vectorizable_simd_clone_call): Likewise.
7598 (vect_get_loop_based_defs): Likewise.
7599 (vectorizable_conversion): Likewise.
7600 (vectorizable_assignment): Likewise.
7601 (vectorizable_shift): Likewise.
7602 (vectorizable_operation): Likewise.
7603 (vectorizable_store): Likewise.
7604 (vectorizable_load): Likewise.
7605 (vect_is_simple_cond): Likewise.
7606 (vectorizable_condition): Likewise.
7607 (vect_is_simple_use): Remove unused parameters.
7608 (vect_is_simple_use_1): Adjust and rename.
7610 2015-10-14 Richard Biener <rguenther@suse.de>
7612 PR tree-optimization/67915
7613 * match.pd: Handle comparisons of addresses of STRING_CSTs.
7614 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
7615 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
7616 stmt folding in favor of GIMPLE one.
7618 2015-10-14 Marek Polacek <polacek@redhat.com>
7620 PR tree-optimization/67815
7621 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
7622 (reassociate_bb): Call it.
7624 2015-10-14 Richard Biener <rguenther@suse.de>
7626 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7627 Reset info at start.
7628 (vect_analyze_group_access_1): Add debug print.
7629 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
7630 (vect_compute_single_scalar_iteration_cost): ... to this.
7631 (vect_analyze_loop_2): Adjust.
7632 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
7633 * tree-vectorizer.h: ... here.
7634 (add_stmt_info_to_vec): Remove.
7635 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
7637 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
7639 * targhooks.c (default_target_option_pragma_parse): Do not warn if
7640 called on behalf of "#pragma GCC pop_options".
7642 2015-10-14 Tom de Vries <tom@codesourcery.com>
7644 * cfganal.c (verify_no_unreachable_blocks): New function.
7645 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
7646 verify_no_unreachable_blocks.
7647 cfganal.h (verify_no_unreachable_blocks): Declare.
7649 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
7651 * common.opt: Add flag_checking.
7652 * system.h (CHECKING_P): Define.
7654 2015-10-13 Jakub Jelinek <jakub@redhat.com>
7655 Aldy Hernandez <aldyh@redhat.com>
7656 Ilya Verbin <ilya.verbin@intel.com>
7658 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
7659 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
7660 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
7661 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
7662 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
7663 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
7664 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
7665 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
7666 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
7667 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
7668 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
7669 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
7670 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
7671 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
7672 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
7673 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
7674 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
7675 (struct cgraph_simd_clone_arg): Adjust comment.
7676 * coretypes.h (struct gomp_ordered): New forward decl.
7677 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
7678 set critical clauses to it.
7679 (gimple_build_omp_ordered): Return gomp_ordered * instead of
7680 gimple *. Add CLAUSES argument, set ordered clauses to it.
7681 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
7683 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
7684 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
7685 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
7686 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
7687 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
7688 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
7689 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
7690 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
7692 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
7693 (gomp_critical): Add clauses field.
7694 (gomp_ordered): New struct.
7695 (is_a_helper <gomp_ordered *>::test): New inline.
7696 (gimple_build_omp_critical): Add CLAUSES argument.
7697 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
7698 instead of gimple *.
7699 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
7700 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
7701 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
7702 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
7704 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
7705 (dump_gimple_omp_target): Handle enter data and exit data.
7706 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
7707 (dump_gimple_omp_critical): Print clauses.
7708 (dump_gimple_omp_ordered): New function.
7709 (dump_gimple_omp_task): Handle taskloop.
7710 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
7712 * gimple-walk.c (walk_gimple_op): Walk clauses on
7713 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
7714 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
7715 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
7716 (struct gimplify_omp_ctx): Add loop_iter_var,
7717 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
7718 and target_firstprivatize_array_bases fields.
7719 (delete_omp_context): Release loop_iter_var.
7720 (gimplify_bind_expr): Handle ORT_NONE.
7721 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
7722 ORT_COMBINED_TARGET.
7723 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
7724 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
7725 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
7726 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
7727 ctx->target_map_scalars_firstprivate.
7728 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
7729 data sharing clauses. For data sharing clause with VLA decl
7730 on omp target/target data don't add firstprivate for the pointer.
7731 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
7732 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
7733 the addition of ORT_COMBINED_TARGET.
7734 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
7735 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
7736 pointers as zero length array sections and
7737 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
7739 (omp_check_private): Handle omp_member_access_dummy_var vars.
7740 (find_decl_expr): New function.
7741 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
7742 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
7743 Handle OMP_CLAUSE_GANG separately. Handle
7744 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
7745 clauses. Diagnose linear clause on combined
7746 distribute {, parallel for} simd construct, unless it is the loop
7747 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
7748 Handle map clauses with COMPONENT_REF. Initialize
7749 ctx->target_map_scalars_firstprivate,
7750 ctx->target_firstprivatize_array_bases and
7751 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
7752 linear clause even to target region if combined. Remove
7753 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
7754 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
7755 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
7756 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
7757 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
7758 For linear clause on worksharing loop combined with parallel add
7759 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
7760 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
7761 omp_member_access_dummy_var vars. Add lastprivate clause to outer
7763 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
7764 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
7765 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
7767 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
7768 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
7769 in target body. Handle removal of struct mapping if struct is not
7770 seen in target body. Remove GOMP_MAP_STRUCT map clause on
7771 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
7772 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
7773 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
7774 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
7775 clause appear together. Handle
7776 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
7777 clause if it has map-type-modifier always. Handle
7778 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
7780 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
7781 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
7783 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
7784 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
7785 iterators in doacross loops.
7786 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
7787 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
7788 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
7789 for the addition of ORT_COMBINED_TARGET.
7790 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
7791 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
7792 and OMP_TARGET_EXIT_DATA.
7793 (gimplify_omp_ordered): New function.
7794 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
7795 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
7796 Gimplify clauses on OMP_CRITICAL.
7797 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
7798 expand_GOMP_SIMD_ORDERED_END): New functions.
7799 * internal-fn.def (GOMP_SIMD_ORDERED_START,
7800 GOMP_SIMD_ORDERED_END): New internal functions.
7801 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
7802 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
7803 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
7804 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
7805 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
7806 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
7807 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
7808 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
7809 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
7810 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
7811 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
7812 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
7813 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
7814 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
7816 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
7817 GOMP_target_data_41, adjust type.
7818 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
7819 GOMP_target_update_41, adjust type.
7820 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
7822 (struct omp_for_data): Add ordered and simd_schedule fields.
7823 (omp_member_access_dummy_var, unshare_and_remap_1,
7824 unshare_and_remap, is_taskloop_ctx): New functions.
7825 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
7826 (extract_omp_for_data): Handle taskloops and doacross loops
7827 and simd schedule modifier.
7828 (omp_adjust_chunk_size): New function.
7829 (get_ws_args_for): Use it.
7830 (lookup_sfield): Change first argument to splay_tree_key,
7831 add overload with first argument tree.
7832 (maybe_lookup_field): Likewise.
7833 (use_pointer_for_field): Handle omp_member_access_dummy_var.
7834 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
7835 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
7836 (build_outer_var_ref): Add LASTPRIVATE argument, handle
7837 taskloops and omp_member_access_dummy_var vars.
7838 (build_sender_ref): Change first argument to splay_tree_key,
7839 add overload with first argument tree.
7840 (install_var_field): For mask & 8 use &DECL_UID as key instead
7842 (fixup_child_record_type): Const qualify *.omp_data_i.
7843 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
7844 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
7845 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
7846 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
7847 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
7848 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
7849 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
7851 (add_taskreg_looptemp_clauses): New function.
7852 (scan_omp_parallel): Use it.
7853 (scan_omp_task): Likewise.
7854 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
7855 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
7856 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
7857 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
7858 sandwiched taskloop constructs. Type check
7859 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
7860 region. Diagnose depend(source) or depend(sink:...) on
7861 target constructs or task/taskloop.
7862 (handle_simd_reference): Use get_name.
7863 (lower_rec_input_clauses): Likewise. Ignore all
7864 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
7865 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
7866 before passing it to omp_clause_{default,copy}_ctor. Handle
7867 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
7868 lastprivate_firstprivate flag for linear that needs copyin and
7869 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
7870 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
7871 on taskloop lookup decl in outer context. Pass true to
7872 build_outer_var_ref lastprivate argument. Handle
7873 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
7874 outside of outer taskloop for.
7875 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
7877 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
7878 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
7879 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
7880 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
7881 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
7882 abstract origin. Handle omp_member_access_dummy_var vars.
7883 (expand_parallel_call): Use expand_omp_build_assign.
7884 (expand_task_call): Handle taskloop construct expansion. Add
7885 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
7886 integers. Add priority argument to GOMP_task* calls. Or in
7887 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
7889 (expand_omp_build_assign): Add prototype. Add AFTER
7890 argument, if true emit statements after *GSI_P and continue linking.
7891 (expand_omp_taskreg): Adjust expand_task_call caller.
7892 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
7893 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
7894 zero_iter2_bb and first_zero_iter2 arguments, handle computation
7895 of counts even for ordered loops.
7896 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
7897 (expand_omp_ordered_source, expand_omp_ordered_sink,
7898 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
7900 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
7901 clauses on worksharing loop. Handle DOACROSS loop expansion.
7902 (expand_omp_for_static_nochunk): Handle linear clauses on
7903 worksharing loop. Adjust expand_omp_for_init_counts
7905 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
7906 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
7907 expand_omp_for_init_counts callers.
7908 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
7910 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
7911 Handle doacross loops.
7912 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
7913 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
7914 GOMP_target_{41,update_41,enter_exit_data} libcalls.
7915 (expand_omp): Don't expand ordered depend constructs here, record
7916 ord_stmt instead for later expand_omp_for_generic.
7917 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
7918 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
7919 clause as stand-alone directive.
7920 (lower_omp_ordered_clauses): New function.
7921 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
7922 don't lower anything.
7923 (lower_omp_for_lastprivate): Use last _looptemp_ clause
7924 on taskloop for comparison.
7925 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
7926 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
7927 expansion for linear adjustments.
7928 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
7929 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
7930 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
7931 to tree * pointing to the stmt's clauses.
7932 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
7933 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
7934 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
7935 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
7936 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
7937 clauses. Always use short kind and 8-bit align shift.
7938 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
7939 (struct lower_omp_regimplify_operands_data): New type.
7940 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
7942 (lower_omp_1): Use lower_omp_regimplify_operands instead of
7943 gimple_regimplify_operands.
7944 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
7945 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
7946 clause as stand-alone directive.
7947 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
7948 (simd_clone_mangle): Mangle the various linear kinds
7950 (simd_clone_adjust_argument_types): Handle
7951 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
7952 (simd_clone_init_simd_arrays): Don't do anything for uval.
7953 (simd_clone_adjust): Handle
7954 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
7955 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
7956 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
7957 * omp-low.h (omp_member_access_dummy_var): New prototype.
7958 * passes.def (pass_simduid_cleanup): Schedule another copy of the
7959 pass after all optimizations.
7960 * tree.c (omp_clause_code_name): Add entries for
7961 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
7962 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
7963 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
7964 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
7965 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
7966 OMP_CLAUSE_REDUCTION 5 arguments. Handle
7967 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
7968 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
7970 * tree-core.h (enum omp_clause_linear_kind): New.
7971 (struct tree_omp_clause): Change type of map_kind
7972 from unsigned char to unsigned int. Add subcode.if_modifier
7973 and subcode.linear_kind fields.
7974 (enum omp_clause_code): Add
7975 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
7976 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
7977 (OMP_CLAUSE_REDUCTION): Document
7978 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
7979 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
7980 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
7981 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
7983 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
7985 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
7987 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
7988 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
7990 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
7991 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
7992 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
7993 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
7994 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
7995 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
7996 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
7997 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
7998 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
7999 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
8000 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
8001 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
8002 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
8003 * tree-inline.c (remap_gimple_stmt): Handle clauses on
8004 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
8005 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
8006 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
8007 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8008 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8009 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8010 (convert_local_omp_clauses): Likewise.
8011 * tree-pretty-print.c (dump_omp_clause): Handle
8012 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8013 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8014 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
8015 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
8016 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
8017 GOMP_MAP_FORCE_DEALLOC. Handle
8018 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
8019 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
8020 and clauses on OMP_ORDERED and OMP_CRITICAL.
8021 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
8022 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
8023 (vectorize_loops): Adjust comments.
8024 (pass_simduid_cleanup::execute): Likewise.
8025 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
8026 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
8027 * wide-int.h (wi::gcd): New.
8029 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
8031 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
8032 (ix86_function_arg_advance): Ditto.
8033 (ix86_function_arg): Ditto.
8034 (ix86_gimplify_va_arg): Ditto.
8035 (ix86_class_max_nregs): Ditto.
8036 (inline_memory_move_cost): Ditto.
8037 (ix86_set_reg_reg_cost): Ditto.
8038 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
8040 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
8043 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
8045 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
8047 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
8048 ROUND_UP macro and UNITS_PER_WORD * 2.
8049 * config/sparc/sparc.c (sparc_compute_frame_size):
8050 Use ROUND_UP and ROUND_DOWN macros where applicable.
8051 (function_arg_record_value, function_arg_record_value_1)
8052 (function_arg_record_value_1): Ditto.
8053 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
8054 alignment to double-word.
8055 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
8056 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
8059 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
8061 * rtl.h (print_insn): Fix prototype.
8063 2015-10-13 Tom de Vries <tom@codesourcery.com>
8065 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
8066 -1. Add assert that returned entry matches phi argument.
8067 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
8068 free_stmt_vec_info_vec ...
8069 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
8072 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
8074 PR tree-optimization/67909, 67947
8075 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
8076 really skip the inner loop.
8078 2015-10-13 Jeff Law <law@redhat.com>
8080 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8081 Allow single block jump threading paths.
8083 2015-10-13 Tom de Vries <tom@codesourcery.com>
8085 PR tree-optimization/67476
8086 * doc/invoke.texi (@item parloops-schedule): New item.
8087 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
8088 * tree-parloops.c: Include params-enum.h.
8089 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
8091 2015-10-13 Tom de Vries <tom@codesourcery.com>
8093 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
8094 * params-enum.h: New file.
8095 * opts.c (handle_param): Handle case that param arg is a string.
8096 * params-list.h: Handle DEFPARAMENUM5 in params.def.
8097 * params.c (find_param): New function, factored out of ...
8098 (set_param_value): ... here.
8099 (param_string_value_p): New function.
8100 * params.h (struct param_info): Add value_names field.
8101 (find_param, param_string_value_p): Declare.
8103 2015-10-13 Tom de Vries <tom@codesourcery.com>
8105 PR tree-optimization/67476
8106 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
8108 2015-10-13 Richard Biener <rguenther@suse.de>
8110 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
8111 the data dependence vector.
8112 (vect_peeling_hash_insert): Get the peeling hash table as argument.
8113 (vect_peeling_hash_get_lowest_cost): Likewise.
8114 (vect_enhance_data_refs_alignment): Adjust.
8115 (struct _vect_peel_info, struct _vect_peel_extended_info,
8116 struct peel_info_hasher): Move from ...
8117 * tree-vectorizer.h: ... here.
8118 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
8119 (LOOP_VINFO_PEELING_HTAB): Likewise.
8120 (struct _loop_vec_info): Remove min_profitable_iters and
8121 peeling_htab members.
8122 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
8124 (destroy_loop_vec_info): Adjust.
8125 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
8126 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
8127 to estimate alias versioning cost.
8128 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
8130 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
8132 * real.h (real_isinteger): Declare.
8133 * real.c (real_isinteger): New function.
8134 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
8135 if y is an even integer.
8137 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8140 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8141 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
8142 counts when these are more informative.
8144 2015-10-12 Jeff Law <law@redhat.com>
8146 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
8147 (fsm_find_control_stmt_paths): Change name of first argument to
8148 more accurately relfect what it really is. Handle simplification
8149 of GIMPLE_COND after finding a thread path for NAME.
8150 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
8151 nontrivial conditions to be handled by FSM threader.
8152 (thread_through_normal_block): Extract the name to looup via
8153 FSM threader from COND_EXPR.
8155 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
8156 restriction that traced SSA_NAME is a user variable.
8158 2015-10-12 Tom de Vries <tom@codesourcery.com>
8160 PR tree-optimization/67476
8161 * omp-low.c (expand_omp_for_generic): Add missing phis.
8163 2015-10-12 Tom de Vries <tom@codesourcery.com>
8165 PR tree-optimization/67476
8166 * omp-low.c (expand_omp_for_generic): Handle simple latch.
8168 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
8170 * config/aarch64/aarch64-simd-builtins.def: Update builtins
8171 tables: add tbl3 and tbx4.
8172 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
8173 (aarch64_tbx4v8qi): New.
8174 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
8175 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
8176 Rewrite using builtin functions.
8177 * config/aarch64/iterators.md (UNSPEC_TBX): New.
8179 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
8181 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
8183 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
8184 Use ROUND_UP and ROUND_DOWN macros where applicable.
8185 (rs6000_darwin64_record_arg_flush): Ditto.
8186 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
8187 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
8190 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
8192 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
8193 (AARCH64_ROUND_DOWN): Ditto.
8194 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
8196 2015-10-12 Richard Biener <rguenther@suse.de>
8199 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
8200 code that analyzes IVs on each stmt but in a cheaper way avoiding
8203 2015-10-12 Nick Clifton <nickc@redhat.com>
8205 * config/msp430/msp430.c (msp430_mcu_names): Rename to
8206 msp430_mcu_data, add fields for ISA and hardware multiply
8207 support. Import latest data from the devices.csv file.
8208 (msp430_override_option): Use the data from the new array.
8209 (msp430_use_f5_series_hwmult): Likewise.
8210 (use_32bit_hwmult): Likewise.
8211 (msp430_no_hwmult): Likewise.
8212 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
8214 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
8215 not recognised then no hardware multiply support is assumed and
8216 that only the MSP430 ISA is allowed.
8218 2015-10-12 Richard Biener <rguenther@suse.de>
8220 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
8222 (vect_analyze_loop_2): ... here.
8224 2015-10-11 Jason Merrill <jason@redhat.com>
8227 * expr.c (store_field): Call store_constructor directly when
8228 storing a CONSTRUCTOR into a target smaller than its type.
8229 Guard against unsafe bitwise copy.
8231 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8233 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
8234 counts when these are more informative.
8236 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8238 * tree-profile.c (tree_profiling): Do not clear
8239 pure/const when not instrumenting.
8240 (pass tree_profile): Add dump of symtab.
8242 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8244 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
8246 (fold_addr_of_array_ref_difference): Likewise.
8248 2015-10-11 Jeff Law <law@redhat.com>
8250 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
8251 tree-ssa-threadbackward.c.
8252 (fsm_find_control_statement_thread_paths): Likewise.
8253 (thread_through_normal_block): Break out FSM bits and move them
8254 into a new function in tree-ssa-threadbackward.c. Call new function
8256 Minimize header file usage.
8257 * tree-ssa-threadbackward.h: New file.
8258 * tree-ssa-threadbackward.c: Likewise.
8259 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
8261 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
8263 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
8265 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
8267 PR rtl-optimization/67864
8268 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
8269 fallthrough edges for conditional jumps. Don't sort candidate
8270 edges if not optimizing for speed.
8272 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8274 * defaults.h (REVERSE_CONDITION): New default definition.
8275 * jump.c (reversed_comparison_code_parts): Adjust.
8277 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8279 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
8280 check HARD_FRAME_POINTER_IS_ARG_POINTER.
8282 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8284 * defaults.h (FRAME_ADDR_RTX): New default definition.
8285 * builtins.c (expand_builtin_return_addr): Adjust.
8287 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8289 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
8290 * builtins.c (expand_builtin_return_addr): Adjust.
8292 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8294 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
8295 * builtins.c (expand_builtin_return_addr): Adjust.
8296 * doc/tm.texi: Likewise.
8297 * doc/tm.texi.in: Likewise.
8298 * except.c (expand_builtin_unwind_init): Likewise.
8300 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8302 * builtins.c (expand_builtin_return_addr): Adjust.
8303 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
8305 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
8307 * tree.c (type_with_interoperable_signedness): New.
8308 (gimple_canonical_types_compatible_p): Use it.
8309 * tree.h (type_with_interoperable_signedness): Declare
8311 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
8313 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
8314 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
8315 when OEP_ADDRESS_OF is se.
8317 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
8318 Sebastian Pop <s.pop@samsung.com>
8320 * graphite-dependences.c (scop_get_dependences): Add dump of the
8321 data dependence graph.
8322 * graphite-poly.c (print_isl_union_map): New.
8323 (debug_isl_union_map): New.
8324 * graphite-poly.h (print_isl_union_map): Declare.
8325 (debug_isl_union_map): Declare.
8327 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
8328 Sebastian Pop <s.pop@samsung.com>
8330 * graphite-poly.c (print_iteration_domain): Remove verbosity.
8331 Remove OpenScop formatting.
8332 (print_iteration_domains): Same.
8333 (debug_iteration_domain): Same.
8334 (debug_iteration_domains): Same.
8337 (dump_gbb_cases): Same.
8338 (dump_gbb_conditions): Same.
8341 (print_pbb_body): Same.
8343 (print_scop_params): Same.
8344 (print_scop_context): Same.
8346 (debug_pbb_domain): Same.
8348 (debug_scop_context): Same.
8350 (debug_scop_params): Same.
8351 * graphite-poly.h: Same.
8352 * graphite.c (graphite_transform_loops): Same.
8354 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8356 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
8357 call that isn't needed.
8359 2015-10-09 Jeff Law <law@redhat.com>
8361 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
8362 rather than moving each name to the freelist individually.
8364 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
8366 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
8367 * frame-header-opt.c: New file.
8368 * config/mips/mips-proto.h (mips_register_frame_header_opt):
8370 * config/mips/mips.c (mips_compute_frame_info): Check
8371 optimize_call_stack flag.
8372 (mips_option_override): Register new frame_header_opt pass.
8373 (mips_frame_info, mips_int_mask, mips_shadow_set,
8374 machine_function): Move these types to...
8375 * config/mips/mips.h: here.
8376 (machine_function): Add does_not_use_frame_header and
8377 optimize_call_stack fields.
8378 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
8379 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
8381 * config/mips/mips.opt (mframe-header-opt): Add new option.
8383 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
8385 * config/i386/i386.c
8386 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
8387 ROUND_DOWN where applicable.
8389 2015-10-09 Jeff Law <law@redhat.com>
8391 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
8394 2015-10-09 Renlin Li <renlin.li@arm.com>
8396 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
8397 operands[0] and operands[2].
8398 (neon_vtrn<mode>_insn): Likewise.
8399 (neon_vzip<mode>_insn): Likewise.
8401 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
8403 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
8404 ((X & C2) << C1): Expand to...
8405 (X {&,^,|} C2 << C1): ...This.
8406 ((X & C2) >> C1): Expand to...
8407 (X {&,^,|} C2 >> C1): ...This.
8409 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
8412 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
8413 Adjust embedded rounding/SAE specifier position.
8414 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
8415 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
8416 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
8417 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
8418 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
8420 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
8422 2015-10-09 Martin Jambor <mjambor@suse.cz>
8424 tree-optimization/67794
8425 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
8426 between types of state,ents but accept original definitions as a
8428 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
8429 iterate over definitions.
8431 2015-10-09 James Norris <jnorris@codesourcery.com>
8433 * config/rs6000/rs6000.c (rs6000_offload_options): New.
8434 (TARGET_OFFLOAD_OPTIONS): New.
8436 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
8439 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
8442 * function.c (expand_function_end): Move return value
8443 promotion past the handling of PARALLELs and CONCATs.
8445 PR rtl-optimization/67828
8446 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
8447 (tree_may_unswitch_on): Don't unswitch on expressions
8448 involving undefined values.
8450 2015-10-09 Richard Biener <rguenther@suse.de>
8452 * genmatch.c (print_operand): Fix formatting.
8453 (dt_node::append_simplify): Warn for multiple simplifiers
8454 that match the same pattern.
8455 * match.pd (log (exp @0)): Remove duplicates.
8457 2015-10-09 Richard Biener <rguenth@suse.de>
8460 * gimple-fold.c (optabs-query.h): Include
8461 (gimple_fold_builtin_memory_op): Allow unaligned stores
8462 when movmisalign_optabs are available.
8464 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8467 * config/arm/arm.md (movmisalign<mode>): New.
8468 * config/arm/iterators.md (HSI): New.
8470 2015-10-09 Richard Biener <rguenther@suse.de>
8472 PR tree-optimization/67891
8473 * gimple-match.h (gimple_simplified_result_is_gimple_val):
8475 (gimple_resimplify1): Declare.
8476 (gimple_resimplify2): Likewise.
8477 (gimple_resimplify3): Likewise.
8478 * gimple-match-head.c (gimple_resimplify1): Export.
8479 (gimple_resimplify2): Likewise.
8480 (gimple_resimplify3): Likewise.
8481 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
8482 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
8483 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
8484 to avoid creating stmts without VN info.
8486 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
8488 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
8491 2015-10-08 Jeff Law <law@redhat.com>
8493 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
8494 and release_ssa_name in two places.
8495 (gimple_stringop_fixed_value): Similarly.
8497 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
8500 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
8501 unlink_stmt_vdef and release_ssa_name_fn.
8503 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
8506 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
8508 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
8509 SSE register save area to 16 bytes only if the incoming stack
8510 boundary is no less than 16 bytes.
8512 2015-10-08 Jeff Law <law@redhat.com>
8514 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
8515 release_ssa_name. Fix typo in comment.
8517 2015-10-08 Nathan Sidwell <nathan@acm.org>
8519 * config/nvptx/nvptx.h (struct machine_function): Add comment.
8520 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
8521 may return pointer as well as in memory.
8522 (nvptx_output_return): Likewise.
8524 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
8526 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
8527 (fold_builtin_1): Update accordingly. Handle constant arguments here.
8528 * match.pd: Add rules previously handled by fold_builtin_sqrt
8529 and fold_builtin_cbrt.
8531 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
8533 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
8534 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
8535 * fold-const.h (tree_unary_nonnegative_warnv_p)
8536 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
8537 (tree_expr_nonnegative_warnv_p): Add depth parameters.
8538 * fold-const.c: Include gimple-fold.h and params.h.
8539 (tree_ssa_name_nonnegative_warnv_p): New function.
8540 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
8541 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
8542 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
8543 Add a depth parameter and increment it for recursive calls to
8544 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
8545 to handle SSA names.
8546 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
8547 (gimple_stmt_nonnegative_warnv_p): Declare.
8548 * tree-vrp.c (remove_range_assertions): Remove assert that condition
8549 cannot be proven false.
8550 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
8551 (gimple_stmt_nonnegative_warnv_p): Move to...
8552 * gimple-fold.c: ...here. Add depth parameters and pass them
8553 down to the tree routines. Accept statements that aren't
8554 assignments or calls but just return false for them.
8555 (gimple_val_nonnegative_real_p): Delete.
8556 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
8557 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
8558 Check HONOR_NANs first.
8560 2015-10-08 Martin Jambor <mjambor@suse.cz>
8562 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
8565 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
8567 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
8568 in the tail of outer-loop.
8570 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
8572 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
8575 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
8577 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
8578 "cfghooks.h", add prototypes for introduced new functions.
8579 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
8580 checks on ability of loop unswitching to tree_unswitch_single_loop;
8581 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
8582 on innermost loop check.
8583 (tree_unswitch_single_loop): Add all required checks on ability of
8584 loop unswitching under zero recursive level guard.
8585 (tree_unswitch_outer_loop): New function.
8586 (find_loop_guard): Likewise.
8587 (empty_bb_without_guard_p): Likewise.
8588 (used_outside_loop_p): Likewise.
8589 (get_vop_from_header): Likewise.
8590 (hoist_guard): Likewise.
8591 (check_exit_phi): Likewise.
8593 2015-10-08 Marek Polacek <polacek@redhat.com>
8595 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
8598 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8601 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
8602 create_tmp_var_raw instead of create_tmp_var.
8604 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
8606 * expr.c (store_expr_with_bounds): Handle aggregate moves from
8608 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
8609 to define gimple type system; compare aggregates only by size.
8611 2015-10-07 Jeff Law <law@redhat.com>
8613 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
8614 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
8615 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
8618 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
8619 Sebastian Pop <s.pop@samsung.com>
8621 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
8622 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
8623 (generate_isl_schedule): Same.
8624 * graphite-optimize-isl.c (scop_get_domains): Same.
8625 (apply_schedule_map_to_scop): Same.
8626 * graphite-poly.c (print_iteration_domains): Same.
8627 (remove_gbbs_in_scop): Same.
8631 * graphite-poly.h (struct scop): Rename bbs to pbbs.
8633 * graphite-scop-detection.c (compare_bb_depths): Remove.
8634 (graphite_sort_dominated_info): Remove.
8635 (try_generate_gimple_bb): Move out of scop_detection.
8636 (all_non_dominated_preds_marked_p): Remove.
8637 (build_scop_bbs_1): Remove.
8638 (build_scop_bbs): Remove.
8639 (nb_pbbs_in_loops): Do not use SCOP_BBS.
8640 (find_scop_parameters): Same.
8641 (sese_dom_walker): Rename gather_bbs.
8642 (before_dom_children): Call try_generate_gimple_bb and collect gbb
8644 (build_scops): Call gather_bbs.
8645 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
8646 (add_conditions_to_constraints): Same.
8647 (build_scop_iteration_domain): Same.
8648 (build_scop_drs): Same.
8649 (new_pbb_from_pbb): Same.
8650 * sese.c (new_sese_info): Create bbs.
8651 * sese.h (struct sese_info_t): Add bbs.
8653 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
8655 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
8656 encoding in 64-bit mode.
8658 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
8661 * config/i386/i386.c (ix86_option_override_internal): Always use
8662 8-byte minimum stack boundary in 64-bit mode.
8663 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
8664 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
8665 Add a REG_CFA_EXPRESSION note if needed.
8666 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
8667 (ix86_handle_force_align_arg_pointer_attribute): New.
8668 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
8669 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
8670 with ix86_handle_force_align_arg_pointer_attribute.
8671 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
8673 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
8674 Sebastian Pop <s.pop@samsung.com>
8676 * graphite-scop-detection.c (parameter_index_in_region): Remove
8677 use of SESE_ADD_PARAMS.
8678 (find_scop_parameters): Same.
8679 * sese.c (new_sese_info): Same.
8680 * sese.h (struct sese_info_t): Remove add_params.
8681 (SESE_ADD_PARAMS): Remove.
8683 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
8684 Sebastian Pop <s.pop@samsung.com>
8686 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
8689 (copy_internal_parameters): Same.
8690 (translate_isl_ast_to_gimple): Use an sese_l.
8691 (build_iv_mapping): Same.
8692 * graphite-poly.c (new_sese): Rename new_sese_info.
8693 (free_sese): Rename free_sese_info.
8694 * graphite-poly.h (struct scop): Use an sese_info_p.
8695 (scop_set_region): Same.
8696 * graphite-scop-detection.c (struct sese_l): Moved...
8697 (get_entry_bb): Moved...
8698 (get_exit_bb): Moved...
8699 (parameter_index_in_region_1): Use an sese_info_p.
8700 (parameter_index_in_region): Same.
8701 (scan_tree_for_params): Same.
8702 (find_params_in_bb): Same.
8703 (sese_dom_walker): Use an sese_l.
8704 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
8705 (reduction_phi_p): Same.
8706 (parameter_index_in_region_1): Use an sese_info_p.
8707 (propagate_expr_outside_region): Use an sese_l.
8708 * graphite.c: Replace uses of SCOP_REGION.
8709 * sese.c (sese_record_loop): Use an sese_info_p.
8710 (build_sese_loop_nests): Same.
8711 (sese_build_liveouts_use): Same.
8712 (sese_build_liveouts_bb): Same.
8713 (sese_build_liveouts_bb): Same.
8714 (sese_bad_liveouts_use): Same.
8715 (sese_reset_debug_liveouts_bb): Same.
8716 (sese_build_liveouts): Same.
8717 (new_sese): Renamed new_sese_info.
8718 (free_sese): Renamed free_sese_info.
8719 (set_rename): Use an sese_info_p.
8720 (graphite_copy_stmts_from_block): Same.
8721 (copy_bb_and_scalar_dependences): Same.
8722 (outermost_loop_in_sese_1): Use an sese_l.
8723 (outermost_loop_in_sese): Same.
8724 (if_region_set_false_region): Use an sese_info_p.
8725 (move_sese_in_condition): Same.
8726 (scalar_evolution_in_region): Use an sese_l.
8727 * sese.h (struct sese_l): ... here.
8728 (SESE_ENTRY): Remove.
8729 (SESE_ENTRY_BB): Remove.
8730 (SESE_EXIT): Remove.
8731 (SESE_EXIT_BB): Remove.
8732 (sese_contains_loop): Use an sese_info_p.
8733 (sese_nb_params): Same.
8734 (bb_in_sese_p): Use an sese_l.
8735 (stmt_in_sese_p): Same.
8736 (defined_in_sese_p): Same.
8737 (loop_in_sese_p): Same.
8738 (sese_loop_depth): Same.
8739 (struct ifsese_s): Use an sese_info_p.
8740 (gbb_loop_at_index): Use an sese_l.
8741 (nb_common_loops): Same.
8742 (scev_analyzable_p): Same.
8744 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
8746 * config/i386/i386.c (ix86_conditional_register_usage): Use
8747 CALL_USED_REGISTERS_MASK.
8748 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
8750 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
8753 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
8754 * configure: Regenerated.
8756 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
8759 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
8760 (ix86_set_current_function): This.
8761 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
8763 2015-10-07 Richard Biener <rguenther@suse.de>
8765 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
8766 (vinfo_for_stmt): Adjust.
8767 (set_vinfo_for_stmt): Likewise.
8768 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
8769 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
8770 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
8772 (vect_analyze_loop_1): Remove.
8773 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
8774 inner loop when vectorizing an outer loop by splitting out from ...
8775 (vect_analyze_loop_form): ... here.
8777 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8780 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
8781 Use create_tmp_var_raw instead of create_tmp_var.
8783 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
8785 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
8786 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
8787 * real.c (CACHED_FRACTION): New helper macro.
8788 (dconst_third_ptr): Use it.
8789 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
8790 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
8792 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
8794 2015-10-06 Jeff Law <law@redhat.com>
8796 PR tree-optimization/67816
8797 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
8798 from remove_jump_threads_starting_at. Accept an edge rather than
8800 * tree-ssa-threadupdate.c (removed_edges): New hash table.
8801 (remove_jump_threads_including): Note edges that get removed from
8802 the CFG for later pruning of jump threading paths including them.
8803 (thread_through_all_blocks): Remove paths which include edges that
8805 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
8806 on each outgoing edges when optimizing away a control statement.
8808 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8810 * reorg.c (emit_delay_sequence): Store list of delay slot insns
8811 in a vector instead of rtx_insn_list.
8812 (add_to_delay_list): Likewise.
8813 (delete_from_delay_slot): Likewise.
8814 (optimize_skip): Likewise.
8815 (redirect_with_delay_list_safe_p): Likewise.
8816 (check_annul_list_true_false): Likewise.
8817 (steal_delay_list_from_target): Likewise.
8818 (steal_delay_list_from_fallthrough): Likewise.
8819 (redundant_insn): Likewise.
8820 (fill_simple_delay_slots): Likewise.
8821 (fill_slots_from_thread): Likewise.
8822 (fill_eager_delay_slots): Likewise.
8823 (relax_delay_slots): Likewise.
8825 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
8827 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
8828 For -mgpopt=local, also exclude unintialized common symbols.
8829 * doc/invoke.texi (Nios II Options): Document the change.
8831 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
8833 * config/aarch64/iterators.md (vwcore): Add missing cases for
8836 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
8837 Sebastian Pop <s.pop@samsung.com>
8839 * graphite-poly.c (new_scop): Initialize drs.
8840 * graphite-poly.h (struct dr_info): New.
8841 (struct scop): Add drs.
8842 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
8843 (pdr_add_memory_accesses): Same.
8844 (build_poly_dr): Same.
8845 (build_alias_set): Same.
8846 (build_scop_drs): Same.
8847 (build_pbb_drs): Remove.
8848 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
8849 * tree-data-ref.h (data_reference): Remove alias_set.
8851 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
8852 Sebastian Pop <s.pop@samsung.com>
8854 * graphite-poly.c (free_data_refs_aux): Remove.
8855 (free_gimple_poly_bb): Do not call free_data_refs_aux.
8856 * graphite-poly.h (struct base_alias_pair): Remove.
8857 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
8858 base_alias_pair and dr->aux.
8859 (build_alias_set): Same.
8860 * tree-data-ref.c (create_data_ref): Initialize alias_set.
8861 * tree-data-ref.h (data_reference): Add alias_set.
8863 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
8864 Sebastian Pop <s.pop@samsung.com>
8866 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
8867 Do not set PDR_BASE_OBJECT_SET.
8868 * graphite-poly.h (poly_dr): Same.
8869 (PDR_BASE_OBJECT_SET): Remove.
8870 (new_poly_dr): Update decl.
8871 * graphite-sese-to-poly.c (build_poly_dr): Update call to
8873 (write_alias_graph_to_ascii_dimacs): Remove.
8874 (write_alias_graph_to_ascii_dot): Remove.
8875 (write_alias_graph_to_ascii_ecc): Remove.
8876 (dr_same_base_object_p): Remove.
8877 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
8879 (build_base_obj_set_for_drs): Remove.
8880 (dump_alias_graphs): Remove.
8881 (build_scop_drs): Remove dead code.
8883 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
8884 Peter Bergner <bergner@vnet.ibm.com>
8887 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
8888 allow registers, but provide insns for the combiner to create for
8889 loads from memory. Separate VSX code from non-VSX code. For
8890 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
8891 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
8892 so that registers come before memory operations. Drop support from
8893 converting DFmode to TFmode, if the DFmode value is in a GPR
8895 (extenddftf2_fprs): Likewise.
8896 (extenddftf2_internal): Likewise.
8897 (extenddftf2_vsx): Likewise.
8898 (extendsftf2): In the expander, only allow registers, but provide
8899 insns for the combiner to create for stores and loads.
8901 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8903 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
8904 from the decl parameter.
8906 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
8909 * gimple-fold.c (gimple_fold_builtin): Add break after
8910 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
8912 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
8914 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
8915 to scop->isl_context.
8917 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
8919 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
8920 (output_probe_stack_range): Rotate the loop and simplify.
8921 (thumb1_expand_prologue): Tweak sorry message.
8922 * config/arm/arm.md (probe_stack): Use bare string.
8924 2015-10-06 Nick Clifton <nickc@redhat.com>
8926 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
8928 2015-10-06 Nick Clifton <nickc@redhat.com>
8930 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
8931 (ATTR_PERSIST): New constant.
8932 (msp430_data_attr): New function - verifies an attribute that only
8933 applies to variables.
8934 (msp430_attributes): Add noinit and persistent attributes.
8935 (noinit_section): New variable.
8936 (presis_section): New variable.
8937 (TARGET_ASM_INIT_SECTIONS): Define.
8938 (msp430_init_sections): New function - initialises the noinit and
8939 persist section variables.
8940 (msp430_select_section): Add support for noinit and persist
8942 (msp430_section_type_flags): Likewise.
8943 * doc/extend.texi: Document the reent, critical, wakeup, noinit
8944 and persistent attributes.
8946 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
8947 Sebastian Pop <s.pop@samsung.com>
8949 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
8950 (no_violations): Remove.
8951 (subtract_commutative_associative_deps): Remove.
8952 (compute_deps): Do not call subtract_commutative_associative_deps.
8953 (transform_is_safe): Remove.
8954 (graphite_legal_transform): Remove.
8955 * graphite-poly.h (graphite_legal_transform): Remove.
8957 2015-10-05 Aditya Kumar <hiraditya@msn.com>
8959 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
8960 which are in this region are passed so gcc_assert and remove redundant
8962 * sese.c (sese_build_liveouts): Pass only those bbs which are not
8964 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
8965 gcc_assert on that and remove unnecessary computation.
8966 (sese_build_liveouts_use): Same.
8968 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
8970 * graphite-dependences.c (scop_get_reads): Renamed scop->context
8971 to scop->param_context.
8972 (scop_get_must_writes): Same.
8973 (scop_get_may_writes): Same.
8974 (scop_get_original_schedule): Same.
8975 (scop_get_transformed_schedule): Same.
8976 (subtract_commutative_associative_deps): Same.
8977 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
8978 (generate_isl_context): Same.
8979 (generate_isl_schedule): Same.
8980 (scop_to_isl_ast): Same.
8981 (graphite_regenerate_ast_isl): Same.
8982 * graphite-optimize-isl.c (scop_get_domains): Same.
8983 (optimize_isl): Renamed scop->context to scop->param_context.
8984 * graphite-poly.c (new_poly_bb): Change the type of argument to
8986 (new_scop): Renamed scop->context to scop->param_context.
8988 (print_scop_context): Same.
8989 * graphite-poly.h (new_poly_dr): Change the type of argument from
8990 void* to data_reference_p.
8991 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
8992 (new_poly_bb): Change the type of argument from void* to
8994 (pbb_set_black_box): Same.
8995 (struct scop): Rename context to param_context, ctx to isl_context.
8996 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
8997 Move declarations closer to assignment.
8998 (find_params_in_bb): Same.
8999 (find_scop_parameters): Same.
9000 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
9001 Global to be used for statement IDs.
9002 (isl_id_for_pbb): Use ssa_name_version_typesize.
9003 (simple_copy_phi_p): Move declarations closer to assignment.
9004 (build_pbb_scattering_polyhedrons): Same.
9005 (build_scop_scattering): Same.
9006 (isl_id_for_ssa_name): Same.
9007 (extract_affine_name): Same.
9008 (extract_affine_int): Same.
9009 (extract_affine): Same.
9010 (set_scop_parameter_dim): Use renamed member.
9011 (build_loop_iteration_domains): Same.
9012 (add_param_constraints): Same.
9013 (build_scop_iteration_domain): Same.
9014 (pdr_add_data_dimensions): Same.
9015 (build_poly_dr): Same.
9016 (build_scop_drs): Move declarations closer to assignment.
9017 (analyze_drs_in_stmts): Same.
9018 (insert_out_of_ssa_copy): Same.
9019 (insert_out_of_ssa_copy_on_edge): Same.
9020 (propagate_expr_outside_region): Same.
9021 (rewrite_phi_out_of_ssa): Same.
9022 (rewrite_degenerate_phi): Same.
9023 (rewrite_reductions_out_of_ssa): Same.
9024 (rewrite_cross_bb_scalar_dependence): Same.
9025 (handle_scalar_deps_crossing_scop_limits): Same.
9026 (rewrite_cross_bb_scalar_deps): Same.
9027 * graphite.c (graphite_transform_loops): Use renamed member.
9029 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
9032 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
9033 create_tmp_var_raw instead of create_tmp_var.
9035 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9038 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
9039 Use create_tmp_var_raw instead of create_tmp_var.
9041 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
9044 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
9045 split for upper-bank registers when target does not support
9047 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
9048 split when target does not support AVX512VL.
9050 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
9053 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
9054 Adjust to use create_tmp_var_raw instead of create_tmp_var.
9056 2015-10-06 Nick Clifton <nickc@redhat.com>
9058 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
9061 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9063 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
9064 (case ${target}): Add znver1.
9065 * config/i386/cpuid.h(bit_CLZERO): Define.
9066 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
9067 -march=native recognize znver1 processors.
9068 * config/i386/i386-c.c (ix86_target_macros_internal): Add
9069 znver1, clzero def_and_undef.
9070 * config/i386/i386.c (struct processor_costs znver1_cost): New.
9071 (m_znver1): New definition.
9072 (m_AMD_MULTIPLE): Includes m_znver1.
9073 (processor_target_table): Add znver1 entry.
9074 (ix86_target_string) : Add clzero entry.
9075 (static const char *const cpu_names): Add znver1 entry.
9076 (ix86_option_override_internal): Add znver1 instruction sets.
9077 (PTA_CLZERO) : New definition.
9078 (ix86_option_override_internal): Handle new clzerooption.
9079 (ix86_issue_rate): Add znver1.
9080 (ix86_adjust_cost): Add znver1.
9081 (ia32_multipass_dfa_lookahead): Add znver1.
9082 (has_dispatch): Add znver1.
9083 * config/i386/i386.h (TARGET_znver1): New definition.
9084 (TARGET_CLZERO): Define.
9085 (TARGET_CLZERO_P): Define.
9086 (struct ix86_size_cost): Add TARGET_ZNVER1.
9087 (enum processor_type): Add PROCESSOR_znver1.
9088 * config/i386/i386.md (define_attr "cpu"): Add znver1.
9089 (set_attr znver1_decode): New definitions for znver1.
9090 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
9092 * config/i386/mmx.md (set_attr znver1_decode): New definitions
9094 * config/i386/sse.md (set_attr znver1_decode): Likewise.
9095 * config/i386/x86-tune.def: Add znver1 tunings.
9096 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
9097 * doc/invoke.texi: Add details about znver1
9099 2015-10-06 Richard Biener <rguenther@suse.de>
9101 PR tree-optimization/67859
9102 * tree-ssa-pre.c (create_expression_by_pieces): Properly
9103 discard not inserted stmts.
9105 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
9107 * doc/extend.texi (Template Instantiation): Reorder options and
9108 de-emphasize -frepo.
9109 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
9110 example instead of -frepo.
9112 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
9115 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
9116 use create_tmp_var_raw rather than create_tmp_var.
9118 2015-10-06 Richard Biener <rguenther@suse.de>
9120 * tree-vectorizer.h (vec_info): New base class for...
9121 (_loop_vec_info): ... this and ...
9122 (_bb_vec_info): ... this.
9123 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
9124 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
9125 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
9126 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
9127 vect_destroy_datarefs): Adjust interface to take a vec_info *
9128 rather than both a loop_vec_info and a bb_vec_info argument.
9129 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
9130 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
9131 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
9132 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
9134 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
9135 (destroy_loop_vec_info, vect_analyze_loop_2,
9136 vect_is_simple_reduction_1, get_initial_def_for_induction,
9137 vect_create_epilog_for_reduction, vectorizable_reduction,
9138 vectorizable_live_operation, vect_transform_loop): Adjust.
9139 * tree-vect-patterns.c (type_conversion_p,
9140 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
9141 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
9142 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
9143 check_bool_pattern, vect_recog_bool_pattern,
9144 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
9145 * tree-vect-slp.c (vect_get_and_check_slp_defs,
9146 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
9147 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
9148 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
9149 (new_bb_vec_info): Initialize base classs.
9150 * tree-vect-stmts.c (record_stmt_cost, process_use,
9151 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
9152 vectorizable_mask_load_store, vectorizable_call,
9153 vectorizable_simd_clone_call, vectorizable_conversion,
9154 vectorizable_assignment, vectorizable_shift,
9155 vectorizable_operation, vectorizable_store,
9156 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
9157 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
9158 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
9160 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
9163 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
9164 create_tmp_var_raw rather than create_tmp_var.
9166 2015-10-05 Marek Polacek <polacek@redhat.com>
9168 * tree-ssa-loop-im.c
9169 (move_computations_dom_walker::before_dom_children): Don't set
9170 SSA_NAME_ANTI_RANGE_P.
9171 * tree-ssa-phiopt.c (value_replacement): Likewise.
9173 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9174 Sebastian Pop <s.pop@samsung.com>
9176 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
9178 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9179 Sebastian Pop <s.pop@samsung.com>
9181 * graphite-poly.c (new_gimple_poly_bb): ... here.
9182 (free_data_refs_aux): ... here.
9183 (free_gimple_poly_bb): ... here.
9184 (remove_gbbs_in_scop): ... here.
9185 (new_scop): Call new_sese.
9186 (free_scop): Call remove_gbbs_in_scop and free_sese.
9187 * graphite-poly.h (base_alias_pair): ... here.
9188 (new_gimple_poly_bb): Declare.
9189 (free_gimple_poly_bb): Declare.
9190 * graphite-scop-detection.c (parameter_index_in_region_1):
9191 (parameter_index_in_region): ... here.
9192 (scan_tree_for_params): ... here.
9193 (find_params_in_bb): ... here.
9194 (find_scop_parameters): ... here.
9195 (build_scops): Call find_scop_parameters.
9196 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
9197 (free_scops): Move...
9198 (single_pred_cond_non_loop_exit): Move...
9199 (sese_dom_walker::before_dom_children): Move...
9200 (sese_dom_walker::after_dom_children): Move...
9201 (build_poly_scop): Move...
9202 * graphite-sese-to-poly.h (base_alias_pair): Move...
9203 * graphite.c (free_scops): ... here.
9205 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9206 Sebastian Pop <s.pop@samsung.com>
9208 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
9209 (trivially_empty_bb_p): Move...
9210 (same_close_phi_node): Move...
9211 (new_gimple_poly_bb): Move...
9212 (compare_bb_depths): Move...
9213 (graphite_sort_dominated_info): Move...
9214 (remove_duplicate_close_phi): Move...
9215 (make_close_phi_nodes_unique): Move...
9216 (canonicalize_loop_closed_ssa): Move...
9217 (canonicalize_loop_closed_ssa_form): Move...
9218 (loop_ivs_can_be_represented): Move...
9219 (single_pred_cond_non_loop_exit): Move...
9220 (graphite_can_represent_init): Move...
9221 (graphite_can_represent_scev): Move...
9222 (stmt_has_simple_data_refs_p): Move...
9223 (stmt_has_side_effects): Move...
9224 (graphite_can_represent_stmt): Move...
9225 (scop_detection): ... here.
9226 (sese_dom_walker): ... and here.
9227 (build_scops): Call all moved functions.
9228 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
9229 (all_non_dominated_preds_marked_p): Move...
9230 (build_scop_bbs_1): Move...
9231 (build_scop_bbs): Move...
9232 (set_scop_parameter_dim): Move...
9233 (nb_pbbs_in_loops): Move...
9234 (build_poly_scop): Do not call all the moved functions.
9236 2015-10-05 Martin Jambor <mjambor@suse.cz>
9237 Jan Hubicka <hubicka@ucw.cz>
9239 * ipa-cp.c (ipcp_alignment_lattice): New type.
9240 (ipcp_param_lattices): Use the above to represent alignment.
9241 (ipcp_alignment_lattice::print): New function.
9242 (print_all_lattices): Use it to print alignment information.
9243 (ipcp_alignment_lattice::top_p): New function.
9244 (ipcp_alignment_lattice::bottom_p): Likewise.
9245 (ipcp_alignment_lattice::set_to_bottom): Likewise.
9246 (ipcp_alignment_lattice::meet_with_1): Likewise.
9247 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
9248 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
9249 (initialize_node_lattices): Likewise.
9250 (propagate_alignment_accross_jump_function): Work with the new class
9251 for alignment lattices.
9252 (propagate_constants_accross_call): Pass only the alignment lattice to
9253 propagate_alignment_accross_jump_function.
9254 (ipcp_store_alignment_results): Work with the new class for alignment
9257 2015-10-05 Marek Polacek <polacek@redhat.com>
9259 PR tree-optimization/67821
9260 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
9262 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
9265 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
9267 (mkoffload_cleanup): ... this. Adjust all users.
9268 (maybe_unlink): Look at save_temps and verbose flags instead of
9270 (main): Parse "-save-temps" flag.
9271 (generate_target_descr_file, generate_target_offloadend_file)
9272 (generate_host_descr_file, prepare_target_image): Pass it on.
9273 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
9274 (mkoffload_cleanup): New function.
9275 (maybe_unlink): Look at save_temps and verbose flags instead of
9277 (main): Instead of calling utils_cleanup, register atexit handler
9278 for mkoffload_cleanup.
9279 (main): Parse "-save-temps" flag.
9280 (compile_native, main): Pass it on.
9281 * lto-wrapper.c (compile_offload_image): Likewise.
9283 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9285 * gimple.h (gimple_op_ptr): Require a non const gimple *.
9286 (gimple_assign_lhs_ptr): Likewise.
9287 (gimple_assign_rhs1_ptr): Likewise.
9288 (gimple_assign_rhs2_ptr): Likewise.
9289 (gimple_assign_rhs3_ptr): Likewise.
9290 (gimple_call_lhs_ptr): Likewise.
9291 (gimple_call_fn_ptr): Likewise.
9292 (gimple_call_chain_ptr): Likewise.
9293 (gimple_call_arg_ptr): Likewise.
9294 (gimple_cond_lhs_ptr): Likewise.
9295 (gimple_cond_rhs_ptr): Likewise.
9296 (gimple_switch_index_ptr): Likewise.
9297 (gimple_return_retval_ptr): Likewise.
9299 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9301 * gimple.h (gimple_asm_input_op_ptr): Remove.
9302 (gimple_asm_output_op_ptr): Likewise.
9304 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9306 * gimple.h (gimple_location_ptr): Remove.
9307 * tree-vrp.c (check_all_array_refs): Adjust.
9309 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9311 * tree-ssa-operands.c (build_uses): store tree * instead of
9313 (finalize_ssa_uses): Adjust.
9314 (append_use): Likewise.
9315 (verify_ssa_operands): Likewise.
9317 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9319 * real.h (build_real_truncate): Declare.
9320 * tree.c (build_real_truncate): New function.
9321 (strip_float_extensions): Use it.
9322 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
9323 (fold_builtin_hypot, fold_builtin_pow): Likewise.
9324 * match.pd: Likewise.
9326 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
9327 Jiong Wang <jiong.wang@arm.com>
9329 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
9331 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9333 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
9334 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
9335 (aarch64_print_operand, aarch64_float_const_representable_p)
9336 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
9337 instead of REAL_VALUE_FROM_CONST_DOUBLE.
9338 * config/arc/arc.c (arc_print_operand): Likewise.
9339 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
9340 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
9341 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
9343 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
9344 (consttable_16): Likewise.
9345 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
9346 * config/avr/avr.c (avr_print_operand): Likewise.
9347 * config/bfin/bfin.md: Likewise (in a define_split).
9348 * config/c6x/c6x.md: Likewise (in a define_split).
9349 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
9350 (cr16_print_operand): Likewise.
9351 * config/cris/cris.c (cris_print_operand): Likewise.
9352 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
9353 * config/fr30/fr30.c (fr30_print_operand): Likewise.
9354 (fr30_const_double_is_zero): Likewise.
9355 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
9356 * config/frv/frv.md: Likewise (in a define_split).
9357 * config/frv/predicates.md (int_2word_operand): Likewise.
9358 * config/h8300/h8300.c (h8300_print_operand): Likewise.
9359 * config/i386/i386.c (standard_80387_constant_p): Likewise.
9360 (ix86_print_operand, ix86_split_to_parts): Likewise.
9361 * config/i386/i386.md: Likewise (in a define_split).
9362 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
9363 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
9364 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
9365 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
9366 (print_operand): Likewise.
9367 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
9368 * config/mep/mep.md: Likewise (in define_split).
9369 * config/microblaze/microblaze.c (microblaze_const_double_ok)
9370 (print_operand): Likewise.
9371 * config/mips/mips.md (consttable_float): Likewise.
9372 * config/mmix/mmix.c (mmix_intval): Likewise.
9373 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
9374 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
9375 * config/pa/pa.c (pa_singlemove_string): Likewise.
9376 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
9377 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
9378 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
9379 (output_toc): Likewise.
9380 * config/rs6000/rs6000.md: Likewise (in define_splits).
9381 * config/rx/rx.c (rx_print_operand): Likewise.
9382 * config/s390/s390.c (s390_output_pool_entry): Likewise.
9383 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
9384 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
9385 (and also in define_splits).
9386 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
9387 (fp_high_losum_p): Likewise.
9388 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
9389 (*movsf_high): Likewise.
9390 * config/spu/spu.c (const_double_to_hwint): Likewise.
9391 * config/v850/v850.c (const_double_split): Likewise.
9392 * config/vax/vax.c (vax_float_literal): Likewise.
9393 * config/visium/visium.c (visium_expand_copysign): Likewise.
9394 * config/visium/visium.md: Likewise (in define_split).
9395 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
9396 * config/xtensa/xtensa.c (print_operand): Likewise.
9397 (xtensa_output_literal): Likewise.
9398 * cprop.c (implicit_set_cond_p): Likewise.
9399 * dwarf2out.c (insert_float): Likewise.
9400 * expmed.c (expand_mult, make_tree): Likewise.
9401 * expr.c (compress_float_constant): Likewise.
9402 * rtlanal.c (split_double): Likewise.
9403 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
9404 (simplify_const_unary_operation, simplify_binary_operation_1)
9405 (simplify_const_binary_operation): Likewise.
9406 (simplify_const_relational_operation): Likewise.
9407 * varasm.c (output_constant_pool_2): Likewise.
9409 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9411 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
9412 instead of CONST_DOUBLE_FROM_REAL_VALUE.
9413 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
9414 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
9415 instead of CONST_DOUBLE_FROM_REAL_VALUE.
9416 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
9417 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
9418 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
9419 (ix86_emit_swsqrtsf): Likewise.
9420 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
9421 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
9422 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
9423 * config/pa/pa.c (pa_expand_builtin): Likewise.
9424 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
9425 (rs6000_scale_v2df): Likewise.
9426 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
9427 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
9428 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
9429 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
9430 (vec_ctul): Likewise.
9431 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
9432 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
9433 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
9434 * cse.c (fold_rtx): Likewise.
9435 * emit-rtl.c (immed_double_const): Likewise (in comments).
9436 (init_emit_once): Likewise.
9437 * expr.c (compress_float_constant, expand_expr_real_1)
9438 (const_vector_from_tree): Likewise.
9439 * optabs.c (expand_float, expand_fix): Likewise.
9440 * reg-stack.c (reg_to_stack): Likewise.
9441 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
9442 (simplify_const_unary_operation, simplify_binary_operation_1)
9443 (simplify_const_binary_operation, simplify_relational_operation)
9444 (simplify_immed_subreg): Likewise.
9446 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9448 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
9449 * doc/tm.texi: Regenerate.
9450 * real.h (REAL_ARITHMETIC): Delete.
9451 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
9452 (ix86_expand_round_sse4): Use real_arithmetic instead of
9454 * config/i386/sse.md (round<mode>2): Likewise.
9455 * rtl.h (rtx_to_tree_code): Likewise (in comment).
9456 * explow.c (rtx_to_tree_code): Likewise (in comment).
9457 * match.pd: Likewise.
9458 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9459 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
9460 (expand_pow_as_sqrts): Likewise.
9461 * tree-pretty-print.c (dump_generic_node): Remove code that
9462 was conditional on REAL_ARITHMETIC being undefined.
9464 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9466 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
9467 * doc/tm.texi: Regenerate.
9468 * real.h (real_less): Declare.
9469 (REAL_VALUES_LESS): Delete.
9470 * real.c (real_less): New function.
9471 (real_compare): Use it.
9472 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
9473 of REAL_VALUES_LESS.
9474 * config/microblaze/microblaze.c (microblaze_const_double_ok):
9476 * fold-const.c (fold_convert_const_int_from_real): Likewise.
9477 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9478 (simplify_const_relational_operation): Likewise.
9479 * tree-call-cdce.c (check_pow): Likewise.
9480 (gen_conditions_for_pow_cst_base): Likewise.
9482 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9484 * real.h (REAL_VALUES_IDENTICAL): Delete.
9485 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
9486 instead of REAL_VALUES_IDENTICAL.
9487 * fold-const.c (operand_equal_p): Likewise.
9488 * ipa-icf.c (sem_variable::equals): Likewise.
9489 * tree-complex.c (some_nonzerop): Likewise.
9490 (expand_complex_multiplication): Likewise.
9491 * tree.c (simple_cst_equal): Likewise.
9492 * varasm.c (compare_constant): Likewise.
9494 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9496 * real.h (real_equal): Declare.
9497 (REAL_VALUES_EQUAL): Delete.
9498 * real.c (real_equal): New function.
9499 (real_compare): Use it.
9500 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
9501 * doc/tm.texi: Regenerate.
9502 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
9503 real_equal instead of REAL_VALUES_EQUAL.
9504 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
9505 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
9506 (fp_const_from_val): Likewise.
9507 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
9508 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
9509 (floating_exact_log2): Likewise.
9510 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
9511 * config/vax/vax.c (vax_float_literal): Likewise.
9512 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
9513 * cprop.c (implicit_set_cond_p): Likewise.
9514 * expmed.c (expand_mult): Likewise.
9515 * fold-const.c (const_binop): Likewise.
9516 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9517 (simplify_const_binary_operation): Likewise.
9518 (simplify_const_relational_operation): Likewise.
9519 * tree-call-cdce.c (check_pow): Likewise.
9520 (gen_conditions_for_pow_cst_base): Likewise.
9521 * tree-inline.c (estimate_num_insns): Likewise.
9522 * tree-ssa-dom.c (record_equality): Likewise.
9523 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
9524 (gimple_expand_builtin_pow): Likewise.
9525 (pass_optimize_widening_mul::execute): Likewise.
9526 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
9527 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
9528 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
9530 2015-10-05 Richard Biener <rguenther@suse.de>
9533 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
9534 consider loop header PHI defs as IVs.
9536 2015-10-05 Richard Biener <rguenther@suse.de>
9538 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
9540 (create_expression_by_pieces): ... here and build GIMPLE
9541 calls directly. Use gimple_build API and avoid force_gimple_operand.
9542 (insert_into_preds_of_block): Simplify.
9543 (do_regular_insertion): Add comment.
9545 2015-10-04 Jason Merrill <jason@redhat.com>
9547 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
9549 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
9551 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
9552 check for general register.
9553 (ix86_emit_save_regs): Ditto.
9554 (ix86_emit_save_regs_using_mov): Ditto.
9555 (ix86_emit_restore_regs_using_pop): Ditto.
9556 (ix86_emit_restore_regs_using_mov): Ditto.
9558 2015-10-03 Marek Polacek <polacek@redhat.com>
9560 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
9561 (insn-dfatab.o): Likewise.
9563 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
9565 * config.gcc (xtensa*-*-uclinux*): New configuration.
9566 * config/xtensa/uclinux.h: New file.
9567 * config/xtensa/uclinux.opt: New file.
9569 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
9571 * doc/cpp.texi (Standard Predefined Macros): Document value of
9572 __cplusplus for C++14.
9574 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
9576 * gcc.c (process_command): Use spec_machine rather than
9577 spec_host_machine to build tooldir_prefix2.
9579 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
9580 Bernd Schmidt <bernds@codesourcery.com>
9582 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
9583 (Token, Stmt): Remove structs.
9584 (decls, vars, fns): Remove variables.
9585 (alloc_comment, append_stmt, is_keyword): Remove macros.
9586 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
9587 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
9588 (parse_init, parse_file): Remove functions.
9589 (read_file): Accept a pointer to a length and store into it.
9590 (process): Don't try to parse the input file, just write it out as
9591 a string, but looking for maps. Also write out the length.
9592 (main): Don't use "-S" to compile PTX code.
9594 2015-10-02 Jeff Law <law@redhat.com>
9596 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
9599 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
9602 * config/nvptx/mkoffload.c (main): Scan the argument vector for
9603 -fopenmp, and skip generating an offloading image if specified.
9605 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
9607 * system.h (ROUND_UP): New macro definition.
9608 (ROUND_DOWN): Ditto.
9609 * ggc-page.c (ROUND_UP): Remove local macro definition.
9610 (PAGE_ALIGN): Implement using ROUND_UP macro.
9612 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
9613 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
9615 (ix86_compute_frame_layout): Ditto.
9616 (ix86_expand_prologue): Ditto.
9617 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
9618 to round down values.
9619 (expand_set_or_movmem_via_rep): Ditto.
9621 2015-10-02 Marek Polacek <polacek@redhat.com>
9623 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
9625 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
9627 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
9628 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
9629 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
9630 (free_gimple_bb): Renamed free_gimple_poly_bb.
9631 (try_generate_gimple_bb): Hoist loop invariant code.
9632 (analyze_drs_in_stmts): Same.
9633 (build_scop_drs): Call renamed functions.
9634 (new_pbb_from_pbb): Same.
9635 (scop_ivs_can_be_represented): Delete as functionality now moved to
9636 graphite-scop-detection.c
9637 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
9639 2015-10-02 Aditya Kumar <hiraditya@msn.com>
9641 * graphite-scop-detection.c (stmt_has_side_effects): New function
9642 outlined from stmt_simple_for_scop_p.
9643 (graphite_can_represent_stmt): Same.
9644 (stmt_simple_for_scop_p): Moved code out of this function for better
9647 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
9649 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
9651 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
9653 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9655 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
9657 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
9659 PR rtl-optimization/67756
9660 * lra-constraints.c (match_reload): Add a new parameter. Use it
9661 for creating a pseudo with the same value.
9662 (curr_insn_transform): Pass a new argument to match_reload.
9664 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
9666 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
9667 (expand_vec_perm_even_odd_1): Handle V64QImode.
9668 (ix86_expand_vec_perm_const_1): Try expansion with
9669 expand_vec_perm_even_odd_trunc as well.
9670 * config/i386/sse.md (VI124_AVX512F): Rename to ...
9671 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
9673 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
9674 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
9676 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
9677 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
9678 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
9679 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
9680 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
9681 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
9683 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
9685 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
9686 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
9688 2015-10-02 Jason Merrill <jason@redhat.com>
9691 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
9692 (diagnose_tm_1_op): Also diagnose volatile accesses in
9693 transaction_safe function.
9695 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
9697 * system.h (malloc.h): Don't include obsolete header.
9699 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9701 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
9702 (TLS_SECTION_ASM_FLAG): Delete.
9704 2015-10-02 Marek Polacek <polacek@redhat.com>
9707 * doc/invoke.texi: Document -Wduplicated-cond.
9708 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
9709 (insn-dfatab.o): Likewise.
9710 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
9713 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
9715 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
9718 2015-10-02 Renlin Li <renlin.li@arm.com>
9720 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
9722 2015-10-02 Renlin Li <renlin.li@arm.com>
9725 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
9727 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9729 PR rtl-optimization/67786
9730 PR rtl-optimization/67787
9731 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
9732 it modifies a reg used in the condition calculation.
9734 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
9736 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
9737 alternatives for reads from memory and moves from general-purpose
9739 (*aarch64_combinez_be<mode>): Likewise.
9741 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
9744 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
9745 selectany within this function without need to keep attribute.
9746 (i386_pe_encode_section_info): Remove selectany-code.
9748 2015-10-02 Richard Biener <rguenther@suse.de>
9750 * tree-ssa-sccvn.c (has_VN_INFO): New function.
9751 (free_scc_vn): Use it.
9752 (visit_use): Remove dead code and refactor to use gassign
9753 and use less indentation.
9755 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9759 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
9760 (rs6000_cannot_copy_insn_p): New function.
9761 * config/rs6000/rs6000.md (cannot_copy): New attribute.
9762 (load_toc_v4_PIC_1_normal): Set cannot_copy.
9763 (load_toc_v4_PIC_1_476): Ditto.
9765 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
9767 * graphite-scop-detection.c (struct sese_l): New conversion constructor
9768 so that this type can be pushed into a vec.
9769 (class scop_builder): use sese_l to collect scops.
9770 (get_scops): New getter function.
9771 (remove_intersecting_scops): Use sese_l instead of scops_p.
9775 (remove_subscops): Same.
9776 (build_scops): Add scops to vec<scops_p> once all the scops have been
9779 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
9781 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
9782 Renamed type from gimple_bb_p to gimple_poly_bb_p.
9783 (translate_isl_ast_node_user): Same.
9784 * graphite-poly.c (new_poly_bb): Same.
9785 * graphite-poly.h (gbb_from_bb): Same.
9787 * graphite-sese-to-poly.c (new_gimple_bb):
9788 gimple_bb_p -> gimple_poly_bb_p
9789 (build_scop_scattering): Same.
9790 (find_params_in_bb): Same.
9791 (add_conditions_to_domain): Same.
9792 (sese_dom_walker::before_dom_children): Same.
9793 (analyze_drs_in_stmts): Same.
9794 (new_pbb_from_pbb): Same.
9795 (free_data_refs_aux): New pointer to type base_alias_pair.
9796 * graphite-sese-to-poly.h: Same.
9797 * sese.c (if_region_set_false_region): Fixed Indentation.
9798 (move_sese_in_condition): Same.
9800 2015-10-01 Sebastian Pop <s.pop@samsung.com>
9801 Aditya Kumar <aditya.k7@samsung.com>
9803 PR tree-optimization/66980
9804 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
9805 when data reference analysis has failed.
9807 2015-10-01 Sebastian Pop <s.pop@samsung.com>
9808 Aditya Kumar <aditya.k7@samsung.com>
9810 PR tree-optimization/67754
9811 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
9812 scev analysis on the same loop nest as analyze_drs_in_stmts.
9813 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
9815 (try_generate_gimple_bb): Call outermost_loop_in_sese.
9816 (analyze_drs_in_stmts): Same.
9817 * sese.c (outermost_loop_in_sese): ...here.
9819 2015-10-01 Sebastian Pop <s.pop@samsung.com>
9820 Aditya Kumar <aditya.k7@samsung.com>
9822 PR tree-optimization/67754
9823 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
9824 recursion on the inner loops.
9826 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9828 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
9829 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
9830 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
9831 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
9832 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
9834 2015-10-01 Marek Polacek <polacek@redhat.com>
9837 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
9838 create_tmp_var_raw rather than create_tmp_var.
9840 2015-10-01 Marek Polacek <polacek@redhat.com>
9842 PR tree-optimization/67769
9843 * tree-ssa-phiopt.c (conditional_replacement): Call
9844 reset_flow_sensitive_info_in_bb.
9845 (minmax_replacement): Likewise.
9846 (abs_replacement): Likewise.
9848 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
9850 * builtins.c: Don't include gomp-constants.h.
9851 (fold_builtin_1): Don't fold acc_on_device here.
9852 * gimple-fold.c: Include gomp-constants.h.
9853 (gimple_fold_builtin_acc_on_device): New.
9854 (gimple_fold_builtin): Call it.
9856 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
9858 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
9859 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
9861 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
9863 * config/arm/aarch-common-protos.h
9864 (aarch_accumulator_forwarding): New.
9865 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
9866 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
9867 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
9868 * config/arm/cortex-a53.md: Rewrite.
9870 2015-10-01 Richard Biener <rguenther@suse.de>
9872 * gimple-match.h (mprts_hook): Declare.
9873 * gimple-match.head.c (mprts_hook): Define.
9874 (maybe_push_res_to_seq): Use new hook.
9875 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
9876 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
9877 (vn_ssa_aux::has_constants): Remove.
9878 * tree-ssa-sccvn.c: Include gimple-match.h.
9879 (VN_INFO_GET): Assert we don't re-use SSA names.
9880 (vn_get_expr_for): Remove.
9881 (expr_has_constants): Likewise.
9882 (stmt_has_constants): Likewise.
9883 (simplify_binary_expression): Likewise.
9884 (simplify_unary_expression): Likewise.
9885 (vn_lookup_simplify_result): New hook.
9886 (visit_copy): Adjust.
9887 (visit_reference_op_call): Likewise.
9888 (visit_phi): Likewise.
9889 (visit_use): Likewise.
9890 (process_scc): Likewise.
9891 (init_scc_vn): Likewise.
9892 (visit_reference_op_load): Likewise. Use match-and-simplify and
9893 a gimple seq for inserted expressions.
9894 (try_to_simplify): Remove GENERIC stmt combining code.
9895 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
9896 * tree-ssa-pre.c (eliminate_insert): Adjust.
9897 (eliminate_dom_walker::before_dom_children): Likewise.
9899 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9901 * doc/invoke.texi (Optimization Options): Add
9902 -freorder-blocks-algorithm=.
9903 (Optimize Options) <-O>: Add -freorder-blocks.
9904 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
9905 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
9906 <-freorder-blocks>: Also enabled at levels -O and -Os.
9907 <-freorder-blocks-algorithm=>: Document new option.
9909 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9911 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
9912 with flag_reorder_blocks_algorithm.
9913 * common.opt (freorder-blocks-algorithm=): New flag.
9914 (reorder_blocks_algorithm): New enum.
9915 * flag-types.h (reorder_blocks_algorithm): New enum.
9916 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
9917 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
9919 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9921 * bb-reorder.c: Add intro comment.
9922 (reorder_basic_blocks_software_trace_cache): Print a header to
9924 (edge_order): New function.
9925 (reorder_basic_blocks_simple): New function.
9926 (reorder_basic_blocks): Choose between the STC and the simple
9927 algorithms (always choose the former).
9929 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9931 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
9932 function, factored out from ...
9933 (reorder_basic_blocks): ... here.
9935 2015-10-01 Tom de Vries <tom@codesourcery.com>
9937 * tree-cfg.c (dump_function_to_file): Dump function attributes using
9938 __attribute__(()) string. Move dumping of function attributes to before
9941 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
9944 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
9945 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
9946 based on gold linker version.
9947 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
9948 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
9949 * configure, config.in: Regenerate.
9951 2015-10-01 Alan Modra <amodra@gmail.com>
9953 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
9954 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
9955 (rs6000_output_mi_thunk): Likewise.
9957 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
9959 * config/nvptx/mkoffload.c (process): Change offload data format.
9961 2015-09-30 Jeff Law <law@redhat.com>
9963 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
9964 with constant conditions.
9965 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
9966 (remove_ctrl_stmt_and_useless_edges): No longer static.
9967 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
9968 (remove_ctrl_stmt_and_useless_edges): Likewise.
9970 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
9971 Cesar Philippidis <cesar@codesourcery.com>
9973 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
9974 (TARGET_GOACC_VALIDATE_DIMS): Override.
9975 * target.def (TARGET_GOACC): New target hook prefix.
9976 (validate_dims): New hook.
9977 * targhooks.h (default_goacc_validate_dims): New.
9978 * omp-low.c (oacc_validate_dims): New.
9979 (execute_oacc_device_lower): New.
9980 (default_goacc_validate_dims): New.
9981 (pass_data_oacc_device_lower): New.
9982 (pass_oacc_device_lower): New pass.
9983 (make_pass_oacc_device_lower): New.
9984 * tree-pass.h (make_pass_oacc_device_lower): Declare.
9985 * passes.def (pass_oacc_device_lower): Add it.
9986 * doc/tm.texi: Rebuilt.
9987 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
9988 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
9990 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
9992 PR rtl-optimization/67037
9993 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
9995 2015-09-30 Bernd Schmidt <bernds@redhat.com>
9997 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
9998 * passes.c: Include tree-ssanames.h.
9999 (execute_function_todo): Flush the pending free SSA_NAMEs after
10000 eliminating unreachable basic blocks.
10001 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
10002 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
10003 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
10004 (flush_ssanames_freelist): New function.
10005 (release_ssaname_fn): Put released names on the queue.
10006 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
10007 * tree-ssanames.h (flush_ssanames_freelist): Declare.
10009 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10011 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
10012 (generate_target_descr_file, generate_target_offloadend_file)
10013 (generate_host_descr_file, prepare_target_image): Pass it on.
10014 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
10015 (compile_native, main): Pass it on.
10016 * lto-wrapper.c (compile_offload_image): Likewise.
10018 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10019 Ilya Verbin <ilya.verbin@intel.com>
10020 Andrey Turetskiy <andrey.turetskiy@intel.com>
10022 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
10023 (prepare_target_image, main): Refactor argv building to use
10026 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10028 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
10029 * config/spu/spu.c (spu_expand_atomic_op): New function.
10030 * config/spu/spu.md (AINT): New mode iterator.
10031 (ATOMIC): New code iterator.
10032 (atomic_name, atomic_pred): New code predicates.
10033 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
10034 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
10035 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
10036 "atomic_<atomic_name>_fetch<mode>"): Likewise.
10038 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
10040 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
10042 (scalar_chain::convert_reg): Likewise.
10044 2015-09-30 Richard Biener <rguenther@suse.de>
10046 * builtins.c: Add comment that no new simplifications should
10049 2015-09-30 Marek Polacek <polacek@redhat.com>
10051 PR tree-optimization/67690
10052 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
10053 reset_flow_sensitive_info_in_bb.
10054 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
10055 * tree-ssanames.c: Include "gimple-iterator.h".
10056 (reset_flow_sensitive_info_in_bb): New function.
10057 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
10059 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10061 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
10062 variable, replacing it with...
10063 (offload_abi): ... this new variable. Adjust all users.
10064 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
10066 2015-09-30 Matthias Klose <doko@ubuntu.com>
10068 * configure.ac: Remove extraneous ;;.
10069 * configure: Regenerate.
10071 2015-09-29 James Bowman <james.bowman@ftdichip.com>
10073 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
10074 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
10075 predicate, disallow register for operand 2.
10077 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
10079 * graphite-dependences.c (scop_get_dependences): Moved in down
10080 in order to be visible to its caller.
10081 * graphite-poly.h: Removed compute_deps, and extend_schedule.
10083 2015-09-29 Sebastian Pop <s.pop@samsung.com>
10084 Aditya Kumar <aditya.k7@samsung.com>
10086 PR tree-optimization/67754
10087 * graphite-optimize-isl.c (optimize_isl): Call
10088 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
10090 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
10092 * builtins.c (expand_builtin_acc_on_device): Delete.
10093 (expand_builtin): Don't call it.
10094 (fold_builtin_1): Fold acc_on_device.
10096 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
10098 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
10099 (ix86_nsaved_sseregs): Likewise.
10101 2015-09-29 Jeff Law <law@redhat.com>
10103 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
10104 computation of unused value.
10106 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
10107 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
10108 inline macro expansion.
10110 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
10112 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
10113 (gen_shl_sext): Likewise.
10114 * config/sh/sh.md (divsi3): Likewise.
10115 (imm->ext_dest_operand splitter): Likewise.
10117 2015-09-29 Sebastian Pop <s.pop@samsung.com>
10118 Aditya Kumar <aditya.k7@samsung.com>
10120 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
10121 (nb_data_writes_in_bb): Remove.
10122 (split_pbb): Remove.
10123 (split_reduction_stmt): Remove.
10124 (is_reduction_operation_p): Remove.
10125 (phi_contains_arg): Remove.
10126 (follow_ssa_with_commutative_ops): Remove.
10127 (detect_commutative_reduction_arg): Remove.
10128 (detect_commutative_reduction_assign): Remove.
10129 (follow_inital_value_to_phi): Remove.
10130 (edge_initial_value_for_loop_phi): Remove.
10131 (initial_value_for_loop_phi): Remove.
10132 (used_outside_reduction): Remove.
10133 (detect_commutative_reduction): Remove.
10134 (translate_scalar_reduction_to_array_for_stmt): Remove.
10135 (remove_phi): Remove.
10136 (dr_indices_valid_in_loop): Remove.
10137 (close_phi_written_to_memory): Remove.
10138 (translate_scalar_reduction_to_array): Remove.
10139 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
10140 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
10141 (rewrite_commutative_reductions_out_of_ssa): Remove.
10142 (build_poly_scop): Remove call to
10143 rewrite_commutative_reductions_out_of_ssa.
10145 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
10147 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
10148 Add new insn types for vector load and store pairs.
10149 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
10150 types "neon_ldp{,_q}".
10151 * config/arm/cortex-a57.md (neon_load_c): Add insn types
10153 (neon_store_complex): Add insn types "neon_stp{,_q}".
10154 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
10155 "neon_{ldp,stp}_q".
10157 2015-09-29 Jeff Law <law@redhat.com>
10159 * config/rx/constraints.md (Int08): Fix undefined left shift
10161 (Sint08, Sint16, Sint24): Likewise.
10162 * config/rx/rx.c (rx_get_stack_layout): Likewise.
10164 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
10167 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
10168 left shift behaviour.
10169 * config/msp430/constraints.md ('L' constraint): Similarly.
10170 ('Ys' constraint): Similarly.
10172 2015-09-29 Richard Biener <rguenther@suse.de>
10174 PR tree-optimization/67170
10175 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
10176 the translate function pointer parameter to get the
10177 bool whether to disambiguate only by reference.
10178 (walk_non_aliased_vuses): Likewise.
10179 * tree-ssa-alias.c (maybe_skip_until): Adjust.
10180 (get_continuation_for_phi_1): Likewise.
10181 (get_continuation_for_phi): Likewise.
10182 (walk_non_aliased_vuses): Likewise.
10183 * tree-ssa-sccvn.c (const_parms): New bitmap.
10184 (vn_reference_lookup_3): Adjust for interface change.
10185 Disambiguate parameters pointing to readonly memory.
10186 (free_scc_vn): Free const_parms.
10187 (run_scc_vn): Initialize const_parms from a fn spec attribute.
10189 2015-09-29 Richard Biener <rguenther@suse.de>
10191 PR tree-optimization/67741
10192 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
10193 builtin calls with correct signature.
10195 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
10198 * config/i386/i386.c: Include dbgcnt.h.
10199 (has_non_address_hard_reg): New.
10200 (convertible_comparison_p): New.
10201 (scalar_to_vector_candidate_p): New.
10202 (remove_non_convertible_regs): New.
10203 (scalar_chain): New.
10204 (scalar_chain::scalar_chain): New.
10205 (scalar_chain::~scalar_chain): New.
10206 (scalar_chain::add_to_queue): New.
10207 (scalar_chain::mark_dual_mode_def): New.
10208 (scalar_chain::analyze_register_chain): New.
10209 (scalar_chain::add_insn): New.
10210 (scalar_chain::build): New.
10211 (scalar_chain::compute_convert_gain): New.
10212 (scalar_chain::replace_with_subreg): New.
10213 (scalar_chain::replace_with_subreg_in_insn): New.
10214 (scalar_chain::emit_conversion_insns): New.
10215 (scalar_chain::make_vector_copies): New.
10216 (scalar_chain::convert_reg): New.
10217 (scalar_chain::convert_op): New.
10218 (scalar_chain::convert_insn): New.
10219 (scalar_chain::convert): New.
10220 (convert_scalars_to_vector): New.
10221 (pass_data_stv): New.
10223 (make_pass_stv): New.
10224 (ix86_option_override): Created and register stv pass.
10225 (flag_opts): Add -mstv.
10226 (ix86_option_override_internal): Likewise.
10227 * config/i386/i386.md (SWIM1248x): New.
10228 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
10229 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
10230 (*anddi3_doubleword): New.
10231 (*zext<mode>_doubleword): New.
10232 (*zextsi_doubleword): New.
10233 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
10234 (*<code>di3_doubleword): New.
10235 * config/i386/i386.opt (mstv): New.
10236 * dbgcnt.def (stv_conversion): New.
10238 2015-09-29 Tom de Vries <tom@codesourcery.com>
10240 * tree-cfg.c (dump_function_to_file): Dump function attributes.
10242 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
10245 * config/sh/sh.c (sh_override_options_after_change): New.
10246 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
10247 (sh_option_override): Move align_loops, align_jumps and
10248 align_functions handling into sh_override_options_after_change.
10250 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
10252 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
10253 (nvptx_record_offload_symbol): Record function execution geometry.
10254 * config/nvptx/mkoffload.c (process): Include launch geometry in
10256 * omp-low.c (oacc_launch_pack): New.
10257 (replace_oacc_fn_attrib): New.
10258 (set_oacc_fn_attrib): New.
10259 (get_oacc_fn_attrib): New.
10260 (expand_omp_target): Create keyed varargs for GOACC_parallel call
10262 * omp-low.h (get_oacc_fn_attrib): Declare.
10263 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
10264 (DEF_FUNCTION_TYPE_VAR_11): Delete.
10265 * tree.h (OMP_CLAUSE_EXPR): New.
10266 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
10268 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
10269 Sebastian Pop <s.pop@samsung.com>
10271 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
10273 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
10274 Sebastian Pop <s.pop@samsung.com>
10276 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
10277 * graphite-scop-detection.c (struct sese_l): New type.
10278 (get_entry_bb): API for getting entry bb of SESE.
10279 (get_exit_bb): API for getting exit bb of SESE.
10280 (class debug_printer): New type. Simple printer in debug mode.
10281 (trivially_empty_bb_p): New. Return true when BB is empty or
10282 contains only debug instructions.
10283 (graphite_can_represent_expr): Call scalar_evoution_in_region
10284 instead of analyze_scalar_evolution. Pass in scop instead of only
10286 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
10288 (stmt_simple_for_scop_p): Same.
10289 (harmful_stmt_in_bb): Same.
10290 (graphite_can_represent_loop): Deleted.
10291 (struct scopdet_info): Deleted.
10292 (scopdet_basic_block_info): Deleted.
10293 (build_scops_1): Deleted.
10294 (bb_in_sd_region): Deleted.
10295 (find_single_entry_edge): Deleted.
10296 (find_single_exit_edge): Deleted.
10297 (create_single_entry_edge): Deleted.
10298 (sd_region_without_exit): Deleted.
10299 (create_single_exit_edge): Deleted.
10300 (unmark_exit_edges): Deleted.
10301 (mark_exit_edges): Deleted.
10302 (create_sese_edges): Deleted.
10303 (build_graphite_scops): Deleted.
10304 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
10305 (build_scops): Use the new scop_builder to build scops.
10306 (dot_all_scops_1): Use the new pretty printer. Print loop father
10308 (loop_body_is_valid_scop): New. Return true if loop body is a
10310 (class scop_builder): New. Builds SCoPs for polyhedral
10312 (scop_builder): New constructor.
10313 (static sese_l invalid_sese): sese_l with invalid edges.
10314 (get_sese): Get an sese (from a loop) if possible, invalid_sese
10316 (get_nearest_dom_with_single_entry): Get nearest dominator of a
10317 basic_block with single entry. Return NULL if we get to the
10318 beginning of a function.
10319 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
10320 a basic_block with single exit. Return NULL if we get to the
10321 beginning of a function.
10322 (print_sese): Pretty-print SESE.
10323 (merge_sese): Merge two SESEs if possible and return the new SESE.
10324 (build_scop_depth): Start building the SCoP within a loop nest.
10325 (build_scop_breadth): Start building the SCoP at a single loop
10326 depth. Merge adjacent SESEs if valid.
10327 (can_represent_loop_1): Returns true if Graphite can represent
10328 loop inside SCoP. Helper for can_represent_loop.
10329 (can_represent_loop): Returns true if Graphite can represent LOOP
10330 and all its nested loops in SCoP.
10331 (loop_is_valid_scop): Returns true if LOOP and all its nests
10332 constitute a valid SCoP.
10333 (region_has_one_loop): Returns true of a region has only one loop.
10334 (add_scop): Add SCoP to the list of valid scops. Removes an
10335 already existing scop if it intersects with or subsumed by this one.
10336 (harmful_stmt_in_region): Returns true if SCoP has any statment
10337 which cannot be represented by Graphite.
10338 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
10339 (remove_subscops): Remove any SCoP from the list of already found
10340 SCoPs, if subsumed by S1.
10341 (intersects): Return true if region bounded by SCoPs S1 and S2
10343 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
10344 * graphite.c (print_graphite_scop_statistics):
10345 (print_graphite_statistics): Print SCoP info while debugging.
10346 (graphite_initialize): Early exit in case number of loops in a
10347 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
10348 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
10349 (graphite_finalize):
10350 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
10351 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
10352 (recompute_all_dominators): Recalculate POST_DOMINATORS.
10353 * tree-cfg.c (print_loops): Print the function name while printing
10356 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
10357 Sebastian Pop <s.pop@samsung.com>
10359 PR tree-optimization/67700
10360 * graphite-sese-to-poly.c (parameter_index_in_region): Call
10361 invariant_in_sese_p_rec.
10362 (extract_affine): Same.
10363 (rewrite_cross_bb_scalar_deps): Call update_ssa.
10364 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
10365 * sese.h (invariant_in_sese_p_rec): Declare.
10367 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
10369 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
10371 2015-09-28 Jiong Wang <jiong.wang@arm.com>
10374 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10375 Jiong Wang <jiong.wang@arm.com>
10377 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
10378 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
10379 (REG_CLASS_NAMES): Likewise.
10380 (REG_CLASS_CONTENTS): Likewise.
10381 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
10382 (aarch64_register_move_cost): Likewise.
10383 (aarch64_load_symref_appropriately): Invoke the new added pattern if
10385 * config/aarch64/constraints.md (Uc0): New constraint.
10387 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
10389 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
10391 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
10393 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
10394 SECTION_EXCLUDE in XO mapping class.
10396 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10399 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
10400 and handle ne and eq codes.
10401 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
10402 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
10403 CONST_INT_P. Use reverse_condition.
10404 (sh_split_treg_set_expr): Likewise.
10406 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
10408 * config/arm/types.md (type): Add rotate_imm.
10409 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
10410 ROR immediate case.
10411 (*rorsi3_insn_uxtw): Likewise.
10412 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
10413 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
10414 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
10416 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10418 PR rtl-optimization/67481
10419 * ifcvt.c (contains_ccmode_rtx_p): New function.
10420 (insn_valid_noce_process_p): Use it.
10422 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10424 PR rtl-optimization/67456
10425 PR rtl-optimization/67464
10426 PR rtl-optimization/67465
10427 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
10428 move in the mode of x. Handle combination of complex and simple
10429 block pairs as well as the case when one is empty.
10431 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10433 * doc/gimple.texi: Update references to gimple_statement_base.
10434 * gdbhooks.py: Likewise.
10435 * gimple.h: Likewise.
10437 2015-09-28 Daniel Cederman <cederman@gaisler.com>
10439 * config/sparc/driver-sparc.c: map LEON to leon3
10441 2015-09-28 Daniel Cederman <cederman@gaisler.com>
10443 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
10444 and make it inverse to change default
10445 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
10447 * doc/invoke.texi: Document change of default
10449 2015-09-28 Daniel Cederman <cederman@gaisler.com>
10451 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
10452 true on %f0 for a target without FPU.
10453 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
10455 (untyped_return): Do not load %f0 for a target without FPU.
10457 2015-09-28 Andrew Pinski <apinski@cavium.com>
10459 * config/aarch64/aarch64.md (prefetch):
10460 Change the predicate of operand 0 to register_operand.
10462 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
10464 * config/i386/predicates.md (register_sse4nonimm_operand): New
10466 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
10467 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
10468 Use register_sse4nonimm_operand as operand 0 predicate.
10469 (*vec_extractv8hi_sse2): Remove insn pattern.
10470 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
10471 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
10473 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
10474 Kaz Kojima <kkojima@gcc.gnu.org>
10477 * config/sh/sh-protos.h (sh_lra_p): Declare.
10478 * config/sh/sh.c (sh_lra_p): Make non-static.
10479 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
10480 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
10481 Expand into addsi3_scr if operands[2] if needed.
10482 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
10483 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
10484 (addsi3_scr, *addsi3): New insn_and_split patterns.
10486 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
10488 PR rtl-optimization/64164
10489 PR tree-optimization/67312
10490 PR middle-end/67340
10491 PR middle-end/67490
10493 * cfgexpand.c (parm_in_stack_slot_p): Remove.
10494 (ssa_default_def_partition): Remove.
10495 (get_rtl_for_parm_ssa_default_def): Remove.
10496 (set_rtl): Check that RTL assignments match expectations.
10497 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
10498 default def location for params and results. Record SSA names
10499 or types in REG and MEM attrs, respectively.
10500 (set_parm_rtl): New.
10501 (expand_one_ssa_partition): Drop logic that assigned MEMs with
10502 unassigned addresses.
10503 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
10504 deferred stack alloc vars.
10505 (expand_used_vars): Skip partitions holding parm default defs.
10506 Move adjust_one_expanded_partition_var loop...
10507 (pass_expand::execute): ... here. Drop redundant assert.
10508 Adjust comments before the final loop over all ssa names.
10509 Require assigned rtl of parms and results to match exactly.
10510 Reset its attributes to match them, not any other variables in
10511 the same partition.
10512 (expand_debug_expr): Use entry value for PARM's default defs
10513 only iff they have zero nondebug uses.
10514 * cfgexpand.h (parm_in_stack_slot_p): Remove.
10515 (get_rtl_for_parm_ssa_default_def): Remove.
10516 (set_parm_rtl): Declare.
10517 * doc/invoke.texi: Improve wording.
10518 * explow.c (promote_decl_mode): Fix promote_function_mode for
10519 result decls not by reference.
10520 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
10521 bypass TYPE_MODE to get the actual vector mode.
10522 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
10523 2015-08-19's changes as follows. Drop include of
10524 basic-block.h and df.h.
10525 (rtl_for_parm): Remove.
10526 (maybe_reset_rtl_for_parm): Remove.
10527 (parm_in_unassigned_mem_p): Remove.
10528 (use_register_for_decl): Add logic for RESULT_DECLs matching
10529 assign_parms' behavior.
10530 (split_complex_args): Revert.
10531 (assign_parms_augmented_arg_list): Revert. Add comment
10532 referencing the logic above.
10533 (assign_parm_adjust_stack_rtl): Revert.
10534 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
10535 of SET_DECL_RTL. Set up a REG if the parm demands so.
10536 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
10537 calls into a single set_parm_rtl. Set up a temporary RTL
10538 temporarily for expand_assignment.
10539 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
10540 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
10541 (assign_bounds): Revert.
10542 (assign_parms): Revert. Use set_parm_rtl.
10543 (allocate_struct_function): Relayout result and parms of
10544 non-abstruct functions.
10545 (expand_function_start): Revert. Use set_parm_rtl. If the
10546 result is not a hard reg, create a pseudo from the promoted
10547 mode of the default def. Promote static chain mode.
10548 * tree-outof-ssa.c (remove_ssa_form): Drop unused
10549 partition_has_default_def. Set up
10550 partitions_for_parm_default_defs.
10551 (finish_out_of_ssa): Remove partition_has_default_def.
10552 Release partitions_for_parm_default_defs.
10553 * tree-outof-ssa.h (struct ssaexpand): Remove
10554 partition_has_default_def. Add
10555 partitions_for_parm_default_defs.
10556 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
10558 (build_ssa_conflict_graph): Fix conflict-detection of default
10559 defs of even unused default defs of params and results.
10560 (for_all_parms): New.
10561 (create_default_def): New.
10562 (register_default_def): New.
10563 (coalesce_with_default): New.
10564 (create_outofssa_var_map): Create default defs for all parms
10565 and results, and register their partitions. Add GIMPLE_RETURN
10566 operands as coalesce candidates with results. Add default
10567 defs of each parm or result as coalesce candidates with its
10568 other defs. Mark each result def, and each default def of
10569 parms, as used_in_copy.
10570 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
10571 with the ssa names, even anonymous ones. Drop
10572 parm_in_stack_slot_p calls. Require same signedness and
10574 (coalesce_ssa_name): Add coalesce candidates for all defs of
10575 each parm and result, even unused ones.
10576 (parm_default_def_partition_arg): New type.
10577 (set_parm_default_def_partition): New.
10578 (get_parm_default_def_partitions): New.
10579 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
10580 * tree-ssa-live.c (partition_view_init): Regard unused defs of
10581 parms and results as used.
10582 (verify_live_on_entry): Don't error out just because they're
10585 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
10587 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
10588 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
10589 (output_fde): Don't output length for debug_frame on AIX.
10590 (output_call_frame_info): Don't output length for debug_frame on AIX.
10591 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
10592 HAVE_XCOFF_DWARF_EXTRAS.
10593 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
10594 HAVE_XCOFF_DWARF_EXTRAS.
10595 (output_compilation_unit_header): Don't output length on AIX.
10596 (output_pubnames): Don't output length on AIX.
10597 (output_aranges): Delete argument. Compute length locally. Don't
10598 output length on AIX.
10599 (output_line_info): Don't output length on AIX.
10600 (dwarf2out_finish): Don't compute aranges_length.
10601 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
10602 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
10603 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
10604 symbol decoration for AIX.
10605 (rs6000_xcoff_debug_unwind_info): New.
10606 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
10608 (rs6000_xcoff_declare_function_name): Emit different
10609 .function pseudo-op when DWARF2_DEBUG. Don't call
10610 xcoffout_declare_function for DWARF2_DEBUG.
10611 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
10613 * config/rs6000/aix71.h: New.
10614 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
10616 * configure: Regenerate.
10617 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
10620 2015-09-26 Jeff Law <law@redhat.com>
10622 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
10624 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
10627 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
10630 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
10631 undefined behaviour.
10633 * config/cris/cris.md (asrandb): Fix left shift undefined
10635 (asrandw): Likewise.
10637 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
10640 * lra-constarints.c (match_reload): Check presence of the input pseudo
10641 in the output operand.
10643 2015-09-25 Tobias Burnus <burnus@net-b.de>
10645 * doc/invoke.texi (-fsanitize): Minor wording tweak.
10647 2015-09-25 Tobias Burnus <burnus@net-b.de>
10649 * doc/invoke.texi (-fsanitize): Update URLs.
10651 2015-09-25 Teresa Johnson <tejohnson@google.com>
10653 * opts.c (finish_options): Unset -freorder-blocks-and-partition
10654 if not using profile.
10656 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
10658 PR pretty-print/67567
10659 * pretty-print.c (pp_string): Add gcc_checking_assert.
10660 * pretty-print.h (output_buffer_append_r): Likewise.
10662 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
10665 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
10666 addr2 individually. Don't emit logical or insn if one is known to
10667 be aligned approriately.
10668 (sh_expand_cmpnstr): Likewise.
10670 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
10672 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
10673 __builtin_aarch64_fp[sc]r arguments into a register.
10675 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
10677 * config.gcc (x86_archs): Replace lakemount with lakemont.
10678 (with_cpu): Likewise.
10679 (with_arch): Likewise.
10680 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
10681 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
10682 __tune_lakemount__ with __tune_lakemont__.
10683 * config/i386/i386.c (lakemount_cost): Renamed to ...
10684 (lakemont_cost): This.
10685 (m_LAKEMOUNT): Renamed to ...
10686 (m_LAKEMONT): This.
10687 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
10688 (processor_target_table): Replace "lakemount" with "lakemont".
10689 (processor_alias_table): Likewise.
10690 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
10691 PROCESSOR_LAKEMONT.
10692 (ix86_adjust_cost): Likewise.
10693 (ia32_multipass_dfa_lookahead): Likewise.
10694 * config/i386/i386.h (processor_type): Likewise.
10695 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
10696 * doc/invoke.texi: Replace lakemount with lakemont. Replace
10697 Lakemount with Lakemont.
10699 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
10701 * config.gcc (x86_archs): Replace iamcu with lakemount.
10702 (with_cpu): Likewise.
10703 (with_arch): Likewise.
10704 * doc/invoke.texi: Likewise.
10705 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
10706 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
10707 __tune_iamcu__ with __tune_lakemount__.
10708 * config/i386/i386.c (iamcu_cost): Renamed to ...
10709 (lakemount_cost): This.
10710 (m_IAMCU): Renamed to ...
10711 (m_LAKEMOUNT): This.
10712 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
10713 (processor_target_table): Replace "iamcu" with "lakemount".
10714 (processor_alias_table): Likewise.
10715 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
10716 PROCESSOR_LAKEMOUNT.
10717 (ix86_adjust_cost): Likewise.
10718 (ia32_multipass_dfa_lookahead): Likewise.
10719 * config/i386/i386.h (processor_type): Likewise.
10720 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
10722 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
10724 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
10725 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
10727 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
10728 (pa_expand_compare_and_swap_loop): New.
10729 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
10730 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
10731 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
10732 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
10733 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
10736 2015-09-24 Michael Collison <michael.collison@linaro.org>
10739 * read-md.c (read_name): Allow mode iterators inside angle
10740 brackets in rtl expressions.
10742 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
10745 * ira-color.c (update_allocno_cost): Add parameter.
10746 (update_costs_from_allocno): Decrease conflict cost. Pass the new
10749 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
10752 * opts-common.c (prune_options): Discard all -fdiagnostics-color
10753 but the last one, which is moved to the front to be processed
10755 * opts.c (enable_warning_as_error): Reject options that do not
10758 2015-09-24 Jiong Wang <jiong.wang@arm.com>
10760 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
10762 2015-09-24 Jiong Wang <jiong.wang@arm.com>
10764 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
10765 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
10766 (aarch64_cannot_force_const_mem): Likewise.
10767 (aarch64_classify_address): Likewise.
10768 (aarch64_classify_symbolic_expression): Likewise.
10769 (aarch64_print_operand): Likewise.
10770 (aarch64_classify_symbol): Likewise.
10771 (aarch64_mov_operand_p): Likewise.
10772 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
10773 (aarch64_mov_operand): Likewise.
10775 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
10777 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
10778 for info->spe_gp_size.
10780 2015-09-24 Richard Biener <rguenther@suse.de>
10783 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
10786 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
10788 * tree-object-size.c (plus_stmt_object_size)
10789 (cond_expr_object_size): Change the formal parameters from gimple
10791 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
10792 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
10793 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
10795 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10797 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
10798 Check for ld -type pie on Solaris 11.x and 12.
10799 * configure: Regenerate.
10800 * config.in: Regenerate.
10802 * gcc.c (LD_PIE_SPEC): Allow redefinition.
10804 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
10805 (STARTFILE_SPEC): Use it.
10806 (ENDFILE_CRTEND_SPEC): Define.
10807 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
10808 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
10809 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
10810 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
10811 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
10812 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
10813 (ENDFILE_ARCH_SPEC): Define.
10814 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
10816 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10818 * configure.ac (gcc_cv_solaris_crts): New test.
10819 * configure. Regenerate.
10820 * config.in: Regenerate.
10821 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
10822 HAVE_SOLARIS_CRTS variant.
10824 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10826 * tree-inline.h (count_insns_seq): Delete prototype.
10827 (estimate_num_insns_seq): Define prototype.
10828 * tree-inline.c (count_insns_seq): Delete.
10829 (estimate_num_insns_seq): Remove static qualifier.
10830 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
10831 with estimate_num_insns_seq.
10833 2015-09-24 Richard Biener <rguenther@suse.de>
10835 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
10837 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
10838 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
10840 (ao_ref_init_from_vn_reference): Record clique and base in the
10842 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
10844 2015-09-24 Richard Biener <rguenther@suse.de>
10846 PR tree-optimization/48885
10847 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
10848 as not including any restrict tags from other pointers.
10850 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
10852 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
10853 character when appending to offload_targets.
10855 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
10856 offload targets by commas, not colons.
10857 * config.in: Regenerate.
10858 * configure: Likewise.
10859 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
10860 instead of setting up the default offload targets here...
10861 (process_command): ..., do it here.
10863 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
10864 targets are separated by commas.
10865 * config.h.in: Regenerate.
10867 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
10868 Nathan Sidwell <nathan@codesourcery.com>
10870 * omp-low.h (omp_reduction_init_op): Declare.
10871 * omp-low.c (omp_reduction_init_op): New, broken out of ...
10872 (omp_reduction_init): ... here. Call it.
10873 * tree-parloops.c (initialize_reductions): Use
10874 omp_reduction_init_op.
10876 2015-09-23 Richard Biener <rguenther@suse.de>
10878 PR middle-end/67662
10879 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
10880 undefined overflow unless they will cancel out.
10882 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
10884 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
10887 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
10890 * opts.h (write_langs): Declare.
10891 * opts-global.c (write_langs): Make it extern.
10893 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
10896 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
10897 overlapping regs when matching the pattern.
10899 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
10901 * config/aarch64/aarch64-simd.md
10902 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
10903 (aarch64_float_truncate_hi_v4sf_le): New.
10904 (aarch64_float_truncate_hi_v4sf_be): Likewise.
10906 2015-09-23 Richard Biener <rguenther@suse.de>
10908 * tree-ssa-structalias.c (intra_create_variable_infos): Build
10909 representatives for all restrict qualified pointer destinations.
10911 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
10913 * config/i386/i386.md (define_code_attr mshift): New.
10914 (define_mode_iterator SWI1248_AVX512BW): Rename ...
10915 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
10917 (define_insn "*k<logic><mode>"): Use new iterator name.
10918 (define_insn "*<mshift><mode>3"): New.
10920 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
10922 PR middle-end/67649
10923 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
10924 mark the block as accessible.
10926 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
10928 * function.c (thread_prologue_and_epilogue_insns): Delete
10929 orig_entry_edge argument to try_shrink_wrapping.
10930 * shrink-wrap.c (can_get_prologue): New function.
10931 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
10932 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
10933 can_get_prologue where needed. Remove code that finds a single
10934 edge for the prologue. Remove code that tests if any reg clobbered
10935 by the prologue is live on the prologue edge. Remove code that finds
10936 the new prologue edge after duplicating blocks. Make a new prologue
10938 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
10940 2015-09-22 Jeff Law <law@redhat.com>
10942 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
10945 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
10947 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
10948 -Wtemplates, -Wnamespaces): Document.
10950 2015-09-22 Tom de Vries <tom@codesourcery.com>
10952 PR tree-optimization/67671
10953 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
10954 pointer references as restrict.
10956 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
10958 * config/nios2/nios2.c (nios2_legitimize_address): When handling
10959 'reg + reloc' cases, allow first operand to be non-REG, and use
10960 force_reg() to enforce address pattern.
10962 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
10965 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
10966 (define_mode_iterator VI12_AVX_AVX512F): New.
10967 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
10968 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
10969 (define_insn "*<code><mode>3"): ... Into new pattern using
10970 VI12_AVX_AVX512F iterators without masking.
10972 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
10974 * config.gcc: Support "skylake-avx512".
10975 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10976 PROCESSOR_SKYLAKE_AVX512.
10977 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
10978 (processor_target_table): Add "skylake-avx512".
10979 (PTA_SKYLAKE_AVX512): Define.
10980 (ix86_option_override_internal): Add "skylake_avx512".
10981 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
10982 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
10983 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
10984 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
10985 * doc/invoke.texi (skylake-avx512): New.
10987 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
10989 * config/i386/i386.md (define_insn "kunpckhi"): Fix
10990 operand in pattern.
10991 (define_insn "kunpcksi"): Ditto.
10992 (define_insn "kunpckdi"): Ditto.
10994 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
10996 * config/i386/i386.md (define_split not/xor SWI1248x): Use
10997 iterator instead of fixed modes.
10999 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11001 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11002 Adjust declaration.
11003 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
11004 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
11005 out_result. Update to support update-fetch operations.
11006 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
11007 Adjust for change to aarch64_gen_atomic_ldop.
11008 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
11009 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
11010 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
11011 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
11012 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
11014 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11016 * config/aarch64/aarch64-protos.h
11017 (aarch64_atomic_ldop_supported_p): Declare.
11018 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
11019 (enum aarch64_atomic_load_op_code): New.
11020 (aarch64_emit_atomic_load_op): New.
11021 (aarch64_gen_atomic_ldop): Update to support load-operate
11023 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
11025 (aarch64_atomic_<atomic_optab><mode>): New.
11026 (aarch64_atomic_<atomic_optab><mode>_lse): New.
11027 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
11028 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
11029 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
11031 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11033 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
11034 (UNSPECV_ATOMIC_LDOP_OR): New.
11035 (UNSPECV_ATOMIC_LDOP_BIC): New.
11036 (UNSPECV_ATOMIC_LDOP_XOR): New.
11037 (UNSPECV_ATOMIC_LDOP_PLUS): New.
11038 (ATOMIC_LDOP): New.
11039 (atomic_ldop): New.
11040 (aarch64_atomic_load<atomic_ldop><mode>): New.
11042 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11044 * config/aarch64/aarch64.md
11045 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
11048 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11050 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11052 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
11053 (aarch64_gen_atomic_ldop): New.
11054 (aarch64_split_atomic_op): Fix whitespace and add a comment.
11055 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
11056 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
11057 (atomic_exchange<mode>): Replace with an expander.
11058 (aarch64_atomic_exchange<mode>): New.
11059 (aarch64_atomic_exchange<mode>_lse): New.
11060 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
11061 (aarch64_atomic_swp<mode>): New.
11063 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
11065 * tree-inline.c (expand_call_inline): Use inform for extra note.
11066 Do not give a note with UNKNOWN_LOCATION.
11067 Replace input_location with gimple_location (stmt).
11068 Use true/false instead of TRUE/FALSE.
11070 2015-09-22 Tom de Vries <tom@codesourcery.com>
11072 PR tree-optimization/67666
11073 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
11074 with single field non-conservative.
11076 2015-09-21 David S. Miller <davem@davemloft.net>
11080 2015-09-11 David S. Miller <davem@davemloft.net>
11082 * config/sparc/constraints.md: Make "U" constraint a real register
11084 * config/sparc/sparc.c (TARGET_LRA_P): Define.
11085 (D_MODES, DF_MODES): Add missing cast.
11086 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
11087 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
11088 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
11090 * config/sparc/sparc.h (PROMOTE_MODE): Define.
11091 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
11092 provide these insn when flag_pic.
11094 2015-09-17 David S. Miller <davem@davemloft.net>
11096 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
11098 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
11100 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
11101 (HARD_REGNO_CALLER_SAVE_MODE): Define.
11102 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
11103 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
11104 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
11105 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
11106 provide when flag_pic.
11108 2015-09-21 Jeff Law <law@redhat.com>
11110 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
11113 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11115 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
11117 2015-09-21 Richard Biener <rguenther@suse.de>
11119 * passes.c (rest_of_decl_compilation): Do not call
11120 dwarf2out_early_global_decl for aliases.
11122 2015-09-21 Richard Biener <rguenther@suse.de>
11125 * dwarf2out.c (add_location_or_const_value_attribute): Remove
11126 attribute parameter. Early exit if either DW_AT_const_value
11127 or DW_AT_location are present already.
11128 (gen_variable_die): Adjust caller.
11129 (dwarf2out_late_global_decl): Likewise.
11131 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
11134 * config/sh/sh.c (sh_remove_overlapping_post_inc,
11135 sh_peephole_emit_move_insn): Add new functions.
11136 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
11137 sh_peephole_emit_move_insn): Declere them.
11138 * config/sh/sh.md: Use them in various peephole2 patterns.
11140 2015-09-21 Richard Biener <rguenther@suse.de>
11142 PR middle-end/67651
11143 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
11144 address with -fno-delete-null-pointer-checks.
11146 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
11148 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
11149 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
11150 (reduc_uplus_v16qi): Remove.
11152 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
11153 (reduc_<VEC_reduc_name>_v2df): Remove.
11154 (reduc_<VEC_reduc_name>_v4sf): Remove.
11155 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
11157 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
11158 gen_ function by removing * prefix.
11159 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
11161 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
11163 PR middle-end/60832
11164 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
11165 Print i_bound without converting it to a tree.
11167 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
11169 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
11170 operands[4] operands[5] swap with std::swap, removed tmp variable.
11171 (arm_evpc_neon_vzip): Replaced in0/in1 and
11172 out0/out1 swaps with std::swap, removed x variable.
11173 (arm_evpc_neon_vtrn): Replaced in0/int1 and
11174 out0/out1 swaos with std::swap, removed x variable.
11175 (arm_expand_vec_perm_const_1): Replaced
11176 d->op0/d->op1 swap with std::swap, removed x variable.
11177 (arm_evpc_neon_vuzp): Replaced in0/in1 and
11178 out0/out1 swaps with std::swap, removed x variable.
11180 2015-09-21 Jonathan Yong <10walls@gmail.com>
11182 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
11183 sysroot/usr/lib/32api for additional win32 libraries,
11184 fixes failing Cygwin bootstrapping.
11186 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
11188 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
11190 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
11193 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
11194 (*mov_t_msb_neg): Rewrite negc pattern.
11196 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11198 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
11199 immediate generation code.
11201 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11203 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
11204 redundant immediate generation code.
11206 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11208 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
11209 (AARCH64_NUM_BITMASKS): Remove.
11210 (aarch64_bitmasks_cmp): Remove.
11211 (aarch64_build_bitmask_table): Remove.
11213 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11215 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
11216 slow immediate matching loops with a faster algorithm.
11218 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11220 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
11223 2015-09-20 Jeff Law <law@redhat.com>
11225 PR tree-optimization/47679
11226 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
11227 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
11228 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
11229 (thread_through_normal_block): Use record_temporary_equivalences.
11231 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
11233 * coretypes.h (gimple): Change typedef to be a forward declaration.
11234 * gimple.h (gimple_statement_base): rename to gimple.
11235 * (all functions and types using gimple): Adjust.
11236 * *.[ch]: Likewise.
11238 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
11239 David Edelsohn <dje.gcc@gmail.com>
11241 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
11242 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11243 (EH_FRAME_THROUGH_COLLECT2): Define.
11244 (EH_TABLES_CAN_BE_READ_ONLY): Define.
11245 (ASM_OUTPUT_DWARF_PCREL): Define.
11246 (ASM_OUTPUT_DWARF_DATAREL): Define.
11248 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
11250 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
11253 2015-09-18 Jeff Law <law@redhat.com>
11255 PR tree-optimization/47679
11256 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
11258 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
11259 object. Update constructor.
11260 (pass_dominator::execute): Corresponding chagnes to declaration
11261 and initialization of avail_exprs_stack. Update constructor call
11262 for dom_opt_dom_walker object.
11263 (lookup_avail_expr, record_cond): Accept additional argument. Pass
11264 it down to children as needed.
11265 (record_equivalences_from_incoming_edge): Likewise.
11266 (eliminate_redundant_computations): Likewise.
11267 (record_equivalences_from_stmt): Likewise.
11268 (simplify_stmt_for_jump_threading): Likewise.
11269 (record_temporary_equivalences): Likewise.
11270 (optimize_stmt): Likewise.
11271 (dom_opt_dom_walker::thread_across_edge): Update access to
11272 avail_exprs_stack object and pass it to children as needed.
11273 (dom_opt_dom_walker::before_dom_children): Similarly.
11274 (dom_opt_dom_walker::after_dom_children): Similarly.
11275 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
11276 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
11277 Add avail_expr_stack argument. Pass it to children as needed.
11278 (dummy_simplify): Likewise.
11279 (simplify_control_stmt_condition): Likewise.
11280 (thread_around_empty_blocks): Likewise.
11281 (thread_through_normal_block): Likewise.
11282 (thread_across_edge): Likewise.
11283 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
11284 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
11286 PR tree-optimization/47679
11287 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
11289 (dom_opt_dom_walker): New private member holding the const_and_copies
11290 object. Update constructor.
11291 (pass_dominator::execute): Corresponding changes to declaration
11292 and initialization of const_and_copies. Update constructor call
11293 for the dom_opt_dom_walker object.
11294 (record_temporary_equivalences): Accept const_and_copies argument
11295 pass it down to children as needed.
11296 (record_equality): Likewise.
11297 (record_equivalences_from_incoming_edge): Likewise.
11298 (cprop_into_successor_phis, optimize_stmt): Likewise.
11299 (eliminate_redundant_computations): Likewise.
11300 (dom_opt_dom_walker::thread_across_edge): Update access to
11301 const_and_copies object and pass it to children as needed.
11302 (dom_opt_dom_walker::before_dom_children): Similarly.
11303 (dom_opt_dom_walker::after_dom_children): Similarly.
11305 PR tree-optimization/47679
11306 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
11307 it into the avail_exprs_stack class.
11308 (pass_dominator::execute): Corresponding changes to declaration
11309 and initialization of avail_exprs. Pass avail_exprs to
11310 dump_dominator_optimization_stats.
11311 (record_cond): Extract avail_exprs from avail_exprs_stack.
11312 (lookup_avail_expr): Similarly.
11313 (htab_staticstics): Remove unnecessary prototype. Move to earlier
11315 (dump_dominator_optimization_stats): Make static and prototype.
11316 Add argument for the hash table to dump.
11317 (debug_dominator_optimization_stats): Remove.
11318 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
11320 (debug_dominator_optimization_stats): Similarly.
11321 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
11322 "void" in prototype for pop_to_marker method. Add accessor method
11323 for the underlying avail_exprs table.
11325 * tree-ssa-threadedge.c: Remove trailing whitespace.
11327 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
11329 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
11331 (pa_ldil_cint_p): Likewise.
11332 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
11333 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
11335 * config/pa/pa.md: Likewise.
11337 2015-09-18 David Malcolm <dmalcolm@redhat.com>
11339 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
11340 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
11341 (diagnostic_show_locus): Likewise.
11342 (diagnostic_print_caret_line): Likewise.
11343 * diagnostic-show-locus.c: New file.
11345 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
11347 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
11348 "back" parameter. Declare label in #if block.
11350 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
11352 PR middle-end/67619
11353 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
11354 the address to a register.
11356 2015-09-18 Jeff Law <law@redhat.com>
11358 PR tree-optimization/47679
11359 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
11360 * tree-ssa-dom.c: Remove unnecessary header includes.
11361 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
11362 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
11363 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
11364 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
11365 (pass_phi_only_cprop::execute): Likewise.
11366 (make_pass_phi_only_cprop): Likewise.
11367 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
11368 uses of file scoped statics by passing the required objects
11369 as parameters wherever needed.
11371 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
11372 David Edelsohn <dje.gcc@gmail.com>
11374 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
11375 EH_FRAME_THROUGH_COLLECT2.
11376 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
11378 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
11379 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
11380 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
11381 * except.c (switch_to_exception_section): Use a read-only section
11382 even if EH_FRAME_SECTION_NAME is undefined.
11383 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
11384 * collect2.c (write_c_file_stat): Provide dbase on AIX.
11385 (scan_prog_file): Don't export __dso_handle nor
11386 __gcc_unwind_dbase.
11387 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11388 (EH_TABLES_CAN_BE_READ_ONLY): Define.
11389 (ASM_OUTPUT_DWARF_PCREL): Define.
11390 (ASM_OUTPUT_DWARF_DATAREL): Define.
11391 (EH_FRAME_THROUGH_COLLECT2): Define.
11392 (EH_FRAME_IN_DATA_SECTION): Delete.
11393 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
11394 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
11396 (rs6000_asm_output_dwarf_datarel): Declare.
11397 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
11398 (rs6000_aix_asm_output_dwarf_datarel): New.
11399 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
11400 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
11401 (EH_FRAME_THROUGH_COLLECT2): Define.
11402 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
11403 (EH_FRAME_THROUGH_COLLECT2): Define.
11404 (EH_TABLES_CAN_BE_READ_ONLY): Define.
11405 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
11406 (EH_FRAME_THROUGH_COLLECT2): New.
11407 (ASM_OUTPUT_DWARF_DATAREL): New.
11408 * doc/tm.texi: Regenerate.
11410 2015-09-18 Richard Biener <rguenther@suse.de>
11412 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
11413 we're in early phase.
11414 (schedule_generic_params_dies_gen): Likewise.
11415 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
11416 work as possible, retaining unhandled cases.
11417 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
11418 clear out generic_type_instances at the end.
11419 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
11420 (dwarf2out_early_finish): ... here. Do most of
11421 gen_remaining_tmpl_value_param_die_attribute here.
11423 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
11425 PR tree-optimization/67283
11426 * tree-sra.c (type_consists_of_records_p): Rename to...
11427 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11428 (completely_scalarize_record): Rename to...
11429 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
11430 (scalarize_elem): New.
11431 (analyze_all_variable_accesses): Follow renamings.
11433 2015-09-18 Richard Biener <rguenther@suse.de>
11435 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
11438 2015-09-18 Richard Biener <rguenther@suse.de>
11440 PR tree-optimization/66142
11441 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
11442 treat MEM[&x] and x the same.
11443 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
11444 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
11445 when we simplified sth.
11446 (vn_reference_maybe_forwprop_address): Likewise.
11447 (valueize_refs_1): When we simplified through
11448 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
11449 set valueized_anything to true.
11450 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
11451 one ref kills the other instead of just a offset-based test.
11452 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
11453 for the operand_equal_p test to compare bases and also compare
11456 2015-09-17 Christian Bruel <christian.bruel@st.com>
11458 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
11460 2015-09-17 Richard Henderson <rth@redhat.com>
11463 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
11464 pointers that encode the alignment of the object.
11466 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
11468 PR rtl-optimization/66790
11469 * df-problems.c (LIVE): Amend documentation.
11471 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
11473 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
11475 (GTFILES): Replace optabs.c with optabs-libfunc.c.
11476 * genopinit.c (main): Add an include guard to insn-opinit.h.
11477 Protect the rtx_code parts with NUM_RTX_CODE.
11478 * optabs.h: Split parts out to...
11479 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
11480 * optabs.c: Split parts out to...
11481 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
11482 * cilk-common.c: Include optabs-query.h rather than optabs.h.
11483 * fold-const.c: Likewise.
11484 * target-globals.c: Likewise.
11485 * tree-if-conv.c: Likewise.
11486 * tree-ssa-forwprop.c: Likewise.
11487 * tree-ssa-loop-prefetch.c: Likewise.
11488 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
11489 Remove unncessary include files.
11490 * tree-ssa-phiopt.c: Likewise.
11491 * tree-ssa-reassoc.c: Likewise.
11492 * tree-switch-conversion.c: Likewise.
11493 * tree-vect-data-refs.c: Likewise.
11494 * tree-vect-generic.c: Likewise.
11495 * tree-vect-loop.c: Likewise.
11496 * tree-vect-patterns.c: Likewise.
11497 * tree-vect-slp.c: Likewise.
11498 * tree-vect-stmts.c: Likewise.
11499 * tree-vrp.c: Likewise.
11500 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
11501 rather than optabs.h.
11502 * expr.c: Include optabs-tree.h.
11503 * function.c: Likewise.
11505 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
11507 PR middle-end/65958
11508 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
11509 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
11510 * config/arm/arm.c: Include common/common-target.h.
11511 (use_return_insn): Return 0 if the static chain register was saved
11512 above a non-APCS frame.
11513 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
11514 (struct scratch_reg): New.
11515 (get_scratch_register_on_entry): New function.
11516 (release_scratch_register_on_entry): Likewise.
11517 (arm_emit_probe_stack_range): Likewise.
11518 (output_probe_stack_range): Likewise.
11519 (arm_expand_prologue): Factor out code dealing with the IP register
11520 for nested function and adjust it for stack checking.
11521 Invoke arm_emit_probe_stack_range if static builtin stack checking
11523 (thumb1_expand_prologue): Sorry out if static builtin stack checking
11525 (arm_expand_epilogue): Add the saved static chain register, if any, to
11526 the amount of pre-pushed registers to pop.
11527 (arm_frame_pointer_required): Return true if static stack checking is
11528 enabled and we want to catch the exception with the EABI unwinder.
11529 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
11530 (UNSPEC_PROBE_STACK_RANGE): Likewise.
11531 * config/arm/arm.md (probe_stack): New insn.
11532 (probe_stack_range): Likewise.
11534 2015-09-17 Richard Biener <rguenther@suse.de>
11536 * genmatch.c (parser::parse_expr): Improve error message
11537 for mis-placed flags.
11539 2015-09-17 Richard Biener <rguenther@suse.de>
11541 * passes.c (rest_of_decl_compilation): Always call early_global_decl
11542 debug hook when we created a varpool node.
11543 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
11544 dwarf2out_early_global_decl, when not just add location or
11545 value attributes to existing DIEs.
11547 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
11549 * config/aarch64/aarch64.md (copysigndf3): New.
11550 (copysignsf3): Likewise.
11552 2015-09-17 David S. Miller <davem@davemloft.net>
11554 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
11555 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
11556 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
11557 (HARD_REGNO_CALLER_SAVE_MODE): Define.
11558 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
11559 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
11560 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
11561 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
11562 provide when flag_pic.
11564 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
11566 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
11567 object_allocator change.
11569 2015-09-17 Bin Cheng <bin.cheng@arm.com>
11571 PR tree-optimization/66388
11572 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
11573 (dump_iv): Dump no_overflow information.
11574 (alloc_iv): Initialize new field for struct iv.
11575 (mark_bivs): Count number of no_overflow bivs.
11576 (find_deriving_biv_for_expr, record_biv_for_address_use): New
11578 (idx_find_step): Call new functions above.
11579 (add_candidate_1, add_candidate): New paramter.
11580 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
11581 (get_computation_aff): Simplify convertion of cand for BIV.
11582 (get_computation_cost_at): Step cand's base if necessary.
11584 2015-09-17 Bin Cheng <bin.cheng@arm.com>
11586 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
11588 (tree_simplify_using_condition): Ditto.
11589 (simplify_using_initial_conditions): Ditto.
11590 (loop_exits_before_overflow): Pass new argument to function
11591 simplify_using_initial_conditions. Remove case for type conversions
11593 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
11595 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
11596 in iv base using loop initial conditions.
11598 2015-09-16 Jeff Law <law@redhat.com>
11600 PR tree-optimization/47679
11601 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
11602 (free_all_edge_infos): Use it.
11603 (allocate_edge_info): Free preexisting edge info data.
11604 (pass_dominator::execute): Set up initial edge info structures.
11605 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
11606 thread_across_edge.
11607 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
11608 If non-null, then push/pop markers appropriately.
11609 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
11610 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
11611 thread-across_edge.
11613 2015-09-16 James Bowman <james.bowman@ftdichip.com>
11615 * config/ft32/ft32.c: Fix the memory address space predicate.
11617 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
11620 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
11621 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
11623 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
11625 * toplev.h (check_global_declaration): Remove declaration.
11626 * toplev.c (check_global_declaration): Move to ...
11627 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
11628 (analyze_functions): Update call.
11630 2015-09-16 David S. Miller <davem@davemloft.net>
11632 * lra-constraints.c (simplify_operand_subreg): Do not assume that
11633 lowpart of a SUBREG has offset zero.
11635 2015-09-16 Jeff Law <law@redhat.com>
11637 PR tree-optimization/47679
11638 * tree-ssa-dom.c (enum expr_kind): Moved from here to
11639 tree-ssa-scopedtables.h.
11640 (struct hashable_expr, class expr_hash_elt): Likewise.
11641 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
11642 Move associated methods into tree-ssa-scopedtables.c.
11643 (avail_expr_hash, initialize_expr_from_cond): Similarly.
11644 (hashable_expr_equal_p, add_expr_commutative): Likewise.
11645 (add_hashable_expr): Likewise.
11646 (record_cond): Delete element directly.
11647 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
11648 private copy ctor and assignment operator methods.
11649 (expr_elt_hasher): Inline trivial methods.
11650 (initialize_expr_from_cond): Prototype.
11651 * tree-ssa-scopedtables.c: Add necessary includes, functions and
11652 methods that were previously in tree-ssa-dom.c. Improve various
11655 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
11657 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
11659 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
11662 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
11665 2015-09-16 Richard Biener <rguenther@suse.de>
11667 PR middle-end/67253
11668 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
11669 location of possibly shared trees.
11671 2015-09-16 Richard Biener <rguenther@suse.de>
11673 PR middle-end/67271
11674 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
11676 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
11678 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
11679 offset and size computations instead of HOST_WIDE_INT.
11681 2015-09-16 Richard Biener <rguenther@suse.de>
11683 PR middle-end/67442
11684 * fold-const.c (extract_muldiv_1): Properly extend multiplication
11685 result before builting a tree via wide_int_to_tree.
11687 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
11689 * Makefile.in: Add memory-block.cc
11690 (pool_allocator::initialize): Use fixed block size.
11691 (pool_allocator::release): Use memory_block_pool.
11692 (pool_allocator::allocate): Likewise.
11693 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
11695 * cfg.c (initialize_original_copy_tables): Likewise.
11696 * cselib.c (elt_list_pool, elt_loc_list_pool,
11697 cselib_val_pool): Likewise.
11698 * df-problems.c (df_chain_alloc): Likewise.
11699 * df-scan.c (df_scan_alloc): Likewise.
11700 * dse.c (cse_store_info_pool, rtx_store_info_pool,
11701 read_info_type_pool, insn_info_type_pool, bb_info_pool,
11702 group_info_pool, deferred_change_pool): Likewise.
11703 * et-forest.c (et_nodes, et_occurrences): Likewise.
11704 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
11705 ipcp_agg_lattice_pool): Likewise.
11706 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
11707 * ipa-profile.c (histogram_pool): Likewise.
11708 * ipa-prop.c (ipa_refdesc_pool): Likewise.
11709 * ira-build.c (live_range_pool, allocno_pool, object_pool,
11710 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
11711 * ira-color.c (update_cost_record_pool): Likewise.
11712 * lra-lives.c (lra_live_range_pool): Likewise.
11713 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
11714 * memory-block.cc: New file.
11715 * memory-block.h: New file.
11716 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
11717 * sched-deps.c (sched_deps_init): Likewise.
11718 * sel-sched-ir.c (sched_lists_pool): Likewise.
11719 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
11720 * tree-sra.c (access_pool): Likewise.
11721 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
11722 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
11723 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
11724 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
11725 * tree-ssa-strlen.c (strinfo_pool): Likewise.
11726 * tree-ssa-structalias.c (variable_info_pool): Likewise.
11727 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
11728 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
11730 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
11732 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
11734 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
11737 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
11739 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
11740 to pass TLS call argument, according to current ABI.
11741 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
11742 callx0 for TLS call, according to current ABI.
11744 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
11746 * tree-eh.c (lower_try_finally_dup_block): Clear location information
11747 on stack restore statements.
11748 (decide_copy_try_finally): Do not consider a stack restore statement as
11749 coming from sources.
11751 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
11753 * config/alpha/alpha.c (alpha_expand_block_clear): Use
11754 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
11756 2015-09-15 Jeff Law <law@redhat.com>
11758 PR tree-optimization/47679
11759 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
11760 methods and private members.
11761 (avail_exprs_stack): Similarly. Change type of global
11762 from a pair of expr_hash_elt_t to the new class.
11763 (expr_elt_hasher::hash): Corresponding changes.
11764 (expr_elt_hasher::equal): Similarly.
11765 (avail_expr_hash): Similarly.
11766 (pass_dominator::execute): Similarly.
11767 (dom_opt_dom_walker::thread_across_edge): Similarly.
11768 (record_cond): Similarly.
11769 (dom_opt_dom_walker::before_dom_children): Similarly.
11770 (dom_opt_dom_walker::after_dom_children): Similarly.
11771 (lookup_avail_expr): Likewise.
11772 (initialize_hash_element): Now a expr_hash_elt constructor.
11773 (initialize_hash_element_from_expr): Similarly.
11774 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
11775 (free_expr_hash_elt): Call dtor for the element.
11776 (remove_local_expressions_from_table): Now the "pop_to_marker"
11777 method in the available_exprs_stack class.
11778 (avail_expr_stack::record_expr): Method factored out.
11779 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
11781 (hashable_expr_equal_p): Fix formatting.
11783 2015-09-15 David Malcolm <dmalcolm@redhat.com>
11785 * input.h (location_get_source_line): Drop "expanded_location"
11786 param in favor of a file and line number.
11787 * input.c (location_get_source_line): Likewise.
11788 (dump_location_info): Update for change in signature of
11789 location_get_source_line.
11790 * diagnostic.c (diagnostic_print_caret_line): Likewise.
11792 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
11794 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
11795 Bump to 4KB for SJLJ exceptions.
11796 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
11797 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
11798 * doc/tm.texi: Regenerate.
11800 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11802 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
11803 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
11806 2015-09-15 Richard Biener <rguenther@suse.de>
11808 PR tree-optimization/67470
11809 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
11810 structure for PHI hoisting by inserting a forwarder block
11813 2015-09-15 Christian Bruel <christian.bruel@st.com>
11815 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
11816 (arm_option_print): New function.
11818 2015-09-15 Christian Bruel <christian.bruel@st.com>
11821 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
11822 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
11823 Remove flags parameter.
11824 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
11825 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
11826 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
11827 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
11828 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
11829 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
11830 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
11831 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
11833 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11835 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
11837 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
11838 AARCH64_VALID_SIMD_DREG_MODE.
11840 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11842 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
11843 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
11844 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
11845 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
11846 aarch64_ld4_lane<mode>): Combine together, making...
11847 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
11848 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
11849 aarch64_st4_lane<mode>): Combine together, making...
11850 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
11851 * config/aarch64/iterators.md (nregs): Add comment.
11853 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11855 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
11856 Change operand mode from <V_TWO_ELEM> to BLK.
11857 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
11858 (aarch64_vec_store_lanesoi_lane<mode): Likewise
11859 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
11860 (aarch64_ld2_lane<mode>): Likewise.
11861 (aarch64_st2_lane<VQ:mode>): Likewise.
11862 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
11864 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11866 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
11867 Change operand mode from <V_FOUR_ELEM> to BLK.
11868 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
11869 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
11870 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
11871 (aarch64_ld4_lane<mode>): Likewise.
11872 (aarch64_st4_lane<mode>): Likewise.
11873 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
11875 2015-09-15 Richard Biener <rguenther@suse.de>
11877 PR middle-end/67563
11878 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
11879 transfer EH info from old to new stmt.
11880 (replace_call_with_value): Likewise.
11881 (replace_call_with_call_and_fold): Likewise.
11882 (gimple_fold_builtin_memory_op): Likewise.
11883 (gimple_fold_builtin_memset): Likewise.
11884 (gimple_fold_builtin_stpcpy): Likewise.
11885 (gimple_fold_call): Likewise.
11887 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11889 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
11891 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
11892 (aarch64_simd_intEI_type_node): Likewise.
11893 (aarch64_simd_builtin_std_type): Remove EImode case.
11894 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
11895 * config/aarch64/aarch64-modes.def: Remove EImode.
11897 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11899 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
11900 Change operand mode from <V_THREE_ELEM> to BLK.
11901 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
11902 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
11903 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
11904 (aarch64_ld3_lane<mode>): Likewise.
11905 (aarch64_st3_lane<mode>): Likewise.
11906 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
11908 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11910 * config/aarch64/aarch64-simd.md
11911 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
11912 Change all TImode operands to BLKmode.
11913 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
11914 Change all EImode operands to BLKmode.
11915 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
11916 Change all OImode operands to BLKmode.
11918 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
11919 and call set_mem_size.
11920 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
11922 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
11924 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
11926 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
11928 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
11930 (vec_store_lanesci_lane<mode>): Rename to...
11931 (aarch64_vec_store_lanesci_lane<mode>): ...this.
11933 (vec_store_lanesxi_lane<mode>): Rename to...
11934 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
11936 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
11937 aarch64_st4_lane<mode>): Follow renaming.
11939 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11941 * config/s390/s390.c (s390_const_operand_ok): Add missing
11944 2015-09-15 Richard Biener <rguenther@suse.de>
11947 * lto-streamer.h (lto_location_cache::current_sysp): Properly
11949 * lto-streamer-out.c (clear_line_info): Likewise.
11951 2015-09-15 Richard Biener <rguenther@suse.de>
11953 * doc/match-and-simplify.texi: Fix wording.
11955 2015-09-15 Bin Cheng <bin.cheng@arm.com>
11957 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
11958 unnecessary type conversion in op1.
11960 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
11962 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
11963 (dup_block_and_redirect): Delete function.
11964 (can_dup_for_shrink_wrapping): New function.
11965 (fix_fake_fallthrough_edge): New function.
11966 (try_shrink_wrapping): Rewrite function.
11967 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
11969 2015-09-14 Rich Felker <dalias@libc.org>
11971 * configure.ac: Change target pattern for sh TLS support
11972 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
11973 * configure: Regenerate.
11975 2015-09-14 Jeff Law <law@redhat.com>
11977 PR tree-optimization/47679
11978 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
11979 type rather than void *.
11981 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
11984 * diagnostic.c (diagnostic_initialize): Do not set
11985 some_warnings_are_errors.
11986 (diagnostic_finish): Use DK_WERROR count instead.
11987 (diagnostic_report_diagnostic): Do not set
11988 some_warnings_are_errors.
11989 * diagnostic.h (struct diagnostic_context): Remove
11990 some_warnings_are_errors.
11992 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
11994 * config/sparc/predicates.md (const_all_ones_operand): Use
11995 CONSTM1_RTX to simplify definition.
11997 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
12000 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
12003 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
12005 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
12006 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
12007 OPT_fshow_column to handled saved option cases.
12008 (append_compiler_options): Do not skip the above added options.
12010 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12013 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
12014 nopcrelative_literal_loads.
12015 (aarch64_classify_address): Likewise.
12016 (aarch64_constant_pool_reload_icode): Define.
12017 (aarch64_secondary_reload): Handle secondary reloads for
12019 (aarch64_override_options): Handle nopcrelative_literal_loads.
12020 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
12021 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
12023 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
12024 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
12025 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
12027 * doc/invoke.texi (mpc-relative-literal-loads): Document.
12029 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
12031 PR middle-end/67401
12032 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
12033 sync_compare_and_swap_optab libcall to target_oval.
12035 2015-09-14 Marek Polacek <polacek@redhat.com>
12037 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
12039 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
12041 2015-09-11 Mark Wielaard <mjw@redhat.com>
12044 * toplev.c (check_global_declaration): Check and use
12045 warn_unused_const_variable.
12046 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
12047 (-Wunused-variable): Remove non-constant. For C implies
12048 -Wunused-const-variable.
12049 (-Wunused-const-variable): New.
12051 2015-09-14 Richard Biener <rguenther@suse.de>
12053 * doc/match-and-simplify.texi: Update for changed syntax
12054 of inner ifs and the new switch expression.
12056 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
12058 * config/i386/haswell.md: New file describing Haswell pipeline.
12059 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
12060 haswell-like processors.
12061 (ix86_reassociation_width): Increase reassociation width for 64-bit
12062 Haswell processor family.
12063 * config/i386/i386.md: Introduce haswell cpu and include new md file.
12065 2015-09-14 Richard Biener <rguenther@suse.de>
12067 * doc/match-and-simplify.texi: Fixup some formatting issues
12068 and document the 's' flag.
12070 2015-09-13 Olivier Hainque <hainque@adacore.com>
12071 Eric Botcazou <ebotcazou@adacore.com>
12073 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
12074 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
12075 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
12076 (TARGET_CPU_gr5): Likewise.
12077 (TARGET_CPU_gr6): Likewise.
12078 (MULTILIB_DEFAULTS): Likewise.
12079 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
12080 for mcpu=gr5 and mcpu=gr6.
12081 (MULTILIB_DIRNAMES): Adjust accordingly.
12083 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12085 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
12086 (mem_ref_p): Likewise.
12087 (outermost_indep_loop): Adjust.
12088 (mem_ref_in_stmt): Likewise.
12089 (determine_max_movement): Likewise.
12090 (mem_ref_alloc): Likewise.
12091 (record_mem_ref_loc): Likewise.
12092 (set_ref_stored_in_loop): Likewise.
12093 (mark_ref_stored): Likewise.
12094 (gather_mem_refs_stmt): Likewise.
12095 (mem_refs_may_alias_p): Likewise.
12096 (for_all_locs_in_loop): Likewise.
12097 (struct rewrite_mem_ref_loc): Likewise.
12098 (rewrite_mem_refs): Likewise.
12099 (struct first_mem_ref_loc_1): Likewise.
12100 (first_mem_ref_loc): Likewise.
12101 (struct sm_set_flag_if_changed): Likewise.
12102 (execute_sm_if_changed_flag_set): Likewise.
12103 (execute_sm): Likewise.
12104 (hoist_memory_references):
12105 (struct ref_always_accessed): Likewise.
12106 (ref_always_accessed_p): Likewise.
12107 (refs_independent_p): Likewise.
12108 (record_dep_loop): Likewise.
12109 (ref_indep_loop_p_1): Likewise.
12110 (ref_indep_loop_p_2): Likewise.
12111 (ref_indep_loop_p): Likewise.
12112 (can_sm_ref_p): Likewise.
12113 (find_refs_for_sm): Likewise.
12114 (tree_ssa_lim_finalize): Likewise.
12116 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12118 * dwarf2out.c (dw_attr_ref): Remove typedef.
12119 (dw_line_info_ref): Likewise.
12120 (pubname_ref): Likewise.
12121 (dw_ranges_ref): Likewise.
12122 (dw_ranges_by_label_ref): Likewise.
12123 (comdat_type_node_ref): Likewise.
12125 (get_AT_low_pc): Likewise.
12126 (get_AT_hi_pc): Likewise.
12127 (get_AT_string): Likewise.
12128 (get_AT_flag): Likewise.
12129 (get_AT_unsigned): Likewise.
12130 (get_AT_ref): Likewise.
12131 (get_AT_file): Likewise.
12132 (remove_AT): Likewise.
12133 (print_die): Likewise.
12134 (check_die): Likewise.
12135 (die_checksum): Likewise.
12136 (attr_checksum_ordered): Likewise.
12137 (struct checksum_attributes): Likewise.
12138 (collect_checksum_attributes): Likewise.
12139 (die_checksum_ordered): Likewise.
12140 (same_die_p): Likewise.
12141 (is_declaration_die): Likewise.
12142 (clone_die): Likewise.
12143 (clone_as_declaration): Likewise.
12144 (copy_declaration_context): Likewise.
12145 (break_out_comdat_types): Likewise.
12146 (copy_decls_walk): Likewise.
12147 (output_location_lists): Likewise.
12148 (external_ref_hasher::hash): Likewise.
12149 (optimize_external_refs_1): Likewise.
12150 (build_abbrev_table): Likewise.
12151 (size_of_die): Likewise.
12152 (unmark_all_dies): Likewise.
12153 (size_of_pubnames): Likewise.
12154 (output_die_abbrevs): Likewise.
12155 (output_die): Likewise.
12156 (output_pubnames): Likewise.
12157 (add_ranges_num): Likewise.
12158 (add_ranges_by_labels): Likewise.
12159 (add_high_low_attributes): Likewise.
12160 (gen_producer_string): Likewise.
12161 (dwarf2out_set_name): Likewise.
12162 (new_line_info_table): Likewise.
12163 (prune_unused_types_walk_attribs): Likewise.
12164 (prune_unused_types_update_strings): Likewise.
12165 (prune_unused_types): Likewise.
12166 (resolve_addr): Likewise.
12167 (optimize_location_lists_1): Likewise.
12168 (index_location_lists): Likewise.
12169 (dwarf2out_finish): Likewise.
12171 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12173 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
12175 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12177 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
12178 (dump_asserts_for): Adjust.
12179 (register_new_assert_for): Likewise.
12180 (process_assert_insertions): Likewise.
12181 (insert_range_assertions): Likewise.
12183 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12185 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
12186 and remove typedef.
12187 (new_temp_expr_table): Adjust.
12188 (free_temp_expr_table): Likewise.
12189 (version_to_be_replaced_p): Likewise.
12190 (make_dependent_on_partition): Likewise.
12191 (add_to_partition_kill_list): Likewise.
12192 (remove_from_partition_kill_list): Likewise.
12193 (add_dependence): Likewise.
12194 (finished_with_expr): Likewise.
12195 (process_replaceable): Likewise.
12196 (kill_expr): Likewise.
12197 (kill_virtual_exprs): Likewise.
12198 (mark_replaceable): Likewise.
12199 (find_replaceable_in_bb): Likewise.
12200 (find_replaceable_exprs): Likewise.
12201 (debug_ter): Likewise.
12203 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12205 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
12206 (struct btr_user): Rename from btr_user_s.
12207 (struct btr_def): Rename from btr_def_s.
12208 (find_btr_def_group): Adjust.
12209 (add_btr_def): Likewise.
12210 (new_btr_user): Likewise.
12211 (note_other_use_this_block): Likewise.
12212 (compute_defs_uses_and_gen): Likewise.
12213 (link_btr_uses): Likewise.
12214 (build_btr_def_use_webs): Likewise.
12215 (block_at_edge_of_live_range_p): Likewise.
12216 (btr_def_live_range): Likewise.
12217 (combine_btr_defs): Likewise.
12218 (move_btr_def): Likewise.
12219 (migrate_btr_def): Likewise.
12220 (migrate_btr_defs): Likewise.
12222 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12224 * var-tracking.c (shared_hash_def): Rename to shared_hash.
12225 (shared_hash): Remove typedef.
12226 (struct dataflow_set): Adjust.
12227 (shared_hash_unshare): Likewise.
12228 (dataflow_set_merge): Likewise.
12229 (vt_initialize): Likewise.
12230 (vt_finalize): Likewise.
12232 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12234 * var-tracking.c (struct location_chain): Rename from
12235 location_chain_def.
12236 (struct variable_part): Adjust.
12237 (variable_htab_free): Likewise.
12238 (unshare_variable): Likewise.
12239 (get_init_value): Likewise.
12240 (get_addr_from_local_cache): Likewise.
12241 (drop_overlapping_mem_locs): Likewise.
12242 (val_reset): Likewise.
12243 (struct variable_union_info): Likewise.
12244 (variable_union): Likewise.
12245 (find_loc_in_1pdv): Likewise.
12246 (insert_into_intersection): Likewise.
12247 (intersect_loc_chains): Likewise.
12248 (canonicalize_loc_order_check): Likewise.
12249 (canonicalize_values_mark): Likewise.
12250 (canonicalize_values_star): Likewise.
12251 (canonicalize_vars_star): Likewise.
12252 (variable_merge_over_cur): Likewise.
12253 (remove_duplicate_values): Likewise.
12254 (variable_post_merge_new_vals): Likewise.
12255 (variable_post_merge_perm_vals): Likewise.
12256 (find_mem_expr_in_1pdv): Likewise.
12257 (dataflow_set_preserve_mem_locs): Likewise.
12258 (dataflow_set_remove_mem_locs): Likewise.
12259 (variable_part_different_p): Likewise.
12260 (onepart_variable_different_p): Likewise.
12261 (find_src_set_src): Likewise.
12262 (dump_var): Likewise.
12263 (set_slot_part): Likewise.
12264 (clobber_slot_part): Likewise.
12265 (delete_slot_part): Likewise.
12266 (vt_expand_var_loc_chain): Likewise.
12267 (emit_note_insn_var_location): Likewise.
12268 (vt_finalize): Likewise.
12270 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12272 * dse.c (store_info_t): Remove typedef.
12273 (group_info_t): Likewise.
12274 (const_group_info_t): Likewise.
12275 (deferred_change_t): Likewise.
12276 (get_group_info): Adjust.
12277 (free_store_info): Likewise.
12278 (canon_address): Likewise.
12279 (clear_rhs_from_active_local_stores): Likewise.
12280 (record_store): Likewise.
12281 (replace_read): Likewise.
12282 (check_mem_read_rtx): Likewise.
12283 (scan_insn): Likewise.
12284 (remove_useless_values): Likewise.
12285 (dse_step1): Likewise.
12286 (dse_step2_init): Likewise.
12287 (dse_step2_nospill): Likewise.
12288 (scan_stores_nospill): Likewise.
12289 (scan_reads_nospill): Likewise.
12290 (dse_step3_exit_block_scan): Likewise.
12291 (dse_step3): Likewise.
12292 (dse_step5_nospill): Likewise.
12293 (dse_step6): Likewise.
12295 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12297 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
12298 (alias_set_entry): Remove typedef.
12299 (alias_set_subset_of): Adjust.
12300 (alias_sets_conflict_p): Likewise.
12301 (init_alias_set_entry): Likewise.
12302 (get_alias_set): Likewise.
12303 (new_alias_set): Likewise.
12304 (record_alias_subset): Likewise.
12306 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
12308 * doc/install.texi (Downloading the source): Mark up
12309 contrib/download_prerequisites properly and drop leading "./".
12311 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12313 * config/arc/arc.h: Remove define of STRUCT_VALUE.
12314 * config/lm32/lm32.h: Likewise.
12315 * config/mep/mep.h: Likewise.
12316 * config/visium/visium.h: Likewise.
12317 * system.h: Poison STRUCT_VALUE macro.
12319 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
12321 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
12322 CONSTANT_P operands.
12324 2015-09-11 David S. Miller <davem@davemloft.net>
12326 * config/sparc/constraints.md: Make "U" constraint a real register
12328 * config/sparc/sparc.c (TARGET_LRA_P): Define.
12329 (D_MODES, DF_MODES): Add missing cast.
12330 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
12331 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
12332 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
12334 * config/sparc/sparc.h (PROMOTE_MODE): Define.
12335 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
12336 provide these insn when flag_pic.
12338 2015-09-11 Jeff Law <law@redhat.com>
12340 PR tree-optimization/47679
12341 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
12342 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
12343 member with m_. Update inline member functions as necessary. Add
12345 * tree-ssa-scopedtables.c: Update const_and_copies's member
12346 functions to use m_ prefix to access the stack.
12348 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
12350 * graphite-optimize-isl.c (disable_tiling): Remove.
12351 (get_schedule_for_band): Do not use disable_tiling.
12352 (get_prevector_map): Delete function.
12353 (enable_polly_vector): Remove.
12354 (get_schedule_for_band_list): Remove dead code.
12356 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
12358 * graphite-optimize-isl.c (get_tile_map): Refactor.
12359 (get_schedule_for_band): Same.
12360 (getScheduleForBand): Same.
12361 (get_prevector_map): Same.
12362 (get_schedule_for_band_list): Same.
12363 (get_schedule_map): Same.
12364 (get_single_map): Same.
12365 (apply_schedule_map_to_scop): Same.
12366 (optimize_isl): Same.
12368 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12371 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
12373 * config/aarch64/iterators.md (GPF_TF_F16): New.
12376 2015-09-10 Nathan Sidwell <nathan@acm.org>
12378 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
12379 (nvptx_reorg): Adjust comments.
12381 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
12384 * configure.ac: Check if setenv and unsetenv are declared.
12385 * configure: Rebuild.
12386 * config.in: Rebuild.
12387 * system.h: Declare setenv and unsetenv if not declared.
12389 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12391 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
12392 commentary to simplify permute mask adjustment equation.
12393 (special_handling_values): Add SH_VPERM.
12394 (const_load_sequence_p): New function.
12395 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
12396 the mask loaded from the constant pool.
12397 (adjust_vperm): New function.
12398 (handle_special_swappables): Call adjust_vperm.
12399 (dump_swap_insn_table): Handle SH_VPERM.
12401 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
12403 * shrink-wrap.c (requires_stack_frame_p): Remove static.
12404 * shrink-wrap.h (requires_stack_frame_p): Put back.
12406 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
12408 * reload1.c (elimination_costs_in_insn): Locally turn
12409 -Wmaybe-uninitialized into a warning.
12411 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
12413 * shrink-wrap.c (requires_stack_frame_p): Make static.
12414 (prepare_shrink_wrap): Likewise.
12415 (dup_block_and_redirect): Likewise.
12416 * shrink-wrap.h: Remove declarations of those functions.
12418 2015-09-10 Mark Wielaard <mjw@redhat.com>
12420 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
12422 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
12425 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
12426 missing simplify_gen_subreg.
12428 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12430 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
12431 the vector element is bigger than 64 bit.
12433 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12435 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
12436 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
12438 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12440 * config/s390/s390.c: Add V1TImode to constant pool modes.
12442 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12445 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
12446 predicate. Set predicable_short_it attr to "no".
12448 2015-09-10 Jiong Wang <jiong.wang@arm.com>
12450 PR rtl-optimization/67421
12451 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
12452 left wide shift tranformation.
12454 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
12456 * common/config/arc/arc-common.c: Remove references to A5.
12457 * config/arc/arc-opts.h: Likewise.
12458 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
12459 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
12460 * config/arc/t-arc-newlib: Likewise.
12462 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
12464 * config/arc/arc.md (length): Fix attribute length for conditional
12465 executed instructions with long immediate.
12467 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12469 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
12470 type for second alternative.
12472 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
12474 * doc/invoke.texi (Downloading GCC): Mention
12475 contrib/download_prerequisites script.
12477 2015-09-10 Jakub Jelinek <jakub@redhat.com>
12480 * gimplify.c (gimplify_omp_for): If inner stmt is not found
12481 for combined loop, assert seen_error () and return GS_ERROR.
12483 PR middle-end/67521
12484 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
12485 if decl is already in outer->variables.
12487 PR middle-end/67517
12488 * gimplify.c (gimplify_scan_omp_clauses): Instead of
12489 asserting that decl is not specified in octx->variables,
12490 break out of the loop if it is.
12493 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
12494 iterator is not explicitly determined, but is defined inside
12495 of the combined workshare region, handle it like if it has
12496 DECL_EXPR in OMP_FOR_PRE_BODY.
12498 2015-09-09 Nathan Sidwell <nathan@acm.org>
12500 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
12501 (*cmp<mode>): Add assembler spacing.
12502 (setcc_int<mode>, set_cc_float<mode>): Likewise.
12503 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
12505 (write_func_decl_from_insn): Refactor argument loops & comma emission.
12506 (nvptx_expand_call): Likewise.
12507 (nvptx_output_call_insn): Likewise.
12508 (nvptx_reorg_subreg): Add spacing.
12510 2015-09-09 Marek Polacek <polacek@redhat.com>
12512 PR middle-end/67512
12513 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
12516 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
12519 * doc/invoke.texi ([Wsubobject-linkage]): Document.
12521 2015-09-09 Tom de Vries <tom@codesourcery.com>
12523 * params-list.h: Add missing copyright notice.
12525 2015-09-09 Nathan Sidwell <nathan@acm.org>
12527 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
12528 sel_truesi, not andsi.
12530 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12532 * config/arm/arm.md (*subsi3_compare0): Rename to...
12533 (subsi3_compare0): ... This.
12534 (modsi3): New define_expand.
12535 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
12536 when operand is power of 2.
12538 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12540 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
12541 (*neg<mode>2_compare0): Rename to...
12542 (neg<mode>2_compare0): ... This.
12543 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
12544 Move check for speed inside the if-then-elses. Reflect
12545 CSNEG sequence in MOD by power of 2 case.
12547 2015-09-09 Alan Modra <amodra@gmail.com>
12550 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
12551 reload replacement for PRE_MODIFY address reg.
12553 2015-09-09 Sebastian Pop <s.pop@samsung.com>
12555 PR tree-optimization/53852
12556 * config.in: Regenerate.
12557 * configure: Regenerate.
12558 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
12559 * graphite-optimize-isl.c (optimize_isl): Stop computation when
12560 PARAM_MAX_ISL_OPERATIONS is reached.
12561 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
12562 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
12563 result equal to isl_stat_ok as the status now can be isl_error_quota.
12564 (subtract_commutative_associative_deps): Same.
12565 (compute_deps): Same.
12567 2015-09-08 Aditya Kumar <hiraditya@msn.com>
12568 Sebastian Pop <s.pop@samsung.com>
12570 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
12571 Return the parameter if it was saved in corresponding
12572 parameter_rename_map of the region.
12573 (copy_def): Copy def from sese region to the newly created region.
12574 (copy_internal_parameters): Copy all the internal parameters defined
12575 within a region to the newly created region.
12576 (graphite_regenerate_ast_isl): Copy parameters to the new region before
12577 translating isl to gimple.
12578 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
12579 the loop-nest does not have any data-references.
12580 (build_graphite_scops): Create a scop only when there is at least one
12582 (contains_only_close_phi_nodes): Deleted.
12583 (print_graphite_scop_statistics): Deleted
12584 (print_graphite_statistics): Deleted
12585 (limit_scops): Deleted.
12586 (build_scops): Removed call to limit_scops.
12587 * sese.c (new_sese): Construct.
12588 (free_sese): Destruct.
12589 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
12591 (set_rename): Pass sese region so that parameters inside the region can
12592 be added to its parameter_rename_map.
12593 (rename_uses): Pass sese region.
12594 (graphite_copy_stmts_from_block): Do not copy parameters that have been
12595 generated in the header of the scop. For each SSA_NAME in the
12596 parameter_rename_map rename its usage.
12597 (invariant_in_sese_p_rec): Return false if tree t is defined outside
12599 (scalar_evolution_in_region): If the tree t is invariant just return t.
12600 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
12601 struct sese to keep track of all the parameters which need renaming.
12602 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
12604 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
12606 2015-09-08 Tom de Vries <tom@codesourcery.com>
12608 * Makefile.in (generated_files): Add params.list.
12609 (params.list, s-params.list): Add rule.
12610 * params.h (enum compiler_param): Include params-list.h. Move define
12611 DEFPARAM, include params.def and undef DEFPARAM ...
12612 * params-list.h: ... here. New file.
12614 2015-09-08 David Malcolm <dmalcolm@redhat.com>
12616 * pretty-print.h (printer_fn): Fix typo in comment.
12618 2015-09-07 Jeff Law <law@redhat.com>
12620 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
12622 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12624 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
12625 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
12626 (arm_neon_fp16_hw): New.
12628 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12630 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
12631 UNITS_PER_WORD >= 4.
12633 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12635 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
12636 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
12637 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
12638 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
12639 (aarch64_float_extend_lo_v2df): Rename to...
12640 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
12642 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
12643 (float_extend_lo): Add v4sf.
12645 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
12646 * config/aarch64/iterators.md (VQ_HSF): New iterator.
12647 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
12648 (Vwide): New mode_attr.
12650 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12652 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
12653 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
12654 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
12655 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
12656 V4HF and V8HF variants to iterator.
12658 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
12660 * config/aarch64/iterators.md (VDQF_F16): New.
12661 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
12663 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12665 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
12666 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
12667 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
12668 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
12669 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
12670 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
12671 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
12672 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
12673 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
12674 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
12675 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
12676 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
12677 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
12678 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
12679 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
12680 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
12681 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
12682 vld1q_dup_f16): New.
12684 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12686 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
12687 Reparameterize to...
12688 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
12689 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
12690 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
12692 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
12694 (float_truncate_lo_): Use BUILTIN_VDF iterator.
12696 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
12698 * config/aarch64/iterators.md (VDF, Vdtype): New.
12699 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
12701 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12703 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
12704 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
12705 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
12706 Add __builtin_aarch64_simd_hf.
12707 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
12708 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
12709 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
12710 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
12711 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
12712 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
12713 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
12714 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
12715 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
12717 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
12718 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
12719 (VDC, Vdbl): Add V4HF.
12721 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12723 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
12724 V4HFmode and V8HFmode.
12725 (aarch64_split_simd_move): Add case for V8HFmode.
12726 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
12727 (aarch64_simd_builtin_std_type): Handle HFmode.
12728 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
12730 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
12731 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
12732 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
12734 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
12737 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
12738 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
12740 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
12741 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
12742 vst1q_lane_f16): New.
12743 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
12744 (VALLDI_F16, VALL_F16): New.
12745 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
12746 Add cases for V4HF and V8HF.
12747 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
12749 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12751 * config/arm/arm-builtins.c (VAR11, VAR12): New.
12752 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
12753 vld4_dup): Add v4hf variant.
12754 (vget_high, vget_low): Add v8hf variant.
12755 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
12756 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
12757 v4hf and v8hf variants.
12759 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
12761 (V_DOUBLE): Add case for V4HF.
12763 (V_HALF): Add case for V8HF.
12764 (VDQX): Add V4HF, V8HF.
12765 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
12766 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
12768 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
12769 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
12770 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
12771 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
12772 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
12773 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
12774 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
12775 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
12776 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
12778 (neon_vcreate, neon_vreinterpretv8qi<mode>,
12779 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
12780 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
12781 Change VDX to VD_RE.
12783 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
12784 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
12785 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
12787 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
12788 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
12789 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
12790 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
12791 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
12792 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
12793 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
12794 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
12795 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
12797 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12799 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
12800 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
12801 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
12802 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
12803 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
12804 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
12805 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
12806 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
12807 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
12808 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
12811 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12813 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
12815 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
12817 * config/arm/arm-builtins.c (v8hf_UP): New.
12818 (arm_init_simd_builtin_types): Initialise Float16x8_t.
12820 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
12822 * config/arm/arm_neon.h (float16x8_t): New typedef.
12824 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12826 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
12827 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
12828 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
12829 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
12830 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
12831 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
12832 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
12833 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
12834 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
12835 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
12837 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
12839 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
12840 non-alphanumeric characters in the symbol name.
12842 2015-09-07 Marek Polacek <polacek@redhat.com>
12844 PR inline-asm/67448
12845 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
12848 2015-09-07 Marek Polacek <polacek@redhat.com>
12850 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
12852 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
12854 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
12857 2015-09-04 Jakub Jelinek <jakub@redhat.com>
12859 PR middle-end/67452
12860 * tree-ssa-live.c: Include cfgloop.h.
12861 (remove_unused_locals): Clear loop->simduid if simduid is about
12862 to be removed from cfun->local_decls.
12864 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12867 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
12870 2015-09-04 Tom de Vries <tom@codesourcery.com>
12872 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
12874 2015-09-04 Jeff Law <law@redhat.com>
12876 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
12877 unnecessary constructor. It's now trivial and implemented inside...
12878 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
12879 constructor. Add comments to various methods. Remove unused
12881 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
12882 * tree-vrp.c (identify_jump_threads): Likewise.
12883 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
12884 indentation issues.
12885 (thread_across_edge): Similarly.
12886 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
12887 arguments in constructor call.
12889 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
12891 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
12892 temp path contains a '-'.
12894 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
12895 Petr Murzin <petr.murzin@intel.com>
12896 Kirill Yukhin <kirill.yukhin@intel.com>
12898 * config/i386/i386-builtin-types.def
12899 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
12900 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
12901 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
12902 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
12903 * config/i386/i386.c
12904 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
12905 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
12906 IX86_BUILTIN_SCATTERALTDIV16SI.
12907 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
12908 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
12909 __builtin_ia32_scatteraltdiv8si.
12910 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
12911 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
12912 IX86_BUILTIN_SCATTERALTDIV16SI.
12913 (ix86_vectorize_builtin_scatter): New.
12914 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
12915 ix86_vectorize_builtin_scatter.
12917 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
12918 Petr Murzin <petr.murzin@intel.com>
12919 Kirill Yukhin <kirill.yukhin@intel.com>
12921 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
12922 * doc/tm.texi: Regenerate.
12923 * target.def: Add scatter builtin.
12924 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
12925 for loads/stores in case of gather/scatter accordingly.
12926 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
12927 STMT_VINFO_GATHER_P(S).
12928 (vect_check_gather): Rename to ...
12929 (vect_check_gather_scatter): this.
12930 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
12931 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
12932 (vect_check_gather_scatter): Use it instead of vect_check_gather.
12933 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
12934 variable and new checkings for it accordingly.
12935 * tree-vect-stmts.c
12936 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
12937 STMT_VINFO_GATHER_P(S).
12938 (vect_check_gather_scatter): Use it instead of vect_check_gather.
12939 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
12941 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12943 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
12945 (mulv16qi3): New define_expand.
12947 2015-09-03 Martin Sebor <msebor@redhat.com>
12950 * doc/extend.texi (Other Builtins): Document when the address
12951 of a built-in function can be taken.
12953 2015-09-03 Richard Biener <rguenther@suse.de>
12955 * dwarf2out.c (flush_limbo_die_list): Split out from ...
12956 (dwarf2out_early_finish): ... here.
12957 (dwarf2out_finish): Do not call dwarf2out_early_finish but
12958 flush_limbo_die_list. Assert we have no deferred asm names.
12960 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12962 * optabs.c (expand_binop): Don't create a broadcast vector with a
12963 source element wider than the inner mode.
12965 2015-09-03 Richard Biener <rguenther@suse.de>
12967 * varasm.c (output_constant): Use fold_convert instead of
12970 2015-09-03 Tom de Vries <tom@codesourcery.com>
12972 PR tree-optimization/65637
12973 * omp-low.c (expand_omp_for_static_chunk): Handle case that
12974 fin_bb has 2 predecessors.
12976 2015-09-03 Tom de Vries <tom@codesourcery.com>
12978 PR tree-optimization/65637
12979 * omp-low.c (find_phi_with_arg_on_edge): New function.
12980 (expand_omp_for_static_chunk): Fix inner loop phi.
12982 2015-09-03 Tom de Vries <tom@codesourcery.com>
12984 PR tree-optimization/65637
12985 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
12988 2015-09-03 Tom de Vries <tom@codesourcery.com>
12990 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
12992 2015-09-03 Tom de Vries <tom@codesourcery.com>
12994 * doc/invoke.texi (parloops-chunk-size): Add item.
12995 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
12996 * tree-parloops.c: Include params.h.
12997 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
12998 param parloops-chunk-size is used.
13000 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13002 PR middle-end/67351
13003 * fold-const.c (fold_binary_loc) : Move
13004 Transform (x >> c) << c into x & (-1<<c) or
13005 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
13006 types using simplify and match.
13007 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
13008 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
13010 2015-09-03 Richard Biener <rguenther@suse.de>
13013 * tree-ssa-structalias.c (ctor_for_analysis): New function.
13014 (create_variable_info_for_1): Use ctor_for_analysis instead
13015 of get_constructor.
13016 (create_variable_info_for): Likewise.
13018 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
13021 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
13022 in new callgraph edge.
13024 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
13029 * config/aarch64/aarch64-simd.md
13030 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
13031 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
13032 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
13033 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
13035 2015-09-02 Alan Modra <amodra@gmail.com>
13037 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
13038 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
13039 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
13041 2015-09-02 Alan Modra <amodra@gmail.com>
13044 * config/rs6000/predicates.md (current_file_function_operand): Don't
13045 return true for weak symbols.
13046 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
13048 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
13049 Andrew Bennett <andrew.bennett@imgtec.com>
13051 * config/mips/mips-opts.h (mips_cb_setting): New enum.
13052 * config/mips/mips-protos.h: Add definitions for
13053 mips_output_jump and mips_output_equal_conditional_branch
13054 * config/mips/mips.c (MIPS_JR): Change to support the
13056 (mips_emit_compare): Add support for the MIPS R6 conditional
13058 (mips_process_sync_loop): Likewise.
13059 (mips_output_order_conditional_branch): Likewise.
13060 (mips16_build_call_stub): Change MIPS_CALL to
13062 (mips_print_operand_punctuation): Update 's' case to only
13063 apply to micromips r2.
13064 (mips_adjust_insn_length): Add support for forbidden slot
13066 (mips_avoid_hazard): Likewise.
13067 (mips_reorg_process_insns): Likewise.
13068 (mips_output_jump): New function.
13069 (mips_output_equal_conditional_branch): Likewise.
13070 (mips_output_conditional_branch): Use jrc/bc if compact
13071 branch support is enabled. Ensure the forbidden slots
13072 between the two branch instructions is filled with a nop.
13073 (mips_option_override): Add support to process the compact
13074 branch option and set the correct defaults. Prevent
13075 non-explict relocs being using for MIPS R6.
13076 (mips_trampoline_init): Add compact branch support.
13077 (mips_mult_zero_zero_cost): Allow zero initialisation of
13078 accumulators with TARGET_DSP.
13079 * config/mips/mips.h (TARGET_CB_NEVER): New define.
13080 (TARGET_CB_MAYBE): New define.
13081 (TARGET_CB_ALWAYS): New define.
13082 (ISA_HAS_DELAY_SLOTS): New define.
13083 (ISA_HAS_COMPACT_BRANCHES): New define.
13084 (ISA_HAS_JRC): New define.
13085 (MIPS_BRANCH_C): New define.
13086 (MIPS_CALL): Removed.
13087 (MICROMIPS_J): Removed.
13088 * config/mips/mips.md (compact_form): New attr.
13089 (hazard): Add support for forbidden slots.
13090 (define_delay): Add support for compact branches.
13091 (*branch_order<mode>): Likewise.
13092 (*branch_order<mode>_inverted): Likewise.
13093 (*branch_equality<mode>): Likewise.
13094 (*branch_equality<mode>_inverted): Likewise.
13095 (*jump_absolute): Likewise.
13096 (*jump_pic): Likewise.
13097 (indirect_jump): Use mips_output_jump to produce assembly output.
13098 (tablejump_<mode>"): Likewise.
13099 (*<optab>"): Likewise.
13100 (<optab>_internal): Likewise.
13101 (sibcall_internal): Likewise.
13102 (sibcall_value_internal): Likewise.
13103 (sibcall_value_multiple_internal): Likewise.
13104 (call_internal): Likewise.
13105 (call_split): Likewise.
13106 (call_internal_direct): Likewise.
13107 (call_direct_split): Likewise.
13108 (call_value_internal): Likewise.
13109 (call_value_split): Likewise.
13110 (call_value_internal_direct): Likewise.
13111 (call_value_direct_split): Likewise.
13112 (call_value_multiple_internal): Likewise.
13113 (call_value_multiple_split): Likewise.
13114 (mips_get_fcsr_mips16_<mode>): Likewise.
13115 (mips_set_fcsr_mips16_<mode>): Likewise.
13116 (tls_get_tp_mips16_<mode>): Likewise.
13117 * config/mips/mips.opt: Add -mcompact-branches option.
13118 * config/mips/predicates.md (order_operator): Ensure the
13119 conditional compact branches are only used if the ISA them.
13120 * doc/invoke.texi: Document -mcompact-branches option.
13122 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
13125 * lra-lives.c (process_bb_lives): Process move pseudos with the
13126 same value for copies and preferences
13127 * lra-constraints.c (match_reload): Create match reload pseudo
13128 with the same value from single dying input pseudo.
13130 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
13133 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
13135 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
13137 * trans-mem.c: Add contributed-by.
13138 * trans-mem.h: Same.
13140 2015-09-01 Richard Biener <rguenther@suse.de>
13142 * expr.c (expand_expr_real_1): For expanding TERed defs
13143 set the current location to that of the def if not UNKNOWN.
13145 2015-09-01 David Sherwood <david.sherwood@arm.com>
13147 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
13149 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13151 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
13152 then_cost, else_cost fields. Change branch_cost field to unsigned int.
13153 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
13154 Include rtl-iter.h.
13155 (noce_simple_bbs): New function.
13156 (noce_try_move): Bail if basic blocks are not simple.
13157 (noce_try_store_flag): Likewise.
13158 (noce_try_store_flag_constants): Likewise.
13159 (noce_try_addcc): Likewise.
13160 (noce_try_store_flag_mask): Likewise.
13161 (noce_try_cmove): Likewise.
13162 (noce_try_minmax): Likewise.
13163 (noce_try_abs): Likewise.
13164 (noce_try_sign_mask): Likewise.
13165 (noce_try_bitop): Likewise.
13166 (bbs_ok_for_cmove_arith): New function.
13167 (noce_emit_all_but_last): Likewise.
13168 (noce_emit_insn): Likewise.
13169 (noce_emit_bb): Likewise.
13170 (noce_try_cmove_arith): Handle non-simple basic blocks.
13171 (insn_valid_noce_process_p): New function.
13172 (contains_mem_rtx_p): Likewise.
13173 (bb_valid_for_noce_process_p): Likewise.
13174 (noce_process_if_block): Allow non-simple basic blocks
13177 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
13179 * tree-ssa-dom.c (record_equivalences_from_phis,
13180 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
13181 (lookup_avail_expr): Likewise, and remove comment and unused temp.
13183 2015-09-01 Nick Clifton <nickc@redhat.com>
13185 * config/msp430/msp430.opt (mcpu): Fix typo.
13187 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13189 * config/aarch64/aarch64.c (aarch64_set_current_function):
13190 Re-layout any vector parameters have non-simd layout.
13191 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
13193 (aarch64_simd_expand_args): Delete call to the above.
13195 2015-08-31 Mike Frysinger <vapier@gentoo.org>
13197 * doc/invoke.texi (asan-stack): Add space before option.
13199 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
13201 * tree.h (zerop): New function.
13202 * tree.c (zerop): Likewise.
13203 (element_precision): Handle expressions.
13204 * match.pd (define_predicates): Add zerop.
13205 (x <= +Inf): Fix comment.
13206 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
13207 * fold-const.c (fold_binary_loc): ... here. Remove.
13209 2015-08-31 Richard Biener <rguenther@suse.de>
13211 PR middle-end/67381
13212 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
13214 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
13216 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
13217 (CEXPI): New operator list.
13218 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
13219 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
13221 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
13223 2015-08-31 Tom de Vries <tom@codesourcery.com>
13225 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
13226 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
13228 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
13229 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
13230 (rewrite_into_loop_closed_ssa): ... here.
13231 (replace_uses_in_dominated_bbs): Remove function.
13232 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
13233 rewrite_into_loop_closed_ssa_1.
13235 2015-08-31 Michael Matz <matz@suse.de>
13237 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
13238 enter entry and exit blocks for reverse post order.
13240 2015-08-31 Richard Biener <rguenther@suse.de>
13242 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
13243 (lto_location_cache::current_sysp): Likewise.
13244 (output_block::current_sysp): Likewise.
13245 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
13246 (lto_location_cache::apply_location_cache): Properly record
13247 system header locations.
13248 (lto_location_cache::input_location): Input whether a file
13249 is a system header.
13250 * lto-streamer-out.c (lto_output_location): Stream whether a file
13251 is a system header.
13253 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13256 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
13258 2015-08-31 Tom de Vries <tom@codesourcery.com>
13260 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
13261 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
13262 Improve function header comments.
13264 2015-08-30 Michael Collison <michael.collison@linaro.org>
13267 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
13270 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13272 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
13273 special_handling bitfield.
13274 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
13275 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
13276 that represents a general xxpermdi.
13277 (insn_is_swappable_p): Add handling for vec_concat of two
13278 doublewords, which maps to a specific xxpermdi.
13279 (adjust_xxpermdi): New function.
13280 (adjust_concat): Likewise.
13281 (handle_special_swappables): Call adjust_xxpermdi and
13283 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
13285 2015-08-30 Rich Felker <dalias@libc.org>
13287 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
13288 case instead of sh[123456ble]-*-*.
13290 2015-08-29 Anatoly Sokolov <aesok@post.ru>
13292 * ira.c (print_unform_and_important_classes,
13293 print_translated_classes): Remove reg_class_names static array.
13294 (print_unform_and_important_classes): Rename to ...
13295 (print_uniform_and_important_classes): ... this.
13296 (ira_debug_allocno_classes): Update accordingly.
13298 2015-08-29 Tom de Vries <tom@codesourcery.com>
13300 PR tree-optimization/46193
13301 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
13304 2015-08-28 Jeff Law <law@redhat.com>
13307 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13308 unable to find X NE 0 in the tables, return X as the simplified
13310 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13311 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
13313 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13314 after removing the control flow statement and unnecessary edges.
13316 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
13319 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
13321 PR tree-optimization/67283
13322 * tree-sra.c (type_consists_of_records_p): Rename to...
13323 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13325 (completely_scalarize_record): Rename to...
13326 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
13328 (scalarize_elem): New.
13330 2015-08-28 Jiong Wang <jiong.wang@arm.com>
13332 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
13333 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
13334 (aarch64_symbol_type): Likewise.
13335 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13337 (aarch64_expand_mov_immediate): Likewise.
13338 (aarch64_print_operand): Likewise.
13339 (aarch64_classify_tls_symbol): Likewise.
13341 2015-08-28 Richard Biener <rguenther@suse.de>
13343 * cgraphunit.c (symbol_table::compile): Move early debug generation
13345 (symbol_table::finalize_compilation_unit): ... back here and
13346 add a !seen_error () guard.
13348 2015-08-27 Sebastian Pop <s.pop@samsung.com>
13350 * toplev.c (process_options): Do not use flag_loop_block,
13351 flag_loop_interchange, and flag_loop_strip_mine. Add check for
13352 flag_loop_optimize_isl.
13354 2015-08-27 Sebastian Pop <s.pop@samsung.com>
13356 * Makefile.in (OBJS): Remove graphite-blocking.o and
13357 graphite-interchange.o.
13358 * common.opt (floop-strip-mine, floop-interchange, floop-block):
13359 Alias of floop-nest-optimize.
13360 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
13361 Document as alias of -floop-nest-optimize.
13362 * graphite-blocking.c: Remove.
13363 * graphite-interchange.c: Remove.
13364 * graphite-optimize-isl.c: Include dumpfile.h.
13365 (getScheduleForBand): Add dump for tiled loops. Use
13366 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
13367 * graphite-poly.c (scop_max_loop_depth): Remove.
13368 (print_scattering_function_1): Remove.
13369 (print_scattering_function): Remove.
13370 (print_scattering_functions): Remove.
13371 (debug_scattering_function): Remove.
13372 (debug_scattering_functions): Remove.
13373 (apply_poly_transforms): Remove use of flag_loop_block,
13374 flag_loop_strip_mine, and flag_loop_interchange.
13375 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
13377 (print_pdr_access_layout): Remove.
13378 (print_pdr): Print ISL representation.
13379 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
13380 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
13382 (openscop_print_pbb_domain): Remove.
13383 (print_pbb): Remove call to print_scattering_function.
13384 (openscop_print_scop_context): Remove.
13385 (print_scop_context): Do not print matrices anymore.
13386 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
13387 SCOP_TRANSFORMED_SCHEDULE.
13388 (print_isl_set): Add printing of a new line.
13389 (print_isl_map): Same.
13390 (print_isl_aff): Same.
13391 (print_isl_constraint): Same.
13392 (loop_to_lst): Remove.
13393 (scop_to_lst): Remove.
13394 (lst_indent_to): Remove.
13395 (print_lst): Remove.
13396 (debug_lst): Remove.
13397 (dot_lst_1): Remove.
13399 (reverse_loop_at_level): Remove.
13400 (reverse_loop_for_pbbs): Remove.
13401 * graphite-poly.h (pdr_dim_iter_domain): Remove.
13402 (pdr_nb_params): Remove.
13403 (pdr_alias_set_dim): Remove.
13404 (pdr_subscript_dim): Remove.
13405 (pdr_iterator_dim): Remove.
13406 (pdr_parameter_dim): Remove.
13407 (same_pdr_p): Remove.
13408 (struct poly_scattering): Remove.
13409 (struct poly_bb): Remove _original, _transformed, _saved.
13410 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
13411 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
13412 (PBB_NB_LOCAL_VARIABLES): Remove.
13413 (PBB_NB_SCATTERING_TRANSFORM): Remove.
13414 (schedule_to_scattering): Remove.
13415 (number_of_write_pdrs): Remove.
13416 (pbb_dim_iter_domain): Remove.
13417 (pbb_nb_params): Remove.
13418 (pbb_nb_scattering_orig): Remove.
13419 (pbb_nb_scattering_transform): Remove.
13420 (pbb_nb_dynamic_scattering_transform): Remove.
13421 (pbb_nb_local_vars): Remove.
13422 (pbb_iterator_dim): Remove.
13423 (pbb_parameter_dim): Remove.
13424 (psco_scattering_dim): Remove.
13425 (psct_scattering_dim): Remove.
13426 (psct_local_var_dim): Remove.
13427 (psco_iterator_dim): Remove.
13428 (psct_iterator_dim): Remove.
13429 (psco_parameter_dim): Remove.
13430 (psct_parameter_dim): Remove.
13431 (psct_dynamic_dim): Remove.
13432 (psct_static_dim): Remove.
13433 (psct_add_local_variable): Remove.
13434 (new_lst_loop): Remove.
13435 (new_lst_stmt): Remove.
13436 (free_lst): Remove.
13437 (copy_lst): Remove.
13438 (lst_add_loop_under_loop): Remove.
13439 (lst_depth): Remove.
13440 (lst_dewey_number): Remove.
13441 (lst_dewey_number_at_depth): Remove.
13442 (lst_pred): Remove.
13443 (lst_succ): Remove.
13444 (lst_find_pbb): Remove.
13445 (find_lst_loop): Remove.
13446 (lst_find_first_pbb): Remove.
13447 (lst_empty_p): Remove.
13448 (lst_find_last_pbb): Remove.
13449 (lst_contains_p): Remove.
13450 (lst_contains_pbb): Remove.
13451 (lst_create_nest): Remove.
13452 (lst_remove_from_sequence): Remove.
13453 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
13454 (lst_niter_for_loop): Remove.
13455 (pbb_update_scattering): Remove.
13456 (lst_update_scattering_under): Remove.
13457 (lst_update_scattering): Remove.
13458 (lst_insert_in_sequence): Remove.
13459 (lst_replace): Remove.
13460 (lst_substitute_3): Remove.
13461 (lst_distribute_lst): Remove.
13462 (lst_remove_all_before_including_pbb): Remove.
13463 (lst_remove_all_before_excluding_pbb): Remove.
13464 (struct scop): Remove original_schedule, transformed_schedule, and
13466 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
13467 (SCOP_SAVED_SCHEDULE): Remove.
13468 (poly_scattering_new): Remove.
13469 (poly_scattering_free): Remove.
13470 (poly_scattering_copy): Remove.
13471 (store_scattering_pbb): Remove.
13472 (store_lst_schedule): Remove.
13473 (restore_lst_schedule): Remove.
13474 (store_scattering): Remove.
13475 (restore_scattering_pbb): Remove.
13476 (restore_scattering): Remove.
13477 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
13478 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
13479 compute the scattering polyhedron dimension from the dimension of
13481 (build_scop_scattering): Update call to
13482 build_pbb_scattering_polyhedrons.
13483 (build_poly_scop): Remove call to scop_to_lst.
13484 * graphite.c (graphite_transform_loops): Add call to print_scop.
13485 (gate_graphite_transforms): Remove use of flag_loop_block,
13486 flag_loop_interchange, and flag_loop_strip_mine.
13488 2015-08-27 Sebastian Pop <s.pop@samsung.com>
13490 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
13491 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
13492 -floop-nest-optimize.
13493 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
13494 (generate_luj_sepclass): Remove.
13495 (generate_luj_options): Remove.
13496 (set_options): Remove opt_luj.
13497 (scop_to_isl_ast): Remove opt_luj.
13498 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
13499 flag_loop_unroll_jam.
13500 (getPrevectorMap_full): Remove.
13501 (getScheduleForBandList): Remove map_sepcl.
13502 (getScheduleMap): Same.
13503 (apply_schedule_map_to_scop): Remove sepcl.
13504 (optimize_isl): Same.
13505 * graphite-poly.c (apply_poly_transforms): Remove check for
13506 flag_loop_unroll_jam.
13507 (new_poly_bb): Remove map_sepclass.
13508 * graphite-poly.h (struct poly_bb): Same.
13509 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
13510 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
13511 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
13512 * toplev.c (process_options): Remove flag_loop_unroll_jam.
13514 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
13517 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
13518 (addqi3_cc): Ditto.
13519 (UNSPEC_ADD_CARRY): Remove.
13520 (addqi3_cconly_overflow): New expander.
13521 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
13522 Adjust for changed add<mode>3_carry.
13523 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
13524 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
13525 (<plusminus_insn><mode>3_carry): Remove expander.
13526 (*<plusminus_insn><mode>3_carry): Split insn pattern to
13527 add<mode>3_carry and sub<mode>3_carry.
13528 (plusminus_carry_mnemonic): Remove code attribute.
13529 (add<mode>3_carry): Canonicalize insn pattern.
13530 (*addsi3_carry_zext): Ditto.
13531 (sub<mode>3_carry): Ditto.
13532 (*subsi3_carry_zext): Ditto.
13533 (adcx<mode>3): Remove insn pattern.
13534 (addcarry<mode>): New insn pattern.
13535 (subborrow<mode>): Ditto.
13536 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
13537 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
13538 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
13539 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
13540 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
13541 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
13542 Rewrite expander to not clobber carry flag chains.
13544 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
13546 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
13547 instead of a rotate.
13549 2015-08-27 Marek Polacek <polacek@redhat.com>
13551 PR middle-end/67005
13552 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
13553 an entry into an irreducible region.
13555 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13557 * configure: Regenerate.
13559 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
13561 PR tree-optimization/67283
13562 * tree-sra.c (type_consists_of_records_p): Rename to...
13563 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13565 (completely_scalarize_record): Rename to...
13566 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
13567 (scalarize_elem): New.
13569 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
13571 * tree-sra.c (completely_scalarize_var): Rename to...
13572 (create_total_scalarization_access): ... Here. Drop call to
13573 completely_scalarize_record.
13575 (analyze_all_variable_accesses): Replace completely_scalarize_var
13576 with create_total_scalarization_access and completely_scalarize_record.
13578 2015-08-27 Alan Modra <amodra@gmail.com>
13581 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
13584 2015-08-27 Richard Biener <rguenther@suse.de>
13586 * passes.c (rest_of_decl_compilation): Guard early_global_decl
13587 call with !seen_error ().
13588 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
13589 early debug generation and finish...
13590 (symbol_table::compile): ... here to put it after a !seen_error ()
13593 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13595 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
13598 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13599 Andre Vieira <andre.simoesdiasvieira@arm.com>
13601 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
13602 (*cb<optab><mode>1): Likewise.
13603 (*tb<optab><mode>1): Likewise.
13604 (*cb<optab><mode>1): Likewise.
13605 * config/aarch64/iterators.md (inv_cb): New code attribute.
13606 (inv_tb): Likewise.
13607 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
13608 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
13610 2015-08-27 Richard Biener <rguenther@suse.de>
13612 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
13614 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
13616 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
13619 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
13621 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
13624 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
13626 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
13627 floating point in VSX registers.
13628 (rs6000_output_move_128bit): Always print out the set insn if we
13629 can't generate an appropriate 128-bit move.
13630 (rs6000_generate_compare): Add support for IEEE 128-bit floating
13631 point in VSX registers comparisons.
13632 (rs6000_expand_float128_convert): Likewise.
13634 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
13635 predicate for only GPR hard registers.
13637 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
13638 modes to iterators. Add new iterators for moving 128-bit values in
13639 scalar FPR registers and VSX registers.
13640 (FMOVE128): Likewise.
13641 (FMOVE128_FPR): Likewise.
13642 (FMOVE128_GPR): Likewise.
13643 (FMOVE128_VSX): Likewise.
13644 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
13647 (IBM128): Likewise.
13648 (TFIFKF): Likewise.
13649 (RELOAD): Add IEEE 128-bit floating point modes.
13650 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
13651 floating point in VSX registers modes.
13652 (signbit<mode>2, IBM128 iterator): Likewise.
13653 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
13654 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
13655 (negtf2): Likewise.
13656 (neg<mode>2, TFIFKF iterator): Likewise.
13657 (negtf2_internal): Likewise.
13658 (abstf2): Likewise.
13659 (abs<mode>2, TFIFKF iterator): Likewise.
13660 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
13661 VSX insn support for negate, absolute value, and negative absolute
13663 (ieee_128bit_vsx_neg<mode>2): Likewise.
13664 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
13665 (ieee_128bit_vsx_abs<mode>2): Likewise.
13666 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
13667 (ieee_128bit_vsx_nabs<mode>2): Likewise.
13668 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
13669 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
13670 floating point in VSX registers.
13671 (unpack<mode>_dm): Likewise.
13672 (unpack<mode>_nodm): Likewise.
13673 (pack<mode>): Likewise.
13674 (unpackv1ti): Likewise.
13675 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
13676 (packv1ti): Likewise.
13677 (pack<mode>, FMOVE128_VSX iterator): Likewise.
13678 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
13680 (extenddftf2_internal): Likewise.
13681 (trunctfdf2): Likewise.
13682 (trunctfdf2_internal2): Likewise.
13683 (fix_trunc_helper): Likewise.
13684 (fix_trunctfdi2"): Likewise.
13685 (floatditf2): Likewise.
13686 (floatuns<mode>tf2): Likewise.
13687 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
13688 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
13689 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
13690 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
13691 (float<SDI:mode><IFKF:mode>2): Likewise.
13692 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
13694 2015-08-26 Renlin Li <renlin.li@arm.com>
13696 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
13698 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
13699 Jiong Wang <jiong.wang@arm.com>
13701 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
13702 (tlsie_tiny_<mode>): New define_insn.
13703 (tlsie_tiny_sidi): Likewise.
13704 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
13706 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
13707 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
13709 (aarch64_expand_mov_immediate): Likewise.
13710 (aarch64_print_operand): Likewise.
13711 (arch64_classify_tls_symbol): Likewise.
13713 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13715 * config/arm/arm-arches.def: Replace single value flags with
13716 an initializer built from ARM_FSET_MAKE_CPU1.
13717 * config/arm/arm-cores.def: Likewise.
13718 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
13719 derivation from the ARM_CORE macro definition, use the given value
13721 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
13722 ARM_ARCH macro definition, use the given value instead.
13724 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13726 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
13728 (struct builtin_description): Replace field mask with field
13730 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
13731 (IWMMXT2_BUILTIN): Likewise.
13732 (IWMMXT2_BUILTIN2): Likewise.
13733 (FP_BUILTIN): Likewise.
13734 (CRC32_BUILTIN): Likewise.
13735 (CRYPTO_BUILTIN): Likewise.
13736 (iwmmx_mbuiltin): Likewise.
13737 (iwmmx2_mbuiltin): Likewise.
13738 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
13739 struct builtin_description.
13741 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13743 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
13744 (struct builtin_description): Change type of mask to unsigned
13746 * config/arm/arm-protos.h (insn_flags): Declare as type
13748 (tune_flags): Likewise.
13749 * config/arm/arm.c (feature_count): New.
13750 (insn_flags): Define as type arm_feature_set.
13751 (tune_flags): Likewise.
13752 (struct processors): Define field flags as type arm_feature_set.
13753 (all_cores): Update for change to struct processors.
13754 (all_architectures): Likewise.
13755 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
13757 (arm_option_override_internal): Likewise.
13758 (arm_option_override): Likewise.
13760 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
13761 Jiong Wang <jiong.wang@arm.com>
13763 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
13764 tls size for tiny, small, large memory model.
13765 (aarch64_load_symref_appropriately): Support new symbol types.
13766 (aarch64_expand_mov_immediate): Likewise.
13767 (aarch64_print_operand): Likewise.
13768 (aarch64_classify_tls_symbol): Likewise.
13769 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
13770 (aarch64_symbol_type): Likewise.
13771 * config/aarch64/aarch64.md (tlsle): Deleted.
13772 (tlsle12_<mode>): New define_insn.
13773 (tlsle24_<mode>): Likewise.
13774 (tlsle32_<mode>): Likewise.
13775 (tlsle48_<mode>): Likewise.
13776 * doc/sourcebuild.texi (AArch64-specific attributes): Document
13779 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13781 * config/arm/arm-protos.h (FL_NONE): New.
13783 (arm_feature_set): New.
13784 (ARM_FSET_MAKE): New.
13785 (ARM_FSET_MAKE_CPU1): New.
13786 (ARM_FSET_MAKE_CPU2): New.
13787 (ARM_FSET_CPU1): New.
13788 (ARM_FSET_CPU2): New.
13789 (ARM_FSET_EMPTY): New.
13790 (ARM_FSET_ANY): New.
13791 (ARM_FSET_HAS_CPU1): New.
13792 (ARM_FSET_HAS_CPU2): New.
13793 (ARM_FSET_HAS_CPU): New.
13794 (ARM_FSET_ADD_CPU1): New.
13795 (ARM_FSET_ADD_CPU2): New.
13796 (ARM_FSET_DEL_CPU1): New.
13797 (ARM_FSET_DEL_CPU2): New.
13798 (ARM_FSET_UNION): New.
13799 (ARM_FSET_INTER): New.
13800 (ARM_FSET_XOR): New.
13801 (ARM_FSET_EXCLUDE): New.
13802 (AFM_FSET_IS_EMPTY): New.
13803 (ARM_FSET_CPU_SUBSET): New.
13805 2015-08-26 Jiong Wang <jiong.wang@arm.com>
13807 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
13808 SYMBOL_TLSLE to SYMBOL_TLSLE24.
13809 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13811 (aarch64_expand_mov_immediate): Likewise.
13812 (aarch64_print_operand): Likewise.
13813 (aarch64_classify_symbol): Likewise.
13815 2015-08-26 Jiong Wang <jiong.wang@arm.com>
13817 * config/aarch64/aarch64.opt (mtls-size): New entry.
13818 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
13819 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
13820 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
13822 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13824 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
13825 ARM_CORE entry. Fix some white-space.
13826 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
13827 ARM_CORE definition.
13829 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13831 * fold-const.c (fold_binary_loc) : Move Optimize
13832 root(x)*root(y) as root(x*y) to match.pd.
13833 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
13834 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
13835 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
13836 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
13837 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
13838 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
13839 (mult (exps:s @0) (exps:s @1)) : New simplifier.
13840 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
13841 (rdiv @0 (exps:s @1)) : New simplifier.
13843 2015-08-25 Joseph Myers <joseph@codesourcery.com>
13845 * gcc.c (driver::finalize): Only assign to extra_specs if
13848 2015-08-25 Marek Polacek <polacek@redhat.com>
13850 PR middle-end/67330
13851 * varasm.c (declare_weak): Return after giving an error.
13853 2015-08-25 David Malcolm <dmalcolm@redhat.com>
13855 * gcc-main.c (main): Add params to driver ctor.
13856 * gcc.c (class env_manager): New.
13858 (env_manager::init): New.
13859 (env_manager::get): New.
13860 (env_manager::xput): New.
13861 (env_manager::restore): New.
13862 Poison getenv and putenv.
13863 (DEFAULT_TARGET_SYSTEM_ROOT): New.
13864 (target_system_root): Update initialization to use
13865 DEFAULT_TARGET_SYSTEM_ROOT.
13866 (struct spec_list): Add field "default_ptr".
13867 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
13868 (init_spec): Likewise.
13869 (set_spec): Clear field "default_ptr".
13870 (read_specs): Free "spec" and "buffer".
13871 (xputenv): Reimplement in terms of env_manager.
13872 (process_command): Replace ::getenv calls with calls to the
13873 env_manager singleton.
13874 (process_brace_body): Free string in three places.
13875 (driver::driver): New.
13876 (driver::~driver): New.
13877 (used_arg): Convert from a function to...
13878 (class used_arg_t): ...this class, and...
13879 (used_arg): ...this new global instance.
13880 (used_arg_t::finalize): New function.
13881 (getenv_spec_function): Add "const" to local "value". Replace
13882 ::getenv call with call to the env_manager singleton.
13883 (path_prefix_reset): New function.
13884 (driver::finalize): New function.
13885 * gcc.h (driver::driver): New.
13886 (driver::~driver): New.
13887 (driver::finalize): New.
13889 2015-08-25 Nathan Sidwell <nathan@acm.org>
13891 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
13892 target doesn't have one.
13894 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
13897 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
13899 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
13902 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
13903 a define_insn, remove second alternative.
13905 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
13906 Joseph Myers <joseph@codesourcery.com>
13908 * gcc.c (struct switchstr): Expand comment.
13910 2015-08-25 Nathan Sidwell <nathan@acm.org>
13912 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
13913 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
13915 2015-08-25 Richard Biener <rguenther@suse.de>
13917 PR middle-end/67306
13918 * genmatch.c (expr::gen_transform): Verify the result of
13919 builtin_decl_implicit.
13920 (dt_simplify::gen_1): Likewise.
13922 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
13924 * config/arm/constraints.md: Also list Cs and US ARM-specific
13925 constraints as used.
13927 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
13930 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
13932 (nonpic_symbol_mentioned_p): Likewise.
13933 (sh_delegitimize_address): Likewise.
13934 (sh_function_ok_for_sibcall): Take into account weak symbols.
13935 (sh_expand_sym_label2reg): New.
13936 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
13937 * config/sh/sh.md (UNSPEC_PCREL): New enum.
13938 (call_pcrel): Use sh_expand_sym_label2reg.
13939 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
13940 (symPCREL_label2reg) New expand.
13942 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
13944 * graphite-poly.c: Change type of region from void* to sese.
13945 * graphite-poly.h (struct scop): Changing the type of scop::region
13946 from void* to sese. Change accessor macro accordingly.
13947 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
13949 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
13951 * graphite-scop-detection.c (stmt_simple_for_scop_p):
13952 Constrain only on INTEGER_TYPE.
13954 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13957 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
13958 -mefficient-unaligned-vsx on ISA 2.7.
13960 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
13961 option to a masked option.
13963 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
13964 logic for -mefficient-unaligned-vsx so that it is set via an arch
13965 ISA option, instead of being set if -mtune=power8 is set. Move
13966 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
13967 near other default option handling.
13969 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
13971 * genflags.c (gen_macro): Delete.
13972 (gen_proto): Don't create GEN.*CALL.* macros.
13973 * gensupport.h (get_file_location): Declare.
13974 * gensupport.c (rtx_locs): New variable.
13975 (read_md_rtx): Record rtx locations.
13976 (get_file_location): New function.
13977 * target-insns.def (call, call_pop, call_value, call_value_pop)
13978 (sibcall, sibcall_value): New patterns.
13979 * gentarget-def.c (parse_argument): New function.
13980 (def_target_insn): Use it. Handle optional operands. Raise an
13981 error if an .md pattern has the wrong number of operands for the
13982 pattern name. Remove the names of unused operands from the prototype.
13983 * builtins.c (expand_builtin_apply): Use targetm functions
13984 instead of HAVE_call_value and GEN_CALL_VALUE.
13985 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
13986 and sibcall_value_pop.
13987 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
13989 * config/alpha/alpha.md (untyped_call): Likewise.
13990 * config/iq2000/iq2000.md (untyped_call): Likewise.
13991 * config/m68k/m68k.md (untyped_call): Likewise.
13992 * config/mips/mips.md (untyped_call): Likewise.
13993 * config/pa/pa.md (untyped_call): Likewise.
13994 * config/rs6000/rs6000.md (untyped_call): Likewise.
13995 * config/sparc/sparc.md (untyped_call): Likewise.
13996 * config/tilegx/tilegx.md (untyped_call): Likewise.
13997 * config/tilepro/tilepro.md (untyped_call): Likewise.
13998 * config/visium/visium.md (untyped_call): Likewise.
13999 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
14000 gen_call_value instead of GEN_CALL_VALUE.
14001 * config/arm/arm.md (untyped_call): Likewise.
14002 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
14005 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14007 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
14008 (have_cbranchcc4): New variable.
14009 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
14010 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
14011 (if_convert): Initialize have_cbranchcc4.
14013 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14015 * builtins.c (expand_cmpstrn): Rename to...
14016 (expand_cmpstrn_or_cmpmem): ...this.
14017 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
14018 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
14019 Remove mode argument.
14020 (expand_builtin): Update accordingly.
14022 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14024 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
14025 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
14026 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
14027 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
14028 Add predicates for operands 0 and 3.
14029 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
14031 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
14032 immediate_operand to nonmemory_operand.
14034 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14036 * df-scan.c (df_insn_info_init_fields): New function, split out
14038 (df_insn_create_insn_record): ...here.
14039 (df_insn_info_free_fields): New function, split out from...
14040 (df_insn_info_delete): ...here.
14041 (df_insn_rescan): Use the new functions instead of freeing and
14042 reallocating the df_insn_info.
14044 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14046 * doc/install.texi (Binaries): Remove links no longer valid.
14048 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
14050 * config/nvptx/mkoffload.c (process): Replace
14051 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
14053 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
14056 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
14058 2015-08-24 Renlin Li <renlin.li@arm.com>
14060 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
14061 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
14062 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
14063 * config/arm/constraints.md ("j"): Add check for high code.
14065 2015-08-24 Tom de Vries <tom@codesourcery.com>
14067 PR tree-optimization/65468
14068 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
14071 2015-08-24 Nathan Sidwell <nathan@acm.org>
14073 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
14074 change to nvptx_type_from_mode call. Use arg_promotion for both
14075 split and non-split args.
14077 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14079 * target-insns.def (movstr): New pattern.
14080 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
14081 (expand_movstr): Use targetm rather than HAVE_movstr/
14084 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14086 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
14089 2015-08-24 Andrew Pinski <apinski@cavium.com>
14091 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
14092 AARCH64_EXTRA_TUNING_OPTION.
14093 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
14095 (aarch64_extra_tuning_flags): Base the shifted value on the index
14096 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
14097 * config/aarch64/aarch64.c: Remove the last argument to
14098 AARCH64_EXTRA_TUNING_OPTION.
14100 2015-08-23 Nathan Sidwell <nathan@acm.org>
14102 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
14104 (nvptx_declare_function_name): Insert formatting tabs for
14107 2015-08-23 Tom de Vries <tom@codesourcery.com>
14109 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
14110 parm_decl, rather than generating a dummy default def in cfun.
14111 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
14112 ssa_name from cfun and child_fn do not share a stmt as def stmt.
14113 (move_stmt_op): Handle PARM_DECl.
14114 (gather_ssa_name_hash_map_from): New function.
14115 (move_sese_region_to_fn): Add default defs for function params, and add
14116 them to vars_map. Release copied ssa names.
14117 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
14119 2015-08-23 Tom de Vries <tom@codesourcery.com>
14121 * doc/sourcebuild.texi: Rename vect_no_int_max with
14122 vect_no_int_min_max. Update description.
14124 2015-08-22 Andrew Pinski <apinski@cavium.com>
14126 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
14127 * config/aarch64/aarch64-protos.h
14128 (aarch64_fusion_pairs_index): New enum.
14129 (aarch64_fusion_pairs): Base the shifted value on the index instead
14130 Rewrite AARCH64_FUSE_ALL to be based on the end index.
14131 of the argument to AARCH64_FUSION_PAIR.
14132 * config/aarch64/aarch64.c: Remove the last argument to
14133 AARCH64_FUSION_PAIR.
14135 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
14137 * dominance.c (new_zero_array): Define.
14138 (dom_info): Redefine as class with proper encapsulation.
14139 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
14141 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
14142 allocations/deallocations. Pass function as parameter (instead of
14144 (dom_info::get_idom): Define accessor method.
14145 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
14146 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
14147 (calculate_dominance_info): Adjust to use dom_info class.
14148 (verify_dominators): Likewise.
14150 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
14152 * print-rtl.c (print_rtx): Check the correct range for
14153 flag_dump_unnumbered_links to behave as documented.
14155 PR rtl-optimization/67227
14156 PR rtl-optimization/64164
14157 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
14158 (nonoverlapping_memrefs_p): Test offsets and sizes when given
14159 identical gimple_reg exprs.
14161 2015-08-21 Nathan Sidwell <nathan@acm.org>
14163 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
14165 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
14166 crtl->stack_alignment_needed to determine alignment.
14167 (nvptx_get_drap_rtx): New.
14168 (TARGET_GET_DRAP_RTX): Override.
14169 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
14171 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14173 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
14175 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14177 * configure.ac: Remove uwin* cases.
14178 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
14179 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
14180 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
14181 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
14182 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
14183 i[34567]86-*-uwin*, powerpc-*-beos*.
14185 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
14187 * gencodes.c (gencodes): Print the comma for the preceding
14188 enum value rather than the current one. Use aliased enum values
14189 rather than #defines for compiled-out patterns.
14190 (main): Update accordingly. Replace LAST_INSN_CODE with
14192 * lra.c (insn_code_data): Update accordingly.
14193 (finish_insn_code_data_once, get_static_insn_data): Likewise.
14194 * recog.h (target_recog): Likewise.
14195 (preprocess_insn_constraints): Change parameter to unsigned int.
14196 * recog.c (preprocess_insn_constraints): Likewise.
14197 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
14198 * tree-vect-stmts.c (vectorizable_operation): Simplify.
14200 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
14202 PR rtl-optimization/61657
14203 * loop-iv.c (iv_number_of_iterations): Declare up and down as
14204 unsigned. Remove superflous uint64_t cast.
14206 2014-08-21 Felix Yang <felix.yang@huawei.com>
14207 Jiji Jiang <jiangjiji@huawei.com>
14209 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
14210 argument and get builtin function code directly from CALL.
14211 (gimple_stringop_fixed_value): Modified accordingly.
14212 (gimple_stringops_transform, gimple_stringops_values_to_profile):
14213 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
14215 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
14217 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
14219 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14221 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
14223 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
14224 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
14225 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
14226 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
14227 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
14228 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
14229 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
14230 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
14231 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
14232 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
14234 * match.pd (SIN ) : New Operator.
14235 (TAN) : New Operator.
14236 (mult (SQRT@1 @0) @1) : New simplifier.
14237 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
14238 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
14239 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
14240 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
14241 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
14242 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
14243 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
14244 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
14245 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
14246 (rdiv @0 (POW:s @1 @2)) : New simplifier.
14248 2015-08-21 Bin Cheng <bin.cheng@arm.com>
14250 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
14251 loop if EXPR is simplified to const value.
14253 2015-08-21 Yury Gribov <y.gribov@samsung.com>
14255 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
14256 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
14258 2015-08-21 Richard Biener <rguenther@suse.de>
14260 PR middle-end/67285
14261 * gimple-fold.c (replace_stmt_with_simplification): Assert
14262 seq is empty when replacing a call with itself but different
14264 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
14265 a call require that it is const.
14267 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14269 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
14270 * builtins.c (get_object_alignment_2): Adjust.
14271 * varasm.c (align_variable): Likewise.
14272 (get_variable_align): Likewise.
14273 (build_constant_desc): Likewise.
14274 (force_const_mem): Likewise.
14275 * doc/tm.texi.in: Likewise.
14276 * doc/tm.texi: Regenerate.
14278 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14280 * genconfig.c (main): Always define HAVE_cc0.
14281 * recog.c (rest_of_handle_peephole2): Adjust.
14283 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14285 * reorg.c (relax_delay_slots): Don't use #if to check value of
14288 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14290 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
14291 * targhooks.c (default_have_conditional_execution): Adjust.
14293 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
14295 * rtl.h (rtvec_all_equal_p): Declare.
14296 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
14297 * rtl.c (rtvec_all_equal_p): New function.
14298 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
14299 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
14300 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
14301 * config/arm/arm.c (neon_vdup_constant): Likewise.
14302 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
14303 * config/tilegx/constraints.md (W, Y): Likewise.
14304 * config/tilepro/constraints.md (W, Y): Likewise.
14305 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
14306 (classify_immediate): Use unwrap_const_vec_duplicate.
14307 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
14308 (reg_or_v2s8bit_operand): Likewise.
14309 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
14310 (reg_or_v4s8bit_operand): Likewise.
14312 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14314 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
14315 (vec_shasigma_be): New #define.
14316 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
14317 (VPMSUMH): Likewise.
14318 (VPMSUMW): Likewise.
14319 (VPMSUMD): Likewise.
14320 (VPMSUM): New BU_P8V_OVERLOAD_2.
14321 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
14322 entries for VEC_MADD and VEC_VPMSUM.
14324 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
14326 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
14327 Multiply argument avr_n_flash by 64 to match unit of "KiB".
14328 (avr_pgm_check_var_decl): Same.
14330 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
14332 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
14333 initialization of HFmode scalar type (float16_t) to...
14334 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
14337 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
14339 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
14340 having an -mfp16-format.
14342 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
14344 * config/i386/predicates.md (vector_all_ones_operand): Use
14345 CONSTM1_RTX to simplify definition.
14347 2015-08-20 Richard Biener <rguenther@suse.de>
14349 * toplev.c (compile_file): Remove loop calling late_global_decl
14351 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
14352 on decls we assembled.
14354 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
14356 * common/config/aarch64/aarch64-common.c
14357 (AARCH64_CPU_NAME_LENGTH): Delete.
14358 (aarch64_option_extension): New.
14359 (all_extensions): Likewise.
14360 (processor_name_to_arch): Likewise.
14361 (arch_to_arch_name): Likewise.
14363 (all_architectures): Likewise.
14364 (aarch64_get_extension_string_for_isa_flags): Likewise.
14365 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
14366 architecture names.
14367 * config/aarch64/aarch64-protos.h
14368 (aarch64_get_extension_string_for_isa_flags): New.
14369 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
14370 (aarch64_option_print): Get the string to print from
14371 aarch64_get_extension_string_for_isa_flags.
14372 (aarch64_declare_function_name): Likewise.
14373 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
14374 (MCPU_TO_MARCH_SPEC): This.
14375 (ASM_CPU_SPEC): Use it.
14376 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
14377 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
14378 (EXTRA_SPEC_FUNCTIONS): Use it.
14380 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
14382 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
14383 expansion when !ISA_HAS_LWL_LWR.
14384 (mips_block_move_straight): Update the size of elements copied to
14385 account for alignment when !ISA_HAS_LWL_LWR.
14386 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
14388 2015-08-19 Jiong Wang <jiong.wang@arm.com>
14390 * expr.c (expand_expr_real_2): Check gimple statement during
14391 LSHIFT_EXPR expand.
14393 2015-08-19 Magnus Granberg <zorry@gentoo.org>
14395 * common.opt (fstack-protector): Initialize to -1.
14396 (fstack-protector-all): Likewise.
14397 (fstack-protector-strong): Likewise.
14398 (fstack-protector-explicit): Likewise.
14399 * configure.ac: Add --enable-default-ssp.
14400 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
14401 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
14403 * doc/install.texi: Document --enable-default-ssp.
14404 * config.in: Regenerated.
14405 * configure: Likewise.
14407 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
14409 PR rtl-optimization/64164
14410 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
14411 (parm_in_stack_slot_p): ... this. Disregard mode, what
14412 matters is whether the parm will live in a pseudo or a stack
14414 (expand_one_ssa_partition): Deal with params without a default
14415 def. Disregard mode.
14416 * cfgexpand.h: Renamed function declaration.
14417 * tree-ssa-coalesce.c: Adjust.
14418 * function.c (split_complex_args): Allocate stack slot for
14419 unassigned parms before splitting.
14420 (parm_in_unassigned_mem_p): New. Use it instead of
14421 parm_maybe_byref_p throughout this file.
14422 (assign_parm_setup_block): Use it. Accept pseudos in the
14423 expand-assigned rtl.
14424 (assign_parm_setup_reg): Drop BLKmode requirement.
14425 (assign_parm_setup_stack): Allocate and fill in the address of
14426 unassigned MEM parms.
14428 2015-08-19 David Sherwood <david.sherwood@arm.com>
14430 * genmodes.c (emit_mode_unit_size_inline): New function.
14431 (emit_mode_unit_precision_inline): New function.
14432 (emit_insn_modes_h): Emit new #define. Emit new functions.
14433 (emit_mode_unit_size): New function.
14434 (emit_mode_unit_precision): New function.
14435 (emit_mode_adjustments): Add mode_unit_size adjustments.
14436 (emit_insn_modes_c): Emit new arrays.
14437 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
14438 use new inline methods.
14440 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14442 * config/aarch64/aarch64.c (bit_count): Delete prototype
14444 (aarch64_print_operand): Use popcount_hwi instead of the above.
14446 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14448 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
14451 2015-08-19 Marek Polacek <polacek@redhat.com>
14453 PR middle-end/67133
14454 * gimple-ssa-isolate-paths.c
14455 (insert_trap_and_remove_trailing_statements): Rename to ...
14456 (insert_trap): ... this. Don't remove trailing statements; split
14458 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
14460 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
14463 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
14464 conditionalize the whole on __GNUC__. Add fallback code
14465 depending neither on undefined nor implementation-defined behaviour.
14467 2015-08-19 Jiong Wang <jiong.wang@arm.com>
14469 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
14470 whitespaces with tab.
14472 2015-08-19 Florian Weimer <fweimer@redhat.com>
14474 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
14475 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
14476 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
14477 Move Name_Ids instantiation to the Prj.Proc package, to avoid
14480 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14482 * config/arm/arm.c (bounds_check): Use %wd print format
14483 for HOST_WIDE_INT arguments.
14485 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
14487 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
14488 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
14489 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
14490 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
14491 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
14492 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
14493 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
14494 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
14495 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
14498 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
14500 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
14501 function.c, graphite-scop-detection.c, haifa-sched.c,
14502 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
14503 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
14504 varasm.c: Remove typedefs of structs.
14506 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
14508 * config/rs6000/altivec.h (vec_adde): New define.
14509 (vec_addec): Likewise.
14510 (vec_double): Likewise.
14511 (vec_bperm): Likewise.
14512 (vec_gb): Likewise.
14513 * config/rs6000/rs6000-builtin.def (ADDE): New
14514 BU_ALTIVEC_OVERLOAD_3.
14516 (DOUBLE): New BU_VSX_OVERLOAD_1.
14517 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
14518 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
14519 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
14520 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
14521 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
14522 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
14523 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
14524 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
14525 and P8V_BUILTIN_VEC_VBPERMQ.
14527 2015-08-18 Jason Merrill <jason@redhat.com>
14529 * print-tree.c (print_node): Handle TREE_BINFO.
14531 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14533 PR middle-end/36757
14534 * builtins.c (expand_builtin_signbit): Add asserts to make sure
14535 we can expand BUILT_IN_SIGNBIT inline.
14536 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
14537 * doc/extend.texi: Document the type-generic __builtin_signbit.
14539 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
14541 PR rtl-optimization/67218
14542 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
14543 (simplify_unary_operation_1): Use it.
14545 2015-08-18 Marek Polacek <polacek@redhat.com>
14547 PR middle-end/67222
14548 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
14549 if the call isn't valid.
14550 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
14551 gimple_call_builtin_p.
14552 (call_may_clobber_ref_p_1): Likewise.
14553 (stmt_kills_ref_p): Likewise.
14555 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
14557 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
14558 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
14559 (mips_hard_regno_scratch_ok): Likewise.
14560 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
14561 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
14563 2015-08-18 Bin Cheng <bin.cheng@arm.com>
14565 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
14566 (determine_value_range): Call refine_value_range_using_guard for
14567 each loop initial condition to improve value range.
14569 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
14571 * config/i386/i386.c: Remove include of fibheap.h.
14573 2015-08-17 Richard Biener <rguenther@suse.de>
14575 PR tree-optimization/67221
14576 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
14577 (sccvn_dom_walker::before_dom_children): Mark backedges of
14578 non-executable blocks as not executable.
14580 2015-08-17 David Sherwood <david.sherwood@arm.com>
14582 * config/arm/arm.c (neon_element_bits): Replace call to
14583 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
14584 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
14585 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
14586 (neon_vdup_lane<mode>): Likewise.
14587 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
14588 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
14589 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
14590 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
14591 * config/spu/spu.c (arith_immediate_p): Likewise.
14592 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
14593 * expr.c (expand_expr_real_2): Likewise.
14594 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
14595 * simplify-rtx.c (simplify_immed_subreg): Likewise.
14596 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
14597 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
14599 * fold-const.c (fold_binary_loc): Replace call to
14600 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
14601 GET_MODE_UNIT_PRECISION (m).
14603 2015-08-17 Mike Stump <mikestump@comcast.net>
14605 * config/arm/arm.c (arm_block_move_unaligned_straight):
14606 Emit normal move instead of unaligned load when source or destination
14607 are appropriately aligned.
14609 2015-08-17 Richard Biener <rguenther@suse.de>
14610 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14612 PR middle-end/16107
14613 * match.pd (div (coss (op @0) : New simplifier.
14615 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
14617 PR rtl-optimization/64164
14619 PR middle-end/66983
14620 PR rtl-optimization/67000
14621 PR middle-end/67034
14622 PR middle-end/67035
14623 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14624 * tree-ssa-copyrename.c: Removed.
14625 * opts.c (default_options_table): Drop -ftree-copyrename. Add
14626 -ftree-coalesce-vars.
14627 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14628 * common.opt (ftree-copyrename): Ignore.
14629 (ftree-coalesce-inlined-vars): Likewise.
14630 * doc/invoke.texi: Remove the ignored options above.
14631 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14632 * tree-ssa-coalesce.h: ... here.
14633 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14634 headers required by it.
14635 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14636 across variables when flag_tree_coalesce_vars. Check register
14637 use and promoted modes to allow coalescing. Do not coalesce
14638 maybe-byref parms with SSA_NAMEs of other variables, or
14639 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
14640 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14641 with its member functions to tree-ssa-coalesce.c.
14642 (var_map_base_init): Likewise. Renamed to
14643 compute_samebase_partition_bases.
14644 (partition_view_normal): Drop want_bases parameter.
14645 (partition_view_bitmap): Likewise.
14646 * tree-ssa-live.h: Adjust declarations.
14647 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
14648 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14649 default defs at the entry point.
14650 (dump_part_var_map): New.
14651 (compute_optimized_partition_bases): New, called by...
14652 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14653 of compute_samebase_partition_bases. Adjust.
14654 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14655 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
14656 (ssa_default_def_partition): New.
14657 (get_rtl_for_parm_ssa_default_def): New.
14658 (align_local_variable, add_stack_var): Support anonymous SSA
14660 (defer_stack_allocation): Likewise. Declare earlier.
14661 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14662 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14663 Do no record deferred-allocation marker in
14664 SA.partition_to_pseudo.
14665 (expand_stack_vars): Adjust check for the marker in it.
14666 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
14667 redundant MEM attr setting.
14668 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
14670 (expand_one_stack_var): ... this. New wrapper to check and
14671 skip already expanded SSA partitions.
14672 (record_alignment_for_reg_var): New, factored out of...
14673 (expand_one_var): ... this.
14674 (expand_one_ssa_partition): New.
14675 (adjust_one_expanded_partition_var): New.
14676 (expand_one_register_var): Check and skip already expanded SSA
14678 (expand_used_vars): Don't create DECLs for anonymous SSA
14679 names. Expand all SSA partitions, then adjust all SSA names.
14680 (pass::execute): Replace the loops that set
14681 SA.partition_to_pseudo from partition leaders and cleared
14682 DECL_RTL for multi-location variables, and that which used to
14683 rename vars and set attrs, with one that clears DECL_RTL and
14684 checks that PARMs and RESULTs default_defs match DECL_RTL.
14685 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14686 * emit-rtl.c: Include stor-layout.h.
14687 (set_reg_attrs_for_parm): Handle NULL decl.
14688 (set_reg_attrs_for_decl_rtl): Take mode from expression if
14690 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
14691 rather than its possibly-NULL DECL.
14692 * explow.c (promote_ssa_mode): New.
14693 * explow.h (promote_ssa_mode): Declare.
14694 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14695 (read_complex_part): Export.
14696 * expr.h (read_complex_part): Declare.
14697 * cfgexpand.h (parm_maybe_byref_p): Declare.
14698 * function.c: Include cfgexpand.h.
14699 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14700 (use_register_for_parm_decl): Wrapper for the above to
14701 special-case the result_ptr.
14702 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14703 (split_complex_args): Take assign_parm_data_all argument.
14704 Pass it to rtl_for_parm. Set up rtl and context for split
14705 args. Reset complex parm before fetching its default decl
14707 (assign_parms_unsplit_complex): Use the default-def complex
14708 parm rtl if it matches the components.
14709 (assign_parms_augmented_arg_list): Adjust.
14710 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14711 multiple locations. Recognize split complex args.
14712 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14713 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
14714 (assign_parm_setup_block): Prefer SSA-assigned location, and
14715 fill in its address if the memory location of a maybe-byref
14716 parm was not assigned by cfgexpand.
14717 (assign_parm_setup_reg): Likewise. Adjust its mode as
14718 needed. Use entry_parm for equiv if stack_parm is NULL. Make
14719 sure passed_pointer parms don't need conversion. Copy address
14720 or value as needed.
14721 (assign_parm_setup_stack): Prefer SSA-assigned location.
14722 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
14723 rtl before testing for pointer bounds. Special-case result_ptr.
14724 (expand_function_start): Maybe reset DECL_RTL of result.
14725 Prefer SSA-assigned location for result and static chain.
14726 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
14727 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
14728 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14729 anonymous SSA names. Use promote_ssa_mode.
14730 (get_temp_reg): Likewise.
14731 (remove_ssa_form): Adjust.
14732 * stor-layout.c (layout_decl): Don't set mem attributes of
14734 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14735 and get its reg_usage for reg invalidation.
14736 (compute_bb_dataflow): Pass it insn.
14737 (emit_notes_in_bb): Likewise.
14739 2015-08-14 Marek Polacek <polacek@redhat.com>
14741 * tree-core.h (tree_base): Fix typo.
14743 2015-08-14 Marek Polacek <polacek@redhat.com>
14745 PR middle-end/67133
14746 * gimple.c (infer_nonnull_range_by_attribute): Check that the
14747 nonnull argument position is not outside function arguments.
14749 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
14752 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
14753 'lconst_atomic' with 'const_atomic'.
14754 (atomic_fetch_<optab><mode>): Likewise.
14755 (atomic_<optab>_fetch<mode>): Likewise.
14756 * config/aarch64/iterators.md (lconst-atomic): Move below
14758 (const_atomic): New.
14760 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
14761 Bernd Schmidt <bernds@codesourcery.com>
14763 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
14765 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
14766 (DWARF2_DEBUGGING_INFO): Don't define.
14767 * debug.h (dwarf2_lineno_debug_hooks): Declare.
14768 * toplev.c (process_options): Add a case for it.
14769 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
14770 (dwarf2out_init): Skip most initializations if
14771 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
14773 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
14774 DWARF2_LINENO_DEBUGGING_INFO.
14775 * opts.c (set_debug_level): Likewise.
14777 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
14779 * config/arm/types.md (is_neon_type): Add missing types.
14781 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
14783 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
14785 * config/i386/i386.c (PTA_SKYLAKE): New macros.
14786 (processor_alias_table): Add skylake description.
14787 (enum processor_model): Add skylake processor.
14788 (arch_names_table): Add skylake record.
14789 * doc/invoke.texi: Add skylake item.
14791 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
14793 * ira-int.h: Include recog.h.
14794 * ira-build.c: Don't include recog.h.
14795 * ira-color.c: Likewise.
14796 * ira-conflicts.c: Likewise.
14797 * ira-costs.c: Likewise.
14798 * ira-emit.c: Likewise.
14799 * ira-lives.c: Likewise.
14801 * sched-deps.c: Likewise.
14802 * sel-sched.c: Likewise.
14803 * target-globals.c: Likewise.
14805 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
14808 * reload1.c (elimination_costs_in_insn): Make it obvious to the
14809 compiler that the n_dups and n_operands loop bounds are invariant.
14811 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14813 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
14814 expressions in A and B.
14816 2015-08-13 Richard Biener <rguenther@suse.de>
14818 * tree.c (nonnull_arg_p): Move from ...
14819 * tree-vrp.c (nonnull_arg_p): ... here.
14820 * tree.h (nonnull_arg_p): Declare.
14821 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
14822 here, register ptr != 0 for nonnull_arg_p pointer arguments.
14823 Properly initialize static chain and by-reference result pointer.
14824 (run_scc_vn): Adjust.
14826 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
14828 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
14831 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
14833 * config/aarch64/aarch64-protos.h
14834 (aarch64_gen_atomic_cas): Declare.
14835 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
14836 Choose appropriate instruction pattern for the target.
14837 (aarch64_gen_atomic_cas): New.
14838 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
14839 (atomic_compare_and_swap<mode>_1): Rename to
14840 aarch64_compare_and_swap<mode>. Fix some indentation.
14841 (aarch64_compare_and_swap<mode>_lse): New.
14842 (aarch64_atomic_cas<mode>): New.
14844 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
14846 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
14849 2015-08-13 Richard Biener <rguenther@suse.de>
14851 PR tree-optimization/67191
14852 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
14853 assert we value-numbered last stmts operand because it can validly
14854 trigger for unreachable code.
14856 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14858 PR rtl-optimization/67103
14859 * ifcvt.c (noce_try_store_flag_constants): Move
14860 x = (-(test != 0) & (b - a)) + a transformation to...
14861 (noce_try_cmove): ... Here. Try it if normal conditional
14864 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
14866 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
14868 * config/mips/mips.md (processor): Remove w32 and w64.
14870 2015-08-13 Richard Biener <rguenther@suse.de>
14872 PR tree-optimization/66502
14873 PR tree-optimization/67167
14874 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
14875 backedge arguments.
14876 (vn_phi_lookup): Adjust.
14877 (vn_phi_insert): Likewise.
14878 (visit_phi): Prefer to value-number to another PHI node
14879 over value-numbering to a PHI argument.
14880 (init_scc_vn): Mark DFS back edges.
14882 2015-08-13 Richard Biener <rguenther@suse.de>
14884 * gimple.h (gcall::code_): New constant static member.
14885 (gcond::code_): Likewise.
14886 * gimple.c (gcall::code_): Define.
14887 (gcond::code_): Likewise.
14888 (is_a_helper <const gcond *>): Add.
14889 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
14890 and forward to a new gcall overload with less checking and a
14891 cheaper way to access the operand.
14892 (gimple_call_lhs_ptr): Likewise.
14893 (gimple_call_set_lhs): Likewise.
14894 (gimple_call_internal_p): Likewise.
14895 (gimple_call_with_bounds_p): Likewise.
14896 (gimple_call_set_with_bounds): Likewise.
14897 (gimple_call_internal_fn): Likewise.
14898 (gimple_call_set_ctrl_altering): Likewise.
14899 (gimple_call_ctrl_altering_p): Likewise.
14900 (gimple_call_fntype): Likewise.
14901 (gimple_call_fn): Likewise.
14902 (gimple_call_fn_ptr): Likewise.
14903 (gimple_call_set_fndecl): Likewise.
14904 (gimple_call_fndecl): Likewise.
14905 (gimple_call_chain): Likewise.
14906 (gimple_call_num_args): Likewise.
14907 (gimple_call_arg): Likewise.
14908 (gimple_call_arg_ptr): Likewise.
14909 (gimple_call_set_arg): Likewise.
14910 (gimple_call_noreturn_p): Likewise.
14911 (gimple_cond_code): Likewise.
14912 (gimple_cond_lhs): Likewise.
14913 (gimple_cond_rhs): Likewise.
14914 (gimple_has_lhs): Reduce checking.
14916 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14918 PR middle-end/25529
14919 * match.pd (div (mult @0 @1) @1) : New simplifier.
14921 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14924 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
14925 predicate to allow construction of vector constants using the
14926 VSLDOI vector shift instruction.
14928 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
14931 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
14932 the number of bytes to be shifted left and filled in with either
14933 all zero or all one bits.
14934 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
14936 (output_vec_const_move): On power8, generate XXLORC to generate
14937 a vector constant with all 1's. Do a split if we need to use a
14938 VSLDOI instruction.
14940 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
14941 properly test for the MSB.
14943 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
14944 vector constants that can be created with VSLDOI.
14946 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
14949 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
14950 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
14951 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
14952 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
14953 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
14954 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14955 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
14956 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
14957 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
14959 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
14961 * config/xtensa/constraints.md (define_constraint "Y"): New
14963 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
14964 * config/xtensa/linux.h (ASM_SPEC): Likewise.
14965 * config/xtensa/predicates.md (move_operand): Match constants
14966 and symbols in the presence of TARGET_AUTO_LITPOOLS.
14967 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
14968 immediate references to TLS data.
14969 (xtensa_emit_move_sequence): Don't force constants to memory in
14970 the presence of TARGET_AUTO_LITPOOLS.
14971 (print_operand): Add 'y' format, same as default, but capable of
14972 printing SF mode constants as well.
14973 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
14974 (movsf_internal): Add movi pattern that loads literal.
14975 (movsf, movdf): Don't force constants to memory in the presence
14976 of TARGET_AUTO_LITPOOLS.
14977 (movdf_internal): Add 'Y' constraint.
14978 * config/xtensa/xtensa.opt (mauto-litpools): New option.
14979 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
14981 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
14983 * config/arm/arm-fpus.def: Replace booleans with feature flags.
14985 * config/arm/arm.c (ARM_FPU): Update macro.
14986 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
14987 (TARGET_FP16): Likewise.
14988 (TARGET_CRYPTO): Likewise.
14989 (TARGET_NEON): Likewise.
14990 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
14993 2015-08-12 Tom de Vries <tom@codesourcery.com>
14997 * doc/install.texi: Remove --with_host_libstdcxx item. Update
14998 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
14999 accordingly. Mention default for --with-stage1-ldflags.
15001 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
15003 * config/arm/arm.h (arm_fpu_feature_set): New.
15004 (ARM_FPU_FSET_HAS): New.
15005 (FPU_FL_NONE): New.
15006 (FPU_FL_NEON): New.
15007 (FPU_FL_FP16): New.
15008 (FPU_FL_CRYPTO): New.
15010 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15012 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
15013 after -mcmodel=large -fPIC sorry.
15015 2015-08-12 Richard Biener <rguenther@suse.de>
15017 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
15018 comparison operand order and commutative ternary op operand order.
15019 (sccvn_dom_walker::cond_stack): New state to track temporary
15021 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
15023 (sccvn_dom_walker::record_cond): Add a single temporary conditional
15025 (sccvn_dom_walker::record_conds): Add a temporary conditional
15026 expressions and all related expressions also true/false.
15027 (sccvn_dom_walker::before_dom_children): Record temporary
15028 expressions based on the controlling condition of a single
15029 predecessor. When trying to simplify a conditional statement
15030 lookup expressions we might have inserted earlier.
15032 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
15035 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
15036 to ARM core registers.
15038 2015-08-12 Nathan Sidwell <nathan@acm.org>
15040 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
15041 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
15043 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
15045 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
15046 line with comments.
15047 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
15049 2015-08-12 Richard Biener <rguenther@suse.de>
15051 * gimple.h (remove_pointer): New trait.
15052 (GIMPLE_CHECK2): New inline template function.
15053 (gassign::code_): New constant static member.
15054 (is_a_helper<const gassign *>): Add.
15055 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
15056 and forward to a new gassign overload with less checking and a
15057 cheaper way to access the operand.
15058 (gimple_assign_lhs_ptr): Likewise.
15059 (gimple_assign_set_lhs): Likewise.
15060 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
15062 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
15064 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
15066 (gimple_assign_rhs_code): Likewise.
15067 * gimple.c (gassign::code_): Define.
15069 2015-08-12 Richard Biener <rguenther@suse.de>
15071 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15072 Eliminate edges marked as not executable by SCCVN.
15073 * tree-ssa-sccvn.c: Include gimple-iterator.h.
15074 (cond_dom_walker): Rename to sccvn_dom_walker.
15075 (sccvn_dom_walker::before_dom_children): Value-number defs
15077 (run_scc_vn): Remove loop value-numbering all SSA names.
15078 Drop not visited SSA names to varying.
15080 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
15082 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
15083 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
15084 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
15085 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
15086 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15087 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15088 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
15089 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
15090 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
15092 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
15095 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
15096 to enum feature_priority and feature_list.
15097 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
15098 and isa_names_table.
15100 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
15102 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
15103 vect_induction_def.
15105 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
15109 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
15110 account when deciding what was the command-line status.
15112 2015-08-11 Nathan Sidwell <nathan@acm.org>
15114 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
15116 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
15117 we're not the only contributor to target phi.
15119 2015-08-11 Jiong Wang <jiong.wang@arm.com>
15121 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
15124 2015-08-11 Tom de Vries <tom@codesourcery.com>
15126 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
15128 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
15130 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
15132 * config/i386/i386.md (cpu): Remove knl.
15134 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15137 PR middle-end/66332
15138 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
15139 open-coded sequence.
15140 * omp-low.c (oacc_process_reduction_data): Remove handline of
15141 GOMP_DEVICE_HOST_NONSHM.
15143 * lto-streamer-in.c (lto_input_mode_table): Adjust to
15144 GET_MODE_INNER changes.
15146 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15147 Ilya Verbin <ilya.verbin@intel.com>
15149 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
15151 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
15153 * doc/options.texi (EnabledBy): Document that the argument must be
15155 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
15156 Not enabled by -Wall.
15157 * optc-gen.awk: Give nicer error messages. Detect if the argument
15158 of EnabledBy is not a Common option.
15159 * common.opt (Wnull-dereference): Not enabled by -Wall.
15160 * opt-functions.awk (lang_enabled_by): Nicer error messages.
15162 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
15164 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
15165 model == 0x4f as Broadwell.
15167 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
15169 PR rtl-optimization/67028
15170 * combine.c (simplify_comparison): Fix comment. Rearrange code.
15171 Add test to see if a const_int fits in the new mode.
15173 2015-08-07 DJ Delorie <dj@redhat.com>
15175 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
15177 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
15179 PR rtl-optimization/67029
15180 * ira-color.c: Include "recog.h" before including "ira-int.h".
15181 * target-globals.c: Likewise.
15182 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
15183 adds an alternative_mask argument and use it instead of
15184 preferred_alternatives.
15185 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
15186 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
15187 * sched-deps.c: Include "ira-int.h" after including "ira.h".
15188 (sched_analyze_insn): Update call to
15189 ira_implicitly_set_insn_hard_regs.
15190 * sel-sched.c: Include "ira-int.h" after including "ira.h".
15191 (implicit_clobber_conflict_p): Update call to
15192 ira_implicitly_set_insn_hard_regs.
15194 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
15196 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
15198 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
15201 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
15202 currently_expanding_to_rtl is set.
15204 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
15206 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
15207 * configure: Regenerate.
15209 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15210 Jiong Wang <jiong.wang@arm.com>
15212 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
15213 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
15214 (REG_CLASS_NAMES): Likewise.
15215 (REG_CLASS_CONTENTS): Likewise.
15216 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
15217 (aarch64_register_move_cost): Likewise.
15218 (aarch64_load_symref_appropriately): Invoke the new added pattern if
15220 * config/aarch64/constraints.md (Uc0): New constraint.
15222 2015-08-06 Jiong Wang <jiong.wang@arm.com>
15224 * config/aarch64/constraints.md (Usf): Add the test of
15225 aarch64_is_noplt_call_p.
15227 2015-08-06 Jiong Wang <jiong.wang@arm.com>
15229 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
15231 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
15232 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
15233 (call_symbol): Likewise.
15235 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
15237 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
15238 for vectorizing multiplication patterns.
15239 * tree-vectorizer.h: Adjust the number of patterns.
15241 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
15243 * config/i386/sse.md (*vec_concatv2df): Declare added
15244 alternatives as sselog type.
15246 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15248 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
15251 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15253 * config/s390/s390.c (s390_expand_tbegin): Expand either
15254 tbegin_1_z13 or tbegin_1 depending on VX flag.
15255 * config/s390/s390.md ("tbegin_1_z13"): New expander.
15257 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15259 * config/s390/s390.opt: Clarify description for -mzvector
15260 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
15263 2015-08-06 Richard Biener <rguenther@suse.de>
15265 * gimple.h (gimple_call_set_fn): Access op member directly.
15266 (gimple_call_chain_ptr): Likewise.
15267 (gimple_call_set_chain): Likewise.
15268 (gimple_cond_lhs_ptr): Likewise.
15269 (gimple_cond_set_lhs): Likewise.
15270 (gimple_cond_rhs_ptr): Likewise.
15271 (gimple_cond_set_rhs): Likewise.
15272 (gimple_cond_true_label): Likewise.
15273 (gimple_cond_set_true_label): Likewise.
15274 (gimple_cond_set_false_label): Likewise.
15275 (gimple_cond_false_label): Likewise.
15276 (gimple_label_label): Likewise.
15277 (gimple_label_set_label): Likewise.
15278 (gimple_goto_set_dest): Likewise.
15279 (gimple_asm_input_op): Likewise.
15280 (gimple_asm_input_op_ptr): Likewise.
15281 (gimple_asm_set_input_op): Likewise.
15282 (gimple_asm_output_op): Likewise.
15283 (gimple_asm_output_op_ptr): Likewise.
15284 (gimple_asm_set_output_op): Likewise.
15285 (gimple_asm_clobber_op): Likewise.
15286 (gimple_asm_set_clobber_op): Likewise.
15287 (gimple_asm_label_op): Likewise.
15288 (gimple_asm_set_label_op): Likewise.
15289 (gimple_switch_index): Likewise.
15290 (gimple_switch_index_ptr): Likewise.
15291 (gimple_return_retval_ptr): Likewise.
15292 (gimple_return_retval): Likewise.
15293 (gimple_return_set_retval): Likewise.
15294 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
15295 (gimple_switch_label): Likewise.
15296 (gimple_switch_set_label): Likewise.
15298 2015-08-06 Richard Biener <rguenther@suse.de>
15300 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
15301 bool comparison canonicalization and restrict to integers.
15303 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
15305 * coretypes.h (enum symbol_visibility): Relocate here.
15306 * flag-types.h (enum symbol_visibility): Remove.
15307 * tree-core.h (enum symbol_visibility): Remove.
15309 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
15312 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
15313 for no_split_stack function attribute along with
15315 (rs6000_expand_split_stack_prologue): Likewise.
15317 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
15318 Jeff Law <law@redhat.com>
15321 * doc/invoke.texi (Wnull-dereference): New.
15322 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
15323 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
15324 Warn for potential NULL dereferences.
15325 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
15326 * ubsan.c (instrument_nonnull_arg): Call
15327 infer_nonnull_range_by_attribute.
15328 (instrument_nonnull_return): Likewise.
15329 * common.opt (Wnull-dereference); New.
15330 * gimple.c (infer_nonnull_range): Remove bool arguments.
15331 (infer_nonnull_range_by_dereference): New.
15332 (infer_nonnull_range_by_attribute): New.
15333 * gimple.h: Update declarations.
15335 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15337 * gensupport.c (sequence_num): Replace with...
15338 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
15339 ...these new variables.
15340 (init_rtx_reader_args_cb): Update accordingly.
15341 (get_num_code_insns): Likewise.
15342 (read_md_rtx): Rework to use a while loop and get_c_test.
15343 Use the new counters. Remove redundant DEFINE_SUBST case.
15344 * genoutput.c (gen_split): Delete.
15345 (main): Don't call it.
15347 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15349 * gensupport.h (get_c_test): Declare.
15350 * gensupport.c (get_c_test): New function.
15351 * genconditions.c (main): Use it.
15352 * genrecog.c (validate_pattern): Likewise.
15353 (match_pattern_1): Likewise. Remove c_test argument.
15354 (match_pattern): Update accordingly and remove c_test argument.
15355 (main): Update accordingly.
15357 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15359 * gensupport.h (get_num_insn_codes): Declare.
15360 * gensupport.c (get_num_insn_codes): New function.
15361 * genattrtab.c (optimize_attrs): Rename max_insn_code to
15363 (main): Likewise. Use get_num_insn_codes.
15364 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
15366 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15368 PR middle-end/66311
15369 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
15370 is zero- rather than sign-extended.
15372 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15374 * target-insns.def (can_extend): Delete.
15376 2015-08-05 Richard Biener <rguenther@suse.de>
15378 PR tree-optimization/67121
15379 * tree-if-conv.c (combine_blocks): Clear range-info produced
15380 by stmts no longer executed conditionally.
15382 2015-08-05 Nick Clifton <nickc@redhat.com>
15384 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
15385 to allow identical far pointers to remain.
15387 2015-08-05 Richard Biener <rguenther@suse.de>
15389 PR middle-end/67120
15390 * match.pd: Compare address bases with == if they are decls
15391 or SSA names, not operand_equal_p. Otherwise fail.
15393 2015-08-05 Richard Biener <rguenther@suse.de>
15395 PR tree-optimization/67055
15396 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
15399 * g++.dg/torture/pr67055.C: New testcase.
15401 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
15403 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
15405 (define_attr "enabled"): Handle avx521vl and noavx512vl.
15406 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
15407 AVX-512 alternative out of SSE.
15408 (define_insn "*vec_concatv2df"): Ditto.
15410 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
15412 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
15413 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
15414 CODE_FOR_avx_ptestv4di.
15415 * config/i386/sse.md (define_mode_iterator V_AVX): New.
15416 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
15417 (define_insn "avx_ptest256"): Merge this ...
15418 (define_insn "sse4_1_ptest"): And this ...
15419 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
15421 2015-08-05 Richard Biener <rguenther@suse.de>
15423 PR tree-optimization/67109
15424 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
15425 against too big groups. Print whether this is a load or store
15426 group. Rename from ...
15427 (vect_analyze_group_access): ... this which is now a wrapper
15428 dissolving an invalid group.
15429 (vect_analyze_data_ref_accesses): Print whether this is a load
15432 2015-08-05 Richard Biener <rguenther@suse.de>
15434 PR middle-end/67107
15435 * match.pd: Guard const_binop result checking against NULL_TREE
15438 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
15440 * cse.c (cse_insn): Restoring old behaviour for src_eqv
15441 when dest and value in the REG_EQUAL are same and dest
15442 is STRICT_LOW_PART.
15444 2015-08-04 Anatoly Sokolov <aesok@post.ru>
15446 * config/moxie/moxie.h (PRINT_OPERAND,
15447 PRINT_OPERAND_ADDRESS): Remove macros.
15448 * config/moxie/moxie-protos.h (moxie_print_operand,
15449 moxie_print_operand_address): Remove declaration.
15450 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
15451 TARGET_PRINT_OPERAND_ADDRESS): Define.
15452 (moxie_print_operand, moxie_print_operand_address): Make static.
15454 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
15457 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
15458 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
15460 2015-08-04 Richard Biener <rguenther@suse.de>
15462 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
15464 (dt_operand::gen_gimple_expr): Adjust.
15466 2015-08-04 Richard Biener <rguenther@suse.de>
15468 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
15469 bool compares on RHS.
15470 * match.pd: Add X ==/!= !X is false/true pattern.
15472 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
15474 * config/aarch64/aarch64.c: Change inner loop statement cost
15475 to be consistent with other targets.
15477 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
15479 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
15482 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
15484 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
15485 (machine_function): Remove pseudos field.
15487 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15489 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
15490 Exit early and use target_option_current_node if processing current
15493 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15495 * doc/extend.texi (AArch64 Function Attributes): New node.
15496 (AArch64 Pragmas): Likewise.
15498 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15500 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
15501 Initialize simd builtins if TARGET_SIMD.
15502 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
15503 Make sure that the builtins are initialized only once no matter how
15504 many times the function is called.
15505 (aarch64_init_builtins): Unconditionally initialize crc builtins.
15506 (aarch64_relayout_simd_param): New function.
15507 (aarch64_simd_expand_args): Use above during argument expansion.
15508 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
15509 simd builtins if TARGET_SIMD.
15510 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
15512 (aarch64_relayout_simd_types): Likewise.
15514 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15516 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
15517 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
15518 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
15519 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
15521 (aarch64_reset_previous_fndecl): New function.
15522 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
15524 * config/aarch64/aarch64-c.c: New file.
15525 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
15526 Push and pop options at beginning and end. Remove ifdef
15527 __ARM_FEATURE_CRC32.
15528 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
15529 Add pragma +nothing+simd and +nothing+crypto where appropriate.
15530 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
15531 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
15533 (aarch64_register_pragmas): Likewise.
15534 (aarch64_reset_previous_fndecl): Likewise.
15535 (aarch64_process_target_attr): Likewise.
15536 (aarch64_override_options_internal): Likewise.
15538 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15540 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
15542 (aarch64_can_inline_p): Likewise.
15543 (TARGET_CAN_INLINE_P): Define.
15545 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15547 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
15548 Remove static. Handle OPT_mgeneral_regs_only,
15549 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
15550 OPT_momit_leaf_frame_pointer.
15551 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
15552 (aarch64_attr_opt_type): New enum.
15553 (aarch64_attribute_info): New struct.
15554 (aarch64_handle_attr_arch): New function.
15555 (aarch64_handle_attr_cpu): Likewise.
15556 (aarch64_handle_attr_tune): Likewise.
15557 (aarch64_handle_attr_isa_flags): Likewise.
15558 (aarch64_attributes): New table.
15559 (aarch64_process_one_target_attr): New function.
15560 (num_occurences_in_str): Likewise.
15561 (aarch64_process_target_attr): Likewise.
15562 (aarch64_option_valid_attribute_p): Likewise.
15563 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
15564 * config/aarch64/aarch64-protos.h: Include input.h
15565 (aarch64_handle_option): Declare prototype.
15567 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15569 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
15570 * config/aarch64/aarch64.c: Include target-globals.h
15571 (aarch64_previous_fndecl): New variable.
15572 (aarch64_set_current_function): New function.
15573 (TARGET_SET_CURRENT_FUNCTION): Define.
15575 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15577 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
15578 (explicit_arch): Likewise.
15579 (x_aarch64_isa_flags): Likewise.
15580 (mgeneral-regs-only): Mark as Save.
15581 (mfix-cortex-a53-835769): Likewise.
15582 (mcmodel=): Likewise.
15583 (mstrict-align): Likewise.
15584 (momit-leaf-frame-pointer): Likewise.
15585 (mtls-dialect): Likewise.
15586 (master=): Likewise.
15587 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
15588 (aarch64_isa_flags): Remove extern declaration.
15589 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
15590 to indicate success or failure.
15591 (aarch64_validate_march): Likewise.
15592 (aarch64_validate_mtune): Likewise.
15593 (aarch64_isa_flags): Delete.
15594 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
15595 instead of aarch64_isa_flags.
15596 (aarch64_get_tune_cpu): New function.
15597 (aarch64_get_arch): Likewise.
15598 (aarch64_override_options): Use above and set up explicit_tune_core
15600 (aarch64_print_extension): Move earlier in file. Add isa_flags
15601 argument and use that instead of the global aarch64_isa_flags.
15602 (aarch64_option_save): New function.
15603 (aarch64_option_restore): Likewise.
15604 (aarch64_option_print): Likewise.
15605 (aarch64_declare_function_name): Likewise.
15606 (aarch64_start_file): Delete.
15607 (TARGET_ASM_FILE_START): Do not define.
15608 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
15609 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
15612 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15614 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
15615 flag_omit_leaf_frame_pointer to 2.
15617 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15619 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
15621 (TARGET_FIX_ERR_A53_835769): New macro.
15622 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
15623 handling of opts->x_aarch64_fix_a53_err835769.
15624 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
15625 than aarch64_fix_a53_err835769.
15626 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
15627 * config/aarch64/aarch64-linux.h: Likewise.
15629 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
15631 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
15632 ix86_expand_int_movcc as boolean.
15634 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15636 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
15637 (aarch64_cpu_string): Likewise.
15638 (aarch64_tune_string): Likewise.
15639 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
15640 (aarch64_parse_extension): Return aarch64_parse_opt_result.
15641 Add extra argument to put result into.
15642 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
15643 (aarch64_parse_cpu): Add arguments to put results into. Return
15644 aarch64_parse_opt_result.
15645 (aarch64_parse_tune): Likewise.
15646 (aarch64_override_options_after_change_1): New function.
15647 (aarch64_override_options_internal): New function.
15648 (aarch64_validate_mcpu): Likewise.
15649 (aarch64_validate_march): Likewise.
15650 (aarch64_validate_mtune): Likewise.
15651 (aarch64_override_options): Update to reflect above changes.
15652 Move some logic into aarch64_override_options_internal.
15653 Initialize target_option_default_node and target_option_current_node.
15654 (aarch64_override_options_after_change): Move logic into
15655 aarch64_override_options_after_change_1 and call it with global_options.
15656 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
15657 flag values from that.
15659 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15661 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15662 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
15663 * config/aarch64/aarch64.c (struct processor): Add arch field.
15664 (all_architectures): Handle above, move above all_cores.
15665 (all_cores): Handle above.
15666 (aarch64_parse_arch): Handle above changes.
15667 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
15668 above. Update comments.
15669 (armv8.1-a): Likewise.
15670 * config/aarch64/aarch64-cores.def: Update according to above.
15671 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
15672 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
15673 aarch64_arch_driver_info.
15675 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15677 * config/aarch64/aarch64.c (struct processor): Add ident field.
15678 Rename core sched_core.
15679 (all_cores): Handle above changes.
15680 (all_architectures): Likewise.
15681 (aarch64_parse_arch): Likewise.
15682 (aarch64_override_options): Likewise.
15684 2015-08-04 Richard Biener <rguenther@suse.de>
15686 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
15687 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
15688 comparisons embedded in [VEC_]COND_EXPRs.
15690 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
15692 * tree-if-conv.c: Fix various typos in comments.
15693 * tree-vect-stmts.c: Likewise.
15695 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
15697 PR tree-optimization/67043
15698 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
15699 preheader after hoisting invariant in it.
15700 (find_defs): Force recomputation of all luids.
15702 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
15704 * config/rs6000/htm.md (tabort.): Restrict the source operand to
15705 using a base register.
15707 2015-08-03 David Malcolm <dmalcolm@redhat.com>
15709 * main.c (main): Pass in NULL for toplev's external_timer.
15710 * timevar.c: Include coretypes.h.
15711 (class timer::named_items): New.
15712 (timer::named_items::named_items): New.
15713 (timer::named_items::~named_items): New.
15714 (timer::named_items::push): New.
15715 (timer::named_items::pop): New.
15716 (timer::named_items::print): New.
15717 (timer::timer): Initialize field "m_jit_client_items".
15718 (timer::~timer): New.
15719 (timer::push): Move bulk of implementation to...
15720 (timer::push_internal): ...here. New function.
15721 (timer::pop): Move bulk of implementation to...
15722 (timer::pop_internal): ...here. New function.
15723 (timer::push_client_item): New.
15724 (timer::pop_client_item): New.
15725 (timer::print_row): New function, taken from timer::print.
15726 (timer::print): Print "GCC items" header if we also have client
15727 items. Move row-printing to timer::print_row. Print any client
15729 (timer::get_topmost_item_name): New method.
15730 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
15731 (TV_JIT_CLIENT_CODE): New.
15732 * timevar.h (timer::push_client_item): New declaration.
15733 (timer::pop_client_item): New declaration.
15734 (timer::get_topmost_item_name): New method.
15735 (timer::push_internal): New declaration.
15736 (timer::pop_internal): New declaration.
15737 (timer::print_row): New declaration.
15738 (timer::named_items): New declaration.
15739 (timer::m_jit_client_items): New field.
15740 (timer): Add friend class named_items.
15741 (auto_timevar::auto_timevar): Add timer param.
15742 (auto_timevar::~auto_timevar): Use field "m_timer".
15743 (auto_timevar::m_timer): New field.
15744 * toplev.c (initialize_rtl): Add g_timer as param when
15745 constructing auto_timevar instance.
15746 (toplev::toplev): Add "external_timer" param, and use it to
15747 initialize the "g_timer" global if non-NULL.
15748 (toplev::~toplev): If this created "g_timer", delete it.
15749 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
15750 with "external_timer" timer *.
15752 2015-08-03 Alexander Basov <coohpt@gmail.com>
15754 PR middle-end/64744
15755 PR middle-end/48470
15756 PR middle-end/43404
15757 * cfgexpand.c (expand_one_var): Add check if stack is going to
15758 be used in naked function.
15759 * expr.c (expand_expr_addr_expr_1): Remove excess checking
15760 whether expression should not reside in MEM.
15761 * function.c (use_register_for_decl): Do not use registers for
15762 non-register things (volatile, float, BLKMode) in naked functions.
15764 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
15767 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
15768 Adjust splits to match new pattern.
15770 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15772 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
15775 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
15776 point in VSX registers.
15778 * config/rs6000/constraints.md (wb constraint): Document unused
15780 (we constraint): Likewise.
15781 (wo constraint): Likewise.
15782 (wp constraint): New constraint for IEEE 128-bit floating point in
15784 (wq constraint): Likewise.
15786 * config/rs6000/predicates.md (easy_fp_constant): Add support for
15787 IEEE 128-bit floating point in VSX registers.
15788 (easy_scalar_constant): Likewise.
15790 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
15791 constraints (wp, wq) for IEEE 128-bit floating point in VSX
15793 (rs6000_init_hard_regno_mode_ok): Likewise.
15795 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
15796 floating point in VSX registers.
15799 (VSX_M2): Likewise.
15805 (vsx_le_permute_<mode>): Add support to properly swap bytes for
15806 IEEE 128-bit floating point in VSX registers on little endian.
15807 (vsx_le_undo_permute_<mode>): Likewise.
15808 (vsx_le_perm_load_<mode>): Likewise.
15809 (vsx_le_perm_store_<mode>): Likewise.
15810 (splitters for IEEE 128-bit fp moves): Likewise.
15812 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
15815 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
15816 floating point in VSX registers.
15819 * doc/md.text (Machine Constraints): Document wp and wq
15820 constraints on PowerPC.
15822 2015-08-03 Jeff Law <law@redhat.com>
15824 PR middle-end/66314
15825 PR gcov-profile/66899
15826 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
15827 iterate over the jump threading paths when an element in the
15828 jump threading paths array is eliminated.
15830 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
15832 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
15834 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
15836 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
15837 is_use_properly_guarded the variable def_preds. Free its
15838 contents before returning.
15839 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
15840 (is_use_properly_guarded): Replace local variable def_preds with
15841 a parameter. Adjust accordingly. Only update *def_preds if it's
15844 2015-08-03 Richard Biener <rguenther@suse.de>
15846 * genmatch.c (simplify::for_subst_vec): New member.
15847 (binary_ok): New helper for for lowering.
15848 (lower_for): Delay substituting operators into result expressions
15849 if we can merge the results eventually again.
15850 (capture_info::walk_result): Adjust for user_id appearing as
15851 result expression operator.
15852 (expr::gen_transform): Likewise.
15853 (dt_simplify::gen_1): Likewise.
15854 (dt_simplify::gen): Pass not substituted operators to tail
15855 functions or initialize local variable with it.
15856 (decision_tree::gen): Adjust function signature.
15857 * match.pd: Fix tests against global code and add default
15858 cases to switch stmts.
15860 2015-08-03 Richard Biener <rguenther@suse.de>
15862 * genmatch.c (dt_simplify::gen): Create captures array
15863 with an initializer.
15865 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15867 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
15868 the host compiler is affected by placement new aliasing bug.
15869 * configure: Regenerate.
15870 * Makefile.in (ALIASING_FLAGS): New variable.
15871 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
15873 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
15876 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
15877 (negmulsf3_vfp): Likewise.
15878 (muldf3negdf_vfp): Disable for -frounding-math.
15879 (mulsf3negsf_vfp): Likewise.
15880 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
15881 fix MULT cost with -frounding-math.
15883 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15885 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
15886 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
15887 explicit. Prefer to add the flag whenever possible.
15888 (noce_process_if_block): Try noce_try_store_flag_constants before
15891 2015-08-03 Richard Biener <rguenther@suse.de>
15893 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
15894 New hash-map to record equivalent transforms.
15895 (dt_node::analyze): Populate the equivalent transforms hash-map.
15896 (dt_simplify::info): Add reference to hash-map entry.
15897 (dt_simplify::gen): If we have split out a function for the
15898 transform, generate a call to it.
15899 (sinfo_hashmap_traits::hash): New function.
15900 (compare_op): New helper function for ...
15901 (sinfo_hashmap_traits::equal_keys): ... this new function.
15902 (decision_tree::gen): Split out common equivalent transforms
15905 2015-08-03 Richard Biener <rguenther@suse.de>
15907 * gimple-fold.c (fold_gimple_assign): Remove folding of
15908 the comparison in COND_EXPRs.
15910 2015-08-03 Richard Biener <rguenther@suse.de>
15912 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
15913 on the rhs of assignments first simplify the embedded
15916 2015-08-03 Richard Biener <rguenther@suse.de>
15918 PR tree-optimization/66917
15919 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
15921 (DR_VECT_AUX): New macro.
15922 (set_dr_misalignment): Adjust.
15923 (dr_misalignment): Likewise.
15924 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15925 Compute whether the base is at least element aligned.
15926 * tree-vect-stmts.c (ensure_base_align): Adjust.
15927 (vectorizable_store): If the base is not element aligned
15928 preserve alignment of the original access if misalignment is unknown.
15929 (vectorizable_load): Likewise.
15931 2015-08-02 Martin Sebor <msebor@redhat.com>
15933 * c-family/c.opt (-Wframe-address): New warning option.
15934 * doc/invoke.texi (Wframe-address): Document it.
15935 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
15936 Clarify possible effects of calling the functions with non-zero
15937 arguments and mention -Wframe-address.
15938 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
15940 2015-08-01 Michael Collison <michael.collison@linaro.org
15941 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15943 * config/arm/arm.md (*arm_smin_cmp): New pattern.
15944 (*arm_umin_cmp): Likewise.
15946 2015-08-01 Caroline Tice <cmtice@google.com>
15949 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
15951 (vtbl_find_mangled_name): New function.
15952 (vtbl_register_mangled_name): New function.
15953 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
15954 mangled name in mangled name vectors.
15955 (find_or_create_vtbl_map_node): Ditto.
15956 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
15957 update recursion_depth on function entry; pass it to every recursive
15958 call; automatically exit if depth > 25 (give up looking at that point).
15959 (verify_bb_vtables): Initialize recursion_depth and pass it to
15960 var_is_used_for_virtual_call_p.
15961 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
15962 global variable decls.
15963 (vtbl_register_mangled_name): New extern function decl.
15965 2015-08-01 Tom de Vries <tom@codesourcery.com>
15967 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
15969 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
15971 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
15972 operation_no_trapping_overflow. Allow non-overflow operations.
15973 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
15976 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
15979 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
15981 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15983 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
15984 Enable for TARGET_32BIT.
15985 (*if_move_neg): Likewise.
15987 2015-07-31 Nick Clifton <nickc@redhat.com>
15989 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
15990 Returns true for __model__.
15991 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15993 2015-07-31 Alan Modra <amodra@gmail.com>
15996 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
15997 (rs6000_emit_prologue): Set it.
15998 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
16000 2015-07-31 Richard Biener <rguenther@suse.de>
16002 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
16003 -> X == (C1 ^ C2) which is already implemented in match.pd.
16004 Remove redundant dispatching to fold_relational_const.
16005 Move unordered self and NaN compares ...
16006 * match.pd: ... as patterns here. Remove some stray captures
16009 2015-07-31 Petr Murzin <petr.murzin@intel.com>
16011 * config/i386/i386.c
16012 (bdesc_special_args): Convert mask type from signed to unsigned for
16014 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
16015 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
16016 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
16017 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
16018 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
16019 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
16020 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
16021 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
16022 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
16023 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
16024 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
16025 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
16026 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
16027 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
16028 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
16029 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
16030 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
16031 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
16032 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
16033 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
16034 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
16035 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
16036 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
16037 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
16038 * config/i386/i386-builtin-types.def
16039 (V16QI_FTYPE_V16SI): Remove.
16040 (V8DF_FTYPE_V8SI): Ditto.
16041 (V8HI_FTYPE_V8DI): Ditto.
16042 (V8SI_FTYPE_V8DI): Ditto.
16043 (V8SF_FTYPE_V8DF): Ditto.
16044 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
16045 (V16HI_FTYPE_V16SI): Ditto.
16046 (V16SF_FTYPE_V16HI): Ditto.
16047 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
16048 (V16SF_FTYPE_V16SI): Ditto.
16049 (V4DI_FTYPE_V4DI): Ditto.
16050 (V16SI_FTYPE_V16SF): Ditto.
16051 (V16SF_FTYPE_FLOAT): Ditto.
16052 (V8DF_FTYPE_DOUBLE): Ditto.
16053 (V8DI_FTYPE_INT64): Ditto.
16054 (V8DI_FTYPE_V4DI): Ditto.
16055 (V16QI_FTYPE_V8DI): Ditto.
16056 (UINT_FTYPE_V4SF): Ditto.
16057 (UINT64_FTYPE_V4SF): Ditto.
16058 (UINT_FTYPE_V2DF): Ditto.
16059 (UINT64_FTYPE_V2DF): Ditto.
16060 (V16SI_FTYPE_V16SI): Ditto.
16061 (V8DI_FTYPE_V8DI): Ditto.
16062 (V16SI_FTYPE_PV4SI): Ditto.
16063 (V16SF_FTYPE_PV4SF): Ditto.
16064 (V8DI_FTYPE_PV2DI): Ditto.
16065 (V8DF_FTYPE_PV2DF): Ditto.
16066 (V4DI_FTYPE_PV2DI): Ditto.
16067 (V4DF_FTYPE_PV2DF): Ditto.
16068 (V16SI_FTYPE_PV2SI): Ditto.
16069 (V16SF_FTYPE_PV2SF): Ditto.
16070 (V8DI_FTYPE_PV4DI): Ditto.
16071 (V8DF_FTYPE_PV4DF): Ditto.
16072 (V8SF_FTYPE_FLOAT): Ditto.
16073 (V4SF_FTYPE_FLOAT): Ditto.
16074 (V4DF_FTYPE_DOUBLE): Ditto.
16075 (V8SF_FTYPE_PV4SF): Ditto.
16076 (V8SI_FTYPE_PV4SI): Ditto.
16077 (V4SI_FTYPE_PV2SI): Ditto.
16078 (V8SF_FTYPE_PV2SF): Ditto.
16079 (V8SI_FTYPE_PV2SI): Ditto.
16080 (V16SF_FTYPE_PV8SF): Ditto.
16081 (V16SI_FTYPE_PV8SI): Ditto.
16082 (V8DI_FTYPE_V8SF): Ditto.
16083 (V4DI_FTYPE_V4SF): Ditto.
16084 (V2DI_FTYPE_V4SF): Ditto.
16085 (V64QI_FTYPE_QI): Ditto.
16086 (V32HI_FTYPE_HI): Ditto.
16087 (V8UHI_FTYPE_V8UHI): Ditto.
16088 (V16UHI_FTYPE_V16UHI): Ditto.
16089 (V32UHI_FTYPE_V32UHI): Ditto.
16090 (V2UDI_FTYPE_V2UDI): Ditto.
16091 (V4UDI_FTYPE_V4UDI): Ditto.
16092 (V8UDI_FTYPE_V8UDI): Ditto.
16093 (V4USI_FTYPE_V4USI): Ditto.
16094 (V8USI_FTYPE_V8USI): Ditto.
16095 (V16USI_FTYPE_V16USI): Ditto.
16096 (V2DF_FTYPE_V2DF_UINT64): Ditto.
16097 (V2DI_FTYPE_V2DF_V2DF): Ditto.
16098 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
16099 (V8DF_FTYPE_V8DF_V8DI): Ditto.
16100 (V4SF_FTYPE_V4SF_UINT64): Ditto.
16101 (V4SI_FTYPE_V4SF_V4SF): Ditto.
16102 (V16SF_FTYPE_V16SF_V16SI): Ditto.
16103 (V64QI_FTYPE_V32HI_V32HI): Ditto.
16104 (V32HI_FTYPE_V16SI_V16SI): Ditto.
16105 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
16106 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
16107 (V32HI_FTYPE_V64QI_V64QI): Ditto.
16108 (V32HI_FTYPE_V32HI_V32HI): Ditto.
16109 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
16110 (V16SI_FTYPE_V16SI_V4SI): Ditto.
16111 (V16SI_FTYPE_V16SI_V16SI): Ditto.
16112 (V16SI_FTYPE_V32HI_V32HI): Ditto.
16113 (V16SI_FTYPE_V16SI_SI): Ditto.
16114 (V8DI_FTYPE_V8DI_V8DI): Ditto.
16115 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
16116 (V8DI_FTYPE_V16SI_V16SI): Ditto.
16117 (V8DI_FTYPE_V8DI_V2DI): Ditto.
16118 (QI_FTYPE_QI): Ditto.
16119 (SI_FTYPE_SI): Ditto.
16120 (DI_FTYPE_DI): Ditto.
16121 (QI_FTYPE_QI_QI): Ditto.
16122 (QI_FTYPE_QI_INT): Ditto.
16123 (HI_FTYPE_HI_INT): Ditto.
16124 (SI_FTYPE_SI_INT): Ditto.
16125 (DI_FTYPE_DI_INT): Ditto.
16126 (HI_FTYPE_V16QI_V16QI): Ditto.
16127 (SI_FTYPE_V32QI_V32QI): Ditto.
16128 (DI_FTYPE_V64QI_V64QI): Ditto.
16129 (QI_FTYPE_V8HI_V8HI): Ditto.
16130 (HI_FTYPE_V16HI_V16HI): Ditto.
16131 (SI_FTYPE_V32HI_V32HI): Ditto.
16132 (QI_FTYPE_V4SI_V4SI): Ditto.
16133 (QI_FTYPE_V8SI_V8SI): Ditto.
16134 (QI_FTYPE_V2DI_V2DI): Ditto.
16135 (QI_FTYPE_V4DI_V4DI): Ditto.
16136 (QI_FTYPE_V8DI_V8DI): Ditto.
16137 (HI_FTYPE_V16SI_V16SI): Ditto.
16138 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
16139 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
16140 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
16141 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
16142 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
16143 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
16144 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
16145 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
16146 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
16147 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
16148 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
16149 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
16150 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
16151 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
16152 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
16153 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
16154 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
16155 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
16156 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
16157 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
16158 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
16159 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
16160 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
16161 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
16162 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
16163 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
16164 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
16165 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
16166 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
16167 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
16168 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
16169 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
16170 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
16171 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
16172 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
16173 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
16174 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
16175 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
16176 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
16177 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
16178 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
16179 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
16180 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
16181 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
16182 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
16183 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
16184 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
16185 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
16186 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
16187 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
16188 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
16189 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
16190 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
16191 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
16192 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
16193 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
16194 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
16195 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
16196 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
16197 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
16198 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
16199 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
16200 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
16201 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
16202 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
16203 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
16204 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
16205 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
16206 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
16207 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
16208 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
16209 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
16210 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
16211 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
16212 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
16213 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
16214 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
16215 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
16216 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
16217 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
16218 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
16219 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
16220 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
16221 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
16222 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
16223 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
16224 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
16225 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
16226 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
16227 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
16228 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
16229 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
16230 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
16231 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
16232 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
16233 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
16234 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
16235 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
16236 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
16237 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
16238 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
16239 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
16240 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
16241 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
16242 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
16243 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
16244 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
16245 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
16246 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
16247 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
16248 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
16249 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
16250 (HI_FTYPE_HI): Ditto.
16251 (HI_FTYPE_V16QI): Ditto.
16252 (SI_FTYPE_V32QI): Ditto.
16253 (DI_FTYPE_V64QI): Ditto.
16254 (QI_FTYPE_V8HI): Ditto.
16255 (HI_FTYPE_V16HI): Ditto.
16256 (SI_FTYPE_V32HI): Ditto.
16257 (QI_FTYPE_V4SI): Ditto.
16258 (QI_FTYPE_V8SI): Ditto.
16259 (HI_FTYPE_V16SI): Ditto.
16260 (QI_FTYPE_V2DI): Ditto.
16261 (QI_FTYPE_V4DI): Ditto.
16262 (QI_FTYPE_V8DI): Ditto.
16263 (V16QI_FTYPE_HI): Ditto.
16264 (V32QI_FTYPE_SI): Ditto.
16265 (V64QI_FTYPE_DI): Ditto.
16266 (V8HI_FTYPE_QI): Ditto.
16267 (V16HI_FTYPE_HI): Ditto.
16268 (V32HI_FTYPE_SI): Ditto.
16269 (V4SI_FTYPE_QI): Ditto.
16270 (V4SI_FTYPE_HI): Ditto.
16271 (V8SI_FTYPE_QI): Ditto.
16272 (V8SI_FTYPE_HI): Ditto.
16273 (V2DI_FTYPE_QI): Ditto.
16274 (V4DI_FTYPE_QI): Ditto.
16275 (HI_FTYPE_HI_HI): Ditto.
16276 (SI_FTYPE_SI_SI): Ditto.
16277 (DI_FTYPE_DI_DI): Ditto.
16278 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
16279 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
16280 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
16281 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
16282 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
16283 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
16284 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
16285 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
16286 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
16287 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
16288 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
16289 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
16290 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
16291 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
16292 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
16293 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
16294 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
16295 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
16296 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
16297 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
16298 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
16299 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
16300 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
16301 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
16302 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
16303 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
16304 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
16305 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
16306 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
16307 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
16308 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
16309 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
16310 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
16311 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
16312 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
16313 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
16314 (V16SI_FTYPE_HI): Ditto.
16315 (V8DI_FTYPE_QI): Ditto.
16316 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
16317 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
16318 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
16319 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
16320 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
16321 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
16322 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
16323 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
16324 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
16325 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
16326 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
16327 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
16328 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
16329 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
16330 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
16331 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
16332 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
16333 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
16334 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
16335 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
16336 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
16337 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
16338 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
16339 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
16340 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
16341 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
16342 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
16343 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
16344 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
16345 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
16346 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
16347 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
16348 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
16349 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
16350 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
16351 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
16352 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
16353 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
16354 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
16355 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
16356 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
16357 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
16358 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
16359 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
16360 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
16361 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
16362 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
16363 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
16364 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
16365 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
16366 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
16367 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
16368 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
16369 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
16370 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
16371 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
16372 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
16373 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
16374 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
16375 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
16376 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
16377 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
16378 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
16379 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
16380 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
16381 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
16382 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
16383 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
16384 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
16385 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
16386 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
16387 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
16388 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
16389 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
16390 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
16391 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
16392 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
16393 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
16394 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
16395 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
16396 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
16397 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
16398 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
16399 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
16400 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
16401 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
16402 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
16403 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
16404 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
16405 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
16406 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
16407 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
16408 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
16409 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
16410 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
16411 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
16412 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
16413 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
16414 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
16415 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
16416 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
16417 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
16418 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
16419 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
16420 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
16421 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
16422 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
16423 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
16424 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
16425 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
16426 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
16427 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
16428 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
16429 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
16430 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
16431 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
16432 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
16433 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
16434 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
16435 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
16436 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
16437 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
16438 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
16439 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
16440 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
16441 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
16442 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
16443 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
16444 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
16445 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
16446 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
16447 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
16448 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
16449 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
16450 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
16451 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
16452 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
16453 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
16454 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
16455 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
16456 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
16457 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
16458 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
16459 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
16460 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
16461 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
16462 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
16463 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
16464 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
16465 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
16466 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
16467 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
16468 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
16469 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
16470 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
16471 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
16472 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
16473 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
16474 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
16475 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
16476 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
16477 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
16478 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
16479 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
16480 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
16481 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
16482 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
16483 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
16484 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
16485 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
16486 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
16487 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
16488 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
16489 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
16490 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
16491 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
16492 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
16493 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
16494 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
16495 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
16496 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
16497 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
16498 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
16499 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
16500 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
16501 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
16502 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
16503 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
16504 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
16505 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
16506 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
16507 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
16508 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
16509 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
16510 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
16511 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
16512 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
16513 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
16514 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
16515 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
16516 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
16517 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
16518 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
16519 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
16520 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
16521 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
16522 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
16523 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
16524 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
16525 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
16526 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
16527 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
16528 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
16529 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
16530 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
16531 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
16532 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
16533 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
16534 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
16535 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
16536 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
16537 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
16538 (QI_FTYPE_V8DF_INT_QI): Ditto.
16539 (QI_FTYPE_V4DF_INT_QI): Ditto.
16540 (QI_FTYPE_V2DF_INT_QI): Ditto.
16541 (HI_FTYPE_V16SF_INT_HI): Ditto.
16542 (QI_FTYPE_V8SF_INT_QI): Ditto.
16543 (QI_FTYPE_V4SF_INT_QI): Ditto.
16544 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
16546 2015-07-31 Richard Biener <rguenther@suse.de>
16548 * gimple-fold.c (fold_gimple_assign): Remove folding of
16551 2015-07-31 Tom de Vries <tom@codesourcery.com>
16553 PR tree-optimization/66846
16554 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
16555 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
16556 (expand_omp_target) [ENABLE_CHECKING]: Same.
16557 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
16558 cfun if !LOOPS_NEED_FIXUP.
16559 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
16560 that omp_for already has its own loop struct.
16561 * tree-parloops.c (create_phi_for_local_result)
16562 (create_call_for_reduction): Handle simple latch bb.
16563 (create_parallel_loop): Add simple latch bb to preserve
16564 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
16565 (gen_parallel_loop): Remove call to cancel_loop_tree.
16566 (parallelize_loops): Skip loops that are inner loops of parallelized
16568 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
16569 verify_loop_structure.
16571 2015-07-30 Anatoly Sokolov <aesok@post.ru>
16573 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
16574 * config/v850/v850.md (RV_REGNUM): New constants.
16575 * config/v850/v850.c (v850_libcall_value): New functions.
16576 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
16577 (TARGET_LIBCALL_VALUE): Define.
16579 2015-07-30 Anatoly Sokolov <aesok@post.ru>
16581 * rtl.h (lowpart_subreg): Move in file.
16582 * loop-iv.c (lowpart_subreg): Move to...
16583 * simplify-rtx.c (lowpart_subreg): ...here.
16584 (simplify_binary_operation_1): Use lowpart_subreg instead of
16585 simplify_gen_subreg.
16586 * expr.c (expand_expr_real_2): Ditto.
16587 * emit-rtl.c (gen_lowpart_common): Ditto.
16588 * combine.c (gen_lowpart_for_combine): Ditto.
16589 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
16590 expand_debug_source_expr): Ditto.
16592 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
16594 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
16595 (expand_builtin_atomic_clear): Remove support for atomic_clear
16598 2015-07-30 Richard Biener <rguenther@suse.de>
16600 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
16601 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
16602 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
16603 redundant operand canonicalization.
16605 2015-07-30 David Sherwood <david.sherwood@arm.com>
16607 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
16608 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
16609 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
16610 * config/arm/arm.c (neon_valid_immediate): Likewise.
16611 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
16612 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
16613 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
16614 (expand_vec_perm_vpshufb2_vpermq): Likewise.
16615 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
16616 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
16617 * config/i386/sse.md
16618 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
16619 (*ssse3_palignr<mode>_perm): Likewise.
16620 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
16621 * config/spu/spu.c (arith_immediate_p): Likewise.
16622 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
16623 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
16625 2015-07-30 Richard Biener <rguenther@suse.de>
16627 * genmatch.c (decision_tree::gen_gimple): Merge with ...
16628 (decision_tree::gen_generic): ... this into ...
16629 (decision_tree::gen): ... this.
16630 (main): Adjust callers.
16632 2015-07-30 Richard Biener <rguenther@suse.de>
16634 * genmatch.c (verbose): New global.
16635 (warning_at): Add overload with source_location.
16636 (capture_info::capture_info): Add bool whether generating gimple
16637 or generic. Add gimple member.
16638 (capture_info::cinfo): Add capture member.
16639 (capture_info::walk_match): Record capture. Warn on
16640 non-captured leafs.
16641 (capture_info::walk_c_expr): Add more fragments captures cannot
16642 escape through. Warn on escaped captures.
16643 (dt_simplify::gen_1): Warn on operands we force to have no
16645 (main): Initialize verbose.
16646 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
16648 2015-07-30 Richard Biener <rguenther@suse.de>
16650 PR middle-end/67053
16651 * match.pd: Allow both operands to independently have conversion
16652 when simplifying compares of addresses.
16654 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
16658 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
16659 around those cases that need one.
16661 2015-07-29 Aditya Kumar <hiraditya@msn.com>
16663 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
16665 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
16667 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
16668 New. Copied from config/i386/gnu-user.h.
16669 (ASM_COMMENT_START): Likewise.
16670 (DBX_REGISTER_NUMBER): Likewise.
16672 2015-07-29 Richard Biener <rguenther@suse.de>
16674 * gimple-fold.c (fold_gimple_cond): Remove.
16675 (fold_stmt_1): Do not call it.
16677 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
16679 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
16680 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
16682 * config/aarch64/aarch64-modes.def: Add HFmode.
16684 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16685 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
16687 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
16688 aarch64_promoted_type): New.
16690 (aarch64_float_const_representable_p): Disable HFmode.
16691 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
16692 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
16693 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
16695 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
16696 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
16698 * config/aarch64/iterators.md (GPF_F16): New.
16700 2015-07-29 Richard Biener <rguenther@suse.de>
16702 * match.pd: Merge address comparison patterns and make them
16703 handle some more cases.
16705 2015-07-29 Richard Biener <rguenther@suse.de>
16707 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
16708 (parser::parse_capture): Add bool argument on whether to reject
16710 (parser::parse_expr): Adjust.
16711 (parser::parse_op): Likewise.
16712 (parser::parse_pattern): Likewise.
16714 2015-07-29 Richard Biener <rguenther@suse.de>
16716 * gimple-fold.c (has_use_on_stmt): New function.
16717 (replace_stmt_with_simplification): Use it to allow
16718 abnormals originally referenced in the stmt.
16719 (fold_stmt_1): Canonicalize operand order.
16721 2015-07-28 David Sherwood <david.sherwood@arm.com>
16723 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
16724 GET_MODE_INNER unconditionally.
16725 * config/spu/spu.c (arith_immediate_p): Likewise.
16726 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
16727 * expmed.c (synth_mult): Remove check for VOIDmode result from
16729 (expand_mult_const): Likewise.
16730 * fold-const.c (fold_binary_loc): Replace call to element_precision
16731 with call to GET_MODE_PRECISION.
16732 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
16734 (emit_mode_inner): Likewise.
16735 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
16737 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
16738 (GET_MODE_UNIT_PRECISION): Likewise.
16739 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
16740 * simplify-rtx.c (simplify_immed_subreg): Likewise.
16741 * stor-layout.c (bitwise_type_for_mode): Update assert.
16742 (element_precision): Remove.
16744 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16746 * target-insns.def (reload_load_address): New targetm instruction
16748 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
16750 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16752 * target-insns.def (atomic_test_and_set): New targetm instruction
16754 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
16755 HAVE_*/gen_* interface.
16757 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16759 * target-insns.def (can_extend, ptr_extend): New targetm instruction
16761 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
16762 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
16763 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
16764 * rtlanal.c (nonzero_bits1): Likewise.
16765 (num_sign_bit_copies1): Likewise.
16767 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16769 * target-insns.def (eh_return): New targetm instruction pattern.
16770 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
16772 * function.c (thread_prologue_and_epilogue_insns): Remove
16773 preprocessor condition.
16775 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16777 * target-insns.def (indirect_jump): New targetm instruction pattern.
16778 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
16781 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
16783 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
16784 instead of nonimmediate_operand. Remove C condiition.
16786 2015-07-28 Richard Biener <rguenther@suse.de>
16788 * match.pd: Add more simplification of address comparisons.
16790 2015-07-28 Richard Biener <rguenther@suse.de>
16792 * match.pd: Re-order two cases in comparison with max/min
16793 value simplification to make it apply for bools.
16795 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16797 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
16798 Handle simple SIGN_EXTEND or ZERO_EXTEND.
16799 (aarch64_rtx_costs): Properly strip extend or extract before
16800 passing down to rtx costs again.
16802 2015-07-28 Nick Clifton <nickc@redhat.com>
16804 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
16805 Optimizes the case where -mes0 is active and a constant symbolic
16807 * config/rl78/rl78-protos.h: Prototype the new function.
16808 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
16810 2015-07-28 Tom de Vries <tom@codesourcery.com>
16812 * tree-parloops.c (reduc_stmt_res): New function.
16813 (initialize_reductions, add_field_for_reduction)
16814 (create_phi_for_local_result, create_loads_for_reductions)
16815 (create_stores_for_reduction, build_new_reduction): Handle case that
16816 reduc_stmt is a phi.
16817 (gather_scalar_reductions): Allow double_reduc reductions.
16819 2015-07-28 Richard Biener <rguenther@suse.de>
16821 * fold-const.c (fold_comparison): Remove equality folding
16822 of decl addresses ...
16823 * match.pd: ... here and merge with existing pattern.
16825 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
16827 PR tree-optimization/66828
16828 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
16829 from int64_t to uint64_t.
16831 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
16833 * opts-common.c (read_cmdline_option): List DriverOnly enum values
16834 as valid only in the error message of the driver, not in the
16835 messages of the language compilers.
16837 2015-07-27 Tom de Vries <tom@codesourcery.com>
16839 * tree-parloops.c (gather_scalar_reductions): Simplify function
16842 2015-07-27 Marek Polacek <polacek@redhat.com>
16844 * ipa-devirt.c (types_same_for_odr): Fix typo.
16846 2015-07-27 Jason Merrill <jason@redhat.com>
16849 * dwarf2out.c (gen_inlined_subroutine_die): Check
16850 cgraph_function_possibly_inlined_p.
16852 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
16854 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
16855 Place integer variant first.
16856 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
16858 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
16861 * config/arm/arm-builtins.c (enum arm_builtins):
16862 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
16863 (ARM_BUILTIN_NEON_BASE): Rename macro to....
16864 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
16865 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
16866 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
16868 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
16871 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
16872 Add qualifier_lane_index.
16873 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
16874 (arm_getlane_qualifiers): Use qualifier_lane_index.
16875 (arm_lanemac_qualifiers): Rename to...
16876 (arm_mac_n_qualifiers): ...this.
16877 (LANEMAC_QUALIFIERS): Rename to...
16878 (MAC_N_QUALIFIERS): ...this.
16879 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
16880 (arm_setlane_qualifiers): Use qualifier_lane_index.
16881 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
16882 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
16883 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
16884 (arm_expand_neon_builtin): Handle qualifier_lane_index.
16886 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
16887 * config/arm/arm.c (bounds_check): Likewise, improve error message.
16888 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
16889 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
16890 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
16891 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
16892 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
16893 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
16894 qualifiers to TERNOP_IMM.
16895 (vdup_lane): Change qualifiers to GETLANE.
16896 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
16897 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
16898 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
16899 vqdmlsl_n): Change qualifiers to MAC_N.
16901 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
16902 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
16903 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
16904 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
16905 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
16906 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
16907 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
16908 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
16909 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
16910 Remove call to neon_lane_bounds.
16912 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
16914 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
16915 Place integer variant first.
16917 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
16919 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
16920 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
16921 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
16922 for armv6kz targets.
16923 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
16924 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
16925 (FL_FOR_ARCH6ZK): Remove.
16926 (FL_FOR_ARCH6KZ): New.
16927 (arm_arch6zk): New declaration.
16928 * config/arm/arm-tables.opt: Regenerate.
16929 * config/arm/arm.c (arm_arch6kz): New.
16930 (arm_option_override): Set arm_arch6kz.
16931 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
16932 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
16933 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
16935 2015-07-27 Marek Polacek <polacek@redhat.com>
16939 * doc/invoke.texi: Document -Wtautological-compare.
16941 2015-07-27 Richard Biener <rguenther@suse.de>
16943 * genmatch.c (decision_tree::gen_gimple): Split out large
16944 subtrees into separate functions.
16945 (decision_tree::gen_generic): Likewise.
16947 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
16949 * config/alpha/alpha.c: Use SUBREG_P predicate.
16950 * config/alpha/predicates.md: Ditto.
16952 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
16954 * config.host (s390*-*-*): Include driver-native.c only when
16955 building with s390* as host *and* target.
16957 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
16960 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
16961 T bit register modified_between_p check.
16963 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
16965 * config/i386/i386.c: Use SUBREG_P predicate.
16966 * config/i386/i386.md: Ditto.
16967 * config/i386/sse.md: Ditto.
16968 * config/i386/predicates.md: Ditto.
16970 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
16973 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
16974 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
16976 2015-07-25 Sebastian Pop <s.pop@samsung.com>
16978 * Makefile.in: Remove use of TREEBROWSER.
16979 * config.in: Regenerated.
16980 * configure: Regenerated.
16981 * configure.ac: Remove definition of TREEBROWSER.
16982 * tree-browser.c: Removed.
16983 * tree-browser.def: Removed.
16985 2015-07-25 Sebastian Pop <s.pop@samsung.com>
16987 * graphite-scop-detection.c: Include gimple-pretty-print.h.
16988 (stmt_simple_for_scop_p): Print when a stmt is not handled in
16990 (scopdet_basic_block_info): Print when a loop or bb cannot be
16991 represented in Graphite.
16993 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
16996 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
16997 execution guard when min_size is less than size_needed.
16999 2015-07-25 Sebastian Pop <s.pop@samsung.com>
17001 * doc/install.texi: Document supported versions of ISL.
17003 2015-07-25 Jeff Law <law@redhat.com>
17007 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17008 unable to find X NE 0 in the tables, return X as the simplified
17010 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17011 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
17012 to VISISTED_BBS. */
17013 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17014 after removing the control flow statement and unnecessary edges.
17016 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
17019 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
17021 PR rtl-optimization/64164
17022 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17023 * tree-ssa-copyrename.c: Removed.
17024 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17025 -ftree-coalesce-vars.
17026 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17027 * common.opt (ftree-copyrename): Ignore.
17028 (ftree-coalesce-inlined-vars): Likewise.
17029 * doc/invoke.texi: Remove the ignored options above.
17030 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17031 * tree-ssa-coalesce.h: ... here.
17032 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17033 headers required by it.
17034 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17035 across variables when flag_tree_coalesce_vars. Check register
17036 use and promoted modes to allow coalescing. Moved to
17037 tree-ssa-coalesce.c.
17038 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17039 with its member functions to tree-ssa-coalesce.c.
17040 (var_map_base_init): Likewise. Renamed to
17041 compute_samebase_partition_bases.
17042 (partition_view_normal): Drop want_bases parameter.
17043 (partition_view_bitmap): Likewise.
17044 * tree-ssa-live.h: Adjust declarations.
17045 * tree-ssa-coalesce.c: Include explow.h.
17046 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17047 default defs at the entry point.
17048 (dump_part_var_map): New.
17049 (compute_optimized_partition_bases): New, called by...
17050 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17051 of compute_samebase_partition_bases. Adjust.
17052 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17053 * cfgexpand.c (leader_merge): New.
17054 (get_rtl_for_parm_ssa_default_def): New.
17055 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17056 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17057 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17058 redundant MEM attr setting.
17059 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17061 (expand_one_stack_var): ... this. New wrapper to check and
17062 skip already expanded SSA partitions.
17063 (record_alignment_for_reg_var): New, factored out of...
17064 (expand_one_var): ... this.
17065 (expand_one_ssa_partition): New.
17066 (adjust_one_expanded_partition_var): New.
17067 (expand_one_register_var): Check and skip already expanded SSA
17069 (expand_used_vars): Don't create DECLs for anonymous SSA
17070 names. Expand all SSA partitions, then adjust all SSA names.
17071 (pass::execute): Replace the loops that set
17072 SA.partition_to_pseudo from partition leaders and cleared
17073 DECL_RTL for multi-location variables, and that which used to
17074 rename vars and set attrs, with one that clears DECL_RTL and
17075 checks that PARMs and RESULTs default_defs match DECL_RTL.
17076 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17077 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17078 * explow.c (promote_ssa_mode): New.
17079 * explow.h (promote_ssa_mode): Declare.
17080 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17081 * function.c: Include cfgexpand.h.
17082 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17083 (use_register_for_parm_decl): Wrapper for the above to
17084 special-case the result_ptr.
17085 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17086 (split_complex_args): Take assign_parm_data_all argument.
17087 Pass it to rtl_for_parm. Set up rtl and context for split
17089 (assign_parms_augmented_arg_list): Adjust.
17090 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17091 multiple locations. Recognize split complex args.
17092 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17093 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17094 (assign_parm_setup_block): Prefer SSA-assigned location.
17095 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
17096 if stack_parm is NULL.
17097 (assign_parm_setup_stack): Prefer SSA-assigned location.
17098 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17099 rtl before testing for pointer bounds. Special-case result_ptr.
17100 (expand_function_start): Maybe reset DECL_RTL of result.
17101 Prefer SSA-assigned location for result and static chain.
17102 Factor out DECL_RESULT and SET_DECL_RTL.
17103 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17104 anonymous SSA names. Use promote_ssa_mode.
17105 (get_temp_reg): Likewise.
17106 (remove_ssa_form): Adjust.
17107 * stor-layout.c (layout_decl): Don't set mem attributes of
17109 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17110 and get its reg_usage for reg invalidation.
17111 (compute_bb_dataflow): Pass it insn.
17112 (emit_notes_in_bb): Likewise.
17114 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17116 * config/i386/i386.c (ix86_va_start): Remove
17117 unneeded !TARGET_64BIT check.
17118 (ix86_gimplify_va_arg): Ditto.
17120 2015-07-24 Tom de Vries <tom@codesourcery.com>
17122 * graphite-sese-to-poly.c (build_poly_scop): Always call
17123 rewrite_commutative_reductions_out_of_ssa.
17125 2015-07-24 Tom de Vries <tom@codesourcery.com>
17127 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
17128 flag_associative_math to FLOAT_TYPE_P. Honour
17129 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
17131 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
17134 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
17135 and "%qD" in warning_at instead of "%q+D" in warning.
17137 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
17139 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
17140 (ix86_function_abi): Cleanup.
17142 2015-07-24 Michael Darling <darlingm@gmail.com>
17145 * acinclude.m4: Reflects renaming of configure.in to configure.ac
17146 * configure: Likewise
17147 * configure.ac: Likewise
17148 * doc/install.texi: Likewise
17149 * doc/tm.texi: Likewise
17150 * doc/tm.texi.in: Likewise
17152 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17154 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
17155 manually swapping values.
17156 * cse.c (fold_rtx): Likewise.
17157 * lra-eliminations.c (form_sum): Likewise.
17159 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
17162 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
17163 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
17164 (*jcc_1, *jcc_2, jump, simple_return_internal)
17165 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
17166 Set length_nobnd attribute instead of length attribute.
17167 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
17168 (length_nobnd): Remove attribute.
17169 (length): Remove length_nobnd processing.
17171 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
17173 * gimplify.c (omp_default_clause): New function. Reorganize flow
17174 for clarity. Broken out of ...
17175 (omp_notice_variable): ... here.
17177 2015-07-24 Gary Funck <gary@intrepid.com>
17179 PR middle-end/66984
17180 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
17181 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
17183 2015-07-24 Tom de Vries <tom@codesourcery.com>
17185 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
17186 exit-first loop transform.
17188 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
17191 * tree-cfg.c (struct replace_decls_d): New struct.
17192 (replace_block_vars_by_duplicates_1): New function.
17193 (replace_block_vars_by_duplicates): Use it to replace the decls
17194 in the value exprs by duplicates.
17196 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17198 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
17199 -shared, -symbolic, -rdynamic.
17201 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17204 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
17205 -dynamic-linker within %{!static %{!shared, and -rdynamic within
17208 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
17211 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
17212 edge summary is available.
17214 2015-07-24 Richard Biener <rguenther@suse.de>
17216 * genmatch.c (struct dt_node): Add statistic fields.
17217 (dt_node::analyze): New method.
17218 (decision_tree::gen_gimple): Call analyze on the root node
17219 and print statistics to stderr.
17220 (decision_tree::gen_generic): Likewise.
17222 2015-07-24 Richard Biener <rguenther@suse.de>
17224 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
17225 against the highest or lowest possible integer ...
17226 * match.pd: ... as patterns here.
17228 2015-07-24 Richard Biener <rguenther@suse.de>
17230 * genmatch.c (struct capture_info): Add same_as field.
17231 (capture_info::capture_info): Initialize same_as.
17232 (capture_info::walk_match): Compute same_as.
17233 (capture_info::walk_result): Compute stuff for the leader.
17234 (capture_info::walk_c_expr): Likewise.
17235 (dt_simplify::gen_1): Only look at leaders when deciding
17236 to force no side-effects or emit side-effects of omitted operands.
17238 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17240 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
17241 reg note to the GPR -> FPR save instructions.
17243 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17245 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
17247 (s390_expand_insv): Don't generate risbg pattern for constant zero
17249 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
17250 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
17253 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17255 * config/s390/s390.c (s390_reorg): Clean up handling of processors
17258 (s390_issue_rate): Likewise.
17259 (s390_sched_reorder): Likewise.
17260 (s390_sched_variable_issue): Likewise.
17261 (s390_loop_unroll_adjust): Likewise.
17262 (s390_option_override): Likewise.
17264 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17266 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
17267 processor capabilities with -march=native.
17268 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
17269 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
17270 (S390_TARGET_BITS_STRING): Macro to simplify specs.
17272 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17274 * config/s390/s390.c (s390_issue_rate): Handle
17275 PROCESSOR_2094_Z9_EC.
17276 (s390_option_override): Likewise.
17277 (s390_adjust_priority): Likewise.
17279 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17281 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
17282 when cross compiling.
17284 2015-07-24 Richard Biener <rguenther@suse.de>
17286 * fold-const.c (maybe_canonicalize_comparison_1): Move
17287 A code CST canonicalization ...
17288 * match.pd: ... to a pattern here.
17290 2015-07-24 Jiong Wang <jiong.wang@arm.com>
17293 2015-07-22 Jiong Wang <jiong.wang@arm.com>
17295 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
17296 (HONOR_REG_ALLOC_ORDER): Define.
17298 2015-07-24 Richard Biener <rguenther@suse.de>
17300 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
17301 * fold-const.c (fold_comparison): Move parameter does not
17302 alias &local simplification ...
17303 * match.pd: ... as a pattern here.
17305 2015-07-24 Richard Biener <rguenther@suse.de>
17307 * gimple-fold.c (replace_stmt_with_simplification): Special-case
17308 valueizing call operands.
17309 * gimple-match-head.c (maybe_push_res_to_seq): Take
17310 number of call arguments from ops array.
17311 (do_valueize): New function.
17312 (gimple_simplify): Return true if valueization changed
17313 any operand even if the result didn't simplify further.
17315 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17317 PR middle-end/25530
17318 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
17320 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17322 PR middle-end/25529
17323 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
17325 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17327 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
17330 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17332 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
17335 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
17337 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
17338 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
17340 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
17341 ms_va_list_type_node initialization.
17343 2015-07-23 Jeff Law <law@redhat.com>
17346 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17347 unable to find X NE 0 in the tables, return X as the simplified
17349 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17350 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
17351 to VISISTED_BBS. */
17352 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17353 after removing the control flow statement and unnecessary edges.
17355 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
17357 * tree-pass.h (get_current_pass_name): Removed.
17359 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
17361 PR rtl-optimization/64164
17362 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17363 * tree-ssa-copyrename.c: Removed.
17364 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17365 -ftree-coalesce-vars.
17366 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17367 * common.opt (ftree-copyrename): Ignore.
17368 (ftree-coalesce-inlined-vars): Likewise.
17369 * doc/invoke.texi: Remove the ignored options above.
17370 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17371 * tree-ssa-coalesce.h: ... here.
17372 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17373 headers required by it.
17374 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17375 across variables when flag_tree_coalesce_vars. Check register
17376 use and promoted modes to allow coalescing. Moved to
17377 tree-ssa-coalesce.c.
17378 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17379 with its member functions to tree-ssa-coalesce.c.
17380 (var_map_base_init): Likewise. Renamed to
17381 compute_samebase_partition_bases.
17382 (partition_view_normal): Drop want_bases parameter.
17383 (partition_view_bitmap): Likewise.
17384 * tree-ssa-live.h: Adjust declarations.
17385 * tree-ssa-coalesce.c: Include explow.h.
17386 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17387 default defs at the entry point.
17388 (dump_part_var_map): New.
17389 (compute_optimized_partition_bases): New, called by...
17390 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17391 of compute_samebase_partition_bases. Adjust.
17392 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17393 * cfgexpand.c (leader_merge): New.
17394 (get_rtl_for_parm_ssa_default_def): New.
17395 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17396 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17397 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17398 redundant MEM attr setting.
17399 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17401 (expand_one_stack_var): ... this. New wrapper to check and
17402 skip already expanded SSA partitions.
17403 (record_alignment_for_reg_var): New, factored out of...
17404 (expand_one_var): ... this.
17405 (expand_one_ssa_partition): New.
17406 (adjust_one_expanded_partition_var): New.
17407 (expand_one_register_var): Check and skip already expanded SSA
17409 (expand_used_vars): Don't create DECLs for anonymous SSA
17410 names. Expand all SSA partitions, then adjust all SSA names.
17411 (pass::execute): Replace the loops that set
17412 SA.partition_to_pseudo from partition leaders and cleared
17413 DECL_RTL for multi-location variables, and that which used to
17414 rename vars and set attrs, with one that clears DECL_RTL and
17415 checks that PARMs and RESULTs default_defs match DECL_RTL.
17416 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17417 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17418 * explow.c (promote_ssa_mode): New.
17419 * explow.h (promote_ssa_mode): Declare.
17420 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17421 * function.c: Include cfgexpand.h.
17422 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17423 (use_register_for_parm_decl): Wrapper for the above to
17424 special-case the result_ptr.
17425 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17426 (split_complex_args): Take assign_parm_data_all argument.
17427 Pass it to rtl_for_parm. Set up rtl and context for split
17429 (assign_parms_augmented_arg_list): Adjust.
17430 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17431 multiple locations. Recognize split complex args.
17432 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17433 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17434 (assign_parm_setup_block): Prefer SSA-assigned location.
17435 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
17436 if stack_parm is NULL.
17437 (assign_parm_setup_stack): Prefer SSA-assigned location.
17438 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17439 rtl before testing for pointer bounds. Special-case result_ptr.
17440 (expand_function_start): Maybe reset DECL_RTL of result.
17441 Prefer SSA-assigned location for result and static chain.
17442 Factor out DECL_RESULT and SET_DECL_RTL.
17443 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17444 anonymous SSA names. Use promote_ssa_mode.
17445 (get_temp_reg): Likewise.
17446 (remove_ssa_form): Adjust.
17447 * stor-layout.c (layout_decl): Don't set mem attributes of
17449 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17450 and get its reg_usage for reg invalidation.
17451 (compute_bb_dataflow): Pass it insn.
17452 (emit_notes_in_bb): Likewise.
17454 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
17457 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
17459 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
17460 (rs6000_emit_2insn_and): Handle dot forms.
17461 * config/rs6000/rs6000.md (and<mode>3): Adjust.
17462 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
17463 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
17465 2015-07-23 Richard Biener <rguenther@suse.de>
17467 * generic-match-head.c: Include cgraph.h.
17468 * gimple-match-head.c: Likewise.
17469 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
17471 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
17472 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
17475 2015-07-23 Richard Biener <rguenther@suse.de>
17477 * gimple-fold.c (fold_gimple_cond): Do not require folding
17478 results to pass valid_gimple_rhs_p.
17479 * tree-cfg.h (fold_cond_expr_cond): Remove.
17480 * tree-cfg.c (fold_cond_expr_cond): Likewise.
17481 (make_edges): Do not call it.
17482 * tree-inline.c (tree_function_versioning): Likewise.
17484 2015-07-23 Tom de Vries <tom@codesourcery.com>
17486 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
17487 vect_force_simple_reduction.
17488 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
17489 (vect_is_simple_reduction_1): Add and handle
17490 need_wrapping_integral_overflow parameter.
17491 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
17492 need_wrapping_integral_overflow parameter.
17493 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
17494 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
17497 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
17499 PR tree-optimization/66926,66951
17500 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
17501 INNER_LOOP and fix up condition for renaming virtual operands.
17503 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17505 * combine.c (try_combine): Use std::swap instead of manually
17508 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
17510 * config/mips/i6400.md: New file.
17511 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
17512 (mips64r6): Likewise.
17514 * config/mips/mips-tables.opt: Regenerate.
17515 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
17516 (mips_issue_rate): Add support for i6400.
17517 (mips_multipass_dfa_lookahead): Likewise.
17518 * config/mips/mips.h (TUNE_I6400): Define.
17519 * config/mips/mips.md: Include i6400.md.
17520 (processor): Add i6400.
17521 * doc/invoke.texi (-march=@var{arch}): Add i6400.
17523 2015-07-23 Richard Biener <rguenther@suse.de>
17525 PR middle-end/66916
17526 * match.pd: Guard widen and sign-change comparison simplification
17529 2015-07-23 Richard Biener <rguenther@suse.de>
17531 PR tree-optimization/66945
17532 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
17533 ::before_dom_children): Force the propagators idea of
17534 non-executable edges to materialize, not what the folder
17537 2015-07-23 Richard Biener <rguenther@suse.de>
17539 * gimple.h (gimple_cond_make_false): Use 0 != 0.
17540 (gimple_cond_make_true): Use 1 != 0.
17542 2015-07-22 DJ Delorie <dj@redhat.com>
17544 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
17547 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
17548 (ashrhi3): Likewise.
17549 (lshrhi3): Likewise.
17550 (movhi): Take advantage of zero-extend to load small constants.
17551 (movpsi): Likewise.
17552 (and<mode>3): Likewise.
17553 (zero_extendqihi2): Likewise.
17554 (zero_extendqisi2): New.
17555 * config/msp430/constraints.md (N,O): New.
17556 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
17558 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
17561 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
17562 to enum feature_priority and feature_list.
17563 (fold_builtin_cpu): Add F_AES to enum processor_features
17564 and isa_names_table.
17566 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
17569 * config/i386/linux-common.h (MPX_SPEC): Use linker option
17570 for 64bit target only.
17572 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
17574 * config/nvptx/nvptx.c: Expand some comments.
17576 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
17578 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
17579 (cortex_a53_advsimd): ...This.
17581 2015-07-22 Richard Biener <rguenther@suse.de>
17583 * genmatch.c (expr::gen_transform): Clarify error message
17584 and display location.
17586 2015-07-22 Richard Biener <rguenther@suse.de>
17588 * genmatch.c (struct operand): Add location member.
17589 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
17591 (struct simplify): Remove match_location and result_location
17593 (elsehwere): Adjust.
17595 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
17597 * config/mips/m5100.md: New file.
17598 * config/mips/mips-cpus.def (m5100, m5101): Define.
17599 * config/mips/mips-tables.opt: Regenerate.
17600 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
17601 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
17602 -march=m5101 to -mips32r5.
17603 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
17604 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
17606 * config/mips/mips.md: Include m5100.md.
17607 (processor): Add m5100.
17608 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
17610 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
17612 * config/mips/mips-cpus.def (interaptiv): Define.
17613 * config/mips/mips-tables.opt: Regenerate.
17614 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
17616 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
17617 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
17619 2015-07-22 Jiong Wang <jiong.wang@arm.com>
17622 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
17623 (HONOR_REG_ALLOC_ORDER): Define.
17625 2015-07-22 Richard Biener <rguenther@suse.de>
17627 PR tree-optimization/66952
17628 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
17629 blocks we end up executing unconditionally reset all SSA
17630 info such as range and alignment.
17631 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
17632 * tree-ssanames.c (reset_flow_sensitive_info): New function.
17634 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
17636 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
17639 2015-07-22 Richard Biener <rguenther@suse.de>
17641 * genmatch.c (parser::parse_result): Properly handle
17642 match with result operands and conditions.
17644 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
17647 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
17648 Add qualifier_struct_load_store_lane_index.
17649 (aarch64_types_loadstruct_lane_qualifiers): Use
17650 qualifier_struct_load_store_lane_index for lane index argument for
17652 (aarch64_types_storestruct_lane_qualifiers): Ditto.
17653 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17654 (aarch64_simd_expand_args): Add new argument describing mode of
17655 builtin. Check lane bounds for arguments with
17656 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17657 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
17658 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17659 (aarch64_simd_expand_builtin): Handle arguments with
17660 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
17661 aarch64_simd_expand_args.
17662 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
17663 vst[234]_lane with BUILTIN_VALLDIF.
17664 * config/aarch64/aarch64-simd.md:
17665 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
17666 endianness reversal on lane index.
17667 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
17668 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
17669 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
17670 (vec_store_lanesci_lane<mode>): Ditto.
17671 (vec_store_lanesxi_lane<mode>): Ditto.
17672 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
17673 reversal of lane index.
17674 (aarch64_ld3_lane<mode>): Ditto.
17675 (aarch64_ld4_lane<mode>): Ditto.
17676 (aarch64_st2_lane<mode>): Ditto.
17677 (aarch64_st3_lane<mode>): Ditto.
17678 (aarch64_st4_lane<mode>): Ditto.
17679 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
17680 to qmode. Add new mode parameter. Update uses.
17681 (__LD3_LANE_FUNC): Ditto.
17682 (__LD4_LANE_FUNC): Ditto.
17683 (__ST2_LANE_FUNC): Ditto.
17684 (__ST3_LANE_FUNC): Ditto.
17685 (__ST4_LANE_FUNC): Ditto.
17687 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
17689 * doc/invoke.texi (Language Independent Options): Rename node to
17690 Diagnostic Message Formatting Options.
17692 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
17695 * lra-remat.c (operand_to_remat): Prevent using insns with input
17696 subregs processed separately by IRA.
17698 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
17700 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
17702 (single_imm_use): Check for iterator node.
17703 (num_imm_uses): Likewise.
17704 * tree-ssa-operands.c (has_zero_uses_1): Delete.
17705 (single_imm_use_1): Check for iterator node.
17707 2015-07-21 Mike Frysinger <vapier@gentoo.org>
17708 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17710 * configure.ac: Add check for new options in isl-0.15.
17711 * config.in, configure: Rebuilt.
17712 * graphite-blocking.c: Include <isl/constraint.h>
17713 * graphite-interchange.c, graphite-poly.c: Likewise.
17714 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
17715 * graphite.c: Likewise.
17716 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
17718 * graphite-dependences.c: Include <isl/constraint.h>.
17719 (max_number_of_out_dimensions): Returns isl_stat.
17720 (extend_schedule_1): Likewise
17721 (extend_schedule): Corresponding changes.
17722 * graphite-optimize-isl.c: Include <isl/constraint.h> and
17724 (getSingleMap): Change return type of isl_stat.
17725 (optimize_isl): Conditionally use
17726 isl_options_set_schedule_serialize_sccs.
17727 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
17728 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
17730 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
17733 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
17734 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
17736 2015-07-21 Richard Biener <rguenther@suse.de>
17738 PR tree-optimization/66948
17739 * genmatch.c (capture_info::walk_match): Also recurse to
17740 captures. Properly compute expr state from captures of
17742 * match.pd: Add single-use guards to
17743 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
17745 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
17747 * config/nvptx/mkoffload.c (process): Add static destructor call.
17749 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17751 PR middle-end/66915
17752 * match.pd (A - B -> A + (-B)): Don't allow folding
17753 when type if a fixed-point type.
17755 2015-07-20 DJ Delorie <dj@redhat.com>
17757 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
17758 (iorqi3_real): Likewise for set1.
17760 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
17762 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
17765 2015-07-20 Aditya Kumar <hiraditya@msn.com>
17767 * graphite-isl-ast-to-gimple.c:
17768 Refactor so that each function can access 'region'. This will help
17769 maintain a parameter rename_map within a region.
17771 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17773 * config/rs6000/rs6000.md (*lt0_disi): New.
17775 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17778 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
17779 "available letters" comment.
17780 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
17781 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
17782 and_2rld_operand): Delete.
17783 (and_operand): Adjust.
17784 (rotate_mask_operator): New.
17785 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
17786 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
17787 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
17788 extract_ME): Delete.
17789 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
17790 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
17791 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
17792 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
17793 rs6000_emit_2insn_and): New.
17794 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
17795 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
17796 includes_rldic_lshift_p, includes_rldicr_lshift_p,
17797 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
17798 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
17799 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
17800 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
17801 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
17802 rs6000_emit_2insn_and): New.
17803 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
17804 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
17806 <NOT>: Don't fall through to next case.
17807 <AND>: Handle the various rotate-and-mask cases directly.
17808 <IOR>: Always cost as one insn.
17809 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
17810 (and<mode>3): Adjust expander for the new patterns.
17811 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
17812 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
17813 (*and<mode>3_imm_dot_shifted): New.
17814 (*and<mode>3_mask): Delete, rewrite as ...
17815 (and<mode>3_mask): ... New.
17816 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
17817 (andsi3_internal0_nomc): Delete.
17818 (*andsi3_internal6): Delete.
17819 (*and<mode>3_2insn): New.
17820 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
17821 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
17822 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
17823 *insvdi_internal3): Delete.
17824 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
17825 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
17826 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
17827 *ior<mode>_mask): New.
17828 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
17829 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
17830 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
17831 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
17833 (ashr<mode>3): Delete expander.
17834 (*ashr<mode>3): Rename to ...
17835 (ashr<mode>3): ... This.
17836 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
17837 (*rotldi3_internal4, *rotldi3_internal5 and split,
17838 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
17839 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
17840 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
17841 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
17842 (splitter for loading a mask): Adjust.
17843 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
17845 2015-07-20 Marek Polacek <polacek@redhat.com>
17847 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
17848 output_add_clobbers, output_added_clobbers_hard_reg_p,
17849 gen_rtx_scratch): Remove declarations.
17851 2015-07-20 Marek Polacek <polacek@redhat.com>
17854 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
17856 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17858 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
17859 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
17861 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17863 * combine.c (combine_simplify_rtx): Move simplification step
17864 before various transformations/substitutions.
17866 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
17868 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
17869 (struct int_traits): Likewise.
17871 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17873 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
17874 function to vmsdbgout_function_decl.
17876 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
17879 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
17880 from misaligned positions.
17881 (ix86_expand_pinsr): Reject insertions to misaligned positions.
17883 2015-07-18 Sebastian Pop <s.pop@samsung.com>
17885 PR middle-end/46851
17886 PR middle-end/60340
17887 * Makefile.in: Removed omega.o.
17888 * common.opt: Document flag fcheck-data-deps as deprecated.
17889 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
17890 its associated params: omega-max-vars, omega-max-geqs,
17891 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
17892 omega-max-keys, omega-eliminate-redundant-constraints.
17893 * doc/loop.texi: Remove all the section on Omega.
17894 * graphite-blocking.c: Include missing params.h: it used to be
17895 included through tree-data-ref.h and omega.h.
17896 * graphite-isl-ast-to-gimple.c: Same.
17897 * graphite-optimize-isl.c: Same.
17898 * graphite-sese-to-poly.c: Same.
17899 * graphite.c: Same.
17902 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
17903 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
17904 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
17905 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
17906 * passes.def: Remove pass_check_data_deps.
17907 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
17908 (dump_conflict_function): Same.
17909 (dump_subscript): Same.
17910 (print_direction_vector): Same.
17911 (print_dir_vectors): Same.
17912 (print_lambda_vector): Same.
17913 (print_dist_vectors): Same.
17914 (dump_data_dependence_relation): Same.
17915 (dump_data_dependence_relations): Same.
17916 (dump_dist_dir_vectors): Same.
17918 (init_omega_eq_with_af): Removed.
17919 (omega_extract_distance_vectors): Removed.
17920 (omega_setup_subscript): Removed.
17921 (init_omega_for_ddr_1): Removed.
17922 (init_omega_for_ddr): Removed.
17923 (ddr_consistent_p): Removed.
17924 (compute_affine_dependence): Do not use omega to check data
17926 (compute_data_dependences_for_bb): Removed.
17927 (analyze_all_data_dependences): Removed.
17928 (tree_check_data_deps): Removed.
17929 * tree-data-ref.h: Do not include omega.h.
17930 (compute_data_dependences_for_bb): Removed.
17931 (tree_check_data_deps): Removed.
17932 * tree-ssa-loop.c (pass_check_data_deps): Removed.
17933 (make_pass_check_data_deps): Removed.
17934 * tree-ssa-phiopt.c: Include params.h.
17935 * tree-vect-data-refs.c: Same.
17936 * tree-vect-slp.c: Same.
17938 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
17940 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
17941 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
17942 (mem->fpreg splitters): Ditto.
17943 (general_operand->nonimmediate_operand splitter): Use explicit modes.
17944 Disable DFmode for TARGET_64BIT.
17946 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
17949 * config/i386/i386.c (ix86_expand_prologue): Replicate static
17950 chain on the stack.
17952 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
17954 * config/nvptx/mkoffload.c (process): Constify host data.
17955 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
17956 Constify host data.
17957 (generate_host_descr_file): Likewise.
17959 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
17960 Sebastian Pop <s.pop@samsung.com>
17962 PR middle-end/61929
17963 * graphite-dependences.c (add_pdr_constraints): Renamed
17964 pdr->extent to pdr->subscript_sizes.
17965 * graphite-interchange.c (build_linearized_memory_access): Add
17966 back all gcc_assert's that the "isl_int to isl_val conversion"
17967 patch has removed. Refactored.
17968 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
17969 * graphite-poly.c (new_poly_dr): Same.
17970 (free_poly_dr): Same.
17971 * graphite-poly.h (struct poly_dr): Same.
17972 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
17973 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
17974 * graphite-scop-detection.h: Fix space.
17975 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
17976 back all gcc_assert's removed by a previous patch.
17977 (wrap): Remove the_isl_ctx global variable that the same patch has
17979 (build_loop_iteration_domains): Same.
17980 (add_param_constraints): Same.
17981 (pdr_add_data_dimensions): Same. Refactored.
17982 (build_poly_dr): Renamed extent to subscript_sizes.
17984 2015-07-17 Marek Polacek <polacek@redhat.com>
17986 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
17987 * match.pd: ... here.
17989 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
17991 * config/nvptx/mkoffload.c (process): Constify target data.
17992 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
17993 Constify target data.
17994 (generate_target_offloadend_file): Likewise.
17996 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
17998 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
17999 to allow renaming of PHI arguments on edges incoming from outer
18000 loop header, add corresponding check before start PHI iterator.
18001 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
18002 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
18003 with true force_vectorize. Set-up dominator for outer loop too.
18004 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
18005 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
18006 was marked with force_vectorize and has restricted cfg.
18007 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
18009 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
18010 do peeling for outer loops.
18012 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
18013 Matthias Klose <doko@ubuntu.com>
18015 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
18016 build-sysroot, sysroot from the `Miscenalleous configure options' to
18017 the `Directories' section and strip trailing `/' from with_sysroot.
18018 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
18019 * configure: Regenerated.
18021 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
18024 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
18025 (TARGET_HARD_DF_REGS): Ditto.
18026 (TARGET_HARD_XF_REGS): Ditto.
18027 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
18028 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
18029 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
18030 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
18031 (*movsf_internal): Add alternatives 16 and 17. Enable
18032 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
18034 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
18036 PR rtl-optimization/66891
18037 * calls.c (expand_call): Wrap precompute_register_parameters with
18038 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
18040 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
18042 * config/nvptx/mkoffload.c (process): Constify mapping variables.
18043 Define target data struct and initialize it.
18045 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
18047 PR rtl-optimization/66626
18048 * ira.h (emit-rtl.h): Include.
18049 (non_spilled_static_chain_regno_p): New.
18050 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
18051 unless it is non spilled static chain pseudo.
18052 (assign_hard_rego): Spill memory profitable allocno unless it is
18053 non spilled static chain pseudo.
18054 (allocno_spill_priority_compare): Put non spilled static chain
18055 pseudo at the end of sorted array.
18056 (improve_allocation): Do nothing if we have static chain and
18058 (allocno__priority_compare_func): Put non spilled static chain
18059 pseudo at the beginning of sorted array.
18060 (move_spill_restore): Ignore non spilled static chain pseudo.
18061 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
18062 to non spilled static chain pseudo.
18063 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
18064 pseudo at the beginning of sorted array.
18065 (spill_for): Spill non spilled static chain pseudo last.
18066 * lra-constraints.c (lra_constraints): Remove static chain pseudo
18067 check for equivalence.
18069 2015-07-16 Martin Liska <mliska@suse.cz>
18072 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
18073 dst_ctx if it does not exist.
18075 2015-07-16 Martin Liska <mliska@suse.cz>
18077 * hash-set.h (remove): New function.
18078 (iterator): New iteration class for hash_set.
18080 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18082 * genattrtab.c (make_canonical): Add a file_location parameter.
18083 Use fatal_at rather than fatal.
18084 (get_attr_value): Likewise. Update call to make_canonical.
18085 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
18086 (make_internal_attr): Update calls accordingly.
18088 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18090 * read-md.h (message_with_line, error_with_line): Delete.
18091 * read-md.c (message_with_line, error_with_line): Delete.
18092 * gensupport.h: Include read-md.h.
18093 (md_rtx_info): New structure.
18094 (read_md_rtx): Use it. Return a bool success value.
18095 * gensupport.c (read_md_rtx): Likewise.
18096 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
18097 (main): Update after interface changes.
18098 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
18099 (main): Update after interface changes.
18100 * genattrtab.c (insn_code_number): Delete.
18101 (optimize_attrs): Add a max_insn_code parameter and use it instead
18102 of insn_code_number.
18103 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
18104 Use *_at rather than *_with_line functions.
18105 (gen_insn): Likewise.
18106 (gen_delay): Likewise.
18107 (gen_insn_reserv): Likewise.
18108 (gen_bypass): Take an md_rtx_info rather than an rtx.
18109 (main): Update after interface changes. Use a local max_insn_code
18110 variable instead of insn_code_number.
18111 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
18112 an rtx. Use fatal_at rather than fatal.
18113 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
18114 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
18115 (gen_absence_set, gen_final_absence_set, gen_automaton)
18116 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
18117 (main): Update after interface changes.
18118 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
18120 (main): Update after interface changes.
18121 * genconditions.c (main): Use new read_md_rtx interface.
18122 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
18123 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
18124 (main): Update after interface changes.
18125 * genemit.c (insn_code_number, insn_index_number): Delete.
18126 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18127 Use fatal_at rather than fatal.
18128 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
18130 (gen_split): Likewise.
18131 (main): Update after interface changes.
18132 * genextract.c (line_no): Delete.
18133 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18134 Update call to walk_rtx.
18135 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
18136 rather than message_with_line.
18137 (walk_rtx): Add an md_rtx_info argument. Update call to
18138 VEC_safe_set_locstr.
18139 (main): Update after interface changes.
18140 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
18141 and lineno. Use error_at rather than separate message_with_line
18142 calls and have_error assignments.
18143 (main): Update after interface changes.
18144 * genmddump.c (main): Use new read_md_rtx interface.
18145 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
18146 (main): Update after interface changes.
18147 * genoutput.c (next_code_number): Delete.
18148 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18149 (gen_peephole, gen_expand, gen_split): Likewise.
18150 (note_constraint): Likewise. Use *_at rather than *_with_line
18152 (main): Update after interface changes.
18153 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
18155 (main): Update after interface changes.
18156 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
18157 than an rtx and lineno.
18158 (process_define_constraint): Likewise.
18159 (process_define_register_constraint): Likewise.
18160 (main): Update after interface changes.
18161 * genrecog.c (next_insn_code, pattern_lineno): Delete.
18162 (validate_pattern): Replace top-level rtx with an md_rtx_info.
18163 Use *_at rather than *_with_line functions.
18164 (match_pattern_2): Likewise.
18165 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
18166 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
18167 Use *_at rather than *_with_line functions.
18168 * gentarget-def.c (add_insn): New function.
18169 (main): Use it. Use new read_md_rtx interface.
18171 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18173 * gensupport.h (compute_test_codes): Take a file_location rather
18174 than a line number.
18175 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
18176 rather than *_with_line functions.
18177 (process_define_predicate): Update call to compute_test_codes.
18178 * genpreds.c (validate_exp): Take a file_location rather than a
18179 line number. Use *_at functions rather than *_with_line functions.
18180 (process_define_predicate): Update call to validate_exp.
18181 (constraint_data): Replace lineno field with a file_location.
18182 (add_constraint): Take a file_location rather than a line number.
18183 Use *_at functions rather than *_with_line functions. Fix error
18184 message for address constraints. Update after changes to
18185 validate_exp, constraint_data and compute_test_codes.
18186 (process_define_constraint): Update accordingly.
18187 (process_define_register_constraint): Likewise.
18189 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18191 * genoutput.c (data): Use a file_location to record the source
18194 (idata, idata_end): Remove initialization.
18195 (constraint_data): Replace lineno with a file_location.
18196 (output_insn_data): Update after changes to data.
18197 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
18198 (scan_operands): Likewise, using *_at rather than *_with_line
18200 (process_template): Likewise.
18201 (validate_insn_alternatives): Likewise.
18202 (validate_insn_operands): Likewise.
18203 (validate_optab_operands): Likewise.
18204 (init_insn_for_nothing): Initialize idata and idata_end.
18205 (note_constraint): Update after changes to constraint_data,
18206 using at rather than with_line functions.
18207 (mdep_constraint_len): Take a file_location rather than a
18208 line number. Use at rather than with_line functions.
18210 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18212 * read-md.h (fatal_at): Declare.
18213 * read-md.c (fatal_at): New function.
18214 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
18215 to record the source position.
18216 (check_attr_test): Take a file_location instead of a line number.
18217 Use fatal_at instead of fatal.
18218 (check_attr_value): Update after above changes, using "at"
18219 rather than "with_line" reporting functions.
18220 (convert_set_attr_alternative): Likewise.
18221 (gen_attr): Likewise.
18222 (check_defs): Likewise. Don't assign to read_md_filename.
18223 (gen_insn): Update initialization after above changes.
18224 (gen_delay): Likewise.
18225 (write_insn_cases): Print the filename for a define_peephole.
18226 (gen_insn_reserv): Take a line number as argument and update
18227 the call to check_attr_test.
18228 (main): Pass a line number to gen_insn_reserv.
18230 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18232 * read-md.h (file_location): New structure.
18233 (directive_handler_t): Take a file_location rather than a line number.
18234 (message_at, error_at): Declare.
18235 (read_skip_construct): Delete.
18236 * read-md.c (message_with_line_1): Replace with...
18237 (message_at_1): ...this new function.
18238 (message_at, error_at): New functions.
18239 (message_with_line, error_with_line): Update to use message_at_1.
18240 (handle_enum): Take a file_location rather than a line number
18241 and use error_at for error reporting.
18242 (handle_include): Likewise.
18243 (read_skip_construct): Likewise. Make static.
18244 (handle_file): Update after above changes. Pass a file_location
18245 rather than a line number to handle_directive.
18246 * gensupport.c (queue_elem): Replace separate filename and lineno
18247 with a file_location.
18248 (queue_pattern): Replace filename and lineno arguments with a
18249 file_location. Update after change to queue_elem.
18250 (process_define_predicate): Replace lineno argument with a
18251 file_location and use error_at for error reporting. Update
18252 after above changes.
18253 (process_rtx): Likewise.
18254 (subst_pattern_match): Likewise.
18255 (get_alternatives_number): Likewise.
18256 (alter_predicate_for_insn): Likewise.
18257 (rtx_handle_directive): Likewise.
18258 (is_predicable): Update after above changes, using error_at rather
18259 than error_with_line.
18260 (has_subst_attribute): Likewise.
18261 (identify_predicable_attribute): Likewise.
18262 (alter_attrs_for_subst_insn): Likewise.
18263 (process_one_cond_exec): Likewise.
18264 (process_substs_on_one_elem): Likewise.
18265 (process_define_subst): Likewise.
18266 (check_define_attr_duplicates): Likewise.
18267 (read_md_rtx): Update after change to queue_elem.
18269 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18271 * genoutput.c (next_index_number): Delete.
18272 (data): Remove index_number.
18273 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
18274 (main): Remove manipulation of next_index_number.
18276 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18278 * genattrtab.c (check_attr_value): Remove handling of null attrs.
18279 (make_canonical): Likewise.
18281 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
18283 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
18284 instead of adjust_address_nv.
18285 (restore_stack_nonlocal): Likewise.
18286 (nonlocal_goto): Likewise.
18288 2015-07-16 Tom de Vries <tom@codesourcery.com>
18290 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
18291 not have a corresponding loop header phi.
18293 2015-07-16 Tom de Vries <tom@codesourcery.com>
18295 * tree-parloops.c (create_loads_for_reductions): Handle case that
18296 reduction is unused.
18298 2015-07-16 Richard Biener <rguenther@suse.de>
18300 PR tree-optimization/66894
18301 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
18302 about deriving NE_EXPR from truncated values.
18304 2015-07-16 Martin Liska <mliska@suse.cz>
18307 (object_allocator): Add new class.
18308 (pool_allocator::initialize): Use the underlying class.
18309 (pool_allocator::allocate): Likewise.
18310 (pool_allocator::remove): Likewise.
18311 (operator new): A new generic allocator.
18312 * asan.c (struct asan_mem_ref): Remove unused members.
18313 (asan_mem_ref_new): Replace new operator with
18314 object_allocator::allocate.
18315 (free_mem_ref_resources): Change deallocation.
18316 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
18317 with object_allocator.
18318 * config/sh/sh.c (add_constant): Replace new operator with
18319 object_allocator::allocate.
18320 (sh_reorg): Change call to a release method.
18321 * cselib.c (struct elt_list): Remove unused members.
18322 (new_elt_list): Replace new operator with
18323 object_allocator::allocate.
18324 (new_elt_loc_list): Likewise.
18325 (new_cselib_val): Likewise.
18326 (unchain_one_elt_list): Change delete operator with remove method.
18327 (unchain_one_elt_loc_list): Likewise.
18328 (unchain_one_value): Likewise.
18329 (cselib_finish): Release newly added static allocators.
18330 * cselib.h (struct cselib_val): Remove unused members.
18331 (struct elt_loc_list): Likewise.
18332 * df-problems.c (df_chain_alloc): Replace pool_allocator with
18334 * df-scan.c (struct df_scan_problem_data): Likewise.
18335 (df_scan_alloc): Likewise.
18336 * df.h (struct dataflow): Likewise.
18337 * dse.c (struct read_info_type): Likewise.
18338 (struct insn_info_type): Likewise.
18339 (struct dse_bb_info_type): Likewise.
18340 (struct group_info): Likewise.
18341 (struct deferred_change): Likewise.
18342 (get_group_info): Likewise.
18343 (delete_dead_store_insn): Likewise.
18344 (free_read_records): Likewise.
18345 (replace_read): Likewise.
18346 (check_mem_read_rtx): Likewise.
18347 (scan_insn): Likewise.
18348 (dse_step1): Likewise.
18349 (dse_step7): Likewise.
18350 * et-forest.c (struct et_occ): Remove unused members.
18351 (et_new_occ): Use allocate instead of new operator.
18352 (et_new_tree): Likewise.
18353 (et_free_tree): Call release method explicitly.
18354 (et_free_tree_force): Likewise.
18355 (et_free_pools): Likewise.
18356 (et_split): Use remove instead of delete operator.
18357 * et-forest.h (struct et_node): Remove unused members.
18358 * ipa-cp.c: Change pool_allocator to object_allocator.
18359 * ipa-inline-analysis.c: Likewise.
18360 * ipa-profile.c: Likewise.
18361 * ipa-prop.c: Likewise.
18362 * ipa-prop.h: Likewise.
18363 * ira-build.c (initiate_cost_vectors): Cast return value.
18364 (ira_allocate_cost_vector): Likewise.
18365 * ira-color.c (struct update_cost_record): Remove unused members.
18366 * lra-int.h (struct lra_live_range): Likewise.
18367 (struct lra_copy): Likewise.
18368 (struct lra_insn_reg): Likewise.
18369 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
18370 * lra.c (new_insn_reg): Replace new operator with allocate method.
18371 (free_insn_regs): Same for operator delete.
18372 (finish_insn_regs): Release new static allocator.
18373 (finish_insn_recog_data): Likewise.
18374 (lra_free_copies): Replace delete operator with remove method.
18375 (lra_create_copy): Replace operator new with allocate method.
18376 (invalidate_insn_data_regno_info): Same for remove method.
18377 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
18378 (free_debug_insn_changes): Replace delete operator with remove method.
18379 (replace_oldest_value_reg): Replace operator new with allocate method.
18380 (pass_cprop_hardreg::execute): Release new static variable.
18381 * sched-deps.c (sched_deps_init): Change pool_allocator to
18383 * sel-sched-ir.c: Likewise.
18384 * sel-sched-ir.h: Likewise.
18385 * stmt.c (expand_case): Likewise.
18386 (expand_sjlj_dispatch_table): Likewise.
18387 * tree-sra.c (struct access): Remove unused members.
18388 (struct assign_link): Likewise.
18389 (sra_deinitialize): Release newly added static pools.
18390 (create_access_1):Replace operator new with allocate method.
18391 (build_accesses_from_assign): Likewise.
18392 (create_artificial_child_access): Likewise.
18393 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
18394 pool_allocator to object_allocator.
18395 * tree-ssa-pre.c: Likewise.
18396 * tree-ssa-reassoc.c: Likewise.
18397 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
18398 * tree-ssa-strlen.c: Likewise.
18399 * tree-ssa-structalias.c: Likewise.
18400 * var-tracking.c (onepart_pool_allocate): New function.
18401 (unshare_variable): Use the newly added function.
18402 (variable_merge_over_cur): Likewise.
18403 (variable_from_dropped): Likewise.
18404 (variable_was_changed): Likewise.
18405 (set_slot_part): Likewise.
18406 (emit_notes_for_differences_1): Likewise.
18407 (vt_finalize): Release newly added static pools.
18409 2015-07-16 Martin Jambor <mjambor@suse.cz>
18411 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
18412 all uses. Fix two typos in its general comment.
18413 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
18415 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
18417 * config/i386/linux-common.h (LINK_MPX): New.
18418 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
18419 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
18420 indicating '-z bndplt' support by linker.
18421 * configure: Regenerate.
18422 * config.in: Regenerate.
18424 2015-07-16 Richard Biener <rguenther@suse.de>
18426 * fold-const.c (fold_widened_comparison): Remove.
18427 (fold_sign_changed_comparison): Likewise.
18428 (fold_comparison): Move widened and sign-changed comparison
18430 * match.pd: ... to patterns here.
18431 * generic-match-head.c: Include target.h.
18432 * gimple-match-head.c: Likewise.
18434 2015-07-16 Richard Biener <rguenther@suse.de>
18436 * tree-ssa-dom.c (dom_valueize): New function.
18437 (record_temporary_equivalences): Also record equivalences
18438 for dominating stmts that have uses of equivalences we are
18441 2015-07-16 Bin Cheng <bin.cheng@arm.com>
18443 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
18444 add_autoinc_candidates.
18445 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
18446 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
18447 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
18448 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
18450 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
18451 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
18452 Remove parameter struct iv*. Call add_autoinc_candidates here.
18453 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
18454 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
18456 (find_iv_candidates): Call new functions.
18458 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
18460 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
18461 uninitialized-variable warning.
18463 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
18466 * config/sh/sh.md (movdi): Split simple reg move to two movsi
18467 when the destination is R0.
18469 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
18472 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
18473 * config/i386/i386.c (ix86_expand_pextr): New function.
18474 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
18475 for non-lowpart subregs.
18476 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
18477 (insv<mode>): Use SWI248 mode iterator.
18478 (insv<mode>_1): Ditto.
18480 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18481 Sebastian Pop <s.pop@samsung.com>
18483 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
18484 iterator to use_stmt.
18486 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18487 Sebastian Pop <s.pop@samsung.com>
18489 * graphite-scop-detection.c (build_scops_1): Discard scops for
18492 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18493 Sebastian Pop <s.pop@samsung.com>
18495 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
18496 case of a return statement in scop.
18498 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18499 Sebastian Pop <s.pop@samsung.com>
18501 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
18502 INTEGER_TYPE parameters.
18503 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
18504 VECTOR_CST in scan_tree_for_params.
18505 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
18507 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
18509 * gimple-pretty-print.h: Don't include pretty-print.h.
18510 * tree-streamer.h: Don't include lto-streamer.h.
18511 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
18512 * gimple-streamer-in.c: Remove redundant includes.
18513 * gimple-streamer-out.c: Likewise.
18514 * ipa-devirt.c: Likewise.
18515 * ipa-icf.c: Likewise.
18516 * ipa-inline-analysis.c: Likewise.
18517 * ipa-polymorphic-call.c: Likewise.
18518 * ipa-profile.c: Likewise.
18519 * ipa-prop.c: Likewise.
18520 * ipa-pure-const.c: Likewise.
18521 * lto-cgraph.c: Likewise.
18522 * lto-streamer-in.c: Likewise.
18523 * lto-streamer-out.c: Likewise.
18524 * lto-streamer.c: Likewise.
18525 * tree-streamer-in.c: Likewise.
18526 * tree-streamer-out.c: Likewise.
18527 * tree-streamer.c: Likewise.
18529 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
18531 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
18533 * opts.c: Remove multiline #include comment.
18535 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
18537 * config/nvptx/mkoffload.c (process): Add C++ protection to
18540 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18543 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
18544 null before IEEE 128-bit floating point support patch.
18546 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18548 * simplify-rtx.c (simplify_ternary_operation): Add simplification
18549 for (!c) != {0,...,0} ? a : b for vector modes.
18551 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
18552 Martin Jambor <mjambor@suse.cz>
18554 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
18555 struct func_body_info* instead of struct ipa_node_params*, expecting
18556 fbi->info to be filled in. Replace throughout. Adjust call to
18557 ipa_load_from_parm_agg.
18558 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
18559 instead of struct ipa_node_params*. Adjust calls to other functions
18560 so that they pass either fbi or fbi->info.
18561 (set_switch_stmt_execution_predicate): Likewise.
18562 (will_be_nonconstant_predicate): Likewise.
18563 (compute_bb_predicates): Likewise.
18564 (estimate_function_body_sizes): Move asserts earlier. Fill in
18565 struct func_body_info, replace parms_info with fbi.info. Adjust
18566 calls to functions that now accept struct func_body_info.
18567 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
18568 (struct func_body_info): Likewise.
18569 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
18570 remove static. Adjust callers.
18571 (ipa_load_from_parm_agg): Remove.
18572 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
18573 (func_body_info): Likewise.
18574 (ipa_load_from_parm_agg): Adjust prototype.
18576 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18578 * gensupport.c (rtx_handle_directive): Adjust.
18579 * read-rtl.c (apply_iterators): Take vector to add rtxs to
18580 instead of expr list rtx.
18581 (add_define_attr_for_define_subst): Likewise.
18582 (add_define_subst_attr): Likewise.
18583 (read_subst_mapping): Likewise.
18584 (read_rtx): Likewise.
18585 * rtl.h (read_rtx): Adjust.
18587 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18589 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
18591 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
18594 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
18595 (*tls_local_dynamic_base_64_<mode>): Ditto.
18596 (*tls_local_dynamic_base_64_largepic): Ditto.
18597 (tls_global_dynamic_64_<mode>): Update expander pattern.
18598 (tls_local_dynamic_base_64_<mode>): Ditto.
18600 2015-07-15 Richard Biener <rguenther@suse.de>
18602 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
18603 and bool_var == 1 -> bool_var simplifications ...
18604 * match.pd: ... to patterns here. Factor out negate_expr_p
18605 cases from the A - B -> A + (-B) patterns as negate_expr_p
18606 predicate and add a -(A + B) -> (-B) - A pattern.
18608 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
18610 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
18612 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
18613 Robert Suchanek <robert.suchanek@imgtec.com>
18615 * config/mips/mips.c (mips_int_mask): New enum.
18616 (mips_shadow_set): Likewise.
18617 (int_mask): New variable.
18618 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
18619 (machine_function): Add int_mask and use_shadow_register_set.
18620 (mips_attribute_table): Add attribute handlers for interrupt and
18621 use_shadow_register_set.
18622 (mips_interrupt_mask): New static function.
18623 (mips_handle_interrupt_attr): Likewise.
18624 (mips_handle_use_shadow_register_set_attr): Likewise.
18625 (mips_use_shadow_register_set): Change return type to enum
18626 mips_shadow_set. Add argument handling for use_shadow_register_set
18628 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
18629 compare with mips_shadow_set enum.
18630 (mips_compute_frame_info): Add interrupt mask and
18631 use_shadow_register_set to per-function information structure.
18632 Add a stack slot for EPC unconditionally.
18633 (mips_expand_prologue): Compare use_shadow_register_set value
18634 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
18635 masked interrupt register but in EIC mode use K0 and save Cause in K0.
18636 EPC saved and restored unconditionally. Use PMODE_INSN macro when
18637 copying the stack pointer from the shadow register set.
18638 * config/mips/mips.h (SR_IM0): New define.
18639 * config/mips/mips.md (mips_rdpgpr): Rename to...
18640 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
18641 * doc/extend.texi (Declaring Attributes of Functions): Document
18642 optional arguments for interrupt and use_shadow_register_set
18645 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
18647 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
18648 interrupt attribute.
18649 (mips_expand_prologue): Disable the floating point unit in an ISR.
18650 * config/mips/mips.h (SR_COP1): New define.
18652 2015-07-15 Richard Biener <rguenther@suse.de>
18654 * genmatch.c (parser::peek, parser::peek_ident): Add argument
18655 to tell how many tokens to peek ahead (default 1).
18656 (parser::eat_token, parser::eat_ident): Return token consumed.
18657 (parser::parse_result): Parse new switch statement.
18658 * match.pd: Use case statements where appropriate.
18660 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
18662 PR rtl-optimization/58066
18663 * calls.c (expand_call): Precompute register parameters before stack
18664 alignment is performed.
18666 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
18668 PR rtl-optimization/66838
18669 * postreload.c (reload_cse_move2add): Also process
18670 CALL_INSN_FUNCTION_USAGE when resetting information of
18671 call-clobbered registers.
18673 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18674 Cesar Philippidis <cesar@codesourcery.com>
18675 Chung-Lin Tang <cltang@codesourcery.com>
18677 * config/nios2/constraints.md (U, v): New constraints.
18678 * config/nios2/predicates.md (rdprs_dcache_operand): New.
18679 (ldstex_memory_operand): New.
18680 * config/nios2/sync.md: New file.
18681 * config/nios2/nios2.md (unspecv): Add new builtin function
18683 (rdprs, flushd, flushda, wrpie, eni): New patterns.
18684 (top-level): Include sync.md.
18685 * config/nios2/nios2.c (N2_FTYPES): Add function types for
18687 (N2_BUILTINS): Add arch field setting, add new builtins.
18688 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
18690 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
18691 Also handle ldex/stex/ldsex/stsex builtins.
18692 (nios2_expand_rdprs_builtin): New function.
18693 (nios2_expand_cache_builtin): New function.
18694 (nios2_expand_wrpie_builtin): New function.
18695 (nios2_expand_eni_builtin): New function.
18696 (nios2_expand_builtin): Add arch field handling and new builtin
18698 * doc/extend.texi (Altera Nios II Built-in Functions): Document
18700 * doc/md.texi (Machine Constraints): Document U and v constraints.
18702 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18703 Cesar Philippidis <cesar@codesourcery.com>
18704 Chung-Lin Tang <cltang@codesourcery.com>
18706 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
18707 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
18708 callee_save_reg_size and uses_anonymous_args fields.
18709 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
18710 (nios2_create_cfa_notes): New function.
18711 (nios2_adjust_stack): New function for adjusting stack.
18712 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
18713 Use nios2_adjust_stack.
18714 (nios2_expand_epilogue): Likewise.
18715 (nios2_expand_return): New function.
18716 (nios2_can_use_return_insn): Update for CDX pop.n usage.
18717 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
18718 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
18719 * config/nios2/nios2.md (return): Use nios2_expand_return.
18721 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18722 Cesar Philippidis <cesar@codesourcery.com>
18723 Chung-Lin Tang <cltang@codesourcery.com>
18725 * config/nios2/predicates.md (pop_operation): New.
18726 (ldwm_operation, stwm_operation): New.
18727 (nios2_hard_register_operand): New.
18728 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
18729 (ldstwm_operation_p): Declare.
18730 (gen_ldstwm_peep): Declare.
18731 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
18732 (base_reg_adjustment_p): New.
18733 (pop_operation_p): New.
18734 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
18735 (nios2_ldstwm_regset_p): New.
18736 (ldstwm_operation_p): New.
18738 (nios2_ldst_parallel): New.
18739 (struct ldswm_operand): Declare.
18740 (compare_ldstwm_operands): New.
18741 (can_use_cdx_ldstw): New.
18742 (gen_ldstwm_peep): New.
18743 * config/nios2/nios2-ldstwm.sml: New.
18744 * config/nios2/nios2.md: Include ldstwm.md.
18745 * config/nios2/ldstwm.md: Generated.
18747 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18748 Cesar Philippidis <cesar@codesourcery.com>
18749 Chung-Lin Tang <cltang@codesourcery.com>
18751 * config/nios2/nios2.h (LABEL_ALIGN): Define.
18752 (REG_ALLOC_ORDER): Define.
18753 (ADJUST_REG_ALLOC_ORDER): Define.
18754 (HONOR_REG_ALLOC_ORDER): Define.
18755 (CDX_REG_P): Define.
18756 (ANDCLEAR_INT): Define.
18757 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
18758 (nios2_label_align): Declare.
18759 (nios2_cdx_narrow_form_p): Declare.
18760 (nios2_adjust_reg_alloc_order): Declare.
18761 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
18763 (nios2_large_unspec_reloc_p): New function, split from...
18764 (nios2_legitimate_pic_operand_p): ...here.
18765 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
18766 (nios2_print_operand_punct_valid_p): New.
18767 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
18768 (split_mem_address): New.
18769 (split_alu_insn): New.
18771 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
18772 (enum nios2_add_insn_kind): New.
18773 (nios2_add_insn_names, nios2_add_insn_narrow): New.
18774 (nios2_add_insn_classify): New.
18775 (nios2_add_insn_asm): New.
18776 (nios2_cdx_narrow_form_p): New.
18777 (label_align, min_labelno, max_labelno): New.
18778 (nios2_reorg): New.
18779 (nios2_label_align): New.
18780 (nios2_adjust_reg_alloc_order): New.
18781 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18782 (TARGET_MACHINE_DEPENDENT_REORG): Define.
18783 * config/nios2/constraints.md (P): New constraint.
18784 * config/nios2/predicates.md (const_and_operand): New.
18785 (and_operand): New.
18786 (stack_memory_operand): New.
18787 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
18788 (length): Update to use nios2_cdx_narrow_form_p().
18789 (type): Add new insn type values.
18790 (control, alu, st, ld, shift): Update insn reservations with
18791 new insn type values.
18792 (*high, *lo_sum): Define new insn patterns for constant generation.
18793 (movqi_internal, movhi_internal, movsi_internal): Reduce
18794 alternatives, update asm template to handle CDX variants, update
18796 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
18797 template, update type attributes.
18798 (extendhisi2, extendqi<mode>2): Likewise.
18799 (addsi3): Change to use function for asm string.
18800 (subsi3): Add CDX notation to asm template, update type attributes.
18801 (negsi3, one_cmplsi3): Likewise.
18802 (andsi3): New pattern, specialized from logical patterns.
18803 (<code>si3): Remove and case, combine alternatives, update asm
18805 (<shift_op>si3): Add CDX notation, update type attributes.
18806 (rotrsi3): Update type attribute.
18807 (*merge, extzv, insv): New insn patterns.
18808 (return): Change to define_expand.
18809 (simple_return): Add CDX notation, update type attributes.
18810 (indirect_jump): Add CDX notation.
18811 (jump): Update asm cases, update length attribute expression.
18812 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
18813 (nios2_cbranch): Update asm cases and length attribute expression
18814 to handle CDX variants.
18815 (nios2_cmp<code>): Update asm template.
18816 (nop): Add CDX notation, update type attributes.
18817 (trap): Add CDX notation.
18818 (ctrapsi4): Update asm cases and length attribute expression to
18819 handle CDX variant.
18820 * doc/md.texi (Machine Constraints): Document P constraint.
18822 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18823 Cesar Philippidis <cesar@codesourcery.com>
18824 Chung-Lin Tang <cltang@codesourcery.com>
18826 * config/nios2/nios2.h (SMALL_INT12): New macro.
18827 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
18828 (nios2_valid_addr_expr_p): Use it.
18829 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
18830 with implicit "io" instructions on R2.
18831 * config/nios2/constraints.md (w): New constraint.
18832 * config/nios2/predicates.md (ldstio_memory_operand): New.
18833 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
18834 operand predicate and constraint.
18835 (ld<bh>io_signed, st<bhw>io>): Likewise.
18836 * doc/md.texi (Machine Constraints): Document w constraint.
18838 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18839 Cesar Philippidis <cesar@codesourcery.com>
18840 Chung-Lin Tang <cltang@codesourcery.com>
18842 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
18843 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
18844 Nios II architecture level.
18845 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
18846 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
18847 (OPTION_DEFAULT_SPECS): Define.
18848 (ASM_SPEC): Add -march= spec strings.
18849 * config/nios2/nios2.c (nios2_option_override): Check for
18850 conflicts involving new options.
18851 * config.gcc (nios2*-*-*): Support --with-arch=.
18852 * doc/invoke.texi (Option Summary, Nios II Options): Document
18853 -march=, -mbmx, and -mcdx.
18855 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
18857 PR rtl-optimization/66626
18858 * lra-constraints.c (lra_constraints): Prevent equivalence
18859 substitution for static chain pseudo in functions with nonlocal
18862 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18864 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
18865 (nios2_emit_stack_limit_check): Add size parameter. Handle
18866 -fstack-limit-symbol as well as -fstack-limit-register.
18867 (nios2_expand_prologue): Emit only a single stack limit check,
18868 even if multiple stack adjustments are required.
18869 (nios2_option_override): Diagnose unsupported combination of -fpic
18870 and -stack-limit-symbol.
18872 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
18874 * Makefile.in (top_srcdir): New.
18875 * configure.ac: Use AM_ZLIB.
18876 * configure: Regeneated.
18878 2015-07-14 Matthias Klose <doko@ubuntu.com>
18881 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
18883 2015-07-14 Richard Biener <rguenther@suse.de>
18885 PR tree-optimization/66863
18886 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
18887 what we record for conversion use stmt lhs inequalities.
18889 2015-07-14 Richard Biener <rguenther@suse.de>
18891 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
18892 (decision_tree::gen_gimple): Likewise.
18894 2015-07-14 Tom de Vries <tom@codesourcery.com>
18896 * gcc.c (greater_than_spec_func): Declare forward.
18897 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
18898 -ftree-parallelize-loops={0,1}.
18899 (static_spec_functions): Add greater_than_spec_func function with name
18901 (greater_than_spec_func): New function.
18903 2015-07-14 Richard Biener <rguenther@suse.de>
18905 * tree-ssa-dom.c (record_temporary_equivalences): Merge
18906 wideing type conversion case from record_equivalences_from_incoming_edge
18907 and use record_equality to record equivalences.
18908 (record_equivalences_from_incoming_edge): Call
18909 record_temporary_equivalences.
18911 2015-07-14 Richard Biener <rguenther@suse.de>
18913 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
18914 (struct if_expr): New.
18915 (struct with_expr): Likewise.
18916 (is_a_helper): Add helpers for if_expr and with_expr.
18917 (struct simplify): Add simplify_kind enum and member. Remove
18919 (simplify::simplify): Adjust.
18920 (lower_commutative): Adjust.
18921 (lower_opt_convert): Likewise.
18922 (lower_cond): Likewise.
18923 (replace_id): Handle with_expr and if_expr.
18924 (lower_for): Adjust.
18925 (dt_simplify::gen_1): New recursive worker, split out from ...
18926 (dt_simplify::gen): ... here. Deal with if and with expansion
18928 (capture_info::capture_info): Take context argument
18929 (capture_info::walk_result): Only analyze specific result.
18930 (parser::parse_result): New function.
18931 (parser::parse_simplify): Adjust to parse ifs with then end
18933 (parser::parse_if): Simplify.
18934 (parser::parse_pattern): Pass down simplify kind.
18935 * match.pd: Convert if structure to new syntax.
18937 2015-07-13 Marek Polacek <polacek@redhat.com>
18939 * rtl.c (rtx_equal_p_cb): Fix typo.
18941 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
18943 * omega.h: Don't include config.h, don't include params.h again if
18944 omega.h has already been included.
18945 * graphite-poly.h: Include sese.h.
18946 * graphite.c: Don't include sese.h, remove needless includes and
18947 minimize includes outside #ifdef HAVE_isl block.
18948 * graphite-blocking.c: Don't include sese.h, remove needless includes,
18949 and wrap entire file in #ifdef HAVE_isl
18950 * graphite-dependences.c: Likewise.
18951 * graphite-interchange.c: Likewise.
18952 * graphite-isl-ast-to-gimple.c: Likewise.
18953 * graphite-optimize-isl.c: Likewise.
18954 * graphite-poly.c: Likewise.
18955 * graphite-scop-detection.c: Likewise.
18956 * graphite-sese-to-poly.c: Likewise.
18958 2015-07-13 Tom de Vries <tom@codesourcery.com>
18960 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
18962 2015-07-13 Renlin Li <renlin.li@arm.com>
18965 * simplify-rtx.c (simplify_const_relational_operation): Add
18966 side_effects_p checks.
18968 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
18970 * bitmap.h: Fix double word typos.
18971 * builtins.c: Same.
18973 * cfgloopmanip.c: Same.
18976 * cgraphclones.c: Same.
18978 * config/aarch64/aarch64-protos.h: Same.
18979 * config/aarch64/aarch64.c: Same.
18980 * config/aarch64/aarch64.md: Same.
18981 * config/arm/arm.md: Same.
18982 * config/arm/arm1020e.md: Same.
18983 * config/arm/arm1026ejs.md: Same.
18984 * config/arm/arm926ejs.md: Same.
18985 * config/arm/fa526.md: Same.
18986 * config/arm/fa606te.md: Same.
18987 * config/arm/fa626te.md: Same.
18988 * config/arm/fa726te.md: Same.
18989 * config/arm/fmp626.md: Same.
18990 * config/darwin.c: Same.
18991 * config/epiphany/epiphany.c: Same.
18992 * config/frv/frv.c: Same.
18993 * config/ft32/ft32.c: Same.
18994 * config/gnu-user.h: Same.
18995 * config/h8300/constraints.md: Same.
18996 * config/i386/i386.c: Same.
18997 * config/i386/i386.md: Same.
18998 * config/iq2000/iq2000.md: Same.
18999 * config/mips/mips.c: Same.
19000 * config/mmix/mmix.md: Same.
19001 * config/moxie/moxie.c: Same.
19002 * config/nds32/nds32.md: Same.
19003 * config/pa/pa.h: Same.
19004 * config/rs6000/aix.h: Same.
19005 * config/rs6000/rs6000.h: Same.
19006 * config/sh/sh.c: Same.
19007 * config/tilegx/tilegx.md: Same.
19008 * config/tilepro/gen-mul-tables.cc: Same.
19011 * doc/invoke.texi: Same.
19013 * dwarf2out.c: Same.
19016 * genmatch.c: Same.
19017 * gimplify.c: Same.
19018 * hash-table.h: Same.
19019 * internal-fn.c: Same.
19021 * ipa-devirt.c: Same.
19024 * ipa-profile.c: Same.
19025 * ipa-prop.c: Same.
19026 * ipa-prop.h: Same.
19029 * reg-stack.c: Same.
19030 * regcprop.c: Same.
19035 * tree-inline.c: Same.
19036 * tree-sra.c: Same.
19037 * tree-ssa-dom.c: Same.
19038 * tree-ssa-loop-ivopts.c: Same.
19039 * tree-ssa-structalias.c: Same.
19040 * tree-ssa-tail-merge.c: Same.
19041 * tree-ssa-ter.c: Same.
19042 * tree-ssa-threadupdate.c: Same.
19043 * tree-ssa-uninit.c: Same.
19044 * tree-ssanames.c: Same.
19045 * tree-vect-loop-manip.c: Same.
19046 * tree-vrp.c: Same.
19048 * valtrack.c: Same.
19051 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
19053 PR middle-end/66726
19054 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
19055 tree_ssa_phiopt_worker): Call it.
19057 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
19059 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
19060 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
19063 2015-07-11 Marek Polacek <polacek@redhat.com>
19065 PR middle-end/66353
19066 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
19067 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
19068 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
19069 rather than bb_has_abnormal_call_pred.
19070 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
19071 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
19072 rather than bb_has_abnormal_call_pred.
19074 2015-07-10 Anatoly Sokolov <aesok@post.ru>
19076 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
19077 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
19078 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19079 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
19080 v850_legitimate_address_p): New functions.
19081 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
19083 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
19086 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
19087 indirect sibcall with register arguments if register available
19088 for argument passing.
19089 (init_cumulative_args): Set cfun->machine->arg_reg_available
19090 to (cum->nregs > 0) or to true if function has a variable
19092 (function_arg_advance_32): Set cfun->machine->arg_reg_available
19093 to false if cum->nregs <= 0.
19094 * config/i386/i386.h (machine_function): Add arg_reg_available.
19096 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
19098 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
19099 and gen_higpart instead of gen_rtx_SUBREG.
19100 * config/i386/i386.md
19101 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
19102 (read-modify peephole2): Use gen_lowpart instead of
19103 gen_rtx_SUBREG for operand 5.
19105 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
19107 * config/tilepro/gen-mul-tables.cc (main): Change include list for
19109 * config/tilepro/mul-tables.c: Regenerate.
19110 * config/tilegx/mul-tables.c: Regenerate.
19112 2015-07-10 Richard Biener <rguenther@suse.de>
19114 * fold-const.c (distribute_bit_expr): Remove.
19115 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
19116 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
19117 to A & (B | C) and simplifying A << C1 << C2 to ...
19118 * match.pd: ... patterns here.
19120 2015-07-10 Jiong Wang <jiong.wang@arm.com>
19122 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19123 Mark mem as READONLY and NOTRAP for PIC symbol.
19125 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
19127 * gimple-predict.h: New file.
19128 (gimple_predict_predictor, gimple_predict_set_predictor,
19129 gimple_predict_outcome, gimple_predict_set_outcome,
19130 gimple_build_predict): Relocate here.
19131 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
19132 gimple_predict_outcome, gimple_predict_set_outcome): Move to
19134 * gimple.c (gimple_build_predict): Move to gimple-predict.h
19135 * basic-block.h: Don't include cfghooks.h.
19136 * backend.h: Don't include predict.h.
19137 * cfghooks.h: Include predict.h.
19138 * gimple-pretty-print.c: Include gimple-predict.h.
19139 * gimplify.c: Likwise.
19140 * predict.c: Adjust includes.
19141 * tree-inline.c: Likewise.
19142 * asan.c: Likewise.
19143 * auto-inc-dec.c: Likewise.
19144 * auto-profile.c: Likewise.
19145 * bb-reorder.c: Likewise.
19146 * builtins.c: Likewise.
19147 * caller-save.c: Likewise.
19148 * calls.c: Likewise.
19149 * cfganal.c: Likewise.
19150 * cfgbuild.c: Likewise.
19152 * cfgcleanup.c: Likewise.
19153 * cfgexpand.c: Likewise.
19154 * cfghooks.c: Likewise.
19155 * cfgloopanal.c: Likewise.
19156 * cfgloop.c: Likewise.
19157 * cfgloopmanip.c: Likewise.
19158 * cfgrtl.c: Likewise.
19159 * cgraph.c: Likewise.
19160 * cgraphunit.c: Likewise.
19161 * combine.c: Likewise.
19162 * cprop.c: Likewise.
19165 * dojump.c: Likewise.
19167 * except.c: Likewise.
19168 * expmed.c: Likewise.
19169 * expr.c: Likewise.
19170 * final.c: Likewise.
19171 * fold-const.c: Likewise.
19172 * function.c: Likewise.
19173 * fwprop.c: Likewise.
19174 * gcc-plugin.h: Likewise.
19175 * gcse.c: Likewise.
19176 * genattrtab.c: Likewise.
19177 * genemit.c: Likewise.
19178 * gengtype.c: Likewise.
19179 * genopinit.c: Likewise.
19180 * genoutput.c: Likewise.
19181 * genpreds.c: Likewise.
19182 * genrecog.c: Likewise.
19183 * gimple-fold.c: Likewise.
19184 * gimple-iterator.c: Likewise.
19185 * gimple-ssa-isolate-paths.c: Likewise.
19186 * gimple-ssa-strength-reduction.c: Likewise.
19187 * graph.c: Likewise.
19188 * graphite-blocking.c: Likewise.
19189 * graphite.c: Likewise.
19190 * graphite-dependences.c: Likewise.
19191 * graphite-interchange.c: Likewise.
19192 * graphite-isl-ast-to-gimple.c: Likewise.
19193 * graphite-optimize-isl.c: Likewise.
19194 * graphite-poly.c: Likewise.
19195 * graphite-scop-detection.c: Likewise.
19196 * graphite-sese-to-poly.c: Likewise.
19197 * haifa-sched.c: Likewise.
19198 * ifcvt.c: Likewise.
19199 * internal-fn.c: Likewise.
19200 * ipa-cp.c: Likewise.
19201 * ipa-profile.c: Likewise.
19202 * ipa-split.c: Likewise.
19203 * ipa-utils.c: Likewise.
19204 * ira-build.c: Likewise.
19205 * ira-color.c: Likewise.
19206 * ira-conflicts.c: Likewise.
19207 * ira-costs.c: Likewise.
19208 * ira-emit.c: Likewise.
19209 * ira-lives.c: Likewise.
19210 * jump.c: Likewise.
19211 * loop-doloop.c: Likewise.
19212 * loop-init.c: Likewise.
19213 * loop-invariant.c: Likewise.
19214 * loop-unroll.c: Likewise.
19215 * lower-subreg.c: Likewise.
19216 * lra-assigns.c: Likewise.
19218 * lra-coalesce.c: Likewise.
19219 * lra-constraints.c: Likewise.
19220 * lra-lives.c: Likewise.
19221 * lto-cgraph.c: Likewise.
19222 * lto-streamer-in.c: Likewise.
19223 * mode-switching.c: Likewise.
19224 * modulo-sched.c: Likewise.
19225 * omp-low.c: Likewise.
19226 * optabs.c: Likewise.
19227 * passes.c: Likewise.
19228 * postreload.c: Likewise.
19229 * postreload-gcse.c: Likewise.
19230 * profile.c: Likewise.
19231 * recog.c: Likewise.
19232 * regstat.c: Likewise.
19233 * reload1.c: Likewise.
19234 * reorg.c: Likewise.
19235 * rtlanal.c: Likewise.
19236 * sched-ebb.c: Likewise.
19237 * sel-sched-ir.c: Likewise.
19238 * sese.c: Likewise.
19239 * shrink-wrap.c: Likewise.
19240 * simplify-rtx.c: Likewise.
19241 * stmt.c: Likewise.
19242 * store-motion.c: Likewise.
19243 * tracer.c: Likewise.
19244 * trans-mem.c: Likewise.
19245 * tree-call-cdce.c: Likewise.
19246 * tree-cfg.c: Likewise.
19247 * tree-cfgcleanup.c: Likewise.
19248 * tree-chkp.c: Likewise.
19249 * tree-complex.c: Likewise.
19250 * tree-eh.c: Likewise.
19251 * tree-if-conv.c: Likewise.
19252 * tree-loop-distribution.c: Likewise.
19253 * tree-outof-ssa.c: Likewise.
19254 * tree-parloops.c: Likewise.
19255 * tree-predcom.c: Likewise.
19256 * tree-pretty-print.c: Likewise.
19257 * tree-profile.c: Likewise.
19258 * tree-sra.c: Likewise.
19259 * tree-ssa.c: Likewise.
19260 * tree-ssa-coalesce.c: Likewise.
19261 * tree-ssa-dce.c: Likewise.
19262 * tree-ssa-dom.c: Likewise.
19263 * tree-ssa-forwprop.c: Likewise.
19264 * tree-ssa-ifcombine.c: Likewise.
19265 * tree-ssa-loop-ch.c: Likewise.
19266 * tree-ssa-loop-im.c: Likewise.
19267 * tree-ssa-loop-ivcanon.c: Likewise.
19268 * tree-ssa-loop-ivopts.c: Likewise.
19269 * tree-ssa-loop-manip.c: Likewise.
19270 * tree-ssa-loop-prefetch.c: Likewise.
19271 * tree-ssa-loop-unswitch.c: Likewise.
19272 * tree-ssa-math-opts.c: Likewise.
19273 * tree-ssa-phiopt.c: Likewise.
19274 * tree-ssa-pre.c: Likewise.
19275 * tree-ssa-reassoc.c: Likewise.
19276 * tree-ssa-sink.c: Likewise.
19277 * tree-ssa-tail-merge.c: Likewise.
19278 * tree-ssa-threadedge.c: Likewise.
19279 * tree-ssa-threadupdate.c: Likewise.
19280 * tree-switch-conversion.c: Likewise.
19281 * tree-tailcall.c: Likewise.
19282 * tree-vect-data-refs.c: Likewise.
19283 * tree-vect-loop.c: Likewise.
19284 * tree-vect-loop-manip.c: Likewise.
19285 * tree-vectorizer.c: Likewise.
19286 * tree-vrp.c: Likewise.
19287 * ubsan.c: Likewise.
19288 * value-prof.c: Likewise.
19289 * varasm.c: Likewise.
19290 * var-tracking.c: Likewise.
19291 * config/aarch64/aarch64-builtins.c: Likewise.
19292 * config/aarch64/aarch64.c: Likewise.
19293 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19294 * config/alpha/alpha.c: Likewise.
19295 * config/arc/arc.c: Likewise.
19296 * config/arm/arm.c: Likewise.
19297 * config/avr/avr.c: Likewise.
19298 * config/bfin/bfin.c: Likewise.
19299 * config/c6x/c6x.c: Likewise.
19300 * config/cr16/cr16.c: Likewise.
19301 * config/cris/cris.c: Likewise.
19302 * config/darwin.c: Likewise.
19303 * config/darwin-c.c: Likewise.
19304 * config/epiphany/epiphany.c: Likewise.
19305 * config/epiphany/mode-switch-use.c: Likewise.
19306 * config/epiphany/resolve-sw-modes.c: Likewise.
19307 * config/fr30/fr30.c: Likewise.
19308 * config/frv/frv.c: Likewise.
19309 * config/ft32/ft32.c: Likewise.
19310 * config/h8300/h8300.c: Likewise.
19311 * config/i386/i386.c: Likewise.
19312 * config/i386/winnt.c: Likewise.
19313 * config/ia64/ia64.c: Likewise.
19314 * config/iq2000/iq2000.c: Likewise.
19315 * config/lm32/lm32.c: Likewise.
19316 * config/m32c/m32c.c: Likewise.
19317 * config/m32r/m32r.c: Likewise.
19318 * config/m68k/m68k.c: Likewise.
19319 * config/mcore/mcore.c: Likewise.
19320 * config/mep/mep.c: Likewise.
19321 * config/microblaze/microblaze.c: Likewise.
19322 * config/mips/mips.c: Likewise.
19323 * config/mmix/mmix.c: Likewise.
19324 * config/mn10300/mn10300.c: Likewise.
19325 * config/moxie/moxie.c: Likewise.
19326 * config/msp430/msp430.c: Likewise.
19327 * config/nds32/nds32.c: Likewise.
19328 * config/nds32/nds32-cost.c: Likewise.
19329 * config/nds32/nds32-fp-as-gp.c: Likewise.
19330 * config/nds32/nds32-intrinsic.c: Likewise.
19331 * config/nds32/nds32-isr.c: Likewise.
19332 * config/nds32/nds32-md-auxiliary.c: Likewise.
19333 * config/nds32/nds32-memory-manipulation.c: Likewise.
19334 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19335 * config/nds32/nds32-predicates.c: Likewise.
19336 * config/nios2/nios2.c: Likewise.
19337 * config/nvptx/nvptx.c: Likewise.
19338 * config/pa/pa.c: Likewise.
19339 * config/pdp11/pdp11.c: Likewise.
19340 * config/rl78/rl78.c: Likewise.
19341 * config/rs6000/rs6000.c: Likewise.
19342 * config/rx/rx.c: Likewise.
19343 * config/s390/s390.c: Likewise.
19344 * config/sh/sh.c: Likewise.
19345 * config/sh/sh-mem.cc: Likewise.
19346 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19347 * config/sh/sh_treg_combine.cc: Likewise.
19348 * config/sparc/sparc.c: Likewise.
19349 * config/spu/spu.c: Likewise.
19350 * config/stormy16/stormy16.c: Likewise.
19351 * config/tilegx/tilegx.c: Likewise.
19352 * config/tilepro/tilepro.c: Likewise.
19353 * config/v850/v850.c: Likewise.
19354 * config/vax/vax.c: Likewise.
19355 * config/visium/visium.c: Likewise.
19356 * config/xtensa/xtensa.c: Likewise.
19358 2015-07-10 Richard Biener <rguenther@suse.de>
19360 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
19361 (decision_tree::gen_gimple): Likewise.
19362 (decision_tree::gen_generic): Likewise.
19364 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
19367 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
19368 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
19370 2015-07-10 Jakub Jelinek <jakub@redhat.com>
19372 PR middle-end/66820
19373 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
19374 or ORT_TASK contexts.
19375 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
19378 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19380 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
19383 2015-07-10 Tom de Vries <tom@codesourcery.com>
19385 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
19386 insert nit + 1 bound.
19388 2015-07-10 Richard Biener <rguenther@suse.de>
19390 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
19391 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
19392 (if_convertible_loop_p_1): For this always compute bb predicates.
19393 (if_convertible_loop_p): And free them.
19395 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19397 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
19400 2015-07-10 Richard Biener <rguenther@suse.de>
19402 PR tree-optimization/66823
19403 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
19404 inverted predicate.
19406 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
19408 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
19409 to handle mips[32|64]r3 and mips[32|64]r5.
19411 2015-07-09 Jakub Jelinek <jakub@redhat.com>
19413 PR middle-end/66633
19414 * tree-nested.c (get_static_chain): Or in a flag into
19415 info->static_chain_added.
19416 (get_frame_field, get_nonlocal_debug_decl): Likewise.
19417 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
19418 2015-07-01 changes.
19419 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
19420 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
19423 PR tree-optimization/66718
19424 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
19426 (vect_simd_lane_linear): New function.
19427 (vectorizable_simd_clone_call): Support using linear arguments for
19428 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
19430 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19433 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
19435 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
19437 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
19438 Use machine mode, not enum machine_mode in the prototype.
19440 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
19441 classify 128-bit floating point support.
19442 (FLOAT128_IBM_P): Likewise.
19443 (FLOAT128_VECTOR_P): Likewise.
19444 (FLOAT128_2REG_P): Likewise.
19445 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
19446 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
19447 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
19448 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
19450 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
19451 tests against TFmode/TDmode, since those modes do not use VSX
19453 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
19455 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
19456 tests against TFmode, etc.
19457 (invalid_e500_subreg): Add tests against IFmode/KFmode.
19458 (reg_offset_addressing_ok_p): Likewise.
19459 (rs6000_legitimate_offset_address_p): Likewise.
19460 (rs6000_legitimize_address): Likewise.
19461 (rs6000_legitimize_reload_address): Likewise.
19462 (rs6000_legitimate_address_p): Clean up tests against TFmode and
19463 TDmode to use the new helper macros, which will include IFmode and
19465 (rs6000_emit_move): Likewise.
19466 (rs6000_darwin64_record_arg_recurse): Likewise.
19467 (print_operand): Likewise.
19468 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
19469 that uses a single vector register as a vector and not as a
19470 floating point register in terms of the calling sequence.
19471 (rs6000_discover_homogeneous_aggregate): Likewise.
19472 (rs6000_return_in_memory): Likewise.
19473 (init_cumulative_args): Likewise.
19474 (rs6000_function_arg_boundary): Likewise.
19475 (rs6000_function_arg_advance_1): Likewise.
19476 (rs6000_function_arg): Likewise.
19477 (rs6000_pass_by_reference): Likewise.
19478 (rs6000_gimplify_va_arg): Likewise.
19479 (rs6000_secondary_reload_memory): Use machine_mode not enum
19481 (rs6000_split_multireg_move): Use new helper macros.
19482 (spe_func_has_64bit_regs_p): Likewise.
19483 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
19484 (output_toc): Use new helper macros.
19485 (rs6000_register_move_cost): Likewise.
19486 (rs6000_function_value): Add IEEE 128-bit floating point calling
19488 (rs6000_libcall_value): Likewise.
19489 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
19490 floating point support.
19491 (rs6000_vector_mode_supported_p): Likewise.
19493 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
19495 PR rtl-optimization/66782
19496 * lra-int.h (struct lra_insn_recog_data): Add comment about
19497 clobbered hard regs for arg_hard_regs.
19498 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
19499 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
19500 Add condition for processing used hard regs.
19501 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
19502 Process clobbered hard regs.
19504 2015-07-09 Michael Matz <matz@suse.de>
19506 * genmatch.c (fprintf_indent): New function.
19507 (operand::gen_transform): Add indent parameter.
19508 (expr::gen_transform, c_expr::gen_transform,
19509 capture::gen_transform): Ditto and use fprintf_indent.
19510 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
19511 (dt_operand::gen, dt_operand::gen_predicate,
19512 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
19513 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
19514 (decision_tree::gen_gimple): Adjust calls and indent generated
19516 (decision_tree::gen_generic): Ditto.
19517 (write_predicate): Ditto.
19519 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
19522 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
19523 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
19524 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
19525 {GENERAL,SSE,MMX}_REG_P where appropriate.
19527 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
19529 * lto-streamer.h: Don't include target.h and alloc-pool.h.
19530 * builtins.c: Adjust includes.
19531 * gimple.c: Likewise.
19532 * ipa-icf.c: Likewise.
19533 * lto-opts.c: Likewise.
19534 * ipa-reference.c: Likewise.
19535 * lto-section-out.c: Likewise.
19536 * lto-streamer-in.c: Likewise.
19537 * lto-streamer-out.c: Likewise.
19538 * opts-global.c: Likewise.
19539 * symtab.c: Likewise.
19540 * tree-chkp.c: Likewise.
19541 * tree-ssa-live.c: Likewise.
19542 * tree-streamer-in.c: Likewise.
19543 * tree-streamer-out.c: Likewise.
19544 * config/darwin.c: Likewise.
19545 * config/i386/winnt.c: Likewise.
19547 2015-07-09 Richard Biener <rguenther@suse.de>
19549 * genmatch.c (struct expr): Add force_single_use flag.
19550 (expr::expr): Add copy constructor.
19551 (capture_info::walk_match): Gather force_single_use captures.
19552 (expr::gen_transform): Use possibly NULLified sequence.
19553 (dt_simplify::gen): Apply single-use restrictions by NULLifying
19554 seq if any constrained expr is not single-use.
19555 (parser::parse_expr): Refactor to allow multiple flags. Handle
19556 's' flag to force an expression have a single-use if the pattern
19557 simplifies to more than one statement.
19558 * match.pd: Convert most single_use conditionals to :s flags.
19560 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19562 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
19563 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19564 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
19566 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
19568 * flags.h: Don't include flag-types.h or options.h.
19569 * opts-common.c: Adjust includes.
19570 * opts-global.c: Likewise.
19571 * common/config/epiphany/epiphany-common.c: Likewise.
19573 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19576 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
19579 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19582 * config/i386/i386.c (ix86_return_in_memory): Return true
19583 if int_size_in_bytes returns negative for IA MCU.
19585 2015-07-09 Marek Polacek <polacek@redhat.com>
19587 PR tree-optimization/66718
19588 * Makefile.in (OBJS): Add gimple-laddress.o.
19589 * passes.def: Schedule pass_laddress.
19590 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
19591 * tree-pass.h (make_pass_laddress): Declare.
19592 * gimple-laddress.c: New file.
19594 2015-07-09 Richard Biener <rguenther@suse.de>
19596 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
19598 2015-07-09 Richard Biener <rguenther@suse.de>
19600 PR tree-optimization/66807
19601 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
19603 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
19605 * function.c (stack_protect_epilogue): Use if rather than switch for
19606 check targetm.have_stack_protect_test.
19608 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19610 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
19611 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
19612 * config/arc/arc.h: Likewise.
19613 * config/arm/arm.h: Likewise.
19614 * config/bfin/bfin.h: Likewise.
19615 * config/epiphany/epiphany.h: Likewise.
19616 * config/frv/frv.h: Likewise.
19617 * config/ia64/ia64.h: Likewise.
19618 * config/iq2000/iq2000.h: Likewise.
19619 * config/lm32/lm32.h: Likewise.
19620 * config/m32r/m32r.h: Likewise.
19621 * config/mcore/mcore.h: Likewise.
19622 * config/mep/mep.h: Likewise.
19623 * config/microblaze/microblaze.h: Likewise.
19624 * config/mips/mips.h: Likewise.
19625 * config/mmix/mmix.h: Likewise.
19626 * config/mn10300/mn10300.h: Likewise.
19627 * config/nds32/nds32.h: Likewise.
19628 * config/nios2/nios2.h: Likewise.
19629 * config/pa/pa.h: Likewise.
19630 * config/rl78/rl78.h: Likewise.
19631 * config/sh/sh.h: Likewise.
19632 * config/sparc/sparc.h: Likewise.
19633 * config/stormy16/stormy16.h: Likewise.
19634 * config/tilegx/tilegx.h: Likewise.
19635 * config/tilepro/tilepro.h: Likewise.
19636 * config/v850/v850.h: Likewise.
19637 * config/xtensa/xtensa.h: Likewise.
19638 * doc/tm.texi: Regenerate.
19639 * doc/tm.texi.in: Adjust.
19640 * combine.c (simplify_set): Likewise.
19641 (simplify_comparison): Likewise.
19642 * expr.c (store_constructor): Likewise.
19643 * internal-fn.c (expand_arith_overflow): Likewise.
19644 * reload.c (push_reload): Likewise.
19645 (find_reloads): Likewise.
19646 (find_reloads_subreg_address): Likewise.
19647 * reload1.c (eliminate_regs_1): Likewise.
19648 * rtlanal.c (nonzero_bits1): Likewise.
19649 (num_sign_bit_copies1): Likewise.
19650 * simplify-rtx.c (simplify_truncation): Likewise.
19652 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19654 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
19655 of AUTO_INC_DEC with the preprocessor.
19656 * combine.c (combine_instructions): Likewise.
19657 (can_combine_p): Likewise.
19658 (try_combine): Likewise.
19659 * emit-rtl.c (try_split): Likewise.
19660 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
19661 * lower-subreg.c (resolve_simple_move): Likewise.
19662 * lra.c (update_inc_notes): Likewise.
19663 * recog.c (asm_operand_ok): Likewise.
19664 (constrain_operands): Likewise.
19665 * regrename.c (scan_rtx_address): Likewise.
19666 * reload.c (update_auto_inc_notes): Likewise.
19667 (reg_inc_found_and_valid_p): Likewise.
19668 * reload1.c (reload): Likewise.
19669 (emit_input_reload_insns): Likewise.
19670 (delete_output_reload): Likewise.
19671 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
19672 * valtrack.c (cleanup_auto_inc_dec): Likewise.
19674 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19676 * rtl.h: Always define AUTO_INC_DEC.
19677 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
19678 * combine.c (combine_instructions): Likewise.
19679 (can_combine_p): Likewise.
19680 (try_combine): Likewise.
19681 * emit-rtl.c (try_split): Likewise.
19682 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
19683 * lower-subreg.c (resolve_simple_move): Likewise.
19684 * lra.c (update_inc_notes): Likewise.
19685 * recog.c (asm_operand_ok): Likewise.
19686 (constrain_operands): Likewise.
19687 * regrename.c (scan_rtx_address): Likewise.
19688 * reload.c (update_auto_inc_notes): Likewise.
19689 (find_equiv_reg): Likewise.
19690 * reload1.c (reload): Likewise.
19691 (reload_as_needed): Likewise.
19692 (choose_reload_regs): Likewise.
19693 (emit_input_reload_insns): Likewise.
19694 (delete_output_reload): Likewise.
19695 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
19696 * valtrack.c (cleanup_auto_inc_dec): Likewise.
19698 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19700 * combine.c (can_combine_def_p): Don't check the value of
19701 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
19702 (combinable_i3pat): Likewise.
19703 (mark_used_regs_combine): Likewise.
19704 * regrename.c (rename_chains): Likewise.
19705 * reload.c (find_reloads_address): Likewise.
19706 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
19708 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19710 * combine.c (update_rsp_from_reg_equal): Don't check if
19711 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
19712 (reg_nonzero_bits_for_combine): Likewise.
19713 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
19715 * config/frv/frv.h: Likewise.
19716 * config/lm32/lm32.h: Likewise.
19717 * config/mep/mep.h: Likewise.
19718 * config/mips/mips.h: Likewise.
19719 * config/rs6000/rs6000.h: Likewise.
19720 * config/sh/sh.h: Likewise.
19721 * config/tilegx/tilegx.h (enum reg_class): Likewise.
19722 * config/tilepro/tilepro.h: Likewise.
19723 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
19724 * doc/tm.texi: Regenerate.
19725 * doc/tm.texi.in: Adjust.
19726 * rtlanal.c (nonzero_bits1): Likewise.
19728 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19730 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
19731 with the preprocessor.
19732 (combine_instructions): Likewise.
19733 (try_combine): Likewise.
19735 (distribute_notes): Likewise.
19737 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19739 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
19741 (simplify_set): Likewise.
19742 * cse.c (cse_insn): Likewise.
19743 * fold-const.c (fold_single_bit_test): Likewise.
19744 (fold_unary_loc): Likewise.
19745 * postreload.c (reload_cse_simplify_set): Likewise.
19746 (reload_cse_simplify_operands): Likewise.
19748 2015-07-08 Jiong Wang <jiong.wang@arm.com>
19750 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
19751 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
19753 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
19756 * config/i386/x86intrin.h: Include <adxintrin.h> even if
19757 __iamcu__ is defined.
19759 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
19761 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
19763 2015-07-08 Iain Sandoe <iain@codesourcery.com>
19766 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
19767 names from preservation.
19769 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
19772 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
19774 (function_arg_advance_32): Don't pass vectors in registers for
19776 (function_arg_32): Likewise.
19777 (ix86_return_in_memory): Don't return vectors in registers for
19780 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
19782 PR middle-end/66334
19783 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
19784 hard regno live at the start of BB with incoming abnormal edges.
19785 * lra-lives.c (process_bb_lives): Ditto.
19787 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
19790 * config/nvptx/mkoffload.c (main): Create an offload image only in
19791 64-bit configurations.
19793 2015-07-08 Martin Liska <mliska@suse.cz>
19796 * tree-sra.c (create_access_1): Call ctor without brackets.
19797 (create_artificial_child_access): Likewise.
19799 2015-07-08 Richard Biener <rguenther@suse.de>
19801 PR tree-optimization/66793
19802 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
19803 Properly split the block after stmts ending it.
19805 2015-07-08 Richard Biener <rguenther@suse.de>
19807 PR tree-optimization/66794
19808 * passes.c (execute_function_todo): Assert that post-dominators
19810 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
19811 Free post-dominators.
19813 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19815 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
19818 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
19820 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
19821 more than or equal 8 and less than 32 when optimizing for size.
19823 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19825 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
19826 COSTS_N_INSNS (1) and increment it appropriately throughout the
19829 2015-07-08 Richard Biener <rguenther@suse.de>
19831 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
19833 2015-07-08 Alan Modra <amodra@gmail.com>
19835 * target.def (rtx_costs): Remove "code" param, add "mode".
19836 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
19837 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
19838 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
19839 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
19840 call. Track mode when given in rtx.
19841 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
19842 (default_address_cost): Pass Pmode to rtx_cost.
19843 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
19844 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
19846 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
19847 (notreg_cost): Add mode param. Use it.
19848 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
19849 mode param and pass to set_src_cost. Update all calls.
19850 (hash_scan_set): Formatting.
19851 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
19852 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
19854 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
19855 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
19856 emit_store_flag): Update set_src_cost and rtx_cost calls.
19857 * auto-inc-dec.c (attempt_change): Likewise.
19858 * calls.c (precompute_register_parameters): Likewise.
19859 * combine.c (expand_compound_operation, make_extraction,
19860 force_to_mode, distribute_and_simplify_rtx): Likewise.
19861 * dojump.c (prefer_and_bit_test): Likewise.
19862 * dse.c (find_shift_sequence): Likewise.
19863 * expr.c (compress_float_constant): Likewise.
19864 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
19865 * ifcvt.c (noce_try_sign_mask): Likewise.
19866 * loop-doloop.c (doloop_optimize): Likewise.
19867 * loop-invariant.c (create_new_invariant): Likewise.
19868 * lower-subreg.c (shift_cost, compute_costs): Likewise.
19869 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
19870 lshift_cheap_p): Likewise.
19871 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
19872 try_replace_in_use, reload_cse_move2add): Likewise.
19873 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
19875 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
19876 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
19877 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
19878 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
19879 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
19880 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
19882 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
19883 * config/arc/arc.c (arc_rtx_costs): Likewise.
19884 * config/arm/arm.c (arm_rtx_costs): Likewise.
19885 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
19886 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
19887 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
19888 * config/cris/cris.c (cris_rtx_costs): Likewise.
19889 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
19890 * config/frv/frv.c (frv_rtx_costs): Likewise.
19891 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
19892 * config/i386/i386.c (ix86_rtx_costs): Likewise.
19893 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
19894 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
19895 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
19896 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
19897 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
19898 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
19899 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
19900 * config/mep/mep.c (mep_rtx_cost): Likewise.
19901 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
19902 * config/mips/mips.c (mips_rtx_costs): Likewise.
19903 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
19904 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
19905 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
19906 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
19907 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
19908 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
19909 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
19910 * config/pa/pa.c (hppa_rtx_costs): Likewise.
19911 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
19912 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
19913 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
19914 * config/s390/s390.c (s390_rtx_costs): Likewise.
19915 * config/sh/sh.c (sh_rtx_costs): Likewise.
19916 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
19917 * config/spu/spu.c (spu_rtx_costs): Likewise.
19918 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
19919 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
19920 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
19921 * config/v850/v850.c (v850_rtx_costs): Likewise.
19922 * config/vax/vax.c (vax_rtx_costs): Likewise.
19923 * config/visium/visium.c (visium_rtx_costs): Likewise.
19924 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
19925 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
19926 "code" param, and pass as outer_code to first rtx_cost call. Pass
19927 mode to rtx_cost calls.
19928 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
19930 (aarch64_rtx_costs_wrapper): Update.
19931 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
19932 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
19934 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
19935 and rtx_cost calls.
19936 (avr_operand_rtx_cost): Similarly.
19937 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
19938 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
19939 * config/mips/mips.c (mips_stack_address_p): Comment typo.
19940 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
19941 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
19942 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
19944 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
19945 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
19946 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
19947 * doc/tm.texi: Regenerate.
19949 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
19951 * tree-core.h: Include symtab.h.
19952 * rtl.h: Include hard-reg-set.h but not flags.h.
19953 (HARD_CONST): Remove condition compilation involving HARD_CONST since
19954 hard-reg-set.h is always included.
19955 * regs.h: Don't include hard-reg-set.h or rtl.h.
19956 * cfg.h: Include dominance.h.
19957 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
19958 * backend.h: New. Aggregate commonly used backend header files.
19959 * gimple-ssa.h: Don't include tree-hasher.h.
19960 * ssa.h: New. Aggregate commonly used SSA header files.
19961 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
19962 * sel-sched-ir.h: Flatten includes.
19963 * lra-int.h: Flatten completely.
19964 * sel-sched-dump.h: Flatten includes.
19965 * ira-int.h: Flatten includes.
19966 * gimple-streamer.h: Remove all includes.
19967 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
19968 * resource.h: Flatten hard-reg-set.h and df.h.
19969 * sched-int.h: Flatten insn-arrt.h and df.h.
19970 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
19971 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
19972 * genattrtab.c (write_header): Adjust generated includes.
19973 * genautomata.c (main): Likewise.
19974 * genconditions.c (write-header): Likewise.
19975 * genemit.c (main): Likewise.
19976 * gengtype.c (open_base_files): Likewise.
19977 * genopinit.c (main): Likewise.
19978 * genoutput.c (output_prologue): Likewise.
19979 * genpeep.c (main): Likewise.
19980 * genpreds.c (write_insn_preds_c): Likewise.
19981 * genrecog.c (write_header): Likewise.
19982 * alias.c: Adjust includes.
19983 * asan.c: Likewise.
19984 * attribs.c: Likewise.
19985 * auto-inc-dec.c: Likewise.
19986 * auto-profile.c: Likewise.
19987 * bb-reorder.c: Likewise.
19988 * bt-load.c: Likewise.
19989 * builtins.c: Likewise.
19990 * caller-save.c: Likewise.
19991 * calls.c: Likewise.
19992 * ccmp.c: Likewise.
19994 * cfganal.c: Likewise.
19995 * cfgbuild.c: Likewise.
19996 * cfgcleanup.c: Likewise.
19997 * cfgexpand.c: Likewise.
19998 * cfghooks.c: Likewise.
19999 * cfgloop.c: Likewise.
20000 * cfgloopanal.c: Likewise.
20001 * cfgloopmanip.c: Likewise.
20002 * cfgrtl.c: Likewise.
20003 * cgraph.c: Likewise.
20004 * cgraphbuild.c: Likewise.
20005 * cgraphclones.c: Likewise.
20006 * cgraphunit.c: Likewise.
20007 * cilk-common.c: Likewise.
20008 * combine-stack-adj.c: Likewise.
20009 * combine.c: Likewise.
20010 * compare-elim.c: Likewise.
20011 * convert.c: Likewise.
20012 * coverage.c: Likewise.
20013 * cppbuiltin.c: Likewise.
20014 * cprop.c: Likewise.
20016 * cselib.c: Likewise.
20017 * data-streamer-in.c: Likewise.
20018 * data-streamer-out.c: Likewise.
20019 * data-streamer.c: Likewise.
20020 * dbxout.c: Likewise.
20023 * debug.c: Likewise.
20024 * df-core.c: Likewise.
20025 * df-problems.c: Likewise.
20026 * df-scan.c: Likewise.
20028 * dojump.c: Likewise.
20029 * dominance.c: Likewise.
20030 * domwalk.c: Likewise.
20031 * double-int.c: Likewise.
20033 * dumpfile.c: Likewise.
20034 * dwarf2asm.c: Likewise.
20035 * dwarf2cfi.c: Likewise.
20036 * dwarf2out.c: Likewise.
20037 * emit-rtl.c: Likewise.
20038 * et-forest.c: Likewise.
20039 * except.c: Likewise.
20040 * explow.c: Likewise.
20041 * expmed.c: Likewise.
20042 * expr.c: Likewise.
20043 * final.c: Likewise.
20044 * fixed-value.c: Likewise.
20045 * fold-const.c: Likewise.
20046 * function.c: Likewise.
20047 * fwprop.c: Likewise.
20048 * gcc-plugin.h: Likewise.
20049 * gcse-common.c: Likewise.
20050 * gcse.c: Likewise.
20051 * generic-match-head.c: Likewise.
20052 * ggc-page.c: Likewise.
20053 * gimple-builder.c: Likewise.
20054 * gimple-expr.c: Likewise.
20055 * gimple-fold.c: Likewise.
20056 * gimple-iterator.c: Likewise.
20057 * gimple-low.c: Likewise.
20058 * gimple-match-head.c: Likewise.
20059 * gimple-pretty-print.c: Likewise.
20060 * gimple-ssa-isolate-paths.c: Likewise.
20061 * gimple-ssa-strength-reduction.c: Likewise.
20062 * gimple-streamer-in.c: Likewise.
20063 * gimple-streamer-out.c: Likewise.
20064 * gimple-walk.c: Likewise.
20065 * gimple.c: Likewise.
20066 * gimplify-me.c: Likewise.
20067 * gimplify.c: Likewise.
20068 * godump.c: Likewise.
20069 * graph.c: Likewise.
20070 * graphite-blocking.c: Likewise.
20071 * graphite-dependences.c: Likewise.
20072 * graphite-interchange.c: Likewise.
20073 * graphite-isl-ast-to-gimple.c: Likewise.
20074 * graphite-optimize-isl.c: Likewise.
20075 * graphite-poly.c: Likewise.
20076 * graphite-scop-detection.c: Likewise.
20077 * graphite-sese-to-poly.c: Likewise.
20078 * graphite.c: Likewise.
20079 * haifa-sched.c: Likewise.
20080 * hw-doloop.c: Likewise.
20081 * ifcvt.c: Likewise.
20082 * init-regs.c: Likewise.
20083 * internal-fn.c: Likewise.
20084 * ipa-chkp.c: Likewise.
20085 * ipa-comdats.c: Likewise.
20086 * ipa-cp.c: Likewise.
20087 * ipa-devirt.c: Likewise.
20088 * ipa-icf-gimple.c: Likewise.
20089 * ipa-icf.c: Likewise.
20090 * ipa-inline-analysis.c: Likewise.
20091 * ipa-inline-transform.c: Likewise.
20092 * ipa-inline.c: Likewise.
20093 * ipa-polymorphic-call.c: Likewise.
20094 * ipa-profile.c: Likewise.
20095 * ipa-prop.c: Likewise.
20096 * ipa-pure-const.c: Likewise.
20097 * ipa-ref.c: Likewise.
20098 * ipa-reference.c: Likewise.
20099 * ipa-split.c: Likewise.
20100 * ipa-utils.c: Likewise.
20101 * ipa-visibility.c: Likewise.
20103 * ira-build.c: Likewise.
20104 * ira-color.c: Likewise.
20105 * ira-conflicts.c: Likewise.
20106 * ira-costs.c: Likewise.
20107 * ira-emit.c: Likewise.
20108 * ira-lives.c: Likewise.
20110 * jump.c: Likewise.
20111 * langhooks.c: Likewise.
20113 * loop-doloop.c: Likewise.
20114 * loop-init.c: Likewise.
20115 * loop-invariant.c: Likewise.
20116 * loop-iv.c: Likewise.
20117 * loop-unroll.c: Likewise.
20118 * lower-subreg.c: Likewise.
20119 * lra-assigns.c: Likewise.
20120 * lra-coalesce.c: Likewise.
20121 * lra-constraints.c: Likewise.
20122 * lra-eliminations.c: Likewise.
20123 * lra-lives.c: Likewise.
20124 * lra-remat.c: Likewise.
20125 * lra-spills.c: Likewise.
20127 * lto-cgraph.c: Likewise.
20128 * lto-compress.c: Likewise.
20129 * lto-opts.c: Likewise.
20130 * lto-section-in.c: Likewise.
20131 * lto-section-out.c: Likewise.
20132 * lto-streamer-in.c: Likewise.
20133 * lto-streamer-out.c: Likewise.
20134 * lto-streamer.c: Likewise.
20136 * mode-switching.c: Likewise.
20137 * modulo-sched.c: Likewise.
20138 * omega.c: Likewise.
20139 * omp-low.c: Likewise.
20140 * optabs.c: Likewise.
20141 * opts-global.c: Likewise.
20142 * passes.c: Likewise.
20143 * plugin.c: Likewise.
20144 * postreload-gcse.c: Likewise.
20145 * postreload.c: Likewise.
20146 * predict.c: Likewise.
20147 * print-rtl.c: Likewise.
20148 * print-tree.c: Likewise.
20149 * profile.c: Likewise.
20150 * real.c: Likewise.
20151 * realmpfr.c: Likewise.
20152 * recog.c: Likewise.
20154 * reg-stack.c: Likewise.
20155 * regcprop.c: Likewise.
20156 * reginfo.c: Likewise.
20157 * regrename.c: Likewise.
20158 * regstat.c: Likewise.
20159 * reload.c: Likewise.
20160 * reload1.c: Likewise.
20161 * reorg.c: Likewise.
20162 * resource.c: Likewise.
20163 * rtl-chkp.c: Likewise.
20164 * rtlanal.c: Likewise.
20165 * rtlhooks.c: Likewise.
20166 * sanopt.c: Likewise.
20167 * sched-deps.c: Likewise.
20168 * sched-ebb.c: Likewise.
20169 * sched-rgn.c: Likewise.
20170 * sched-vis.c: Likewise.
20171 * sdbout.c: Likewise.
20172 * sel-sched-dump.c: Likewise.
20173 * sel-sched-ir.c: Likewise.
20174 * sel-sched.c: Likewise.
20175 * sese.c: Likewise.
20176 * shrink-wrap.c: Likewise.
20177 * simplify-rtx.c: Likewise.
20178 * stack-ptr-mod.c: Likewise.
20179 * stmt.c: Likewise.
20180 * stor-layout.c: Likewise.
20181 * store-motion.c: Likewise.
20182 * stringpool.c: Likewise.
20183 * symtab.c: Likewise.
20184 * target-globals.c: Likewise.
20185 * targhooks.c: Likewise.
20186 * toplev.c: Likewise.
20187 * tracer.c: Likewise.
20188 * trans-mem.c: Likewise.
20189 * tree-affine.c: Likewise.
20190 * tree-browser.c: Likewise.
20191 * tree-call-cdce.c: Likewise.
20192 * tree-cfg.c: Likewise.
20193 * tree-cfgcleanup.c: Likewise.
20194 * tree-chkp-opt.c: Likewise.
20195 * tree-chkp.c: Likewise.
20196 * tree-chrec.c: Likewise.
20197 * tree-complex.c: Likewise.
20198 * tree-data-ref.c: Likewise.
20199 * tree-dfa.c: Likewise.
20200 * tree-diagnostic.c: Likewise.
20201 * tree-dump.c: Likewise.
20202 * tree-eh.c: Likewise.
20203 * tree-emutls.c: Likewise.
20204 * tree-if-conv.c: Likewise.
20205 * tree-inline.c: Likewise.
20206 * tree-into-ssa.c: Likewise.
20207 * tree-iterator.c: Likewise.
20208 * tree-loop-distribution.c: Likewise.
20209 * tree-nested.c: Likewise.
20210 * tree-nrv.c: Likewise.
20211 * tree-object-size.c: Likewise.
20212 * tree-outof-ssa.c: Likewise.
20213 * tree-parloops.c: Likewise.
20214 * tree-phinodes.c: Likewise.
20215 * tree-predcom.c: Likewise.
20216 * tree-pretty-print.c: Likewise.
20217 * tree-profile.c: Likewise.
20218 * tree-scalar-evolution.c: Likewise.
20219 * tree-sra.c: Likewise.
20220 * tree-ssa-address.c: Likewise.
20221 * tree-ssa-alias.c: Likewise.
20222 * tree-ssa-ccp.c: Likewise.
20223 * tree-ssa-coalesce.c: Likewise.
20224 * tree-ssa-copy.c: Likewise.
20225 * tree-ssa-copyrename.c: Likewise.
20226 * tree-ssa-dce.c: Likewise.
20227 * tree-ssa-dom.c: Likewise.
20228 * tree-ssa-dse.c: Likewise.
20229 * tree-ssa-forwprop.c: Likewise.
20230 * tree-ssa-ifcombine.c: Likewise.
20231 * tree-ssa-live.c: Likewise.
20232 * tree-ssa-loop-ch.c: Likewise.
20233 * tree-ssa-loop-im.c: Likewise.
20234 * tree-ssa-loop-ivcanon.c: Likewise.
20235 * tree-ssa-loop-ivopts.c: Likewise.
20236 * tree-ssa-loop-manip.c: Likewise.
20237 * tree-ssa-loop-niter.c: Likewise.
20238 * tree-ssa-loop-prefetch.c: Likewise.
20239 * tree-ssa-loop-unswitch.c: Likewise.
20240 * tree-ssa-loop.c: Likewise.
20241 * tree-ssa-math-opts.c: Likewise.
20242 * tree-ssa-operands.c: Likewise.
20243 * tree-ssa-phiopt.c: Likewise.
20244 * tree-ssa-phiprop.c: Likewise.
20245 * tree-ssa-pre.c: Likewise.
20246 * tree-ssa-propagate.c: Likewise.
20247 * tree-ssa-reassoc.c: Likewise.
20248 * tree-ssa-sccvn.c: Likewise.
20249 * tree-ssa-scopedtables.c: Likewise.
20250 * tree-ssa-sink.c: Likewise.
20251 * tree-ssa-strlen.c: Likewise.
20252 * tree-ssa-structalias.c: Likewise.
20253 * tree-ssa-tail-merge.c: Likewise.
20254 * tree-ssa-ter.c: Likewise.
20255 * tree-ssa-threadedge.c: Likewise.
20256 * tree-ssa-threadupdate.c: Likewise.
20257 * tree-ssa-uncprop.c: Likewise.
20258 * tree-ssa-uninit.c: Likewise.
20259 * tree-ssa.c: Likewise.
20260 * tree-ssanames.c: Likewise.
20261 * tree-stdarg.c: Likewise.
20262 * tree-streamer-in.c: Likewise.
20263 * tree-streamer-out.c: Likewise.
20264 * tree-streamer.c: Likewise.
20265 * tree-switch-conversion.c: Likewise.
20266 * tree-tailcall.c: Likewise.
20267 * tree-vect-data-refs.c: Likewise.
20268 * tree-vect-generic.c: Likewise.
20269 * tree-vect-loop-manip.c: Likewise.
20270 * tree-vect-loop.c: Likewise.
20271 * tree-vect-patterns.c: Likewise.
20272 * tree-vect-slp.c: Likewise.
20273 * tree-vect-stmts.c: Likewise.
20274 * tree-vectorizer.c: Likewise.
20275 * tree-vrp.c: Likewise.
20276 * tree.c: Likewise.
20277 * tsan.c: Likewise.
20278 * ubsan.c: Likewise.
20279 * valtrack.c: Likewise.
20280 * value-prof.c: Likewise.
20281 * var-tracking.c: Likewise.
20282 * varasm.c: Likewise.
20283 * varpool.c: Likewise.
20284 * vmsdbgout.c: Likewise.
20285 * vtable-verify.c: Likewise.
20287 * wide-int.cc: Likewise.
20288 * xcoffout.c: Likewise.
20289 * config/aarch64/aarch64-builtins.c: Likewise.
20290 * config/aarch64/aarch64.c: Likewise.
20291 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20292 * config/alpha/alpha.c: Likewise.
20293 * config/arc/arc.c: Likewise.
20294 * config/arm/aarch-common.c: Likewise.
20295 * config/arm/arm-builtins.c: Likewise.
20296 * config/arm/arm-c.c: Likewise.
20297 * config/arm/arm.c: Likewise.
20298 * config/avr/avr-c.c: Likewise.
20299 * config/avr/avr-log.c: Likewise.
20300 * config/avr/avr.c: Likewise.
20301 * config/bfin/bfin.c: Likewise.
20302 * config/c6x/c6x.c: Likewise.
20303 * config/cr16/cr16.c: Likewise.
20304 * config/cris/cris.c: Likewise.
20305 * config/darwin-c.c: Likewise.
20306 * config/darwin.c: Likewise.
20307 * config/epiphany/epiphany.c: Likewise.
20308 * config/epiphany/mode-switch-use.c: Likewise.
20309 * config/epiphany/resolve-sw-modes.c: Likewise.
20310 * config/fr30/fr30.c: Likewise.
20311 * config/frv/frv.c: Likewise.
20312 * config/ft32/ft32.c: Likewise.
20313 * config/h8300/h8300.c: Likewise.
20314 * config/i386/i386-c.c: Likewise.
20315 * config/i386/i386.c: Likewise.
20316 * config/i386/msformat-c.c: Likewise.
20317 * config/i386/winnt-cxx.c: Likewise.
20318 * config/i386/winnt-stubs.c: Likewise.
20319 * config/i386/winnt.c: Likewise.
20320 * config/ia64/ia64-c.c: Likewise.
20321 * config/ia64/ia64.c: Likewise.
20322 * config/iq2000/iq2000.c: Likewise.
20323 * config/lm32/lm32.c: Likewise.
20324 * config/m32c/m32c-pragma.c: Likewise.
20325 * config/m32c/m32c.c: Likewise.
20326 * config/m32r/m32r.c: Likewise.
20327 * config/m68k/m68k.c: Likewise.
20328 * config/mcore/mcore.c: Likewise.
20329 * config/mep/mep-pragma.c: Likewise.
20330 * config/mep/mep.c: Likewise.
20331 * config/microblaze/microblaze-c.c: Likewise.
20332 * config/microblaze/microblaze.c: Likewise.
20333 * config/mips/mips.c: Likewise.
20334 * config/mmix/mmix.c: Likewise.
20335 * config/mn10300/mn10300.c: Likewise.
20336 * config/moxie/moxie.c: Likewise.
20337 * config/msp430/msp430-c.c: Likewise.
20338 * config/msp430/msp430.c: Likewise.
20339 * config/nds32/nds32-cost.c: Likewise.
20340 * config/nds32/nds32-fp-as-gp.c: Likewise.
20341 * config/nds32/nds32-intrinsic.c: Likewise.
20342 * config/nds32/nds32-isr.c: Likewise.
20343 * config/nds32/nds32-md-auxiliary.c: Likewise.
20344 * config/nds32/nds32-memory-manipulation.c: Likewise.
20345 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20346 * config/nds32/nds32-predicates.c: Likewise.
20347 * config/nds32/nds32.c: Likewise.
20348 * config/nios2/nios2.c: Likewise.
20349 * config/nvptx/nvptx.c: Likewise.
20350 * config/pa/pa.c: Likewise.
20351 * config/pdp11/pdp11.c: Likewise.
20352 * config/rl78/rl78-c.c: Likewise.
20353 * config/rl78/rl78.c: Likewise.
20354 * config/rs6000/rs6000-c.c: Likewise.
20355 * config/rs6000/rs6000.c: Likewise.
20356 * config/rx/rx.c: Likewise.
20357 * config/s390/s390-c.c: Likewise.
20358 * config/s390/s390.c: Likewise.
20359 * config/sh/sh-c.c: Likewise.
20360 * config/sh/sh-mem.cc: Likewise.
20361 * config/sh/sh.c: Likewise.
20362 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20363 * config/sh/sh_treg_combine.cc: Likewise.
20364 * config/sol2-c.c: Likewise.
20365 * config/sol2-cxx.c: Likewise.
20366 * config/sol2-stubs.c: Likewise.
20367 * config/sol2.c: Likewise.
20368 * config/sparc/sparc-c.c: Likewise.
20369 * config/sparc/sparc.c: Likewise.
20370 * config/spu/spu-c.c: Likewise.
20371 * config/spu/spu.c: Likewise.
20372 * config/stormy16/stormy16.c: Likewise.
20373 * config/tilegx/mul-tables.c: Likewise.
20374 * config/tilegx/tilegx-c.c: Likewise.
20375 * config/tilegx/tilegx.c: Likewise.
20376 * config/tilepro/mul-tables.c: Likewise.
20377 * config/tilepro/tilepro-c.c: Likewise.
20378 * config/tilepro/tilepro.c: Likewise.
20379 * config/v850/v850-c.c: Likewise.
20380 * config/v850/v850.c: Likewise.
20381 * config/vax/vax.c: Likewise.
20382 * config/visium/visium.c: Likewise.
20383 * config/vms/vms-c.c: Likewise.
20384 * config/vms/vms.c: Likewise.
20385 * config/vxworks.c: Likewise.
20386 * config/xtensa/xtensa.c: Likewise.
20388 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
20390 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
20391 Remove operand constraints. Change operand 2 predicate to
20392 nonmemory operand. Limit const_int values to mode bitsize. Only
20393 allow const_int values less than 32 when optimizing for size.
20394 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
20395 Remove operand constraints.
20396 (*bt<mode>): Use SImode for const_int values less than 32.
20397 (regmode): Remove mode attribute.
20399 2015-07-07 Anatoly Sokolov <aesok@post.ru>
20401 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
20402 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
20403 moxie_legitimate_address_p): New functions.
20404 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
20406 2015-07-07 Tom de Vries <tom@codesourcery.com>
20408 PR tree-optimization/66642
20409 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
20410 header comment. Rename split_edge variable to edge_at_split. Split
20411 exit edge to create new loop exit bb. Insert loop exit phis in new
20414 2015-07-07 Tom de Vries <tom@codesourcery.com>
20416 * tree-cfg.c (get_virtual_phi): New function.
20417 * tree-cfg.h (get_virtual_phi): Declare.
20418 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
20419 (rewrite_virtuals_into_loop_closed_ssa): New function.
20420 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
20422 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
20423 (transform_to_exit_first_loop_alt): Use
20424 rewrite_virtuals_into_loop_closed_ssa.
20426 2015-07-07 Richard Biener <rguenther@suse.de>
20428 * fold-const.c (fold_binary_loc): Move
20429 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
20430 * match.pd: ... here.
20431 Add (X * C1) % C2 -> 0 simplification pattern derived from
20434 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
20437 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
20438 change for target/65249.
20440 2015-07-07 Paulo Matos <pmatos@broadcom.com>
20442 * symtab.c (address_matters_1): Fix typo in comment above.
20443 (can_increase_alignment_p): Likewise.
20445 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20447 * function.c (free_after_compilation): Clear PROP_cfg in
20448 f->curr_properties.
20450 2015-07-07 Richard Biener <rguenther@suse.de>
20452 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
20454 (add_control_edge): Remove excessive vertical space in dumping.
20455 (process_ssa_edge_worklist): Simulate at most one statement and
20456 return whether we did. Do not simulate PHIs if they are in a
20457 BB not yet simulated.
20458 (ssa_propagate): Adjust to always drain the BB worklist whenever
20459 a BB is available there, likewise the VARYING edges list before
20460 the interesting edge list.
20462 2015-07-07 Christian Bruel <christian.bruel@st.com>
20465 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
20467 2015-07-07 Richard Biener <rguenther@suse.de>
20469 PR middle-end/66739
20470 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
20473 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
20475 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
20476 modes for operands 0 and 3. Use SImode for operands 2 and 3.
20477 Copy operand 0 to a temporary if !ext_register_operand. Remove
20478 ancient extract_bit_field workaround.
20479 (insv<mode>_1): Rename from mov<mode>_insv_1.
20480 (*insvqi): Rename from *movqi_insv_2.
20481 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
20482 for renamed insvsi_1.
20483 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
20485 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
20487 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
20488 call to nvptx_reorg_subreg.
20490 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
20492 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
20493 * graphite-dependencies.c, graphite-interchange.c,
20494 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
20495 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
20498 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
20500 * match.pd: Remove element_mode inside HONOR_*.
20501 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
20502 (~X | X -> -1, ~X ^ X -> -1): Merge.
20503 * tree.c (build_each_one_cst): New function.
20504 * tree.h (build_each_one_cst): Likewise.
20506 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
20508 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20511 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
20513 * config.gcc <mips*-*-*>: Add fused-madd.opt.
20514 * config/mips/mips.opt (mfused-madd): Remove.
20515 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
20516 * config/mips/mips.h (TARGET_MIPS8000): New.
20517 (ISA_HAS_FP_MADD4_MSUB4): Remove.
20518 (ISA_HAS_FP_MADDF_MSUBF): Remove.
20519 (ISA_HAS_FP_MADD3_MSUB3): Remove.
20520 (ISA_HAS_NMADD4_NMSUB4): Remove.
20521 (ISA_HAS_NMADD3_NMSUB3): Remove.
20522 (ISA_HAS_FUSED_MADD4): New.
20523 (ISA_HAS_UNFUSED_MADD4): New.
20524 (ISA_HAS_FUSED_MADDF): New.
20525 (ISA_HAS_FUSED_MADD3): New.
20526 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
20527 (*fma<mode>4_madd3) New.
20528 (*fma<mode>4_madd4) New.
20529 (*fma<mode>4_maddf) New.
20531 (*fms<mode>4_msub3) New.
20532 (*fms<mode>4_msub4) New.
20534 (*fnma<mode>4_nmadd3) New.
20535 (*fnma<mode>4_nmadd4) New.
20537 (*fnms<mode>4_nmsub3) New.
20538 (*fnms<mode>4_nmsub4) New.
20539 (*madd4<mode>) Modify to be unfused only.
20540 (*msub4<mode>) Modify to be unfused only.
20541 (*nmadd4<mode>) Modify to be unfused only.
20542 (*nmsub4<mode>) Modify to be unfused only.
20543 (*madd3<mode>) Remove.
20544 (*msub3<mode>) Remove.
20545 (*nmadd3<mode>) Remove.
20546 (*nmsub3<mode>) Remove.
20547 (*nmadd3<mode>_fastmath) Remove.
20548 (*nmsub3<mode>_fastmath) Remove.
20549 (*nmadd4<mode>_fastmath) Update condition.
20550 (*nmsub4<mode>_fastmath) Update condition.
20552 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
20555 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
20556 alignment attribute, exploring one level down for records and arrays.
20558 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
20560 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
20561 modes for operands 0 and 1. Use SImode for operands 2 and 3.
20562 Copy operand 1 to a temporary if !ext_register_operand. Remove
20563 ancient extract_bit_field workaround.
20564 (*extv<mode>): Rename from *mov<mode>_extv_1.
20565 (*extvqi): Rename from *movqi_extv_1.
20566 (extzv<mode>): Rename from extzv. Use SWI248 modes for
20567 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
20568 to a temporary if !ext_register_operand. Remove ancient
20569 extract_bit_field workaround.
20570 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
20571 (*extzvqi): Rename from *movqi_extzv_2.
20572 (*testqi_ext_3): Remove modes from const_int_operand predicated
20573 operands. Add "n" constraint.
20574 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
20575 operand. Add "J" constraint.
20576 (*btsq, *btrq, *btcq peephole2s): Remove mode from
20577 const_0_to_63 predicated operand.
20578 (regmode): New insn attribute.
20579 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
20580 to nonmemory_operand. Use regmode insn attribute.
20581 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
20582 (*jcc_bt<mode>_mask): Remove mode from operand 3.
20583 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
20584 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
20585 operands. Use "N" constraint instead of "n".
20587 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
20589 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
20591 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
20594 * config/i386/i386.c (iamcu_cost): New.
20595 (m_IAMCU): Likewise.
20596 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
20597 (processor_target_table): Add an entry for "iamcu".
20598 (processor_alias_table): Likewise.
20599 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
20600 (ix86_adjust_cost): Likewise.
20601 (ia32_multipass_dfa_lookahead): Likewise.
20602 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
20603 * config/i386/x86-tune.def: Updated for m_IAMCU.
20605 2015-07-06 Richard Biener <rguenther@suse.de>
20607 PR tree-optimization/66772
20608 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
20609 values are available in the PHI node BB when there are
20610 still unexecutable edges.
20612 2015-07-06 Richard Biener <rguenther@suse.de>
20614 PR tree-optimization/66767
20615 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
20616 Make sure to build the alignment test on a SSA name without
20617 final alignment info valid only if the alignment test
20620 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
20623 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
20624 loop start when inserting LSETUP.
20626 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
20629 * config/i386/i386.c (ix86_option_override_internal): Allow
20630 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
20632 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20634 * read-md.c (decimal_string): Rename to ...
20635 (md_decimal_string): ... this.
20636 (handle_enum): Reflect this.
20638 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
20641 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
20643 2015-07-06 Richard Biener <rguenther@suse.de>
20645 PR middle-end/66759
20646 * match.pd: Add missing constraint of y to REAL_CST in
20647 REAL_CST - x CMP y to y - CST CMP x simplification.
20649 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
20651 PR tree-optimization/66757
20652 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
20654 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
20655 Sandra Loosemore <sandra@codesourcery.com>
20657 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
20658 Delete extern declaration.
20659 (gprel_constant_p): Add extern declaration.
20660 * config/nios2/constraints.md ("S"): Use gprel_constant_p
20661 instead of nios2_symbol_ref_in_small_data_p.
20662 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
20663 (nios2_symbol_ref_in_small_data_p): Make static.
20664 (gprel_constant_p): Make non-static.
20666 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
20668 * doc/fragments.texi (Target Fragment): Convert debian.org
20670 * doc/install.texi (Configuration): Ditto.
20672 2015-07-05 Jakub Jelinek <jakub@redhat.com>
20674 PR tree-optimization/66718
20675 * tree-vect-stmts.c (vectorizable_call): Replace uses of
20676 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
20678 PR tree-optimization/66718
20679 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
20680 vectorizable_load, vectorizable_condition): Move vectype,
20681 nunits, ncopies computation after checking what kind of statement
20684 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20686 * target-insns.def (extv, extzv, insv): New targetm instruction
20688 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
20690 * recog.c (simplify_while_replacing): Likewise.
20692 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20694 * target-insns.def (doloop_begin, doloop_end): New targetm
20695 instruction patterns.
20696 * loop-init.c: Include target.h.
20697 (pass_loop2::gate): Use the new targetm patterns instead of
20698 HAVE_*/gen_* interface.
20699 (pass_rtl_doloop::gate): Likewise.
20700 (pass_rtl_doloop::execute): Remove preprocessor condition.
20701 * hw-doloop.c: Build unconditionally.
20702 * loop-doloop.c: Likewise.
20703 (doloop_optimize): Use the new targetm patterns instead of
20704 HAVE_*/gen_* interface.
20705 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
20706 * modulo-sched.c (doloop_register_get): Likewise.
20708 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20710 * target-insns.def (clear_cache): New targetm instruction pattern.
20711 * builtins.c (expand_builtin___clear_cache): Use it instead of
20712 HAVE_*/gen_* interface.
20714 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20716 * target-insns.def (allocate_stack, check_stack, probe_stack)
20717 (probe_stack_address, split_stack_prologue, split_stack_space_check):
20718 New targetm instruction patterns.
20719 * explow.c (allocate_dynamic_stack_space): Use them instead of
20720 HAVE_*/gen_* interface.
20721 (emit_stack_probe): Likewise.
20722 (probe_stack_range): Likewise.
20723 * function.c (thread_prologue_and_epilogue_insns): Likewise.
20725 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20727 * target-insns.def (stack_protect_set, stack_protect_test): New
20728 targetm instruction patterns.
20729 * cfgexpand.c (stack_protect_prologue): Use them instead of
20730 HAVE_*/gen_* interface.
20731 * function.c (stack_protect_epilogue): Likewise.
20733 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20735 * expr.h (gen_move_insn_uncast): Delete.
20736 * expr.c (gen_move_insn_uncast): Delete.
20738 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20740 * target-insns.def (restore_stack_block, restore_stack_function)
20741 (restore_stack_nonlocal, save_stack_block, save_stack_function)
20742 (save_stack_nonlocal): New targetm instruction patterns.
20743 * builtins.c (expand_builtin_apply): Use them instead of
20744 HAVE_*/gen_* interface.
20745 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
20747 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20749 * target-insns.def (trap): New targetm instruction pattern.
20750 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
20752 * explow.c (allocate_dynamic_stack_space): Likewise.
20753 * ifcvt.c (find_if_header): Likewise.
20755 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20757 * target-insns.def (prefetch): New targetm instruction pattern.
20758 * tree-ssa-loop-prefetch.c: Include targeth.
20759 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
20760 of HAVE_*/gen_* interface.
20761 * builtins.c (expand_builtin_prefetch): Likewise.
20762 * toplev.c (process_options): Likewise.
20764 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20766 * target-insns.def (untyped_call, untyped_return): New targetm
20767 instruction patterns.
20768 * builtins.c (expand_builtin_apply): Use them instead of
20769 HAVE_*/gen_* interface.
20770 (result_vector): Define unconditionally.
20772 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20774 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
20775 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
20776 (nonlocal_goto_receiver): New targetm instruction patterns.
20777 * builtins.c (expand_builtin_setjmp_setup): Use them instead
20778 of HAVE_*/gen_* interface.
20779 (expand_builtin_setjmp_receiver): Likewise.
20780 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
20781 * except.c (expand_dw2_landing_pad_for_region): Likewise.
20783 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20785 * target.def: Add code_for_* hooks.
20786 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
20787 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
20788 * target-insns.def (casesi, tablejump): New targetm instruction
20790 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
20791 (do_tablejump): Likewise.
20792 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
20793 (expand_sjlj_dispatch_table): Likewise.
20794 * targhooks.c (default_case_values_threshold): Likewise.
20796 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
20798 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
20799 Use rtx_insn * instead of rtx.
20800 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
20801 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
20802 (nios2_call_tls_get_addr): Likewise.
20803 (nios2_emit_expensive_div): Likewise.
20804 (nios2_emit_move_sequence): Change return type to bool.
20805 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
20806 Change return type to bool.
20808 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
20811 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
20813 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
20816 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
20817 of register_operand. Remove constraint.
20819 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
20821 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
20822 the first argument.
20824 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
20826 * attribs.c (decl_attributes): Guard inform with the return value
20827 of the preceding warning.
20829 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
20831 * doc/invoke.texi (moverride): Move to correct section.
20833 2015-07-03 Richard Biener <rguenther@suse.de>
20835 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
20837 (dt_operand::gen_gimple_expr): After valueizing operands
20838 re-canonicalize operand order for commutative tree codes.
20840 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
20843 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
20845 (__crc32w): Likewise.
20846 (__crc32d): Likewise.
20847 (__rdpmc): Likewise.
20848 (__rdtscp): Likewise.
20849 (_rdpmc): Likewise.
20850 (_rdtscp): Likewise.
20851 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
20854 2015-07-03 Richard Biener <rguenther@suse.de>
20856 * fold-const.c (fold_mathfn_compare): Remove.
20857 (fold_inf_compare): Likewise.
20858 (fold_comparison): Move floating point comparison simplifications...
20859 * match.pd: ... to patterns here. Introduce simple_comparisons
20860 operator list and use it for patterns formerly in fold_comparison.
20862 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
20864 PR tree-optimization/66119
20865 * toplev.c (process_options): Don't set up default values for
20866 the sra_max_scalarization_size_{speed,size} parameters.
20867 * tree-sra (analyze_all_variable_accesses): If no values
20868 have been set for the sra_max_scalarization_size_{speed,size}
20869 parameters, call get_move_ratio to get target defaults.
20871 2015-07-03 Richard Biener <rguenther@suse.de>
20873 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
20874 * match.pd: ... here.
20876 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
20879 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
20880 is not actually the default on FreeBSD.
20882 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20884 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
20886 (CMPGE_8HI): Likewise.
20887 (CMPGE_4SI): Likewise.
20888 (CMPGE_2DI): Likewise.
20889 (CMPGE_U16QI): Likewise.
20890 (CMPGE_U8HI): Likewise.
20891 (CMPGE_U4SI): Likewise.
20892 (CMPGE_U2DI): Likewise.
20893 (CMPLE_16QI): Likewise.
20894 (CMPLE_8HI): Likewise.
20895 (CMPLE_4SI): Likewise.
20896 (CMPLE_2DI): Likewise.
20897 (CMPLE_U16QI): Likewise.
20898 (CMPLE_U8HI): Likewise.
20899 (CMPLE_U4SI): Likewise.
20900 (CMPLE_U2DI): Likewise.
20901 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20902 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
20903 ALTIVEC_BUILTIN_VEC_CMPLE.
20904 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
20905 floating-point vector modes.
20906 (vector_nlt<mode>): New define_expand.
20907 (vector_nltu<mode>): Likewise.
20908 (vector_ngt<mode>): Likewise.
20909 (vector_ngtu<mode>): Likewise.
20911 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
20913 PR rtl-optimization/66706
20914 * combine.c (make_compound_operation): If an AND of SUBREG of
20915 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
20917 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
20919 * tree-pass.h (make_pass_ch_vect): New.
20920 * passes.def: Add pass_ch_vect just before pass_if_conversion.
20922 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
20923 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
20924 make_pass_ch_vect): New.
20925 (pass_ch): Extend ch_base.
20927 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
20928 (ch_base::copy_headers): ...here.
20930 2015-07-02 Richard Biener <rguenther@suse.de>
20932 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
20933 * fold-const.c (get_pointer_modulus_and_residue): Remove.
20934 (fold_binary_loc): Implement (T)ptr & CST in terms of
20935 get_pointer_alignment_1.
20936 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
20937 Make sure to build the alignment test on a SSA name without
20938 final alignment info valid only after the prologue.
20940 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
20942 * config/cris/cris.md ("epilogue"): Remove condition.
20943 ("prologue"): Ditto.
20945 2015-07-02 Richard Biener <rguenther@suse.de>
20947 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
20948 parameter to record a condition that is false.
20949 (record_conditions): When recording an extra NE_EXPR that is
20950 true also record a EQ_EXPR that is false.
20952 2015-07-02 Bin Cheng <bin.cheng@arm.com>
20954 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
20955 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
20956 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
20957 (set_iv, find_interesting_uses_address, add_candidate_1): New
20958 argument to alloc_iv.
20959 (find_interesting_uses_op, find_interesting_uses_cond): Don't
20960 duplicate struct iv.
20961 (free_loop_data): Don't free struct iv explicitly.
20962 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
20964 2015-07-01 DJ Delorie <dj@redhat.com>
20966 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
20968 (SUPPORTS_DISCRIMINATOR): Define.
20970 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
20973 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
20974 there are no CALLs in the same pattern.
20976 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
20978 PR rtl-optimization/61047
20979 * rtlanal.c (get_initial_register_offset): New function.
20980 (rtx_addr_can_trap_p_1): Check offsets of stack references.
20982 2015-07-01 Richard Biener <rguenther@suse.de>
20984 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
20985 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
20986 ~X CMP C -> X CMP' ~C to ...
20987 * match.pd: ... patterns here.
20989 2015-07-01 Nick Clifton <nickc@redhat.com>
20991 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
20992 a 16-bit value into a 20-bit memory slot.
20994 2015-07-01 Jiong Wang <jiong.wang@arm.com>
20996 * doc/sourcebuild.texi (AArch64-specific attributes): Document
20997 "aarch64_tiny", "aarch64_small", "aarch64_large",
20998 "aarch64_little_endian", "aarch64_big_endian".
21000 2015-07-01 Jiong Wang <jiong.wang@arm.com>
21002 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
21003 Document "aarch64_small_fpic".
21005 2015-07-01 Jiong Wang <jiong.wang@arm.com>
21007 * configure.ac: Add check for aarch64 assembler -fpic relocation
21009 * configure: Regenerate.
21010 * config.in: Regenerate.
21011 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
21012 to -fPIC if not support of -fpic relocation modifier in assembler.
21014 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
21017 * rtl.c (classify_insn): Handle returns in PARALLELs.
21019 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
21021 PR middle-end/66633
21022 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
21023 to true if the function is nested and if not optimizing.
21024 (convert_local_omp_clauses): Initialize need_frame to true if the
21025 function contains nested functions and if not optimizing.
21027 2015-07-01 Richard Biener <rguenther@suse.de>
21029 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
21030 (X & Y) ^ Y -> ~X & Y transforms to ...
21031 * match.pd: ... here.
21033 2015-07-01 Richard Biener <rguenther@suse.de>
21035 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
21036 of converts to avoid uninteresting noise from the conversion
21037 simplifying patterns.
21039 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
21041 * config/c6x/c6x.c (try_rename_operands): Do not depend on
21042 gcc_assert evaluating its argument for side-effect.
21044 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
21047 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
21050 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
21052 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
21053 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
21054 (hash_scc): Add this_ref_p and ref_p parameters and pass them
21055 to the inner DFS walk.
21057 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21059 * target-insns.def (jump): New targetm instruction pattern.
21060 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
21061 instead of gen_jump.
21062 (fix_up_crossing_landing_pad): Likewise.
21063 (add_labels_and_missing_jumps): Likewise.
21064 (fix_crossing_conditional_branches): Likewise.
21065 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
21066 (force_nonfallthru_and_redirect): Likewise.
21067 * cse.c (cse_insn): Likewise.
21068 * expmed.c (expand_divmod): Likewise.
21069 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
21070 * haifa-sched.c (init_before_recovery): Likewise.
21071 (sched_create_recovery_edges): Likewise.
21072 * ifcvt.c (find_cond_trap): Likewise.
21073 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
21074 (expand_float, expand_fix): Likewise.
21075 * stmt.c (emit_jump): Likewise.
21077 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21079 * defaults.h (HAVE_load_multiple, gen_load_multiple)
21080 (HAVE_store_multiple, gen_store_multiple): Delete.
21081 * target-insns.def (load_multiple, store_multiple): New targetm
21082 instruction patterns.
21083 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
21084 of HAVE_*/gen_* interface.
21086 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21088 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
21089 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
21090 (gen_mem_signal_fence): Delete.
21091 * target-insns.def (mem_signal_fence, mem_thread_fence)
21092 (memory_barrier): New targetm instruction patterns.
21093 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
21095 (expand_mem_signal_fence): Likewise.
21097 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21099 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
21100 * target-insns.def (epilogue, prologue, sibcall_prologue): New
21101 targetm instruction patterns.
21102 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
21104 * calls.c (expand_call): Likewise.
21105 * cfgrtl.c (cfg_layout_finalize): Likewise.
21106 * df-scan.c (df_get_entry_block_def_set): Likewise.
21107 (df_get_exit_block_use_set): Likewise.
21108 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
21109 * final.c (final_start_function): Likewise.
21110 * function.c (thread_prologue_and_epilogue_insns): Likewise.
21111 (reposition_prologue_and_epilogue_notes): Likewise.
21112 * reorg.c (find_end_label): Likewise.
21113 * toplev.c (process_options): Likewise.
21115 2015-06-30 David Malcolm <dmalcolm@redhat.com>
21117 * typed-splay-tree.h: New file.
21119 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
21122 * lra-int.h (lra_substitute_pseudo): Add a parameter.
21123 (lra_substitute_pseudo_within_insn): Ditto.
21124 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
21126 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
21127 to lra_substitute_pseudo.
21128 * lra-lives.c (process_bb_lives): Add an argument to
21129 lra_substitute_pseudo_within_insn call.
21130 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
21131 argument to lra_substitute_pseudo and
21132 lra_substitute_pseudo_within_insn calls.
21133 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
21135 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
21137 * configure: Regenerated.
21139 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
21141 * config.gcc: Support i[34567]86-*-elfiamcu target.
21142 * config/i386/iamcu.h: New.
21143 * config/i386/i386.opt: Add -miamcu.
21144 * doc/invoke.texi: Document -miamcu.
21145 * common/config/i386/i386-common.c (ix86_handle_option): Turn
21146 off x87/MMX/SSE/AVX codegen for -miamcu.
21147 * config/i386/i386-c.c (ix86_target_macros_internal): Define
21148 __iamcu/__iamcu__ for -miamcu.
21149 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
21150 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
21151 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
21152 * config/i386/i386.c (ix86_option_override_internal): Ignore and
21153 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
21154 MCU by default. Default long double to 64-bit for Intel MCU.
21155 Turn on -freg-struct-return for Intel MCU. Issue an error when
21156 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
21158 (function_arg_advance_32): Pass value whose size is no larger
21159 than 8 bytes in registers for Intel MCU.
21160 (function_arg_32): Likewise.
21161 (ix86_return_in_memory): Return value whose size is no larger
21162 than 8 bytes in registers for Intel MCU.
21163 (iamcu_alignment): New function.
21164 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
21166 (ix86_local_alignment): Don't increase alignment for Intel MCU.
21167 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
21170 2015-06-30 Marek Polacek <polacek@redhat.com>
21172 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
21173 both operands of the resulting expression.
21175 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
21176 the final expression with the operand's type and then convert
21177 it to the type of the expression.
21179 2015-06-30 Richard Biener <rguenther@suse.de>
21181 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
21182 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
21183 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
21184 * match.pd: ... to patterns here.
21186 2015-06-30 Richard Biener <rguenther@suse.de>
21188 PR tree-optimization/66704
21189 * tree-vect-data-refs.c (vect_setup_realignment): Use
21190 make_ssa_name for non-SSA name source.
21192 2015-06-30 Jakub Jelinek <jakub@redhat.com>
21194 PR middle-end/66702
21195 * omp-low.c (simd_clone_adjust): Handle addressable linear
21196 or uniform parameters or non-gimple type uniform parameters.
21198 2015-06-30 Richard Biener <rguenther@suse.de>
21200 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
21201 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
21202 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
21203 * match.pd: ... here.
21204 Add a few cases of A - B -> A + (-B) when B "easily" negates.
21205 Move (x & y) | x -> x and friends before
21206 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
21208 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
21210 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
21211 -mfix-ut699 is not specified.
21212 (leon3_load): Rename into...
21213 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
21216 2015-06-30 Marek Polacek <polacek@redhat.com>
21218 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
21219 * match.pd: ... here.
21221 2015-06-30 Richard Biener <rguenther@suse.de>
21223 * target-insns.def (canonicalize_funcptr_for_compare): Add.
21224 * fold-const.c (build_range_check): Replace uses of
21225 HAVE_canonicalize_funcptr_for_compare.
21226 (fold_widened_comparison): Likewise.
21227 (fold_sign_changed_comparison): Likewise.
21228 * dojump.c: Include "target.h".
21229 (do_compare_and_jump): Replace uses of
21230 HAVE_canonicalize_funcptr_for_compare and
21231 gen_canonicalize_funcptr_for_compare.
21232 * expr.c (do_store_flag): Likewise.
21234 2015-06-30 Tom de Vries <tom@codesourcery.com>
21236 PR tree-optimization/66652
21237 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
21238 max_loop_iterations to determine if nit + 1 overflows.
21240 2015-06-30 Richard Biener <rguenther@suse.de>
21242 * tree-vrp.c (register_edge_assert_for_2): Also register
21243 asserts for dominating conversion results.
21245 2015-06-30 Bin Cheng <bin.cheng@arm.com>
21247 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
21248 field in struct iv.
21250 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
21253 * configure.ac: Fix filds and fildq test for 64-bit.
21254 * configure: Regenerated.
21256 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
21258 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
21259 (nvptx_reorg): Here. Keep the non-subreg pieces.
21261 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
21263 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
21264 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
21266 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
21268 * config/i386/i386.md (*jcc_1): Use %! in asm template.
21269 Set attribute "length_nobnd" instead of "length".
21272 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
21274 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
21276 * config/nios2/nios2.c (nios2_delegitimize_address): Make
21277 assert less restrictive.
21279 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
21282 * cgraphunit.c (cgraph_node::finalize_function): Do not call
21283 do_warn_unused_parameter.
21284 * function.c (do_warn_unused_parameter): Move from here.
21285 * function.h (do_warn_unused_parameter): Do not declare.
21287 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21290 * gcc.target/arm/armv-sync-comp-swap.c: New.
21291 * gcc.target/arm/armv-sync-op-acquire.c: New.
21292 * gcc.target/arm/armv-sync-op-full.c: New.
21293 * gcc.target/arm/armv-sync-op-release.c: New.
21295 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21298 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
21299 initial acquire barrier with final barrier.
21301 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21304 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
21305 initial acquire barrier with final barrier.
21307 2015-06-29 Richard Henderson <rth@redhat.com>
21309 * config/i386/constraints.md (Bf): New constraint.
21310 * config/i386/i386-c.c (ix86_target_macros): Define
21311 __GCC_ASM_FLAG_OUTPUTS__.
21312 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
21314 * doc/extend.texi (FlagOutputOperands): Document them.
21316 2015-06-29 Jiong Wang <jiong.wang@arm.com>
21318 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
21319 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
21321 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
21322 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
21323 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
21324 (aarch64_symbol_context): Ditto.
21325 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
21326 and use new pattern name.
21327 (aarch64_expand_mov_immediate): Ditto.
21328 (aarch64_print_operand): Ditto.
21329 (aarch64_classify_tls_symbol): Ditto.
21331 2015-06-29 Marek Polacek <polacek@redhat.com>
21332 Marc Glisse <marc.glisse@inria.fr>
21334 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
21335 * match.pd: ... pattern here.
21337 2015-06-29 Tom de Vries <tom@codesourcery.com>
21339 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
21340 function structure.
21342 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21344 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
21345 feature description, split out the native option, add a link to
21346 the feature documentation, rearrange and slightly rewrite text.
21347 (Aarch64 options, -mcpu): Likewise.
21348 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
21349 +rdma implies Adv. SIMD.
21351 2015-06-29 Marek Polacek <polacek@redhat.com>
21354 * function.c (stack_protect_epilogue): Remove a cast to int.
21355 * doc/invoke.texi: Update -Wswitch-bool description.
21357 2015-06-29 Richard Biener <rguenther@suse.de>
21359 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
21360 * fold-const.c (fold_binary_loc): Move &A - &B simplification
21361 via ptr_difference_const ...
21362 * match.pd: ... here.
21363 When matching (X ^ Y) == Y also match with swapped operands.
21365 2015-06-29 Richard Biener <rguenther@suse.de>
21367 * lto-streamer.h (LTO_major_version): Bump to 5.
21369 2015-06-29 Richard Biener <rguenther@suse.de>
21371 PR tree-optimization/66677
21372 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
21373 STMT_VINFO_VEC_STMT clobbering less strict.
21375 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21377 PR middle-end/64130
21378 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
21379 division, compute max and min when value ranges for dividend and
21380 divisor are available.
21382 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
21383 Sandra Loosemore <sandra@codesourcery.com>
21385 * regrename.h (regrename_do_replace): Change to return bool.
21386 * regrename.c (rename_chains): Check return value of
21387 regname_do_replace.
21388 (regrename_do_replace): Re-validate the modified insns and
21389 return bool status.
21390 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
21391 Update to match rename_chains changes.
21392 * config/c6x/c6x.c (try_rename_operands): Assert that
21393 regrename_do_replace returns true.
21395 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
21397 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
21398 operand 2 here. Use copy_addr_to_reg to copy non-index
21399 register operand 2 to a temporary.
21400 (<mode>_stx): Ditto for operand 1.
21401 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
21402 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
21403 (ix86_store_bounds): Ditto.
21405 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
21407 * print-tree.c (print_node) [TREE_VEC]: Print its length.
21409 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
21411 * gimple.c (gimple_call_set_fndecl): Remove.
21412 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
21413 build1_loc directly instead of build_fold_addr_expr_loc.
21415 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
21417 * hash-map.h (hash_map::traverse): Use the definition of the
21418 Key typedef rather than the typedef itself.
21420 2015-06-26 Martin Jambor <mjambor@suse.cz>
21423 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
21424 NULL instead of calling dump_enabled_p.
21426 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21428 * config/aarch64/aarch64.opt: (override): New.
21429 * doc/invoke.texi (override): Document.
21430 * config/aarch64/aarch64.c (aarch64_flag_desc): New
21431 (aarch64_fusible_pairs): Likewise.
21432 (aarch64_tuning_flags): Likewise.
21433 (aarch64_tuning_override_function): Likewise.
21434 (aarch64_tuning_override_functions): Likewise.
21435 (aarch64_parse_one_option_token): Likewise.
21436 (aarch64_parse_boolean_options): Likewise.
21437 (aarch64_parse_fuse_string): Likewise.
21438 (aarch64_parse_tune_string): Likewise.
21439 (aarch64_parse_one_override_token): Likewise.
21440 (aarch64_parse_override_string): Likewise.
21441 (aarch64_override_options): Parse the -override string if it
21444 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21446 * config/aarch64/aarch64-protos.h (tune_params): Remove
21447 const from members.
21448 (aarch64_tune_params): Remove const, change to no longer be
21450 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
21451 change to no longer be a pointer, initialize to generic_tunings.
21452 (aarch64_min_divisions_for_recip_mul): Change dereference of
21453 aarch64_tune_params to member access.
21454 (aarch64_reassociation_width): Likewise.
21455 (aarch64_rtx_mult_cost): Likewise.
21456 (aarch64_address_cost): Likewise.
21457 (aarch64_branch_cost): Likewise.
21458 (aarch64_rtx_costs): Likewise.
21459 (aarch64_register_move_cost): Likewise.
21460 (aarch64_memory_move_cost): Likewise.
21461 (aarch64_sched_issue_rate): Likewise.
21462 (aarch64_builtin_vectorization_cost): Likewise.
21463 (aarch64_override_options): Take a copy of the selected tuning
21464 struct in to aarch64_tune_params, rather than just setting
21465 a pointer, change dereferences of aarch64_tune_params to member
21467 (aarch64_override_options_after_change): Change dereferences of
21468 aarch64_tune_params to member access.
21469 (aarch64_macro_fusion_p): Likewise.
21470 (aarch_macro_fusion_pair_p): Likewise.
21471 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
21473 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21475 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
21476 (aarch64_tune_flags): Likewise.
21477 (AARCH64_TUNE_FMA_STEERING): Likewise.
21478 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
21479 to AARCH64_FL_USE_FMA_STEERING_PASS.
21480 (cortex-a57.cortex-a53): Likewise.
21481 (cortex-a72): Use cortexa72_tunings.
21482 (cortex-a72.cortex-a53): Likewise.
21483 (exynos-m1): Likewise.
21484 * config/aarch64/aarch64-protos.h (tune_params): Add
21485 a field: extra_tuning_flags.
21486 * config/aarch64/aarch64-tuning-flags.def: New.
21487 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
21488 (aarch64_extra_tuning_flags): Likewise.
21489 (aarch64_tune_params): Declare here.
21490 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
21491 (cortexa53_tunings): Likewise.
21492 (cortexa57_tunings): Likewise.
21493 (thunderx_tunings): Likewise.
21494 (xgene1_tunings): Likewise.
21495 (cortexa72_tunings): New.
21496 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
21497 (gate): Check against aarch64_tune_params.
21498 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
21501 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21503 * config/aarch64/aarch64-fusion-pairs.def: New.
21504 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
21505 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
21506 aarch64_fusion_pairs.
21507 (AARCH64_FUSE_MOV_MOVK): Likewise.
21508 (AARCH64_FUSE_ADRP_ADD): Likewise.
21509 (AARCH64_FUSE_MOVK_MOVK): Likewise.
21510 (AARCH64_FUSE_ADRP_LDR): Likewise.
21511 (AARCH64_FUSE_CMP_BRANCH): Likewise.
21513 2015-06-26 Jiong Wang <jiong.wang@arm.com>
21515 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
21516 SYMBOL_SMALL_GOT_28K.
21517 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
21518 relocation modifiers.
21519 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
21520 (ldr_got_small_28k_<mode>): New.
21521 (ldr_got_small_28k_sidi): New.
21522 * config/aarch64/iterators.md (got_modifier): New mode iterator.
21523 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
21524 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
21525 SYMBOL_SMALL_GOT_28K.
21526 (aarch64_rtx_costs): Add costs for new instruction sequences.
21527 (initialize_aarch64_code_model): Initialize new model.
21528 (aarch64_classify_symbol): Recognize new model and new symbol classification.
21529 (aarch64_asm_preferred_eh_data_format): Support new model.
21530 (aarch64_load_symref_appropriately): Generate new instruction
21531 sequences for -fpic.
21532 (TARGET_USE_PSEUDO_PIC_REG): New definition.
21533 (aarch64_use_pseudo_pic_reg): New function.
21535 2015-06-26 Jiong Wang <jiong.wang@arm.com>
21537 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
21538 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
21539 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
21540 (aarch64_expand_mov_immediate): Ditto.
21541 (aarch64_print_operand): Ditto.
21542 (aarch64_classify_symbol): Ditto.
21544 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
21546 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
21548 2015-06-26 Bin Cheng <bin.cheng@arm.com>
21551 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
21552 assertion failed. Remove assertion itself.
21554 2015-06-26 Richard Biener <rguenther@suse.de>
21556 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
21557 and -A CMP CST -> A CMP -CST which is redundant with a pattern
21559 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
21560 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
21561 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
21562 * match.pd: ... patterns here.
21564 2015-06-26 Marek Polacek <polacek@redhat.com>
21566 * match.pd ((x | y) & ~(x & y) -> x ^ y,
21567 (x | y) & (~x ^ y) -> x & y): New patterns.
21569 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
21571 * rtl.h (emit): Add an optional boolean parameter to control
21572 whether barriers are emitted.
21573 * emit-rtl.c (emit): Likewise.
21574 * gensupport.c (get_emit_function): Return null rather than "emit".
21575 * genemit.c (gen_emit_seq): Handle the null return value.
21576 Don't emit barriers after the final instruction in the sequence.
21577 * gentarget-def.c (main): Don't emit barriers after the instruction.
21579 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21581 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
21582 TARGET_UNIFIED_ASM.
21584 2015-06-26 Richard Biener <rguenther@suse.de>
21586 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
21588 2015-06-26 Richard Biener <rguenther@suse.de>
21590 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
21591 irrespective on whether the inner operation has a single use
21592 of both off are constant.
21594 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
21595 Segher Boessenkool <segher@kernel.crashing.org>
21598 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
21599 before doing PUT_MODE or PUT_CODE on operands to avoid
21600 in-place RTX modification.
21602 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
21604 * gentarget-def.c (def_target_insn): Cast return of strtol to
21607 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
21609 * gimple.h (gimple_call_set_fn): Move inline function.
21610 * gimple.c (gimple_call_set_fn): Relocate here.
21612 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
21616 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
21617 the replacement insn will work.
21619 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
21621 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
21624 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
21626 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
21627 * cgraph.h: Include ipa-ref.h and plugin-api.h.
21628 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
21629 (symtab_node::address_can_be_compared_p): Move function.
21630 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
21632 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
21633 * auto-profile.c: Likewise.
21634 * bb-reorder.c: Likewise.
21635 * builtins.c: Likewise.
21636 * calls.c: Likewise.
21637 * cfgexpand.c: Likewise.
21638 * cgraphbuild.c: Likewise.
21639 * cgraphclones.c: Likewise.
21640 * cgraphunit.c: Likewise.
21641 * combine.c: Likewise.
21642 * coverage.c: Likewise.
21643 * data-streamer-in.c: Likewise.
21644 * data-streamer-out.c: Likewise.
21645 * data-streamer.c: Likewise.
21646 * dbxout.c: Likewise.
21647 * dwarf2out.c: Likewise.
21648 * except.c: Likewise.
21649 * expr.c: Likewise.
21650 * final.c: Likewise.
21651 * fold-const.c: Likewise.
21652 * ggc-page.c: Likewise.
21653 * gimple-fold.c: Likewise.
21654 * gimple-iterator.c: Likewise.
21655 * gimple-pretty-print.c: Likewise.
21656 * gimple-streamer-in.c: Likewise.
21657 * gimple-streamer-out.c: Likewise.
21658 * gimple.c: Likewise.
21659 * gimplify.c: Likewise.
21660 * ipa-chkp.c: Likewise.
21661 * ipa-comdats.c: Likewise.
21662 * ipa-cp.c: Likewise.
21663 * ipa-devirt.c: Likewise.
21664 * ipa-icf-gimple.c: Likewise.
21665 * ipa-icf.c: Likewise.
21666 * ipa-inline-analysis.c: Likewise.
21667 * ipa-inline-transform.c: Likewise.
21668 * ipa-inline.c: Likewise.
21669 * ipa-polymorphic-call.c: Likewise.
21670 * ipa-profile.c: Likewise.
21671 * ipa-prop.c: Likewise.
21672 * ipa-pure-const.c: Likewise.
21673 * ipa-ref.c: Likewise.
21674 * ipa-reference.c: Likewise.
21675 * ipa-split.c: Likewise.
21676 * ipa-utils.c: Likewise.
21677 * ipa-visibility.c: Likewise.
21679 * langhooks.c: Likewise.
21680 * lto-cgraph.c: Likewise.
21681 * lto-compress.c: Likewise.
21682 * lto-opts.c: Likewise.
21683 * lto-section-in.c: Likewise.
21684 * lto-section-out.c: Likewise.
21685 * lto-streamer-in.c: Likewise.
21686 * lto-streamer-out.c: Likewise.
21687 * lto-streamer.c: Likewise.
21688 * omp-low.c: Likewise.
21689 * opts-global.c: Likewise.
21690 * passes.c: Likewise.
21691 * predict.c: Likewise.
21692 * print-tree.c: Likewise.
21693 * profile.c: Likewise.
21695 * sanopt.c: Likewise.
21696 * stor-layout.c: Likewise.
21697 * symtab.c: Likewise.
21698 * toplev.c: Likewise.
21699 * trans-mem.c: Likewise.
21700 * tree-cfg.c: Likewise.
21701 * tree-chkp.c: Likewise.
21702 * tree-eh.c: Likewise.
21703 * tree-emutls.c: Likewise.
21704 * tree-inline.c: Likewise.
21705 * tree-nested.c: Likewise.
21706 * tree-parloops.c: Likewise.
21707 * tree-pretty-print.c: Likewise.
21708 * tree-profile.c: Likewise.
21709 * tree-sra.c: Likewise.
21710 * tree-ssa-alias.c: Likewise.
21711 * tree-ssa-live.c: Likewise.
21712 * tree-ssa-loop-ivcanon.c: Likewise.
21713 * tree-ssa-loop-ivopts.c: Likewise.
21714 * tree-ssa-pre.c: Likewise.
21715 * tree-ssa-sccvn.c: Likewise.
21716 * tree-ssa-strlen.c: Likewise.
21717 * tree-ssa-structalias.c: Likewise.
21718 * tree-streamer-in.c: Likewise.
21719 * tree-streamer-out.c: Likewise.
21720 * tree-streamer.c: Likewise.
21721 * tree-switch-conversion.c: Likewise.
21722 * tree-tailcall.c: Likewise.
21723 * tree-vect-data-refs.c: Likewise.
21724 * tree-vect-stmts.c: Likewise.
21725 * tree-vectorizer.c: Likewise.
21726 * tree.c: Likewise.
21727 * tsan.c: Likewise.
21728 * ubsan.c: Likewise.
21729 * value-prof.c: Likewise.
21730 * varasm.c: Likewise.
21731 * varpool.c: Likewise.
21732 * config/arm/arm.c: Likewise.
21733 * config/bfin/bfin.c: Likewise.
21734 * config/c6x/c6x.c: Likewise.
21735 * config/cris/cris.c: Likewise.
21736 * config/darwin-c.c: Likewise.
21737 * config/darwin.c: Likewise.
21738 * config/i386/i386.c: Likewise.
21739 * config/i386/winnt.c: Likewise.
21740 * config/microblaze/microblaze.c: Likewise.
21741 * config/mips/mips.c: Likewise.
21742 * config/rs6000/rs6000.c: Likewise.
21743 * config/rx/rx.c: Likewise.
21744 * config/s390/s390.c: Likewise.
21745 * config/tilegx/mul-tables.c: Likewise.
21747 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21749 * config/aarch64/aarch64.c, config/alpha/alpha.c,
21750 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
21751 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
21752 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
21753 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
21754 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
21755 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
21756 config/microblaze/microblaze.c, config/mips/mips.c,
21757 config/mmix/mmix.c, config/mn10300/mn10300.c,
21758 config/moxie/moxie.c, config/msp430/msp430.c,
21759 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
21760 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
21761 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
21762 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
21763 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
21764 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
21765 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
21766 target-def.h include.
21767 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
21769 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21771 * Makefile.in (TARGET_DEF): Add target-insns.def.
21772 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
21773 (build/gentarget-def.o): New rule.
21774 (genprogrtl): Add target-def.
21775 * target-insns.def, gentarget-def.c: New files.
21776 * target.def: Add targetm.have_* and targetm.gen_* hooks,
21777 based on the contents of target-insns.def.
21778 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
21779 (HAVE_return, gen_return): Delete.
21780 * target-def.h: Include insn-target-def.h.
21781 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
21782 instead of direct calls. Rely on them to do the appropriate assertions.
21783 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
21784 (convert_jumps_to_returns): Use targetm interface instead of
21786 (thread_prologue_and_epilogue_insns): Likewise.
21787 * reorg.c (find_end_label, dbr_schedule): Likewise.
21788 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
21789 * shrink-wrap.c (convert_to_simple_return): Likewise.
21790 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
21792 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21794 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
21795 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
21796 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
21797 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
21798 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
21799 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
21800 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
21801 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
21802 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
21803 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
21804 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
21805 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
21806 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
21807 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
21808 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
21809 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
21812 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21814 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
21815 (unbounded_int_hashmap_traits::key_type): Likewise.
21816 * hash-map.h (hash_map): Get the key type from the traits.
21817 * hash-traits.h (default_hash_traits): By default, inherit from the
21818 template parameter.
21819 * alias.c (alias_set_traits): Delete.
21820 (alias_set_entry_d::children): Use alias_set_hash as the first
21821 template parameter.
21822 (record_alias_subset): Update accordingly.
21823 * except.c (tree_hash_traits): Delete.
21824 (type_to_runtime_map): Use tree_hash as the first template parameter.
21825 (init_eh): Update accordingly.
21826 * genmatch.c (capture_id_map_hasher): Delete.
21827 (cid_map_t): Use nofree_string_hash as first template parameter.
21828 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
21829 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
21830 Use symbol_compare_hash as the first template parameter in
21831 subdivide_hash_map.
21832 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
21833 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
21834 template parameter.
21835 * passes.c (pass_registry_hasher): Delete.
21836 (name_to_pass_map): Use nofree_string_hash as the first template
21838 (register_pass_name): Update accordingly.
21839 * sanopt.c (sanopt_tree_map_traits): Delete.
21840 (sanopt_tree_triplet_map_traits): Delete.
21841 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
21842 template parameter.
21843 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
21844 the first template parameter.
21845 * sese.c (rename_map_hasher): Delete.
21846 (rename_map_type): Use tree_ssa_name_hash as the first template
21848 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
21849 (function_summary::m_map): Use map_hash as the first template
21851 (function_summary::release): Update accordingly.
21852 * tree-if-conv.c (phi_args_hash_traits): Delete.
21853 (predicate_scalar_phi): Use tree_operand_hash as the first template
21854 parameter to phi_arg_map.
21855 * tree-inline.h (dependence_hasher): Delete.
21856 (copy_body_data::dependence_map): Use dependence_hash as the first
21857 template parameter.
21858 * tree-inline.c (remap_dependence_clique): Update accordingly.
21859 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
21860 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
21862 (addr_stridxptr): Update accordingly.
21863 * value-prof.c (profile_id_traits): Delete.
21864 (cgraph_node_map): Use profile_id_hash as the first template
21866 (init_node_map): Update accordingly.
21867 * config/alpha/alpha.c (string_traits): Delete.
21868 (machine_function::links): Use nofree_string_hash as the first
21869 template parameter.
21870 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
21871 * config/m32c/m32c.c (pragma_traits): Delete.
21872 (pragma_htab): Use nofree_string_hash as the first template parameter.
21873 (m32c_note_pragma_address): Update accordingly.
21874 * config/mep/mep.c (pragma_traits): Delete.
21875 (pragma_htab): Use nofree_string_hash as the first template parameter.
21876 (mep_note_pragma_flag): Update accordingly.
21877 * config/mips/mips.c (mips16_flip_traits): Delete.
21878 (mflip_mips16_htab): Use nofree_string_hash as the first template
21880 (mflip_mips16_use_mips16_p): Update accordingly.
21881 (local_alias_traits): Delete.
21882 (mips16_local_aliases): Use nofree_string_hash as the first template
21884 (mips16_local_alias): Update accordingly.
21886 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21888 * hash-map-traits.h (default_hashmap_traits): Delete.
21890 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21892 * hash-map-traits.h (unbounded_hashmap_traits): New class.
21893 (unbounded_int_hashmap_traits): Likewise.
21894 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
21896 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21898 * ipa-icf.h (symbol_compare_hash): New class.
21899 (symbol_compare_hashmap_traits): Use it.
21900 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
21901 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
21902 (mem_alloc_description::reverse_mem_map_t): Remove redundant
21903 default_hashmap_traits.
21904 * sanopt.c (sanopt_tree_triplet_hash): New class.
21905 (sanopt_tree_triplet_map_traits): Use it.
21907 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21909 * gengtype-parse.c (require_template_declaration): Allow '+' in
21910 template parameters. Consolidate cases.
21911 * hash-traits.h (int_hash): New class.
21912 * alias.c (alias_set_hash): New structure.
21913 (alias_set_traits): Use it.
21914 * symbol-summary.h (function_summary::map_hash): New class.
21915 (function_summary::summary_hashmap_traits): Use it.
21916 * tree-inline.h (dependence_hash): New class.
21917 (dependence_hasher): Use it.
21918 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
21919 * value-prof.c (profile_id_hash): New class.
21920 (profile_id_traits): Use it.
21922 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21924 * config/mips/mips.c (mips16_flip_traits): Use it.
21925 (local_alias_traits, mips16_local_aliases): Convert from a map of
21926 rtxes to a map of symbol names.
21927 (mips16_local_alias): Update accordingly.
21929 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21931 * hash-traits.h (string_hash, nofree_string_hash): New classes.
21932 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
21933 * passes.c (pass_registry_hasher): Likewise.
21934 * config/alpha/alpha.c (string_traits): Likewise.
21935 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
21936 * config/m32c/m32c.c (pragma_traits): Likewise.
21937 * config/mep/mep.c (pragma_traits): Likewise.
21939 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21941 * tree-hash-traits.h (tree_hash): New class.
21942 * except.c: Include tree-hash-traits.h.
21943 (tree_hash_traits): Use tree_hash.
21945 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21947 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
21948 * sese.c: Include tree-hash-traits.h.
21949 (rename_map_hasher): Use tree_ssa_name_hasher.
21951 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21953 * tree-hash-traits.h (tree_decl_hash): New class.
21954 * tree-ssa-strlen.c: Include tree-hash-traits.h.
21955 (stridxlist_hash_traits): Use tree_decl_hash.
21957 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21959 * tree-hash-traits.h: New file.
21960 (tree_operand_hash): New class.
21961 * sanopt.c: Include tree-hash-traits.h.
21962 (sanopt_tree_map_traits): Use tree_operand_hash.
21963 * tree-if-conv.c: Include tree-hash-traits.h.
21964 (phi_args_hash_traits): Use tree_operand_hash.
21965 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
21966 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
21968 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21970 * hash-map-traits.h: Include hash-traits.h.
21971 (simple_hashmap_traits): New class.
21972 * mem-stats.h (hash_map): Change the default traits to
21973 simple_hashmap_traits<default_hash_traits<Key> >.
21975 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21977 * hash-table.h: Update comments.
21979 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21981 * hash-traits.h (default_hash_traits): New structure.
21982 * hash-set.h (default_hashset_traits): Delete.
21983 (hash_set): Use default_hash_traits<Key> instead of
21984 default_hashset_traits. Delete hash_entry type and use Key directly.
21985 * ipa-devirt.c (pair_traits): Delete.
21986 (default_hash_traits <type_pair>): Override.
21987 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
21988 (odr_types_equivalent_p, add_type_duplicate): Likewise.
21990 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21992 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
21994 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21996 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
21997 (has_is_empty, is_empty_helper): Delete.
21998 (has_mark_deleted, mark_deleted_helper): Delete.
21999 (has_mark_empty, mark_empty_helper): Delete.
22000 (hash_table::is_deleted): Call the Descriptor unconditionally.
22001 (hash_table::is_empty): Likewise.
22002 (hash_table::mark_deleted): Likewise.
22003 (hash_table::mark_empty): Likewise.
22005 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22007 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
22008 redundant typedefs and members.
22009 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
22010 redundant typedefs.
22011 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
22012 * ipa-devirt.c (odr_name_hasher): Likewise.
22013 (polymorphic_call_target_hasher): Likewise.
22014 * ira-costs.c (cost_classes_hasher): Likewise.
22015 * statistics.c (stats_counter_hasher): Likewise.
22016 * trans-mem.c (log_entry_hasher): Likewise.
22017 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
22018 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
22019 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
22020 * var-tracking.c (variable_hasher): Likewise.
22021 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
22022 Remove redundant typedefs and members.
22024 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22026 * hash-traits.h (ggc_cache_hasher): Rename to...
22027 (ggc_cache_remove): ...this and remove typedefs.
22028 (ggc_cache_ptr_hash): New class.
22029 * hash-table.h: Update commentary.
22030 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
22031 rather than ggc_cache_hasher.
22032 (const_wide_int_hasher, reg_attr_hasher): Likewise.
22033 (const_double_hasher, const_fixed_hasher): Likewise.
22034 * function.c (insn_cache_hasher): Likewise.
22035 * trans-mem.c (tm_wrapper_hasher): Likewise.
22036 * tree.h (tree_decl_map_cache_hasher): Likewise.
22037 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
22038 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
22039 * ubsan.c (tree_type_map_cache_hasher): Likewise.
22040 * varasm.c (tm_clone_hasher): Likewise.
22041 * config/i386/i386.c (dllimport_hasher): Likewise.
22042 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
22043 (tree_hasher): Likewise.
22045 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22047 * hash-traits.h (ggc_hasher): Rename to...
22048 (ggc_remover): ...this and remove typedefs.
22049 (ggc_cache_hasher): Update accordingly. Add typedefs.
22050 (ggc_ptr_hash): New class.
22051 * hash-table.h: Update comment.
22052 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
22054 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
22055 (tree_descriptor_hasher): Likewise.
22056 * cgraph.c (function_version_hasher): Likewise.
22057 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
22058 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
22059 (dw_loc_list_hasher, addr_hasher): Likewise.
22060 * function.h (used_type_hasher): Likewise.
22061 * function.c (temp_address_hasher): Likewise.
22062 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
22063 * libfuncs.h (libfunc_hasher): Likewise.
22064 * lto-streamer.h (decl_state_hasher): Likewise.
22065 * optabs.c (libfunc_decl_hasher): Likewise.
22066 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
22067 * varasm.c (section_hasher, object_block_hasher): Likewise.
22068 (const_rtx_desc_hasher): Likewise.
22069 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
22070 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
22072 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22074 * hash-traits.h (free_ptr_hash): New class.
22075 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
22076 rather than typed_free_remove. Remove redudant typedefs.
22077 (external_ref_hasher): Likewise.
22078 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
22079 (ehspec_hasher): Likewise.
22080 * ggc-common.c (saving_hasher): Likewise.
22081 * gimplify.c (gimplify_hasher): Likewise.
22082 * haifa-sched.c (delay_i2_hasher): Likewise.
22083 * loop-invariant.c (invariant_expr_hasher): Likewise.
22084 * loop-iv.c (biv_entry_hasher): Likewise.
22085 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
22086 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
22087 * tree-cfg.c (locus_discrim_hasher): Likewise.
22088 * tree-eh.c (finally_tree_hasher): Likewise.
22089 * tree-into-ssa.c (var_info_hasher): Likewise.
22090 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
22091 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
22092 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
22093 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
22094 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
22095 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
22096 (shared_bitmap_hasher): Likewise.
22097 * tree-ssa-threadupdate.c (redirection_data): Likewise.
22098 * tree-vectorizer.h (peel_info_hasher): Likewise.
22099 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
22100 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
22102 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22104 * hash-table.h: Update comments.
22105 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
22106 (nofree_ptr_hash): New class.
22107 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
22108 than typed_noop_remove. Remove redudant typedefs.
22109 * attribs.c (attribute_hasher): Likewise.
22110 * cfg.c (bb_copy_hasher): Likewise.
22111 * cselib.c (cselib_hasher): Likewise.
22112 * dse.c (invariant_group_base_hasher): Likewise.
22113 * dwarf2cfi.c (trace_info_hasher): Likewise.
22114 * dwarf2out.c (macinfo_entry_hasher): Likewise.
22115 (comdat_type_hasher, loc_list_hasher): Likewise.
22116 * gcse.c (pre_ldst_expr_hasher): Likewise.
22117 * genmatch.c (id_base): Likewise.
22118 * genrecog.c (test_pattern_hasher): Likewise.
22119 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
22120 * haifa-sched.c (delay_i1_hasher): Likewise.
22121 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
22122 * ipa-icf.h (congruence_class_group_hash): Likewise.
22123 * ipa-profile.c (histogram_hash): Likewise.
22124 * ira-color.c (allocno_hard_regs_hasher): Likewise.
22125 * lto-streamer.h (string_slot_hasher): Likewise.
22126 * lto-streamer.c (tree_entry_hasher): Likewise.
22127 * plugin.c (event_hasher): Likewise.
22128 * postreload-gcse.c (expr_hasher): Likewise.
22129 * store-motion.c (st_expr_hasher): Likewise.
22130 * tree-sra.c (uid_decl_hasher): Likewise.
22131 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
22132 (ssa_name_var_hash): Likewise.
22133 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
22134 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
22135 * tree-ssa-pre.c (pre_expr_d): Likewise.
22136 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
22137 * vtable-verify.h (registration_hasher): Likewise.
22138 * vtable-verify.c (vtbl_map_hasher): Likewise.
22139 * config/arm/arm.c (libcall_hasher): Likewise.
22140 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
22141 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
22142 * config/sol2.c (comdat_entry_hasher): Likewise.
22143 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
22144 (print_fold_checksum, fold_checksum_tree): Likewise.
22145 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
22146 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
22147 (fold_build_call_array_loc): Likewise.
22148 * tree-ssa-ccp.c (gimple_htab): Likewise.
22149 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
22150 rather than pointer_type.
22152 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22154 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
22155 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
22157 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22159 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
22160 (ggc_hasher::ggc_mx): Likewise.
22161 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
22162 that duplicate ggc_hasher ones.
22164 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22166 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
22167 (gt_cleare_cache): Check here for deleted and empty entries.
22168 Replace handle_cache_entry with a call to keep_cache_entry.
22169 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
22170 (ggc_cache_hasher::keep_cache_entry): New function.
22171 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
22172 (tm_wrapper_hasher::keep_cache_entry): New function.
22173 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
22174 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
22175 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
22176 (type_cache_hasher::keep_cache_entry): New function.
22177 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
22178 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
22179 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
22180 (tree_type_map_cache_hasher::keep_cache_entry): New function.
22181 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
22182 (tm_clone_hasher::keep_cache_entry): New function.
22183 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
22184 (dllimport_hasher::keep_cache_entry): New function.
22186 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22188 * hash-table.h: Include hash-traits.h.
22189 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
22190 (ggc_cache_hasher): Move to...
22191 * hash-traits.h: ...this new file.
22193 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22195 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
22196 struct cl_optimization.
22197 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
22198 * tree.c (make_node_stat): Allocate cl_optimization struct.
22199 (copy_node_stat): Allocate and copy cl_optimization struct.
22201 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22203 * function.h (struct incoming_args): Move struct.
22204 (pass_by_reference, reference_callee_copied): Remove prototypes.
22205 * emit-rtl.h (struct incoming_args): Relocate struct here.
22206 * calls.h (pass_by_reference, reference_callee_copied): Relocate
22208 * function.c (pass_by_reference, reference_callee_copied): Move.
22209 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
22210 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
22211 * ipa-chkp.c: Include calls.h.
22213 2015-06-25 Andrew Macleod <amacleod@redhat.com>
22215 * alias.h (alias_set_type): Move typedef.
22216 * coretypes.h (alias_set_type): Relocate typedef here.
22217 * rtl.h: Don't include alias.h.
22219 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22221 * cgraph.h (cgraph_rtl_info): Move to rtl.h
22222 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
22224 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
22225 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
22227 * calls.c: Include hard-reg-set.h before rtl.h.
22230 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
22231 Vladimir Makarov <vmakarov@redhat.com>
22233 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
22236 2015-06-25 Richard Biener <rguenther@suse.de>
22238 * fold-const.c (fold_binary_loc): Move simplification of
22239 (X <<>> C1) & C2 ...
22240 * match.pd: ... here.
22242 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
22244 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
22246 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22248 * match.pd: Add patterns for vec_conds between 1 and 0.
22250 2015-06-25 Richard Biener <rguenther@suse.de>
22252 * tree-vect-stmts.c (vectorizable_conversion): Do not set
22253 STMT_VINFO_VEC_STMT for SLP.
22254 (vectorizable_store): Likewise.
22255 (vectorizable_load): Likewise.
22256 (vect_transform_stmt): Catch SLP vectorization clobbering
22257 STMT_VINFO_VEC_STMT.
22259 2015-06-25 Richard Biener <rguenther@suse.de>
22261 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
22263 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
22264 cleanup resulting dead code and parameters.
22265 (vect_transform_slp_perm_load): Adjust.
22267 2015-06-25 Nick Clifton <nickc@redhat.com>
22269 * config/bfin/bfin.c (bfin_expand_prologue): Set
22270 current_function_static_stack_size if flag_stack_usage_info is set.
22271 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
22272 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
22273 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
22274 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
22276 2015-06-25 Tom de Vries <tom@codesourcery.com>
22278 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
22279 comment that the generated IV is unsigned.
22281 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22284 * config/arm/arm.c (arm_dbx_register_number): Return
22285 DWARF_FRAME_REGISTERS by default.
22287 2015-06-25 Tom de Vries <tom@codesourcery.com>
22289 * dominance.c (calculate_dominance_info): Fix verify_dominators call
22290 argument. Call verify_dominator when reusing dominator info.
22292 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
22295 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
22296 an additional element of the unspec vector. Modify indices
22298 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
22299 * config/sh/sh.c (prepare_move_operands): Pass incremented
22300 const_int to gen_GOTaddr2picreg.
22301 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
22303 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
22305 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
22306 Condition on TARGET_FLOAT.
22308 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
22310 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
22313 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
22315 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
22317 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
22318 aarch64_err_no_fpadvsimd.
22320 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
22321 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
22322 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
22323 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
22324 Turn error into assert, test TARGET_FLOAT.
22325 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
22328 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
22331 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
22333 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
22335 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
22337 2015-06-24 Renlin Li <renlin.li@arm.com>
22339 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
22340 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
22342 2015-06-24 Richard Biener <rguenther@suse.de>
22344 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
22346 (lower_opt_convert): Support lowering of conditional view_convert.
22347 (parser::parse_operation): Likewise.
22348 (parser::parse_for): Likewise.
22350 2015-06-24 Renlin Li <renlin.li@arm.com>
22352 * varasm.c (emit_local): Use unsigned int for align variable.
22354 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22357 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
22358 for negative numbers.
22360 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22362 PR rtl-optimization/66306
22363 * reload.c (find_reloads): Swap the match_dup info for
22364 commutative operands.
22366 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22368 * config/s390/vx-builtins.md
22369 ("vec_scatter_element<mode>_<non_vec_int>")
22370 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
22371 attribute with bhfgq.
22373 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22375 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
22377 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22379 * config/s390/s390-builtin-types.def: Add flag to indicate the
22380 options under which the function type is needed.
22381 * config/s390/s390-builtins.def: Add flag to indicate the options
22382 under which the builtin is enabled.
22383 * config/s390/s390-builtins.h: Add flags parameter to macro
22385 (bflags_for_builtin): New function.
22386 (flags_for_builtin): Renamed to ...
22387 (opflags_for_builtin): ... this.
22388 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
22389 flags_for_builtin to bflags_for_builtin and
22390 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
22391 * config/s390/s390.c: Add initialization of bflags_builtin and
22392 opflags_builtin arrays.
22393 Remove code for flags_builtin.
22394 (s390_init_builtins): Only create builtin function types if one of
22395 their flags is active.
22396 Only create builtins if all of their flags are active.
22397 (s390_expand_builtin): Rename flags_for_builtin to
22398 opflags_for_builtin.
22400 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22402 * config/s390/vecintrin.h: Remove internal builtins.
22404 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22406 * config/s390/s390.c (s390_secondary_reload): Fix check for
22407 GENERAL_REGS register class.
22409 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22411 * config/s390/s390.c (s390_support_vector_misalignment): Call
22412 default implementation for !TARGET_VX.
22414 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22416 * config/s390/s390.c (s390_legitimate_constant_p): Add
22419 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22421 * config/s390/s390.c (s390_vector_abi): New variable definition.
22422 (s390_check_type_for_vector_abi): New function.
22423 (TARGET_ASM_FILE_END): New macro definition.
22424 (s390_asm_file_end): New function.
22425 (s390_function_arg): Call s390_check_type_for_vector_abi.
22426 (s390_gimplify_va_arg): Likewise.
22427 * configure: Regenerate.
22428 * configure.ac: Check for .gnu_attribute Binutils feature.
22430 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
22433 * config/bfin/bfin.c (hwloop_optimize): Initialize
22434 JUMP_LABEL for newly created jump.
22436 2015-06-23 Tristan Gingold <gingold@adacore.com>
22438 * collect-utils.c (collect_wait): Unlink the response file here
22440 (do_wait): ...here.
22441 (utils_cleanup): ...and here.
22443 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
22445 * df-scan.c: Don't include target-def.h.
22446 * targhooks.c: Likewise.
22447 * config/arm/arm-c.c: Likewise.
22448 * config/i386/i386-c.c: Likewise.
22449 * config/nds32/nds32-cost.c: Likewise.
22450 * config/nds32/nds32-fp-as-gp.c: Likewise.
22451 * config/nds32/nds32-intrinsic.c: Likewise.
22452 * config/nds32/nds32-isr.c: Likewise.
22453 * config/nds32/nds32-md-auxiliary.c: Likewise.
22454 * config/nds32/nds32-memory-manipulation.c: Likewise.
22455 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22456 * config/nds32/nds32-predicates.c: Likewise.
22458 2015-06-23 Richard Biener <rguenther@suse.de>
22460 PR tree-optimization/66636
22461 * tree-vect-stmts.c (vectorizable_store): Properly compute the
22462 def type for further defs for strided stores.
22464 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
22466 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
22467 conditional selects.
22468 (setcc_int<mode>, setcc_float<mode>): Reformat.
22470 2015-06-23 Marek Polacek <polacek@redhat.com>
22472 * match.pd ((x + y) - (x | y) -> x & y,
22473 (x + y) - (x & y) -> x | y): New patterns.
22475 2015-06-23 Ludovic Courtès <ludo@gnu.org>
22478 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
22479 '-dynamic-linker' within %{!shared: ...}.
22481 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
22484 * config/i386/predicates.md (addsub_vm_operator): New predicate.
22485 (addsub_vs_operator): Ditto.
22486 (addsub_vs_parallel): Ditto.
22487 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
22488 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
22489 Put minus RTX before plus and adjust vec_merge selector.
22490 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
22491 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
22492 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
22493 (addsub vec_merge splitters): New combiner splitters.
22494 (addsub vec_select/vec_concat splitters): Ditto.
22496 2015-06-23 Bin Cheng <bin.cheng@arm.com>
22498 PR tree-optimization/66449
22499 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
22500 POINTER_PLUS_EXPR for pointers.
22502 2015-06-23 Alan Modra <amodra@gmail.com>
22504 * rtlanal.c (commutative_operand_precedence): Correct comments.
22505 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
22506 declaration. Return an int. Distinguish REG,REG return from
22508 (struct simplify_plus_minus_op_data): Make local to function.
22509 (simplify_plus_minus): Don't set canonicalized if merely sorting
22510 registers. Avoid packing ops if nothing changes. White space fixes.
22512 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
22514 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
22515 -fdump-ada-spec is passed but not if -fsyntax-only is.
22517 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
22520 * lra-lives.c (process_bb_lives): Check insn copying the same
22521 reload pseudo and don't create a copy for it.
22523 2015-06-22 Tom de Vries <tom@codesourcery.com>
22525 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
22528 2015-06-22 Tom de Vries <tom@codesourcery.com>
22530 * builtins.def (DEF_GOMP_BUILTIN): Test
22531 'flag_tree_parallelize_loops > 1' instead of
22532 'flag_tree_parallelize_loops'. Test flag_cilkplus.
22534 2015-06-22 Tom de Vries <tom@codesourcery.com>
22536 * dominance.c (calculate_dominance_info): Verify dominators if
22539 2015-06-22 Marek Polacek <polacek@redhat.com>
22541 * match.pd ((x ^ y) ^ (x | y) -> x & y,
22542 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
22543 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
22544 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
22546 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
22549 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
22550 cost of embedded comparison.
22552 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22555 * config/rs6000/predicates.md (altivec_register_operand): Permit
22556 virtual stack registers.
22557 (vsx_register_operand): Likewise.
22558 (vfloat_operand): Likewise.
22559 (vint_operand): Likewise.
22560 (vlogical_operand): Likewise.
22562 2015-06-22 Richard Biener <rguenther@suse.de>
22564 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
22565 and single_scalar_iteration_cost members.
22566 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
22567 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
22568 (vect_get_single_scalar_iteration_cost): Remove.
22569 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
22570 Use LOOP_VINFO_SCALAR_ITERATION_COST.
22571 * tree-vect-loop.c (destroy_loop_vec_info): Free
22573 (vect_get_single_scalar_iteration_cost): Compute result into
22574 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
22575 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
22576 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
22577 (vect_estimate_min_profitable_iters): Use them.
22579 2015-06-22 Christian Bruel <christian.bruel@st.com>
22582 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
22583 (TARGET_INSERT_ATTRIBUTES): Define.
22584 (thumb_flipper): New var.
22585 * config/arm/arm.opt (-mflip-thumb): New switch.
22587 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
22588 Martin Liska <mliska@suse.cz>
22591 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
22592 construction of arg_types.
22593 (sem_function::sem_function): Likewise.
22594 (sem_function::~sem_function): Remove destruction of arg_types.
22595 (sem_function::compatible_parm_types_p): New function.
22596 (sem_function::equals_wpa): Reorg matching of return values
22597 and parameter types.
22598 (sem_function::equals_private): Reorg mathcing of argument types.
22599 (sem_function::parse_tree_args): Remove.
22600 * ipa-icf.h (init_wpa): Do not call it.
22601 (parse_tree_args): Remove.
22602 (compatible_parm_types_p): Declare.
22603 (result_type): Remove.
22604 (arg_types): Remove.
22606 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
22609 * ipa-polymorphic-call.c
22610 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
22611 initializing alias oracle; fix formating; set base_alias_set if it
22614 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
22616 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
22617 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
22618 (find_inc): Likewise.
22619 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
22621 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
22622 * df-scan.c (df_swap_refs): Remove.
22623 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
22624 * dominance.c (link_roots): Use std::swap instead of manually swapping.
22625 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
22626 * fold-const.c (fold_relational_const): Likewise.
22627 * genattrtab.c (simplify_test_exp): Likewise.
22628 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
22629 gimple_simplify): Likewise.
22630 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
22631 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
22632 * ipa-devirt.c (add_type_duplicate): Likewise.
22633 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
22634 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
22635 * lra.c (lra_create_copy): Likewise.
22636 * lto-streamer-out.c (DFS::DFS): Likewise.
22637 * modulo-sched.c (get_sched_window): Likewise.
22638 * omega.c (omega_pretty_print_problem): Likewise.
22639 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
22640 * reload1.c (reloads_unique_chain_p): Likewise.
22641 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
22642 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
22644 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
22646 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
22647 predicate_mem_writes): Likewise.
22648 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
22649 * tree-predcom.c (combine_chains): Likewise.
22650 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
22651 refs_may_alias_p_1): Likewise.
22652 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
22653 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
22654 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
22655 number_of_iterations_cond): Likewise.
22656 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
22657 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
22658 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
22659 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
22660 * tree-vrp.c (extract_range_from_binary_expr_1,
22661 extract_range_from_unary_expr_1): Likewise.
22663 2015-06-20 Marek Polacek <polacek@redhat.com>
22665 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
22667 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
22670 * config/sh/sh.c (prepare_move_operands): Replace subreg
22671 index term with R0 for base and index addressing.
22673 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
22675 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
22677 (movsf_aarch64): Change condition from register_operand to
22678 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
22679 load1. Change type for alternative 7 to store1.
22680 (movdf_aarch64): Likewise.
22682 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
22684 * config/vax/vax.md: Adjust sign/zero extend patterns to
22685 handle SUBREGs in operands[1].
22687 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22689 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
22690 of manually swapping.
22691 (expand_vec_perm_interleave2): Likewise.
22693 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
22695 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
22696 reuse bounds created for abnormal ssa names.
22698 2015-06-19 Jakub Jelinek <jakub@redhat.com>
22700 * config/nvptx/nvptx.md (allocate_stack): Rename to...
22701 (allocate_stack_<mode>): ... this, and add :P on both
22702 match_operand and unspec.
22703 (allocate_stack): New expander.
22705 2015-06-19 Christian Bruel <christian.bruel@st.com>
22709 * config/arm/arm.c (arm_set_current_function): Handle
22710 explicit default options.
22712 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
22714 * config/i386/i386.md (*movsicc_noc_zext): New insn.
22715 (zero-extended cmove with mem peephole2): New pattern.
22716 (cmove with mem peephole2): Merge patterns.
22718 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
22720 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
22722 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
22724 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
22725 * config/mips/mips.md (*madd4<mode>): Ditto.
22726 (*nmadd3<mode>) Ditto.
22727 (*nmadd4<mode>_fastmath): Ditto.
22728 (*nmadd3<mode>_fastmath): Ditto.
22729 (*nmsub4<mode>): Ditto.
22730 (*nmsub3<mode>): Ditto.
22731 (*nmsub4<mode>_fastmath): Ditto.
22732 (*nmsub3<mode>_fastmath): Ditto.
22734 2015-06-18 Michael Matz <matz@suse.de>
22736 PR middle-end/66253
22737 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
22738 grouped strided stores.
22739 (vectorizable_load): Don't use the DR from first_stmt in
22740 the non-SLP grouped strided case.
22742 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
22745 * function.c (assign_bounds): Add arguments assign_regs,
22746 assign_special, assign_bt.
22747 (assign_parms): For vararg functions handle bounds in BT
22748 and special slots after incoming vararg bounds.
22750 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
22752 PR middle-end/66568
22753 * cfgexpand.c (expand_return): Handle missing bounds.
22754 (expand_gimple_stmt_1): Likewise.
22755 * tree-chkp.c (chkp_expand_zero_bounds): New.
22756 * tree-chkp.h (chkp_expand_zero_bounds): New.
22758 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
22760 PR middle-end/66567
22761 * ipa-chkp.c (chkp_maybe_create_clone): Require
22762 functions to be instrumentable.
22763 * tree-chkp.c (chkp_replace_function_pointer): Use
22764 chkp_instrumentable_p instead of attribute check.
22766 2015-06-18 Richard Biener <rguenther@suse.de>
22768 PR tree-optimization/66510
22769 * tree-vect-stmts.c (vectorizable_load): Properly compute the
22770 number of vector loads for SLP permuted loads.
22771 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
22772 check the stride for loop vectorization.
22773 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
22774 vectorization factor.
22775 (vect_analyze_group_access): If the group size is not a power
22776 of two require a epilogue loop.
22777 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
22778 compute and optimizing and alias test pruning after final
22779 vectorization factor computation.
22780 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
22782 (vect_transform_slp_perm_load): Properly compute the original
22783 number of vector load stmts.
22785 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
22787 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
22788 "unlikely character , in @var" warning.
22790 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
22792 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
22793 (ix86_function_arg_advance): Ditto.
22794 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
22796 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
22798 * function.h (struct rtl_data): Remove struct and accessor macros.
22799 * emit-rtl.h (struct rtl_data): Relocate to here.
22800 * Makefile.in (GTFILES): Add emit-rtl.h.
22801 * df-core.c: Include emit-rtl.h.
22802 * genattrtab.c: Likewise.
22803 * genconditions.c: Likewise.
22804 * genpreds.c: Likewise.
22805 * genrecog.c: Likewise.
22806 * regcprop.c: Likewise.
22807 * resource.c: Likewise.
22808 * sched-rgn.c: Likewise.
22809 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22810 * config/i386/winnt.c: Likewise.
22812 2015-06-17 Jakub Jelinek <jakub@redhat.com>
22814 PR middle-end/66429
22815 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
22816 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
22817 and has_force_vectorize_loops flags from cfun into
22819 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
22820 if simduid is non-NULL.
22821 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
22822 * passes.def (pass_simduid_cleanup): Add new pass after loop
22824 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
22825 indirection from htab argument's type.
22826 (shrink_simd_arrays): New function.
22827 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
22828 Don't call adjust_simduid_builtins if there are no loops.
22829 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
22830 (pass_simduid_cleanup::execute): New method.
22831 (make_pass_simduid_cleanup): New function.
22833 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
22835 * tree-core.h (tree_target_option): Make opts field a pointer to a
22836 cl_target_option instead of an instance of the struct.
22837 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
22839 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
22840 TARGET_OPTION_NODE.
22841 (copy_node_stat): Allocate and copy struct cl_target_option.
22843 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
22845 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
22846 Remove conditional exposure of prototypes.
22847 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
22848 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
22849 definitions in tree.h with functions.
22850 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
22852 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
22854 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
22856 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
22857 (*cmp<mode>_signed): ... this.
22858 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
22859 (*cmp<mode>_unsigned): ... this. Remove %b.
22861 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
22863 * coretypes.h: Include input.h and as-a.h.
22864 * rtl.h: Include input.h and as-a.h for generator files.
22865 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
22866 * vec.c: Don't include diagnostic-core.h.
22867 * alias.c: Do not include input.h, line-map.h or is-a.h.
22868 * asan.c: Likewise.
22869 * attribs.c: Likewise.
22870 * auto-inc-dec.c: Likewise.
22871 * auto-profile.c: Likewise.
22872 * bb-reorder.c: Likewise.
22873 * bt-load.c: Likewise.
22874 * builtins.c: Likewise.
22875 * caller-save.c: Likewise.
22876 * calls.c: Likewise.
22877 * ccmp.c: Likewise.
22879 * cfganal.c: Likewise.
22880 * cfgbuild.c: Likewise.
22881 * cfgcleanup.c: Likewise.
22882 * cfgexpand.c: Likewise.
22883 * cfghooks.c: Likewise.
22884 * cfgloop.c: Likewise.
22885 * cfgloop.h: Likewise.
22886 * cfgloopanal.c: Likewise.
22887 * cfgloopmanip.c: Likewise.
22888 * cfgrtl.c: Likewise.
22889 * cgraph.c: Likewise.
22890 * cgraphbuild.c: Likewise.
22891 * cgraphclones.c: Likewise.
22892 * cgraphunit.c: Likewise.
22893 * cilk-common.c: Likewise.
22894 * combine-stack-adj.c: Likewise.
22895 * combine.c: Likewise.
22896 * compare-elim.c: Likewise.
22897 * convert.c: Likewise.
22898 * coverage.c: Likewise.
22899 * cppbuiltin.c: Likewise.
22900 * cprop.c: Likewise.
22902 * cselib.c: Likewise.
22903 * data-streamer-in.c: Likewise.
22904 * data-streamer-out.c: Likewise.
22905 * data-streamer.c: Likewise.
22906 * dbxout.c: Likewise.
22909 * debug.c: Likewise.
22910 * df-core.c: Likewise.
22911 * df-problems.c: Likewise.
22912 * df-scan.c: Likewise.
22915 * diagnostic-core.h: Likewise.
22916 * diagnostic.c: Likewise.
22917 * dojump.c: Likewise.
22918 * dominance.c: Likewise.
22919 * domwalk.c: Likewise.
22920 * double-int.c: Likewise.
22922 * dumpfile.c: Likewise.
22923 * dumpfile.h: Likewise.
22924 * dwarf2asm.c: Likewise.
22925 * dwarf2cfi.c: Likewise.
22926 * dwarf2out.c: Likewise.
22927 * emit-rtl.c: Likewise.
22928 * et-forest.c: Likewise.
22929 * except.c: Likewise.
22930 * explow.c: Likewise.
22931 * expmed.c: Likewise.
22932 * expr.c: Likewise.
22933 * final.c: Likewise.
22934 * fixed-value.c: Likewise.
22935 * fold-const.c: Likewise.
22936 * function.c: Likewise.
22937 * fwprop.c: Likewise.
22938 * gcc-plugin.h: Likewise.
22939 * gcse.c: Likewise.
22940 * generic-match-head.c: Likewise.
22941 * ggc-page.c: Likewise.
22942 * gimple-builder.c: Likewise.
22943 * gimple-expr.c: Likewise.
22944 * gimple-fold.c: Likewise.
22945 * gimple-iterator.c: Likewise.
22946 * gimple-low.c: Likewise.
22947 * gimple-match-head.c: Likewise.
22948 * gimple-pretty-print.c: Likewise.
22949 * gimple-ssa-isolate-paths.c: Likewise.
22950 * gimple-ssa-strength-reduction.c: Likewise.
22951 * gimple-streamer-in.c: Likewise.
22952 * gimple-streamer-out.c: Likewise.
22953 * gimple-streamer.h: Likewise.
22954 * gimple-walk.c: Likewise.
22955 * gimple.c: Likewise.
22956 * gimplify-me.c: Likewise.
22957 * gimplify.c: Likewise.
22958 * godump.c: Likewise.
22959 * graph.c: Likewise.
22960 * graphite-blocking.c: Likewise.
22961 * graphite-dependences.c: Likewise.
22962 * graphite-interchange.c: Likewise.
22963 * graphite-isl-ast-to-gimple.c: Likewise.
22964 * graphite-optimize-isl.c: Likewise.
22965 * graphite-poly.c: Likewise.
22966 * graphite-scop-detection.c: Likewise.
22967 * graphite-sese-to-poly.c: Likewise.
22968 * graphite.c: Likewise.
22969 * haifa-sched.c: Likewise.
22970 * hw-doloop.c: Likewise.
22971 * ifcvt.c: Likewise.
22972 * init-regs.c: Likewise.
22973 * input.c: Likewise.
22974 * internal-fn.c: Likewise.
22975 * ipa-chkp.c: Likewise.
22976 * ipa-comdats.c: Likewise.
22977 * ipa-cp.c: Likewise.
22978 * ipa-devirt.c: Likewise.
22979 * ipa-icf-gimple.c: Likewise.
22980 * ipa-icf.c: Likewise.
22981 * ipa-inline-analysis.c: Likewise.
22982 * ipa-inline-transform.c: Likewise.
22983 * ipa-inline.c: Likewise.
22984 * ipa-polymorphic-call.c: Likewise.
22985 * ipa-profile.c: Likewise.
22986 * ipa-prop.c: Likewise.
22987 * ipa-pure-const.c: Likewise.
22988 * ipa-ref.c: Likewise.
22989 * ipa-reference.c: Likewise.
22990 * ipa-split.c: Likewise.
22991 * ipa-utils.c: Likewise.
22992 * ipa-visibility.c: Likewise.
22994 * ira-build.c: Likewise.
22995 * ira-color.c: Likewise.
22996 * ira-conflicts.c: Likewise.
22997 * ira-costs.c: Likewise.
22998 * ira-emit.c: Likewise.
22999 * ira-lives.c: Likewise.
23001 * jump.c: Likewise.
23002 * langhooks.c: Likewise.
23004 * loop-doloop.c: Likewise.
23005 * loop-init.c: Likewise.
23006 * loop-invariant.c: Likewise.
23007 * loop-iv.c: Likewise.
23008 * loop-unroll.c: Likewise.
23009 * lower-subreg.c: Likewise.
23010 * lra-assigns.c: Likewise.
23011 * lra-coalesce.c: Likewise.
23012 * lra-constraints.c: Likewise.
23013 * lra-eliminations.c: Likewise.
23014 * lra-lives.c: Likewise.
23015 * lra-remat.c: Likewise.
23016 * lra-spills.c: Likewise.
23018 * lto-cgraph.c: Likewise.
23019 * lto-compress.c: Likewise.
23020 * lto-opts.c: Likewise.
23021 * lto-section-in.c: Likewise.
23022 * lto-section-out.c: Likewise.
23023 * lto-streamer-in.c: Likewise.
23024 * lto-streamer-out.c: Likewise.
23025 * lto-streamer.c: Likewise.
23027 * mode-switching.c: Likewise.
23028 * modulo-sched.c: Likewise.
23029 * omega.c: Likewise.
23030 * omp-low.c: Likewise.
23031 * optabs.c: Likewise.
23032 * opts-global.c: Likewise.
23033 * opts.h: Likewise.
23034 * passes.c: Likewise.
23035 * plugin.c: Likewise.
23036 * postreload-gcse.c: Likewise.
23037 * postreload.c: Likewise.
23038 * predict.c: Likewise.
23039 * pretty-print.h: Likewise.
23040 * print-rtl.c: Likewise.
23041 * print-tree.c: Likewise.
23042 * profile.c: Likewise.
23043 * real.c: Likewise.
23044 * realmpfr.c: Likewise.
23045 * recog.c: Likewise.
23047 * reg-stack.c: Likewise.
23048 * regcprop.c: Likewise.
23049 * reginfo.c: Likewise.
23050 * regrename.c: Likewise.
23051 * regstat.c: Likewise.
23052 * reload.c: Likewise.
23053 * reload1.c: Likewise.
23054 * reorg.c: Likewise.
23055 * resource.c: Likewise.
23056 * rtl-chkp.c: Likewise.
23057 * rtl-error.c: Likewise.
23058 * rtlanal.c: Likewise.
23059 * rtlhooks.c: Likewise.
23060 * sanopt.c: Likewise.
23061 * sched-deps.c: Likewise.
23062 * sched-ebb.c: Likewise.
23063 * sched-rgn.c: Likewise.
23064 * sched-vis.c: Likewise.
23065 * sdbout.c: Likewise.
23066 * sel-sched-dump.c: Likewise.
23067 * sel-sched-ir.c: Likewise.
23068 * sel-sched.c: Likewise.
23069 * sese.c: Likewise.
23070 * shrink-wrap.c: Likewise.
23071 * simplify-rtx.c: Likewise.
23072 * stack-ptr-mod.c: Likewise.
23073 * statistics.c: Likewise.
23074 * stmt.c: Likewise.
23075 * stor-layout.c: Likewise.
23076 * store-motion.c: Likewise.
23077 * streamer-hooks.c: Likewise.
23078 * stringpool.c: Likewise.
23079 * symtab.c: Likewise.
23080 * target-globals.c: Likewise.
23081 * targhooks.c: Likewise.
23082 * toplev.c: Likewise.
23083 * tracer.c: Likewise.
23084 * trans-mem.c: Likewise.
23085 * tree-affine.c: Likewise.
23086 * tree-browser.c: Likewise.
23087 * tree-call-cdce.c: Likewise.
23088 * tree-cfg.c: Likewise.
23089 * tree-cfgcleanup.c: Likewise.
23090 * tree-chkp-opt.c: Likewise.
23091 * tree-chkp.c: Likewise.
23092 * tree-chrec.c: Likewise.
23093 * tree-complex.c: Likewise.
23094 * tree-data-ref.c: Likewise.
23095 * tree-dfa.c: Likewise.
23096 * tree-diagnostic.c: Likewise.
23097 * tree-dump.c: Likewise.
23098 * tree-eh.c: Likewise.
23099 * tree-emutls.c: Likewise.
23100 * tree-if-conv.c: Likewise.
23101 * tree-inline.c: Likewise.
23102 * tree-into-ssa.c: Likewise.
23103 * tree-iterator.c: Likewise.
23104 * tree-loop-distribution.c: Likewise.
23105 * tree-nested.c: Likewise.
23106 * tree-nrv.c: Likewise.
23107 * tree-object-size.c: Likewise.
23108 * tree-outof-ssa.c: Likewise.
23109 * tree-parloops.c: Likewise.
23110 * tree-phinodes.c: Likewise.
23111 * tree-predcom.c: Likewise.
23112 * tree-pretty-print.c: Likewise.
23113 * tree-profile.c: Likewise.
23114 * tree-scalar-evolution.c: Likewise.
23115 * tree-sra.c: Likewise.
23116 * tree-ssa-address.c: Likewise.
23117 * tree-ssa-alias.c: Likewise.
23118 * tree-ssa-ccp.c: Likewise.
23119 * tree-ssa-coalesce.c: Likewise.
23120 * tree-ssa-copy.c: Likewise.
23121 * tree-ssa-copyrename.c: Likewise.
23122 * tree-ssa-dce.c: Likewise.
23123 * tree-ssa-dom.c: Likewise.
23124 * tree-ssa-dse.c: Likewise.
23125 * tree-ssa-forwprop.c: Likewise.
23126 * tree-ssa-ifcombine.c: Likewise.
23127 * tree-ssa-live.c: Likewise.
23128 * tree-ssa-loop-ch.c: Likewise.
23129 * tree-ssa-loop-im.c: Likewise.
23130 * tree-ssa-loop-ivcanon.c: Likewise.
23131 * tree-ssa-loop-ivopts.c: Likewise.
23132 * tree-ssa-loop-manip.c: Likewise.
23133 * tree-ssa-loop-niter.c: Likewise.
23134 * tree-ssa-loop-prefetch.c: Likewise.
23135 * tree-ssa-loop-unswitch.c: Likewise.
23136 * tree-ssa-loop.c: Likewise.
23137 * tree-ssa-math-opts.c: Likewise.
23138 * tree-ssa-operands.c: Likewise.
23139 * tree-ssa-phiopt.c: Likewise.
23140 * tree-ssa-phiprop.c: Likewise.
23141 * tree-ssa-pre.c: Likewise.
23142 * tree-ssa-propagate.c: Likewise.
23143 * tree-ssa-reassoc.c: Likewise.
23144 * tree-ssa-sccvn.c: Likewise.
23145 * tree-ssa-scopedtables.c: Likewise.
23146 * tree-ssa-sink.c: Likewise.
23147 * tree-ssa-strlen.c: Likewise.
23148 * tree-ssa-structalias.c: Likewise.
23149 * tree-ssa-tail-merge.c: Likewise.
23150 * tree-ssa-ter.c: Likewise.
23151 * tree-ssa-threadedge.c: Likewise.
23152 * tree-ssa-threadupdate.c: Likewise.
23153 * tree-ssa-uncprop.c: Likewise.
23154 * tree-ssa-uninit.c: Likewise.
23155 * tree-ssa.c: Likewise.
23156 * tree-ssanames.c: Likewise.
23157 * tree-stdarg.c: Likewise.
23158 * tree-streamer-in.c: Likewise.
23159 * tree-streamer-out.c: Likewise.
23160 * tree-streamer.c: Likewise.
23161 * tree-switch-conversion.c: Likewise.
23162 * tree-tailcall.c: Likewise.
23163 * tree-vect-data-refs.c: Likewise.
23164 * tree-vect-generic.c: Likewise.
23165 * tree-vect-loop-manip.c: Likewise.
23166 * tree-vect-loop.c: Likewise.
23167 * tree-vect-patterns.c: Likewise.
23168 * tree-vect-slp.c: Likewise.
23169 * tree-vect-stmts.c: Likewise.
23170 * tree-vectorizer.c: Likewise.
23171 * tree-vrp.c: Likewise.
23172 * tree.c: Likewise.
23173 * tsan.c: Likewise.
23174 * ubsan.c: Likewise.
23175 * valtrack.c: Likewise.
23176 * value-prof.c: Likewise.
23177 * var-tracking.c: Likewise.
23178 * varasm.c: Likewise.
23179 * varpool.c: Likewise.
23180 * vmsdbgout.c: Likewise.
23181 * vtable-verify.c: Likewise.
23183 * wide-int.cc: Likewise.
23184 * xcoffout.c: Likewise.
23185 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
23186 * common/common-targhooks.c: Likewise.
23187 * config/aarch64/aarch64-builtins.c: Likewise.
23188 * config/aarch64/aarch64.c: Likewise.
23189 * config/alpha/alpha.c: Likewise.
23190 * config/arc/arc.c: Likewise.
23191 * config/arm/aarch-common.c: Likewise.
23192 * config/arm/arm-builtins.c: Likewise.
23193 * config/arm/arm-c.c: Likewise.
23194 * config/arm/arm.c: Likewise.
23195 * config/avr/avr-c.c: Likewise.
23196 * config/avr/avr-log.c: Likewise.
23197 * config/avr/avr.c: Likewise.
23198 * config/bfin/bfin.c: Likewise.
23199 * config/c6x/c6x.c: Likewise.
23200 * config/cr16/cr16.c: Likewise.
23201 * config/cris/cris.c: Likewise.
23202 * config/darwin-c.c: Likewise.
23203 * config/darwin.c: Likewise.
23204 * config/default-c.c: Likewise.
23205 * config/epiphany/epiphany.c: Likewise.
23206 * config/epiphany/mode-switch-use.c: Likewise.
23207 * config/epiphany/resolve-sw-modes.c: Likewise.
23208 * config/fr30/fr30.c: Likewise.
23209 * config/frv/frv.c: Likewise.
23210 * config/ft32/ft32.c: Likewise.
23211 * config/glibc-c.c: Likewise.
23212 * config/h8300/h8300.c: Likewise.
23213 * config/i386/i386-c.c: Likewise.
23214 * config/i386/i386.c: Likewise.
23215 * config/i386/msformat-c.c: Likewise.
23216 * config/i386/winnt-cxx.c: Likewise.
23217 * config/i386/winnt-stubs.c: Likewise.
23218 * config/i386/winnt.c: Likewise.
23219 * config/ia64/ia64-c.c: Likewise.
23220 * config/ia64/ia64.c: Likewise.
23221 * config/iq2000/iq2000.c: Likewise.
23222 * config/lm32/lm32.c: Likewise.
23223 * config/m32c/m32c-pragma.c: Likewise.
23224 * config/m32c/m32c.c: Likewise.
23225 * config/m32r/m32r.c: Likewise.
23226 * config/m68k/m68k.c: Likewise.
23227 * config/mcore/mcore.c: Likewise.
23228 * config/mep/mep-pragma.c: Likewise.
23229 * config/mep/mep.c: Likewise.
23230 * config/microblaze/microblaze-c.c: Likewise.
23231 * config/microblaze/microblaze.c: Likewise.
23232 * config/mips/mips.c: Likewise.
23233 * config/mmix/mmix.c: Likewise.
23234 * config/mn10300/mn10300.c: Likewise.
23235 * config/moxie/moxie.c: Likewise.
23236 * config/msp430/msp430-c.c: Likewise.
23237 * config/msp430/msp430.c: Likewise.
23238 * config/nds32/nds32-cost.c: Likewise.
23239 * config/nds32/nds32-fp-as-gp.c: Likewise.
23240 * config/nds32/nds32-intrinsic.c: Likewise.
23241 * config/nds32/nds32-isr.c: Likewise.
23242 * config/nds32/nds32-md-auxiliary.c: Likewise.
23243 * config/nds32/nds32-memory-manipulation.c: Likewise.
23244 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23245 * config/nds32/nds32-predicates.c: Likewise.
23246 * config/nds32/nds32.c: Likewise.
23247 * config/nios2/nios2.c: Likewise.
23248 * config/nvptx/nvptx.c: Likewise.
23249 * config/pa/pa.c: Likewise.
23250 * config/pdp11/pdp11.c: Likewise.
23251 * config/rl78/rl78-c.c: Likewise.
23252 * config/rl78/rl78.c: Likewise.
23253 * config/rs6000/rs6000-c.c: Likewise.
23254 * config/rs6000/rs6000.c: Likewise.
23255 * config/rx/rx.c: Likewise.
23256 * config/s390/s390-c.c: Likewise.
23257 * config/s390/s390.c: Likewise.
23258 * config/sh/sh-c.c: Likewise.
23259 * config/sh/sh-mem.cc: Likewise.
23260 * config/sh/sh.c: Likewise.
23261 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23262 * config/sh/sh_treg_combine.cc: Likewise.
23263 * config/sol2-c.c: Likewise.
23264 * config/sol2-cxx.c: Likewise.
23265 * config/sol2-stubs.c: Likewise.
23266 * config/sol2.c: Likewise.
23267 * config/sparc/sparc-c.c: Likewise.
23268 * config/sparc/sparc.c: Likewise.
23269 * config/spu/spu-c.c: Likewise.
23270 * config/spu/spu.c: Likewise.
23271 * config/stormy16/stormy16.c: Likewise.
23272 * config/tilegx/mul-tables.c: Likewise.
23273 * config/tilegx/tilegx-c.c: Likewise.
23274 * config/tilegx/tilegx.c: Likewise.
23275 * config/tilepro/mul-tables.c: Likewise.
23276 * config/tilepro/tilepro-c.c: Likewise.
23277 * config/tilepro/tilepro.c: Likewise.
23278 * config/v850/v850-c.c: Likewise.
23279 * config/v850/v850.c: Likewise.
23280 * config/vax/vax.c: Likewise.
23281 * config/visium/visium.c: Likewise.
23282 * config/vms/vms-c.c: Likewise.
23283 * config/vms/vms.c: Likewise.
23284 * config/vxworks.c: Likewise.
23285 * config/winnt-c.c: Likewise.
23286 * config/xtensa/xtensa.c: Likewise.
23288 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
23290 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
23292 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
23294 2015-06-17 Richard Biener <rguenther@suse.de>
23296 PR tree-optimization/66251
23297 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
23298 stmts for SLP strided stores.
23301 2015-05-22 Richard Biener <rguenther@suse.de>
23303 PR tree-optimization/66251
23304 * tree-vect-stmts.c (vectorizable_conversion): Properly
23305 set STMT_VINFO_VEC_STMT even for the SLP case.
23307 2015-05-26 Michael Matz <matz@suse.de>
23309 PR middle-end/66251
23310 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
23311 STMT_VINFO_VEC_STMT, also with SLP.
23313 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
23316 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
23317 (*avx_addsubv4df3_1s): Ditto.
23318 (*sse3_addsubv2df3_1): Ditto.
23319 (*sse3_addsubv2df3_1s): Ditto.
23320 (*avx_addsubv8sf3_1): Ditto.
23321 (*avx_addsubv8sf3_1s): Ditto.
23322 (*sse3_addsubv4sf3_1): Ditto.
23323 (*sse3_addsubv4sf3_1s): Ditto.
23325 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
23327 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
23328 (SYSROOT_SUFFIX_SPEC): Update.
23329 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
23330 (STARTFILE_PREFIX_SPEC): Update.
23331 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
23332 (MULTILIB_REQUIRED): New.
23333 (MULTILIB_OSDIRNAMES): New.
23334 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
23335 (MULTILIB_REQUIRED): New.
23336 (MULTILIB_OSDIRNAMES): New.
23338 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
23340 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
23341 * config/aarch64/aarch64-options-extensions.def: Update "fP",
23342 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
23343 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
23344 (AARCH64_FL_PAN): New.
23345 (AARCH64_FL_LOR): New.
23346 (AARCH64_FL_RDMA): New.
23347 (AARCH64_FL_FOR_ARCH8_1): New.
23348 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
23349 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
23351 2015-06-16 Martin Liska <mliska@suse.cz>
23353 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
23354 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
23357 2015-06-16 Richard Biener <rguenther@suse.de>
23359 * tree-vect-stmts.c (vectorizable_store): Adjust.
23360 (vectorizable_load): Likewise.
23361 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
23363 (vect_create_data_ref_ptr): Likewise.
23364 (bump_vector_ptr): Adjust.
23366 2015-06-16 Richard Biener <rguenther@suse.de>
23368 * tree-vect-stmts.c (vectorizable_load): Properly start loads
23369 with the first element if this is grouped loads.
23371 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
23373 * config/arm/arm-protos.h (struct tune_params): Rename
23374 log_op_non_sc to log_op_non_short_circuit, and rename enum
23375 values to expand SC to SHORT_CIRCUIT.
23376 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
23377 to LOG_OP_NON_SHORT_CIRCUIT.
23378 (arm_fastmul_tune):Likewise
23379 (arm_strongarm_tune): Likewise.
23380 (arm_xscale_tune): Likewise.
23381 (arm_9e_tune): Likewise.
23382 (arm_marvell_pj4_tune): Likewise.
23383 (arm_v6t2_tune): Likewise.
23384 (arm_cortex_tune): Likewise.
23385 (arm_cortex_a8_tune): Likewise.
23386 (arm_cortex_a7_tune): Likewise.
23387 (arm_cortex_a15_tune): Likewise.
23388 (arm_cortex_a53_tune): Likewise.
23389 (arm_cortex_a57_tune): Likewise.
23390 (arm_xgene1_tune): Likewise.
23391 (arm_cortex_a5_tune): Likewise.
23392 (arm_cortex_a9_tune): Likewise.
23393 (arm_cortex_a12_tune): Likewise.
23394 (arm_v7m_tune): Likewise.
23395 (arm_cortex_m7_tune): Likewise.
23396 (arm_v6m_tune): Likewise.
23397 (arm_fa726te_tune): Likewise.
23399 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
23401 * altivec.md: Delete UNSPEC_VMLADDUHM.
23402 (mulv4si3_p8): New pattern.
23403 (mulv4si3): Use it for POWER8.
23404 (mulv8hi3): Use vmladduhm with zero addend.
23405 (altivec_vmladduhm): Descriptive RTL.
23407 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
23409 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
23410 to use neon_move instead of mov_imm.
23411 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
23412 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
23414 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
23415 aarch64_float_const_zero_rtx_p check before TFmode check.
23416 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
23418 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
23419 code and attributes to match. Change condition from register_operand
23420 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
23421 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
23424 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
23427 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
23428 there is no parent.
23430 2015-06-14 Shiva Chen <shiva0217@gmail.com>
23432 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
23433 HOST_WIDE_INT parameter.
23435 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
23438 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
23439 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
23441 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
23443 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
23445 * rtl.h (classify_insn): Declare.
23446 * emit-rtl.c (classify_insn): Move to...
23447 * rtl.c: ...here and add generator support.
23448 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
23449 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
23450 * genemit.c (gen_emit_seq): New function.
23451 (gen_expand, gen_split): Use it.
23453 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
23455 * tree.c (make_vector_stat): Fix comment to state that the
23456 function returns a VECTOR_CST.
23458 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
23460 * gensupport.h (add_implicit_parallel): Declare.
23461 * genrecog.c (add_implicit_parallel): Move to...
23462 * gensupport.c (add_implicit_parallel): ...here.
23463 (process_one_cond_exec): Use it.
23464 * genemit.c (gen_insn): Likewise.
23466 2015-06-13 Iain Sandoe <iain@codesourcery.com>
23469 * passes.c (rest_of_decl_compilation): Do not register globals for
23470 early debug if they are declared in built-ins.
23472 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
23474 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
23476 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23478 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
23480 (noce_try_cmove_arith): Likewise.
23481 (noce_get_alt_condition): Likewise.
23483 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23485 * common/config/i386/i386-common.c
23486 (OPTION_MASK_ISA_MWAITX_SET): New.
23487 (ix86_handle_option): Handle mwaitx.
23488 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
23489 (x86_64-*-*): Likewise.
23490 * config/i386/mwaitxintrin.h: New header.
23491 * config/i386/cpuid.h (bit_MWAITX): Define.
23492 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23494 * config/i386/i386.opt (mwaitx): New.
23495 * config/i386/i386-builtin-types.def
23496 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
23497 * config/i386/i386-c.c: Define __MWAITX__ if needed.
23498 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
23500 (ix86_option_override_internal): Handle new option.
23501 (processor_alias_table): Added PTA_MWAITX.
23502 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
23503 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
23504 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
23505 IX86_BUILTIN_MONITORX built-ins.
23506 * config/i386/i386.h (TARGET_MWAITX): New.
23507 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
23509 (mwaitx): New pattern.
23510 (monitorx_<mode>): New pattern.
23511 * config/i386/x86intrin.h: Include mwaitxintrin.h.
23512 * doc/extend.texi: Document monitorx and mwaitx builtins.
23513 * doc/invoke.texi: Document -mmwaitx option.
23515 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
23517 * emit-rtl.c (need_atomic_barrier_p): Mask model with
23518 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
23520 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
23522 * dbxout.c (xcoff_debug_hooks): Provide a function for
23523 register_main_translation_unit hook.
23525 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
23527 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
23528 variants cases from switch.
23529 (rs6000_post_atomic_barrier): Same.
23530 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
23531 (rs6000_expand_atomic_exchange): Same.
23532 (rs6000_expand_atomic_op): Same.
23533 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
23534 SYNC variants cases from switch.
23535 (atomic_load): Same.
23536 (atomic_store): Same.
23538 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
23540 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
23541 CONST_INT for goto.
23543 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
23546 * dwarf2out.c (check_die): Check for common duplicate attributes.
23547 (add_location_or_const_value_attribute): Do not add duplicate
23549 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
23551 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
23552 (gen_type_die_with_usage): Call check_die.
23553 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
23555 2015-06-11 Jason Merrill <jason@redhat.com>
23557 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
23560 2015-06-11 Marek Polacek <polacek@redhat.com>
23562 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
23564 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
23567 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
23568 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
23569 (*addx_extend_sp32): Fix pasto.
23570 (*subx_extend): Rename into...
23571 (*subx_extend_sp32): ...this.
23572 (*adddi3_extend_sp32): Add earlyclobber.
23573 (*subdi3_insn_sp32): Likewise.
23574 (*subdi3_extend_sp32): Likewise.
23575 (*and_not_di_sp32): Likewise.
23576 (*or_not_di_sp32): Likewise.
23577 (*xor_not_di_sp32): Likewise.
23578 (*negdi2_sp32): Likewise.
23579 (*one_cmpldi2_sp32): Likewise.
23581 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
23583 * debug.h (struct gcc_debug_hooks): Add a
23584 register_main_translation_unit hook.
23585 * debug.c (do_nothing_debug_hooks): Provide a function for this
23587 * dbxout.c (dbx_debug_hooks): Likewise.
23588 * sdbout.c (sdb_debug_hooks): Likewise.
23589 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
23590 * dwarf2out.c (main_translation_unit): New global variable.
23591 (dwarf2out_register_main_translation_unit): New function
23592 implementing the new hook.
23593 (dwarf2_debug_hooks): Assign
23594 dwarf2out_register_main_translation_unit to this new hook.
23595 (dwarf2out_init): Associate any main translation unit to
23598 2015-06-11 Marek Polacek <polacek@redhat.com>
23600 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
23602 2015-06-11 Marek Polacek <polacek@redhat.com>
23604 * match.pd: Use single_use throughout.
23606 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23608 * config/arm/arm.c (arm_option_params_internal): When optimising
23609 for speed set max_insns_skipped when arm_restrict_it.
23611 2015-06-11 Christian Bruel <christian.bruel@st.com>
23614 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
23616 (arm_cpu_builtins): New function.
23617 (arm_pragma_target_parse): Call arm_cpu_builtins.
23618 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
23619 (arm_register_target_pragmas): Likewise.
23620 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
23621 Call arm_register_target_pragmas.
23622 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
23623 (arm_pragma_target_parse): Likewise.
23625 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
23627 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
23628 of the second operand.
23630 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
23633 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
23634 to prepare mask operand for AVX512 modes.
23636 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
23639 * doc/md.texi (Machine Constraints): Document that on the PowerPC
23640 if you use a constraint that targets a VSX register, you must use
23641 %x<n> in the template.
23643 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
23645 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
23646 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
23647 (define_insn "trap"): New definition.
23649 2015-06-10 Richard Biener <rguenther@suse.de>
23651 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
23653 (vect_supported_load_permutation_p): ... here. Handle
23654 supportable permutations in reductions.
23655 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
23656 for vectorizing strided group loads.
23658 2015-06-10 Jakub Jelinek <jakub@redhat.com>
23661 * config/i386/i386.c (ix86_split_long_move): For collisions
23662 involving direct tls segment refs, move the UNSPEC_TP possibly
23663 wrapped in ZERO_EXTEND out of the address for lea, to each of
23666 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23668 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
23669 dmb sy. Adjust tabs.
23671 2015-06-10 Tom de Vries <tom@codesourcery.com>
23673 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
23675 2015-06-10 Martin Liska <mliska@suse.cz>
23678 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
23679 all enum values in mem_alloc_origin.
23680 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
23682 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
23683 * bitmap.c (bitmap_register): Likewise.
23684 (dump_bitmap_statistics): Likewise.
23685 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
23686 (ggc_record_overhead): Likewise.
23687 * hash-map.h: Likewise.
23688 * hash-set.h: Likewise.
23689 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
23690 * hash-table.h: Likewise.
23691 * vec.c (vec_prefix::register_overhead): Likewise.
23692 (vec_prefix::release_overhead): Likewise.
23693 (dump_vec_loc_statistics): Likewise.
23695 2015-06-09 Christian Bruel <christian.bruel@st.com>
23698 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
23699 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
23700 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
23701 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
23702 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
23703 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
23704 (arm_valid_target_attribute_p): Likewise.
23705 (arm_set_current_function, arm_can_inline_p): Likewise.
23706 (arm_valid_target_attribute_rec): Likewise.
23707 (arm_previous_fndecl): New variable.
23708 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
23709 (TARGET_CAN_INLINE_P): Define.
23710 (arm_asm_trampoline_template): Emit mode.
23711 (arm_file_start): Don't set unified syntax.
23712 (arm_declare_function_name): Set unified syntax and mode.
23713 (arm_option_override): Init target_option_default_node.
23714 and target_option_current_node.
23715 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
23716 (*call_symbol): Likewise.
23717 * doc/extend.texi: Document ARM/Thumb target attribute.
23718 * doc/invoke.texi: Likewise.
23720 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
23723 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
23724 PR rtl-optimization/64164
23725 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
23726 * tree-ssa-copyrename.c: Removed.
23727 * opts.c (default_options_table): Drop -ftree-copyrename. Add
23728 -ftree-coalesce-vars.
23729 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
23730 * common.opt (ftree-copyrename): Ignore.
23731 (ftree-coalesce-inlined-vars): Likewise.
23732 * doc/invoke.texi: Remove the ignored options above.
23733 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
23734 * tree-ssa-coalesce.h: ... here.
23735 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
23736 headers required by it.
23737 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
23738 across variables when flag_tree_coalesce_vars. Check register
23739 use and promoted modes to allow coalescing. Moved to
23740 tree-ssa-coalesce.c.
23741 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
23742 with its member functions to tree-ssa-coalesce.c.
23743 (var_map_base_init): Likewise. Renamed to
23744 compute_samebase_partition_bases.
23745 (partition_view_normal): Drop want_bases parameter.
23746 (partition_view_bitmap): Likewise.
23747 * tree-ssa-live.h: Adjust declarations.
23748 * tree-ssa-coalesce.c: Include explow.h.
23749 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
23750 default defs at the entry point.
23751 (dump_part_var_map): New.
23752 (compute_optimized_partition_bases): New, called by...
23753 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
23754 of compute_samebase_partition_bases. Adjust.
23755 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
23756 * cfgexpand.c (leader_merge): New.
23757 (get_rtl_for_parm_ssa_default_def): New.
23758 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
23759 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
23760 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
23761 redundant MEM attr setting.
23762 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
23764 (expand_one_stack_var): ... this. New wrapper to check and
23765 skip already expanded SSA partitions.
23766 (record_alignment_for_reg_var): New, factored out of...
23767 (expand_one_var): ... this.
23768 (expand_one_ssa_partition): New.
23769 (adjust_one_expanded_partition_var): New.
23770 (expand_one_register_var): Check and skip already expanded SSA
23772 (expand_used_vars): Don't create DECLs for anonymous SSA
23773 names. Expand all SSA partitions, then adjust all SSA names.
23774 (pass::execute): Replace the loops that set
23775 SA.partition_to_pseudo from partition leaders and cleared
23776 DECL_RTL for multi-location variables, and that which used to
23777 rename vars and set attrs, with one that clears DECL_RTL and
23778 checks that PARMs and RESULTs default_defs match DECL_RTL.
23779 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
23780 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
23781 * explow.c (promote_ssa_mode): New.
23782 * explow.h (promote_ssa_mode): Declare.
23783 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
23784 * function.c: Include cfgexpand.h.
23785 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
23786 (use_register_for_parm_decl): Wrapper for the above to
23787 special-case the result_ptr.
23788 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
23789 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
23790 multiple locations.
23791 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
23792 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
23793 (assign_parm_setup_block): Prefer SSA-assigned location.
23794 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
23795 if stack_parm is NULL.
23796 (assign_parm_setup_stack): Prefer SSA-assigned location.
23797 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
23798 rtl before testing for pointer bounds. Special-case result_ptr.
23799 (expand_function_start): Maybe reset DECL_RTL of result.
23800 Prefer SSA-assigned location for result and static chain.
23801 Factor out DECL_RESULT and SET_DECL_RTL.
23802 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
23803 anonymous SSA names. Use promote_ssa_mode.
23804 (get_temp_reg): Likewise.
23805 (remove_ssa_form): Adjust.
23806 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
23807 and get its reg_usage for reg invalidation.
23808 (compute_bb_dataflow): Pass it insn.
23809 (emit_notes_in_bb): Likewise.
23810 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
23811 fail assert on conversion between unsigned types.
23813 2015-06-09 Tom de Vries <tom@codesourcery.com>
23815 PR tree-optimization/65460
23816 * omp-low.c (expand_omp_target): Set parallelized_function on
23817 cgraph_node for child_fn.
23819 2015-06-09 Tom de Vries <tom@codesourcery.com>
23821 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
23822 parallelized_function before add_new_function.
23824 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
23826 * gcc-plugin.h: Move decls to plugin.h and include it.
23827 * plugin.h: Relocate decls from gcc-plugin.h
23828 * ggc-page.c: Include required header files.
23829 * passes.c: Likewise.
23830 * cgraphunit.c: Likewise.
23832 2015-06-09 Tom de Vries <tom@codesourcery.com>
23834 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
23836 2015-06-09 Jason Merrill <jason@redhat.com>
23839 * toplev.c (check_global_declaration): Don't warn about a clone.
23841 2015-06-09 Marek Polacek <polacek@redhat.com>
23843 PR tree-optimization/66299
23844 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
23845 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
23848 2015-06-09 Richard Biener <rguenther@suse.de>
23850 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
23851 (vect_analyze_slp_instance): Instead do not falsely drop
23854 2015-06-09 Richard Biener <rguenther@suse.de>
23856 PR middle-end/66423
23857 * match.pd: Handle A % (unsigned)(1 << B).
23859 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
23861 * varasm.c (output_object_block_htab): Remove.
23862 (output_object_block_compare): New.
23863 (output_object_blocks): Sort named object_blocks before outputting
23866 2015-06-09 Richard Biener <rguenther@suse.de>
23868 PR tree-optimization/66419
23869 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
23870 consider GROUP_GAP when detecting a perfect subchain.
23872 2015-06-09 Nick Clifton <nickc@redhat.com>
23874 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
23875 place read only data in the .frodata section.
23877 2015-06-09 Shiva Chen <shiva0217@gmail.com>
23879 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
23880 (atomic_store<mode>): Likewise.
23882 2015-06-09 Richard Biener <rguenther@suse.de>
23884 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
23886 2015-06-09 Richard Biener <rguenther@suse.de>
23888 PR middle-end/66413
23889 * tree-inline.c (insert_init_debug_bind): Unshare value.
23891 2015-06-09 Richard Biener <rguenther@suse.de>
23893 PR tree-optimization/66396
23894 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
23895 Rename virtual operands.
23897 2015-06-09 Tom de Vries <tom@codesourcery.com>
23899 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
23900 always return false.
23902 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
23904 PR rtl-optimization/64164
23905 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
23906 * tree-ssa-copyrename.c: Removed.
23907 * opts.c (default_options_table): Drop -ftree-copyrename. Add
23908 -ftree-coalesce-vars.
23909 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
23910 * common.opt (ftree-copyrename): Ignore.
23911 (ftree-coalesce-inlined-vars): Likewise.
23912 * doc/invoke.texi: Remove the ignored options above.
23913 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
23914 * tree-ssa-coalesce.h: ... here.
23915 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
23916 headers required by it.
23917 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
23918 across variables when flag_tree_coalesce_vars. Check register
23919 use and promoted modes to allow coalescing. Moved to
23920 tree-ssa-coalesce.c.
23921 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
23922 with its member functions to tree-ssa-coalesce.c.
23923 (var_map_base_init): Likewise. Renamed to
23924 compute_samebase_partition_bases.
23925 (partition_view_normal): Drop want_bases parameter.
23926 (partition_view_bitmap): Likewise.
23927 * tree-ssa-live.h: Adjust declarations.
23928 * tree-ssa-coalesce.c: Include explow.h.
23929 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
23930 default defs at the entry point.
23931 (dump_part_var_map): New.
23932 (compute_optimized_partition_bases): New, called by...
23933 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
23934 of compute_samebase_partition_bases. Adjust.
23935 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
23936 * cfgexpand.c (leader_merge): New.
23937 (get_rtl_for_parm_ssa_default_def): New.
23938 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
23939 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
23940 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
23941 redundant MEM attr setting.
23942 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
23944 (expand_one_stack_var): ... this. New wrapper to check and
23945 skip already expanded SSA partitions.
23946 (record_alignment_for_reg_var): New, factored out of...
23947 (expand_one_var): ... this.
23948 (expand_one_ssa_partition): New.
23949 (adjust_one_expanded_partition_var): New.
23950 (expand_one_register_var): Check and skip already expanded SSA
23952 (expand_used_vars): Don't create DECLs for anonymous SSA
23953 names. Expand all SSA partitions, then adjust all SSA names.
23954 (pass::execute): Replace the loops that set
23955 SA.partition_to_pseudo from partition leaders and cleared
23956 DECL_RTL for multi-location variables, and that which used to
23957 rename vars and set attrs, with one that clears DECL_RTL and
23958 checks that PARMs and RESULTs default_defs match DECL_RTL.
23959 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
23960 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
23961 * explow.c (promote_ssa_mode): New.
23962 * explow.h (promote_ssa_mode): Declare.
23963 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
23964 * function.c: Include cfgexpand.h.
23965 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
23966 (use_register_for_parm_decl): Wrapper for the above to
23967 special-case the result_ptr.
23968 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
23969 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
23970 multiple locations.
23971 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
23972 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
23973 (assign_parm_setup_block): Prefer SSA-assigned location.
23974 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
23975 if stack_parm is NULL.
23976 (assign_parm_setup_stack): Prefer SSA-assigned location.
23977 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
23978 rtl before testing for pointer bounds. Special-case result_ptr.
23979 (expand_function_start): Maybe reset DECL_RTL of result.
23980 Prefer SSA-assigned location for result and static chain.
23981 Factor out DECL_RESULT and SET_DECL_RTL.
23982 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
23983 anonymous SSA names. Use promote_ssa_mode.
23984 (get_temp_reg): Likewise.
23985 (remove_ssa_form): Adjust.
23986 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
23987 and get its reg_usage for reg invalidation.
23988 (compute_bb_dataflow): Pass it insn.
23989 (emit_notes_in_bb): Likewise.
23990 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
23991 fail assert on conversion between unsigned types.
23993 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
23996 * tree-inline.c (reset_debug_binding): New.
23997 (reset_debug_bindings): Likewise.
23998 (expand_call_inline): Call it.
24000 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24002 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
24005 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24007 * lto-streamer-out.c (lto_output_location): Stream
24008 reserved locations correctly.
24009 * lto-streamer-in.c (lto_output_location): Likewise.
24011 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
24013 * coretypes.h: Include hash-table.h and hash-set.h for host files.
24014 * ggc.h: Don't include statistics.h>
24015 * hash-map.h: Remove all includes.
24016 * hash-set.h: Likewise.
24017 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
24018 the include list. Remove <new>.
24019 * inchash.h: Remove all includes.
24020 * mem-stats.h: Likewise.
24021 * vec.h: No special processing for generators or ggc.
24022 * alias.c : Adjust include files.
24023 * alloc-pool.c : Likewise.
24024 * alloc-pool.h : Likewise.
24025 * asan.c : Likewise.
24026 * attribs.c : Likewise.
24027 * auto-inc-dec.c : Likewise.
24028 * auto-profile.c : Likewise.
24029 * bb-reorder.c : Likewise.
24030 * bitmap.c : Likewise.
24031 * bitmap.h : Likewise.
24032 * bt-load.c : Likewise.
24033 * builtins.c : Likewise.
24034 * caller-save.c : Likewise.
24035 * calls.c : Likewise.
24036 * ccmp.c : Likewise.
24037 * cfg.c : Likewise.
24038 * cfganal.c : Likewise.
24039 * cfgbuild.c : Likewise.
24040 * cfgcleanup.c : Likewise.
24041 * cfgexpand.c : Likewise.
24042 * cfghooks.c : Likewise.
24043 * cfgloop.c : Likewise.
24044 * cfgloop.h : Likewise.
24045 * cfgloopanal.c : Likewise.
24046 * cfgloopmanip.c : Likewise.
24047 * cfgrtl.c : Likewise.
24048 * cgraph.c : Likewise.
24049 * cgraphbuild.c : Likewise.
24050 * cgraphclones.c : Likewise.
24051 * cgraphunit.c : Likewise.
24052 * cilk-common.c : Likewise.
24053 * combine-stack-adj.c : Likewise.
24054 * combine.c : Likewise.
24055 * compare-elim.c : Likewise.
24056 * context.c : Likewise.
24057 * convert.c : Likewise.
24058 * coverage.c : Likewise.
24059 * cppbuiltin.c : Likewise.
24060 * cprop.c : Likewise.
24061 * cse.c : Likewise.
24062 * cselib.c : Likewise.
24063 * data-streamer-in.c : Likewise.
24064 * data-streamer-out.c : Likewise.
24065 * data-streamer.c : Likewise.
24066 * data-streamer.h : Likewise.
24067 * dbxout.c : Likewise.
24068 * dce.c : Likewise.
24069 * ddg.c : Likewise.
24070 * debug.c : Likewise.
24071 * df-core.c : Likewise.
24072 * df-problems.c : Likewise.
24073 * df-scan.c : Likewise.
24075 * dfp.c : Likewise.
24076 * dojump.c : Likewise.
24077 * dominance.c : Likewise.
24078 * domwalk.c : Likewise.
24079 * double-int.c : Likewise.
24080 * dse.c : Likewise.
24081 * dumpfile.c : Likewise.
24082 * dwarf2asm.c : Likewise.
24083 * dwarf2cfi.c : Likewise.
24084 * dwarf2out.c : Likewise.
24085 * emit-rtl.c : Likewise.
24086 * et-forest.c : Likewise.
24087 * except.c : Likewise.
24088 * except.h : Likewise.
24089 * explow.c : Likewise.
24090 * expmed.c : Likewise.
24091 * expr.c : Likewise.
24092 * final.c : Likewise.
24093 * fixed-value.c : Likewise.
24094 * fold-const.c : Likewise.
24095 * function.c : Likewise.
24096 * fwprop.c : Likewise.
24097 * gcc-plugin.h : Likewise.
24098 * gcc.c : Likewise.
24099 * gcse-common.c : Likewise.
24100 * gcse.c : Likewise.
24101 * genattrtab.c : Likewise.
24102 * genautomata.c : Likewise.
24103 * genconditions.c : Likewise.
24104 * genemit.c : Likewise.
24105 * generic-match-head.c : Likewise.
24106 * genextract.c : Likewise.
24107 * gengtype-state.c : Likewise.
24108 * gengtype.c : Likewise.
24109 * genhooks.c : Likewise.
24110 * genmatch.c : Likewise.
24111 * genmodes.c : Likewise.
24112 * genrecog.c : Likewise.
24113 * gensupport.c : Likewise.
24114 * ggc-common.c : Likewise.
24115 * ggc-internal.h : Likewise.
24116 * ggc-none.c : Likewise.
24117 * ggc-page.c : Likewise.
24118 * gimple-builder.c : Likewise.
24119 * gimple-expr.c : Likewise.
24120 * gimple-fold.c : Likewise.
24121 * gimple-iterator.c : Likewise.
24122 * gimple-low.c : Likewise.
24123 * gimple-match-head.c : Likewise.
24124 * gimple-pretty-print.c : Likewise.
24125 * gimple-ssa-isolate-paths.c : Likewise.
24126 * gimple-ssa-strength-reduction.c : Likewise.
24127 * gimple-ssa.h : Likewise.
24128 * gimple-streamer-in.c : Likewise.
24129 * gimple-streamer-out.c : Likewise.
24130 * gimple-streamer.h : Likewise.
24131 * gimple-walk.c : Likewise.
24132 * gimple.c : Likewise.
24133 * gimplify-me.c : Likewise.
24134 * gimplify.c : Likewise.
24135 * godump.c : Likewise.
24136 * graph.c : Likewise.
24137 * graphds.c : Likewise.
24138 * graphite-blocking.c : Likewise.
24139 * graphite-dependences.c : Likewise.
24140 * graphite-interchange.c : Likewise.
24141 * graphite-isl-ast-to-gimple.c : Likewise.
24142 * graphite-optimize-isl.c : Likewise.
24143 * graphite-poly.c : Likewise.
24144 * graphite-scop-detection.c : Likewise.
24145 * graphite-sese-to-poly.c : Likewise.
24146 * graphite.c : Likewise.
24147 * haifa-sched.c : Likewise.
24148 * hard-reg-set.h : Likewise.
24149 * hw-doloop.c : Likewise.
24150 * ifcvt.c : Likewise.
24151 * inchash.c : Likewise.
24152 * incpath.c : Likewise.
24153 * init-regs.c : Likewise.
24154 * input.c : Likewise.
24155 * internal-fn.c : Likewise.
24156 * ipa-chkp.c : Likewise.
24157 * ipa-comdats.c : Likewise.
24158 * ipa-cp.c : Likewise.
24159 * ipa-devirt.c : Likewise.
24160 * ipa-icf-gimple.c : Likewise.
24161 * ipa-icf.c : Likewise.
24162 * ipa-inline-analysis.c : Likewise.
24163 * ipa-inline-transform.c : Likewise.
24164 * ipa-inline.c : Likewise.
24165 * ipa-polymorphic-call.c : Likewise.
24166 * ipa-profile.c : Likewise.
24167 * ipa-prop.c : Likewise.
24168 * ipa-pure-const.c : Likewise.
24169 * ipa-ref.c : Likewise.
24170 * ipa-reference.c : Likewise.
24171 * ipa-split.c : Likewise.
24172 * ipa-utils.c : Likewise.
24173 * ipa-visibility.c : Likewise.
24174 * ipa.c : Likewise.
24175 * ira-build.c : Likewise.
24176 * ira-color.c : Likewise.
24177 * ira-conflicts.c : Likewise.
24178 * ira-costs.c : Likewise.
24179 * ira-emit.c : Likewise.
24180 * ira-lives.c : Likewise.
24181 * ira.c : Likewise.
24182 * jump.c : Likewise.
24183 * langhooks.c : Likewise.
24184 * lcm.c : Likewise.
24185 * libfuncs.h : Likewise.
24186 * lists.c : Likewise.
24187 * loop-doloop.c : Likewise.
24188 * loop-init.c : Likewise.
24189 * loop-invariant.c : Likewise.
24190 * loop-iv.c : Likewise.
24191 * loop-unroll.c : Likewise.
24192 * lower-subreg.c : Likewise.
24193 * lra-assigns.c : Likewise.
24194 * lra-coalesce.c : Likewise.
24195 * lra-constraints.c : Likewise.
24196 * lra-eliminations.c : Likewise.
24197 * lra-lives.c : Likewise.
24198 * lra-remat.c : Likewise.
24199 * lra-spills.c : Likewise.
24200 * lra.c : Likewise.
24201 * lto-cgraph.c : Likewise.
24202 * lto-compress.c : Likewise.
24203 * lto-opts.c : Likewise.
24204 * lto-section-in.c : Likewise.
24205 * lto-section-out.c : Likewise.
24206 * lto-streamer-in.c : Likewise.
24207 * lto-streamer-out.c : Likewise.
24208 * lto-streamer.c : Likewise.
24209 * lto-streamer.h : Likewise.
24210 * mcf.c : Likewise.
24211 * mode-switching.c : Likewise.
24212 * modulo-sched.c : Likewise.
24213 * omega.c : Likewise.
24214 * omp-low.c : Likewise.
24215 * optabs.c : Likewise.
24216 * opts-global.c : Likewise.
24217 * opts.h : Likewise.
24218 * passes.c : Likewise.
24219 * plugin.c : Likewise.
24220 * postreload-gcse.c : Likewise.
24221 * postreload.c : Likewise.
24222 * predict.c : Likewise.
24223 * print-rtl.c : Likewise.
24224 * print-tree.c : Likewise.
24225 * profile.c : Likewise.
24226 * read-md.c : Likewise.
24227 * read-md.h : Likewise.
24228 * read-rtl.c : Likewise.
24229 * real.c : Likewise.
24230 * realmpfr.c : Likewise.
24231 * recog.c : Likewise.
24232 * ree.c : Likewise.
24233 * reg-stack.c : Likewise.
24234 * regcprop.c : Likewise.
24235 * reginfo.c : Likewise.
24236 * regrename.c : Likewise.
24237 * regstat.c : Likewise.
24238 * reload.c : Likewise.
24239 * reload1.c : Likewise.
24240 * reorg.c : Likewise.
24241 * resource.c : Likewise.
24242 * rtl-chkp.c : Likewise.
24243 * rtl.c : Likewise.
24244 * rtl.h : Likewise.
24245 * rtlanal.c : Likewise.
24246 * rtlhash.c : Likewise.
24247 * rtlhash.h : Likewise.
24248 * rtlhooks.c : Likewise.
24249 * sanopt.c : Likewise.
24250 * sched-deps.c : Likewise.
24251 * sched-ebb.c : Likewise.
24252 * sched-rgn.c : Likewise.
24253 * sched-vis.c : Likewise.
24254 * sdbout.c : Likewise.
24255 * sel-sched-dump.c : Likewise.
24256 * sel-sched-ir.c : Likewise.
24257 * sel-sched-ir.h : Likewise.
24258 * sel-sched.c : Likewise.
24259 * sese.c : Likewise.
24260 * shrink-wrap.c : Likewise.
24261 * shrink-wrap.h : Likewise.
24262 * simplify-rtx.c : Likewise.
24263 * stack-ptr-mod.c : Likewise.
24264 * statistics.c : Likewise.
24265 * stmt.c : Likewise.
24266 * stor-layout.c : Likewise.
24267 * store-motion.c : Likewise.
24268 * stringpool.c : Likewise.
24269 * symtab.c : Likewise.
24270 * target-globals.c : Likewise.
24271 * targhooks.c : Likewise.
24272 * tlink.c : Likewise.
24273 * toplev.c : Likewise.
24274 * tracer.c : Likewise.
24275 * trans-mem.c : Likewise.
24276 * tree-affine.c : Likewise.
24277 * tree-affine.h : Likewise.
24278 * tree-browser.c : Likewise.
24279 * tree-call-cdce.c : Likewise.
24280 * tree-cfg.c : Likewise.
24281 * tree-cfgcleanup.c : Likewise.
24282 * tree-chkp-opt.c : Likewise.
24283 * tree-chkp.c : Likewise.
24284 * tree-chrec.c : Likewise.
24285 * tree-complex.c : Likewise.
24286 * tree-data-ref.c : Likewise.
24287 * tree-dfa.c : Likewise.
24288 * tree-diagnostic.c : Likewise.
24289 * tree-dump.c : Likewise.
24290 * tree-eh.c : Likewise.
24291 * tree-eh.h : Likewise.
24292 * tree-emutls.c : Likewise.
24293 * tree-hasher.h : Likewise.
24294 * tree-if-conv.c : Likewise.
24295 * tree-inline.c : Likewise.
24296 * tree-inline.h : Likewise.
24297 * tree-into-ssa.c : Likewise.
24298 * tree-iterator.c : Likewise.
24299 * tree-loop-distribution.c : Likewise.
24300 * tree-nested.c : Likewise.
24301 * tree-nrv.c : Likewise.
24302 * tree-object-size.c : Likewise.
24303 * tree-outof-ssa.c : Likewise.
24304 * tree-parloops.c : Likewise.
24305 * tree-phinodes.c : Likewise.
24306 * tree-predcom.c : Likewise.
24307 * tree-pretty-print.c : Likewise.
24308 * tree-profile.c : Likewise.
24309 * tree-scalar-evolution.c : Likewise.
24310 * tree-sra.c : Likewise.
24311 * tree-ssa-address.c : Likewise.
24312 * tree-ssa-alias.c : Likewise.
24313 * tree-ssa-ccp.c : Likewise.
24314 * tree-ssa-coalesce.c : Likewise.
24315 * tree-ssa-copy.c : Likewise.
24316 * tree-ssa-copyrename.c : Likewise.
24317 * tree-ssa-dce.c : Likewise.
24318 * tree-ssa-dom.c : Likewise.
24319 * tree-ssa-dse.c : Likewise.
24320 * tree-ssa-forwprop.c : Likewise.
24321 * tree-ssa-ifcombine.c : Likewise.
24322 * tree-ssa-live.c : Likewise.
24323 * tree-ssa-loop-ch.c : Likewise.
24324 * tree-ssa-loop-im.c : Likewise.
24325 * tree-ssa-loop-ivcanon.c : Likewise.
24326 * tree-ssa-loop-ivopts.c : Likewise.
24327 * tree-ssa-loop-manip.c : Likewise.
24328 * tree-ssa-loop-niter.c : Likewise.
24329 * tree-ssa-loop-prefetch.c : Likewise.
24330 * tree-ssa-loop-unswitch.c : Likewise.
24331 * tree-ssa-loop.c : Likewise.
24332 * tree-ssa-math-opts.c : Likewise.
24333 * tree-ssa-operands.c : Likewise.
24334 * tree-ssa-phiopt.c : Likewise.
24335 * tree-ssa-phiprop.c : Likewise.
24336 * tree-ssa-pre.c : Likewise.
24337 * tree-ssa-propagate.c : Likewise.
24338 * tree-ssa-reassoc.c : Likewise.
24339 * tree-ssa-sccvn.c : Likewise.
24340 * tree-ssa-scopedtables.c : Likewise.
24341 * tree-ssa-sink.c : Likewise.
24342 * tree-ssa-strlen.c : Likewise.
24343 * tree-ssa-structalias.c : Likewise.
24344 * tree-ssa-tail-merge.c : Likewise.
24345 * tree-ssa-ter.c : Likewise.
24346 * tree-ssa-threadedge.c : Likewise.
24347 * tree-ssa-threadupdate.c : Likewise.
24348 * tree-ssa-uncprop.c : Likewise.
24349 * tree-ssa-uninit.c : Likewise.
24350 * tree-ssa.c : Likewise.
24351 * tree-ssanames.c : Likewise.
24352 * tree-stdarg.c : Likewise.
24353 * tree-streamer-in.c : Likewise.
24354 * tree-streamer-out.c : Likewise.
24355 * tree-streamer.c : Likewise.
24356 * tree-streamer.h : Likewise.
24357 * tree-switch-conversion.c : Likewise.
24358 * tree-tailcall.c : Likewise.
24359 * tree-vect-data-refs.c : Likewise.
24360 * tree-vect-generic.c : Likewise.
24361 * tree-vect-loop-manip.c : Likewise.
24362 * tree-vect-loop.c : Likewise.
24363 * tree-vect-patterns.c : Likewise.
24364 * tree-vect-slp.c : Likewise.
24365 * tree-vect-stmts.c : Likewise.
24366 * tree-vectorizer.c : Likewise.
24367 * tree-vectorizer.h : Likewise.
24368 * tree-vrp.c : Likewise.
24369 * tree.c : Likewise.
24370 * tsan.c : Likewise.
24371 * ubsan.c : Likewise.
24372 * valtrack.c : Likewise.
24373 * valtrack.h : Likewise.
24374 * value-prof.c : Likewise.
24375 * var-tracking.c : Likewise.
24376 * varasm.c : Likewise.
24377 * varpool.c : Likewise.
24379 * vmsdbgout.c : Likewise.
24380 * vtable-verify.c : Likewise.
24381 * vtable-verify.h : Likewise.
24382 * web.c : Likewise.
24383 * wide-int.cc : Likewise.
24384 * xcoffout.c : Likewise.
24385 * config/aarch64/aarch64-builtins.c : Likewise.
24386 * config/aarch64/aarch64.c : Likewise.
24387 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
24388 * config/alpha/alpha.c : Likewise.
24389 * config/arc/arc.c : Likewise.
24390 * config/arm/aarch-common.c : Likewise.
24391 * config/arm/arm-builtins.c : Likewise.
24392 * config/arm/arm-c.c : Likewise.
24393 * config/arm/arm.c : Likewise.
24394 * config/avr/avr-c.c : Likewise.
24395 * config/avr/avr-log.c : Likewise.
24396 * config/avr/avr.c : Likewise.
24397 * config/bfin/bfin.c : Likewise.
24398 * config/c6x/c6x.c : Likewise.
24399 * config/cr16/cr16.c : Likewise.
24400 * config/cris/cris.c : Likewise.
24401 * config/darwin-c.c : Likewise.
24402 * config/darwin.c : Likewise.
24403 * config/default-c.c : Likewise.
24404 * config/epiphany/epiphany.c : Likewise.
24405 * config/epiphany/mode-switch-use.c : Likewise.
24406 * config/epiphany/resolve-sw-modes.c : Likewise.
24407 * config/fr30/fr30.c : Likewise.
24408 * config/frv/frv.c : Likewise.
24409 * config/ft32/ft32.c : Likewise.
24410 * config/glibc-c.c : Likewise.
24411 * config/h8300/h8300.c : Likewise.
24412 * config/i386/i386-c.c : Likewise.
24413 * config/i386/i386.c : Likewise.
24414 * config/i386/msformat-c.c : Likewise.
24415 * config/i386/winnt-cxx.c : Likewise.
24416 * config/i386/winnt-stubs.c : Likewise.
24417 * config/i386/winnt.c : Likewise.
24418 * config/ia64/ia64-c.c : Likewise.
24419 * config/ia64/ia64.c : Likewise.
24420 * config/iq2000/iq2000.c : Likewise.
24421 * config/lm32/lm32.c : Likewise.
24422 * config/m32c/m32c-pragma.c : Likewise.
24423 * config/m32c/m32c.c : Likewise.
24424 * config/m32r/m32r.c : Likewise.
24425 * config/m68k/m68k.c : Likewise.
24426 * config/mcore/mcore.c : Likewise.
24427 * config/mep/mep-pragma.c : Likewise.
24428 * config/mep/mep.c : Likewise.
24429 * config/microblaze/microblaze-c.c : Likewise.
24430 * config/microblaze/microblaze.c : Likewise.
24431 * config/mips/mips.c : Likewise.
24432 * config/mmix/mmix.c : Likewise.
24433 * config/mn10300/mn10300.c : Likewise.
24434 * config/moxie/moxie.c : Likewise.
24435 * config/msp430/msp430-c.c : Likewise.
24436 * config/msp430/msp430.c : Likewise.
24437 * config/nds32/nds32-cost.c : Likewise.
24438 * config/nds32/nds32-fp-as-gp.c : Likewise.
24439 * config/nds32/nds32-intrinsic.c : Likewise.
24440 * config/nds32/nds32-isr.c : Likewise.
24441 * config/nds32/nds32-md-auxiliary.c : Likewise.
24442 * config/nds32/nds32-memory-manipulation.c : Likewise.
24443 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
24444 * config/nds32/nds32-predicates.c : Likewise.
24445 * config/nds32/nds32.c : Likewise.
24446 * config/nios2/nios2.c : Likewise.
24447 * config/nvptx/nvptx.c : Likewise.
24448 * config/pa/pa.c : Likewise.
24449 * config/pdp11/pdp11.c : Likewise.
24450 * config/rl78/rl78-c.c : Likewise.
24451 * config/rl78/rl78.c : Likewise.
24452 * config/rs6000/rs6000-c.c : Likewise.
24453 * config/rs6000/rs6000.c : Likewise.
24454 * config/rx/rx.c : Likewise.
24455 * config/s390/s390-c.c : Likewise.
24456 * config/s390/s390.c : Likewise.
24457 * config/sh/sh-c.c : Likewise.
24458 * config/sh/sh-mem.cc : Likewise.
24459 * config/sh/sh.c : Likewise.
24460 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
24461 * config/sh/sh_treg_combine.cc : Likewise.
24462 * config/sol2-c.c : Likewise.
24463 * config/sol2-cxx.c : Likewise.
24464 * config/sol2-stubs.c : Likewise.
24465 * config/sol2.c : Likewise.
24466 * config/sparc/sparc-c.c : Likewise.
24467 * config/sparc/sparc.c : Likewise.
24468 * config/spu/spu-c.c : Likewise.
24469 * config/spu/spu.c : Likewise.
24470 * config/stormy16/stormy16.c : Likewise.
24471 * config/tilegx/mul-tables.c : Likewise.
24472 * config/tilegx/tilegx-c.c : Likewise.
24473 * config/tilegx/tilegx.c : Likewise.
24474 * config/tilepro/mul-tables.c : Likewise.
24475 * config/tilepro/tilepro-c.c : Likewise.
24476 * config/tilepro/tilepro.c : Likewise.
24477 * config/v850/v850-c.c : Likewise.
24478 * config/v850/v850.c : Likewise.
24479 * config/vax/vax.c : Likewise.
24480 * config/visium/visium.c : Likewise.
24481 * config/vms/vms-c.c : Likewise.
24482 * config/vms/vms.c : Likewise.
24483 * config/vxworks.c : Likewise.
24484 * config/winnt-c.c : Likewise.
24485 * config/xtensa/xtensa.c : Likewise.
24487 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24490 * ipa-utils.h (warn_types_mismatch): Update prototype.
24491 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
24493 (type_mismatch_p): New function.
24494 (warn_types_mismatch): Reorg to work better on non-C++ types.
24495 (odr_types_equivalent_p): Add loc1/loc2 parameters.
24496 (add_type_duplicate): Update.
24498 2015-06-08 Tom de Vries <tom@codesourcery.com>
24500 PR rtl-optimization/66444
24501 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
24504 2015-06-08 Richard Biener <rguenther@suse.de>
24506 PR tree-optimization/66422
24507 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
24508 block after inserted gcc_unreachable.
24510 2015-06-08 Nick Clifton <nickc@redhat.com>
24512 * config/rx/rx.c (rx_function_value): Do not promote vector types.
24513 (rx_promote_function_mode): Likewise.
24514 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
24516 2015-06-08 Jakub Jelinek <jakub@redhat.com>
24518 * genattrtab.c (insn_alternatives): Change type from int *
24520 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
24521 (get_attr_value): Change type of num_alt to uint64_t.
24522 (compute_alternative_mask): Change return type from
24523 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
24524 (make_alternative_compare, mk_attr_alt): Change argument type
24525 from int to uint64_t.
24526 (simplify_test_exp): Change type of i from int to uint64_t.
24527 Shift ((uint64_t) 1) instead of 1 up.
24528 (main): Adjust oballocvec first argument from int to uint64_t.
24529 Shift ((uint64_t) 1) instead of 1 up.
24531 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
24534 * gdbhooks.py: Import sys.
24535 (intptr): New function. Replace int(...) by intptr(...).
24537 2015-06-08 Richard Biener <rguenther@suse.de>
24539 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
24540 adjustment for gaps at the end of a SLP load group properly.
24541 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
24542 all permutations we can generate.
24543 (vect_transform_slp_perm_load): Use the correct group-size.
24545 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
24547 * genmatch.c (expr::gen_transform): For conditions, guess the type
24548 from the second operand.
24550 2015-06-08 Tom de Vries <tom@codesourcery.com>
24552 PR tree-optimization/66442
24553 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
24554 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
24555 if the loop latch is not a singleton. Use
24556 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
24558 2015-06-08 Marek Polacek <polacek@redhat.com>
24561 * toplev.c (check_global_declaration): Don't warn about artificial
24564 2015-06-08 Tom de Vries <tom@codesourcery.com>
24566 PR tree-optimization/66436
24567 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
24569 * gimplify.c: Add tree-dump.h include.
24570 (gimplify_function_tree): Dump function to gimple dump file.
24571 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
24574 2015-06-08 Tom de Vries <tom@codesourcery.com>
24576 PR tree-optimization/66435
24577 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
24580 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
24582 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
24583 of ptr_type_node to not be ptr_to_node.
24584 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
24585 TREE_TYPE of pointers.
24586 * gimple-expr.c (useless_type_conversion): Reorder the check for
24587 function pointers and TYPE_CANONICAL.
24589 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
24592 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
24593 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
24594 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
24596 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
24597 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
24598 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
24599 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
24600 and non iso if unix2003.
24602 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
24604 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
24606 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
24608 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
24609 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
24610 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
24611 except.c, final.c, function.c, gcse-common.c, genemit.c,
24612 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
24613 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
24614 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
24615 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
24618 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
24620 * combine.c (combine_split_insns): Remove cast.
24621 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
24622 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
24623 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
24624 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
24625 * genemit.c (gen_split): Change return type of generated functions to
24627 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
24628 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
24629 gen_peephole2_* functions.
24630 (print_subroutine, main): Likewise.
24631 * recog.c (peephole2_optimize): Remove cast.
24632 (peep2_next_insn): Promote return type to rtx_insn.
24633 * recog.h (peep2_next_insn): Fix prototype.
24634 * rtl.h (try_split, split_insns): Likewise.
24636 2015-06-06 DJ Delorie <dj@redhat.com>
24638 * config/msp430/msp430.c (msp430_asm_integer): Support addition
24639 and subtraction too.
24641 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
24644 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
24645 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
24646 instead of Snd. Disparage Sid/z alternative with '^'.
24648 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
24650 * dwarf2out.c: Remove deferred_locations*.
24651 (dwarf2_debug_hooks): Add early_finish hook.
24652 Remove global_decl hook.
24653 Add early_global_decl and late_global_decl hook.
24654 New global early_dwarf.
24655 New structure set_early_dwarf.
24656 (output_die): Indicate whether a DIE was generated early
24657 when generating assembly with -dA.
24658 (struct limbo_die_struct): Document created_for field.
24659 Remove file_table_last_lookup.
24660 (remove_AT): Return TRUE if successful.
24661 (remove_child_TAG): Clear die_parent.
24662 (reparent_child): New function abstracted from...
24663 (splice_child_die): ...here.
24664 (new_die): ICE if a DIE ends up in limbo too late.
24666 (defer_location): Remove.
24667 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
24668 (fill_variable_array_bounds): New.
24669 (decl_start_label): Call fill_variable_array_bounds.
24670 (gen_formal_parameter_die): Rewrite to reuse previously generated
24672 (gen_subprogram_die): Same.
24673 (gen_variable_die): Same.
24674 (gen_const_die): Same.
24675 (gen_label_die): Same.
24676 (gen_lexical_block_die): Same.
24677 (decl_will_get_specification_p): New.
24678 (local_function_static): New.
24679 (gen_struct_or_union_type_die): Fill in variable-length fields.
24680 (gen_typedef_die): Fill in variable-length typedefs.
24681 (gen_tagged_type_die): Gracefully return on error_mark_node.
24682 Handle re-entrancy.
24683 (gen_type_die_with_usage): Handle variable-length types.
24684 Remove duplicate code for ARRAY_TYPE case.
24685 (process_scope_var): Only process imported modules during early
24687 (dwarf2out_early_global_decl): New.
24688 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
24689 (dwarf2out_type_decl): Set early_dwarf while calling
24691 (dwarf2out_decl): Verify that we did not recreate a previously
24693 Do not return on DECL_EXTERNALs in VAR_DECLs.
24694 Abstract some code to local_function_static.
24695 (lookup_filename): Remove use of file_table_last_lookup.
24696 Gracefully exit on missing file_name.
24697 (dwarf2out_finish): Verify limbo list.
24698 Remove deferred_locations_list use.
24699 Move deferred_asm_name and limbo flushing to...
24700 (dwarf2out_early_finish): ...here. New.
24701 (dwarf2out_c_finalize): Remove set of deferred_location_list,
24702 deferred_asm_name, and file_table_last_lookup.
24703 * cgraph.h (referred_to_p): Add default argument.
24704 * cgraphunit.c (referred_to_p): Add and handle include_self
24706 (analyze_functions): Add first_time argument.
24707 Call check_global_declaration for all symbols.
24708 Call late_global_decl for nodes for moribund nodes.
24709 (finalize_compilation_unit): Add new argument to
24711 Call early_global_decl for functions.
24712 Call early_finish debug hook.
24713 * dbxout.c (dbxout_early_global_decl): New.
24714 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
24715 (dbx_debug_hooks): Add new hooks.
24716 (xcoff_debug_hooks): Same.
24717 * debug.c (do_nothing_debug_hooks): Add early_finish field.
24718 Add early and late debug hooks.
24719 Remove global_decl hook.
24720 * debug.h (struct gcc_debug_hooks): Add early_finish,
24721 early_global_decl, and late_global_decl fields.
24722 Remove global_decl field.
24723 Document gcc_debug_hooks.
24724 * gengtype.c (output_typename): Remove.
24725 * godump.c (go_early_global_decl): New.
24726 (go_late_global_decl): New.
24727 (go_global_decl): Remove.
24728 (dump_go_spec_init): Remove global_decl. Add
24729 {early,late}_global_decl.
24730 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
24731 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
24732 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
24733 (write_global_declarations): Remove.
24734 (global_decl_processing): New.
24735 * langhooks.h (struct lang_hooks_for_decls): Remove
24736 final_write_globals field.
24737 Add post_compilation_parsing_cleanups field.
24738 * passes.c (rest_of_decl_compilation): Call early_global_decl.
24739 * sdbout.c: Add early and late_global_decl hooks. Remove
24740 sdbout_global_decl hook.
24741 Add early_finish field for sdb_debug_hooks.
24742 (sdbout_global_decl): Remove.
24743 (sdbout_early_global_decl): New.
24744 (sdbout_late_global_decl): New.
24745 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
24746 * toplev.c (check_global_declaration): Rename from
24747 check_global_declaration_1.
24748 Adapt to use symtab infrastructure.
24749 (check_global_declarations): Remove.
24750 (emit_debug_global_declarations): Remove.
24751 (compile_file): Remove call to final_write_globals langhook.
24752 Run the actual compilation process.
24753 Perform any post compilation parser cleanups.
24754 Generate late debug info.
24755 * toplev.h (check_global_declaration): New.
24756 (check_global_declaration_1): Remove.
24757 (check_global_declarations): Remove.
24758 (write_global_declarations): Remove.
24759 (emit_debug_global_declarations): Remove.
24760 (global_decl_processing): New.
24761 * tree-core.h (struct tree_block): Add DIE field.
24762 * tree.h (BLOCK_DIE): New.
24763 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
24765 (vmsdbgout_early_global_decl): New.
24766 (vmsdbgout_late_global_decl): New.
24767 Add early_finish debug hook field to vmsdbg_debug_hooks.
24768 Remove vmsdbgout_decl to vmsdbgout_function_decl.
24769 Add early and late_global_decl debug hooks.
24771 2015-06-05 Julian Brown <julian@codesourcery.com>
24772 Sandra Loosemore <sandra@codesourcery.com>
24774 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
24775 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
24776 to print-sysroot-suffix.sh script.
24778 2015-06-05 Tom de Vries <tom@codesourcery.com>
24780 merge from gomp4 branch:
24781 2015-05-28 Tom de Vries <tom@codesourcery.com>
24783 PR tree-optimization/65443
24784 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
24785 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
24786 (try_transform_to_exit_first_loop_alt): New function.
24787 (transform_to_exit_first_loop): Use
24788 try_transform_to_exit_first_loop_alt.
24790 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
24792 * builtins.c (expand_builtin_atomic_compare_exchange): Call
24793 emit_cmp_and_jump_insns with the mode of target.
24795 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24797 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
24799 2015-06-04 DJ Delorie <dj@redhat.com>
24801 * config/msp430/msp430.md (movsi_s): New. Special case for
24802 storing a 20-bit symbol into a 32-bit register.
24803 * config/msp430/msp430.c (msp430_subreg): Add support for it.
24804 * config/msp430/predicates.md (msp430_symbol_operand): New.
24806 2015-06-04 Sriraman Tallam <tmsriram@google.com>
24808 * c-family/c-common.c (noplt): New attribute.
24809 (handle_noplt_attribute): New handler.
24810 * calls.c (prepare_call_address): Check for noplt
24812 * config/i386/i386.c (ix86_expand_call): Check
24813 for noplt attribute.
24814 (ix86_nopic_noplt_attribute_p): New function.
24815 (ix86_output_call_insn): Output indirect call for non-pic
24817 * doc/extend.texi (noplt): Document new attribute.
24818 * doc/invoke.texi: Document new attribute.
24820 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
24822 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
24823 real.h, and fixed-value.h when included in host source files.
24824 * double-int.h: Remove redundant #includes listed above.
24825 * fixed-value.h: Likewise.
24826 * real.h: Likewise.
24827 * wide-int.h: Likewise.
24828 * inchash.h: Likewise.
24829 * rtl.h: Add some include files When included from a generator file.
24830 * target.h: Remove wide-int.h and insn-modes.h from the include list.
24831 * internal-fn.h: Don't include coretypes.h.
24832 * alias.c: Adjust includes for restructured coretypes.h.
24833 * asan.c: Likewise.
24834 * attribs.c: Likewise.
24835 * auto-inc-dec.c: Likewise.
24836 * auto-profile.c: Likewise.
24837 * bb-reorder.c: Likewise.
24838 * bt-load.c: Likewise.
24839 * builtins.c: Likewise.
24840 * caller-save.c: Likewise.
24841 * calls.c: Likewise.
24842 * ccmp.c: Likewise.
24844 * cfganal.c: Likewise.
24845 * cfgbuild.c: Likewise.
24846 * cfgcleanup.c: Likewise.
24847 * cfgexpand.c: Likewise.
24848 * cfghooks.c: Likewise.
24849 * cfgloop.c: Likewise.
24850 * cfgloop.h: Likewise.
24851 * cfgloopanal.c: Likewise.
24852 * cfgloopmanip.c: Likewise.
24853 * cfgrtl.c: Likewise.
24854 * cgraph.c: Likewise.
24855 * cgraphbuild.c: Likewise.
24856 * cgraphclones.c: Likewise.
24857 * cgraphunit.c: Likewise.
24858 * cilk-common.c: Likewise.
24859 * combine-stack-adj.c: Likewise.
24860 * combine.c: Likewise.
24861 * compare-elim.c: Likewise.
24862 * convert.c: Likewise.
24863 * coverage.c: Likewise.
24864 * cppbuiltin.c: Likewise.
24865 * cprop.c: Likewise.
24867 * cselib.c: Likewise.
24868 * data-streamer-in.c: Likewise.
24869 * data-streamer-out.c: Likewise.
24870 * data-streamer.c: Likewise.
24871 * dbxout.c: Likewise.
24874 * debug.c: Likewise.
24875 * df-core.c: Likewise.
24876 * df-problems.c: Likewise.
24877 * df-scan.c: Likewise.
24880 * dojump.c: Likewise.
24881 * dominance.c: Likewise.
24882 * domwalk.c: Likewise.
24883 * double-int.c: Likewise.
24885 * dumpfile.c: Likewise.
24886 * dwarf2asm.c: Likewise.
24887 * dwarf2cfi.c: Likewise.
24888 * dwarf2out.c: Likewise.
24889 * dwarf2out.h: Likewise.
24890 * emit-rtl.c: Likewise.
24891 * et-forest.c: Likewise.
24892 * except.c: Likewise.
24893 * explow.c: Likewise.
24894 * expmed.c: Likewise.
24895 * expr.c: Likewise.
24896 * final.c: Likewise.
24897 * fixed-value.c: Likewise.
24898 * fold-const.c: Likewise.
24899 * function.c: Likewise.
24900 * fwprop.c: Likewise.
24901 * gcc-plugin.h: Likewise.
24902 * gcse.c: Likewise.
24903 * generic-match-head.c: Likewise.
24904 * ggc-page.c: Likewise.
24905 * gimple-builder.c: Likewise.
24906 * gimple-expr.c: Likewise.
24907 * gimple-fold.c: Likewise.
24908 * gimple-iterator.c: Likewise.
24909 * gimple-low.c: Likewise.
24910 * gimple-match-head.c: Likewise.
24911 * gimple-pretty-print.c: Likewise.
24912 * gimple-ssa-isolate-paths.c: Likewise.
24913 * gimple-ssa-strength-reduction.c: Likewise.
24914 * gimple-streamer-in.c: Likewise.
24915 * gimple-streamer-out.c: Likewise.
24916 * gimple-streamer.h: Likewise.
24917 * gimple-walk.c: Likewise.
24918 * gimple.c: Likewise.
24919 * gimplify-me.c: Likewise.
24920 * gimplify.c: Likewise.
24921 * godump.c: Likewise.
24922 * graph.c: Likewise.
24923 * graphite-blocking.c: Likewise.
24924 * graphite-dependences.c: Likewise.
24925 * graphite-interchange.c: Likewise.
24926 * graphite-isl-ast-to-gimple.c: Likewise.
24927 * graphite-optimize-isl.c: Likewise.
24928 * graphite-poly.c: Likewise.
24929 * graphite-scop-detection.c: Likewise.
24930 * graphite-sese-to-poly.c: Likewise.
24931 * graphite.c: Likewise.
24932 * haifa-sched.c: Likewise.
24933 * hooks.h: Likewise.
24934 * hw-doloop.c: Likewise.
24935 * ifcvt.c: Likewise.
24936 * incpath.c: Likewise.
24937 * init-regs.c: Likewise.
24938 * internal-fn.c: Likewise.
24939 * ipa-chkp.c: Likewise.
24940 * ipa-comdats.c: Likewise.
24941 * ipa-cp.c: Likewise.
24942 * ipa-devirt.c: Likewise.
24943 * ipa-icf-gimple.c: Likewise.
24944 * ipa-icf.c: Likewise.
24945 * ipa-inline-analysis.c: Likewise.
24946 * ipa-inline-transform.c: Likewise.
24947 * ipa-inline.c: Likewise.
24948 * ipa-polymorphic-call.c: Likewise.
24949 * ipa-profile.c: Likewise.
24950 * ipa-prop.c: Likewise.
24951 * ipa-pure-const.c: Likewise.
24952 * ipa-ref.c: Likewise.
24953 * ipa-reference.c: Likewise.
24954 * ipa-split.c: Likewise.
24955 * ipa-utils.c: Likewise.
24956 * ipa-visibility.c: Likewise.
24958 * ira-build.c: Likewise.
24959 * ira-color.c: Likewise.
24960 * ira-conflicts.c: Likewise.
24961 * ira-costs.c: Likewise.
24962 * ira-emit.c: Likewise.
24963 * ira-lives.c: Likewise.
24965 * jump.c: Likewise.
24966 * langhooks.c: Likewise.
24968 * loop-doloop.c: Likewise.
24969 * loop-init.c: Likewise.
24970 * loop-invariant.c: Likewise.
24971 * loop-iv.c: Likewise.
24972 * loop-unroll.c: Likewise.
24973 * lower-subreg.c: Likewise.
24974 * lra-assigns.c: Likewise.
24975 * lra-coalesce.c: Likewise.
24976 * lra-constraints.c: Likewise.
24977 * lra-eliminations.c: Likewise.
24978 * lra-lives.c: Likewise.
24979 * lra-remat.c: Likewise.
24980 * lra-spills.c: Likewise.
24982 * lto-cgraph.c: Likewise.
24983 * lto-compress.c: Likewise.
24984 * lto-opts.c: Likewise.
24985 * lto-section-in.c: Likewise.
24986 * lto-section-out.c: Likewise.
24987 * lto-streamer-in.c: Likewise.
24988 * lto-streamer-out.c: Likewise.
24989 * lto-streamer.c: Likewise.
24991 * mode-switching.c: Likewise.
24992 * modulo-sched.c: Likewise.
24993 * omega.c: Likewise.
24994 * omp-low.c: Likewise.
24995 * optabs.c: Likewise.
24996 * opts-global.c: Likewise.
24997 * passes.c: Likewise.
24998 * plugin.c: Likewise.
24999 * postreload-gcse.c: Likewise.
25000 * postreload.c: Likewise.
25001 * predict.c: Likewise.
25002 * print-rtl.c: Likewise.
25003 * print-tree.c: Likewise.
25004 * profile.c: Likewise.
25005 * real.c: Likewise.
25006 * realmpfr.c: Likewise.
25007 * realmpfr.h: Likewise.
25008 * recog.c: Likewise.
25010 * reg-stack.c: Likewise.
25011 * regcprop.c: Likewise.
25012 * reginfo.c: Likewise.
25013 * regrename.c: Likewise.
25014 * regs.h: Likewise.
25015 * regstat.c: Likewise.
25016 * reload.c: Likewise.
25017 * reload1.c: Likewise.
25018 * reorg.c: Likewise.
25019 * resource.c: Likewise.
25020 * rtl-chkp.c: Likewise.
25021 * rtlanal.c: Likewise.
25022 * rtlhooks.c: Likewise.
25023 * sanopt.c: Likewise.
25024 * sched-deps.c: Likewise.
25025 * sched-ebb.c: Likewise.
25026 * sched-rgn.c: Likewise.
25027 * sched-vis.c: Likewise.
25028 * sdbout.c: Likewise.
25029 * sel-sched-dump.c: Likewise.
25030 * sel-sched-ir.c: Likewise.
25031 * sel-sched.c: Likewise.
25032 * sese.c: Likewise.
25033 * shrink-wrap.c: Likewise.
25034 * shrink-wrap.h: Likewise.
25035 * simplify-rtx.c: Likewise.
25036 * stack-ptr-mod.c: Likewise.
25037 * statistics.c: Likewise.
25038 * stmt.c: Likewise.
25039 * stor-layout.c: Likewise.
25040 * store-motion.c: Likewise.
25041 * stringpool.c: Likewise.
25042 * symtab.c: Likewise.
25043 * target-globals.c: Likewise.
25044 * targhooks.c: Likewise.
25045 * toplev.c: Likewise.
25046 * tracer.c: Likewise.
25047 * trans-mem.c: Likewise.
25048 * tree-affine.c: Likewise.
25049 * tree-affine.h: Likewise.
25050 * tree-browser.c: Likewise.
25051 * tree-call-cdce.c: Likewise.
25052 * tree-cfg.c: Likewise.
25053 * tree-cfgcleanup.c: Likewise.
25054 * tree-chkp-opt.c: Likewise.
25055 * tree-chkp.c: Likewise.
25056 * tree-chrec.c: Likewise.
25057 * tree-complex.c: Likewise.
25058 * tree-data-ref.c: Likewise.
25059 * tree-dfa.c: Likewise.
25060 * tree-diagnostic.c: Likewise.
25061 * tree-dump.c: Likewise.
25062 * tree-eh.c: Likewise.
25063 * tree-emutls.c: Likewise.
25064 * tree-if-conv.c: Likewise.
25065 * tree-inline.c: Likewise.
25066 * tree-into-ssa.c: Likewise.
25067 * tree-iterator.c: Likewise.
25068 * tree-loop-distribution.c: Likewise.
25069 * tree-nested.c: Likewise.
25070 * tree-nrv.c: Likewise.
25071 * tree-object-size.c: Likewise.
25072 * tree-outof-ssa.c: Likewise.
25073 * tree-parloops.c: Likewise.
25074 * tree-phinodes.c: Likewise.
25075 * tree-predcom.c: Likewise.
25076 * tree-pretty-print.c: Likewise.
25077 * tree-pretty-print.h: Likewise.
25078 * tree-profile.c: Likewise.
25079 * tree-scalar-evolution.c: Likewise.
25080 * tree-sra.c: Likewise.
25081 * tree-ssa-address.c: Likewise.
25082 * tree-ssa-alias.c: Likewise.
25083 * tree-ssa-ccp.c: Likewise.
25084 * tree-ssa-coalesce.c: Likewise.
25085 * tree-ssa-copy.c: Likewise.
25086 * tree-ssa-copyrename.c: Likewise.
25087 * tree-ssa-dce.c: Likewise.
25088 * tree-ssa-dom.c: Likewise.
25089 * tree-ssa-dse.c: Likewise.
25090 * tree-ssa-forwprop.c: Likewise.
25091 * tree-ssa-ifcombine.c: Likewise.
25092 * tree-ssa-live.c: Likewise.
25093 * tree-ssa-loop-ch.c: Likewise.
25094 * tree-ssa-loop-im.c: Likewise.
25095 * tree-ssa-loop-ivcanon.c: Likewise.
25096 * tree-ssa-loop-ivopts.c: Likewise.
25097 * tree-ssa-loop-manip.c: Likewise.
25098 * tree-ssa-loop-niter.c: Likewise.
25099 * tree-ssa-loop-prefetch.c: Likewise.
25100 * tree-ssa-loop-unswitch.c: Likewise.
25101 * tree-ssa-loop.c: Likewise.
25102 * tree-ssa-loop.h: Likewise.
25103 * tree-ssa-math-opts.c: Likewise.
25104 * tree-ssa-operands.c: Likewise.
25105 * tree-ssa-phiopt.c: Likewise.
25106 * tree-ssa-phiprop.c: Likewise.
25107 * tree-ssa-pre.c: Likewise.
25108 * tree-ssa-propagate.c: Likewise.
25109 * tree-ssa-reassoc.c: Likewise.
25110 * tree-ssa-sccvn.c: Likewise.
25111 * tree-ssa-scopedtables.c: Likewise.
25112 * tree-ssa-sink.c: Likewise.
25113 * tree-ssa-strlen.c: Likewise.
25114 * tree-ssa-structalias.c: Likewise.
25115 * tree-ssa-tail-merge.c: Likewise.
25116 * tree-ssa-ter.c: Likewise.
25117 * tree-ssa-threadedge.c: Likewise.
25118 * tree-ssa-threadupdate.c: Likewise.
25119 * tree-ssa-uncprop.c: Likewise.
25120 * tree-ssa-uninit.c: Likewise.
25121 * tree-ssa.c: Likewise.
25122 * tree-ssanames.c: Likewise.
25123 * tree-stdarg.c: Likewise.
25124 * tree-streamer-in.c: Likewise.
25125 * tree-streamer-out.c: Likewise.
25126 * tree-streamer.c: Likewise.
25127 * tree-switch-conversion.c: Likewise.
25128 * tree-tailcall.c: Likewise.
25129 * tree-vect-data-refs.c: Likewise.
25130 * tree-vect-generic.c: Likewise.
25131 * tree-vect-loop-manip.c: Likewise.
25132 * tree-vect-loop.c: Likewise.
25133 * tree-vect-patterns.c: Likewise.
25134 * tree-vect-slp.c: Likewise.
25135 * tree-vect-stmts.c: Likewise.
25136 * tree-vectorizer.c: Likewise.
25137 * tree-vrp.c: Likewise.
25138 * tree.c: Likewise.
25139 * tsan.c: Likewise.
25140 * ubsan.c: Likewise.
25141 * valtrack.c: Likewise.
25142 * value-prof.c: Likewise.
25143 * var-tracking.c: Likewise.
25144 * varasm.c: Likewise.
25145 * varpool.c: Likewise.
25146 * vmsdbgout.c: Likewise.
25147 * vtable-verify.c: Likewise.
25149 * wide-int-print.cc: Likewise.
25150 * wide-int-print.h: Likewise.
25151 * wide-int.cc: Likewise.
25152 * xcoffout.c: Likewise.
25153 * config/aarch64/aarch64-builtins.c: Likewise.
25154 * config/aarch64/aarch64.c: Likewise.
25155 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25156 * config/alpha/alpha.c: Likewise.
25157 * config/arc/arc.c: Likewise.
25158 * config/arm/aarch-common.c: Likewise.
25159 * config/arm/arm-builtins.c: Likewise.
25160 * config/arm/arm-c.c: Likewise.
25161 * config/arm/arm.c: Likewise.
25162 * config/avr/avr-c.c: Likewise.
25163 * config/avr/avr-log.c: Likewise.
25164 * config/avr/avr.c: Likewise.
25165 * config/bfin/bfin.c: Likewise.
25166 * config/c6x/c6x.c: Likewise.
25167 * config/cr16/cr16.c: Likewise.
25168 * config/cris/cris.c: Likewise.
25169 * config/darwin-c.c: Likewise.
25170 * config/darwin.c: Likewise.
25171 * config/default-c.c: Likewise.
25172 * config/epiphany/epiphany.c: Likewise.
25173 * config/epiphany/mode-switch-use.c: Likewise.
25174 * config/epiphany/resolve-sw-modes.c: Likewise.
25175 * config/fr30/fr30.c: Likewise.
25176 * config/frv/frv.c: Likewise.
25177 * config/ft32/ft32.c: Likewise.
25178 * config/glibc-c.c: Likewise.
25179 * config/h8300/h8300.c: Likewise.
25180 * config/i386/i386-c.c: Likewise.
25181 * config/i386/i386.c: Likewise.
25182 * config/i386/msformat-c.c: Likewise.
25183 * config/i386/winnt-cxx.c: Likewise.
25184 * config/i386/winnt-stubs.c: Likewise.
25185 * config/i386/winnt.c: Likewise.
25186 * config/ia64/ia64-c.c: Likewise.
25187 * config/ia64/ia64.c: Likewise.
25188 * config/iq2000/iq2000.c: Likewise.
25189 * config/lm32/lm32.c: Likewise.
25190 * config/m32c/m32c-pragma.c: Likewise.
25191 * config/m32c/m32c.c: Likewise.
25192 * config/m32r/m32r.c: Likewise.
25193 * config/m68k/m68k.c: Likewise.
25194 * config/mcore/mcore.c: Likewise.
25195 * config/mep/mep-pragma.c: Likewise.
25196 * config/mep/mep.c: Likewise.
25197 * config/microblaze/microblaze-c.c: Likewise.
25198 * config/microblaze/microblaze.c: Likewise.
25199 * config/mips/mips.c: Likewise.
25200 * config/mmix/mmix.c: Likewise.
25201 * config/mn10300/mn10300.c: Likewise.
25202 * config/moxie/moxie.c: Likewise.
25203 * config/msp430/msp430-c.c: Likewise.
25204 * config/msp430/msp430.c: Likewise.
25205 * config/nds32/nds32-cost.c: Likewise.
25206 * config/nds32/nds32-fp-as-gp.c: Likewise.
25207 * config/nds32/nds32-intrinsic.c: Likewise.
25208 * config/nds32/nds32-isr.c: Likewise.
25209 * config/nds32/nds32-md-auxiliary.c: Likewise.
25210 * config/nds32/nds32-memory-manipulation.c: Likewise.
25211 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25212 * config/nds32/nds32-predicates.c: Likewise.
25213 * config/nds32/nds32.c: Likewise.
25214 * config/nios2/nios2.c: Likewise.
25215 * config/nvptx/nvptx.c: Likewise.
25216 * config/pa/pa.c: Likewise.
25217 * config/pdp11/pdp11.c: Likewise.
25218 * config/rl78/rl78-c.c: Likewise.
25219 * config/rl78/rl78.c: Likewise.
25220 * config/rs6000/rs6000-c.c: Likewise.
25221 * config/rs6000/rs6000.c: Likewise.
25222 * config/rx/rx.c: Likewise.
25223 * config/s390/s390-c.c: Likewise.
25224 * config/s390/s390.c: Likewise.
25225 * config/sh/sh-c.c: Likewise.
25226 * config/sh/sh-mem.cc: Likewise.
25227 * config/sh/sh.c: Likewise.
25228 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25229 * config/sh/sh_treg_combine.cc: Likewise.
25230 * config/sol2-c.c: Likewise.
25231 * config/sol2-cxx.c: Likewise.
25232 * config/sol2-stubs.c: Likewise.
25233 * config/sol2.c: Likewise.
25234 * config/sparc/sparc-c.c: Likewise.
25235 * config/sparc/sparc.c: Likewise.
25236 * config/spu/spu-c.c: Likewise.
25237 * config/spu/spu.c: Likewise.
25238 * config/stormy16/stormy16.c: Likewise.
25239 * config/tilegx/mul-tables.c: Likewise.
25240 * config/tilegx/tilegx-c.c: Likewise.
25241 * config/tilegx/tilegx.c: Likewise.
25242 * config/tilepro/mul-tables.c: Likewise.
25243 * config/tilepro/tilepro-c.c: Likewise.
25244 * config/tilepro/tilepro.c: Likewise.
25245 * config/v850/v850-c.c: Likewise.
25246 * config/v850/v850.c: Likewise.
25247 * config/vax/vax.c: Likewise.
25248 * config/visium/visium.c: Likewise.
25249 * config/vms/vms-c.c: Likewise.
25250 * config/vms/vms.c: Likewise.
25251 * config/vxworks.c: Likewise.
25252 * config/winnt-c.c: Likewise.
25253 * config/xtensa/xtensa.c: Likewise.
25254 * common/config/bfin/bfin-common.c: Likewise.
25256 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
25258 * tree.h (tree_code_for_canonical_type_merging): New function.
25259 * tree.c (gimple_canonical_types_compatible_p): Use
25260 tree_code_for_canonical_type_merging..
25262 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25266 * doc/tm.texi: Regenerate.
25267 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
25268 * target.def (TARGET_RELAXED_ORDERING): Likewise.
25269 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
25270 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
25271 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
25272 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
25273 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
25274 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
25275 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
25277 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25279 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
25280 register fma steering pass.
25281 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
25282 AARCH64_TUNE_FMA_STEERING.
25284 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
25286 * tree.c (verify_type_variant): Verify that type and variant is
25288 (gimple_canonical_types_compatible_p): Look for main variants.
25290 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
25292 * config.gcc (powerpc*-*-*): Add support for a new configure
25293 option --with-advance-toolchain=<xxx> which overrides using the
25294 default header files, libraries and dynamic linker.
25296 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
25297 specs to support the configure --with-advance-toolchain=<xxx>
25299 (INCLUDE_EXTRA_SPEC): Likewise.
25300 (LINK_OS_EXTRA_SPEC32): Likewise.
25301 (LINK_OK_EXTRA_SPEC64): Likewise.
25302 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
25303 (DYNAMIC_LINKER_PREFIX): Likewise.
25304 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
25306 (GLIBC_DYNAMIC_LINKER32): Likewise.
25307 (GLIBC_DYNAMIC_LINKER64): Likewise.
25308 (LINK_OS_LINUX_SPEC32): Likewise.
25309 (LINK_OS_LINUX_SPEC64): Likewise.
25311 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
25312 configuration option.
25314 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
25317 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
25318 to determine current function ABI.
25319 (ix86_function_value_regno_p): Ditto.
25321 2015-06-03 Martin Liska <mliska@suse.cz>
25323 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
25324 * bitmap.h (struct bitmap_usage): Likewise.
25325 * ggc-common.c (struct ggc_usage): Likewise.
25326 * mem-stats.h (struct mem_location): Likewise.
25327 (struct mem_usage): Likewise.
25328 * vec.c (struct vec_usage): Likewise.
25330 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
25332 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
25335 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
25337 * doc/plugins.texi (enum plugin_event): New event.
25338 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
25339 and PLUGIN_FINISH_FUNCTION.
25340 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
25341 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
25343 2015-06-03 Richard Biener <rguenther@suse.de>
25345 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
25346 compute GROUP_GAP for the first element.
25347 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
25350 2015-06-03 Nick Clifton <nickc@redhat.com>
25352 * config/rl78/rl78-real.md: Add peepholes to avoid a register
25353 copy when calling a function.
25354 * config/rl78/rl78.c (need_to_save): Do not push the frame
25355 pointer in an interrupt handler prologue if it is never used.
25357 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25359 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
25361 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
25363 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
25364 reference when cloning alias node.
25366 2015-06-03 Martin Liska <mliska@suse.cz>
25368 * alloc-pool.h (struct pool_usage): Correct space padding.
25369 * ggc-page.c (ggc_print_statistics): Align columns in a report.
25370 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
25371 * tree.c (dump_tree_statistics): Align columns in a report.
25373 2015-06-03 Martin Liska <mliska@suse.cz>
25375 * alloc-pool.c (allocate_pool_descriptor): Remove.
25376 (struct pool_output_info): Likewise.
25377 (print_alloc_pool_statistics): Likewise.
25378 (dump_alloc_pool_statistics): Likewise.
25379 * alloc-pool.h (struct pool_usage): New struct.
25380 (pool_allocator::initialize): Change usage of memory statistics
25381 to a new interface.
25382 (pool_allocator::release): Likewise.
25383 (pool_allocator::allocate): Likewise.
25384 (pool_allocator::remove): Likewise.
25385 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
25386 for a pool allocator.
25387 * mem-stats.h (struct mem_location): Add new ctor.
25388 (struct mem_usage): Add counter for number of
25390 (mem_alloc_description::register_descriptor): New overload of
25391 * mem-stats.h (mem_location::to_string): New function.
25392 * bitmap.h (struct bitmap_usage): Use this new function.
25393 * ggc-common.c (struct ggc_usage): Likewise.
25396 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
25398 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
25399 of GCC_INSN_FLAGS_H block.
25401 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
25403 * explow.c (plus_constant): Update check after force_const_mem call
25404 to see if the value returned is not a NULL_RTX.
25406 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
25408 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
25409 remove instumentation thunks calling reachable functions.
25410 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
25411 * lto/lto-partition.c (privatize_symbol_name_1): New.
25412 (privatize_symbol_name): Privatize both decl and orig_decl
25413 names for instrumented functions.
25414 * cgraph.c (cgraph_node::verify_node): Add transparent
25415 alias chain check for instrumented node.
25417 2015-06-03 Marek Polacek <polacek@redhat.com>
25421 * tree.c (attribute_value_equal): Handle attribute format.
25422 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
25424 2015-06-03 Richard Biener <rguenther@suse.de>
25426 PR tree-optimization/63916
25427 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
25428 Forward-propagate non-invariant addresses by splicing their
25429 reference ops if the result isn't going to be used by PRE.
25430 (vn_reference_lookup_3): Remove pointless assert.
25432 2015-06-03 Richard Biener <rguenther@suse.de>
25434 PR tree-optimization/66375
25435 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
25436 add to the evolution before following SSA edges.
25438 2015-06-03 Bin Cheng <bin.cheng@arm.com>
25440 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
25441 (dump_use, dump_cand, find_induction_variables): Pass new argument
25443 (record_use): Preserve the ssa name information in IV.
25445 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
25447 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
25449 (add_mode_tests): Don't add mode tests if the predicate only
25450 accepts scalar constant integers. Otherwise, allow the mode
25451 of "op" to be VOIDmode if the predicate does accept such integers.
25453 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
25456 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
25457 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
25458 (aarch64_secondary_reload): Likewise
25459 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
25461 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
25464 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
25465 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25468 * cprop.c (try_replace_reg): Check cost of constants before propagating.
25470 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25472 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
25473 provide access to the IBM extended double floating point mode if
25474 long double is IEEE 128-bit floating point.
25475 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
25476 point if long double is the IBM extended double type.
25478 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
25479 enable adding IEEE 128-bit floating point support.
25480 (-mfloat128-software): Likewise.
25481 (-mfloat128-sw): Likewise.
25483 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
25484 128-bit floating point types to occupy any register if
25485 -mlong-double-64. Do not allow use of IFmode/KFmode unless
25486 -mfloat128-software is enabled.
25487 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
25489 (rs6000_option_override_internal): Add -mfloat128-* support.
25490 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
25492 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
25493 and float128 type nodes.
25494 (ieee128_float_type_node): Likewise.
25495 (ibm128_float_type_node): Likewise.
25497 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25500 * config/aarch64/geniterators.sh: Rewrite in awk.
25502 2015-06-02 Martin Liska <mliska@suse.cz>
25504 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
25505 values to avoid -Wmaybe-uninitialized errors.
25507 2015-06-02 Richard Biener <rguenther@suse.de>
25510 * dwarf2out.c (lookup_context_die): New function.
25511 (resolve_addr): Avoid forcing a full DIE for the
25512 target of a DW_TAG_GNU_call_site during late compilation.
25513 Instead create a stub DIE without a type if we have a
25514 context DIE present.
25516 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
25518 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
25520 2015-06-02 Bin Cheng <bin.cheng@arm.com>
25522 PR tree-optimization/48052
25523 * cfgloop.h (struct control_iv): New.
25524 (struct loop): New field control_ivs.
25525 * tree-ssa-loop-niter.c : Include "stor-layout.h".
25526 (number_of_iterations_lt): Set no_overflow information.
25527 (number_of_iterations_exit): Init control iv in niter struct.
25528 (record_control_iv): New.
25529 (estimate_numbers_of_iterations_loop): Call record_control_iv.
25530 (loop_exits_before_overflow): New. Interface factored out of
25531 scev_probably_wraps_p.
25532 (scev_probably_wraps_p): Factor loop niter related code into
25533 loop_exits_before_overflow.
25534 (free_numbers_of_iterations_estimates_loop): Free control ivs.
25535 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
25537 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
25539 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
25540 the target doesn't belong to the current function.
25542 2015-06-02 Marek Polacek <polacek@redhat.com>
25544 PR middle-end/66345
25545 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
25546 get_maxval_strlen does not produce an INTEGER_CST.
25548 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
25550 * config/arc/constraints.md: Use lower-case names in match_code.
25551 * config/mmix/constraints.md: Likewise.
25553 2015-06-02 Richard Biener <rguenther@suse.de>
25555 PR tree-optimization/65961
25556 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
25557 check and clarify dump message.
25558 (vect_build_slp_tree): If all children are built up from scalars
25559 build up the parent from scalars instead.
25560 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
25562 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
25565 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
25566 instead of print ... .
25568 2015-06-02 Alan Modra <amodra@gmail.com>
25570 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
25573 2015-06-02 Bin Cheng <bin.cheng@arm.com>
25575 PR tree-optimization/52563
25576 PR tree-optimization/62173
25577 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
25578 (alloc_iv, set_iv): New parameter.
25579 (determine_biv_step): Delete.
25580 (find_bivs): Inline original determine_biv_step. Pass new
25581 argument to set_iv.
25582 (idx_find_step): Use no_overflow information for conversion.
25583 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
25584 resolve_mixers handle folded_casts.
25585 (instantiate_scev_name): Change bool parameter to bool pointer.
25586 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
25587 (instantiate_array_ref, instantiate_scev_not): Ditto.
25588 (instantiate_scev_3, instantiate_scev_2): Ditto.
25589 (instantiate_scev_1, instantiate_scev_r): Ditto.
25590 (instantiate_scev_convert, ): Change parameter. Pass argument
25591 to chrec_convert_aggressive.
25592 (instantiate_scev): Change argument.
25593 (resolve_mixers): New parameter and set it.
25594 (scev_const_prop): New argument.
25595 * tree-scalar-evolution.h (resolve_mixers): New parameter.
25596 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
25598 (chrec_convert): New parameter. Move definition below.
25599 (chrec_convert_aggressive): New parameter and set it. Call
25600 convert_affine_scev.
25601 * tree-chrec.h (chrec_convert): New parameter.
25602 (chrec_convert_aggressive): Ditto.
25604 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
25606 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
25607 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
25608 the LHS of a no-return call if its type has variable size.
25609 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
25610 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
25612 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
25614 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
25615 * config.in: Regenerate.
25617 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
25619 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
25620 consecutive accesses within outer-loop with force_vectorize
25621 for references with zero step in inner-loop.
25623 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
25625 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
25626 rather than from gcc/build directory.
25628 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
25631 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
25632 for __sync memory models, emit initial loads and final barriers as
25635 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
25638 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
25639 (aarch64_split_atomic_op): Check for __sync memory models, emit
25640 appropriate initial loads and final barriers.
25642 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
25644 * Makefile.in: Fix gcov dependencies that should
25645 not point to a build folder.
25647 2015-06-01 Richard Biener <rguenther@suse.de>
25650 2015-05-29 Richard Biener <rguenther@suse.de>
25652 PR tree-optimization/66314
25653 * tree-ssa-threadupdate.c (create_block_for_threading): Add
25654 parameter that says which loop the new block belongs to.
25655 (ssa_create_duplicates): Blocks duplicated for the threaded
25656 path belong to the loop of the thread destination.
25658 2015-06-01 Martin Liska <mliska@suse.cz>
25660 * sched-deps.c: Include pool-alloc.h before
25661 cselib.h header file is included.
25663 2015-06-01 Richard Biener <rguenther@suse.de>
25665 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
25668 2015-06-01 Martin Liska <mliska@suse.cz>
25670 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
25671 a function local variable.
25673 2015-06-01 Martin Liska <mliska@suse.cz>
25675 * alloc-pool.c (create_alloc_pool): Remove.
25676 (empty_alloc_pool): Likewise.
25677 (free_alloc_pool): Likewise.
25678 (free_alloc_pool_if_empty): Likewise.
25679 (pool_alloc): Likewise.
25680 (pool_free): Likewise.
25681 * alloc-pool.h: Remove old declarations.
25683 2015-06-01 Martin Liska <mliska@suse.cz>
25685 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
25686 (ira_create_object): Likewise.
25687 (ira_create_allocno): Likewise.
25688 (ira_create_live_range): Likewise.
25689 (copy_live_range): Likewise.
25690 (ira_finish_live_range): Likewise.
25691 (ira_free_allocno_costs): Likewise.
25692 (finish_allocno): Likewise.
25693 (finish_allocnos): Likewise.
25694 (initiate_prefs): Likewise.
25695 (ira_create_pref): Likewise.
25696 (finish_pref): Likewise.
25697 (finish_prefs): Likewise.
25698 (initiate_copies): Likewise.
25699 (ira_create_copy): Likewise.
25700 (finish_copy): Likewise.
25701 (finish_copies): Likewise.
25702 (finish_prefs): Likewise.
25704 2015-06-01 Martin Liska <mliska@suse.cz>
25706 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
25707 (allocate_and_init_ipcp_value): Likewise.
25708 (ipcp_lattice::add_value): Likewise.
25709 (merge_agg_lats_step): Likewise.
25710 (ipcp_driver): Likewise.
25711 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
25712 (ipa_free_all_structures_after_iinln): Likewise.
25713 * ipa-prop.h: Likewise.
25715 2015-06-01 Martin Liska <mliska@suse.cz>
25717 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
25719 (set_hint_predicate): Likewise.
25720 (inline_summary_alloc): Likewise.
25721 (reset_inline_edge_summary): Likewise.
25722 (reset_inline_summary): Likewise.
25723 (set_cond_stmt_execution_predicate): Likewise.
25724 (set_switch_stmt_execution_predicate): Likewise.
25725 (compute_bb_predicates): Likewise.
25726 (estimate_function_body_sizes): Likewise.
25727 (inline_free_summary): Likewise.
25729 2015-06-01 Martin Liska <mliska@suse.cz>
25731 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
25732 (ipa_edge_duplication_hook): Likewise.
25733 (ipa_free_all_structures_after_ipa_cp): Likewise.
25734 (ipa_free_all_structures_after_iinln): Likewise.
25736 2015-06-01 Martin Liska <mliska@suse.cz>
25738 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
25739 (ipa_profile_generate_summary): Likewise.
25740 (ipa_profile_read_summary): Likewise.
25741 (ipa_profile): Likewise.
25743 2015-06-01 Martin Liska <mliska@suse.cz>
25745 * tree-ssa-structalias.c (new_var_info): Use new type-based
25747 (new_constraint): Likewise.
25748 (init_alias_vars): Likewise.
25749 (delete_points_to_sets): Likewise.
25751 2015-06-01 Martin Liska <mliska@suse.cz>
25753 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
25754 (free_strinfo): Likewise.
25755 (pass_strlen::execute): Likewise.
25757 2015-06-01 Martin Liska <mliska@suse.cz>
25759 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
25761 (vn_reference_insert_pieces): Likewise.
25762 (vn_phi_insert): Likewise.
25763 (visit_reference_op_call): Likewise.
25764 (copy_phi): Likewise.
25765 (copy_reference): Likewise.
25766 (process_scc): Likewise.
25767 (allocate_vn_table): Likewise.
25768 (free_vn_table): Likewise.
25770 2015-06-01 Martin Liska <mliska@suse.cz>
25772 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
25774 (add_repeat_to_ops_vec): Likewise.
25775 (get_ops): Likewise.
25776 (maybe_optimize_range_tests): Likewise.
25777 (init_reassoc): Likewise.
25778 (fini_reassoc): Likewise.
25780 2015-06-01 Martin Liska <mliska@suse.cz>
25782 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
25784 (bitmap_set_new): Likewise.
25785 (get_or_alloc_expr_for_constant): Likewise.
25786 (get_or_alloc_expr_for): Likewise.
25787 (phi_translate_1): Likewise.
25788 (compute_avail): Likewise.
25789 (init_pre): Likewise.
25790 (fini_pre): Likewise.
25792 2015-06-01 Martin Liska <mliska@suse.cz>
25794 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
25795 (delete_dep_node): Likewise.
25796 (create_deps_list): Likewise.
25797 (free_deps_list): Likewise.
25798 (sched_deps_init): Likewise.
25799 (sched_deps_finish): Likewise.
25801 2015-06-01 Martin Liska <mliska@suse.cz>
25803 * regcprop.c (free_debug_insn_changes): Use new type-based
25805 (replace_oldest_value_reg): Likewise.
25806 (pass_cprop_hardreg::execute): Likewise.
25808 2015-06-01 Martin Liska <mliska@suse.cz>
25810 * ira-build.c (initiate_cost_vectors): Use new type-based
25812 (ira_allocate_cost_vector): Likewise.
25813 (ira_free_cost_vector): Likewise.
25814 (finish_cost_vectors): Likewise.
25816 2015-06-01 Martin Liska <mliska@suse.cz>
25818 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
25820 (free_sched_pools): Likewise.
25821 * sel-sched-ir.h (_list_alloc): Likewise.
25822 (_list_remove): Likewise.
25824 2015-06-01 Martin Liska <mliska@suse.cz>
25826 * stmt.c (add_case_node): Use new type-based pool allocator.
25827 (expand_case): Likewise.
25828 (expand_sjlj_dispatch_table): Likewise.
25830 2015-06-01 Martin Liska <mliska@suse.cz>
25832 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
25833 (free_bb): Likewise.
25834 (pass_cse_reciprocals::execute): Likewise.
25836 2015-06-01 Martin Liska <mliska@suse.cz>
25838 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
25839 (sra_deinitialize) Likewise.
25840 (create_access_1) Likewise.
25841 (build_accesses_from_assign) Likewise.
25842 (create_artificial_child_access) Likewise.
25844 2015-06-01 Martin Liska <mliska@suse.cz>
25846 * dse.c (get_group_info):Use new type-based pool allocator.
25847 (dse_step0) Likewise.
25848 (free_store_info) Likewise.
25849 (delete_dead_store_insn) Likewise.
25850 (free_read_records) Likewise.
25851 (record_store) Likewise.
25852 (replace_read) Likewise.
25853 (check_mem_read_rtx) Likewise.
25854 (scan_insn) Likewise.
25855 (dse_step1) Likewise.
25856 (dse_step7) Likewise.
25858 2015-06-01 Martin Liska <mliska@suse.cz>
25860 * df-scan.c (struct df_scan_problem_data):Use new type-based
25862 (df_scan_free_internal) Likewise.
25863 (df_scan_alloc) Likewise.
25864 (df_grow_reg_info) Likewise.
25865 (df_free_ref) Likewise.
25866 (df_insn_create_insn_record) Likewise.
25867 (df_mw_hardreg_chain_delete) Likewise.
25868 (df_insn_info_delete) Likewise.
25869 (df_free_collection_rec) Likewise.
25870 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
25871 (df_sort_and_compress_mws) Likewise.
25872 (df_ref_create_structure) Likewise.
25873 (df_ref_record) Likewise.
25875 2015-06-01 Martin Liska <mliska@suse.cz>
25877 * df-problems.c (df_chain_create):Use new type-based pool allocator.
25878 (df_chain_unlink_1) Likewise.
25879 (df_chain_unlink) Likewise.
25880 (df_chain_remove_problem) Likewise.
25881 (df_chain_alloc) Likewise.
25882 (df_chain_free) Likewise.
25883 * df.h (struct dataflow) Likewise.
25885 2015-06-01 Martin Liska <mliska@suse.cz>
25887 * cselib.c (new_elt_list):Use new type-based pool allocator.
25888 (new_elt_loc_list) Likewise.
25889 (unchain_one_elt_list) Likewise.
25890 (unchain_one_elt_loc_list) Likewise.
25891 (unchain_one_value) Likewise.
25892 (new_cselib_val) Likewise.
25893 (cselib_init) Likewise.
25894 (cselib_finish) Likewise.
25896 2015-06-01 Martin Liska <mliska@suse.cz>
25898 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
25899 (sh_reorg) Likewise.
25901 2015-06-01 Martin Liska <mliska@suse.cz>
25903 * cfg.c (initialize_original_copy_tables):Use new type-based
25905 (free_original_copy_tables) Likewise.
25906 (copy_original_table_clear) Likewise.
25907 (copy_original_table_set) Likewise.
25909 2015-06-01 Martin Liska <mliska@suse.cz>
25911 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
25913 (asan_mem_ref_new) Likewise.
25914 (free_mem_ref_resources) Likewise.
25916 2015-06-01 Martin Liska <mliska@suse.cz>
25918 * var-tracking.c (variable_htab_free):Use new type-based
25920 (attrs_list_clear) Likewise.
25921 (attrs_list_insert) Likewise.
25922 (attrs_list_copy) Likewise.
25923 (shared_hash_unshare) Likewise.
25924 (shared_hash_destroy) Likewise.
25925 (unshare_variable) Likewise.
25926 (var_reg_delete_and_set) Likewise.
25927 (var_reg_delete) Likewise.
25928 (var_regno_delete) Likewise.
25929 (drop_overlapping_mem_locs) Likewise.
25930 (variable_union) Likewise.
25931 (insert_into_intersection) Likewise.
25932 (canonicalize_values_star) Likewise.
25933 (variable_merge_over_cur) Likewise.
25934 (dataflow_set_merge) Likewise.
25935 (remove_duplicate_values) Likewise.
25936 (variable_post_merge_new_vals) Likewise.
25937 (dataflow_set_preserve_mem_locs) Likewise.
25938 (dataflow_set_remove_mem_locs) Likewise.
25939 (variable_from_dropped) Likewise.
25940 (variable_was_changed) Likewise.
25941 (set_slot_part) Likewise.
25942 (clobber_slot_part) Likewise.
25943 (delete_slot_part) Likewise.
25944 (loc_exp_insert_dep) Likewise.
25945 (notify_dependents_of_changed_value) Likewise.
25946 (emit_notes_for_differences_1) Likewise.
25947 (vt_emit_notes) Likewise.
25948 (vt_initialize) Likewise.
25949 (vt_finalize) Likewise.
25951 2015-06-01 Martin Liska <mliska@suse.cz>
25953 * ira-color.c (init_update_cost_records):Use new type-based
25955 (get_update_cost_record) Likewise.
25956 (free_update_cost_record_list) Likewise.
25957 (finish_update_cost_records) Likewise.
25958 (initiate_cost_update) Likewise.
25960 2015-06-01 Martin Liska <mliska@suse.cz>
25962 * lra.c (init_insn_regs): Use new type-based pool allocator.
25963 (new_insn_reg) Likewise.
25964 (free_insn_reg) Likewise.
25965 (free_insn_regs) Likewise.
25966 (finish_insn_regs) Likewise.
25967 (init_insn_recog_data) Likewise.
25968 (init_reg_info) Likewise.
25969 (finish_reg_info) Likewise.
25970 (lra_free_copies) Likewise.
25971 (lra_create_copy) Likewise.
25972 (invalidate_insn_data_regno_info) Likewise.
25974 2015-06-01 Martin Liska <mliska@suse.cz>
25976 * lra-lives.c (free_live_range): Use new type-based pool allocator.
25977 (free_live_range_list) Likewise.
25978 (create_live_range) Likewise.
25979 (copy_live_range) Likewise.
25980 (lra_merge_live_ranges) Likewise.
25981 (remove_some_program_points_and_update_live_ranges) Likewise.
25982 (lra_live_ranges_init) Likewise.
25983 (lra_live_ranges_finish) Likewise.
25985 2015-06-01 Martin Liska <mliska@suse.cz>
25987 * et-forest.c (et_new_occ): Use new type-based pool allocator.
25988 (et_new_tree): Likewise.
25989 (et_free_tree): Likewise.
25990 (et_free_tree_force): Likewise.
25991 (et_free_pools): Likewise.
25992 (et_split): Likewise.
25994 2015-06-01 Martin Liska <mliska@suse.cz>
25996 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
25998 * alloc-pool.h (pool_allocator::pool_allocator): New function.
25999 (pool_allocator::release): Likewise.
26000 (inline pool_allocator::release_if_empty): Likewise.
26001 (inline pool_allocator::~pool_allocator): Likewise.
26002 (pool_allocator::allocate): Likewise.
26003 (pool_allocator::remove): Likewise.
26005 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26007 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
26010 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26012 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
26014 * config/arm/arm.c (arm_print_tune_info): Likewise.
26015 (arm_macro_fusion_p): Likewise.
26016 (arm_macro_fusion_pair_p): Likewise.
26018 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26020 * config/aarch64/aarch64-protos.h (tune_params): Rename
26021 fuseable_ops to fusible_ops.
26022 * config/aarch64/aarch64.c (generic_tunings): Rename
26023 fuseable_ops to fusible_ops.
26024 (cortexa53_tunings): Likewise.
26025 (cortexa57_tunings): Likewise.
26026 (thunderx_tunings): Likewise.
26027 (xgene1_tunings): Likewise.
26028 (aarch64_macro_fusion_p): Likewise.
26029 (aarch64_macro_fusion_pair_p): Likewise.
26031 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
26033 * config/s390/driver-native.c: New file.
26034 * config/s390/x-native: New file.
26035 * config.host: Add new files for s390.
26036 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
26038 * config.gcc: Likewise.
26039 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
26040 * config/s390/s390-opts.h (enum processor_type): Ditto.
26041 * config/s390/s390.c (s390_option_override): Catch unhandled
26044 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
26047 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
26048 redirection for instrumented calls.
26049 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
26050 (append_compiler_options): Append -fcheck-pointer-bounds.
26051 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
26052 (chkp_redirect_edge): New.
26053 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
26054 (chkp_redirect_edge): New.
26056 2015-06-01 Richard Biener <rguenther@suse.de>
26058 PR tree-optimization/66280
26059 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
26062 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26064 * config/aarch64/aarch64.md
26065 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
26068 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
26070 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
26071 Remove obsolete kludge.
26073 2015-06-01 Richard Biener <rguenther@suse.de>
26075 * tree-ssa-reassoc.c (get_rank): Simplify.
26077 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
26079 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
26080 * configure: Regenerated.
26082 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
26084 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
26085 issue (add space between string literal and macro).
26086 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
26088 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
26090 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
26091 implict or explicit -fPIE or -fpie.
26093 2015-05-30 Mike Frysinger <vapier@gentoo.org>
26095 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
26097 2015-05-28 DJ Delorie <dj@redhat.com>
26099 * expmed.c (extract_bit_field_1): Avoid clobbering a
26100 yet-to-be-used base/index register.
26102 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
26104 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
26105 (alias_stats): Add num_universal.
26106 (alias_set_subset_of): Special case pointers; be ready for NULL
26108 (alias_sets_conflict_p): Special case pointers; be ready for NULL
26110 (init_alias_set_entry): Break out from ...
26111 (record_alias_subset): ... here; propagate new fields;
26112 allocate children only when really needed.
26113 (get_alias_set): Do less generous pointer globbing.
26114 (dump_alias_stats_in_alias_c): Update statistics.
26116 2015-05-30 Alan Modra <amodra@gmail.com>
26118 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
26119 correct block for use of r12.
26120 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
26122 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26125 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
26128 2015-05-29 Jakub Jelinek <jakub@redhat.com>
26130 PR tree-optimization/66142
26131 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
26132 virtual phis that feed themselves.
26134 2015-05-29 Richard Biener <rguenther@suse.de>
26136 PR tree-optimization/66314
26137 * tree-ssa-threadupdate.c (create_block_for_threading): Add
26138 parameter that says which loop the new block belongs to.
26139 (ssa_create_duplicates): Blocks duplicated for the threaded
26140 path belong to the loop of the thread destination.
26142 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26144 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
26145 to cleanup-saved-temps.
26146 * doc/sourcebuild.texi (Clean up generated test files): Expand
26148 (dg-keep-saved-temps): Document new proc.
26149 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
26150 cleanup-saved-temps): Remove.
26152 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
26154 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
26155 gcc_AC_CHECK_DECLS.
26156 * configure: Regenerate.
26158 2015-05-28 Mike Frysinger <vapier@gentoo.org>
26160 * config/nios2/linux.h (CPP_SPEC): Define.
26162 2015-05-28 Mike Frysinger <vapier@gentoo.org>
26164 * config/microblaze/linux.h (CPP_SPEC): Define.
26166 2015-05-28 Mike Frysinger <vapier@gentoo.org>
26168 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
26169 -pthread is specified.
26171 2015-05-28 Richard Biener <rguenther@suse.de>
26173 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
26174 (vect_fixup_scalar_cycles_with_patterns): Likewise.
26175 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
26176 after pattern recog.
26177 (vect_create_epilog_for_reduction): Properly handle reductions
26179 (vectorizable_reduction): Likewise.
26180 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
26182 (vect_get_constant_vectors): Create the correct number of
26183 initial values for reductions.
26184 (vect_schedule_slp_instance): Handle reduction chains that are
26185 type changing properly.
26186 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
26188 2015-05-28 Richard Biener <rguenther@suse.de>
26190 PR tree-optimization/66142
26191 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
26192 values better in memcpy destination handling. Handle non-aliasing
26195 2015-05-28 Lawrence Velázquez <vq@larryv.me>
26198 * config/darwin-c.c (version_components): New global enum.
26199 (parse_version, version_as_legacy_macro)
26200 (version_as_modern_macro, macosx_version_as_macro): New functions.
26201 (version_as_macro): Remove.
26202 (darwin_cpp_builtins): Use new function.
26204 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
26206 * builtins.c (expand_builtin_acc_on_device): Mark parameters
26207 with ATTRIBUTE_UNUSED.
26209 2015-05-28 Julian Brown <julian@codesourcery.com>
26213 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
26214 sequence for !ACCEL_COMPILER.
26216 2015-05-28 Nick Clifton <nickc@redhat.com>
26218 * config/rx/rx.c (push_regs): New function. Extracts code from...
26219 (rx_expand_prologue): ... here. Use push_regs to push even small
26220 spans of registers.
26221 (pop_regs): New function.
26222 (rx_expand_epilogue): Use pop_regs to pop even small spans of
26225 2015-05-28 Richard Biener <rguenther@suse.de>
26227 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
26229 (SLP_INSTANCE_BODY_COST_VEC): Remove.
26230 (vect_update_slp_costs_according_to_vf): Likewise.
26231 (vect_slp_analyze_operations): Update prototype.
26232 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
26233 vect_update_slp_costs_according_to_vf, adjust.
26234 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
26235 (vect_analyze_slp_cost_1): Likewise.
26236 (vect_analyze_slp_cost): Likewise. Properly deal with
26237 widening reduction ops. Commit body costs.
26238 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
26239 cost for loops from here.
26240 (vect_slp_analyze_operations): But do it from here when
26241 the vectorization factor is known and stmts are analyzed.
26242 (vect_bb_vectorization_profitable_p): Simplify.
26243 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
26244 (vect_update_slp_costs_according_to_vf): Remove.
26246 2015-05-27 Magnus Granberg <zorry@gentoo.org>
26247 H.J. Lu <hongjiu.lu@intel.com>
26249 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
26250 (BUILD_CFLAGS): Likewise.
26251 (BUILD_CXXFLAGS): Likewise.
26252 (LINKER): Add @NO_PIE_FLAG@.
26253 (BUILD_LDFLAGS): Likewise.
26254 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
26255 --enable-default-pie.
26256 * common.opt (fPIE): Initialize to -1.
26258 (no-pie): New option.
26259 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
26260 * configure.ac: Add --enable-default-pie.
26261 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
26262 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
26263 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
26264 * gcc.c (NO_PIE_SPEC): New.
26265 (PIE_SPEC): Likewise.
26266 (NO_FPIE1_SPEC): Likewise.
26267 (FPIE1_SPEC): Likewise.
26268 (NO_FPIE2_SPEC): Likewise.
26269 (FPIE2_SPEC): Likewise.
26270 (NO_FPIE2_SPEC): Likewise.
26271 (FPIE_SPEC): Likewise.
26272 (NO_FPIE_SPEC): Likewise.
26273 (NO_FPIC1_SPEC): Likewise.
26274 (FPIC1_SPEC): Likewise.
26275 (NO_FPIC2_SPEC): Likewise.
26276 (FPIC2_SPEC): Likewise.
26277 (NO_FPIC2_SPEC): Likewise.
26278 (FPIC_SPEC): Likewise.
26279 (NO_FPIC_SPEC): Likewise.
26280 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
26281 (FPIE1_OR_FPIC1_SPEC): Likewise.
26282 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
26283 (FPIE2_OR_FPIC2_SPEC): Likewise.
26284 (NO_FPIE_AND_FPIC_SPEC): Likewise.
26285 (FPIE_OR_FPIC_SPEC): Likewise.
26286 (LD_PIE_SPEC): Likewise.
26287 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
26288 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
26289 * config/darwin.h (PIE_SPEC): Renamed to ...
26290 (DARWIN_PIE_SPEC): This.
26291 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
26292 * config/darwin9.h (PIE_SPEC): Renamed to ...
26293 (DARWIN_PIE_SPEC): This.
26294 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
26295 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
26296 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
26297 FPIE2_OR_FPIC2_SPEC.
26298 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
26299 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
26300 * config/sol2.h (ASM_PIC_SPEC): Likewise.
26301 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26302 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26303 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26304 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
26305 * config/m32r/m32r.h (ASM_SPEC): Likewise.
26306 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
26307 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
26308 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
26309 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
26310 * config/sparc/linux.h (ASM_SPEC): Likewise.
26311 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26312 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
26313 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
26314 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26315 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
26316 * config/sparc/sparc.h (ASM_SPEC): Likewise.
26317 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
26318 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
26319 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
26320 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
26321 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
26322 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
26323 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
26324 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
26325 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
26326 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
26327 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
26328 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
26329 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26330 * config/vax/linux.h (ASM_SPEC): Likewise.
26331 * doc/install.texi: Document --enable-default-pie.
26332 * doc/invoke.texi: Document -no-pie.
26333 * config.in: Regenerated.
26334 * configure: Likewise.
26336 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
26338 PR rtl-optimization/66168
26339 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
26340 can_move_invariant_reg.
26342 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
26345 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
26346 REG_EQUAL note when doing insert.
26348 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
26349 instead of "%d" for 'o' operand.
26351 2015-05-27 Nathan Sidwell <nathan@acm.org>
26354 * tree.c (build_pointer_type_for_mode): Canonical type does not
26355 inherit can_alias_all.
26356 (build_reference_type_for_mode): Likewise.
26358 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
26360 * expr.h (array_at_struct_end_p): Move to...
26361 (array_ref_element_size): Likewise.
26362 (component_ref_field_offset): Likewise.
26363 * tree.h (array_ref_element_size): ...here.
26364 (array_at_struct_end_p): Likewise.
26365 (component_ref_field_offset): Likewise.
26366 * expr.c (array_ref_element_size): Move to...
26367 (array_ref_low_bound): Likewise.
26368 (array_at_struct_end_p): Likewise.
26369 (array_ref_up_bound): Likewise.
26370 (component_ref_field_offset): Likewise.
26371 * tree.c (array_ref_element_size): ...here.
26372 (array_ref_low_bound): Likewise.
26373 (array_ref_up_bound): Likewise.
26374 (array_at_struct_end_p): Likewise.
26375 (component_ref_field_offset): Likewise.
26377 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
26378 Szabolcs Nagy <szabolcs.nagy@arm.com>
26380 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
26382 2015-05-27 Jason Merrill <jason@redhat.com>
26385 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
26386 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
26387 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
26389 2015-05-22 Aditya Kumar <hiraditya@msn.com>
26391 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
26394 * statistics.c (statistics_fini_pass): Print pass name.
26396 2015-05-27 Richard Biener <rguenther@suse.de>
26398 PR tree-optimization/66272
26400 2014-08-15 Richard Biener <rguenther@suse.de>
26402 PR tree-optimization/62031
26403 * tree-data-ref.c (dr_analyze_indices): Do not set
26404 DR_UNCONSTRAINED_BASE.
26405 (dr_may_alias_p): All indirect accesses have to go the
26406 formerly DR_UNCONSTRAINED_BASE path.
26407 * tree-data-ref.h (struct indices): Remove
26408 unconstrained_base member.
26409 (DR_UNCONSTRAINED_BASE): Remove.
26411 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
26413 * dwarf2out.c: Remove block_map.
26414 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
26415 (gen_lexical_block_die): Same.
26416 (dwarf2out_function_decl): Remove block_map use.
26417 (dwarf2out_c_finalize): Same.
26418 * tree-core.h (struct tree_block): Add die field.
26419 * tree.h (BLOCK_DIE): New.
26421 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26424 * expr.c (memory_load_overlap): New function.
26425 (emit_push_insn): When pushing partial args to the stack would
26426 clobber the register part load the overlapping part into a pseudo
26427 and put it into the hard reg after pushing. Change return type
26428 to bool. Add bool argument.
26429 * expr.h (emit_push_insn): Change return type to bool.
26431 * calls.c (expand_call): Cancel sibcall optimization when encountering
26432 partial argument on targets with ARGS_GROW_DOWNWARD and
26433 !STACK_GROWS_DOWNWARD.
26434 (emit_library_call_value_1): Update callsite of emit_push_insn.
26435 (store_one_arg): Likewise.
26437 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
26439 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
26441 2015-05-27 Martin Liska <mliska@suse.cz>
26443 * Makefile.in: Add additional dependencies related to memory report
26445 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
26446 * bitmap.c (struct bitmap_descriptor_d): Remove.
26447 (struct loc): Likewise.
26448 (struct bitmap_desc_hasher): Likewise.
26449 (bitmap_desc_hasher::hash): Likewise.
26450 (bitmap_desc_hasher::equal): Likewise.
26451 (get_bitmap_descriptor): Likewise.
26452 (bitmap_register): User new memory descriptor API.
26453 (register_overhead): Likewise.
26454 (bitmap_find_bit): Register nsearches and search_iter statistics.
26455 (struct bitmap_output_info): Remove.
26456 (print_statistics): Likewise.
26457 (dump_bitmap_statistics): Use new memory descriptor.
26458 * bitmap.h (struct bitmap_usage): New class.
26459 * genmatch.c: Extend header file inclusion.
26460 * genpreds.c: Likewise.
26461 * ggc-common.c (struct ggc_usage): New class.
26462 (struct ggc_loc_desc_hasher): Remove.
26463 (ggc_loc_desc_hasher::hash): Likewise.
26464 (ggc_loc_desc_hasher::equal): Likewise.
26465 (struct ggc_ptr_hash_entry): Likewise.
26466 (struct ptr_hash_hasher): Likewise.
26467 (ptr_hash_hasher::hash): Likewise.
26468 (ptr_hash_hasher::equal): Likewise.
26469 (make_loc_descriptor): Likewise.
26470 (ggc_prune_ptr): Likewise.
26471 (dump_ggc_loc_statistics): Use new memory descriptor.
26472 (ggc_record_overhead): Likewise.
26473 (ggc_free_overhead): Likewise.
26474 (final_cmp_statistic): Remove.
26475 (cmp_statistic): Likewise.
26476 (ggc_add_statistics): Liekwise.
26477 (ggc_prune_overhead_list): Likewise.
26478 * hash-map-traits.h: New file.
26479 * hash-map.h (struct default_hashmap_traits): Move the traits to a
26480 separate header file.
26481 * hash-set.h: Pass memory statistics info to ctor.
26482 * hash-table.c (void dump_hash_table_loc_statistics): New function.
26483 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
26484 (hash_table::~hash_table): Register memory release operation.
26485 (hash_table::alloc_entries): Handle memory allocation operation.
26486 (hash_table::expand): Likewise.
26487 * inchash.c (iterative_hash_hashval_t): Move implementation to header
26489 (iterative_hash_host_wide_int): Likewise.
26490 * inchash.h (class hash): Likewise.
26491 * mem-stats-traits.h: New file.
26492 * mem-stats.h: New file.
26493 (mem_location): Add new class.
26494 (mem_usage): Likewise.
26495 (mem_alloc_description): Likewise.
26496 * sese.c: Add new header file inclusision.
26497 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
26499 * tree-sra.c: Add new header file inclusision.
26500 * vec.c (struct vec_descriptor): Remove.
26501 (hash_descriptor): Likewise.
26502 (struct vec_usage): Likewise.
26503 (struct ptr_hash_entry): Likewise.
26504 (hash_ptr): Likewise.
26505 (eq_ptr): Likewise.
26506 (vec_prefix::register_overhead): Use new memory descriptor API.
26507 (vec_prefix::release_overhead): Likewise.
26508 (add_statistics): Remove.
26509 (dump_vec_loc_statistics): Use new memory descriptor API.
26510 * vec.h (struct vec_prefix): Likewise.
26511 (va_heap::reserve): Likewise.
26512 (va_heap::release): Likewise.
26513 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
26515 2015-05-27 Richard Biener <rguenther@suse.de>
26517 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
26518 earlier and remove ??? comment.
26519 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
26520 and got called from loop analysis bail out. Always pass the SLP
26521 node to the vectorizable_* functions.
26522 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
26523 the premature SLP check here.
26524 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
26525 detected SLP stmts.
26526 (vect_detect_hybrid_slp_1): Likewise.
26528 2015-05-26 Jeff Law <law@redhat.com>
26530 * combine.c (find_split_point): Verify that the shift count is a
26531 constant when choosing (plus (ashift ...)) as a split point.
26533 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
26534 No functional changes.
26536 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
26538 * ipa-polymorphic-call.c
26539 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
26540 case when call target is already known.
26542 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
26545 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
26546 take into account the case that operands[1] and operands[2]
26547 are the same register.
26549 2015-05-26 Michael Matz <matz@suse.de>
26551 PR middle-end/66251
26553 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
26555 (vect_create_vectorized_demotion_stmts): Always set
26556 STMT_VINFO_VEC_STMT, also with SLP.
26557 (vectorizable_store): Handle strided group stores.
26559 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26562 * config/aarch64/aarch64.md
26563 (*adds_shift_imm_<mode>): New pattern.
26564 (*subs_shift_imm_<mode>): Likewise.
26565 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
26566 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
26567 (*add_uxt<mode>_shift2): Likewise.
26568 (*add_uxtsi_shift2_uxtw): Likewise.
26569 (*sub_uxt<mode>_shift2): Likewise.
26570 (*sub_uxtsi_shift2_uxtw): Likewise.
26572 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
26574 * config/rs6000/constraints.md (Y, U): Use match_test.
26576 2015-05-26 Christian Bruel <christian.bruel@st.com>
26579 * config/arm/arm.c (arm_option_check_internal)
26580 (arm_option_params_internal): Check opts->target_flags to set macros.
26581 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
26582 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
26583 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
26584 (builtin_define): Replaced with def_or_undef_macro.
26585 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
26586 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
26587 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
26588 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
26589 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
26590 (TARGET_ARM_FEATURE_LDREX_P)
26591 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
26592 * config/arm/arm-c.c (def_or_undef_macro): New function.
26593 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
26595 2015-05-26 Christian Bruel <christian.bruel@st.com>
26597 * c-common.h (builtin_define_with_int_value)
26598 (builtin_define_type_sizeof): Declare.
26599 * c-cppbuiltin.c (builtin_define_with_int_value)
26600 (builtin_define_type_sizeof): Externalize.
26601 (builtin_define_std): Cleanup declaration.
26602 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
26603 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
26604 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
26605 (builtin_define, builtin_assert): New macros.
26607 2015-05-26 Richard Biener <rguenther@suse.de>
26609 PR tree-optimization/66142
26610 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
26611 MEM_REFs for the same base address.
26613 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26616 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
26618 2015-05-26 Jason Merrill <jason@redhat.com>
26620 * configure.ac: Set CXXFLAGS for ISL test.
26621 * configure: Regenerate.
26623 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
26624 strstr and basename.
26625 * configure: Regenerate.
26627 2015-05-26 Richard Biener <rguenther@suse.de>
26629 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
26630 X % C -> X & (C - 1) for C being a power-of two to ...
26631 * match.pd: ... patterns.
26633 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
26635 * match.pd (swapped_tcc_comparison): New operator list.
26636 (-A CMP -B): New simplification.
26637 * fold-const.c (fold_comparison): Remove corresponding code.
26639 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
26641 * caller-save.c (init_caller_save): Base temporary register numbers
26642 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
26643 * cfgloopanal.c (init_set_costs): Likewise.
26644 * dojump.c (prefer_and_bit_test): Likewise.
26645 * expr.c (init_expr_target): Likewise.
26646 * ira.c (setup_prohibited_mode_move_regs): Likewise.
26647 * lower-subreg.c (init_lower_subreg): Likewise.
26648 * postreload.c (reload_cse_regs_1): Likewise.
26650 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
26652 * gensupport.h (compute_test_codes): Declare.
26653 * gensupport.c (compute_predicate_codes): Rename to...
26654 (compute_test_codes): ...this. Generalize error message.
26655 (process_define_predicate): Update accordingly.
26656 * genpreds.c (compute_maybe_allows): Delete.
26657 (add_constraint): Use compute_test_codes to determine whether
26658 something can accept a SUBREG, REG or MEM.
26660 2015-05-26 Torvald Riegel <triegel@redhat.com>
26662 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
26663 'memory model' to align with C++11; fix description of memory orders;
26666 2015-05-26 Richard Biener <rguenther@suse.de>
26668 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
26669 (vect_analyze_loop_operations): ... here. Remove slp parameter,
26670 detect whether we apply SLP. Remove call to
26671 vect_update_slp_costs_according_to_vf.
26672 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
26673 vect_update_slp_costs_according_to_vf from here. Dispatch
26674 to vect_slp_analyze_operations to analyze SLP stmts.
26675 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
26676 unused bb_vec_info parameter, adjust assert.
26677 (vect_slp_analyze_operations): Pass in the slp instance tree
26678 instead of bb_vec_info.
26679 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
26680 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
26682 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
26684 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
26685 Q_REGS. Expand comment.
26686 (REG_CLASS_NAMES): Ditto.
26687 (REG_CLASS_CONTENTS): Ditto.
26689 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
26692 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
26693 when LEGACY_INT_REGNO_P is processed.
26695 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
26697 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
26699 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26701 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
26702 register if not marked dead/unused, before return.
26704 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
26707 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
26708 is set; check for assembler name at LTO time.
26709 (type_in_anonymous_namespace): Remove hacks, check that all
26710 anonymous types are called "<anon>"
26711 (odr_type_p): Simplify; add check for "<anon>"
26712 (odr_subtypes_equivalent): Add odr_type_p check.
26713 * tree.c (need_assembler_name_p): Even anonymous namespace needs
26716 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
26718 * ipa-utils.h (method_class_type): Remove.
26719 * cgraphunit.c (walk_polymorphic_call_targets): Use
26720 TYPE_METHOD_BASETYPE.
26721 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
26722 on main variants only.
26723 (method_class_type): Remove.
26724 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
26725 (build_type_inheritance_graph): Likewise.
26726 * ipa-icf.c (sem_function::equals_wpa): Likewise.
26727 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
26728 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
26730 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
26732 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
26733 is_typedef_decl, typedef_variant_p): Constify.
26734 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
26735 is_typedef_decl, typedef_variant_p): Constify.
26737 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26739 * defaults.h (gen_tablejump): New function.
26740 (HAVE_tablejump): Add default value.
26742 * stmt.c: Likewise.
26744 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26746 * defaults.h (gen_store_multiple): New function.
26747 (HAVE_store_multiple): Add default value.
26748 * expr.c (move_block_from_reg): Adjust.
26750 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26752 * defaults.h (gen_load_multiple): New function.
26753 (HAVE_load_multiple): Add default value.
26754 * expr.c (move_block_to_reg): Adjust.
26756 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26758 * defaults.h (gen_mem_signal_fence): New function.
26759 (HAVE_mem_signal_fence): Add default value.
26760 * optabs.c: Adjust.
26762 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26764 * defaults.h (gen_memory_barrier): New function.
26765 (HAVE_memory_barrier): Add default value.
26766 * optabs.c: Adjust.
26768 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26770 * defaults.h (gen_mem_thread_fence): New function.
26771 (HAVE_mem_thread_fence): Add default definition.
26772 * optabs.c: Adjust.
26774 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26776 * combine.c (find_split_point): Check the value of HAVE_lo_sum
26777 instead of if it is defined.
26778 (combine_simplify_rtx): Likewise.
26779 * lra-constraints.c (process_address_1): Likewise.
26780 * config/darwin.c: Adjust.
26781 * genconfig.c (main): Always define HAVE_lo_sum.
26783 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26785 * genmatch.c (parser::parse_operation): Reject expanding
26786 operator-list inside 'for'.
26788 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26790 * genmatch.c (parser::parse_for): Reject iterator if used as
26793 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26795 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
26796 after end of id-list.
26798 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
26800 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
26801 we do not try to compute canonical type for type that does not need
26803 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
26805 * tree.h (type_with_alias_set_p): New.
26807 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
26809 * tree.c (gimple_canonical_types_compatible_p): Do not compare
26810 function attributes.
26811 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
26813 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
26815 * Makefile.in (check_gcc_parallelize): Delete.
26816 (lang_checks_parallelized): Update comment.
26818 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
26820 PR rtl-optimization/66237
26821 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
26822 location of an "as_a" cast.
26824 2015-05-22 Jeff Law <law@redhat.com>
26826 * config/pa/pa.md (non-canonical shift-add insns): Remove.
26827 (peepholes with non-canonical RTL sources): Remove.
26828 (peepholes for indexed stores of FP regs in integer modes): Match and
26829 generate canonical RTL.
26831 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
26833 PR tree-optimization/63387
26834 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
26835 ((x ord x) & (y ord y) -> (x ord y),
26836 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
26837 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
26838 vectors like scalars.
26840 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
26842 * convert.c (convert_to_integer, convert_to_vector): Include the
26843 types in the error message.
26845 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
26847 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
26850 2015-05-22 Jeff Law <law@redhat.com>
26852 * config/pa/pa.md (integer_indexed_store splitters): Use
26853 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
26854 insns -- adjusting the constant 2nd operand accordingly.
26856 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
26857 (plus (ashift X log2) Y) if it is a split point.
26859 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
26860 out of hppa_legitimize_address to handle both forms of a multiply
26862 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
26863 Always generate the ASHIFT variant as the result is not directly
26864 used in a MEM. Update comments and refactor slightly to improve
26867 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26870 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
26871 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
26872 (aarch64_composite_type_p): Return false if given type and mode are
26873 for a short vector.
26875 2015-05-22 Richard Biener <rguenther@suse.de>
26877 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
26879 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
26880 patterns when determining whether SLP is pure.
26881 (vect_is_slp_reduction): Remove check for pattern stmts.
26882 (vect_is_simple_reduction_1): Remove dead code.
26883 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
26884 (vect_get_and_check_slp_defs): Pass in the stmt number.
26885 Allow the first def in a reduction to be not a pattern stmt when
26886 the rest of the stmts def are patterns.
26887 (vect_build_slp_tree_1): Allow tcc_expression codes like
26888 SAD_EXPR and DOT_PROD_EXPR.
26889 (vect_build_slp_tree): Adjust.
26890 (vect_analyze_slp): Refactor and move BB vect error message ...
26891 (vect_slp_analyze_bb_1): ... here.
26893 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
26895 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
26896 for CSWTCH temporary.
26898 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26900 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
26901 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
26904 2015-05-22 Richard Biener <rguenther@suse.de>
26906 PR tree-optimization/66251
26907 * tree-vect-stmts.c (vectorizable_conversion): Properly
26908 set STMT_VINFO_VEC_STMT even for the SLP case.
26910 2015-05-22 Marek Polacek <polacek@redhat.com>
26912 * doc/extend.texi: Use @pxref instead of @xref.
26914 2015-05-22 hiraditya <hiraditya@msn.com>
26916 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
26919 2015-05-22 Richard Biener <rguenther@suse.de>
26921 PR tree-optimization/65701
26922 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26923 Move peeling cost models into one place. Peel for alignment
26924 for single loads only if an aligned load is cheaper than
26927 2015-05-22 Marek Polacek <polacek@redhat.com>
26930 * doc/extend.texi (Enumerator Attributes): New section.
26931 Document syntax of enumerator attributes.
26933 2015-05-22 Richard Biener <rguenther@suse.de>
26935 * tree-vect-loop.c (get_reduction_op): New function.
26936 (vect_model_reduction_cost): Use it, add reduc_index parameter.
26937 Make ready for BB reductions.
26938 (vect_create_epilog_for_reduction): Use get_reduction_op.
26939 (vectorizable_reduction): Init reduc_index to a valid value.
26940 Adjust vect_model_reduction_cost call.
26941 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
26942 operand for reduction defaults. Add SAD_EXPR support.
26943 Assert we have a neutral op for SLP reductions.
26944 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
26945 walking pattern stmt ops only recurse to SSA names.
26947 2015-05-22 Richard Biener <rguenther@suse.de>
26949 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
26950 assert with guard, remove check on detected reduction.
26951 (vect_recog_sad_pattern): Likewise.
26952 (vect_recog_widen_sum_pattern): Likewise.
26954 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26956 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
26957 __always_inline__ attribute.
26958 (vaesdq_u8): Likewise.
26959 (vaesmcq_u8): Likewise.
26960 (vaesimcq_u8): Likewise.
26961 (vsha1cq_u32): Likewise.
26962 (vsha1mq_u32): Likewise.
26963 (vsha1pq_u32): Likewise.
26964 (vsha1h_u32): Likewise.
26965 (vsha1su0q_u32): Likewise.
26966 (vsha1su1q_u32): Likewise.
26967 (vsha256hq_u32): Likewise.
26968 (vsha256h2q_u32): Likewise.
26969 (vsha256su0q_u32): Likewise.
26970 (vsha256su1q_u32): Likewise.
26971 (vmull_p64): Likewise.
26972 (vmull_high_p64): Likewise.
26974 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26976 * final.c (final_scan_insn): Don't check HAVE_peephole with the
26978 * output.h: Likewise.
26979 * genconfig.c (main): Alwways define HAVE_peephole.
26980 * genpeep.c: Don't emit checks of HAVE_peephole.
26982 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26984 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
26985 check HAVE_conditional_move with the preprocessor.
26987 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26989 * genconfig.c (main): Always define HAVE_conditional_move.
26990 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
26991 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
26994 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26996 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
26997 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
26998 and FRAME_POINTER_REGNUM with the preprocessor.
27000 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27002 * defaults.h: Add default for STACK_PUSH_CODE.
27003 * expr.c: Don't redefine STACK_PUSH_CODE.
27004 * recog.c: Likewise.
27006 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27008 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
27009 sched-deps.c: Use if instead of preprocessor checks with
27010 STACK_GROWS_DOWNWARD.
27012 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27014 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
27016 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
27017 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
27018 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
27019 * doc/tm.texi: Regenerate.
27021 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
27024 * config/i386/constraints.md (Bg): New constraint for GOT memory
27026 * config/i386/i386.md (*call_got_x32): New pattern.
27027 (*call_value_got_x32): Likewise.
27028 * config/i386/predicates.md (GOT_memory_operand): New predicate.
27030 2015-05-21 Jakub Jelinek <jakub@redhat.com>
27032 PR tree-optimization/66233
27033 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
27036 2015-05-21 Jeff Law <law@redhat.com>
27038 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
27039 than MULT for shadd sequences.
27041 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
27043 * alias.c (alias_stats): New static var.
27044 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
27045 (dump_alias_stats_in_alias_c): New function.
27046 * alias.h (dump_alias_stats_in_alias_c): Declare.
27047 * tree-ssa-alias.c (dump_alias_stats): Call it.
27049 2015-05-08 Michael Matz <matz@suse.de>
27051 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
27053 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
27054 (STMT_VINFO_STRIDED_P): ... this.
27055 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
27056 (vect_verify_datarefs_alignment): Likewise.
27057 (vect_enhance_data_refs_alignment): Likewise.
27058 (vect_analyze_data_ref_access): Likewise.
27059 (vect_analyze_data_refs): Accept strided stores.
27060 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
27061 (vect_model_load_cost): Adjust for macro rename.
27062 (vectorizable_mask_load_store): Likewise.
27063 (vectorizable_load): Likewise.
27064 (vectorizable_store): Open code strided stores.
27066 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27068 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
27069 Document sqrt_insn.
27071 2015-05-21 Richard Biener <rguenther@suse.de>
27074 * match.pd: Guard pattern optimzing (int)(float)int
27075 conversions to apply only on GIMPLE.
27077 2015-05-21 Jeff Law <law@redhat.com>
27079 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
27080 multiply-accumulate/shift-add insn generation.
27082 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
27085 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
27086 operands[1] are the same.
27088 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
27090 PR middle-end/66221
27091 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
27092 build_distinct_type_copy to copy bounds.
27094 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
27096 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
27097 Change to unsigned int.
27099 2015-05-20 Jeff Law <law@redhat.com>
27101 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
27102 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
27103 (pa_shadd_constant_p): Allow constants for shadd insns rather
27104 than valid scaling constants for memory addresses.
27105 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
27106 * config/pa/predicates.md (mem_shadd_operand): New predicate.
27107 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
27108 (shift-add insns using ASHIFT): New patterns.
27110 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
27112 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
27114 (fix_up_fall_thru_edges): Likewise.
27115 (fix_crossing_conditional_branches): Likewise. Promote jump targets
27116 from to rtx_insn to rtx_code_label where feasible.
27117 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
27118 gen_move_insn (returned type changed to rtx_insn).
27119 * builtins.c (expand_errno_check): Fix arguments of
27120 do_compare_rtx_and_jump (now expects rtx_code_label).
27121 (expand_builtin_acc_on_device): Likewise.
27122 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
27123 invert_jump (now exprects rtx_jump_insn).
27124 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
27125 (construct_init_block): Use rtx_code_label.
27126 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
27127 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
27128 calling redirect_jump.
27129 (patch_jump_insn): Likewise.
27130 (redirect_branch_edge): Likewise.
27131 (force_nonfallthru_and_redirect): Likewise.
27132 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
27134 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
27135 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
27136 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
27137 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
27138 to store the value retured by gen_label_rtx.
27139 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
27141 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
27142 (split_branches): Fix calls of redirect_jump.
27143 * dojump.c (jumpifnot): Promote argument type from rtx to
27145 (jumpifnot_1): Likewise.
27146 (jumpif): Likewise.
27147 (jumpif_1): Likewise.
27148 (do_jump_1): Likewise.
27149 (do_jump): Likewise. Use rtx_code_label when feasible.
27150 (do_jump_by_parts_greater_rtx): Likewise.
27151 (do_jump_by_parts_zero_rtx): Likewise.
27152 (do_jump_by_parts_equality_rtx): Likewise.
27153 (do_compare_rtx_and_jump): Likewise.
27154 * dojump.h: Update function prototypes.
27155 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
27157 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
27159 (emit_label_before): Likewise.
27160 (emit_jump_insn_after_noloc): Likewise.
27161 (emit_jump_insn_after_setloc): Likewise.
27162 (emit_jump_insn_after): Likewise
27163 (emit_jump_insn_before_setloc): Likewise.
27164 (emit_jump_insn_before): Likewise.
27165 (emit_label_before): Promote return type to rtx_code_label.
27166 (emit_label): Likewise.
27167 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
27168 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
27170 (emit_stack_restore): Likewise.
27171 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
27172 (do_cmp_and_jump): Likewise.
27173 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
27174 from rtx to rtx_code_label.
27175 (gen_move_insn_uncast): New function.
27176 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
27177 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
27178 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
27179 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
27180 invert_jump_1 and redirect_jump_1.
27181 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
27182 do_compare_rtx_and_jump.
27183 (expand_addsub_overflow): Likewise.
27184 (expand_neg_overflow): Likewise.
27185 (expand_mul_overflow): Likewise.
27186 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
27187 return value of gen_move_insn.
27188 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
27189 * loop-doloop.c (add_test): Use rtx_code_label.
27190 (doloop_modify): Likewise.
27191 (doloop_optimize): Likewise.
27192 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
27193 * lra-constraints.c (emit_spill_move): Remove cast of value returned
27195 (inherit_reload_reg): Add cast when calling dump_insn_slim.
27196 (split_reg): Likewise.
27197 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
27199 * optabs.c (expand_binop_directly): Remove casts of values returned by
27201 (expand_unop_direct): Likewise.
27202 (expand_abs): Likewise.
27203 (maybe_emit_unop_insn): Likewise.
27204 (maybe_gen_insn): Promote return type to rtx_insn.
27205 * optabs.h: Update prototype of maybe_gen_insn.
27206 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
27208 * recog.c (struct peep2_insn_data): Promote type of insn field to
27210 (peep2_reinit_state): Use NULL instead of NULL_RTX.
27211 (peep2_attempt): Remove casts of insn in peep2_insn_data.
27212 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
27213 * recog.h (struct insn_gen_fn): Promote return types of function
27214 pointers and operator ().from rtx to rtx_insn.
27215 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
27216 (fill_eager_delay_slots): Likewise.
27217 (relax_delay_slots): Likewise.
27218 (make_return_insns): Likewise.
27219 (dbr_schedule): Likewise.
27220 (optimize_skips): Likewise.
27221 (reorg_redirect_jump): Likewise.
27222 (fill_slots_from_thread): Likewise.
27223 * reorg.h: Update prototypes.
27224 * resource.c (find_dead_or_set_registers): Use dyn_cast to
27225 rtx_jump_insn instead of check. Use it's jump_target method.
27226 * rtl.h (rtx_jump_insn::jump_label): Define new method.
27227 (rtx_jump_insn::jump_target): Define new method.
27228 (rtx_jump_insn::set_jump_target): Define new method.
27229 * rtlanal.c (tablejump_p): Promote type of one local variable.
27230 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
27231 (sched_analyze_insn): Likewise.
27232 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
27233 (print_insn): Likewise.
27234 * stmt.c (label_rtx): Promote return type to rtx_insn.
27235 (force_label_rtx): Likewise.
27236 (jump_target_rtx): Define new function.
27237 (expand_label): Use it, get rid of one cast.
27238 (expand_naked_return): Promote rtx to rtx_code_label.
27239 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
27240 (expand_case): Use rtx_code_label instread of rtx where feasible.
27241 (expand_sjlj_dispatch_table): Likewise.
27242 (emit_case_nodes): Likewise.
27243 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
27244 * store-motion.c (insert_store): Make use of new return type of
27245 gen_move_insn and remove a cast.
27246 (replace_store_insn): Likewise.
27248 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
27250 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
27251 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
27253 2015-05-20 Jeff Law <law@redhat.com>
27255 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
27256 dispose of the jump thread path when the jump threading
27257 opportunity is cancelled.
27259 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27261 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
27262 when printing the caret character.
27264 2015-05-20 Marek Polacek <polacek@redhat.com>
27266 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
27268 2015-05-20 Marek Polacek <polacek@redhat.com>
27270 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
27271 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
27272 * gimple-fold.c (canonicalize_bool): Likewise.
27273 (same_bool_result_p): Likewise.
27274 * tree-if-conv.c (parse_predicate): Likewise.
27276 2015-05-20 Marek Polacek <polacek@redhat.com>
27278 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
27279 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
27281 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27283 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
27284 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
27287 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
27289 * config/mips/mips.h (micromips_globals): Declare.
27291 2015-05-20 David Malcolm <dmalcolm@redhat.com>
27293 * timevar.def (TV_INITIALIZE_RTL): New.
27294 * toplev.c (initialize_rtl): Use an auto_timevar to account this
27295 function's time to TV_INITIALIZE_RTL.
27297 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
27299 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
27300 gimple_build_nop calls.
27301 (chkp_find_bounds_for_elem): Likewise.
27302 (chkp_get_zero_bounds): Likewise.
27303 (chkp_get_none_bounds): Likewise.
27304 (chkp_get_bounds_by_definition): Likewise.
27305 (chkp_generate_extern_var_bounds): Likewise.
27306 (chkp_get_bounds_for_decl_addr): Likewise.
27307 (chkp_get_bounds_for_string_cst): Likewise.
27309 2015-05-20 Bin Cheng <bin.cheng@arm.com>
27311 PR tree-optimization/65447
27312 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
27313 (dump_use, dump_uses): Support to dump sub use.
27314 (record_use): New parameters to support sub use. Remove call to
27316 (record_sub_use, record_group_use): New functions.
27317 (compute_max_addr_offset, split_all_small_groups): New functions.
27318 (group_address_uses, rewrite_use_address): New functions.
27319 (strip_offset): New declaration.
27320 (find_interesting_uses_address): Call record_group_use.
27321 (add_candidate): New assertion.
27322 (infinite_cost_p): Move definition forward.
27323 (add_costs): Check INFTY cost and return immediately.
27324 (get_computation_cost_at): Clear setup cost and dependent bitmap
27326 (determine_use_iv_cost_address): Compute cost for sub uses.
27327 (rewrite_use_address_1): Rename from old rewrite_use_address.
27328 (free_loop_data): Free sub uses.
27329 (tree_ssa_iv_optimize_loop): Call group_address_uses.
27331 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
27332 Jim Wilson <jim.wilson@linaro.org>
27334 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
27335 new fields loadv and storev.
27336 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
27337 Initialize loadv and storev.
27338 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
27339 (cortexa53_extra_costs): Likewise.
27340 (cortexa57_extra_costs): Likewise.
27341 (xgene1_extra_costs): Likewise.
27342 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
27345 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
27347 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
27349 (cortexa8_extra_costs): Likewise.
27350 (cortexa5_extra_costs): Likewise.
27351 (cortexa7_extra_costs): Likewise.
27352 (cortexa12_extra_costs): Likewise.
27353 (cortexa15_extra_costs): Likewise.
27354 (v7m_extra_costs): Likewise.
27356 2015-05-20 Jeff Law <law@redhat.com>
27358 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
27359 instead of open-coded version. Also delete the jump thread created
27360 within this function.
27362 2015-05-20 Alan Modra <amodra@gmail.com>
27364 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
27365 stack adjusting insn. Formatting.
27366 (rs6000_emit_prologue): Track stack adjusting insn, and use of
27367 r12. If possible, emit first -fsplit-stack arg pointer insn
27368 before stack adjust. Don't use r12 to save cr if split-stack.
27370 2015-05-20 Alan Modra <amodra@gmail.com>
27372 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
27374 (rs6000_supports_split_stack): New function.
27375 * config/rs6000/rs6000.c (machine_function): Add
27376 split_stack_arg_pointer.
27377 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
27378 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
27379 rather than virtual_incoming_args_rtx.
27380 (rs6000_va_start): Likewise.
27381 (split_stack_arg_pointer_used_p): New function.
27382 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
27383 (morestack_ref): New var.
27384 (gen_add3_const, rs6000_expand_split_stack_prologue,
27385 rs6000_internal_arg_pointer, rs6000_live_on_entry,
27386 rs6000_split_stack_space_check): New functions.
27387 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
27388 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
27389 (UNSPECV_SPLIT_STACK_RETURN): Define.
27390 (split_stack_prologue, load_split_stack_limit,
27391 load_split_stack_limit_di, load_split_stack_limit_si,
27392 split_stack_return, split_stack_space_check): New expands and insns.
27393 * config/rs6000/rs6000-protos.h
27394 (rs6000_expand_split_stack_prologue): Declare.
27395 (rs6000_split_stack_space_check): Declare.
27397 2015-05-20 Alan Modra <amodra@gmail.com>
27399 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
27400 (direct_return): Test vrsave_size rather than vrsave_mask.
27401 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
27402 (rs6000_emit_epilogue): Likewise.
27404 2015-05-20 Alan Modra <amodra@gmail.com>
27406 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
27407 when not saving registers.
27408 (debug_stack_info): Adjust to omit printing unused offsets,
27410 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
27413 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27416 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
27417 value_type to const char *.
27419 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
27421 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
27422 to build a biarch toolchain again.
27424 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
27426 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
27427 or implicit declarations.
27428 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
27430 (get_odr_type): Check type has linkage before adding bases.
27431 (register_odr_type): Check that type has linkage before adding it.
27432 (type_known_to_have_no_deriavations_p): Rename to ..
27433 (type_known_to_have_no_derivations_p): This one.
27434 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
27435 (type_known_to_have_no_derivations_p): This one.
27436 * ipa-polymorphic-call.c
27437 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
27440 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
27442 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
27443 (layout_type): Use RECORD_OR_UNION_TYPE_P.
27445 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27447 * config/s390/s390.c (s390_vector_bool_type_p): New function.
27448 (s390_invalid_binary_op): New function.
27449 (TARGET_INVALID_BINARY_OP): Define macro.
27451 2015-05-19 David Sherwood <david.sherwood@arm.com>
27453 * loop-invariant.c (create_new_invariant): Don't calculate address cost
27454 if mode is not a scalar integer.
27455 (get_inv_cost): Increase computational cost for unused invariants.
27457 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27459 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
27460 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
27461 * config/s390/s390-builtin-types.def: New file.
27462 * config/s390/s390-builtins.def: New file.
27463 * config/s390/s390-builtins.h: New file.
27464 * config/s390/s390-c.c: New file.
27465 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
27466 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
27467 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
27468 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
27470 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
27472 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
27473 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
27474 variable definitions.
27475 (s390_const_operand_ok): New function.
27476 (s390_expand_builtin): Rewrite.
27477 (s390_init_builtins): New function.
27478 (s390_handle_vectorbool_attribute): New function.
27479 (s390_attribute_table): Add s390_vector_bool attribute.
27480 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
27481 (s390_branch_condition_mask): Generate masks for new modes.
27482 (s390_expand_vec_compare_cc): New function.
27483 (s390_mangle_type): Add mangling for vector bool types.
27484 (enum s390_builtin): Remove.
27485 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
27487 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
27488 s390_cpu_cpp_builtins.
27489 (REGISTER_TARGET_PRAGMAS): New macro.
27490 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
27491 (insn_cmp mode attribute): Add new CC modes.
27492 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
27493 (lcbb): New pattern definition.
27494 * config/s390/s390intrin.h: Include vecintrin.h.
27495 * config/s390/t-s390: New file.
27496 * config/s390/vecintrin.h: New file.
27497 * config/s390/vector.md: Include vx-builtins.md.
27498 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
27501 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27503 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
27505 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
27506 (s390_select_ccmode): Likewise.
27507 (s390_canonicalize_comparison): Swap operands if necessary.
27508 (s390_expand_vec_compare_scalar): Expand DFmode compare using
27509 single element vector instructions.
27510 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
27511 (s390_branch_condition_mask): Generate CC masks for the new modes.
27512 * config/s390/s390.md (v0, vf, vd): New mode attributes.
27513 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
27514 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
27515 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
27516 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
27517 (*extend<DSF:mode><BFP:mode>2): New insn definition.
27518 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
27519 (extend<DSF:mode><BFP:mode>2): Turn into expander.
27520 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
27521 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
27522 (sqrt<mode>2): Add vector instruction.
27524 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27526 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
27528 * config/s390/predicates.md (const0_operand, constm1_operand)
27529 (constable_operand): Accept vector operands.
27530 * config/s390/s390-modes.def: Add supported vector modes.
27531 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
27532 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
27533 (s390_bytemask_vector_p, s390_expand_vec_strlen)
27534 (s390_expand_vec_compare, s390_expand_vcond)
27535 (s390_expand_vec_init): Add prototypes.
27536 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
27537 (s390_vector_mode_supported_p): New function.
27538 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
27539 (s390_contiguous_bitmask_vector_p): New function.
27540 (s390_bytemask_vector_p): New function.
27541 (s390_split_ok_p): Vector regs don't work either.
27542 (regclass_map): Add VEC_REGS.
27543 (s390_legitimate_constant_p): Handle vector constants.
27544 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
27545 (legitimate_reload_vector_constant_p): New function.
27546 (s390_preferred_reload_class): Handle CONST_VECTOR.
27547 (s390_reload_symref_address): Likewise.
27548 (s390_secondary_reload): Vector memory instructions only support
27549 short displacements. Rename reload*_nonoffmem* to reload*_la*.
27550 (s390_emit_ccraw_jump): New function.
27551 (s390_expand_vec_strlen): New function.
27552 (s390_expand_vec_compare): New function.
27553 (s390_expand_vcond): New function.
27554 (s390_expand_vec_init): New function.
27555 (s390_dwarf_frame_reg_mode): New function.
27556 (print_operand): Handle addresses with 'O' and 'R' constraints.
27557 (NR_C_MODES, constant_modes): Add vector modes.
27558 (s390_output_pool_entry): Handle vector constants.
27559 (s390_hard_regno_mode_ok): Handle vector registers.
27560 (s390_class_max_nregs): Likewise.
27561 (s390_cannot_change_mode_class): New function.
27562 (s390_invalid_arg_for_unprototyped_fn): New function.
27563 (s390_function_arg_vector): New function.
27564 (s390_function_arg_float): Remove size variable.
27565 (s390_pass_by_reference): Handle vector arguments.
27566 (s390_function_arg_advance): Likewise.
27567 (s390_function_arg): Likewise.
27568 (s390_return_in_memory): Vector values are returned in a VR if
27570 (s390_function_and_libcall_value): Handle vector arguments.
27571 (s390_gimplify_va_arg): Likewise.
27572 (s390_call_saved_register_used): Consider the arguments named.
27573 (s390_conditional_register_usage): Disable v16-v31 for non-vec
27575 (s390_preferred_simd_mode): New function.
27576 (s390_support_vector_misalignment): New function.
27577 (s390_vector_alignment): New function.
27578 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
27579 (TARGET_VECTOR_MODE_SUPPORTED_P)
27580 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
27581 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
27582 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
27583 (TARGET_VECTOR_ALIGNMENT): Define target macro.
27584 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
27585 (FIRST_PSEUDO_REGISTER): Increase value.
27586 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
27587 (VECTOR_REG_P): Define macros.
27588 (FIXED_REGISTERS, CALL_USED_REGISTERS)
27589 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
27590 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
27591 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
27592 Add vector registers.
27593 (CANNOT_CHANGE_MODE_CLASS): Call C function.
27594 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
27595 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
27597 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
27598 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
27599 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
27600 (VR*_REGNUM): New constants.
27601 (ALL): New mode iterator.
27602 (INTALL): Remove mode iterator.
27604 (movti): Implement TImode moves for VRs.
27605 Disable TImode splitter for VR targets.
27606 Implement splitting TImode GPR<->VR moves.
27607 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
27608 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
27609 reload<mode>_la_in, reload<mode>_la_out.
27610 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
27611 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
27612 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
27613 (mov<mode> SF SD): Prefer lder, lde for loading.
27614 Add lrl and strl instructions.
27615 Add vector instructions.
27616 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
27617 Call s390_expand_vec_strlen on z13.
27618 (*cc_to_int): Change predicate to nonimmediate_operand.
27619 (addti3): Rename to *addti3. New expander.
27620 (subti3): Rename to *subti3. New expander.
27621 * config/s390/vector.md: New file.
27623 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27625 * common/config/s390/s390-common.c (processor_flags_table): Add
27627 * config.gcc: Add z13.
27628 * config/s390/s390-opts.h (enum processor_type): Add
27629 PROCESSOR_2964_Z13.
27630 * config/s390/s390.c (s390_adjust_priority): Check for
27631 PROCESSOR_2964_Z13.
27632 (s390_reorg): Likewise.
27633 (s390_sched_reorder): Likewise.
27634 (s390_sched_variable_issue): Likewise.
27635 (s390_loop_unroll_adjust): Likewise.
27636 (s390_option_override): Likewise. Default to -mvx when available.
27637 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
27638 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
27639 (TARGET_VX_ABI): Define macros.
27641 (TARGET_DEFAULT): Add MASK_OPT_VX.
27642 * config/s390/s390.md ("cpu" attribute): Add z13.
27643 ("cpu_facility" attribute): Add vec.
27644 * config/s390/s390.opt (processor_type): Add z13.
27645 (mvx): New options.
27646 * doc/invoke.texi: Add z13 option for -march.
27648 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27650 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
27651 mode check to make sure that only scalar integer values are
27654 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
27656 * tree.c (verify_type_variant): Fix #undef.
27657 (gimple_canonical_types_compatible_p): Move here from lto.c
27658 (verify_type): Verify TYPE_CANONICAL compatibility.
27659 * tree.h (gimple_canonical_types_compatible_p): Declare.
27661 2015-05-19 Jakub Jelinek <jakub@redhat.com>
27663 PR middle-end/66199
27664 * tree.h (OMP_TEAMS_COMBINED): Define.
27665 * gimplify.c (enum gimplify_omp_var_data): Add
27666 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
27667 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
27668 (omp_notice_variable): Accept both ORT_TEAMS
27669 and ORT_COMBINED_TEAMS. Don't recurse if
27670 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
27671 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
27673 (omp_no_lastprivate): New function.
27674 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
27675 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
27676 notice_outer and set appropriate bits, otherwise make
27677 sure default(none) combined constructs won't complain.
27678 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
27679 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
27680 omp_no_lastprivate either remove the clause or turn it
27681 into OMP_CLAUSE_PRIVATE.
27682 (gimplify_omp_for): Fix up handling of implicit
27683 lastprivate or linear iterators.
27684 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
27685 ORT_COMBINED_TEAMS.
27686 * omp-low.c (lower_omp_for_lastprivate): For combined
27687 for simd use fd.loop.n2 from the for rather than simd.
27689 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27691 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
27692 instead of gen_rtx_raw_REG.
27693 (cris_expand_epilogue): Likewise.
27694 * config/microblaze/microblaze.c (microblaze_classify_address):
27696 * config/sparc/sparc.md: Likewise.
27698 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
27700 * config/alpha/alpha.c (alpha_legitimize_reload_address)
27701 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
27702 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
27703 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
27704 Use CASE_CONST_SCALAR_INT.
27705 (print_operand) <case 'M'>: Use mode_width_operand to check the
27706 value of the constant.
27707 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
27708 * config/alpha/predicates.md (input_operand): Use general_operand
27709 instead of match_code as operand check.
27710 (symbolic_operand): Use match_code with subexpression digits.
27711 * config/alpha/constraints.md (Q): Ditto.
27713 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27715 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
27717 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27719 * config/s390/s390.c (s390_secondary_reload): Fix check for
27720 load/store relative.
27722 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27724 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
27725 alternative_mask to uint64_t.
27727 2015-05-19 Jakub Jelinek <jakub@redhat.com>
27729 PR tree-optimization/66187
27730 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
27731 Pass TYPE_SIGN to tree_int_cst_min_precision. If
27732 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
27734 2015-05-19 David Malcolm <dmalcolm@redhat.com>
27736 * diagnostic.c (diagnostic_report_current_module): Strengthen
27737 local "new_map" from const line_map * to
27738 const line_map_ordinary *.
27739 * genmatch.c (error_cb): Likewise for local "map".
27740 (output_line_directive): Likewise for local "map".
27741 * input.c (expand_location_1): Likewise for local "map".
27742 Pass NULL rather than &map to
27743 linemap_unwind_to_first_non_reserved_loc, since the value is never
27744 read from there, and the value written back not read from here.
27745 (is_location_from_builtin_token): Strengthen local "map" from
27746 const line_map * to const line_map_ordinary *.
27747 (dump_location_info): Strengthen locals "map" from
27748 line_map *, one to const line_map_ordinary *, the other
27749 to const line_map_macro *.
27750 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
27751 const line_map * to const line_map_macro *.
27752 (maybe_unwind_expanded_macro_loc): Add a call to
27753 linemap_check_macro when writing to the "map" field of the
27755 Introduce local const line_map_ordinary * "ord_map", using it in
27756 place of "map" in the part of the function where we know we have
27757 an ordinary map. Strengthen local "m" from const line_map * to
27758 const line_map_ordinary *.
27760 2015-05-19 Nick Clifton <nickc@redhat.com>
27763 * config/msp430/msp430.md (zero_extendhisi2): Add support for
27764 separate source and destination registers.
27766 2015-05-19 Richard Biener <rguenther@suse.de>
27768 PR tree-optimization/66165
27769 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
27770 for no load permutation.
27772 PR tree-optimization/66185
27773 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
27774 when building the SLP node from scalars.
27776 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
27777 Tristan Gingold <gingold@adacore.com>
27779 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
27780 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
27781 (expand_stack_restore): Call record_new_stack_level.
27782 (expand_stack_save): Do not call do_pending_stack_adjust.
27783 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
27784 * calls.c (expand_call): Call record_new_stack_level for alloca.
27785 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
27786 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
27787 (update_sjlj_context): New global function.
27788 * except.h (update_sjlj_context): Declare.
27789 * explow.c (record_new_stack_level): New global function.
27790 (allocate_dynamic_stack_space): Call record_new_stack_level.
27791 * explow.h (record_new_stack_level): Declare.
27792 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
27793 * cfgrtl.c (duplicate_insn_chain): Likewise.
27795 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27797 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
27798 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
27799 STACK_GROWS_DOWNWARD as normal if.
27800 (expand_call): Likewise.
27802 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
27805 * config/sh/sh.md (*round_int_even): New insn_and_split and
27806 accompanying new unnamed split.
27808 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27810 * bitmap.c (bitmap_set_range): Handle count==1 specially.
27811 (bitmap_clear_range): Likewise.
27812 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
27813 bitmap_set_range unconditionally.
27814 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
27815 * df-scan.c (df_mark_reg): Likewise.
27816 * haifa-sched.c (setup_ref_regs): Likewise.
27817 * sched-rgn.c (update_live_1): Likewise.
27819 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27821 * regs.h (END_HARD_REGNO): Delete.
27822 (END_REGNO): Move to...
27824 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
27825 * caller-save.c (mark_set_regs): Likewise.
27826 * combine.c (move_deaths, distribute_notes): Likewise.
27827 * cse.c (invalidate, invalidate_for_call): Likewise.
27828 * df-scan.c (df_ref_record): Likewise.
27829 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
27830 (record_last_reg_set_info): Likewise.
27831 * reg-stack.c (convert_regs_exit): Likewise.
27832 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
27833 * resource.c (update_live_status): Likewise.
27834 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
27836 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27838 * rtl.h (reg_info): Add an nregs field.
27839 (REG_NREGS): Use it.
27840 (SET_REGNO_RAW): Delete.
27841 (set_regno_raw): New function.
27842 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
27843 (END_REGNO): Redefine in terms of REG_NREGS.
27844 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
27846 * emit-rtl.c (set_mode_and_regno): Likewise.
27847 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
27848 instead of SET_REGNO_RAW.
27850 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27852 * rtl.h (PUT_MODE_RAW): New macro.
27853 (PUT_REG_NOTE_KIND): Use it.
27854 (set_mode_and_regno): Declare.
27855 (gen_raw_REG): Change regno to "unsigned int".
27856 (gen_rtx_REG): Change "unsigned" to "unsigned int".
27857 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
27858 use set_mode_and_regno to change the mode of registers.
27859 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
27860 * emit-rtl.c (set_mode_and_regno): New function.
27861 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
27862 * caller-save.c (reg_save_code): Use set_mode_and_regno.
27863 * expr.c (init_expr_target): Likewise.
27864 * ira.c (setup_prohibited_mode_move_regs): Likewise.
27865 * postreload.c (reload_cse_simplify_operands): Likewise.
27867 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27869 * caller-save.c (init_caller_save): Use word_mode and
27870 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
27871 * expr.c (init_expr_target): Likewise.
27872 * ira.c (setup_prohibited_mode_move_regs): Likewise.
27873 * postreload.c (reload_cse_regs_1): Likewise.
27875 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27877 * rtl.def (REG): Change format to "r".
27878 * rtl.h (rtunion): Remove rt_reg.
27879 (reg_info): New structure.
27880 (rtx_def): Add reg field to main union.
27881 (X0REGATTR): Delete.
27882 (REG_CHECK): New macro.
27883 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
27884 * rtl.c (rtx_format): Document "r".
27885 (rtx_code_size): Handle REG specially.
27886 * gengenrtl.c (special_format): Return true for formats
27888 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
27889 Deal with REG_ATTRS after the field loop.
27890 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
27891 * expmed.c (init_expmed): Call gen_raw_REG instead of
27893 * expr.c (init_expr_target): Likewise.
27894 * regcprop.c (maybe_mode_change): Likewise.
27895 * varasm.c (make_decl_rtl): Likewise.
27896 * final.c (leaf_renumber_regs_insn): Return early after
27898 * genemit.c (gen_exp): Handle 'r' fields.
27899 * genpeep.c (match_rtx): Likewise.
27900 * gensupport.c (subst_pattern_match): Likewise.
27901 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
27902 (alter_constraints, subst_dup): Likewise.
27903 * read-rtl.c (read_rtx_code): Likewise.
27904 * print-rtl.c (print_rtx): Likewise.
27905 * genrecog.c (find_operand, find_matching_operand): Likewise.
27906 (validate_pattern, match_pattern_2): Likewise.
27907 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
27908 (rtx_test::regno_field): New function.
27909 (operator ==, safe_to_hoist_p, transition_parameter_type)
27910 (parameter_type_string, print_parameter_value)
27911 (print_nonbool_test, print_test): Handle new enum values.
27912 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
27913 * lra-constraints.c (operands_match_p): Likewise.
27915 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27917 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
27918 Change type of new_regno to unsigned int.
27919 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
27920 new_regno to unsigned int.
27921 (df_ref_change_reg_with_loc): Remove old_regno parameter.
27922 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
27923 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
27924 (SET_REGNO_RAW): Add space after ",".
27926 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27928 * rtl.h (REG_NREGS): New macro
27929 * alias.c (record_set): Use it.
27930 * cfgcleanup.c (mark_effect): Likewise.
27931 * combine.c (likely_spilled_retval_1): Likewise.
27932 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
27933 (move_deaths, distribute_notes): Likewise.
27934 * cselib.c (cselib_record_set): Likewise.
27935 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
27936 * df-scan.c (df_mark_reg): Likewise.
27937 * dse.c (look_for_hardregs): Likewise.
27938 * dwarf2out.c (reg_loc_descriptor): Likewise.
27939 (multiple_reg_loc_descriptor): Likewise.
27940 * expr.c (write_complex_part, read_complex_part): Likewise.
27941 (emit_move_complex): Likewise.
27942 * haifa-sched.c (setup_ref_regs): Likewise.
27943 * ira-lives.c (mark_hard_reg_live): Likewise.
27944 * lra.c (lra_set_insn_recog_data): Likewise.
27945 * mode-switching.c (create_pre_exit): Likewise.
27946 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
27947 (reload_combine_recognize_pattern): Likewise.
27948 (reload_combine_note_use, move2add_record_mode): Likewise.
27949 (reload_cse_move2add): Likewise.
27950 * reg-stack.c (subst_stack_regs_pat): Likewise.
27951 * regcprop.c (kill_value, copy_value): Likewise.
27952 (copyprop_hardreg_forward_1): Likewise.
27953 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
27954 (build_def_use): Likewise.
27955 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
27956 (deps_analyze_insn): Likewise.
27957 * sched-rgn.c (check_live_1, update_live_1): Likewise.
27958 * sel-sched.c (count_occurrences_equiv): Likewise.
27959 * valtrack.c (dead_debug_insert_temp): Likewise.
27961 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27963 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
27964 * dse.c (note_add_store): Likewise.
27965 * ira-lives.c (mark_hard_reg_dead): Likewise.
27966 * loop-invariant.c (mark_reg_store): Likewise.
27967 (mark_reg_death): Likewise.
27968 * postreload.c (reload_combine): Likewise.
27969 (reload_combine_note_store): Likewise.
27970 (reload_combine_note_use): Likewise.
27971 * recog.c (peep2_reg_dead_p): Likewise.
27973 2015-05-19 Alan Modra <amodra@gmail.com>
27975 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
27976 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
27977 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
27979 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
27980 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
27981 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
27982 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
27984 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
27986 * config/mips/mips.md (JOIN_MODE): New mode iterator.
27987 (join2_load_Store<JOIN_MODE:mode>): New pattern.
27988 (join2_loadhi): Likewise.
27989 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
27990 load-load and store-stores.
27991 * config/mips/mips.opt (mload-store-pairs): New option.
27992 (TARGET_LOAD_STORE_PAIRS): New macro.
27993 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
27994 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
27995 * config/mips/mips.c (mips_load_store_bonding_p): New function.
27997 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
27999 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
28001 * dojump.c (do_compare_rtx_and_jump): Likewise.
28002 * expmed.c (emit_store_flag_1): Likewise.
28003 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
28004 * final.c (sprint_ul): Use std::reverse for reversing a string.
28005 * fold-const.c (extract_muldiv_1): Use std::swap.
28006 * genmodes.c (emit_mode_int_n): Likewise.
28007 * ifcvt.c (dead_or_predicable): Likewise.
28008 * ira-build.c (ira_merge_live_ranges): Likewise.
28009 (swap_allocno_copy_ends_if_necessary): Likewise.
28010 * ira.c (ira_setup_alts): Likewise.
28011 * loop-iv.c (iv_analyze_expr): Likewise.
28012 (implies_p): Likewise.
28013 (canon_condition): Likewise.
28014 * lra-constraints.c (swap_operands): Likewise.
28015 * lra-lives.c (lra_merge_live_ranges): Likewise.
28016 * omega.c (swap): Remove.
28018 (omega_unprotect_1): Use std::swap.
28019 (omega_solve_geq): Likewise.
28020 * optabs.c (expand_binop_directly): Likewise.
28021 (expand_binop): Likewise.
28022 (emit_conditional_move): Likewise.
28023 (emit_conditional_add): Likewise.
28024 * postreload.c (reload_cse_simplify_operands): Likewise.
28025 * reg-stack.c (emit_swap_insn): Likewise.
28026 (swap_to_top): Likewise.
28027 (compare_for_stack_reg): Likewise.
28028 (subst_asm_stack_regs): Likewise.
28029 * reload.c (find_reloads): Likewise.
28030 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
28031 * sel-sched.c (invoke_reorder_hooks): Likewise.
28032 (create_block_for_bookkeeping): Likewise.
28033 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
28034 (lambda_matrix_right_hermite): Use std::swap.
28035 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
28036 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
28037 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
28038 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
28039 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
28040 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
28041 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
28042 * tree-vrp.c (compare_ranges): Likewise.
28043 * var-tracking.c (add_with_sets): Likewise.
28044 (vt_find_locations): Likewise.
28046 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
28048 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
28050 (FBSD_ENDFILE_SPEC): Likewise.
28051 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
28052 config/freebsd-spec.h.
28053 (ENDFILE_SPEC): Likewise.
28055 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
28056 Richard Henderson <rth@redhat.com>
28059 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
28060 Check for a memory location that is not a reference (using an AND)
28061 to an unaligned location here.
28062 * config/alpha/predicates.md (normal_memory_operand): Remove.
28064 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
28066 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
28067 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
28069 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
28071 * config/mips/mips.c (micromips_globals): New variable.
28072 (mips_set_compression_mode): Save and reinitialize target-dependent
28073 state for microMIPS.
28075 2015-05-18 Martin Liska <mliska@suse.cz>
28077 * dbgcnt.def: Add new counter.
28078 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
28080 2015-05-18 Martin Liska <mliska@suse.cz>
28082 * dbgcnt.def: Sort counters.
28083 * opts.c (common_handle_option): Do not compile if
28084 -fdbg-cnt-list is enabled.
28086 2015-05-18 Tom de Vries <tom@codesourcery.com>
28088 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
28089 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
28090 address operator to va_list operand.
28091 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
28093 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
28095 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
28096 * config/s390/s390.c (s390_gimplify_va_arg): Same.
28097 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
28099 2015-05-18 Tom de Vries <tom@codesourcery.com>
28101 * tree-ssa-tail-merge.c: Fix whitespace.
28103 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
28105 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
28106 cortex-a17, and cortex-a17.cortex-a7.
28108 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
28111 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
28113 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
28116 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
28117 QImode inner modes for TARGET_AVX512BW. Force mask operand
28118 to a register for AVX512F modes.
28120 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
28122 * toplev.c (emit_debug_global_declarations): Do not output debug info
28123 when doing slim LTO objects.
28125 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
28127 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
28128 odr_types_equivalent_p): Declare.
28129 (odr_type_p): Use gcc_checking_assert.
28130 (type_in_anonymous_namespace_p) Declare.
28131 (type_with_linkage_p): Declare.
28132 * common.opt (Wlto-type-mismatch): New warning.
28133 * ipa-devirt.c (compound_type_base): New function.
28134 (odr_or_derived_type_p): New function.
28135 (odr_types_equivalent_p): New function.
28136 (add_type_duplicate): Simplify.
28137 (type_with_linkage_p): Add hack to prevent false positives on C types
28138 (type_in_anonymous_namespace_p): Likewise.
28139 * tree.c (need_assembler_name_p): Use type_with_linkage.
28140 * tree.h (type_in_anonymous_namespace_p): Remove.
28141 * doc/invoke.texi (-Wlto-type-mismatch): Document
28143 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
28145 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
28146 (verify_type): Verify STRING_FLAG.
28148 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
28151 * tree-pretty-print.c (percent_K_format): Replace locus pointer
28152 with accessor function.
28153 * tree-diagnostic.c (diagnostic_report_current_function): Use
28154 diagnostic_location function.
28155 (maybe_unwind_expanded_macro_loc): Likewise.
28156 (virt_loc_aware_diagnostic_finalizer): Likewise.
28157 (default_tree_printer): Replace locus pointer with accessor function.
28158 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
28159 (diagnostic_set_info_translated): Initialize second location.
28160 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
28161 (diagnostic_show_locus): Handle two locations. Call
28162 diagnostic_print_caret_line.
28163 (diagnostic_print_caret_line): New.
28164 (default_diagnostic_starter): Use diagnostic_location function.
28165 (diagnostic_report_diagnostic): Use diagnostic_location function.
28166 (verbatim): Do not set text.locus.
28167 * diagnostic.h (struct diagnostic_info): Remove location field.
28168 (struct diagnostic_context): Make caret_chars an array of two.
28169 (diagnostic_location): New inline.
28170 (diagnostic_expand_location): Handle two locations.
28171 (diagnostic_same_line): New inline.
28172 (diagnostic_print_caret_line): Declare.
28173 (CARET_LINE_MARGIN): New constant.
28174 * pretty-print.c (pp_printf): Do not set text.locus.
28175 (pp_verbatim): Do not set text.locus.
28176 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
28177 (struct text_info): Replace locus pointer with locations
28178 array. Add accessor functions.
28180 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
28181 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28184 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
28185 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
28186 large constants in register instead of splitting them.
28188 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
28191 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
28192 replacements in memory addresses.
28193 (get_unaligned_address): Ditto.
28195 2015-05-16 James Bowman <james.bowman@ftdichip.com>
28197 * config/ft32/*: New files for FT32 port.
28198 * doc/install.texi: Add FT32 information.
28199 * doc/invoke.texi: Add FT32 information.
28200 * doc/md.texi: Add FT32 information.
28201 * doc/contrib.texi: Self added.
28203 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
28205 PR tree-optimization/64454
28206 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
28207 (-1 - A -> ~A): Remove unnecessary condition.
28209 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
28211 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
28212 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
28213 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
28215 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
28217 * ipa-chkp.h (chkp_wrap_function): New.
28218 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
28219 (chkp_wrap_function_name): New.
28220 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
28221 to get wrapper name.
28222 * lto-cgraph.c: Include ipa-chkp.h.
28223 (input_cgraph_1): Avoid alias chain for wrappers.
28225 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
28227 PR middle-end/66134
28228 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
28229 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
28231 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28233 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
28234 (AARCH64_FL_SLOWMUL): Delete.
28235 (AARCH64_FL_CRC): Redefine to 1<<3.
28236 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
28238 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28240 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
28243 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
28245 * config/alpha/alpha.md (extendqidi2): Use general_operand
28246 instead of some_operand for operand[1] predicate.
28247 (extendhidi2): Ditto.
28248 (cbranchdi4): Use general_operand instead of some_operand
28249 for operand[1] and operands[2] predicates.
28250 (cstoredi4): Ditto.
28251 * config/alpha/predicates.md (some_operand): Remove unused predicate.
28252 (some_ni_operand): Ditto.
28254 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
28256 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
28257 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
28258 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
28259 low part of the constant using alpha_emit_set_const_1.
28260 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
28262 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
28264 * varasm.c (output_constant_pool_1): Pass down alignment from
28265 constant pool entry's descriptor to output_constant_pool_2.
28266 (output_object_block): Add comment prior to call to
28267 output_constant_pool_1.
28269 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
28271 PR rtl-optimization/65862
28272 * target.def (ira_change_pseudo_allocno_class): New hook.
28273 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
28275 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
28276 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
28278 * ira-costs.c (find_costs_and_classes): Call the hook and change
28279 classes when it is necessary.
28280 * doc/tm.texi: Update.
28282 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
28284 * config/i386/i386.md (sibcall_memory): Check that register with
28285 callee address is not also used as one of the arguments, instead
28286 of checking that it is not live after the sibcall.
28287 (sibcall_pop_memory): Ditto.
28288 (sibcall_value_memory): Ditto.
28289 (sibcall_value_pop_memory): Ditto.
28291 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
28293 * generic-match-head.c (types_match): Handle non-types.
28294 * gimple-match-head.c (types_match): Likewise.
28295 * match.pd: Remove unnecessary TREE_TYPE for types_match.
28297 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
28299 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
28300 (csneg3<mode>_insn): Enable expansion of pattern.
28302 2015-05-14 Nick Clifton <nickc@redhat.com>
28304 * config/rl78/rl78.c (rl78_select_section): Select the correct
28305 default section based upon the category of the decl.
28307 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
28309 PR rtl-optimization/30967
28310 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
28311 destination mode for the cost of scc patterns.
28313 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
28315 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
28316 using SWIM248 mode iterator.
28317 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
28318 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
28319 for operand[2] constraint.
28320 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
28322 2015-05-13 Jakub Jelinek <jakub@redhat.com>
28324 PR middle-end/66133
28325 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
28326 make sure it is never noreturn, even when the task body does not
28328 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
28329 right before GIMPLE_OMP_RETURN.
28330 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
28331 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
28332 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
28334 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28336 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
28337 * tree-ssa-math-opts.c: Include params.h
28338 (pow_synth_sqrt_info): New struct.
28339 (representable_as_half_series_p): New function.
28340 (get_fn_chain): Likewise.
28341 (print_nested_fn): Likewise.
28342 (dump_fractional_sqrt_sequence): Likewise.
28343 (dump_integer_part): Likewise.
28344 (expand_pow_as_sqrts): Likewise.
28345 (gimple_expand_builtin_pow): Use above to attempt to expand
28346 pow as series of square roots. Removed now unused variables.
28348 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
28350 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
28351 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
28352 Remove *p0 and *p1 arguments. Rewrite function.
28353 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
28354 (alpha_split_const_mov): Update calls to alpha_extract_integer and
28355 alpha_emit_set_long_const.
28356 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
28357 (alpha_output_mi_thunk_osf): Ditto.
28358 * config/alpha/alpha.md (movti): Do not check operands[1]
28361 2015-05-13 Richard Biener <rguenther@suse.de>
28363 PR tree-optimization/66129
28364 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
28366 (vect_schedule_slp_instance): Fix typo.
28368 2015-05-13 David Malcolm <dmalcolm@redhat.com>
28370 * common.opt (fdump-internal-locations): New option.
28371 * input.c: Include diagnostic-core.h.
28372 (get_end_location): New function.
28373 (write_digit): New function.
28374 (write_digit_row): New function.
28375 (dump_location_range): New function.
28376 (dump_labelled_location_range): New function.
28377 (dump_location_info): New function.
28378 * input.h (dump_location_info): New prototype.
28379 * toplev.c (compile_file): Handle flag_dump_locations.
28381 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
28383 * gimple-expr.h (is_gimple_constant): Reorder.
28384 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
28386 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
28388 * combine.c (simplify_set): When generating a CC set, if the
28389 source already is in the correct mode, do not wrap it in a
28390 compare. Simplify the rest of that code.
28392 2015-05-13 Richard Biener <rguenther@suse.de>
28394 PR tree-optimization/66123
28395 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
28398 2015-05-13 Richard Biener <rguenther@suse.de>
28400 PR middle-end/66110
28401 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
28403 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
28405 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
28407 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
28408 * aclocal.m4: Regenerated with automake-1.11.6.
28410 2015-05-13 Tom de Vries <tom@codesourcery.com>
28412 PR tree-optimization/66010
28413 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
28414 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
28415 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
28416 and rval based on do_deref.
28418 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
28421 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
28422 link time constants into adress expressions and therefore set
28425 2015-05-13 Jakub Jelinek <jakub@redhat.com>
28428 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
28429 Use SWI248 iterator instead of SWI.
28430 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
28431 Use eq_attr "alternative" "0" instead of match_test in
28432 length_immediate attribute computation.
28433 (*mulvhi4, *mulvhi4_1): New define_insns.
28436 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
28437 SIGNED to get precision of non-negative value.
28439 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
28442 * function.c (diddle_return_value_1): Process bounds first.
28443 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
28446 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
28448 PR rtl-optimization/64616
28449 * loop-invariant.c (can_move_invariant_reg): New.
28450 (move_invariant_reg): Call above new function to decide whether
28451 instruction can just be moved, skipping creation of temporary
28454 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
28456 PR target/pr66047.c
28457 * i386.c (ix86_function_sseregparm): Only return -1 if local function
28458 with implied regparm is called from -mno-sse function.
28459 (init_cumulative_args): Output error if ix86_function_sseregparm
28460 return -1 and SSE register would be needed.
28461 (function_arg_advance_32): Likewise.
28462 (function_arg_32): Likewise.
28463 * i386.h (ix86_args): Add decl field.
28465 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
28468 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
28469 inlines across optimization boundary.
28471 2015-05-12 Jason Merrill <jason@redhat.com>
28473 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
28474 string literal and macro name.
28476 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
28478 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
28479 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
28480 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
28482 2015-05-12 David Malcolm <dmalcolm@redhat.com>
28484 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
28485 (-Wmisleading-indentation): New option.
28486 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
28488 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
28490 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
28491 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
28492 (alpha_extract_integer): Ditto.
28493 (alpha_legitimate_constant_p): Ditto.
28494 (alpha_split_tmode_pair): Ditto.
28495 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
28496 (alpha_expand_mov): Ditto.
28497 (print_operand): Remove handling of 'H' modifier.
28498 <case 'm'>: Remove CONST_DOUBLE handling.
28499 (summarize_insn): Handle CONST_WIDE_INT.
28500 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
28502 (movti): Handle CONST_WIDE_INT.
28503 * config/alpha/constraints.md ('H'): Remove constraint definition.
28504 ('G'): Do not match MODE_FLOAT class.
28505 * config/alpha/predicates.md (const0_operand): Also match
28507 (non_add_const_operand): Ditto.
28508 (non_zero_const_operand): Ditto.
28509 (some_operand): Ditto.
28510 (input_operand): Ditto. Handle CONST_WIDE_INT.
28511 (and_operand): Do not match const_double.
28512 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
28514 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
28517 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
28518 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
28519 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
28520 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
28521 is_mm_seq_cst, is_mm_sync): New accessor functions.
28522 * builtins.c (expand_builtin_sync_operation,
28523 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
28524 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
28525 (get_memmodel, expand_builtin_atomic_compare_exchange,
28526 expand_builtin_atomic_load, expand_builtin_atomic_store,
28527 expand_builtin_atomic_clear): Use new accessor routines.
28528 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
28529 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
28530 (maybe_emit_sync_lock_test_and_set): Use new accessors and
28531 MEMMODEL_SYNC_ACQUIRE.
28532 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
28533 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
28534 expand_atomic_store): Use new accessors.
28535 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
28536 * tsan.c (instrument_builtin_call): Update check for memory model beyond
28537 final enum to use MEMMODEL_LAST.
28538 * c-family/c-common.c: Use new accessor for memmodel_base.
28539 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
28541 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
28542 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
28543 mem_thread_fence, *dmb): Likewise.
28544 * config/alpha/alpha.c (alpha_split_compare_and_swap,
28545 alpha_split_compare_and_swap_12): Likewise.
28546 * config/arm/arm.c (arm_expand_compare_and_swap,
28547 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
28548 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
28549 atomic_loaddi): Likewise.
28550 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
28552 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
28553 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
28555 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
28556 atomic_store<mode>, atomic_compare_and_swap<mode>,
28557 atomic_exchange<mode>): Use new accessors.
28558 * config/mips/mips.c (mips_process_sync_loop): Likewise.
28559 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
28560 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
28561 rs6000_post_atomic_barrier): Add new cases.
28562 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
28563 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
28564 (atomic_load<mode>): Add new cases and use new accessors.
28565 (store_quadpti): Add new cases.
28566 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
28568 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
28569 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
28572 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
28574 * ipa-devirt.c (type_with_linkage_p): New function.
28575 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
28577 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
28578 (can_be_name_hashed_p): Simplify.
28579 (hash_odr_name): Check that type has linkage before checking if it is
28581 (types_same_for_odr): Likewise.
28582 (odr_name_hasher::equal): Likewise.
28583 (odr_subtypes_equivalent_p): Likewise.
28584 (warn_types_mismatch): Likewise.
28585 (get_odr_type): Likewise.
28586 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
28587 * ipa-utils.h (odr_type_p): Move offline.
28588 * tree.c (need_assembler_name_p): Fix handling of types
28590 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
28592 2015-05-12 David Malcolm <dmalcolm@redhat.com>
28594 * timevar.c (timevar_enable): Delete in favor of...
28595 (g_timer): New global.
28596 (struct timevar_def): Move to timevar.h inside class timer.
28597 (struct timevar_stack_def): Likewise.
28598 (timevars): Delete global in favor of field "m_timevars" within
28599 class timer in timevar.h
28600 (stack): Likewise, in favor of field "m_stack".
28601 (unused_stack_instances): Likewise, in favor of field
28602 "m_unused_stack_instances".
28603 (start_time): Likewise, in favor of field "m_start_time".
28604 (get_time): Eliminate check for timevar_enable.
28605 (timer::timer): New function, built from part of timevar_init.
28606 (timevar_init): Rewrite idempotency test from using
28607 "timevar_enable" bool to using dynamic allocation of "g_timer".
28608 Move rest of implementation into timer's constructor.
28609 (timevar_push_1): Rename to...
28610 (timer::push): ...this, adding "m_" prefixes to variables that
28611 are now fields of timer.
28612 (timevar_pop_1): Likewise, rename to...
28613 (timer::pop): ...this, and add "m_" prefixes.
28614 (timevar_start): Replace test for "timevar_enable" with one for
28615 "g_timer", and move bulk of implementation to...
28616 (timer::start): ...here, adding "m_" prefixes.
28617 (timevar_stop): Likewise, from here...
28618 (timer::stop): ...to here.
28619 (timevar_cond_start): Likewise, from here...
28620 (timer::cond_start): ...to here.
28621 (timevar_cond_stop): Likewise, from here...
28622 (timer::cond_stop): ...to here.
28623 (validate_phases): Rename to...
28624 (timer::validate_phases): ...this, and add "m_" prefixes. Make
28625 locals "total" and "tv" const.
28626 (timevar_print): Rename to...
28627 (timer::print): ...this, and add "m_" prefixes. Make locals
28628 "total" and "tv" const. Eliminate test for timevar_enable.
28629 * timevar.h (timevar_enable): Eliminate.
28630 (g_timer): New declaration.
28631 (timevar_push_1): Eliminate.
28632 (timevar_pop_1): Eliminate.
28633 (timevar_print): Eliminate.
28634 (class timer): New class.
28635 (timevar_push): Rewrite to use g_timer.
28636 (timevar_pop): Likewise.
28637 * toplev.c (toplev::~toplev): Likewise.
28639 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
28641 * arm-protos.h (arm_sched_autopref): Delete.
28642 (tune_params): Re-organize, use enums for flag values.
28643 (FUSE_OPS): New macro.
28644 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
28645 (ARM_PREFETCH_BENEFICIAL): Likewise.
28646 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
28647 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
28648 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
28649 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
28650 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
28651 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
28652 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
28653 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
28655 (arm_option_override, thumb2_reorg, arm_print_tune_info)
28656 (aarch_macro_fusion_pair_p): Update uses of current_tune.
28657 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
28659 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
28661 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
28664 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
28665 Sandra Loosemore <sandra@codesourcery.com>
28667 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
28669 (REG_CLASS_NAMES): Add "IJMP_REGS".
28670 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
28671 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
28672 use new "c" register constraint.
28673 * config/nios2/constraint.md (c): New register constraint
28674 corresponding to IJMP_REGS.
28676 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28678 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
28679 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
28680 define_splits): Delete, revamp, transmogrify into ...
28681 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
28682 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
28683 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
28686 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28688 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
28689 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
28691 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28693 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
28694 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
28695 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
28696 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
28697 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
28698 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
28699 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
28700 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
28701 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
28702 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
28703 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
28704 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
28705 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
28706 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
28707 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
28708 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
28709 and 30 corresponding splitters): Delete.
28711 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28713 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
28716 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28718 * combine.c (recog_for_combine_1): New function, factored out
28719 from recog_for_combine.
28720 (change_zero_ext): New function.
28721 (recog_for_combine): If recog fails, try again with the pattern
28722 modified by change_zero_ext; if that still fails, restore the
28725 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28727 * combine.c (get_undo_marker): New function.
28728 (undo_to_marker): New function, largely factored out from ...
28729 (undo_all): ... this. Adjust.
28731 2015-05-12 Richard Biener <rguenther@suse.de>
28733 PR tree-optimization/66101
28734 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
28735 fixup if we turn a loop exit edge to a fallthru edge.
28737 2015-05-12 Richard Biener <rguenther@suse.de>
28739 PR tree-optimization/37021
28740 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
28741 (SLP_TREE_TWO_OPERATORS): New define.
28742 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
28743 SLP_TREE_TWO_OPERATORS.
28744 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
28746 (vect_build_slp_tree): Adjust.
28747 (vect_analyze_slp_cost_1): Likewise.
28748 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
28749 emitting two vector stmts and mixing the results.
28751 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
28753 * call.c (print_z_candidates): Remove dead code.
28755 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28757 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
28758 and zEC12_simple_fp.
28759 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
28762 2015-05-12 Tom de Vries <tom@codesourcery.com>
28764 PR tree-optimization/66010
28765 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
28767 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
28768 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
28769 va_lists are passed, and remove corresponding handling.
28770 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
28771 do_deref argument to ifn_va_arg.
28772 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
28775 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28778 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
28779 REG before taking its REGNO.
28781 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
28783 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
28784 rsp->sign_bit_copies and rsp->nonzero_bits into ...
28785 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
28786 present to get more accurate information about the number of sign bit
28787 copies and non zero bits.
28789 2015-05-12 Richard Biener <rguenther@suse.de>
28791 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
28792 do not allow unrolling.
28794 2015-05-11 Richard Henderson <rth@redhat.com>
28796 * config/i386/i386-modes.def (CCP): New.
28797 * config/i386/i386.c (put_condition_code): Handle it.
28798 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
28800 2015-05-11 Richard Henderson <rth@redhat.com>
28802 * target.def (md_asm_clobbers): Replace with...
28803 (md_asm_adjust): this.
28804 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
28805 (TARGET_MD_ASM_ADJUST): New.
28806 * tm.texi: Rebuild.
28807 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
28808 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
28809 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
28811 * cfgexpand.c (check_operand_nalternatives): Accept vector of
28812 constraints instead of lists of outputs and inputs.
28813 (expand_asm_stmt): Save and restore input_location around the
28814 body of the function. Move asm data into vectors instead of
28815 building tree lists. Generate cleanup sequences as needed,
28816 rather than waiting til the end. Use new md_asm_adjust hook.
28818 * config/vxworks.c: Include vec.h before target.h.
28819 * gimple.c: Likewise.
28820 * incpath.c: Likewise.
28821 * mode-switching.c: Likewise.
28823 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
28824 (cris_md_asm_adjust): this.
28825 (TARGET_MD_ASM_CLOBBERS): Remove.
28826 (TARGET_MD_ASM_ADJUST): New.
28827 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
28828 (ix86_md_asm_adjust): this.
28829 (TARGET_MD_ASM_CLOBBERS): Remove.
28830 (TARGET_MD_ASM_ADJUST): New.
28831 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
28832 (mn10300_md_asm_adjust): this.
28833 (TARGET_MD_ASM_CLOBBERS): Remove.
28834 (TARGET_MD_ASM_ADJUST): New.
28835 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
28836 (rs6000_md_asm_adjust): this.
28837 (TARGET_MD_ASM_CLOBBERS): Remove.
28838 (TARGET_MD_ASM_ADJUST): New.
28839 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
28840 (visium_md_asm_adjust): this.
28841 (TARGET_MD_ASM_CLOBBERS): Remove.
28842 (TARGET_MD_ASM_ADJUST): New.
28844 2015-05-11 Richard Henderson <rth@redhat.com>
28846 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
28847 if noutputs is zero.
28848 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
28850 * cfgexpand.c (expand_asm_operands): Merge into...
28851 (expand_asm_stmt): ... here.
28853 * cfgexpand.c (expand_asm_operands): Don't call
28854 resolve_asm_operand_names.
28855 * stmt.c (resolve_asm_operand_names): Clarify block comment.
28857 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
28859 * dwarf2out.c (gen_member_die): Sanity check that we access
28860 TYPE_MAIN_VARIANT for TYPE_METHODS.
28861 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
28862 checking TYPE_METHODS.
28863 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
28865 (build_distinct_type_copy): Clear TYPE_METHODS.
28866 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
28867 (verify_type): Allow TYPE_METHODS to be error_mark_node.
28868 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
28870 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
28872 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
28873 (emit_pattern_before_setloc): Likewise.
28875 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
28877 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
28878 for define_peephole2s.
28879 (get_peephole2_pattern): New function.
28880 (main): Use it. Call validate_pattern.
28882 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
28884 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
28885 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
28886 (Last callee saved reg is different for AVR_TINY architecture)
28888 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
28890 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
28891 when looking for memory references.
28893 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
28896 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
28897 via function pointers.
28899 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
28901 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
28902 indirect call by forcing address into a pseudo with -fno-plt.
28903 * common.opt (flag_plt): New option.
28904 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
28905 ([-fno-plt]): Document.
28907 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
28910 * config/rs6000/option-defaults.h: Add space between string literal
28913 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
28915 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
28916 accross ARM targets.
28918 2015-05-11 Christian Bruel <christian.bruel@st.com>
28920 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
28921 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
28923 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
28925 PR rtl-optimization/66076
28926 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
28927 Don't grow the heap array if it is already big enough from a
28928 previous iteration.
28930 2015-05-11 Christian Bruel <christian.bruel@st.com>
28932 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
28933 (is_called_in_ARM_mode): Remove.
28934 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
28935 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
28936 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
28937 arm_declare_function_name.
28939 2015-05-11 Christian Bruel <christian.bruel@st.com>
28941 * config/arm/arm.c (arm_option_override): Reoganized and split into :
28942 (arm_option_params_internal); New function.
28943 (arm_option_check_internal): New function.
28944 (arm_option_override_internal): New function.
28945 (thumb_code, thumb1_code): Remove.
28946 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
28947 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
28948 (thumb_code, thumb1_code): Remove.
28949 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
28951 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
28953 * config/alpha/alpha.c (alpha_emit_set_const_1)
28954 (alpha_emit_set_long_const, alpha_extract_integer)
28955 (alpha_legitimate_constant_p, alpha_split_const_mov)
28956 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
28957 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
28958 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
28960 * config/alpha/predicates.md (mode_mask_operand): Do not match
28962 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
28963 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
28964 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
28965 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
28966 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
28968 2015-05-11 Jakub Jelinek <jakub@redhat.com>
28971 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
28972 default_binds_local_p_2.
28973 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
28974 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
28976 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
28978 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
28980 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
28982 Patch by Richard Biener
28983 * coverage.c (coverage_obj_init): Delay building of type variant
28984 until the type is finished.
28986 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
28988 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
28989 mismatch between C and C++ type; compoare correctly ARG_TYPES
28990 for non-prototypes and output correctly parameter index for METHOD_TYPE.
28991 (odr_types_equivalent_p): Fix wording of warning about attributes;
28992 it is OK to match prototype and non-prototype.
28994 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
28996 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
28997 TYPE_ARG_TYPES list.
28998 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
28999 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
29001 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29003 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
29004 * tree.h (is_lang_specific): Constify.
29006 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
29008 PR tree-optimization/64454
29009 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
29012 2015-05-08 Jason Merrill <jason@redhat.com>
29014 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
29015 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
29016 config/darwin.h, config/darwin9.h, config/elfos.h,
29017 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
29018 config/microblaze/microblaze.h, config/mips/mips.h,
29019 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
29020 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
29021 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
29022 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
29023 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
29024 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
29025 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
29026 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
29027 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
29028 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
29029 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
29030 between string literal and macro name.
29032 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29034 * jump.c: Change argument types to rtx_insn *.
29037 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29039 * lra-constraints.c: Change argument type to rtx_insn *.
29041 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29043 * df-problems.c: Change argument type to rtx_insn *.
29045 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29047 * combine.c: Change argument type to rtx_insn *.
29049 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29052 * rtlanal.c: Change argument type to rtx_insn *.
29054 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29056 * sched-deps.c: Change argument types to rtx_insn *.
29057 * sched-int.h: Adjust.
29059 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29061 * dwarf2cfi.c: Change argument type to rtx_insn *.
29063 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29065 * ira.c (decrease_live_ranges_number): Changetype of local
29066 variable to rtx_insn *.
29067 * recog.c: Change argument types to rtx_insn *.
29070 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29072 * reorg.c: Change argument types to rtx_insn *.
29074 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29076 * ira-color.c: Change argument types to rtx_insn *.
29077 * lra-eliminations.c: Likewise.
29080 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29082 * gcse.c: Change argument types to rtx_insn *.
29084 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29086 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
29088 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29090 * emit-rtl.c (emit_debug_insn_before): Change argument type to
29094 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29096 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
29099 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29101 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
29104 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29106 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
29109 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29111 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
29114 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29116 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
29120 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29122 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
29126 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29128 * except.c (can_nonlocal_goto): Change type of argument to
29132 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29134 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
29137 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29139 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
29140 * cfgrtl.c (can_delete_label_p): Adjust.
29143 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29145 * reorg.c (stop_search_p): Change argument to rtx_insn *.
29147 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29149 * except.c (make_reg_eh_region_note): Change argument to
29151 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
29152 * except.h: Adjust.
29154 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29156 * mode-switching.c (commit_mode_sets): Change type of local
29157 variable from rtx to rtx_insn *.
29159 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
29161 * doc/install.texi (--enable-languages): Add missing jit and lto info.
29162 Add ^ to grep command.
29163 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
29164 arg to last gimple_simplify declaration. Add missing gimple_build
29165 declaration for built-in function case with four tree args.
29167 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
29168 Szabolcs Nagy <szabolcs.nagy@arm.com>
29170 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
29171 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
29172 (GNU_USER_DYNAMIC_LINKERN32): Update.
29174 2015-05-08 Richard Biener <rguenther@suse.de>
29176 PR tree-optimization/66036
29177 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
29178 Handle strided group loads.
29179 (vect_verify_datarefs_alignment): Likewise.
29180 (vect_enhance_data_refs_alignment): Likewise.
29181 (vect_analyze_group_access): Likewise.
29182 (vect_analyze_data_ref_access): Likewise.
29183 (vect_analyze_data_ref_accesses): Likewise.
29184 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
29185 (vectorizable_load): Likewise.
29187 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
29189 * config/rs6000/rs6000.md: Require operand inequality in one
29192 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
29193 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
29195 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
29197 * config/rx/rx.md (movdi, movdf): Likewise.
29198 Likewise for define_peephole2s.
29200 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
29202 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
29203 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
29204 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
29205 vtst_u64): Rewrite using gcc vector extensions.
29207 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
29209 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
29210 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
29212 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
29214 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
29216 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
29218 * config/glibc-stdint.h (OPTION_MUSL): Define.
29219 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
29220 Change the definition based on OPTION_MUSL for 64 bit targets.
29221 * config/linux.h (OPTION_MUSL): Redefine.
29222 * config/alpha/linux.h (OPTION_MUSL): Redefine.
29223 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
29224 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
29226 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
29227 Szabolcs Nagy <szabolcs.nagy@arm.com>
29229 * config.gcc (LIBC_MUSL): New tm_defines macro.
29230 * config/linux.h (OPTION_MUSL): Define.
29231 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
29232 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
29233 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29234 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29235 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29236 * config/linux.opt (mmusl): New option.
29237 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
29238 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29239 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29240 * configure: Regenerate.
29242 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
29243 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29246 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
29247 * config/i386/knetbsd-gnu64.h: New file.
29249 2015-05-08 Marek Polacek <polacek@redhat.com>
29252 * doc/invoke.texi: Document -Woverride-init-side-effects.
29254 2015-05-07 Marek Polacek <polacek@redhat.com>
29257 * doc/invoke.texi: Document -Wshift-negative-value.
29259 2015-05-06 Aditya Kumar <hiraditya@msn.com>
29261 * gcov-tool.c (do_merge): Refactore to remove int ret.
29262 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
29263 !type == FUNC to type != FUNC.
29264 * reload.h (struct target_reload): Changee to type of
29265 x_spill_indirect_levels from bool to unsigned char.
29267 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
29269 * rtl.h (always_void_p): New function.
29270 * gengenrtl.c (always_void_p): Likewise.
29271 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
29272 with code foo are always VOIDmode.
29273 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
29274 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
29275 compare-elim.c, config/aarch64/aarch64.c,
29276 config/aarch64/aarch64.md, config/alpha/alpha.c,
29277 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
29278 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
29279 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
29280 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
29281 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
29282 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
29283 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
29284 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
29285 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
29286 config/ia64/vect.md, config/iq2000/iq2000.c,
29287 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
29288 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
29289 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
29290 config/mep/mep.c, config/microblaze/microblaze.c,
29291 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
29292 config/mn10300/mn10300.c, config/msp430/msp430.c,
29293 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
29294 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
29295 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
29296 config/rs6000/altivec.md, config/rs6000/rs6000.c,
29297 config/rs6000/rs6000.md, config/rs6000/vector.md,
29298 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
29299 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
29300 config/sh/sh.md, config/sh/sh_treg_combine.cc,
29301 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
29302 config/spu/spu.md, config/stormy16/stormy16.c,
29303 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
29304 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
29305 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
29306 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
29307 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
29308 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
29309 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
29310 var-tracking.c: Update calls accordingly.
29312 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
29315 PR middle-end/54303
29316 * varasm.c (function_mergeable_rodata_prefix): New function.
29317 (mergeable_string_section): Use it.
29318 (mergeable_constant_section): Use it.
29320 2015-05-07 Jeff Law <law@redhat.com>
29323 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29324 simplifier to narrow arithmetic.
29325 * generic-match-head.c: (types_match, single_use): New functions.
29326 * gimple-match-head.c: (types_match, single_use): New functions.
29328 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29330 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
29333 2015-05-07 Richard Biener <rguenther@suse.de>
29335 PR tree-optimization/66002
29336 * passes.def: Schedule another pass_merge_phi after ifcombine, right
29339 2015-05-07 Marek Polacek <polacek@redhat.com>
29340 Martin Uecker <uecker@eecs.berkeley.edu>
29342 * doc/invoke.texi: Document -fsanitize=bounds-strict.
29343 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
29344 into SANITIZE_NONDEFAULT.
29345 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
29347 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
29350 * config/alpha/alpha.c (alpha_override_options_after_change): New.
29351 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
29352 (alpha_override_options): Move align_loops, align_jumps and
29353 align_functions handling into alpha_override_options_after_change.
29355 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
29356 Chris Jones <chrisj@nvidia.com>
29357 Joshua Conner <jconner@nvidia.com>
29359 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
29360 linking of crtfastmath.o.
29361 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
29363 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
29365 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
29366 (cstore<mode>4_unsigned_imm): New expander.
29367 (cstore<mode>4): Remove empty constraint strings. Use the new
29370 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
29373 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
29376 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
29378 * config/aarch64/geniterators.sh: Use standard BRE in sed.
29380 2015-05-06 Alan Modra <amodra@gmail.com>
29383 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
29384 (UNSPEC_NOP): Define.
29385 (reload_vsx_from_gpr<mode>): Add missing DONE.
29386 (reload_gpr_from_vsx<mode>): Likewise.
29387 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
29388 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
29390 2015-05-06 Christian Bruel <christian.bruel@st.com>
29393 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
29394 align_jumps, align_functions into aarch64_override_options_after_change.
29396 2015-05-06 Richard Biener <rguenther@suse.de>
29398 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
29399 vect_transform_slp_perm_load to check if we support a permutation
29400 for basic-block vectorization.
29402 2015-05-06 Nick Clifton <nickc@redhat.com>
29404 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
29405 used, even if it is not being used as a frame pointer.
29407 2015-05-05 Jason Merrill <jason@redhat.com>
29409 * dwarf2out.c (gen_member_die): Don't emit anything for an
29410 anonymous class constructor.
29412 2015-05-05 David Malcolm <dmalcolm@redhat.com>
29414 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
29415 that it reflects the block structure.
29416 (afdo_propagate_edge): Likewise.
29417 (afdo_calculate_branch_prob): Likewise.
29418 (afdo_annotate_cfg): Likewise.
29419 * cfgcleanup.c (equal_different_set_p): Likewise.
29420 (try_crossjump_to_edge): Likewise.
29421 * cgraph.c (cgraph_node::verify_node): Likewise.
29422 * cgraphunit.c (expand_all_functions): Likewise.
29423 * config/i386/i386.c (ix86_expand_copysign): Likewise.
29424 (exact_dependency_1): Likewise.
29425 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
29426 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
29427 * gensupport.c (process_define_subst): Likewise.
29428 * lto-wrapper.c (merge_and_complain): Likewise.
29429 * tree-if-conv.c (if_convertible_bb_p): Likewise.
29430 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
29431 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
29432 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
29433 * tree-vect-loop.c (vectorizable_reduction): Likewise.
29434 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
29435 * tree-vect-stmts.c (vectorizable_shift): Likewise.
29436 * tree-vrp.c (vrp_finalize): Likewise.
29437 * tree.c (variably_modified_type_p): Likewise.
29439 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
29441 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
29442 on darwin12 and later.
29443 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
29444 file to pass -rdynamic on darwin12 and later.
29445 * config/darwin.opt (rdynamic): Add.
29447 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29449 * doc/extend.texi (C Extensions): Update menu for moved Variable
29450 Attributes and Type Attributes sections.
29452 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29455 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
29456 if rep_8byte stringop strategy was specified for 32-bit target.
29458 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
29461 * config/i386/i386.md (vector convert to float spltiter): Check for
29462 xmm16+, when splitting scalar float conversion.
29463 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
29465 2015-05-05 Nick Clifton <nickc@redhat.com>
29467 * config/msp430/msp430-opts.h (enum msp430_regions): New.
29468 * config/msp430/msp430.c (msp430_override_options): Complain if
29469 -mcode-region or -mdata-region is used on a non MSP430X.
29470 (msp430_section_attr): New function. Checks lower, upper and
29472 (msp430_attribute_table): Add lower, upper and either.
29473 (gen_prefix): New function. Generates a prefix for a section
29475 (msp430_select_section): New function - handles the choice of
29476 section for an object. Takes into account memory region
29477 attributes and options.
29478 (msp430_function_section): Use gen_prefix.
29479 (TARGET_SECTION_TYPE_FLAGS): Define.
29480 (msp430_section_type_flags): New function.
29481 (TARGET_ASM_UNIQUE_SECTION): Define.
29482 (msp430_unique_section): New function.
29483 (msp430_output_aligned_decl_common): New function.
29484 (msp430_do_not_relax_short_jumps): New function.
29485 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
29487 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
29488 * config/msp430/msp430-protos.h
29489 (msp430_do_not_relax_short_jumps): New prototype.
29490 (msp430_output_aligned_decl_common): New prototype.
29491 * config/msp430/msp430.md (length): New attribute.
29492 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
29493 then use a long code sequence for short jumps.
29494 * config/msp430/msp430.opt (mcode-region): New.
29495 (mdata-region): New.
29496 * doc/invoke.texi: Document new options.
29497 * doc/extend.texi: Document new attributes.
29499 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
29501 * config/aarch64-protos.h (struct cpu_branch_cost): New.
29502 (tune_params): Add field branch_costs.
29503 (aarch64_branch_cost): Declare.
29504 * config/aarch64.c (generic_branch_cost): New.
29505 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
29506 (cortexa53_tunings): Likewise.
29507 (cortexa57_tunings): Likewise.
29508 (thunderx_tunings): Likewise.
29509 (xgene1_tunings): Likewise.
29510 (aarch64_branch_cost): Define.
29511 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
29513 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29515 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
29516 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
29517 * config/i386/i386.md: Ditto.
29518 * config/i386/winnt.c: Ditto.
29520 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
29522 * doc/extend.texi (__atomic Builtins): Move implementation details
29523 to the end of the description, rewrite opening paragraphs, state
29524 difference with __sync builtins, state C11/C++11 assumptions,
29525 weaken itemized descriptions, add explanation of memory model
29526 behaviour, expand description of compare-exchange, simplify text.
29528 2015-05-05 Renlin Li <renlin.li@arm.com>
29530 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
29532 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
29534 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
29535 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
29536 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
29537 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
29538 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
29539 * configure: Regenerate.
29540 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
29541 * doc/install.texi (aarch64*-*-*): Document new
29542 --enable-fix-cortex-a53-843419 option.
29543 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
29544 and -mno-fix-cortex-a53-843419 options.
29546 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29549 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
29551 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
29553 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
29554 fix overactive TYPE_MIN_VALUE check and add FIXME for type
29555 compatibility problems.
29557 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
29559 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
29561 (cbranchsi4_reg): New.
29562 * config/microblaze/microblaze.c
29563 (microblaze_expand_conditional_branch_reg): New.
29564 * config/microblaze/microblaze-protos.h
29565 (microblaze_expand_conditional_branch_reg): New prototype.
29567 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
29569 * config/microblaze/microblaze.md (peephole2): New.
29571 2015-05-04 Jeff Law <law@redhat.com>
29574 2015-05-04 Jeff Law <law@redhat.com>
29576 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29577 simplifier to narrow arithmetic.
29578 * generic-match-head.c: (types_match, single_use): New functions.
29579 * gimple-match-head.c: (types_match, single_use): New functions.
29581 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
29584 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
29585 (split_branches): Likewise.
29587 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
29589 * common.opt (fdelete-null-pointer-checks): Init to -1.
29590 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
29591 override flag_delete_null_pointer_checks default.
29592 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
29593 behavior re address zero. Better document target-specific behavior.
29594 (-fisolate-errneous-paths-dereference): Mention relationship to
29595 -fdelete-null-pointer-checks.
29597 2015-05-04 Jakub Jelinek <jakub@redhat.com>
29599 PR tree-optimization/65984
29600 * ubsan.c: Include tree-cfg.h.
29601 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
29602 stmt_could_throw_p test, rename can_throw variable to ends_bb.
29604 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
29606 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
29607 to CONST_DOUBLE_P predicate.
29608 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
29609 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
29610 allow only operands that satisfy standard_sse_constant_p predicate.
29611 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
29612 to CONST_DOUBLE_P predicate.
29614 2015-05-04 Jeff Law <law@redhat.com>
29616 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29617 simplifier to narrow arithmetic.
29618 * generic-match-head.c: (types_match, single_use): New functions.
29619 * gimple-match-head.c: (types_match, single_use): New functions.
29621 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
29623 * config/arm/arm.c: Restore bootstrap.
29625 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
29627 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
29628 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
29629 as CONST_WIDE_INT, not CONST_DOUBLE.
29630 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
29631 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
29632 (ix86_find_base_term): Do not check for CONST_DOUBLE.
29633 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
29634 (ix86_build_signbit_mask): Rewrite using wide ints.
29635 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
29636 (ix86_rtx_costs): Handle CONST_WIDE_INT.
29637 (find_constant): Ditto.
29638 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
29639 using gen_int_mode.
29640 * config/i386/predicates.md (x86_64_immediate_operand)
29641 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
29642 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
29643 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
29644 (const0_operand): Also match const_wide_int.
29645 (constm1_operand): Ditto.
29646 (const1_operand): Ditto.
29648 2015-05-04 Richard Biener <rguenther@suse.de>
29650 PR tree-optimization/65965
29651 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
29652 store groups at gaps.
29654 2015-05-04 Richard Biener <rguenther@suse.de>
29656 PR tree-optimization/65935
29657 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
29658 then make sure to apply that swapping to the IL.
29660 2015-05-04 Jakub Jelinek <jakub@redhat.com>
29662 * Makefile.in (PATCHLEVEL_c): New variable.
29663 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
29664 expand the same way as if DEVPHASE_c was non-empty.
29666 2015-05-04 Kai Tietz <ktietz@redhat.com>
29669 * lto-wrapper.c (run_gcc): Open filename
29672 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
29674 * doc/extend.texi (Variable Attributes, Type Attributes): Move
29675 sections up in file, to immediately after the Function Attributes
29678 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
29680 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
29682 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29684 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
29685 (insert_partition_copy_on_edge): Adjust.
29686 (insert_rtx_to_part_on_edge): Likewise.
29687 (insert_part_to_rtx_on_edge): Likewise.
29689 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29691 * function.c (set_return_jump_label): Change type of argument to
29693 * function.h (set_return_jump_label): Adjust.
29695 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29697 * reload.h (struct reg_equivs_t): Change type of init to
29699 * ira.c (fix_reg_equiv_init): Adjust.
29700 * reload1.c (eliminate_regs_1): Likewise.
29701 (init_eliminable_invariants): Likewise.
29703 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29705 * cselib.c (fp_setter_insn): Take a rtx_insn *.
29706 * cselib.h (fp_setter_insn): Adjust.
29708 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29710 * recog.c (struct validate_replace_src_data): Change type of
29711 insn field to rtx_insn *.
29712 (validate_replace_src_group): Change type of argument to rtx_insn *.
29713 * recog.h (validate_replace_src_group): Adjust.
29715 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29717 * haifa-sched.c: Change the type of some variables to rtx_insn *.
29718 * sched-deps.c: Likewise.
29719 * sched-int.h: Likewise.
29720 * sched-rgn.c: Likewise.
29721 * sel-sched.c: Likewise.
29723 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29726 * config/i386/i386.c: Change the type of some arguments to
29728 * config/arm/arm.c: Likewise.
29730 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29732 * lra-constraints.c: Change type of some arguments to rtx_insn *.
29734 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29736 * regcprop.c (kill_autoinc_value): Change type of argument to
29739 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29741 * genrecog.c (print_subroutine): Adjust.
29742 * recog.c (get_bool_attr_mask_uncached): Likewise.
29743 * recog.h (struct recog_data_d): Change the type of insn to
29746 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29748 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
29750 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29752 * df-problems.c (df_set_note): Change type of argument to
29755 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29757 * builtins.c (expand_builtin_trap): Change type of local
29758 variable to rtx_insn *.
29759 (add_sched_insns_for_speculation): Likewise.
29760 (ix86_emit_save_regs): Likewise.
29761 (get_scratch_register_on_entry): Likewise.
29762 (ix86_emit_restore_reg_using_pop): Likewise.
29763 (ix86_emit_leave): Likewise.
29764 (ix86_emit_restore_regs_using_mov): Likewise.
29765 (ix86_expand_epilogue): Likewise.
29767 (rl78_alloc_physical_registers_umul): Likewise.
29768 * cselib.c (discard_useless_locs): Likewise.
29769 (cselib_invalidate_regno): Likewise.
29770 (cselib_invalidate_mem): Likewise.
29771 * function.c (expand_function_start): Likewise.
29772 (emit_use_return_register_into_block): Likewise.
29773 * gcse.c: Likewise.
29774 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
29775 * ifcvt.c (noce_get_alt_condition): Likewise.
29776 * loop-doloop.c (doloop_condition_get): Likewise.
29777 * lra-constraints.c (inherit_in_ebb): Likewise.
29778 * modulo-sched.c (sms_schedule_by_order): Likewise.
29779 * recog.c (next_insn_tests_no_inequality): Likewise.
29780 * reorg.c (emit_delay_sequence): Likewise.
29781 (update_reg_dead_notes): Likewise.
29782 (fix_reg_dead_note): Likewise.
29783 (fill_slots_from_thread): Likewise.
29784 (delete_computation): Likewise.
29786 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
29788 * doc/extend.texi (Variable Attributes): Add menu and proper
29789 @nodes to subsections. Move Microsoft Windows attributes to
29790 their own subsection.
29791 (Type Attributes): Reorganize introduction to remove duplicate
29792 list of attributes. Add menu and proper @nodes to subsections.
29793 Alphabetize the main table of common attributes.
29795 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
29797 * match.pd: New simplification patterns.
29798 (x + (x & 1)) -> ((x + 1) & ~1)
29799 (x & ~(x & y)) -> ((x & ~y))
29800 (x | ~(x | y)) -> ((x | ~y))
29802 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29804 * target.def (attribute_table): Mention that struct attribute_spec
29805 is defined in tree-core.h rather than tree.h
29806 * doc/tm.texi: Regenerate.
29808 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
29810 * genrecog.c (test): Rename to rtx_test. Update rest of file
29813 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
29815 PR translation/65959
29816 * params.h (DEFPARAM): Rename msgid to nocmsgid.
29818 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
29820 * config/aarch64/aarch64-protos.h (tune_params):
29821 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
29822 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
29823 Return value depending on target.
29824 (generic_tunings): Initialize new target settings.
29825 (cortexa53_tunings): Likewise.
29826 (cortexa57_tunings): Likewise.
29827 (thunderx_tunings): Likewise.
29828 (xgene1_tunings): Likewise.
29830 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
29832 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
29833 Make Cortex-A53 shift costs more accurate.
29835 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29837 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
29840 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
29842 * config/aarch64/aarch64.c (aarch64_rtx_costs):
29843 Calculate cost of op0 and op1 in PLUS and MINUS cases.
29845 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29847 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
29848 Add cost of op0 in the compare-with-fpzero case.
29850 2015-04-30 David Malcolm <dmalcolm@redhat.com>
29852 * builtins.c (fold_builtin_1): Remove spurious second
29854 * cgraph.h (symtab_node::get_availability): Likewise.
29855 * opts.c (common_handle_option): Remove spurious second semicolon.
29856 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
29857 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
29859 2015-04-30 Caroline Tice <cmtice@google.com>
29861 PR gcov-profile/65929
29862 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
29863 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
29864 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
29865 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
29866 * doc/tm.texi: Regenerate.
29867 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
29868 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
29869 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
29870 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
29872 2015-04-30 Marek Polacek <polacek@redhat.com>
29874 * varasm.c (handle_cache_entry): Fix logic.
29876 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29878 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
29879 (*extrsi5_insn_uxtw_alt): Likewise.
29880 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
29881 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
29884 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29886 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
29889 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29891 * config/aarch64/aarch64.md
29892 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
29893 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
29894 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
29895 appropriately. Handle alternative EON form.
29897 2015-04-30 Renlin Li <renlin.li@arm.com>
29899 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
29900 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
29902 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
29905 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
29906 -fstrict-aliasing boundaries.
29908 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29910 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
29911 and [SU]MNEGL patterns.
29913 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29915 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
29916 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
29917 combined arithmetic-shift ops. Properly handle all shift and extend
29918 operations that can occur in combination with PLUS/MINUS.
29919 Rename maybe_fma to compound_p.
29920 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
29921 arithmetic and shift operations.
29923 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29925 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
29926 rather than arith_shift cost when costing ADD/MINUS of an
29929 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
29932 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
29935 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
29937 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
29938 are for the same position.
29940 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
29942 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
29944 (vectorize_loops): Use it.
29946 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
29948 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
29949 for aggregate types.
29950 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
29951 type to be non_ODR.
29952 * tree.c (need_assembler_name_p): Compute mangled name for
29953 non-fundamental types and integer types.
29955 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
29957 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
29959 * expr.c (expand_expr_real_2): Likewise.
29961 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
29963 * tree.c (build_common_builtin_nodes): Do not build
29964 __builtin_alloca_with_align as equivalent of library alloca.
29966 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
29968 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
29969 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
29971 * tree.c: Include print-tree.h and ipa-utils.h
29972 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
29973 (free_lang_data_in_cgraph): Call verify_type.
29974 (verify_type_variant): New function.
29975 (verify_type): New function.
29976 * tree.h (verify_type): Declare.
29978 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
29980 * config/mips/mips-cpus.def: (mips4): Change default processor
29981 from PROCESSOR_R8000 to PROCESSOR_R10000.
29983 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
29985 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
29986 la/jalr instead of jal.
29988 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
29991 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
29992 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
29993 (setcc+movzbl peephole2): Check also clobbered reg.
29994 (setcc+andl peephole2): Ditto.
29996 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
29999 * config/nvptx/mkoffload.c (target_ilp32): New variable.
30000 (main): Set it depending on "-foffload-abi=[...]".
30001 (compile_native, main): Use it to pass "-m32" or "-m64" to the
30004 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
30007 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
30008 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
30009 Flip lane index back at assembly time for bigendian.
30011 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
30013 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
30014 * gimplify.c (gimplify_omp_workshare): Use it.
30016 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30018 * Makefile.in (build/genrecog.o): Depend on inchash.h.
30019 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
30021 * genrecog.c: Rewrite most of the code except for the third page.
30023 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30025 * inchash.h, inchash.c: Include bconfig.h for build objects.
30026 * Makefile.in (build/inchash.o): New rule.
30028 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
30031 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
30032 number in type attribute expression.
30034 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30036 * loop-iv.c (canon_condition): Generalize to all types of integer
30039 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
30041 * gimple-walk.c: Prune duplicate or unneeded includes.
30042 (walk_gimple_asm): Only call parse_input_constraint or
30043 parse_output_constraint if their findings are used.
30044 Honour parse_input_constraint and parse_output_constraint
30047 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
30049 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
30051 2015-04-29 Tom de Vries <tom@codesourcery.com>
30053 PR tree-optimization/65893
30054 * passes.def (pass_all_optimizations): Move pass_stdarg to after
30057 2015-04-29 Richard Biener <rguenther@suse.de>
30059 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
30060 compute GROUP_SIZE for basic-block SLP.
30061 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
30062 take into account gaps.
30063 (vect_get_mask_element): Properly reject references to previous
30065 (vect_transform_slp_perm_load): Likewise.
30067 2015-04-29 Christian Bruel <christian.bruel@st.com>
30070 * config/i386/i386.c (ix86_default_align): New function.
30071 (ix86_override_options_after_change): Call ix86_default_align.
30072 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
30073 (ix86_override_options_after_change): New function.
30075 2015-04-28 Jeff Law <law@redhat.com>
30077 * tree-ssa-dom.c (record_equality); Fix comment typos.
30079 2015-04-28 Tom de Vries <tom@codesourcery.com>
30081 PR tree-optimization/65887
30082 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
30084 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
30086 * doc/extend.texi (Declaring Attributes of Functions): Split into
30087 subsections by target. Alphabetize the table of common attributes.
30088 Rewrite some of the introductory text to reflect the new structure.
30089 Update some cross-references to point to the new subsections.
30090 (Attribute Syntax): Put paragraph about "__" naming here. Remove
30091 duplicate copies in the discussion of function, label, and type
30094 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
30097 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
30099 2015-04-28 Jason Merrill <jason@redhat.com>
30102 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
30103 (finalize_type_size): Respect TYPE_USER_ALIGN.
30104 (layout_type) [ARRAY_TYPE]: Likewise.
30106 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
30108 * config/arm/arm.md (*arm_movt): Fix type attribute.
30109 (*cmpsi_shiftsi): Likewise.
30110 (*cmpsi_shiftsi_swp): Likewise.
30111 (*movsicc_insn): Likewise.
30112 (*cond_move): Likewise.
30113 (*if_plus_move): Likewise.
30114 (*if_move_plus): Likewise.
30115 (*if_arith_move): Likewise.
30116 (*if_move_arith): Likewise.
30117 (*if_shift_move): Likewise.
30118 (*if_move_shift): Likewise.
30119 (*arm_movtas_ze): Likewise.
30120 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
30121 redundancy and type attribute.
30122 (*thumb2_movsi_insn): Fix type attribute.
30123 (*thumb2_addsi_short): Likewise.
30124 (thumb2_addsi3_compare0): Likewise.
30125 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
30126 attributes accordingly.
30128 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
30131 * function.c (pad_to_arg_alignment): Add parentheses.
30133 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
30135 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
30136 libgcc/config/frv/elf-lib.h.
30138 2015-04-28 Tom de Vries <tom@codesourcery.com>
30140 * tree-call-cdce.c: Fix example in header comment.
30142 2015-04-28 Richard Biener <rguenther@suse.de>
30144 PR tree-optimization/62283
30145 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
30146 fails fatally and we are vectorizing a basic-block simply
30147 cause the child to be constructed piecewise.
30148 (vect_analyze_slp_cost_1): Adjust.
30149 (vect_detect_hybrid_slp_stmts): Likewise.
30150 (vect_bb_slp_scalar_cost): Likewise.
30151 (vect_get_constant_vectors): For piecewise constructed
30152 constants place them after the last def.
30153 (vect_get_slp_defs): Adjust.
30154 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
30155 externals for basic-block vectorization.
30157 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
30160 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
30162 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
30163 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
30164 (AARCH64_TUNE_FMA_STEERING): Likewise.
30165 * config/aarch64/aarch64-cores.def: Set
30166 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
30167 FMUL/FMADD instructions.
30168 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
30169 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
30170 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
30171 * config/aarch64/cortex-a57-fma-steering.h: New file.
30172 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
30174 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
30176 * gensupport.c (std_preds): Add missing codes to address_operand entry.
30178 2015-04-28 Richard Biener <rguenther@suse.de>
30180 PR tree-optimization/65851
30181 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
30182 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
30183 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
30184 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
30185 (ccp_visit_phi_node): Adjust.
30186 (evaluate_stmt): For simplifications to SSA names return its
30187 lattice value if that isn't VARYING. Return immediately when
30188 simplified to a constant.
30189 (visit_assignment): Adjust.
30190 (ccp_visit_stmt): Likewise.
30192 2015-04-28 Tom de Vries <tom@codesourcery.com>
30194 PR tree-optimization/65818
30195 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
30198 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30200 * calls.c (save_fixed_argument_area): Don't check
30201 ARGS_GROW_DOWNWARD with the preprocessor.
30202 (restore_fixed_argument_area): Likewise.
30203 (mem_overlaps_already_clobbered_arg_p): Likewise.
30204 (check_sibcall_argument_overlap): Likewise.
30205 (expand_call): Likewise.
30206 (emit_library_call_value_1): Likewise.
30207 (store_one_arg): Likewise.
30208 * function.c (assign_parms): Likewise.
30209 (locate_and_pad_parm): Likewise.
30210 (pad_to_arg_alignment): Likewise.
30211 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
30213 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30215 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
30216 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
30217 * calls.c (save_fixed_argument_area): Don't chekc if
30218 ARGS_GROW_DOWNWARD is defined.
30219 (restore_fixed_argument_area): Likewise.
30220 (mem_overlaps_already_clobbered_arg_p): Likewise.
30221 (check_sibcall_argument_overlap): Likewise.
30222 (expand_call): Likewise.
30223 (emit_library_call_value_1): Likewise.
30224 (store_one_arg): Likewise.
30225 * function.c (assign_parms): Likewise.
30226 (locate_and_pad_parm): Likewise.
30227 (pad_to_arg_alignment): Likewise.
30228 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
30230 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30232 * defaults.h (gen_epilogue): New function.
30233 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
30235 * cfgrtl.c (cfg_layout_finalize): Likewise.
30236 * df-scan.c: Likewise.
30237 * function.c (thread_prologue_and_epilogue_insns): Likewise.
30238 (reposition_prologue_and_epilogue_notes): Likewise.
30239 * reorg.c (find_end_label): Likewise.
30240 * toplev.c: Likewise.
30242 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30244 * bb-reorder.c (HAVE_return): Don't check if its undefined.
30245 * defaults.h (gen_simple_return): New function.
30246 (gen_simple_return): Likewise.
30247 (HAVE_return): Add default definition to false.
30248 (HAVE_simple_return): Likewise.
30249 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
30250 HAVE_return and HAVE_simple_return are defined.
30251 * function.c (gen_return_pattern): Likewise.
30252 (convert_jumps_to_returns): Likewise.
30253 (thread_prologue_and_epilogue_insns): Likewise.
30254 * reorg.c (find_end_label): Likewise.
30255 (dbr_schedule): Likewise.
30256 * shrink-wrap.c: Likewise.
30257 * shrink-wrap.h: Likewise.
30259 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30261 * defaults.h (EPILOGUE_USES): Add default definition of false.
30262 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
30263 * resource.c (init_resource_info): Likewise.
30265 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30267 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
30269 * dwarf2out.c (field_byte_offset): REmove check if
30270 PCC_BITFIELD_TYPE_MATTERS is defined.
30271 * stor-layout.c (layout_decl): Likewise.
30272 (update_alignment_for_field): Likewise.
30273 (place_field): Likewise.
30275 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30277 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
30279 * regrename.c (check_new_reg_p): Remove check if
30280 HARD_REGNO_RENAME_OK is defined.
30281 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
30283 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30285 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
30286 * cse.c (fold_rtx): Likewise.
30287 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
30288 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
30289 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
30290 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
30291 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
30292 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
30293 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
30294 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
30295 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
30296 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
30298 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
30299 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
30300 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
30301 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
30302 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
30303 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
30304 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
30305 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
30306 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
30307 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
30308 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
30309 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
30310 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
30311 * doc/tm.texi: Regenerate.
30312 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
30313 either true or false.
30315 2015-04-27 Jeff Law <law@redhat.com>
30317 PR tree-optimization/65217
30318 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
30319 of them has a single use, make sure it is the LHS of the implied
30322 2015-04-28 Alan Modra <amodra@gmail.com>
30325 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
30326 (offsettable_ok_by_alignment): Use minimum of decl and toc
30327 pointer alignment. Replace dead code with assertion.
30328 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
30329 case if size exceeds toc pointer alignment.
30330 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
30331 (rs6000_emit_move): Likewise.
30332 * configure.ac: Add linker toc pointer alignment check.
30333 * configure: Regenerate.
30334 * config.in: Regenerate.
30336 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
30338 * config.gcc: Add h8300-*-linux.
30339 * config/h8300/linux.h: New.
30340 * config/h8300/t-linux: New.
30341 * config/h8300/h8300.c (h8300_option_override): Normal mode
30342 is not supported for h8300-*-linux.
30343 (h8300_file_start): Target priority change.
30344 (get_shift_alg): Likewise.
30345 (h8300_shift_need_scratch_p): Likewise.
30346 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
30347 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
30349 2015-04-27 Caroline Tice <cmtice@google.com>
30351 * final.c (final_scan_insn): Output cold_function_name as function
30353 * varasm.c (cold_function_name): Make global.
30354 (assemble_start_function): Re-set cold_function_name.
30355 (assemble_end_function): Output cold partition size.
30356 * varasm.h (cold_function_name): Declare global.
30358 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
30360 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
30361 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
30363 (*movxi_internal_avx512f): Ditto.
30364 (define_split): Check for xmm16+, when splitting scalar float_extend.
30365 (*extendsfdf2_mixed): Use "v" constraint.
30366 (define_split): Check for xmm16+, when splitting scalar float_truncate.
30367 (*truncdfsf_fast_sse): Use "v" constraint.
30368 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
30369 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
30370 (define_peephole2): Check for xmm16+, when converting scalar
30372 (define_peephole2): Check for xmm16+, when converting scalar
30374 (*fop_<mode>_comm_mixed): Use "v" constraint.
30375 (*fop_<mode>_comm_sse): Ditto.
30376 (*fop_<mode>_1_mixed): Ditto.
30377 (*sqrt<mode>2_sse): Ditto.
30378 (*ieee_s<ieee_maxmin><mode>3): Ditto.
30380 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30382 * combine.c (simplify_if_then_else): Use std::swap instead
30383 of manually swapping.
30384 (known_cond): Likewise.
30385 (simplify_comparison): Likewise.
30387 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
30390 * config/rs6000/htm.md: Remove all define_expands.
30391 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
30392 UNSPECV_HTM_TABORTWCI): Remove.
30393 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
30394 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
30395 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
30396 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
30397 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
30398 tabortwci_internal): Remove define_insns.
30399 (tabort<wd>c, tabort<wd>ci): New define_insns.
30400 (tabort): Use gpc_reg_operand.
30401 (tcheck): Remove operand.
30402 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
30403 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
30405 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
30406 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
30407 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
30408 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
30409 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
30410 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
30411 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
30412 (tcheck): Remove builtin argument.
30413 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
30415 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
30416 tabortdc and tabortdci builtins when not in 64-bit mode.
30417 Modify code to handle the loss of the HTM define_expands.
30418 Emit code to copy the CR register to TARGET.
30419 (htm_init_builtins): Modify code to handle the loss of the HTM
30421 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
30422 (RS6000_BTC_64BIT): Likewise.
30423 (RS6000_BTC_CR): New macro.
30424 * doc/extend.texi: Update documentation for htm builtins.
30426 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30428 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
30429 of manually swapping.
30430 (simplify_associative_operation): Likewise.
30431 (simplify_binary_operation): Likewise.
30432 (simplify_plus_minus): Likewise.
30433 (simplify_relational_operation): Likewise.
30434 (simplify_ternary_operation): Likewise.
30436 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
30438 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
30439 (xs_hi_nonmemory_operand): Remove error.
30440 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
30441 general_operand rather than xs_hi_general_operand.
30443 2015-04-27 Richard Biener <rguenther@suse.de>
30445 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
30446 (record_equivalences_from_stmt): Valueize rhs.
30447 (record_equality): Canonicalize x and y order via
30448 tree_swap_operands_p. Do not swap operands for same loop depth.
30450 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
30454 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
30455 Add hint how to use own spec file.
30457 2015-04-27 Jakub Jelinek <jakub@redhat.com>
30459 PR tree-optimization/65875
30460 * tree-vrp.c (update_value_range): If in is_new case setting
30461 old_vr to VR_VARYING, also set new_vr to it. Remove
30462 old_vr->type == VR_VARYING test.
30463 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
30464 SSA_PROP_INTERESTING if update_value_range returned true,
30465 but new range is VR_VARYING.
30467 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
30469 * combine.c (sign_extend_short_imm): New.
30470 (set_nonzero_bits_and_sign_copies): Use above new function for sign
30471 extension of src short immediate.
30472 (reg_nonzero_bits_for_combine): Likewise for tem.
30474 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
30476 * stor-layout.c (self_referential_component_ref_p): New predicate.
30477 (copy_self_referential_tree_r): Use it.
30478 (self_referential_size): Punt for simple operations directly involving
30479 self-referential component references.
30480 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
30482 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
30484 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
30486 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
30488 * vec.h (vec): Make splice arguments const. Update definitions
30491 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
30493 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
30496 2015-04-26 Tom de Vries <tom@codesourcery.com>
30498 PR tree-optimization/65826
30499 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
30501 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
30503 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
30504 (*madd3<mode>): Ditto.
30505 (*msub4<mode>): Ditto.
30506 (*msub3<mode>): Ditto.
30507 (*nmadd4<mode>): Ditto.
30508 (*nmadd3<mode>): Ditto.
30509 (*nmadd4<mode>_fastmath): Ditto.
30510 (*nmadd3<mode>_fastmath): Ditto.
30511 (*nmsub4<mode>): Ditto.
30512 (*nmsub3<mode>): Ditto.
30513 (*nmsub4<mode>_fastmath): Ditto.
30514 (*nmsub3<mode>_fastmath): Ditto.
30516 2015-04-24 Jason Merrill <jason@redhat.com>
30519 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
30520 down when building TYPE_CANONICAL.
30521 (build_pointer_type_for_mode): Likewise.
30523 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
30525 * genrecog.c (validate_pattern): Check matching constraint refers
30526 to a lower numbered operand.
30528 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
30531 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
30532 save to independent variables use the Save attribute. This will
30533 allow these options to be modified with the #pragma/attribute
30535 (-mallow-movmisalign): Likewise.
30536 (-mallow-df-permute): Likewise.
30537 (-msched-groups): Likewise.
30538 (-malways-hint): Likewise.
30539 (-malign-branch-targets): Likewise.
30540 (-mvectorize-builtins): Likewise.
30541 (-msave-toc-indirect): Likewise.
30543 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
30544 can be set via the #pragma/attribute target support.
30545 (rs6000_opt_vars): Likewise.
30546 (rs6000_inner_target_options): If VSX was set, also set
30547 -mno-avoid-indexed-addresses.
30549 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30551 * config/arm/iterators.md (shiftable_ops): Rename to...
30552 (SHIFTABLE_OPS): ... This. Update use in comments.
30553 (ior_xor): Rename to...
30554 (IOR_XOR): ... This.
30555 (vqh_ops): Rename to...
30556 (VQH_OPS): ... This.
30557 (vqhs_ops): Rename to...
30558 (VQHS_OPS): ... This.
30559 (rshifts): Rename to...
30560 (RSHIFTS): ... This.
30561 (returns): Rename to...
30562 (RETURNS): ... This.
30563 * config/arm/arm.md: Update uses of the above.
30564 * config/arm/neon.md: Likewise.
30566 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30568 * config.host (case ${host}): Add aarch64*-*-linux case.
30569 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
30570 fields to all the cores.
30571 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
30572 Add MCPU_MTUNE_NATIVE_SPECS.
30573 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
30574 field to all extensions.
30575 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
30576 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
30577 Adjust definition of AARCH64_OPT_EXTENSION.
30578 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
30579 (MCPU_MTUNE_NATIVE_SPECS): Define.
30580 * config/aarch64/driver-aarch64.c: New file.
30581 * config/aarch64/x-arch64: New file.
30582 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
30585 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
30586 Wei Mi <wmi@google.com>
30588 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
30589 * config/i386/i386.c (extract_base_offset_in_addr): New function.
30590 (ix86_operands_ok_for_move_multiple): Ditto.
30591 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
30592 (movlpd/movhpd to movupd peephole2): Ditto.
30594 2015-04-24 Marek Polacek <polacek@redhat.com>
30597 * input.h (from_macro_expansion_at): Define.
30600 * doc/invoke.texi: Update description of -Wlogical-op.
30602 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
30604 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
30605 ternary operator in fprintf and harmonize spacing.
30607 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
30609 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
30610 Mark operand1 commutative.
30612 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
30614 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
30615 input operands in memory.
30616 (*vec_concatv2si_sse4_1): Ditto.
30617 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
30618 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
30620 (vec_extract_hi_v32hi): Ditto.
30621 (vec_extract_hi_v64hi): Ditto.
30622 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
30624 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
30625 Steven Bosscher <steven@gcc.gnu.org>
30627 PR rtl-optimization/34503
30628 * cprop.c (cprop_reg_p): New.
30629 (hash_scan_set): Use above function to check if register can be
30631 (find_avail_set): Return up to two sets, one whose source is a
30632 register and one whose source is a constant. Sets are returned in an
30633 array passed as parameter rather than as a return value.
30634 (cprop_insn): Use a do while loop rather than a goto. Try each of the
30635 sets returned by find_avail_set, starting with the one whose source is
30636 a constant. Use cprop_reg_p to check if register can be propagated.
30637 (do_local_cprop): Use cprop_reg_p to check if register can be
30639 (implicit_set_cond_p): Likewise.
30641 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30643 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
30644 (sem_function::equals): IGNORED_NODES parameter is now unused;
30645 update call of equals_private.
30646 (sem_function::equals_private): Do not call equals_wpa; skip
30647 gimple body matching if there is no body.
30648 (sem_function::init): Add logic to hash tthunk info.
30649 (sem_function::parse): Also parse thunks.
30650 * ipa-icf.h (equals_private): Update declaration.
30652 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30654 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
30655 asterisk from name so this can be generated directly.
30656 (*altivec_stvx_<mode>_internal): Likewise.
30657 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
30658 that this is never called during or after reload/lra.
30659 (rs6000_frame_related): Remove split_reg
30660 argument and logic that references it.
30661 (emit_frame_save): Remove last parameter from call to
30662 rs6000_frame_related.
30663 (rs6000_emit_prologue): Remove last parameter from eight calls to
30664 rs6000_frame_related. Force generation of stvx instruction for
30665 Altivec register saves. Remove split_reg handling, which is no
30667 (rs6000_emit_epilogue): Force generation of lvx instruction for
30668 Altivec register restores.
30670 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30672 * config/rs6000/rs6000.opt (mcrypto): Change option description to
30673 match category changes in ISA 2.07B.
30675 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30677 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
30679 (cmp_op, cmp_type): New code attributes.
30680 (NEON_VCMP, NEON_VACMP): New int iterators.
30681 (cmp_op_unsp): New int attribute.
30682 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
30683 (neon_vceq<mode>): Delete.
30684 (neon_vc<cmp_op><mode>_insn): New pattern.
30685 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
30686 (neon_vcgeu<mode>): Delete.
30687 (neon_vcle<mode>): Likewise.
30688 (neon_vclt<mode>: Likewise.
30689 (neon_vcage<mode>): Likewise.
30690 (neon_vcagt<mode>): Likewise.
30691 (neon_vca<cmp_op><mode>): New define_expand.
30692 (neon_vca<cmp_op><mode>_insn): New pattern.
30693 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
30695 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30697 * tree.h (attribute_value_equal): Declare.
30698 * tree.c (attribute_value_equal): Export.
30700 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30702 * ipa-icf.c (sem_item::compare_attributes): New function.
30703 (sem_item::compare_referenced_symbol_properties): Compare variable
30705 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
30706 (sem_function::param_used_p): New function.
30707 (sem_function::equals_wpa): Fix attribute comparsion; match
30708 parameter type codes; do not compare paremter flags when
30709 they are not used; compare edge flags; compare indirect calls.
30710 (sem_item::update_hash_by_addr_refs): Hash reference type.
30711 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
30712 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
30713 reference use type.
30714 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
30715 * ipa-icf.h (compare_attributes, param_used_p): Declare.
30717 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30719 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
30721 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
30722 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
30723 (sem_item::compare_referenced_symbol_properties): New.
30724 (sem_item::hash_referenced_symbol_properties): New.
30725 (sem_item::compare_cgraph_references): Rename to ...
30726 (sem_item::compare_symbol_references): ... this one; use
30727 compare_referenced_symbol_properties.
30728 (sem_function::equals_wpa): Do not compare
30729 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
30730 DECL_IS_OPERATOR_NEW; compare pointer sizes.
30731 (sem_item::update_hash_by_addr_refs): Call
30732 hash_referenced_symbol_properties.
30733 (sem_item::update_hash_by_local_refs): Cleanup.
30734 (sem_function::merge): Do not mix up symbol properties.
30735 (sem_variable::equals_wpa): Use compare_symbol_references.
30736 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
30737 (sem_item::hash_referenced_symbol_properties): New.
30738 (sem_item::compare_symbol_references): New.
30739 (sem_item::compare_cgraph_references): Remove.
30741 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
30744 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
30745 Emit size of local.
30747 2015-04-23 Nick Clifton <nickc@redhat.com>
30749 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
30750 ATTRIBUTE_UNUSED to x parameter.
30751 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
30753 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30755 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
30756 TARGET_CRYPTO to TARGET_P8_VECTOR>
30757 (crypto_vpermxor_<mode>): Likewise.
30758 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
30759 (BU_CRYPTO_3A): Likewise.
30760 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
30761 (BU_CRYPTO_OVERLOAD_3A): New #define.
30762 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
30763 (VPMSUMH): Likewise.
30764 (VPMSUMW): Likewise.
30765 (VPMSUMD): Likewise.
30766 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
30767 (VPERMXOR_V4SI): Likewise.
30768 (VPERMXOR_V8HI): Likewise.
30769 (VPERMXOR_V16QI): Likewise.
30770 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
30771 BU_CRYPTO_OVERLOAD_2A.
30772 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
30773 BU_CRYPTO_OVERLOAD_3A.
30774 * config/rs6000/rs6000.opt (mcrypto): Change description of
30777 2015-04-23 Richard Biener <rguenther@suse.de>
30779 * passes.def: Remove copy propagation passes run directly after CCP.
30780 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
30782 (ccp_visit_phi_node): Rework to handle first executable edge
30785 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
30787 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
30788 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
30789 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
30790 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
30791 (thumb_legimitimize_reload_address): Remove.
30792 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
30794 (thumb_legimitimize_reload_address): Remove.
30796 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30798 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
30800 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30802 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
30804 (store_multiple): Likewise.
30806 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30808 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
30809 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
30810 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
30811 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
30812 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
30813 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
30814 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
30815 Specify issue_rate value.
30816 (arm_issue_rate): Look up issue rate from tuning structs. Remove
30817 large switch statement.
30818 (arm_marvell_pj4_tune): New struct.
30819 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
30822 2015-04-23 Richard Biener <rguenther@suse.de>
30824 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
30825 (vect_find_last_store_in_slp_instance): Rename to ...
30826 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
30827 (vect_analyze_slp_cost_1): Use vector_load for constant defs
30828 and vec_construct for external defs when estimating prologue cost.
30829 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
30830 Compute costs here only when vectorizing loops.
30831 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
30832 have been determined.
30833 (vect_schedule_slp_instance): Simplify vectorized code placement
30834 and prepare for in-BB external defs.
30835 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
30836 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
30837 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
30839 (vect_model_load_cost): Likewise.
30840 (vectorizable_store): Instead add it here.
30841 (vectorizable_load): Likewise.
30842 (vect_is_simple_use): Dump def type textually.
30844 2015-04-23 Richard Biener <rguenther@suse.de>
30846 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
30847 * cfgloop.c (verify_loop_structure): Verify the root loop node.
30848 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
30849 instead of get_eh_region_from_lp_number.
30850 * loop-init.c (fix_loop_structure): If we removed a loop, reset
30853 2015-04-23 Anton Blanchard <anton@samba.org>
30855 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
30856 need for -mprofile-kernel to save LR to stack.
30858 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30860 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
30862 (insn_is_swappable_p): Return 1 for a convert from double to
30863 single precision when all of its uses are splats of BE element
30866 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
30868 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
30870 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30873 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
30874 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
30875 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
30877 (rs6000_builtin_mask_for_load): Return 0 for targets with
30878 efficient unaligned VSX accesses so that the vectorizer will use
30879 direct unaligned loads.
30880 (rs6000_builtin_support_vector_misalignment): Always return true
30881 for targets with efficient unaligned VSX accesses.
30882 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
30883 stores on targets with efficient unaligned VSX accesses is almost
30884 always the same as the cost of an aligned load or store, so model
30886 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
30887 unaligned vectors if we have efficient unaligned VSX accesses.
30888 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
30889 undocumented option.
30891 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30894 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
30896 * config.gcc (LIBC_MUSL): New tm_defines macro.
30897 * config/linux.h (OPTION_MUSL): Define.
30898 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30899 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30900 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30902 * config/linux.opt (mmusl): New option.
30903 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30904 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30906 * configure: Regenerate.
30908 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
30910 * config.gcc (LIBC_MUSL): New tm_defines macro.
30911 * config/linux.h (OPTION_MUSL): Define.
30912 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30913 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30914 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30916 * config/linux.opt (mmusl): New option.
30917 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30918 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30920 * configure: Regenerate.
30922 2015-04-22 Yury Gribov <y.gribov@samsung.com>
30924 * doc/invoke.texi (-fsanitize-sections): Update description.
30925 * asan.c (set_sanitized_sections): Parse incoming arg.
30926 (section_sanitized_p): Support wildcards.
30928 2015-04-22 Tom de Vries <tom@codesourcery.com>
30930 PR tree-optimization/65823
30931 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
30932 equality between ap_copy and ap.
30934 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30937 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
30939 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30942 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
30944 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30947 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
30948 remove already contained t-files.
30950 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30952 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
30953 Remove unneeded forward declarations.
30954 (suitable_for_tail_call_opt_p): Commentary typo fix.
30956 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30958 * varasm.c (emit_bss): Remove redundant guard.
30960 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30962 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
30964 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30966 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
30968 2015-04-22 Hale Wang <hale.wang@arm.com>
30969 Terry Guo <terry.guo@arm.com>
30971 PR rtl-optimization/64818
30972 * combine.c (can_combine_p): Don't combine user-specified
30973 register if it is in an asm input.
30975 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
30978 * passes.def (early_optimizations): Add pass_dse.
30980 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30982 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
30983 * reorg.c (redundant_insn): Remove ifdef
30984 INSN_REFERENCES_ARE_DELAYED.
30985 * resource.c (mark_referenced_resources): Likewise.
30987 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30989 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
30990 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
30991 * resource.c (mark_set_resources): Likewise.
30993 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30995 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
30996 * cfgcleanup.c (flow_find_cross_jump): Likewise.
30997 (flow_find_head_matching_sequence): Likewise.
30998 (try_head_merge_bb): Likewise.
30999 * combine.c (can_combine_p): Likewise.
31000 (try_combine): Likewise.
31001 (distribute_notes): Likewise.
31002 * df-problems.c (can_move_insns_across): Likewise.
31003 * final.c (final): Likewise.
31004 * gcse.c (insert_insn_end_basic_block): Likewise.
31005 * ira.c (find_moveable_pseudos): Likewise.
31006 * reorg.c (try_merge_delay_insns): Likewise.
31007 (fill_simple_delay_slots): Likewise.
31008 (fill_slots_from_thread): Likewise.
31009 * sched-deps.c (sched_analyze_2): Likewise.
31011 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31013 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
31014 PIC_OFFSET_TABLE_REGNUM.
31016 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31018 * alias.c (init_alias_target): Remove ifdef
31019 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
31020 * df-scan.c (df_insn_refs_collect): Likewise.
31021 (df_get_regular_block_artificial_uses): Likewise.
31022 (df_get_eh_block_artificial_uses): Likewise.
31023 (df_get_entry_block_def_set): Likewise.
31024 (df_get_exit_block_use_set): Likewise.
31025 * emit-rtl.c (gen_rtx_REG): Likewise.
31026 * ira.c (ira_setup_eliminable_regset): Likewise.
31027 * reginfo.c (init_reg_sets_1): Likewise.
31028 * regrename.c (rename_chains): Likewise.
31029 * reload1.c (reload): Likewise.
31030 (eliminate_regs_in_insn): Likewise.
31031 * resource.c (mark_referenced_resources): Likewise.
31032 (init_resource_info): Likewise.
31034 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31036 * defaults.h (MASK_RETURN_ADDR): New definition.
31037 * except.c (expand_builtin_extract_return_addr): Remove ifdef
31040 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31042 * defaults.h (RETURN_ADDR_OFFSET): New definition.
31043 * except.c (expand_builtin_extract_return_addr): Remove ifdef
31044 RETURN_ADDR_OFFSET.
31045 (expand_builtin_frob_return_addr): Likewise.
31047 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31049 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
31050 (try_redirect_by_replacing_jump): Likewise.
31051 (rtl_tidy_fallthru_edge): Likewise.
31052 * combine.c (insn_a_feeds_b): Likewise.
31053 (find_split_point): Likewise.
31054 (simplify_set): Likewise.
31055 * cprop.c (cprop_jump): Likewise.
31056 * cse.c (cse_extended_basic_block): Likewise.
31057 * df-problems.c (can_move_insns_across): Likewise.
31058 * function.c (emit_use_return_register_into_block): Likewise.
31059 * haifa-sched.c (sched_init): Likewise.
31060 * ira.c (find_moveable_pseudos): Likewise.
31061 * loop-invariant.c (find_invariant_insn): Likewise.
31062 * lra-constraints.c (curr_insn_transform): Likewise.
31063 * postreload.c (reload_combine_recognize_const_pattern):
31065 * reload.c (find_reloads): Likewise.
31066 * reorg.c (delete_scheduled_jump): Likewise.
31067 (steal_delay_list_from_target): Likewise.
31068 (steal_delay_list_from_fallthrough): Likewise.
31069 (redundant_insn): Likewise.
31070 (fill_simple_delay_slots): Likewise.
31071 (fill_slots_from_thread): Likewise.
31072 (delete_computation): Likewise.
31073 * sched-rgn.c (add_branch_dependences): Likewise.
31075 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31077 * genconfig.c (main): Always define HAVE_cc0.
31078 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
31080 * cfgcleanup.c (flow_find_cross_jump): Likewise.
31081 (flow_find_head_matching_sequence): Likewise.
31082 (try_head_merge_bb): Likewise.
31083 * cfgrtl.c (rtl_merge_blocks): Likewise.
31084 (try_redirect_by_replacing_jump): Likewise.
31085 (rtl_tidy_fallthru_edge): Likewise.
31086 * combine.c (do_SUBST_MODE): Likewise.
31087 (insn_a_feeds_b): Likewise.
31088 (combine_instructions): Likewise.
31089 (can_combine_p): Likewise.
31090 (try_combine): Likewise.
31091 (find_split_point): Likewise.
31093 (simplify_set): Likewise.
31094 (distribute_notes): Likewise.
31095 * cprop.c (cprop_jump): Likewise.
31096 * cse.c (cse_extended_basic_block): Likewise.
31097 * df-problems.c (can_move_insns_across): Likewise.
31098 * final.c (final): Likewise.
31099 (final_scan_insn): Likewise.
31100 * function.c (emit_use_return_register_into_block): Likewise.
31101 * gcse.c (insert_insn_end_basic_block): Likewise.
31102 * haifa-sched.c (sched_init): Likewise.
31103 * ira.c (find_moveable_pseudos): Likewise.
31104 * loop-invariant.c (find_invariant_insn): Likewise.
31105 * lra-constraints.c (curr_insn_transform): Likewise.
31106 * optabs.c (prepare_cmp_insn): Likewise.
31107 * postreload.c (reload_combine_recognize_const_pattern):
31109 * reload.c (find_reloads): Likewise.
31110 (find_reloads_address_1): Likewise.
31111 * reorg.c (delete_scheduled_jump): Likewise.
31112 (steal_delay_list_from_target): Likewise.
31113 (steal_delay_list_from_fallthrough): Likewise.
31114 (try_merge_delay_insns): Likewise.
31115 (redundant_insn): Likewise.
31116 (fill_simple_delay_slots): Likewise.
31117 (fill_slots_from_thread): Likewise.
31118 (delete_computation): Likewise.
31119 (relax_delay_slots): Likewise.
31120 * sched-deps.c (sched_analyze_2): Likewise.
31121 * sched-rgn.c (add_branch_dependences): Likewise.
31123 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31125 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
31126 that is trivially ded on non cc0 targets.
31127 (simplify_set): Likewise.
31128 (mark_used_regs_combine): Likewise.
31129 * cse.c (new_basic_block): Likewise.
31130 (fold_rtx): Likewise.
31131 (cse_insn): Likewise.
31132 (cse_extended_basic_block): Likewise.
31133 (set_live_p): Likewise.
31134 * rtlanal.c (canonicalize_condition): Likewise.
31135 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
31137 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31139 * conditions.h: Define macros even if HAVE_cc0 is undefined.
31140 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
31141 * final.c: Likewise.
31142 * jump.c: Likewise.
31143 * recog.c: Likewise.
31144 * recog.h: Declare functions even when HAVE_cc0 is undefined.
31145 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
31147 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31149 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
31150 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
31151 * builtins.c (expand_builtin): Remove check if
31152 EH_RETURN_DATA_REGNO is defined.
31153 * df-scan.c (df_bb_refs_collect): Likewise.
31154 (df_get_exit_block_use_set): Likewise.
31155 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
31156 * ira-lives.c (process_bb_node_lives): Likewise.
31157 * lra-lives.c (process_bb_lives): Likewise.
31159 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
31161 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
31162 FIRST_PSEUDO_REG): New.
31163 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
31164 (ARG_POINTER_REGNUM): Define to ARGP_REG.
31165 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
31166 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
31167 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
31168 (FIRST_INT_REG): New.
31169 (LAST_INT_REG): New.
31170 (FIRST_*_REG): Define using *_REG.
31171 (LAST_*_REG): Ditto.
31172 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
31173 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
31174 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
31176 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31178 * expmed.c: (synth_mult): Only assume overlapping
31179 shift with previous steps in alg_sub_t_m2 case.
31181 2015-04-21 Richard Biener <rguenther@suse.de>
31183 PR tree-optimization/65650
31184 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
31185 transitions involving copies.
31186 (set_lattice_value): Adjust for copy lattice state.
31187 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
31188 if that doesn't dominate the merge point.
31189 (bit_value_unop): Adjust what we treat as varying mask.
31190 (bit_value_binop): Likewise.
31191 (bit_value_assume_aligned): Likewise.
31192 (evaluate_stmt): When we simplified to a SSA name record a copy
31193 instead of dropping to varying.
31194 (visit_assignment): Simplify.
31196 * gimple-match.h (gimple_simplify): Add another callback.
31197 * gimple-fold.c (fold_stmt_1): Adjust caller.
31198 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
31199 for the 2nd callback.
31200 * gimple-match-head.c (gimple_simplify): Add a callback that is
31201 used to valueize the stmt operands and use it that way.
31203 2015-04-21 Richard Biener <rguenther@suse.de>
31205 PR tree-optimization/65788
31206 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
31208 2015-04-21 Richard Biener <rguenther@suse.de>
31210 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
31211 vec_construct cost by vec_stmt_cost.
31213 2015-04-21 Richard Biener <rguenther@suse.de>
31215 * cfghooks.h (create_basic_block): Replace with two overloads
31216 for RTL and GIMPLE.
31217 (split_block): Likewise.
31218 * cfghooks.c (split_block): Rename to ...
31219 (split_block_1): ... this.
31220 (split_block): Add two type-safe overloads for RTL and GIMPLE.
31221 (split_block_after_labels): Call split_block_1.
31222 (create_basic_block): Rename to ...
31223 (create_basic_block_1): ... this.
31224 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
31225 (create_empty_bb): Call create_basic_block_1.
31226 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
31227 split_block_after_labels.
31228 * omp-low.c (expand_parallel_call): Likewise.
31229 (expand_omp_target): Likewise.
31230 (simd_clone_adjust): Likewise.
31231 * tree-chkp.c (chkp_get_entry_block): Likewise.
31232 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
31233 create_basic_block overload.
31234 (cgraph_node::expand_thunk): Likewise.
31235 * tree-cfg.c (make_blocks): Likewise.
31236 (handle_abnormal_edges): Likewise.
31237 * tree-inline.c (copy_bb): Likewise.
31239 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31241 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
31243 (*xor_one_cmplsidi3_ze): Likewise.
31245 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
31247 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
31248 use df_remove_problem rather than manually removing problems, leaving
31249 holes in df->problems_in_order[].
31251 2015-04-21 Tom de Vries <tom@codesourcery.com>
31253 PR tree-optimization/65802
31254 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
31256 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31258 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
31260 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
31261 at '.'. Assert that there's enough space for everything.
31263 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
31265 PR tree-optimization/64950
31267 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
31270 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
31273 2015-04-20 Shiva Chen <shiva0217@gmail.com>
31275 PR rtl-optimization/64916
31276 * cfgcleanup.c (values_equal_p): New function.
31277 (can_replace_by): Use it.
31279 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
31282 * doc/invoke.texi ([-Wnarrowing]): Update.
31284 2015-04-20 Jeff Law <law@redhat.com>
31286 PR tree-optimization/65658
31287 * tree-ssa-threadupdate.c (redirection_block_p): Remove
31288 redundant test for GIMPLE_ASSIGN in last change.
31290 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
31292 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
31293 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
31294 (legitimize_tls_address): Ditto.
31295 (ix86_expand_move): Ditto.
31296 (ix86_expand_binary_operator): Remove reload_in_progress checks.
31297 (ix86_expand_unary_operator): Ditto.
31298 * config/i386/predicates.md (index_register_operand): Ditto.
31300 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
31302 * reorg.c (try_merge_delay_insns): Improve correctness checking
31303 for targets with multiple delay slots.
31305 2015-04-20 Jeff Law <law@redhat.com>
31307 PR tree-optimization/65658
31308 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
31311 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
31313 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
31314 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
31317 2015-04-20 Jakub Jelinek <jakub@redhat.com>
31320 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
31322 2015-04-20 Richard Biener <rguenther@suse.de>
31324 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
31325 * gimple-fold.c (gimple_build_valueize): New function.
31326 (gimple_build): Always use gimple_build_valueize as valueize hook.
31328 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
31331 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
31332 and overwrite variable parts if <= 1/2 the elements are variable.
31334 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
31336 PR rtl-optimization/65805
31337 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
31338 Don't use difference of offset and previous offset if
31339 update_sp_offset is non-zero.
31340 (eliminate_regs_in_insn): Ditto.
31341 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
31342 lra_eliminate_regs_1 call.
31343 * lra-constraints.c (get_equiv_with_elimination): Ditto.
31345 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
31347 * hash-table.h: Remove version of hash_table that stored value_type *.
31348 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
31349 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
31350 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
31351 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
31352 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
31353 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
31354 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
31355 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
31356 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
31357 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
31358 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
31359 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
31360 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
31361 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
31362 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
31363 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
31365 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31366 Jakub Jelinek <jakub@redhat.com>
31369 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
31370 subsequent SH_NONE operand does not overwrite an existing *special
31372 (adjust_extract): Handle case where a vec_extract operation is
31373 wrapped in a PARALLEL.
31375 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
31378 * config/i386/i386.c (ix86_binds_local_p): Define only if
31379 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
31381 2015-04-17 Jeff Law <law@redhat.com>
31383 PR tree-optimization/47679
31384 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
31385 * tree-ssa-scopedtables.c: New file.
31386 * tree-ssa-scopedtables.h: New file.
31387 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
31388 (const_and_copies): Change name/type.
31389 (record_const_or_copy): Move into tree-ssa-scopedtables.c
31390 (record_const_or_copy_1): Similarly.
31391 (restore_vars_to_original_value): Similarly.
31392 (pass_dominator::execute): Create and destroy const_and_copies table.
31393 (thread_across_edge): Update passing of const_and_copies.
31394 (record_temporary_equivalence): Use method calls rather than
31395 manipulating const_and_copies directly.
31396 (record_equality, cprop_into_successor_phis): Similarly.
31397 (dom_opt_dom_walker::before_dom_children): Similarly.
31398 (dom_opt_dom_walker::after_dom_children): Similarly.
31399 (eliminate_redundant_computations): Similarly.
31400 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
31401 (record_temporary_equivalence): Likewise.
31402 (invalidate_equivalences): Likewise.
31403 (record_temporary_equivalences_from_phis): Update due to type
31404 change of const_and_copies. Use method calls rather than
31405 manipulating the stack directly.
31406 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
31407 (thread_through_normal_block, thread_across_edge): Likewise.
31408 (thread_across_edge): Likewise.
31409 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
31410 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
31412 (identify_jump_threads): Update due to type change of equiv_stack.
31413 (finalize_jump_threads): Delete the equiv_stack when complete.
31415 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
31417 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31418 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
31419 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
31421 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
31424 * config.gcc: Exit with a comment when we do not have a major version
31425 number for the FreeBSD target.
31427 2015-04-17 Jakub Jelinek <jakub@redhat.com>
31430 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
31431 maybe_allows_mem bitfields.
31432 (maybe_allows_none_start, maybe_allows_none_end,
31433 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
31434 maybe_allows_mem_end): New variables.
31435 (compute_maybe_allows): New function.
31436 (add_constraint): Use it to initialize maybe_allows_reg and
31437 maybe_allows_mem fields.
31438 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
31439 is_address constraints such that those that allow neither mem nor
31440 reg come first, then those that only allow reg but not mem, then
31441 those that only allow mem but not reg, then the rest.
31442 (write_allows_reg_mem_function): New function.
31443 (write_tm_preds_h): Call it.
31444 * stmt.c (parse_output_constraint, parse_input_constraint): Use
31445 the generated insn_extra_constraint_allows_reg_mem function
31446 instead of always setting *allows_reg = true; *allows_mem = true;
31447 for unknown extra constraints.
31449 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
31452 * output.h (default_binds_local_p_3): New.
31453 * varasm.c (default_binds_local_p_3): Make it public. Take an
31454 argument to indicate if common symbol may be local. If common
31455 symbol may be local, treat non-external variable as defined
31457 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
31458 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
31459 * config/i386/i386.c (ix86_binds_local_p): New.
31460 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
31461 ix86_binds_local_p.
31463 2015-04-17 Jakub Jelinek <jakub@redhat.com>
31466 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
31467 trying mem_loc_descriptor on XEXP (rtl, 0).
31469 2015-04-17 Martin Liska <mliska@suse.cz>
31471 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
31472 Release symbol_compare_collection.
31473 * ipa-reference.c: Add TODO that a vector should be released.
31475 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
31478 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
31479 to new AVR-LibC file layout (bug #44574).
31480 (*avrlibc_devicelib): Same.
31481 * config/avr/avr-mcus.def: Adjust comments.
31482 * config/avr/avr.opt (nodevicelib): Adjust help.
31484 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
31486 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
31488 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
31491 * gimplify.c (gimplify_init_constructor): Always emit a
31492 side-effecting constructor.
31494 2015-04-17 Tom de Vries <tom@codesourcery.com>
31496 PR tree-optimization/64950
31497 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
31498 in cfun->curr_properties.
31499 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
31500 if we generate an IFN_VA_ARG.
31501 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
31502 function if PROP_gimple_lva is not set in src function.
31504 2015-04-17 Tom de Vries <tom@codesourcery.com>
31505 Michael Matz <matz@suse.de>
31507 PR tree-optimization/64950
31508 * gimple-iterator.c (update_modified_stmts): Remove static.
31509 * gimple-iterator.h (update_modified_stmts): Declare.
31510 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
31511 (gimplify_va_arg_internal): New function.
31512 (gimplify_va_arg_expr): Use IFN_VA_ARG.
31513 * gimplify.h (gimplify_va_arg_internal): Declare.
31514 * internal-fn.c (expand_VA_ARG): New unreachable function.
31515 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
31516 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
31517 (expand_ifn_va_arg): New function.
31518 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
31519 (pass_stdarg::execute): Call expand_ifn_va_arg.
31520 (pass_data_lower_vaarg): New pass_data.
31521 (pass_lower_vaarg): New gimple_opt_pass.
31522 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
31523 (make_pass_lower_vaarg): New function.
31524 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
31525 properties_required field.
31526 * passes.def (all_passes): Add pass_lower_vaarg.
31527 * tree-pass.h (PROP_gimple_lva): Add define.
31528 (make_pass_lower_vaarg): Declare.
31530 2015-04-17 Tom de Vries <tom@codesourcery.com>
31532 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
31533 * calls.c (call_expr_flags): Same.
31535 2015-04-17 Tom de Vries <tom@codesourcery.com>
31537 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
31538 (pass_stdarg::execute): ... here.
31540 2015-04-17 Tom de Vries <tom@codesourcery.com>
31541 Michael Matz <matz@suse.de>
31543 * tree-cfg.c (make_blocks_1): Factor out of ...
31544 (make_blocks): ... here.
31545 (make_edges_bb): Factor out of ...
31546 (make_edges): ... here.
31547 (gimple_find_sub_bbs): New function.
31548 * tree-cfg.h (gimple_find_sub_bbs): Declare.
31550 2015-04-17 Tom de Vries <tom@codesourcery.com>
31552 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
31554 2015-04-17 Yury Gribov <y.gribov@samsung.com>
31556 * asan.c (set_sanitized_sections): New function.
31557 (section_sanitized_p): Ditto.
31558 (asan_protect_global): Optionally sanitize user-defined
31560 * asan.h (set_sanitized_sections): Declare new function.
31561 * common.opt (fsanitize-sections): New option.
31562 * doc/invoke.texi (-fsanitize-sections): Document new option.
31563 * opts-global.c (handle_common_deferred_options): Handle new
31566 2015-04-17 Jakub Jelinek <jakub@redhat.com>
31569 * dwarf2out.c (loc_list_from_tree): Return NULL
31570 for DEBUG_EXPR_DECL.
31572 2015-04-17 Christian Bruel <christian.bruel@st.com>
31574 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
31577 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
31579 * ira-color.c (setup_left_conflict_sizes_p): Do not process
31580 node itself when computing left conflict subnode size.
31582 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
31584 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
31585 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
31586 *fop_<mode>_1_sse using enabled attribute. Use
31587 register_mixssei387nonimm_operand operand 1 predicate. Change
31588 alternative 3 constraints from "x" to "v".
31590 2015-04-16 Richard Biener <rguenther@suse.de>
31592 PR tree-optimization/65774
31593 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
31594 bit-value tracking on.
31596 2015-04-16 Richard Biener <rguenther@suse.de>
31598 PR tree-optimization/64277
31599 * tree-vrp.c (check_array_ref): Fix anti-range handling,
31600 simplify upper bound handling.
31601 (search_for_addr_array): Simplify.
31602 (check_array_bounds): Handle ADDR_EXPRs here.
31603 (check_all_array_refs): Simplify.
31605 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
31607 * config/i386/i386.c (print_reg): Rewrite function.
31609 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31611 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
31612 Invert the condition.
31614 2015-04-16 Renlin Li <renlin.li@arm.com>
31616 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
31617 simplifications for UNSIGNED_FLOAT.
31619 2015-04-16 Nick Clifton <nickc@redhat.com>
31621 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
31623 (enum rl78_cpu_type): New.
31624 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
31625 (umulhi3_shift_virt): Remove m constraint from operand 1.
31626 (umulqihi3_virt): Likewise.
31627 * config/rl78/rl78.c (rl78_option_override): Add code to process
31628 -mcpu and -mmul options.
31629 (rl78_alloc_physical_registers): Add code to handle divhi and
31630 divsi valloc attributes.
31631 (set_origin): Likewise.
31632 * config/rl78/rl78.h (RL78_MUL_G14): Define.
31633 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
31634 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
31636 (ASM_SPEC): Pass -mcpu on to assembler.
31637 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
31638 (mulqi3_rl78): Likewise.
31639 (mulhi3_g13): Likewise.
31640 (mulhi3): Generate the G13 or G14 versions of the insn directly.
31641 (mulsi3): Likewise.
31642 (mulhi3_g14): Add clobbers of AX and BC.
31643 (mulsi3_g14): Likewise.
31644 (mulsi3_g13): Likewise.
31645 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
31646 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
31647 * config/rl78/rl78.opt (mmul): Initialise value to
31649 (mcpu): New option.
31650 (m13, m14, mrl78): New option aliases.
31651 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
31652 (MULTILIB_DIRNAMES): Add g13 and g14.
31653 * doc/invoke.texi: Document -mcpu and -mmul options.
31655 2015-04-16 Richard Biener <rguenther@suse.de>
31657 * tree-ssa-ccp.c (likely_value): See if we have operands that
31658 are marked as never simulate again and return CONSTANT in this
31660 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
31661 not have any operands that will be simulated again as
31662 not being simulated again.
31664 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
31666 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
31667 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
31668 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
31670 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
31672 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
31673 *float<SWI48:mode><MODEF:mode>2_sse.
31674 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
31676 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
31679 2015-04-15 Tom de Vries <tom@codesourcery.com>
31682 * function.c (push_dummy_function): New function.
31683 (init_dummy_function_start): Use push_dummy_function.
31684 (pop_dummy_function): New function. Factored out of ...
31685 (expand_dummy_function_end): ... here.
31686 * function.h (push_dummy_function, pop_dummy_function): Declare.
31687 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
31688 pop_dummy_function.
31689 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
31691 2015-04-15 Jeff Law <law@redhat.com>
31693 PR tree-optimization/47679
31694 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
31695 need for forward declaration in upcoming changes.
31696 (record_conditions, record_edge_info): Likewise.
31698 PR rtl-optimization/42522
31699 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
31700 SIGN_EXTRACT as a whole object rather than simplifying
31703 2015-04-15 Jakub Jelinek <jakub@redhat.com>
31706 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
31707 and GIMPLE_PREDICT use break instead of return true. For
31708 GIMPLE_EH_DISPATCH, compare dispatch region.
31710 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
31712 * doc/extend.texi (__sync Builtins): Simplify some text. Update
31713 details about the implementation. Make clear preference for
31714 __atomic builtins. Reduce possibility of future change.
31716 2015-04-15 Nick Clifton <nickc@redhat.com>
31718 * config/rx/rx.opt (mallow-string-insns): New option.
31719 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
31720 builtin if string instructions are denied.
31721 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
31722 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
31724 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
31725 * config/rx/rx.md (movstr): Enable pattern only if string
31726 instructions are allowed.
31727 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
31728 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
31729 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
31730 (MULTILIB_DIRNAMES): Add no-strings.
31731 * doc/invoke.texi: Document -mno-allow-string-insns.
31733 2015-04-15 Alan Modra <amodra@gmail.com>
31737 PR middle-end/36043
31738 * calls.c (load_register_parameters): Don't load past end of
31739 mem unless suitably aligned.
31741 2015-04-15 Nick Clifton <nickc@redhat.com>
31743 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
31744 decrement instruction as being frame related.
31745 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
31747 If zero extending a function address enclose the operation in
31749 (rl78_preferred_reload_class): New function.
31750 (TARGET_PREFERRED_RELOAD_CLASS): Define.
31751 * config/rl78/rl78.md: Remove useless constraints in expanders.
31752 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
31753 (mulhi3_rl78): Likewise.
31754 (mulhi3_g13): Likewise.
31755 (mulsi3_rl78): Likewise.
31756 (es_addr): Move to before the multiply patterns.
31758 2015-04-15 Alan Modra <amodra@gmail.com>
31760 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
31761 and sequence_stack. Add seq.
31762 (seq_stack): Delete.
31763 * function.c (prepare_function_start): Don't access x_last_insn.
31764 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
31765 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
31766 * emit_rtl.c (start_sequence, push_topmost_sequence,
31767 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
31768 sequence accessors.
31769 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
31770 remove_insn): Likewise. Simplify.
31771 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
31772 and pop_topmost_sequence.
31773 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
31775 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
31777 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
31780 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
31783 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
31785 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
31786 (LEGACY_INT_REGNO_P): Ditto.
31787 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
31788 (ANY_MASK_REG_P): Remove.
31789 (BND_REG_P): Rename from ANY_BND_REG_P.
31790 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
31791 legacy integer registers. Do not handle MMX_REG_P in a special way.
31792 Merge 64byte and 32byte SSE handling.
31794 2015-04-14 Nick Clifton <nickc@redhat.com>
31796 * expr.c (expand_assignment): Force an address offset computation
31797 into a register before changing its mode.
31798 (expand_expr_real_1): Likewise.
31800 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
31802 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
31803 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
31804 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
31805 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
31806 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
31807 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
31808 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
31809 and __aarch64_vget_lane_any.
31811 2015-04-14 Jakub Jelinek <jakub@redhat.com>
31813 PR rtl-optimization/65761
31814 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
31815 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
31817 2015-04-14 Richard Biener <rguenther@suse.de>
31819 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
31820 (graphite_can_represent_scev): Use POINTER_TYPE_P.
31822 2015-04-14 Richard Biener <rguenther@suse.de>
31824 PR tree-optimization/65758
31825 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
31827 (ccp_lattice_meet): Likewise.
31828 (bit_value_unop): Likewise.
31829 (bit_value_binop): Likewise.
31830 (bit_value_assume_aligned): Likewise.
31832 2015-04-14 Christian Bruel <christian.bruel@st.com>
31834 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
31837 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
31839 PR tree-optimization/63387
31840 * match.pd ((x unord x) | (y unord y) -> (x unord y),
31841 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
31843 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
31845 * config/i386/predicates.md (any_QIreg_operand): Rename from
31846 q_regs_operand. Do not process subregs.
31847 (QIreg_operand): Use QI_REGNO_P predicate.
31848 (ext_QIreg_operand): Ditto.
31849 (ext_register_operand): Ditto.
31850 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
31851 (AND splitters): Ditto.
31852 (AND with -65536 splitter): Add SWI48 mode for operand 0.
31853 (AND with -256 splitter): Use any_QIreg_operand predicate and
31854 SWI248 mode for operand 0.
31855 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
31856 mode for operand 0.
31857 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
31859 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
31861 * doc/plugins.texi: Rewrite first introductory paragraph.
31863 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31865 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
31866 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
31868 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31870 * ipa-profie.c (ipa_profile): Check number of parameters
31871 and possible polymorphic call targets before
31874 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
31876 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
31877 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
31879 2015-04-13 Richard Biener <rguenther@suse.de>
31881 PR tree-optimization/65204
31882 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
31883 takens for bit-CCP.
31885 2015-04-13 Richard Biener <rguenther@suse.de>
31888 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
31889 and cond_not_taken_branch_cost to 4 and 2.
31890 (bdver2_cost): Likewise.
31891 (bdver3_cost): Likewise.
31892 (bdver4_cost): Likewise.
31894 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31896 * hash-table.h (hash_table constructor): Add mem stats.
31897 (alloc_entries): Likewise.
31899 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31901 * ipa-cp.c (ipcp_driver): Relase prev_edge.
31902 * passes.c (execute_one_pass): Only add transform if pass has one.
31904 2015-04-12 Joseph Myers <joseph@codesourcery.com>
31906 * config/i386/i386.c (ix86_option_override_internal): Don't set
31907 -fprefetch-loop-arrays if optimizing for size.
31909 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
31910 Gerald Pfeifer <gerald@pfeifer.com>
31912 * doc/contrib.texi (Contributors): Add Martin Jambor and
31915 2015-04-12 Jakub Jelinek <jakub@redhat.com>
31917 * BASE-VER: Set to 6.0.0.
31919 PR tree-optimization/65747
31920 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
31921 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
31923 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
31925 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
31926 sentence. Improve grammar.
31928 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
31930 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
31932 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
31935 * ipa-inline-transform.c (speculation_removed): Remove static var.
31936 (check_speculations): New function.
31937 (clone_inlined_nodes): Do not check spculations.
31938 (inline_call): Call check_speculations.
31939 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
31940 consider non-invariants.
31942 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
31943 Martin Liska <mliska@suse.cz>
31946 * ipa-icf.c (sem_item::compare_cgraph_references): function and
31947 variable can not match.
31948 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
31949 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
31951 2015-04-11 Jakub Jelinek <jakub@redhat.com>
31953 PR tree-optimization/65735
31954 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
31955 Remove visited_phis argument, add visited_bbs, avoid recursing into the
31956 same bb rather than just into the same phi node.
31957 (thread_through_normal_block): Adjust caller.
31959 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
31961 * doc/contrib.texi (Contributors): Add Ira Rosen.
31963 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
31965 * gcov.c (find_source): Fix miswording in error message.
31966 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
31967 (ix86_expand_sse_comi_round): Fix typo in error message.
31969 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
31971 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
31973 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
31975 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
31977 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
31980 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
31981 Print bad_spills_num and insn_pseudos_num.
31983 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31986 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
31987 when creating +1 values for SImode.
31989 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
31992 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
31995 2015-04-10 Jakub Jelinek <jakub@redhat.com>
31996 Iain Sandoe <iain@codesourcery.com>
31999 * configure: Regenerate.
32001 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
32004 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
32006 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
32008 * doc/contrib.texi (Contributors): Add John Marino.
32010 2015-04-09 Jakub Jelinek <jakub@redhat.com>
32012 PR tree-optimization/65709
32013 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
32014 TREE_TYPE (TREE_TYPE (t)).
32016 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
32019 * lra-int.h (lra_bad_spill_regno_start): New.
32020 * lra.c (lra_bad_spill_regno_start): New.
32021 (lra): Set up lra_bad_spill_regno_start. Set up
32022 lra_constraint_new_regno_start unconditionally.
32023 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
32026 2015-04-09 Marek Polacek <polacek@redhat.com>
32027 Jakub Jelinek <jakub@redhat.com>
32029 PR middle-end/65554
32030 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
32031 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
32034 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
32036 PR rtl-optimization/65693
32037 * combine.c (is_parallel_of_n_reg_sets): Move outside of
32040 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
32043 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
32044 device specs file if "device-specs%s" didn't resolve to a path.
32046 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
32049 * config/i386/i386.c (fixup_modeless_constant): New.
32050 (ix86_expand_args_builtin): Fixup modeless constant operand.
32051 (ix86_expand_round_builtin): Ditto.
32052 (ix86_expand_special_args_builtin): Ditto.
32053 (ix86_expand_builtin): Ditto.
32055 2015-04-09 Jakub Jelinek <jakub@redhat.com>
32058 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
32059 any pow2 integer in between 2 and 0x80000000U inclusive.
32061 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
32063 PR rtl-optimization/65693
32064 * combine.c (is_parallel_of_n_reg_sets): Change first argument
32065 from an rtx_insn * to an rtx.
32066 (try_combine): Adjust both callers. Use it once more.
32068 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
32070 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
32071 (chkp_make_static_const_bounds): Search existing
32072 symbol by assembler name. Use make_decl_one_only.
32073 (chkp_get_zero_bounds_var): Remove node search which
32074 is now performed in chkp_make_static_const_bounds.
32075 (chkp_get_none_bounds_var): Likewise.
32077 2015-04-08 Michael Witten <mfwitten@gmail.com>
32079 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
32082 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32084 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
32086 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
32088 * doc/extend.texi (__sync Builtins): Fix grammar.
32090 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32092 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
32094 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32096 * varasm.c (emit_local): Move definition of align.
32098 2015-04-08 Julian Brown <julian@codesourcery.com>
32100 * config/nvptx/mkoffload.c (process): Support variable mapping.
32102 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
32104 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
32106 (alpha_write_one_linkage): Correct typo.
32108 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
32110 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
32112 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
32114 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
32116 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
32118 * tree-chkp.h (chkp_insert_retbnd_call): New.
32119 * tree-chkp.c (chkp_insert_retbnd_call): New.
32120 * ipa-split.c (insert_bndret_call_after): Remove.
32121 (split_function): Use chkp_insert_retbnd_call.
32122 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
32123 bounds for instrumented functions.
32125 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
32128 * calls.c (initialize_argument_information): When producing tail
32129 call also turn SSA_NAMES passed by references to original PARM_DECLs
32131 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
32134 * lra-remat.c (do_remat): Process input and non-input insn
32135 registers separately.
32137 2015-04-07 Jakub Jelinek <jakub@redhat.com>
32140 * valtrack.c (debug_lowpart_subreg): New function.
32141 (dead_debug_insert_temp): Use it.
32143 PR middle-end/65680
32144 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
32145 into signed HOST_WIDE_INT the same as negative bit_offset.
32147 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
32149 * ipa-comdats.c (ipa_comdats): Visit all thunks
32150 to set proper comdat group.
32152 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32155 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
32156 on constants for NEON VSTRUCT modes.
32158 2015-04-07 Jakub Jelinek <jakub@redhat.com>
32159 Iain Sandoe <iain@codesourcery.com>
32162 * configure: Regenerate.
32164 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
32167 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
32168 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
32169 that LFD is used to load double constants instead of LFS. Add
32170 defaults for all costs structures. Add comments for missing
32171 initialization fields.
32172 (size32_cost): Likewise.
32173 (size64_cost): Likewise.
32174 (rs64a_cost): Likewise.
32175 (mpccore_cost): Likewise.
32176 (ppc403_cost): Likewise.
32177 (ppc405_cost): Likewise.
32178 (ppc440_cost): Likewise.
32179 (ppc476_cost): Likewise.
32180 (ppc601_cost): Likewise.
32181 (ppc603_cost): Likewise.
32182 (ppc604_cost): Likewise.
32183 (ppc604e_cost): Likewise.
32184 (ppc620_cost): Likewise.
32185 (ppc630_cost): Likewise.
32186 (ppccell_cost): Likewise.
32187 (ppc750_cost): Likewise.
32188 (ppc7450_cost): Likewise.
32189 (ppc8540_cost): Likewise.
32190 (ppce300c2c3_cost): Likewise.
32191 (ppce500mc_cost): Likewise.
32192 (ppce500mc64_cost): Likewise.
32193 (ppce5500_cost): Likewise.
32194 (ppce6500_cost): Likewise.
32195 (titan_cost): Likewise.
32196 (power4_cost): Likewise.
32197 (power6_cost): Likewise.
32198 (power7_cost): Likewise.
32199 (power8_cost): Likewise.
32200 (ppca2_cost): Likewise.
32201 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
32203 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
32204 instead of XXLOR to copy SFmode to clear out dirty bits created
32205 when SFmode denormals are generated.
32206 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
32207 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
32209 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
32211 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
32212 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
32213 * config/aarch64/aarch64-tune.md: Regenerate.
32215 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
32217 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
32218 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
32219 * config/arm/arm-cores.def (exynos-m1): New core.
32220 * config/arm/arm-tune.md: Regenerate.
32221 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
32222 * config/arm/bpabi.h: Likewise.
32224 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
32226 * ipa-cp (set_single_call_flag): Remove too
32227 restrictive assert.
32229 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
32231 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
32232 GOMP_offload_unregister from the destructor.
32234 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
32236 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
32237 flags for instrumentation thunk.
32238 (chkp_produce_thunks): Likewise.
32240 2015-04-05 Martin Liska <mliska@suse.cz>
32243 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
32244 has computed data structure.
32245 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
32247 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
32249 * invoke.texi (inline-unit-growth): Increase growth to 20%
32250 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
32252 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
32255 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
32257 (lra_rematerialization_iter): New.
32258 * lra.c (lra): Initialize lra_rematerialization_iter.
32259 Stop updating lra_constraint_new_regno_start after switching of
32260 inheritance and rematerialization.
32261 * lra-remat.c (lra_rematerialization_iter): New.
32262 (lra_remat): Add printing pass iteration. Do rematerialization
32263 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
32265 2015-04-04 Richard Biener <rguenther@suse.de>
32267 PR tree-optimization/64909
32268 PR tree-optimization/65660
32269 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
32270 to take a cost vector for scalar iteration cost.
32271 (vect_get_single_scalar_iteration_cost): Likewise.
32272 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
32273 Compute the scalar iteration cost into a cost vector.
32274 (vect_get_known_peeling_cost): Use the scalar cost vector to
32275 account for the cost of the peeled iterations.
32276 (vect_estimate_min_profitable_iters): Likewise.
32277 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
32280 2015-04-04 Alan Modra <amodra@gmail.com>
32284 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
32285 0.0 constant unless TARGET_VSX.
32286 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
32289 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
32292 * ipa-inline-transform.c (inline_call): Skip sanity check to work
32295 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
32298 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
32299 speculative indirect edges to avoid ordering issue.
32301 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
32304 * ipa-inline.c (edge_badness): Add combined size to the denominator.
32306 2015-04-03 Jakub Jelinek <jakub@redhat.com>
32308 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
32309 TYPE_ARTIFICIAL on the .omp_data* types.
32311 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32313 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
32314 instrumentation thunks.
32316 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32318 * config/i386/i386.c (ix86_expand_call): Avoid nested
32319 PARALLEL in returned call value.
32321 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32323 * lto-cgraph.c (input_cgraph_1): Always link instrumented
32324 assembler name with original one.
32326 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
32328 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
32330 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
32332 Revert parts of r216820.
32333 * config/i386/i386.md (movqi_internal): Correct type calculation
32334 for alternatives 3 and 5.
32336 2015-04-02 Jakub Jelinek <jakub@redhat.com>
32338 PR preprocessor/61977
32339 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
32340 predefine __vector/__bool/__pixel macros nor context sensitive
32341 macros for CLK_ASM.
32342 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
32344 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
32346 * config/pa/pa.c (pa_output_move_double): Directly handle register
32347 indexed memory operand. Simplify handling of scaled register indexed
32350 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32353 * config/i386/linux-common.h (MPX_SPEC): New.
32354 (CHKP_SPEC): Add MPX_SPEC.
32355 * doc/invoke.texi (-fcheck-pointer-boudns): Document
32356 possible issues with '-z bndplt' support in linker.
32358 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
32360 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
32361 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
32362 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
32363 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
32364 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
32366 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
32368 * config/i386/sync.md (UNSPEC_MOVA): Remove.
32369 (atomic_load<mode>): Change operand 0 predicate to
32370 nonimmediate_operand and fix up the destination when needed.
32372 (atomic_loaddi_fpu): Use UNSPEC_LDA.
32373 (atomic_store<mode>): Change operand 1 predicate to
32374 nonimmendate_operand and move the source to register when needed.
32376 (atomic_store<mode>_1): Use UNSPEC_STA.
32377 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
32378 Fix moves from memory operand. Use UNSPEC_STA.
32380 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
32382 * expmed.c (strict_volatile_bitfield_p): Check that the access will
32383 not cross a MODESIZE boundary.
32384 (store_bit_field, extract_bit_field): Added assertions in the
32385 strict volatile bitfields code path.
32387 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
32390 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
32391 Increase args array size by one to avoid buffer overflow.
32393 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
32395 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
32397 * ipa-inline.c (edge_badness): Add wrapper penalty.
32398 (sum_callers): Move up.
32399 (inline_small_functions): Set single_caller.
32400 * ipa-inline.h (inline_summary): Add single_caller.
32401 * ipa-split.c (split_function): Set split_part.
32402 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
32403 * cgraph.h (cgraph_node): Add split_part.
32405 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
32408 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
32409 Do not split operands 0 and operands 2 to halfmode.
32410 (atomic_compare_and_swap<mode>): Update for
32411 atomic_compare_and_swap<dwi>_doubleword changes.
32413 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
32415 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
32416 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
32417 no caching is done.
32419 2015-03-31 Martin Liska <mliska@suse.cz>
32422 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
32423 has already filled up function summary.
32424 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
32426 2015-03-31 Richard Biener <rguenther@suse.de>
32428 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
32431 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
32433 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
32435 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
32436 (s390_asm_output_function_label): Adapt to new signature of
32437 s390_function_num_hotpatch_hw
32438 Optimise the code generating assembler output.
32439 Add comments to assembler file.
32441 2015-03-31 Richard Biener <rguenther@suse.de>
32443 PR middle-end/65626
32444 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
32445 of the noreturn call so it is last and cleanup_control_flow_bb
32446 can do the CFG part.
32448 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
32451 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
32452 same_comdat_group for external symbols.
32453 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
32454 infinite same_comdat_group traversal loop.
32456 2015-03-31 Jakub Jelinek <jakub@redhat.com>
32459 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
32460 automatically to $headers.
32462 2015-03-30 Jakub Jelinek <jakub@redhat.com>
32465 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
32466 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
32468 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
32470 * ipa-prop.c (param_type_may_change_p): Likewise.
32471 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
32472 (remove_unused_scope_block_p): Add in_ctor_dtor_block
32473 argument. Before inlining, preserve
32474 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
32475 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
32477 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
32479 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32482 * ipa-inline.c (edge_badness): Base denominator on callee's
32485 2015-03-27 Martin Jambor <mjambor@suse.cz>
32488 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
32489 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
32490 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
32491 node_calling_single_call.
32492 * ipa-cp.c (count_callers): New function.
32493 (set_single_call_flag): Likewise.
32494 (initialize_node_lattices): Count callers and set single_flag_call if
32496 (incorporate_penalties): New function.
32497 (good_cloning_opportunity_p): Use it, dump new flags.
32498 (propagate_constants_topo): Set node_within_scc flag if appropriate.
32499 * doc/invoke.texi (ipa-cp-recursion-penalty,
32500 ipa-cp-single-call-pentalty): Document.
32502 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32505 * symtab.c (symtab_node::get_partitioning_class): Register vars
32507 * varpool.c (symbol_table::output_variables) Do not assemble unefined
32508 decls for non-symbols.
32510 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
32513 * output.h (default_binds_local_p_2): New.
32514 * varasm.c (default_binds_local_p_2): Renamed to ...
32515 (default_binds_local_p_3): This. Don't return true on protected
32516 data symbol if protected data may be external.
32517 (default_binds_local_p): Use default_binds_local_p_3.
32518 (default_binds_local_p_1): Likewise.
32519 (default_binds_local_p_2): New.
32520 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
32521 default_binds_local_p_2 if TARGET_MACHO is undefined.
32523 2015-03-27 Jakub Jelinek <jakub@redhat.com>
32526 * config/i386/i386.c (legitimize_pic_address): If base
32527 is SYMBOL_REF or LABEL_REF using %rip addressing, force
32528 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
32530 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32533 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
32536 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32539 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
32540 of optimized out indirect call.
32541 (redirect_to_unreachable): Always build symbol table node for
32542 BUILT_IN_UNREACHABLE
32544 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
32547 * ira-costs.c (record_reg_classes): Process all constraint string
32550 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
32552 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
32556 * config/c6x/constraints.md (S3): New constraint.
32557 * config/c6x/c6x.md (real_jump): Use it.
32559 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32561 PR middle-end/65595
32562 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
32563 do redirection if the call is not optimized out.
32565 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
32568 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
32569 (fchkp-check-incomplete-type): Add LTO.
32570 (fchkp-zero-input-bounds-for-main): Likewise.
32571 (fchkp-first-field-has-own-bounds): Likewise.
32572 (fchkp-narrow-bounds): Likewise.
32573 (fchkp-narrow-to-innermost-array): Likewise.
32574 (fchkp-use-static-bounds): Likewise.
32575 (fchkp-use-static-const-bounds): Likewise.
32576 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
32578 2015-03-27 Marek Polacek <polacek@redhat.com>
32580 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
32582 2015-03-27 Marek Polacek <polacek@redhat.com>
32585 * ubsan.c (ubsan_create_edge): New function.
32586 (instrument_bool_enum_load): Call it.
32587 (instrument_nonnull_arg): Likewise.
32588 (instrument_nonnull_return): Likewise.
32589 (instrument_object_size): Likewise.
32591 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32593 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
32596 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32599 * lto-streamer.h (class lto_location_cache): New.
32600 (struct data_in): Add location_cache.
32601 (lto_input_location): Update prototype.
32602 (stream_input_location_now): New.
32603 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
32604 pointer to location.
32605 (stream_input_location): Update.
32606 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
32607 (warn_odr): Apply location cache before warning.
32608 (lto_input_location): Update prototype.
32609 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
32610 Use stream_input_location_now.
32611 * lto-streamer-in.c (lto_location_cache::current_cache): New static
32613 (lto_location_cache::cmp_loc): New function.
32614 (lto_location_cache::apply_location_cache): New function.
32615 (lto_location_cache::accept_location_cache): New function.
32616 (lto_location_cache::revert_location_cache): New function.
32617 (lto_location_cache::input_location): New function.
32618 (lto_input_location): Do location caching.
32619 (stream_input_location_now): New function.
32620 (input_eh_region, input_struct_function_base): Use
32621 stream_input_location_now.
32622 (lto_data_in_create): use new.
32623 (lto_data_in_delete): Use delete.
32624 * tree-streamer-in.c (unpack_ts_block_value_fields,
32625 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
32626 lto_input_ts_exp_tree_pointers): Update for cached location api.
32628 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32631 * passes.def: Add pass_nothrow.
32632 * ipa-pure-const.c: (pass_data_nothrow): New.
32633 (pass_nothrow): New.
32634 (pass_nothrow::execute): New.
32635 (make_pass_nothrow): New.
32636 * tree-pass.h (make_pass_nothrow): Declare.
32638 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32640 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
32641 edge to change by speculation resolution or redirection.
32642 (edge_set_predicate): Likewise.
32643 (inline_summary_t::duplicate): Likewise.
32644 (remap_edge_summaries): Likewise.
32646 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32648 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
32650 (can_inline_edge_p): Relax option matching for always inline functions.
32652 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
32655 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
32656 Check operand 4 and operand 0 for equality.
32657 (avx512f_vextract<shuffletype>32x4_1_maskm):
32658 Check operand 6 and operand 0 for equality.
32659 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
32661 (vec_extract_hi_<mode>_maskm): Ditto.
32663 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32665 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
32666 dead calls back to live.
32667 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
32669 (cgraph_node::verify_node): ... here; verify only callee edges,
32671 * cif-code.def (CILK_SPAWN): New code.
32673 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32675 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
32676 (edge_set_predicate): Use it to mark unreachable edges.
32677 (inline_summary_t::duplicate): Remove unnecesary code.
32678 (remap_edge_summaries): Likewise.
32679 (dump_inline_summary): Report contains_cilk_spawn.
32680 (compute_inline_parameters): Compute contains_cilk_spawn.
32681 (inline_read_section, inline_write_summary): Stream
32682 contains_cilk_spawn.
32683 * ipa-inline.c (can_inline_edge_p): Do not touch
32684 DECL_STRUCT_FUNCTION that may not be available;
32685 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
32686 remove check for callee_fun->can_throw_non_call_exceptions and
32687 replace it by optimization attribute check; check for flag_exceptions.
32688 * ipa-inline-transform.c (inline_call): Maintain
32689 DECL_FUNCTION_PERSONALITY
32690 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
32692 2015-03-26 Jakub Jelinek <jakub@redhat.com>
32694 PR tree-optimization/65551
32695 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
32696 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
32698 2015-03-26 Richard Biener <rguenther@suse.de>
32700 PR middle-end/65555
32701 * tree-cfg.c (verify_gimple_call): Do not require a call to
32702 have no LHS if it wasn't recognized as control altering yet.
32704 2015-03-26 Jakub Jelinek <jakub@redhat.com>
32706 PR tree-optimization/64715
32707 * passes.def: Add another instance of pass_object_sizes before ccp1.
32708 * tree-object-size.c (pass_object_sizes::execute): In
32709 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
32710 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
32711 __bos result and the computed constant. Remove redundant
32712 checks, obsoleted by gimple_call_builtin_p test.
32714 * var-tracking.c (variable_tracking_main_1): Don't track
32715 variables for targetm.no_register_allocation targets.
32717 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
32719 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
32720 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
32722 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
32725 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
32726 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
32727 0.0 is correctly setup.
32728 (extenddftf2_internal): Likewise.
32730 2015-03-25 Sebastian Pop <s.pop@samsung.com>
32732 PR tree-optimization/65177
32733 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
32735 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
32736 edges not adjacent on the path to the original code.
32738 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
32741 * doc/install.texi (Building a native compiler): Document new
32742 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
32743 configuration assumes that the host supports the linker plugin.
32745 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
32748 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
32749 chain for generated call.
32751 2015-03-25 Richard Biener <rguenther@suse.de>
32753 * passes.c (pass_manager::execute_early_local_passes): Guard
32754 execution of pass_chkp_instrumentation_passes with
32755 flag_check_pointer_bounds.
32756 (pass_chkp_instrumentation_passes::gate): Likewise.
32758 2015-03-25 Martin Liska <mliska@suse.cz>
32760 PR tree-optimization/65538
32761 * symbol-summary.h (function_summary::~function_summary):
32762 Relese memory for allocated summaries.
32763 (function_summary::release): New function.
32765 2015-03-25 Jakub Jelinek <jakub@redhat.com>
32768 * lto-streamer-out.c (DFS::worklist): New struct.
32769 (DFS::worklist_vec): New data member.
32770 (DFS::next_dfs_num): Remove.
32771 (DFS::DFS): Rewritten using worklist instead of recursion,
32772 using most of code from DFS::DFS_write_tree.
32773 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
32774 pass it to DFS_write_tree calls.
32775 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
32776 quick initial checks push it into worklist_vec and return.
32778 2015-03-25 Richard Biener <rguenther@suse.de>
32780 PR middle-end/65519
32781 * genmatch.c (expr::gen_transform): Re-write to avoid
32782 using gimple_build.
32784 2015-03-25 Bin Cheng <bin.cheng@arm.com>
32786 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
32788 2015-03-25 Bin Cheng <bin.cheng@arm.com>
32790 * config/arm/arm.opt (print_tune_info): New option.
32791 * config/arm/arm.c (arm_print_tune_info): New function.
32792 (arm_file_start): Call arm_print_tune_info.
32793 * config/arm/arm-protos.h (struct tune_params): Add comment.
32794 * doc/invoke.texi (@item -mprint-tune-info): New item.
32795 (-mtune): mention it in ARM Option Summary.
32797 2015-03-25 DJ Delorie <dj@redhat.com>
32799 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
32802 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
32803 Martin Liska <mliska@suse.cz>
32805 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
32806 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
32807 (sem_item::add_type): New function.
32808 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
32809 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
32810 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
32811 (sem_function::equals_wpa): Fix typo.
32812 * ipa-icf.h (sem_item::add_type): New function.
32813 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
32816 2015-03-24 Jakub Jelinek <jakub@redhat.com>
32818 PR tree-optimization/65533
32819 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
32820 with swapped operands, call vect_free_slp_tree on
32821 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
32824 2015-03-24 Richard Biener <rguenther@suse.de>
32826 PR middle-end/65517
32827 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
32828 for fixup if necessary.
32830 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
32832 * doc/extend.texi (Function Attributes): Add @cindex entries
32833 for all attributes and regularize their format. Delete text
32834 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
32835 information about "eightbit_data", "tiny_data", and "model"
32836 variable attributes to the Variable Attributes section. Fix
32837 some obvious typos and copy-editing issues.
32838 (Variable Attributes, Type Attributes): Likewise add/fix
32839 @cindex entries for all attributes.
32841 2015-03-23 Jakub Jelinek <jakub@redhat.com>
32844 * tree-chkp.c (chkp_build_returned_bound): Ignore
32845 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
32847 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
32850 * config/sh/predicates.md (simple_mem_operand,
32851 displacement_mem_operand): Add test for reg.
32852 (short_displacement_mem_operand): Test for displacement_mem_operand
32853 before invoking sh_disp_addr_displacement.
32854 * config/sh/constraints.md (Sdd, Sra): Simplify.
32855 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
32856 Remove redundant displacement_mem_operand tests.
32858 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
32861 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
32862 the same -mmcu=MCU more than once.
32864 2015-03-23 Jakub Jelinek <jakub@redhat.com>
32867 * ipa-devirt.c: Remove duplicate demangle.h include.
32870 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
32872 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
32873 REG_POINTER on *destptr after adjusting it for prologue size.
32876 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
32877 ultimate_alias_target ()->order ints instead of
32878 ultimate_alias_target () pointers.
32880 2015-03-23 Richard Biener <rguenther@suse.de>
32882 PR tree-optimization/65518
32883 * tree-vect-stmts.c (vectorizable_load): Reject single-element
32884 interleaving cases we generate absymal code for.
32886 2015-03-23 Richard Biener <rguenther@suse.de>
32888 PR tree-optimization/65494
32889 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
32891 (vect_analyze_slp_instance): But do that here, always and once.
32893 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32895 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
32896 adding T or multiplying by T+1 and subracting T.
32898 2015-03-22 Jeff Law <law@redhat.com>
32900 PR rtl-optimization/64317
32901 * Makefile.in (OBJS): Add gcse-common.c
32902 * gcse.c: Include gcse-common.h
32903 (struct modify_pair_s): Move structure definition to gcse-common.h
32904 (compute_transp): Move function to gcse-common.c.
32905 (canon_list_insert): Similarly.
32906 (record_last_mem_set_info): Break out some code and put it into
32907 gcse-common.c. Call into the new common code.
32908 (compute_local_properties): Pass additional arguments to compute_transp.
32909 * postreload-gcse.c: Include gcse-common.h and df.h
32910 (modify_mem_list_set, blocks_with_calls): New variables.
32911 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
32912 (get_bb_avail_insn): Pass in the expression index too.
32913 (alloc_mem): Allocate memory for the new bitmaps and lists.
32914 (free_mem): Free memory for the new bitmaps and lists.
32915 (insert_expr_in_table): Record a bitmap index for each entry we
32917 (record_last_mem_set_info): Call into common code in gcse-common.c.
32918 (get_bb_avail_insn): If no available insn was found in the requested
32919 BB. If BB has a single predecessor, see if the expression is
32920 transparent in BB and available in that single predecessor.
32921 (compute_expr_transp): New wrapper for compute_transp.
32922 (eliminate_partially_redundant_load): Pass expression's bitmap_index
32923 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
32924 (gcse_after_reload_main): If there are elements in the hash table,
32925 then compute transparency for all the elements in the hash table.
32926 * gcse-common.h: New file.
32927 * gcse-common.c: New file.
32929 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
32931 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
32933 (System Headers): Likewise.
32935 (Traditional macros): Likewise.
32936 (Invocation): Likewise.
32937 (Option Index): Likewise.
32938 * doc/cppopts.texi (-M): Likewise.
32939 (-finput-charset): Likewise.
32940 (--help): Likewise.
32941 * doc.invoke.texi (AVR Options): Likewise.
32942 (V850 Options): Likewise.
32944 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
32947 * ipa-devirt.c: Include demangle.h
32948 (odr_type_d): Add field rtti_broken.
32949 (odr_subtypes_equivalent_p): Do not require name to match.
32950 (compare_virtual_tables): Fix typo; if type already has ODR violation,
32951 bypass the tests; be ready for function referneces in vtables that are
32952 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
32953 (warn_odr): Give up for nameless types.
32954 (warn_types_mismatch): Report mismatch in mangled names;
32955 report mismatch in anonymous namespaces; look into component types to
32956 give useful error; report when mismatch is dragged in from other ODR
32958 (odr_types_equivalent_p): Match types for being polymorphic; avoid
32959 duplicated diagnostics.
32960 (add_type_duplicate): Reorder checks so more informative ones come
32961 first; fix typo; do not output "the extra base is defined here" when
32963 (BINFO_N_BASE_BINFOS): Relax sanity check.
32965 2015-03-22 Martin Liska <mliska@suse.cz>
32966 Jakub Jelinek <jakub@redhat.com>
32968 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
32969 masks that can potentially include a builtin.
32970 (ix86_add_new_builtins): Introduce fast filter for isa values
32971 that cannot trigger builtin inclusion.
32973 2015-03-22 Martin Liska <mliska@suse.cz>
32975 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
32976 (sem_item::update_hash_by_local_refs): Likewise.
32977 (sem_variable::get_hash): Empty line is fixed.
32978 (sem_item_optimizer::execute): Include adding of hash references.
32979 (sem_item_optimizer::update_hash_by_addr_refs): New function.
32980 (sem_item_optimizer::build_hash_based_classes): Use local hash.
32981 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
32982 (sem_item::update_hash_by_local_refs): Likewise.
32984 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
32987 * ipa-comdats.c (enqueue_references): Walk through thunks.
32988 (ipa_comdats): Likewise.
32989 (set_comdat_group_1): New function.
32991 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
32994 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
32997 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
32998 Gerald Pfeifer <gerald@pfeifer.com>
33000 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
33002 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
33003 Sandra Loosemore <sandra@codesourcery.com>
33005 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
33006 function parameter declaration.
33007 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
33008 Update arguments to nios2_adjust_call_address().
33009 (sibcall_internal): Rename from *sibcall.
33010 (sibcall_value_internal): Rename from *sibcall_value.
33011 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
33012 (nios2_large_got_address): Add target temp reg parameter.
33013 (nios2_got_address): Adjust call to nios2_large_got_address, add
33014 force_reg around it.
33015 (nios2_load_pic_address): Add target temp reg parameter, replace call
33016 to nios2_got_address with corresponding code.
33017 (nios2_legitimize_constant_address): Update call to
33018 nios2_load_pic_address.
33019 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
33020 to use temp reg for PIC loading purposes.
33021 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
33022 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
33023 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
33025 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33027 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
33028 usage of "the @option{...}".
33029 (-Wopenmp-simd): Likewise.
33030 (-fsanitize-recover): Likewise.
33031 (-fsanitize-undefined-trap-on-error): Likewise.
33033 (tracer-dynamic-coverage-feedback): Likewise.
33034 (reorder-block-duplicate-feedback): Likewise.
33035 (loop-unroll-jam-size): Likewise.
33038 (-mabs=legacy): Likewise.
33039 (-mupper-regs-df): Likewise.
33040 (-mupper-regs-sf): Likewise.
33041 (-mpointers-to-nested-functions): Likewise.
33043 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33045 * doc/extend.texi (Cilk Plus Builtins): Add markup.
33047 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33049 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
33050 additional index entries and cross-references.
33051 (-fchkp-check-incomplete-type): Likewise.
33052 (-fchkp-first-field-has-own-bounds): Likewise.
33053 (-fchkp-narrow-to-innermost-array): Likewise.
33054 (-fchkp-use-fast-string-functions): Likewise.
33055 (-fchkp-use-nochk-string-functions): Likewise.
33056 (-fchkp-use-static-const-bounds): Likewise.
33057 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33058 (-fchkp-instrument-marked-only): Likewise.
33059 (-fchkp-use-wrappers): Likewise.
33060 (-static-libmpx): Likewise.
33061 (-static-libmpxwrappers): Likewise.
33062 * doc/extend.texi (bnd_legacy): Likewise.
33063 (bnd_instrument): Likewise.
33064 (bnd_variable_size): Likewise.
33065 (Pointer Bounds Checker builtins): Likewise.
33067 2015-03-21 Tom de Vries <tom@codesourcery.com>
33069 PR tree-optimization/65458
33070 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
33071 * cgraph.h (cgraph_node): Add parallelized_function field.
33072 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
33073 (input_overwrite_node): Read parallelized_function field.
33074 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
33075 parallelized_function on cgraph_node for child_fn.
33076 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
33077 Remove include of gt-tree-parloops.h.
33078 (parallelized_functions): Remove static variable.
33079 (parallelized_function_p): Rewrite using parallelized_function field of
33081 (create_loop_fn): Remove adding to parallelized_functions.
33082 * Makefile.in (GTFILES): Remove tree-parloops.c
33084 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
33086 PR rtl-optimization/64366
33087 * lra.c (lra_update_insn_regno_info): Consider regs in
33088 CALL_INSN_FUNCTION_USAGE memory.
33090 2015-03-20 Richard Biener <rguenther@suse.de>
33092 PR middle-end/64715
33093 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
33094 for type comparison and gcc_checking_assert.
33095 (chrec_fold_plus_poly_poly): Likewise.
33096 (chrec_fold_multiply_poly_poly): Likewise.
33097 (chrec_convert_1): Likewise.
33098 * gimplify.c (gimplify_expr): Remove premature folding of
33099 &X + CST to &MEM[&X, CST].
33101 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
33103 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
33105 (ipa_inline): Recompute inline_failed codes.
33106 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
33107 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
33110 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
33112 PR rtl-optimization/60851
33113 * recog.c (constrain_operands): Accept a pseudo register before reload
33114 for LRA enabled targets.
33116 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
33119 * config/rs6000/predicates.md (easy_fp_constant): Remove special
33120 -ffast-math handling that kept non-0 constants live in the RTL
33121 until reload. Remove logic testing the number of instructions it
33122 took to create a constant in a GPR that was never used, due to a
33123 test for soft-float earlier.
33124 (memory_fp_constant): Delete, no longer used.
33126 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
33127 alternatives for loading non-0 constants into GPRs for hard
33128 floating point that is no longer needed due to changes in
33129 easy_fp_constant. Add support for loading 0.0 into GPRs.
33130 (mov<mode>_hardfloat32): Likewise.
33131 (mov<mode>_hardfloat64): Likewise.
33132 (mov<mode>_64bit_dm): Likewise.
33133 (movtd_64bit_nodm): Likewise.
33134 (pre-reload move FP constant define_split): Delete define_split,
33135 since it is no longer used.
33136 (extenddftf2_internal): Remove GHF constraints that are not valid
33139 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
33141 PR rtl-optimization/63491
33142 * lra-constraints.c (check_and_process_move): Use src instead of
33143 sreg. Remove some dead code.
33145 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
33148 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
33149 (sem_variable::merge): Likewise.
33151 2015-03-19 Martin Liska <mliska@suse.cz>
33154 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
33155 all fields of cgraph_thunk_info.
33157 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
33159 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
33160 clone instrumented thunks.
33162 2015-03-19 Richard Biener <rguenther@suse.de>
33165 2015-03-10 Richard Biener <rguenther@suse.de>
33167 PR middle-end/63155
33168 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
33169 * tree-ssa-coalesce.c: Include timevar.h.
33170 (attempt_coalesce): Handle graph being NULL.
33171 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
33172 Split out abnormal coalescing to ...
33173 (perform_abnormal_coalescing): ... this function.
33174 (coalesce_ssa_name): Perform abnormal coalescing without computing
33176 (verify_ssa_coalescing_worker): New function.
33177 (verify_ssa_coalescing): Likewise.
33179 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
33180 Jakub Jelinek <jakub@redhat.com>
33183 * tsan.c (instrument_gimple): Clear tail call flag on
33186 2015-03-19 Jakub Jelinek <jakub@redhat.com>
33189 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
33190 call in the return bb.
33191 (find_split_points): Add RETURN_BB argument, don't call
33193 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
33194 if true append TSAN_FUNC_EXIT internal call after the call to
33195 the split off function.
33196 (execute_split_functions): Call find_return_bb here.
33197 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
33198 Adjust find_split_points and split_function calls.
33200 2015-03-18 DJ Delorie <dj@redhat.com>
33202 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
33203 (iorqi3_virt): Likewise.
33205 2015-03-18 Tom de Vries <tom@codesourcery.com>
33207 * tree-parloops.c (parallelize_loops): Make static.
33208 * tree-parloops.h (parallelize_loops): Remove extern declaration.
33210 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
33212 PR middle-end/64491
33214 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
33216 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
33217 condition would be removed due to undefined behaviour.
33219 2015-03-18 Martin Liska <mliska@suse.cz>
33222 * cgraph.c (cgraph_node::get_create): Remove unnecessary
33223 xstrdup_for_dump wrapper.
33224 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
33226 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
33227 with xstrdup_for_dump.
33228 (sem_variable::equals): Likewise.
33229 (sem_item_optimizer::read_section): Use symtab_node::name instead of
33231 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
33232 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
33233 symtab_node::asm_name with xstrdup_for_dump.
33234 (congruence_class::dump): Use symtab_node::name instead of
33236 * ipa-icf.h (symtab_node::name): Remove.
33237 (symtab_node::asm_name): Likewise.
33239 2015-03-18 Jakub Jelinek <jakub@redhat.com>
33241 PR tree-optimization/65450
33242 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
33244 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
33245 it instead of duplicate_ssa_name_ptr_info.
33248 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
33250 2015-03-18 Richard Biener <rguenther@suse.de>
33252 * tree-data-ref.h (struct access_matrix): Remove.
33253 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
33254 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
33255 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
33256 (am_vector_index_for_loop): Likewise.
33257 (struct data_reference): Remove access_matrix member.
33258 (DR_ACCESS_MATRIX): Remove.
33259 (lambda_vector_new): Add comment.
33260 (lambda_matrix_new): Use XOBNEWVEC.
33262 2015-03-18 Richard Biener <rguenther@suse.de>
33264 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
33265 (pass_ch::execute): Cleanup the CFG only if we did sth.
33266 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
33268 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33270 * expmed.c (synth_mult): Use std::swap instead of manually
33271 swapping algorithms.
33273 2015-03-18 Jakub Jelinek <jakub@redhat.com>
33276 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
33278 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
33281 * config/avr/avr.opt (-nodevicelib): New option.
33282 * doc/invoke.texi (AVR Options): Document it.
33283 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
33284 libgcc.a, libc.a, libm.a.
33285 * config/avr/specs.h: Same.
33286 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
33287 which don't (directly) depend on the device. Print more help.
33288 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
33289 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
33290 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
33292 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
33293 for specs file name.
33294 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
33295 * config/avr/avr-mcus.def: Adjust initializers and comments.
33297 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
33299 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
33300 DECL_ONE_ONLY to check if decl is one only.
33301 * ipa-split.c (consider_split): Limit splitt of one only functions.
33303 2015-03-16 Jakub Jelinek <jakub@redhat.com>
33305 PR tree-optimization/65427
33306 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
33308 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
33310 2015-03-16 Marek Polacek <polacek@redhat.com>
33312 * cgraph.h (add_new_static_var): Remove declaration.
33313 * varpool.c (add_new_static_var): Remove function.
33315 2015-03-16 Jakub Jelinek <jakub@redhat.com>
33317 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
33318 instead of vec<tree> * with vec_alloc and release for args.
33321 PR middle-end/65431
33322 * omp-low.c (delete_omp_context): Only splay_tree_delete
33323 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
33324 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
33326 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
33329 * cfgexpand.c (align_base): New function.
33330 (alloc_stack_frame_space): Call it.
33331 (expand_stack_vars): Align prev_frame to be sure
33332 data->asan_vec elements aligned properly.
33334 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
33336 PR middle-end/65409
33337 * expr.c (store_field): Do not do a direct block copy if the source is
33338 a PARALLEL with BLKmode.
33340 2015-03-16 Tom de Vries <tom@codesourcery.com>
33342 PR middle-end/65414
33344 2015-03-12 Tom de Vries <tom@codesourcery.com>
33346 PR rtl-optimization/64895
33347 * lra-lives.c (check_pseudos_live_through_calls): Use
33348 actual_call_used_reg_set instead of call_used_reg_set, if available.
33350 2015-03-16 Alan Modra <amodra@gmail.com>
33353 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
33354 Modify Z->r bswapdi splitter to use dest in place of scratch.
33355 In r->Z and Z->r bswapdi splitter rename word_high, word_low
33356 to word1, word2 and rearrange logic to suit.
33357 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
33358 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
33359 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
33360 Add one '?' on r->r. Modify Z->r splitter to avoid need for
33363 2015-03-14 Jakub Jelinek <jakub@redhat.com>
33365 PR tree-optimization/65369
33366 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
33367 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
33368 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
33370 PR tree-optimization/65418
33371 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
33372 are casts in the first PLUS_EXPR operand, ensure tbias and
33373 *totallowp are in the inner type.
33375 PR rtl-optimization/65401
33376 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
33377 argument. If true, adjust_address_nv of x with big-endian
33378 correction for the mode widening to GET_MODE (y).
33379 (make_field_assignment): Don't do MEM mode widening here.
33380 Use MEM_P instead of GET_CODE == MEM.
33382 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
33384 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
33385 the external decls.
33387 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33390 * config/arm/arm.c (arm_gen_constant, AND case): Use
33391 ARM_SIGN_EXTEND when constructing AND mask.
33393 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
33395 * graph.c (print_graph_cfg): Make function names visible and append
33396 parenthesis to it. Also make groups of basic blocks belonging to the
33397 same function visible.
33399 2015-03-12 Richard Biener <rguenther@suse.de>
33401 PR middle-end/44563
33402 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
33403 to avoid quadratic behavior with inline expansion splitting blocks.
33404 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
33405 with the successor if the predecessor will be merged with it.
33406 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
33407 entry block with its successor.
33409 2015-03-13 Richard Biener <rguenther@suse.de>
33411 PR middle-end/44563
33412 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
33413 (cleanup_tree_cfg_1): Do not call it.
33414 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
33415 (fixup_noreturn_call): Mark the stmt as control altering.
33416 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
33418 (pass_data_fixup_cfg): Produce a dump file.
33419 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
33420 (need_noreturn_fixup): New global.
33421 (pass_dominator::execute): Fixup queued noreturn calls.
33422 (optimize_stmt): Queue calls that became noreturn for fixup.
33423 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
33424 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
33425 (el_to_fixup): New global.
33426 (eliminate_dom_walker::before_dom_childre): Queue calls that
33427 became noreturn for fixup.
33428 (eliminate): Fixup queued noreturn calls.
33429 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
33430 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
33431 (substitute_and_fold_dom_walker::before_dom_children): Queue
33432 alls that became noreturn for fixup.
33433 (substitute_and_fold): Fixup queued noreturn calls.
33435 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
33437 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
33438 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
33439 are building; for methods check ODR type of class they belong to if
33440 they may lead to a polymorphic call.
33441 (sem_function::compare_polymorphic_p): Be bit smarter about testing
33442 when function may lead to a polymorphic call.
33443 (sem_function::compare_type_list): Remove.
33444 (sem_variable::equals): Update use of compatible_types_p.
33445 (sem_variable::parse_tree_refs): Remove.
33446 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
33448 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
33450 (func_checker::compatible_polymorphic_types_p): Break out from ...
33451 (unc_checker::compatible_types_p): ... here.
33452 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
33454 (unc_checker::compatible_types_p): Update.
33455 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
33458 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33460 PR rtl-optimization/65235
33461 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
33462 When first element of vec_concat is const_int, calculate its size
33463 using second element.
33465 2015-03-12 Richard Biener <rguenther@suse.de>
33467 PR middle-end/65270
33468 * fold-const.c (operand_equal_p): Fix ordering of resetting
33469 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
33471 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
33473 * config/s390/s390.c (s390_reorg): Move code to output nops after label
33475 (s390_asm_output_function_label): Likewise.
33476 * config/s390/s390.c (s390_asm_output_function_label):
33477 Fix function label alignment with -mhtopatch.
33478 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
33479 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
33480 ("nop_2_byte"): New define_insn.
33481 ("nop_4_byte"): Likewise.
33482 ("nop_6_byte"): Likewise.
33483 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
33484 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
33486 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
33489 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
33492 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
33495 * toplev.c (process_options): Restrict Pointer Bounds Checker
33496 usage with Address Sanitizer.
33498 2015-03-12 Richard Biener <rguenther@suse.de>
33500 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
33502 * omp-low.c (expand_omp_taskreg): Split block before removing
33504 (expand_omp_target): Likewise.
33505 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
33506 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
33507 stmt to split_block.
33509 2015-03-12 Tom de Vries <tom@codesourcery.com>
33511 PR rtl-optimization/64895
33512 * lra-lives.c (check_pseudos_live_through_calls): Use
33513 actual_call_used_reg_set instead of call_used_reg_set, if available.
33515 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
33517 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
33518 (cgraph_node::remove): Likewise.
33519 (cgraph_node::get_untransformed_body): Likewise.
33520 * varpool.c (varpool_node::remove): Likewise.
33521 (varpool_node::get_constructor): Add sanity check.
33523 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
33525 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
33527 (-fabi-compat-version): Likewise.
33528 (-ffriend-injection): Likewise.
33529 (-Wdeclaration-after-statement): Likewise.
33530 (-fomit-frame-pointer): Likewise.
33531 (-ftree-coalesce-inlined-vars): Likewise.
33532 (-fvisibility=): Likewise.
33533 * doc/extend.texi (Typeof): Likewise.
33534 (Zero Length): Likewise.
33535 (Escaped Newlines): Likewise.
33536 (Compound Literals): Likewise.
33537 (Function Attributes): Likewise.
33538 (Label Attributes): Likewise.
33539 (Type Attributes): Likewise.
33540 (Function Names): Likewise.
33541 (Other Builtins): Likewise.
33542 (Function Specific Option Pragmas): Likewise.
33543 (C++ Interface): Likewise.
33545 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
33547 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
33549 2015-03-11 Marek Polacek <polacek@redhat.com>
33551 PR tree-optimization/65388
33552 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
33554 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
33557 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
33558 * configure: Regenerate.
33559 * config.in: Regenerate.
33560 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
33561 [-mn-flash]: Document it.
33562 [__AVR_ARCH__]: Document avrtiny.
33564 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
33565 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
33566 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
33568 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
33570 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
33572 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
33575 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
33576 allow reloads of PLUS in floating point/VSX registers.
33578 2015-03-11 Junmo Park <junmoz.park@samsung.com>
33580 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
33581 crypto_sha256_fast.
33582 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
33584 2015-03-11 Richard Biener <rguenther@suse.de>
33586 PR tree-optimization/65310
33587 * tree-sra.c (build_ref_for_offset): Also preserve larger
33590 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
33592 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
33594 2015-03-10 Jakub Jelinek <jakub@redhat.com>
33597 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
33599 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
33601 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
33603 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
33604 (sem_function::equals_wpa): ... here.
33606 2015-03-10 Marek Polacek <polacek@redhat.com>
33607 Jakub Jelinek <jakub@redhat.com>
33610 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
33611 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
33614 2015-03-10 Jakub Jelinek <jakub@redhat.com>
33617 * config/rs6000/t-linux: For powerpc64* target set
33618 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
33620 2015-03-10 Richard Biener <rguenther@suse.de>
33622 PR middle-end/44563
33623 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
33624 for redirect_all_calls.
33626 2015-03-10 Marek Polacek <polacek@redhat.com>
33628 * gdbinit.in (pcfun): Define and document.
33630 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
33632 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
33633 of libgomp-plugin.h.
33634 (find_target_compiler): Support a case when the path to gcc is
33635 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
33636 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
33637 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
33639 (main): Use GCC_INSTALL_NAME as target_driver_name.
33640 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
33642 (mkoffload.o): Remove obsolete include path and defines.
33643 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
33645 2015-03-10 Richard Biener <rguenther@suse.de>
33647 PR middle-end/63155
33648 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
33649 * tree-ssa-coalesce.c: Include timevar.h.
33650 (attempt_coalesce): Handle graph being NULL.
33651 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
33652 Split out abnormal coalescing to ...
33653 (perform_abnormal_coalescing): ... this function.
33654 (coalesce_ssa_name): Perform abnormal coalescing without computing
33656 (verify_ssa_coalescing_worker): New function.
33657 (verify_ssa_coalescing): Likewise.
33659 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
33662 * config.gcc (extra_options) [avr]: Remove.
33663 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
33664 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
33665 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
33667 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
33668 (-mmcu=): Add Var and MissingArgError properties.
33670 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
33671 * config/avr/t-multilib: Regenerate.
33672 * config/avr/specs.h: New file.
33673 * config/avr/driver-avr.c: New file.
33674 * config/avr/genopt.sh: Remove file.
33675 * config/avr/avr-tables.opt: Remove file.
33676 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
33677 * config/avr/avr-c.c: Same.
33678 * avr-arch.h: Same.
33679 (avr_current_device): Remove proto.
33680 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
33681 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
33682 (EXTRA_SPEC_FUNCTIONS): Define.
33683 (avr_devicespecs_file): New specs function proto.
33684 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
33685 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
33686 (avr_current_device): Remove definition and usage.
33687 (avr_set_core_architecture): New static function.
33688 (avr_option_override): Use it.
33689 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
33690 (mcu_name): New static array.
33691 (comparator, avr_archs_str, avr_mcus_str): New static functions.
33692 (avr_inform_devices, avr_inform_core_architectures): New functions.
33693 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
33694 (avrlibc.h) [WITH_AVRLIBC]: Include.
33695 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
33696 (print_mcu): Rewrite from scratch.
33697 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
33698 Forward to avr-specific specs defined in device-specs file.
33699 * config/avr/t-avr (driver-avr.o): New rule.
33700 (avr-devices.o): Depend on avr-arch.h.
33701 (avr-mcus): No more depend on avr-tables.opt.
33702 (avr-tables.opt): Remove rule.
33703 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
33705 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
33707 * c-family/c.opt (fchkp-use-wrappers): New.
33708 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
33709 (chkp_wrap_function): New.
33710 (chkp_build_instrumented_fndecl): Support wrapped
33712 * doc/invoke.texi (-fcheck-pointer-bounds): New.
33713 (-fchkp-check-incomplete-type): New.
33714 (-fchkp-first-field-has-own-bounds): New.
33715 (-fchkp-narrow-bounds): New.
33716 (-fchkp-narrow-to-innermost-array): New.
33717 (-fchkp-optimize): New.
33718 (-fchkp-use-fast-string-functions): New.
33719 (-fchkp-use-nochk-string-functions): New.
33720 (-fchkp-use-static-bounds): New.
33721 (-fchkp-use-static-const-bounds): New.
33722 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
33723 (-fchkp-check-read): New.
33724 (-fchkp-check-write): New.
33725 (-fchkp-store-bounds): New.
33726 (-fchkp-instrument-calls): New.
33727 (-fchkp-instrument-marked-only): New.
33728 (-fchkp-use-wrappers): New.
33729 (-static-libmpx): New.
33730 (-static-libmpxwrappers): New.
33732 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
33734 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
33735 (CHKP_SPEC): Add wrappers library.
33736 * c-family/c.opt (static-libmpxwrappers): New.
33738 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
33740 * config/i386/linux-common.h (LIBMPX_LIBS): New.
33741 (LIBMPX_SPEC): New.
33743 * gcc.c (CHKP_SPEC): New.
33744 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
33745 * c-family/c.opt (static-libmpx): New.
33747 2015-03-10 Richard Biener <rguenther@suse.de>
33749 PR middle-end/44563
33750 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
33752 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
33753 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
33754 (cgraph_add_edge_to_call_site_hash): Likewise.
33755 (cgraph_node::get_edge): Likewise.
33756 (cgraph_edge::set_call_stmt): Likewise.
33757 (cgraph_edge::remove_caller): Likewise.
33759 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
33761 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
33762 (callee_saved_gpr_regs_size): ... this.
33763 (callee_saved_regs_first_regno): Rename to ...
33764 (callee_saved_first_gpr_regno): ... this.
33765 (callee_saved_regs_last_regno) Rename to ...
33766 (callee_saved_last_gpr_regno): ... this.
33767 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
33769 (nds32_initial_elimination_offset): Likewise.
33770 (nds32_expand_prologue): Likewise.
33771 (nds32_expand_epilogue): Likewise.
33772 (nds32_expand_prologue_v3push): Likewise.
33773 (nds32_expand_epilogue_v3pop): Likewise.
33774 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
33775 Adjust renamed variables.
33776 (nds32_output_stack_pop): Likewise.
33778 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
33780 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
33783 2015-03-10 Jakub Jelinek <jakub@redhat.com>
33785 PR rtl-optimization/65321
33786 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
33788 * var-tracking.c (use_narrower_mode): Likewise.
33790 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
33792 PR tree-optimization/65355
33793 * varasm.c (notice_global_symbol): Do not produce RTL.
33794 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
33796 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
33797 check for section anchors.
33799 2015-03-10 Alan Modra <amodra@gmail.com>
33802 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
33803 to be single-arch by default. Set cpu_is_64bit for powerpc64
33804 given --with-cpu=native.
33805 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
33806 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
33808 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
33809 rs6000_isa_flags rather than TARGET_64BIT.
33811 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
33812 Kaz Kojima <kkojima@gcc.gnu.org>
33814 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
33816 2015-03-09 Jakub Jelinek <jakub@redhat.com>
33819 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
33820 on a TREE_BINFO, instead use BINFO_TYPE.
33822 2015-03-09 Richard Biener <rguenther@suse.de>
33824 PR middle-end/65270
33825 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
33826 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
33827 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
33828 of that. When comparing dereferences compare alignment.
33829 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
33831 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
33833 * ipa-inline-analysis.c (check_callers): Check
33834 node->can_remove_if_no_direct_calls_and_refs_p.
33835 (growth_likely_positive): Reorganize to call
33836 can_remove_if_no_direct_calls_p later.
33837 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
33838 will_be_removed_from_program_if_no_direct_calls_p): Add
33839 will_inline parameter.
33840 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
33841 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
33842 Handle inliner case correctly.
33844 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
33846 PR tree-optimization/63743
33847 * cfgexpand.c (reorder_operands): Also reorder if only second operand
33848 had its definition forwarded by TER.
33850 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
33853 * ipa-utils.h (types_odr_comparable): Add strict argument.
33854 * ipa-devirt.c: Fix whitespace;
33855 (odr_hasher): Remove.
33856 (odr_name_hasher, odr_vtable_hasher): New hashers.
33857 (can_be_name_hashed_p): New predicate.
33858 (hash_type_name): remove.
33859 (hash_odr_name): New.
33860 (odr_name_hasher::hash): new.
33861 (can_be_vtable_hashed_p): New.
33862 (hash_odr_vtable): New.
33863 (odr_vtable_hasher::hash): New.
33864 (types_same_for_odr): Add strict parameter.
33865 (types_odr_comparable): Likewise.
33866 (odr_name_hasher::equal): New.
33867 (odr_vtable_hasher::equal): New.
33868 (odr_name_hasher::remove): New.
33869 (odr_hash_type): Change to hash_table<odr_name_hasher>.
33870 (odr_vtable_hash_type): New.
33871 (odr_vtable_hash): New.
33872 (odr_subtypes_equivalent_p): Do strict comparsion.
33873 (add_type_duplicate): Merge type names; cleanup; avoid type
33875 (register_odr_type): Initialize vtable hash.
33876 (build_type_inheritance_graph): Likewise
33877 (get_odr_type): Reorg to use two hashes.
33878 (dump_possible_polymorphic_call_targets): Move sanity check after debug
33880 (ipa_devirt): Dump type_inheritance_graph.
33881 (types_same_for_odr): Add strict mode.
33883 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
33886 * cgraph.h (symtab_node): Add definition_alignment,
33887 can_increase_alignment_p and increase_alignment.
33888 * symtab.c (symtab_node::can_increase_alignment_p,
33889 increase_alignment_1, symtab_node::increase_alignment,
33890 symtab_node::definition_alignment): New.
33891 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
33892 can_increase_alignment_p.
33893 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
33894 * tree-vect-stmts.c (ensure_base_align): Likewise.
33895 * varasm.c (function_section_1): Use definition_alignment.
33896 (assemble_start_function): Likewise.
33897 (emit_local): likewise.
33898 (build_constant_desc): Likewsie.
33899 (output_constant_def_contents): Likewise.
33900 (place_block_symbol): Likewise.
33901 (output_object_block): Likewise.
33903 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
33906 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
33907 when outputting debug.
33909 2015-03-07 Marek Polacek <polacek@redhat.com>
33910 Martin Uecker <uecker@eecs.berkeley.edu>
33913 * doc/invoke.texi: Update description of -fsanitize=bounds.
33915 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
33917 * tree-ssa-phiopt.c (neg_replacement): Remove.
33918 (tree_ssa_phiopt_worker): Remove negate optimization.
33920 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
33923 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
33925 2015-03-06 Richard Biener <rguenther@suse.de>
33927 PR middle-end/64928
33928 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
33929 and liveout_obstack members.
33930 (calculate_live_on_exit): Remove.
33931 (calculate_live_ranges): Change declaration.
33932 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
33933 (new_tree_live_info): Adjust.
33934 (calculate_live_ranges): Delete livein when not wanted.
33935 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
33936 Deal with partly deleted live info.
33937 (loe_visit_block): Remove temporary bitmap by using
33938 bitmap_ior_and_compl_into.
33939 (live_worklist): Adjust accordingly.
33940 (calculate_live_on_exit): Make static.
33941 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
33942 we do not need livein.
33944 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
33946 * real.c (real_from_string): Fix typo in assertion.
33948 2015-03-06 Alex Velenko <alex.velenko@arm.com>
33950 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
33953 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
33955 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
33957 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
33960 * lra-assigns.c (find_hard_regno_for): Rename to
33961 find_hard_regno_for_1. Add a new parameter.
33962 (find_hard_regno_for): New function using find_hard_regno_for_1.
33964 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
33966 PR rtl-optimization/65067
33967 * expmed.c (store_bit_field, extract_bit_field): Reworked the
33968 strict volatile bitfield handling.
33970 2015-03-05 Martin Liska <mliska@suse.cz>
33973 * ipa-icf.c (sem_variable::equals): Compare variables types.
33975 2015-03-05 Richard Henderson <rth@redhat.com>
33978 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
33979 correctly check weak symbol binding.
33981 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
33983 PR middle-end/65315
33984 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
33987 2015-03-05 Martin Liska <mliska@suse.cz>
33989 * ipa-inline.c (inline_small_functions): Set default value to
33990 prevent warning during bootstrap.
33991 * tree.h: Add pragma guard that ignores false positives during
33994 2015-03-05 Richard Biener <rguenther@suse.de>
33996 PR tree-optimization/65310
33997 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
33998 Properly preserve alignment of the base of the access.
34000 2015-03-05 Richard Biener <rguenther@suse.de>
34003 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
34004 Compare dependence info.
34006 2015-03-05 Richard Biener <rguenther@suse.de>
34008 PR middle-end/65233
34009 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
34011 (walk_ssa_copies): Revert last chage. Instead do not walk
34012 SSA names registered for SSA update.
34014 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34017 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
34018 vtable references for their containing type.
34019 (sem_function::equals_wpa): Compare TYPE_RESTRICT
34020 and type attributes.
34022 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
34024 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
34025 before negating it.
34026 * stor-layout.c (finalize_record_size): Revert latest change.
34028 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
34030 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
34032 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34034 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
34035 for correct comdat handling.
34036 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34038 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
34039 (used_from_object_file_p_worker): Remove.
34040 (cgraph_node::only_called_directly_or_alised): Add
34041 used_from_object_file_p.
34042 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
34043 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
34044 can_remove_if_no_direct_calls_and_refs_p.
34046 2015-03-04 Nick Clifton <nickc@redhat.com>
34048 * config/rl78/rl78.h (enum reg_class): Remove real registers from
34049 General register class.
34050 * config/rl78/rl78-real.md: Replace general register constraints
34051 with real+virtual register constraints.
34053 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34055 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
34056 from checking for -mhtm option.
34058 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34060 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
34061 (struct ipa_sra_check_caller_data): Add has_thunk field.
34062 (ipa_sra_check_caller): Check for thunk.
34063 (ipa_sra_preliminary_function_checks): Give up on function with
34065 (ipa_early_sra): Use call_for_symbol_and_aliases.
34067 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
34070 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
34071 called for __stack_chk_guard symbol.
34073 2015-03-03 DJ Delorie <dj@redhat.com>
34075 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
34077 (*addhi3_real): Likewise.
34078 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
34079 pattern to match incrementing memory.
34080 * config/rl78/predicates.md (rl78_1_2_operand): New.
34081 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
34082 it's the same and only mem.
34083 (rl78_alloc_physical_registers_op2): If there's effectively only
34084 one MEM, transcode it into HL.
34085 (rl78_far_p): Reject addresses that aren't legitimate.
34087 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
34089 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
34092 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
34094 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
34096 Implement call0 ABI for xtensa
34097 * config/xtensa/constraints.md ("a" constraint): Include stack
34098 pointer in case of call0 ABI.
34099 ("q" constraint): Make empty in case of call0 ABI.
34100 ("D" constraint): Include stack pointer in case of call0 ABI.
34101 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
34102 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
34104 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
34106 (xtensa_regno_to_class): Make it a local variable in the
34107 function xtensa_regno_to_class.
34108 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
34109 macro, function prototype and implementation.
34110 (reg_nonleaf_alloc_order): Make it a local variable in the
34111 function order_regs_for_local_alloc.
34112 (xtensa_conditional_register_usage): New function.
34113 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
34114 (xtensa_valid_move): Allow direct moves to stack pointer
34115 register in call0 ABI.
34116 (xtensa_setup_frame_addresses): Only spill register windows in
34118 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
34119 call0 ABI respectively.
34120 (xtensa_function_arg_1): Only mark a7 register for copying in
34122 (xtensa_call_save_reg): New function.
34123 (compute_frame_size): Add space for callee saved register
34124 storage to the frame size in call0 ABI.
34125 (xtensa_expand_prologue): Generate code to set up stack frame
34126 and save callee-saved registers in call0 ABI.
34127 (xtensa_expand_epilogue): New function.
34128 (xtensa_set_return_address): New function.
34129 (xtensa_return_addr): Calculate return address in call0 ABI.
34130 (xtensa_builtin_saveregs): Only mark a7 register for copying and
34131 emit copying code in windowed ABI.
34132 (order_regs_for_local_alloc): Add preferred register allocation
34133 order for non-leaf function in call0 ABI.
34134 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
34135 (xtensa_asm_trampoline_template): Add trampoline generation for
34137 (xtensa_trampoline_init): Add trampoline initialization for
34139 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
34141 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
34142 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
34143 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
34144 ABI call-used registers.
34145 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
34146 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
34148 (REG_CLASS_CONTENTS): Include all registers into the preferred
34149 reload registers set, adjust the set in the
34150 xtensa_conditional_register_usage.
34151 (xtensa_regno_to_class): Drop variable declaration.
34152 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
34154 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
34156 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
34157 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
34158 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
34159 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
34160 location in call0 ABI.
34161 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
34162 stack adjustment size when handling exception.
34163 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
34164 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
34166 ("return" pattern): Generate ret.n/ret in call0 ABI.
34167 ("epilogue" pattern): Expand epilogue.
34168 ("nonlocal_goto" pattern): Use default in call0 ABI.
34169 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
34170 emit eh_set_a0_* depending on ABI.
34171 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
34172 ("eh_set_a0_call0", "blockage"): New patterns.
34174 2015-03-03 Martin Liska <mliska@suse.cz>
34177 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
34179 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
34182 * config/rs6000/rs6000-tables.opt: Regenerate table.
34184 2015-03-03 Renlin Li <renlin.li@arm.com>
34186 * doc/md.texi (@item ^): Change ? into ^.
34188 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
34190 * doc/tm.texi: Regenerated.
34192 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
34194 * builtins.c (expand_builtin_return_addr): Add
34195 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
34196 surrounding #ifdef.
34197 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
34199 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
34201 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
34203 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
34206 2015-03-03 Martin Jambor <mjambor@suse.cz>
34207 Eric Botcazou <ebotcazou@adacore.com>
34209 * tree-sra.c (ipa_sra_check_caller_data): New type.
34210 (has_caller_p): Removed.
34211 (ipa_sra_check_caller): New function.
34212 (ipa_sra_preliminary_function_checks): Use it.
34214 2015-03-03 Martin Liska <mliska@suse.cz>
34216 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
34217 instead of if branch.
34219 2015-03-03 Martin Liska <mliska@suse.cz>
34222 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
34224 2015-03-23 Jeff Law <law@redhat.com>
34226 PR tree-optimization/65241
34227 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
34228 hash table if INSERT is true.
34230 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
34233 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
34235 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
34238 * config/avr/avr.c (context.h, tree-pass.h): Include them.
34239 (avr_pass_data_recompute_notes): New static variable.
34240 (avr_pass_recompute_notes): New class.
34241 (avr_register_passes): New static function.
34242 (avr_option_override): Call it.
34244 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
34246 Fix various problems with specs file generation.
34249 * config.gcc (extra_gcc_objs) [avr]: Remove.
34250 * config/avr/driver-avr.c: Remove file.
34251 * config/avr/t-avr (driver-avr.o): Remove rule.
34252 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
34253 INCLUDES to build. Depend on TM_H.
34254 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
34255 build warnings. Fix non-matching types and non-existing %-codes.
34257 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
34258 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
34259 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
34260 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
34261 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
34262 (LIBGCC_SPEC): Remove definitions.
34264 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
34266 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
34267 to create a register in testing mode.
34269 2015-03-03 Martin Liska <mliska@suse.cz>
34270 Jan Hubicka <hubicka@ucw.cz>
34273 * cgraph.c (cgraph_node::has_thunk_p): New function.
34274 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
34275 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
34276 (sem_function::merge): Assert is changed.
34278 2015-03-03 Martin Liska <mliska@suse.cz>
34279 Martin Jambor <mjambor@suse.cz>
34282 * ipa-icf.c (sem_item_optimizer::execute): Change function
34283 return value to boolean.
34284 (sem_item_optimizer::merge_classes): Likewise.
34285 (ipa_icf_driver): Return TODO_remove_functions in case there's
34286 a merge operation processed.
34287 * ipa-icf.h: Change function return value to boolean.
34289 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
34292 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
34293 processor type for 64-bit little endian PowerPC.
34295 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
34296 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
34297 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
34298 printing built-in mask so it does not pass NULL pointers.
34300 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
34303 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
34306 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
34307 !ISA_HAS_FP_CONDMOVE.
34309 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
34311 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
34314 2015-03-02 Ulrich Drepper <drepper@gmail.com>
34316 * doc/invoke.texi (Options for Code Generation Conventions):
34317 Fix URL of DSO paper.
34319 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
34322 * ipa-inline.c (check_callers): Looks for recursion.
34323 (inline_to_all_callers): Give up on uninlinable or recursive edges.
34324 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
34325 summary of inline clones.
34326 (do_estimate_growth_1): Fix recursion check.
34328 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
34331 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
34334 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
34335 Aldy Hernandez <aldyh@redhat.com>
34338 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
34339 when checking TYPE_BINFO.
34341 2015-03-02 Richard Biener <rguenther@suse.de>
34344 * ipa-icf-gimple.c: Include builtins.h.
34345 (func_checker::compare_memory_operand): Compare base alignment.
34347 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
34350 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
34351 passed by reference.
34353 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
34356 * tree-chkp.c (chkp_check_lower): Don't check against
34357 zero bounds for already instrumented functions.
34358 (chkp_check_upper): Likewise.
34359 (chkp_fini): Clean pass local data to avoid wrong reusage.
34361 2015-02-28 Martin Liska <mliska@suse.cz>
34362 Jan Hubicka <hubicka@ucw.cz>
34364 * ipa-icf.c (sem_variable::equals): Improve debug output;
34365 get variable constructor.
34366 (sem_variable::parse): Do not filter out too early; give up on
34367 volatile and register vars.
34368 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
34370 * ipa-icf.h (sem_variable::init): Do not set ctor.
34371 (sem_variable::ctor): Remove.
34373 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
34375 PR middle-end/65233
34376 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
34378 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34380 * ipa-icf.c: Include stor-layout.h
34381 (sem_function::compare_cgraph_references): Rename to ...
34382 (sem_item::compare_cgraph_references): ... this one.
34383 (sem_variable::equals_wpa): New function
34384 (sem_variable::equals): Do not check stuff already verified by
34386 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
34387 * ipa-icf.h (sem_item): Add compare_cgraph_references.
34388 (sem_function): Remove compare_cgraph_references.
34389 (sem_variable): Turns equals_wpa into non-inline.
34391 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34393 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
34394 (sem_item::add_expr): New function.
34395 (sem_function::hash_stmt): Handle operands of most statements.
34396 (sem_variable::get_hash): Hash the actual constructor.
34397 * ipa-icf.h (sem_item): Add add_expr.
34398 (sem_function): Update prototype of hash_stmt
34400 2015-02-28 Martin Liska <mliska@suse.cz>
34401 Jan Hubicka <hubicka@ucw.cz>
34404 * ipa-icf-gimple.c (func_checker::compare_function_decl):
34406 (func_checker::compare_variable_decl): Skip symtab vars.
34407 (func_checker::compare_cst_or_decl): Update.
34408 * ipa-icf.c (sem_function::parse): Do not consider aliases.
34409 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
34410 use correct symtab predicates.
34411 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
34412 (sem_variable::parse): Update comment.
34413 (sem_item_optimizer::build_graph): Consider ultimate aliases
34416 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34418 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
34421 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34423 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
34424 (sem_variable::merge) Likewise.
34426 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34428 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
34429 target; also match flag_ipa_devirt.
34431 2015-03-01 Martin Liska <mliska@suse.cz>
34432 Jan Hubicka <hubicka@ucw.cz>
34434 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
34435 Validate variable alignment.
34436 * ipa-icf.c (sem_function::equals_private): Be more precise
34437 about non-common function attributes.
34438 (sem_variable::equals): Likewise.
34440 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34443 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
34444 across COMDAT group boundary.
34446 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34449 * ipa-icf.c (clear_decl_rtl): New function.
34450 (sem_function::merge): Clear RTL before forming alias.
34451 (sem_variable::merge): Clear RTL before forming alias.
34453 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34456 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
34458 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
34460 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
34463 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
34465 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
34466 a typo in the description.
34468 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
34471 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
34472 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
34473 * lra-constraints.c: Include "params.h".
34474 (EBB_PROBABILITY_CUTOFF): Use
34475 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
34476 (lra_inheritance): Use '<' instead of '<=' for
34477 EBB_PROBABILITY_CUTOFF.
34478 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
34481 2015-02-27 Martin Liska <mliska@suse.cz>
34483 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
34484 vector length condition.
34486 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
34488 * doc/extend.texi (x86 transactional memory intrinsics):
34489 Reorganize discussion of _xbegin. Clarify that the return
34490 value is a bit mask. Expand example and move to end of section.
34492 2015-02-26 Jakub Jelinek <jakub@redhat.com>
34493 Aldy Hernandez <aldyh@redhat.com>
34495 PR rtl-optimization/65220
34496 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
34498 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
34501 * lra-remat.c (update_scratch_ops): New.
34502 (do_remat): Call it.
34503 * lra.c (lra_register_new_scratch_op): New. Take code from ...
34504 (remove_scratches): ... here.
34505 * lra-int.h (lra_register_new_scratch_op): New prototype.
34507 2015-02-27 Marek Polacek <polacek@redhat.com>
34510 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
34511 -Wformat-signedness anymore.
34513 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34515 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
34517 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
34519 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34521 * config/s390/s390.c (enum s390_builtin):
34522 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
34523 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
34524 (s390_init_builtins): Generate new builtin functions.
34525 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
34526 (s390_sfpc, s390_efpc): New pattern definitions.
34528 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34530 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
34531 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
34532 (s390_builtin_decls): New array.
34533 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
34534 (s390_builtin_decl): New function.
34535 (TARGET_BUILTIN_DECL): Define macro.
34537 2015-02-27 Richard Biener <rguenther@suse.de>
34539 PR middle-end/63175
34540 * builtins.c (get_object_alignment_2): Make sure to re-apply
34541 the ANDed mask after recursing to its operand gets us a new
34542 misalignment bit position.
34544 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
34545 Martin Liska <mliska@suse.cz>
34548 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
34549 Use address_matters_p.
34550 (redirect_all_callers, set_addressable): New functions.
34551 (sem_function::merge): Reorganize and fix merging issues.
34552 (sem_variable::merge): Likewise.
34553 (sem_variable::compare_sections): Remove.
34554 * common.opt (fmerge-all-constants, fmerge-constants): Remove
34556 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
34558 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
34560 (address_matters_1): New function.
34561 (symtab_node::address_matters_p): New function.
34562 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
34563 check for merged flag.
34564 * cgraph.h (address_matters_p): Declare.
34565 (symtab_node::address_taken_from_non_vtable_p): Remove.
34566 (symtab_node::address_can_be_compared_p): New method.
34567 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
34568 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
34570 (comdat_can_be_unshared_p_1) Use address_matters_p.
34571 (update_vtable_references): Fix formating.
34572 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
34573 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
34574 * cgraphclones.c: Preserve merged and icf_merged flags.
34576 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
34578 * doc/extend.texi (Function Attributes): Fix spelling and typos.
34579 (Label Attributes): Likewise.
34580 (Cilk Plus Builtins): Likewise.
34581 (ARC SIMD Built-in Functions): Likewise.
34582 (ARM C Language Extensions (ACLE)): Likewise.
34583 (PowerPC Built-in Functions): Likewise.
34584 (PowerPC Hardware Transactional Memory Built-in Functions):
34587 2015-02-26 Jakub Jelinek <jakub@redhat.com>
34589 PR tree-optimization/65216
34590 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
34591 new stmt and new SSA_NAME for lhs whenever the arguments have
34592 changed and weren't just swapped. Fix comment typo.
34594 PR tree-optimization/65215
34595 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
34596 for PDP endian targets.
34597 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
34598 Fix up formatting issues.
34599 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
34600 size is smaller than the original, adjust MEM_REF offset by the
34601 difference of sizes. Use is_gimple_mem_ref_addr instead of
34602 is_gimple_min_invariant test to avoid adding address temporaries.
34604 2015-02-26 Martin Liska <mliska@suse.cz>
34605 Jan Hubicka <hubicka@ucw.cz>
34608 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
34609 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
34610 (sem_item_optimizer::process_cong_reduction): Include division by
34611 sensitive references.
34612 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
34613 * ipa-ref.c (ipa_ref::address_matters_p): New function.
34614 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
34616 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
34619 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
34621 * config/avr/avr.c: Same.
34622 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
34623 Refuse any constant address not in 0..0xbf.
34624 * config/avr/avr.md (*mov<mode>, *movsf): Remove
34625 tiny_valid_direct_memory_access_range from insn conditions.
34626 (mov<mode>): Don't special-case expansion of avrtiny addresses.
34628 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
34631 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
34632 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
34633 * config/sh/predicates.md (const_logical_operand): New predicate.
34634 * config/sh/sh.md: Add new peephole2 patterns.
34636 2015-02-26 Marek Polacek <polacek@redhat.com>
34639 * ipa-inline.c (early_inliner): Recompute inline parameters.
34641 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34644 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
34645 instructions with TImode operands are included in the analysis.
34647 2015-02-26 Sebastian Pop <s.pop@samsung.com>
34649 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
34650 of an EDGE_FSM_THREAD.
34652 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
34654 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
34656 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
34659 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
34661 2015-02-26 Sebastian Pop <s.pop@samsung.com>
34663 PR tree-optimization/65048
34664 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
34665 (thread_through_all_blocks): Call valid_jump_thread_path.
34666 Remove invalid FSM jump-thread paths.
34668 2015-02-26 Jakub Jelinek <jakub@redhat.com>
34670 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
34671 (ipa_write_optimization_summaries): Likewise.
34672 * tree-streamer.h: Include data-streamer.h.
34673 (streamer_mode_table): Declare extern variable.
34674 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
34675 * lto-streamer-out.c (lto_output_init_mode_table,
34676 lto_write_mode_table): New functions.
34677 (produce_asm_for_decls): Call lto_write_mode_table when streaming
34679 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
34680 (lto_create_simple_input_block): Add mode_table argument to the
34681 lto_input_block constructors.
34682 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
34684 * data-streamer-in.c (string_for_index): Likewise.
34685 * ipa-inline-analysis.c (inline_read_section): Likewise.
34686 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
34687 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
34688 * lto-streamer-in.c (lto_read_body_or_constructor,
34689 lto_input_toplevel_asms): Likewise.
34690 (lto_input_mode_table): New function.
34691 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
34692 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
34693 Use bp_pack_machine_mode.
34694 * real.h (struct real_format): Add name field.
34695 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
34696 (class lto_input_block): Add mode_table member.
34697 (lto_input_block::lto_input_block): Add mode_table_ argument,
34698 initialize mode_table.
34699 (struct lto_file_decl_data): Add mode_table field.
34700 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
34701 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
34702 unpack_ts_decl_common_value_fields,
34703 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
34704 * tree-streamer.c (streamer_mode_table): New variable.
34705 * real.c (ieee_single_format, mips_single_format,
34706 motorola_single_format, spu_single_format, ieee_double_format,
34707 mips_double_format, motorola_double_format,
34708 ieee_extended_motorola_format, ieee_extended_intel_96_format,
34709 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
34710 ibm_extended_format, mips_extended_format, ieee_quad_format,
34711 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
34712 decimal_single_format, decimal_double_format, decimal_quad_format,
34713 ieee_half_format, arm_half_format, real_internal_format): Add name
34715 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
34717 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
34720 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
34721 reordering for selective scheduling.
34723 2015-02-26 Terry Guo <terry.guo@arm.com>
34725 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
34726 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
34727 (arm_arch_no_volatile_ce): Declare new global variable.
34728 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
34729 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
34730 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
34731 (TARGET_NO_VOLATILE_CE): New macro.
34732 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
34733 volatile memory access in IT block
34735 2015-02-25 Kai Tietz <ktietz@redhat.com>
34737 PR tree-optimization/61917
34738 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
34739 that reduc_def_stmt is null.
34741 2015-02-25 Martin Liska <mliska@suse.cz>
34743 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
34744 hard register variables.
34746 2015-02-25 Kai Tietz <ktietz@redhat.com>
34749 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
34750 (symtab::noninterposable_alias): Likewise.
34752 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
34755 * config/i386/i386.c (ix86_function_arg_regno_p): Support
34757 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
34759 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
34762 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
34763 as split condition; force split via '#' in output pattern.
34765 2015-02-25 Richard Biener <rguenther@suse.de>
34766 Kai Tietz <ktietz@redhat.com>
34768 PR tree-optimization/61917
34769 * tree-vect-loop.c (vectorizable_reduction): Allow
34770 vect_internal_def without reduction to exit graceful.
34772 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
34775 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
34776 only with NONDEBUG_INSN_P.
34778 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
34780 Use variadic macros with avr-log.c.
34782 * config/avr/avr-protos.h (avr_vdump): New prototype.
34783 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
34784 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
34785 * config/avr/avr-log.c: Adjust comments.
34786 (avr_vdump): New function.
34787 (avr_vadump): Pass caller as 2nd argument instead of format string.
34788 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
34789 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
34791 2015-02-25 Jakub Jelinek <jakub@redhat.com>
34794 * target.def (target_option_stream_in): New target hook.
34795 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
34796 targetm.target_option.post_stream_in if non-NULL.
34797 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
34798 * doc/tm.texi: Updated.
34799 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
34801 (TARGET_OPTION_POST_STREAM_IN): Redefine.
34803 2015-02-24 Jeff Law <law@redhat.com>
34806 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
34807 of operand 0 and operand 2.
34808 (zero_cost_loop_end, loop_end): Similarly.
34810 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
34812 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
34815 2015-02-24 DJ Delorie <dj@redhat.com>
34817 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
34818 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
34819 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
34820 instead of hardcoding SImode.
34822 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
34824 * omp-low.c (create_omp_child_function): Tag entrypoint
34825 functions with a special attribute.
34827 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
34830 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
34832 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
34834 PR rtl-optimization/65123
34835 * lra-remat.c (operand_to_remat): Check hard regs in insn
34838 2015-02-24 Nick Clifton <nickc@redhat.com>
34840 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
34843 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
34846 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
34847 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
34848 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
34849 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
34850 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
34851 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
34852 (BUILT_IN_GOACC_PARALLEL): Specify as
34853 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
34854 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
34855 * builtin-types.def
34856 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
34857 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
34858 Remove function types.
34859 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
34860 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
34861 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
34862 New function types.
34864 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
34866 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
34868 2015-02-24 Jakub Jelinek <jakub@redhat.com>
34870 PR tree-optimization/65170
34871 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
34872 if val[1] < 0, clear also val[2] and return 3.
34874 2015-02-24 Alan Modra <amodra@gmail.com>
34877 * config/rs6000/rs6000.c (get_memref_parts): Only return true
34878 when *base is a reg. Handle nested plus addresses. Simplify
34881 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
34883 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
34884 use natural alignment when optimizing for size.
34886 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
34889 * config/sh/sh.md (movsicc_true+3): Remove peephole.
34890 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
34891 * config/sh/sh.c (replace_n_hard_rtx): Remove.
34893 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
34896 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
34897 too big for a wide_int. Implement missing wrapping operation.
34899 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
34902 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
34903 instead of const_int 4294901760.
34905 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
34907 * config/avr/t-avr: Fix typo in comment.
34909 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
34911 * doc/rtl.texi (fma): Clarify documentation.
34913 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
34916 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
34917 over input_location.
34919 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
34921 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
34922 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
34923 restrict alignments to absolute_biggest_alignment.
34924 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
34926 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
34927 * doc/tm.texi: Regenerate.
34928 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
34930 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
34933 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
34935 2015-02-20 Richard Biener <rguenther@suse.de>
34937 PR tree-optimization/65136
34938 * tree-ssa-propagate.c: Include cfgloop.h.
34939 (replace_phi_args_in): Avoid replacing loop latch edge PHI
34940 arguments with constants.
34942 2015-02-20 Jakub Jelinek <jakub@redhat.com>
34943 Martin Liska <mliska@suse.cz>
34946 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
34947 don't try to create_thunk if stdarg_p. If
34948 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
34949 redirect_callers if possible.
34950 (sem_item_optimizer::execute): Call unregister_hooks here...
34951 (ipa_icf_driver): ... instead of here.
34953 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34955 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
34956 Mark operand 0 as earlyclobber in 2nd alternative.
34957 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
34958 Write negated shift amount into QI lowpart operand 0 and use it
34960 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
34962 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
34964 * cgraph.h (clone_function_name_1): Declare.
34965 * cgraphclones.c (clone_function_name_1): New function.
34966 (clone_function_name): Use it.
34967 * lto-partition.c: Include "stringpool.h".
34968 (must_not_rename, maybe_rewrite_identifier)
34969 (validize_symbol_for_target): New static functions.
34970 (privatize_symbol_name): Use must_not_rename.
34971 (promote_symbol): Call validize_symbol_for_target.
34972 (lto_promote_cross_file_statics): Likewise.
34973 (lto_promote_statics_nonwpa): Likewise.
34975 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
34978 * config/avr/avr.md (pushhi_insn): New insn.
34979 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
34981 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
34982 Jakub Jelinek <jakub@redhat.com>
34984 * tree-streamer.c (preload_common_nodes): Don't preload
34985 TI_VA_LIST* for offloading.
34986 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
34989 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
34991 * config/pa/pa.c (pa_emit_move_sequence): Always force
34992 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
34995 * config/pa/pa.c (pa_reloc_rw_mask): New function.
34996 (TARGET_ASM_RELOC_RW_MASK): Define.
34997 (pa_cannot_force_const_mem): Revert previous change.
34999 2015-02-19 Martin Jambor <mjmabor@suse.cz>
35000 Jan Hubicka <hubicka@ucw.cz>
35003 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
35004 across jump functions.
35006 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
35008 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
35010 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
35012 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
35014 2015-02-19 Richard Henderson <rth@redhat.com>
35016 PR middle-end/65074
35017 * varasm.c (default_binds_local_p_2): Don't test node->definition;
35018 test DECL_EXTERNAL independent of symtab_node.
35020 2015-02-19 Jakub Jelinek <jakub@redhat.com>
35023 * varpool.c (varpool_node::get_constructor): Return early
35024 if this->lto_file_data is NULL.
35026 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35028 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
35029 (rank_for_schedule_debug): Update.
35030 (ready_sort): Make static. Move sorting logic to ...
35031 (ready_sort_debug, ready_sort_real): New static functions.
35032 (schedule_block): Sort both debug insns and real insns in preparation
35033 for ready list trimming. Improve debug output.
35034 * sched-int.h (ready_sort): Remove global declaration.
35036 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
35038 * ipa-icf.c (sem_function::equals_private): Adjust.
35039 (sem_function::bb_dict_test): Take a vec<int> * instead of
35041 * ipa-icf.h (bb_dict_test): Likewise.
35043 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35045 PR gcov-profile/64634
35046 * tree-eh.c (frob_into_branch_around): Fix up typos
35047 in function comment.
35048 (lower_catch): Put eh_seq resulting from EH lowering of
35049 the cleanup sequence after the cleanup rather than before it.
35051 2015-02-18 Tom de Vries <tom@codesourcery.com>
35053 * common.opt (fstdarg-opt): New option.
35054 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
35055 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
35056 (@item -fstdarg-opt): New item.
35058 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
35061 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
35062 for common symbols.
35064 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35066 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
35068 (ALL_HOST_OBJS): Add mkoffload.o.
35069 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
35071 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
35073 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
35074 (compare_virtual_tables): Be smarter about skipping typeinfos;
35075 do sane output on virtual table table mismatch.
35076 (warn_odr): Be ready for forward declarations of enums;
35077 output sane info on base mismatch and virtual table mismatch.
35078 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
35079 when only one type is polymorphic.
35080 (get_odr_type): Fix hashtable corruption.
35081 (dump_odr_type): Dump mangled names.
35083 2015-02-18 Richard Biener <rguenther@suse.de>
35085 PR tree-optimization/65063
35086 * tree-predcom.c (determine_unroll_factor): Return 1 if we
35087 have replaced looparound PHIs.
35089 2015-02-18 Martin Liska <mliska@suse.cz>
35091 * lto-streamer.c (lto_streamer_init): Encapsulate
35092 streamer_check_handled_ts_structures with checking macro.
35094 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35097 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
35098 section if !implicit_section.
35099 (cgraph_node::create_version_clone_with_body): Likewise.
35100 * trans-mem.c (ipa_tm_create_version): Likewise.
35102 2015-02-18 Richard Biener <rguenther@suse.de>
35104 PR tree-optimization/62217
35105 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
35108 2015-02-18 Marek Polacek <polacek@redhat.com>
35111 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
35112 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
35113 is in range [-16K, -1]. Don't issue run-time error if
35114 (ptr > ptr + offset).
35116 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
35118 * doc/install.texi (nvptx-*-none): New section.
35119 * doc/invoke.texi (Nvidia PTX Options): Likewise.
35120 * config/nvptx/nvptx.opt: Update.
35122 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
35123 (access_check): New functions, copied from
35124 config/i386/intelmic-mkoffload.c.
35125 (main): For non-installed testing, look in all COMPILER_PATHs for
35128 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
35130 2015-02-18 Andrew Pinski <apinski@cavium.com>
35131 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35133 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
35134 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
35136 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
35138 * ipa-visibility.c (function_and_variable_visibility): Only
35139 check locality if node is not already local.
35140 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
35141 call_for_symbol_and_aliases instead of
35142 call_for_symbol_thunks_and_aliases.
35143 (ipa_inline): Likewise.
35144 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
35145 first walk aliases.
35146 * ipa.c (symbol_table::remove_unreachable_nodes): Use
35147 call_for_symbol_and_aliases.
35148 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
35149 (ipa_propagate_frequency_1): Use it; use opt_for_fn
35150 (ipa_propagate_frequency): Update.
35151 (ipa_profile): Add opt_for_fn gueards.
35153 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
35155 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
35156 * doc/invoke.texi (SH options): Document it.
35157 * config/sh/sh.c (sh_insn_length_adjustment): Check
35158 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
35160 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
35162 * common.opt (fipa-cp-alignment): New.
35163 * ipa-cp.c (ipcp_store_alignment_results): Check
35164 flag_ipa_cp_alignment.
35165 * opts.c (default_options_table): Enable -fipa-cp-alignment for
35167 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
35168 * doc/invoke.texi: Document -fipa-cp-alignment.
35170 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
35173 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
35174 to nil. Adjust comments.
35176 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
35178 * ipa-visibility.c (function_and_variable_visibility): Only
35179 check locality if node is not already local.
35180 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
35181 call_for_symbol_and_aliases instead of
35182 call_for_symbol_thunks_and_aliases.
35183 (ipa_inline): Likewise.
35184 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
35185 first walk aliases.
35186 * ipa.c (symbol_table::remove_unreachable_nodes): Use
35187 call_for_symbol_and_aliases.
35188 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
35189 (ipa_propagate_frequency_1): Use it; use opt_for_fn
35190 (ipa_propagate_frequency): Update.
35191 (ipa_profile): Add opt_for_fn guards.
35193 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
35195 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
35196 skipping of "strange" tokens.
35198 2015-02-17 Jeff Law <law@redhat.com>
35200 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
35203 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
35205 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
35206 as forcing a HARD_DEP between instructions, thereby
35207 disallowing rewriting to break dependencies.
35209 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
35211 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
35212 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
35213 variables in boundary that have no inlitalizer encoded and are
35215 * varasm.c (default_binds_local_p_2): External definitions do not
35216 count as definitions here.
35218 2015-02-16 Jeff Law <law@redhat.com>
35220 PR tree-optimization/64823
35221 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
35223 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
35224 threading through blocks with PHIs, but no statements.
35225 (thread_through_normal_block): Distinguish between blocks where
35226 we did not process all the statements and blocks with no statements.
35228 2015-02-16 Jakub Jelinek <jakub@redhat.com>
35229 James Greenhalgh <james.greenhalgh@arm.com>
35232 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
35233 section if not linkonce. Fix up formatting.
35234 (cgraph_node::create_version_clone_with_body): Copy section.
35235 * trans-mem.c (ipa_tm_create_version): Likewise.
35237 2015-02-16 Richard Biener <rguenther@suse.de>
35239 PR tree-optimization/65077
35240 * tree-ssa-structalias.c (get_constraint_for_1): Handle
35241 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
35242 (find_func_aliases): Allow float values to carry pointers again.
35244 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
35246 * doc/install.texi (Specific): Reorder targets list to put
35247 aarch64 in alphabetical order. Add a link to aarch64*-*-*
35250 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
35251 David Edelsohn <dje.gcc@gmail.com>
35254 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
35255 mapping class to external variable or function reference.
35256 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
35259 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
35262 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
35263 ASM_WEAKEN_DECL if defined.
35265 2015-02-16 Richard Biener <rguenther@suse.de>
35268 * varasm.c (default_file_start): For LTO produced units
35269 emit <artificial> as file directive.
35271 2015-02-16 Richard Biener <rguenther@suse.de>
35273 PR tree-optimization/63593
35274 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
35275 stmts and releasing SSA names until...
35276 (execute_pred_commoning): ... after processing all chains.
35278 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
35281 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
35282 external functions.
35284 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
35286 * doc/bugreport.texi: Adjust section titles throughout the file
35287 to use "Title Case".
35288 * doc/extend.texi: Likewise.
35289 * doc/gcov.texi: Likewise.
35290 * doc/implement-c.texi: Likewise.
35291 * doc/implement-cxx.texi: Likewise.
35292 * doc/invoke.texi: Likewise.
35293 * doc/objc.texi: Likewise.
35294 * doc/standards.texi: Likewise.
35295 * doc/trouble.texi: Likewise.
35297 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
35299 * cgraph.h (symtab_node::has_aliases_p): Simplify.
35300 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
35301 * tree.c (lookup_binfo_at_offset): Make static.
35302 (get_binfo_at_offset): Do not shadow offset; add explanatory
35305 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
35307 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
35308 for all floading point loads and stores except those using a register
35310 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
35313 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
35315 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
35316 (do_estimate_growth_1): Record if any uninlinable edge was seen.
35317 (estimate_growth): Handle uninlinable edges correctly.
35318 (check_callers): New.
35319 (growth_likely_positive): Handle aliases correctly.
35321 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
35323 * ipa-chkp.c: Use iterate_direct_aliases.
35324 * symtab.c (resolution_used_from_other_file_p): Move inline.
35325 (symtab_node::create_reference): Fix formating.
35326 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
35327 (symtab_node::iterate_reference): Move inline.
35328 (symtab_node::iterate_referring): Move inline.
35329 (symtab_node::iterate_direct_aliases): Move inline.
35330 (symtab_node::used_from_object_file_p_worker): Inline into ...
35331 (symtab_node::used_from_object_file_p): ... this one; move inline.
35332 (symtab_node::call_for_symbol_and_aliases): Move inline;
35333 use iterate_direct_aliases.
35334 (symtab_node::call_for_symbol_and_aliases_1): New method.
35335 (cgraph_node::call_for_symbol_and_aliases): Move inline;
35336 use iterate_direct_aliases.
35337 (cgraph_node::call_for_symbol_and_aliases_1): New method.
35338 (varpool_node::call_for_node_and_aliases): Rename to ...
35339 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
35340 use iterate_direct_aliases.
35341 (varpool_node::call_for_symbol_and_aliases_1): New method.
35342 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
35343 (ipa_discover_readonly_nonaddressable_var): Update.
35344 * ipa-devirt.c: Fix formating.
35345 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
35347 (cgraph_node::call_for_symbol_and_aliases): Move inline.
35348 (cgraph_node::call_for_symbol_and_aliases_1): New function..
35349 * cgraph.h (used_from_object_file_p_worker): Remove.
35350 (resolution_used_from_other_file_p): Move inline.
35351 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
35352 (symtab_node::iterate_reference): Move inline.
35353 (symtab_node::iterate_referring): Move inline.
35354 (symtab_node::iterate_direct_aliases): Move inline.
35355 (symtab_node::used_from_object_file_p_worker): Inline into ...
35356 (symtab_node::used_from_object_file_p): Move inline.
35357 * tree-emutls.c (ipa_lower_emutls): Update.
35358 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
35359 (varpool_node::call_for_node_and_aliases): Remove.
35361 2015-02-14 Jakub Jelinek <jakub@redhat.com>
35363 PR tree-optimization/62209
35364 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
35365 op == range->exp, insert seq and gimplified code after labels
35366 instead of after the phi.
35368 2015-02-13 Jeff Law <law@redhat.com>
35371 Revert my change for tree-optimization/64823.
35373 2015-02-13 Jakub Jelinek <jakub@redhat.com>
35375 PR tree-optimization/65053
35376 * tree-ssa-phiopt.c (value_replacement): When moving assign before
35377 cond, either reset VR on lhs or set it to phi result VR.
35379 2015-02-13 Jeff Law <law@redhat.com>
35381 PR tree-optimization/64823
35382 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
35383 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
35384 threading through blocks with PHIs, but no statements.
35385 (thread_through_normal_block): Distinguish between blocks where
35386 we did not process all the statements and blocks with no statements.
35388 PR rtl-optimization/47477
35389 * match.pd (convert (plus/minus (convert @0) (convert @1): New
35390 simplifier to narrow arithmetic.
35392 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
35395 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
35396 polymorphic call info when type is not known to be preserved.
35398 2015-02-13 Maritn Jambor <mjambor@suse.cz>
35401 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
35402 (inline_call): Use it.
35404 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
35406 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
35407 GOMP_DEVICE_NVIDIA_PTX.
35409 2015-02-13 Jakub Jelinek <jakub@redhat.com>
35412 * stmt.c (emit_case_nodes): Use void_type_node instead of
35413 NULL_TREE as LABEL_DECL type.
35415 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
35417 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
35419 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
35420 symbolic references to data to be forced to constant memory on the
35423 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
35425 PR tree-optimization/65002
35426 * tree-cfg.c (pass_data_fixup_cfg): Don't update
35428 * tree-sra.c (some_callers_have_no_vuse_p): New.
35429 (ipa_early_sra): Reject functions whose callers
35430 assume function is read only.
35432 2015-02-13 Richard Biener <rguenther@suse.de>
35435 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
35436 for LTO produced CUs.
35438 2015-02-13 Bin Cheng <bin.cheng@arm.com>
35440 PR tree-optimization/64705
35441 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
35442 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
35443 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
35444 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
35445 expand_simple_operations.
35447 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
35448 Richard Henderson <rth@redhat.com>
35451 * cgraphunit.c (cgraph_node::finalize_function): Set definition
35452 before notice_global_symbol.
35453 (varpool_node::finalize_decl): Likewise.
35454 * varasm.c (default_binds_local_p_2): Rename from
35455 default_binds_local_p_1, add weak_dominate argument. Use direct
35456 returns instead of assigning to local variable. Unify varpool and
35457 cgraph paths via symtab_node. Reject undef weak variables before
35458 testing visibility. Reorder tests for simplicity.
35459 (default_binds_local_p): Use default_binds_local_p_2.
35460 (default_binds_local_p_1): Likewise.
35461 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
35463 (default_elf_asm_output_external): Emit visibility when specified.
35465 2015-02-13 Alan Modra <amodra@gmail.com>
35467 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
35468 code setting up r11 for out-of-line fp restore.
35470 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
35472 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
35473 (muser-mode): Likewise.
35475 2015-02-13 Alan Modra <amodra@gmail.com>
35477 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
35478 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
35480 2015-02-12 David Howells <dhowells@redhat.com>
35482 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
35484 * tree-ssa-uninit.c (dump_predicates): Likewise.
35485 * opts.c (print_filtered_help): Likewise.
35487 2015-02-12 Jakub Jelinek <jakub@redhat.com>
35489 * dwarf2out.c (output_die): Use "%s", name instead of name to
35490 avoid -Wformat-security warning.
35492 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
35493 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
35494 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
35495 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
35497 2015-02-12 Jason Merrill <jason@redhat.com>
35499 * common.opt (-flifetime-dse): New.
35501 2015-02-12 Jakub Jelinek <jakub@redhat.com>
35504 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
35506 PR tree-optimization/65014
35507 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
35508 use original second operand of arg0 or arg1 instead of
35509 that adjusted by STRIP_NOPS.
35511 2015-02-11 Jeff Law <law@redhat.com>
35514 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
35515 that needs to be queued, just queue it for a single cycle.
35517 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
35519 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
35520 bodies of thunks; comment on why.
35521 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
35522 symbols are extern.
35524 2015-02-11 Richard Henderson <rth@redhat.com>
35527 * tree-eh.c (mark_reachable_handlers): Mark source and destination
35528 regions of __builtin_eh_copy_values.
35530 2015-02-11 Jakub Jelinek <jakub@redhat.com>
35532 PR middle-end/65003
35533 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
35534 ultimate alias is MEM with SYMBOL_REF satisfying
35535 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
35536 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
35538 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
35540 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
35541 "diagnostic-core.h".
35542 (main): Initialize progname, and call diagnostic_initialize.
35544 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
35545 instead of __OPENMP_TARGET__.
35547 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
35548 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
35549 hard-coding PTX_ID.
35551 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
35553 * doc/sourcebuild.texi (pie_enabled): Document.
35555 2015-02-11 Martin Liska <mliska@suse.cz>
35558 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
35559 a return value for call to a function that is noreturn.
35561 2015-02-11 Richard Biener <rguenther@suse.de>
35564 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
35567 2015-02-11 Andrew Pinski <apinski@cavium.com>
35570 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
35571 Change the first argument type to size_type_node and add another
35573 (aarch64_simd_expand_builtin): Handle the new argument to
35574 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
35575 print an out when the first two arguments are not
35576 nonzero integer constants.
35577 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
35578 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
35580 2015-02-11 Jakub Jelinek <jakub@redhat.com>
35583 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
35584 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
35585 (ix86_set_current_function): Rewritten.
35586 (ix86_add_new_builtins): Temporarily clear current_target_pragma
35587 when creating builtin fndecls.
35589 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
35592 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
35594 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
35595 have no comdat group.
35596 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
35597 (lto_output_varpool_node): Always output alias info.
35598 (output_refs): Output refs of boundary aliases, too.
35599 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
35600 (output_symtab): Output call eges in thunks in boundary.
35601 (get_alias_symbol): Remove.
35602 (input_node, input_varpool_node): Do not special case weakrefs.
35603 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
35604 alias and thunks targets in the boundary; do not take removed symbols
35605 from their comdat groups.
35606 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
35607 (cgraph_node::global_info): Remove.
35608 (cgraph_node::rtl_info): Look through aliases and thunks.
35609 * cgrpah.h (global_info): Remove.
35610 (non_local_p): Remove.
35612 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
35613 Sandra Loosemore <sandra@codesourcery.com>
35615 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
35616 to inline asm. List dialects in proper order.
35618 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
35619 Sandra Loosemore <sandra@codesourcery.com>
35621 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
35623 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
35625 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
35626 modified) reference to Solaris.
35628 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
35630 * doc/extend.texi (Extended Asm): Fix typos.
35632 2015-02-10 Jakub Jelinek <jakub@redhat.com>
35635 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
35637 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
35640 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
35641 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
35642 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
35643 * config/sh/constraints.md (Ara, Add): New constraints.
35644 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
35646 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
35647 atomic_mem_operand_0. Don't use force_reg on the memory address.
35648 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
35649 Sra constraint. Convert to insn_and_split. Add workaround for
35651 (atomic_compare_and_swap<mode>_hard): Copy to
35652 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
35653 Use atomic_mem_operand_0 predicate.
35654 (atomic_compare_and_swap<mode>_soft_gusa,
35655 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
35656 AraAdd constraints.
35657 (atomic_compare_and_swap<mode>_soft_tcb,
35658 atomic_compare_and_swap<mode>_soft_imask,
35659 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
35660 atomic_mem_operand_0 predicate and SraSdd constraints.
35661 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
35663 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
35664 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
35665 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
35666 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
35667 force_reg on the memory address.
35668 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
35669 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
35670 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
35671 atomic_mem_operand_1 predicate and Sra constraint.
35672 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
35673 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
35674 Use atomic_mem_operand_1 predicate.
35675 (atomic_<fetchop_name><mode>_hard): Copy to
35676 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
35677 Use atomic_mem_operand_1 predicate.
35678 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
35679 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
35680 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
35681 insn_and_split. Use atomic_mem_operand_1 predicate.
35682 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
35683 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
35684 Use atomic_mem_operand_1 predicate.
35685 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
35686 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
35687 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
35688 in generated insn with original mem operand before emitting the insn.
35689 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
35690 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
35691 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
35692 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
35693 Use atomic_mem_operand_1 predicate and AraAdd constraints.
35694 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
35695 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
35696 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
35697 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
35698 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
35699 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
35700 atomic_not_fetch<mode>_soft_tcb,
35701 atomic_<fetchop_name>_fetch<mode>_soft_imask,
35702 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
35703 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
35704 Use atomic_mem_operand_1 predicate and SraSdd constraints.
35706 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
35708 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
35709 and 3 earlyclobber operands.
35711 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
35713 * common.opt (fstack-reuse): Mark as optimization.
35715 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
35718 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
35720 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
35722 PR tree-optimization/64326
35723 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
35725 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
35727 PR gcov-profile/61889
35728 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
35730 2015-02-10 Richard Biener <rguenther@suse.de>
35732 PR tree-optimization/64995
35733 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
35734 value we use is final.
35735 (visit_reference_op_store): Always valueize op.
35736 (visit_use): Properly valueize vuses.
35738 2015-02-10 Richard Biener <rguenther@suse.de>
35740 PR tree-optimization/64909
35741 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
35742 pass a scalar-stmt count estimate to the cost model.
35743 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
35745 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
35747 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
35748 enabled by default together with var-tracking.
35750 2015-02-10 Nick Clifton <nickc@redhat.com>
35752 * config/rl78/rl78.c: Remove DIV attribute code accidentally
35753 included in previous rl78 commit.
35755 2015-02-10 Richard Biener <rguenther@suse.de>
35757 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
35758 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
35759 return the bitpack.
35761 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
35763 PR gcov-profile/61889
35764 * config.in: regenerate.
35765 * configure.in: Likewise.
35766 * configure.ac: Check for ftw.h.
35767 * gcov-tool.c: Check for ftw.h before using nftw.
35769 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
35772 * ipa-visibility.c (update_visibility_by_resolution_info): Only
35773 assert when not in lto mode.
35775 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
35777 * ira-color.c (setup_left_conflict_sizes_p): Simplify
35778 initialization/assignment of conflict_size.
35780 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
35783 * ipa-cp.c (gather_caller_stats): Skip thunks.
35784 (propagate_constants_topo): Skip aliases.
35786 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
35789 * config/sh/sh.c (sh_option_override): Don't change
35790 -freorder-blocks-and-partition to -freorder-blocks even when
35791 unwinding is enabled.
35792 (sh_can_follow_jump): Return false if the followee jump is
35793 a crossing jump when -freorder-blocks-and-partition is specified.
35794 * config/sh/sh.md (*jump_compact_crossing): New insn.
35796 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
35797 Kaz Kojima <kkojima@gcc.gnu.org>
35800 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
35801 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
35802 (sh_can_redirect_branch): Rename to ...
35803 (sh_can_follow_jump): ... this. Constify argument types.
35804 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
35805 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
35806 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
35807 * doc/tm.texi: Regenerate.
35809 2015-02-09 Jakub Jelinek <jakub@redhat.com>
35812 * builtins.c (expand_builtin): Call targetm.expand_builtin
35813 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
35815 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35818 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
35820 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35823 * ipa-icf.c (set_local): New function.
35824 (sem_function::merge): Use it.
35826 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35828 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
35829 (add_type_duplicate): Fix comparison of BINFOs.
35831 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35833 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
35834 on getting VOID pointer.
35836 2015-02-09 Jakub Jelinek <jakub@redhat.com>
35839 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
35842 2015-02-09 Richard Biener <rguenther@suse.de>
35844 * genmatch.c (replace_id): Copy expr_type.
35846 2015-02-09 Richard Biener <rguenther@suse.de>
35848 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
35849 (streamer_write_tree_bitfields): Declare.
35850 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
35851 properly unpack padding.
35852 (unpack_value_fields): Inline ...
35853 (streamer_read_tree_bitfields): ... here.
35854 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
35855 and properly add padding bits.
35856 (streamer_pack_tree_bitfields): Fold into ...
35857 (streamer_write_tree_bitfields): ... this new function,
35858 exposing the bitpack object.
35859 * lto-streamer-out.c (lto_write_tree_1): Call
35860 streamer_write_tree_bitfields.
35862 2015-02-09 Richard Biener <rguenther@suse.de>
35864 PR tree-optimization/54000
35865 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
35866 (struct ivopts_data): Add loop_loc member.
35867 (tree_ssa_iv_optimize_loop): Dump loop location.
35868 (create_new_ivs): Likewise, also dump number of IVs generated.
35870 2015-02-09 Martin Liska <mliska@suse.cz>
35872 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
35873 just if not yet registered.
35874 (ipa_icf_generate_summary): Register callgraph hooks.
35876 2015-02-08 Andrew Pinski <apinski@cavium.com>
35878 * config/aarch64/aarch64.c (gty_dummy): Delete.
35880 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35883 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
35884 (cgraph_node::local_p): Remove thunk related FIXME.
35886 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35889 * i386.c (ix86_function_regparm): Look through aliases to see if callee
35890 is local and optimized.
35891 (ix86_function_sseregparm): Likewise; also use target's SSE math
35892 settings; error out instead of silently generating wrong code
35894 (init_cumulative_args): Look through aliases.
35896 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35899 * ipa-split.c (execute_split_functions): Split if function has aliases.
35901 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
35904 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
35905 aliases before trying to expand it.
35906 (cgraph_node::expand_thunk): Fix formating.
35908 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
35910 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
35911 (Using Assembly Language with C): Expand introduction.
35912 (Basic Asm): Copy-edit. Add more information about uses of
35914 (Extended Asm): Copy-edit. Document new escape syntax and
35916 (Global Reg Vars): Copy-edit.
35917 (Local Reg Vars): Likewise.
35919 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
35923 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
35924 (DBX_CONTIN_CHAR): Define.
35926 2015-02-06 Sebastian Pop <s.pop@samsung.com>
35927 Brian Rzycki <b.rzycki@samsung.com>
35929 PR tree-optimization/64878
35930 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
35931 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
35932 Stop recursion at loop phi nodes after having visited a loop phi node.
35934 2015-02-06 Jakub Jelinek <jakub@redhat.com>
35936 * toplev.c (process_options): Change flag_ipa_ra before creating
35937 optimization_{default,current}_node.
35940 * cgraphunit.c (cgraph_node::expand_thunk): If
35941 restype is not is_gimple_reg_type nor the thunk_fndecl
35942 returns aggregate_value_p, set restmp to a temporary variable
35943 instead of resdecl.
35945 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
35947 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
35949 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
35952 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
35953 add a general secondary reload handler for SDmode, unless we have
35954 both read/write support for SDmode.
35956 2015-02-06 Jakub Jelinek <jakub@redhat.com>
35958 PR middle-end/64937
35959 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
35960 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
35961 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
35962 1 before, push it to abstract_vec.
35963 (dwarf2out_abstract_function): Adjust caller. Don't call
35964 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
35965 DECL_ABSTRACT_P flags for all abstract_vec elts.
35967 2015-02-06 Renlin Li <renlin.li@arm.com>
35969 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
35971 * tree-ssa.c (execute_update_addresses_taken): Likewise.
35973 2015-02-06 Jeff Law <law@redhat.com>
35976 * config/h8300/h8300.c (push): New argument "in_prologue".
35977 Pass "in_prologue" along to "F".
35978 (h8300_push_pop): Corresponding changes.
35979 (h8300_expand_prologue): Likewise.
35980 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
35982 2015-02-06 Jakub Jelinek <jakub@redhat.com>
35984 PR rtl-optimization/64957
35986 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
35987 IOR rather than for AND.
35989 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
35992 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
35993 of shift-add and (add + shift) operations. Rename local variable.
35995 2015-02-05 Jeff Law <law@redhat.com>
35998 * config/h8300/constraints.md (U): Correctly dectect
35999 "eightbit_data" memory addresses.
36000 * config/h8300/h8300.c (eightbit_constant_address_p): Also
36001 handle (const (plus (symbol_ref (x)))) where x is declared
36002 as an 8-bit data memory address.
36003 * config/h8300/h8300.md (call, call_value): Correctly detect
36004 "funcvec" functions.
36007 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
36008 24 to 28 bits for the H8/300.
36010 2015-02-06 Alan Modra <amodra@gmail.com>
36013 * config/rs6000/rs6000.c (chain_already_loaded): New function.
36014 (rs6000_call_aix): Use it.
36016 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
36018 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
36021 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
36023 * config/h8300/constraints.md ("U" constraint): Use strict
36024 variant of REG_OK_FOR_BASE_P after reload has started.
36026 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
36028 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
36029 define to zero if !TARGET_NEON.
36030 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
36032 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36033 Trevor Saunders <tsaunders@mozilla.com>
36036 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
36038 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36041 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
36042 when removing varpool nodes.
36044 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36047 * varpool.c (varpool_node::remove): Fix order of variables.
36049 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36052 * ipa-inline.c (inline_small_functions): Fix ordering issue between
36053 speculation resolution and key updates.
36055 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36057 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
36058 about not letting any speculative edges unupdated.
36060 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36063 * gcov-io.c (gcov_var): Export.
36065 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36067 PR middle-end/64922
36068 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
36069 edges that become speculative.
36071 2015-02-04 Jakub Jelinek <jakub@redhat.com>
36073 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
36074 or DW_LANG_Fortran08.
36075 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
36077 (gen_compile_unit_die): Handle "GNU Fortran2003" and
36078 "GNU Fortran2008" language strings.
36079 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
36080 * langhooks.h (lang_GNU_Fortran): New prototype.
36081 * langhooks.c (lang_GNU_Fortran): New function.
36082 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
36085 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
36087 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
36088 (RTX_OK_FOR_OLO10_P): Likewise.
36090 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
36092 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
36094 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36096 PR middle-end/64922
36097 * gimple.c: Include gimple-ssa.h.
36098 (maybe_remove_unused_call_args): New function.
36099 * gimple.h (maybe_remove_unused_call_args): Declare.
36100 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
36101 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
36102 * gimple-fold.c (gimple_fold_call): Likewise.
36104 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
36106 PR rtl-optimization/64905
36107 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
36108 pointer alignment if it isn't needed.
36110 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
36112 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
36113 cortex-a72.cortex-a53.
36114 * config/aarch64/aarch64-tune.md: Regenerate.
36115 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
36117 2015-02-04 Nick Clifton <nickc@redhat.com>
36119 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
36122 2015-02-04 Jakub Jelinek <jakub@redhat.com>
36124 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
36125 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
36126 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
36128 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
36129 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
36130 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
36131 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
36132 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
36133 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
36134 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
36135 * tree-core.h (enum built_in_function): In between
36136 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
36137 for builtins that use DEF_BUILTIN_CHKP macro.
36139 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
36142 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
36143 operands for tcc_comparison exprs. Fix typos.
36146 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
36147 of two XORs that have an intervening AND or IOR.
36150 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
36151 simplification of XOR of AND to not allocate new rtx before
36152 committing to a simplification.
36154 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36156 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
36157 manual swaps in all peepholes.
36159 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36161 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
36162 of manual swapping implementation.
36163 (aarch64_expand_vec_perm_const_1): Likewise.
36165 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
36167 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
36168 (generic_addrcost_table): Remove NAMED_PARAM.
36169 (cortexa57_addrcost_table): Likewise.
36170 (xgene1_addrcost_table): Likewise.
36171 (generic_regmove_table): Likewise.
36172 (cortexa53_regmove_table): Likewise.
36173 (xgene1_regmove_table): Likewise.
36174 (generic_vector_table): Likewise.
36175 (cortexa57_vector_table): Likewise.
36176 (xgene1_vector_table): Likewise.
36177 (generic_tunings): Likewise.
36178 (cortexa53_tunings): Likewise.
36179 (cortexa57_tunings): Likewise.
36180 (xgene1_tunings): Likewise.
36182 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
36184 * config/arm/arm-cores.def: Add cortex-a72 and
36185 cortex-a72.cortex-a53.
36186 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
36187 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
36188 * config/arm/arm-tune.md: Regenerate.
36189 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
36190 "cortex-a72.cortex-a53".
36191 * doc/invoke.texi (ARM Options/-mtune): Likewise.
36193 2015-02-04 Nick Clifton <nickc@redhat.com>
36196 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
36198 (nonimmediate_di_operand): Likewise.
36200 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
36201 prefixes of known F5 using MSP430 MCUs.
36203 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36205 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
36206 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
36207 instead of __builtin_sqrt.
36209 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
36211 * varasm.c (do_assemble_alias): Follow transparent alias
36213 (default_assemble_visibility): Follow transparent alias
36214 chain for decl name.
36216 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
36218 PR middle-end/62103
36219 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
36220 to compute size of referenced value in the constant case.
36222 2015-02-03 Jakub Jelinek <jakub@redhat.com>
36224 PR rtl-optimization/64756
36225 * cse.c (invalidate_dest): New function.
36226 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
36227 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
36228 invalidate and do not record it.
36230 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
36233 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
36234 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
36235 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
36236 atomic_nand<mode>_soft_tcb): New insns.
36237 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
36238 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
36239 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
36240 Split into atomic_not_fetchsi_hard if operands[0] is unused.
36241 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
36242 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
36243 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
36244 atomic_not<mode>_hard if operands[0] is unused.
36245 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
36246 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
36247 if operands[0] is unused.
36248 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
36249 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
36250 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
36251 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
36253 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
36254 into atomic_not<mode>_soft_tcb if operands[0] is unused.
36255 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
36256 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
36257 if operands[0] is unused.
36258 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
36259 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
36260 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
36261 atomic_nand_fetchsi_hard if operands[0] is unused.
36262 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
36263 atomic_nand<mode>_hard if operands[0] is unused.
36264 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
36265 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
36266 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
36267 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
36268 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
36269 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
36270 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
36271 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
36272 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
36273 atomic_not<mode>_hard if operands[0] is unused.
36274 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
36275 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
36277 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
36278 into atomic_not<mode>_soft_tcb if operands[0] is unused.
36279 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
36280 atomic_nand<mode>_hard if operands[0] is unused.
36281 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
36282 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
36284 2015-02-03 David Malcolm <dmalcolm@redhat.com>
36287 * Makefile.in (GCC_OBJS): Add gcc-main.o.
36288 * gcc-main.c: New file, containing "main" taken from gcc.c.
36289 * gcc.c (do_self_spec): Free decoded_options.
36290 (class driver): Move declaration to gcc.h.
36291 (main): Move declaration and implementation to new file
36293 (driver_get_configure_time_options): New function.
36294 * gcc.h (class driver): Move this declaration here, from
36296 (driver_get_configure_time_options): New declaration.
36298 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
36300 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
36301 cross-module inlining.
36302 * cgraph.h (cgraph_node): Add flag merged.
36303 * ipa-icf.c (sem_function::merge): Maintain it.
36305 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
36307 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
36308 instead of OBJECT_P.
36310 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
36313 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
36314 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
36315 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
36316 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
36318 2015-02-03 Jakub Jelinek <jakub@redhat.com>
36321 * combine.c (reg_n_sets_max): New variable.
36322 (can_change_dest_mode, reg_nonzero_bits_for_combine,
36323 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
36324 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
36325 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
36326 (rest_of_handle_combine): Initialize reg_n_sets_max.
36328 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
36330 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
36331 if some always_inline was inlined, apply changes before inlining
36334 2015-02-02 David Malcolm <dmalcolm@redhat.com>
36337 * config/arm/arm.c (arm_option_override): Set
36338 arm_selected_arch/cpu/tune to NULL on entry.
36340 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
36341 Andrew Pinski <pinskia@gcc.gnu.org>
36342 Jakub Jelinek <jakub@gcc.gnu.org>
36345 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
36346 integer typing for small model. Use IN_RANGE.
36348 2015-02-02 Richard Biener <rguenther@suse.de>
36350 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
36351 * tree-vrp.c (vrp_valueize_1): Likewise.
36353 2015-02-02 Alan Modra <amodra@gmail.com>
36355 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
36356 than mem for toc_restore.
36357 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
36358 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
36359 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
36361 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
36364 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
36365 explicit default options.
36367 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
36370 * ipa-utils.c (ipa_merge_profiles): Add release argument.
36371 * ipa-icf.c (sem_function::merge): Do not release body when merging.
36372 * ipa-utils.h (ipa_merge_profiles): Update prototype.
36374 2015-02-01 Jakub Jelinek <jakub@redhat.com>
36377 * cfgexpand.c (deep_ter_debug_map): New variable.
36378 (avoid_deep_ter_for_debug): New function.
36379 (expand_debug_expr): If TERed SSA_NAME is in
36380 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
36381 instead of trying to expand SSA_NAME's def stmt.
36382 (expand_debug_locations): When expanding debug bind
36383 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
36384 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
36386 (pass_expand::execute): Call avoid_deep_ter_for_debug on
36387 all debug bind stmts. Delete deep_ter_debug_map after
36388 expand_debug_location if non-NULL and clear it.
36390 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
36393 * config/sh/sync.md (atomic_fetch_notsi_hard,
36394 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
36395 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
36396 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
36397 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
36398 atomic_not_fetch<mode>_soft_imask): New insns.
36400 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36402 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
36403 (rank_for_schedule_debug): Split from ...
36404 (rank_for_schedule): ... this.
36405 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
36406 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
36408 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
36410 * doc/md.texi (Machine Constraints): Alphabetize table by target.
36411 * doc/extend.texi (x86 Variable Attributes): Move section to
36412 correct alphabetization after renaming.
36413 (x86 Type Attributes): Likewise.
36414 (Target Builtins): Re-alphabetize menu.
36415 (x86 Built-in Functions): Move section to correct alphabetization
36417 (x86 transactional memory intrinsics): Likewise.
36418 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
36419 and x86 Windows Options in table and menu.
36420 (x86 Options): Move section to correct alphabetization after
36422 (x86 Windows Options): Likewise.
36424 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
36426 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
36427 preferred names of the architecture and its 32- and 64-bit
36429 * doc/invoke.texi: Likewise.
36430 * doc/md.texi: Likewise.
36432 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
36435 * config/i386/predicates.md (address_no_seg_operand): Reject
36436 non-CONST_INT_P operands in invalid mode.
36438 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
36440 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
36441 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
36442 * config/i386/predicates.md (address_no_seg_operand): Call
36443 address_operand with VOIDmode.
36444 (vsib_address_operand): Ditto.
36445 (address_mpx_no_base_operand): Ditto.
36446 (address_mpx_no_index_operand): Ditto.
36448 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
36451 * lra-constraints.c (original_subreg_reg_mode): New.
36452 (simplify_operand_subreg): Try to simplify subreg of const. Use
36453 original_subreg_reg_mode for it.
36454 (swap_operands): Update original_subreg_reg_mode.
36455 (curr_insn_transform): Set up original_subreg_reg_mode.
36457 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
36460 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
36462 (process_alt_operands): Use it.
36463 (curr_insn_transform): Check the optional reload pseudo class is
36466 2015-01-30 Joseph Myers <joseph@codesourcery.com>
36468 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
36469 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
36471 * toplev.h (init_asm_output): Update comment on use of
36472 UNKNOWN_LOCATION with fatal_error.
36473 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
36474 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
36475 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
36476 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
36477 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
36478 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
36479 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
36480 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
36481 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
36482 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
36483 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
36484 fatal_error changed to pass input_location as first argument.
36486 2015-01-30 Martin Liska <mliska@suse.cz>
36488 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
36489 in #pragma GCC diagnostic guards.
36491 2015-01-30 Richard Biener <rguenther@suse.de>
36493 PR tree-optimization/64829
36494 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
36495 not add a widening conversion pattern but hand off extra
36496 widenings to callers.
36497 (vect_recog_widen_mult_pattern): Handle extra widening produced
36498 by vect_handle_widen_op_by_const.
36499 (vect_recog_widen_shift_pattern): Likewise.
36500 (vect_pattern_recog_1): Remove excess vertical space in dumping.
36501 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
36502 (vect_init_vector_1): Likewise.
36503 (vect_get_vec_def_for_operand): Likewise.
36504 (vect_finish_stmt_generation): Likewise.
36505 (vectorizable_load): Likewise.
36506 (vect_analyze_stmt): Likewise.
36507 (vect_is_simple_use): Likewise.
36509 2015-01-29 Jeff Law <law@redhat.com>
36511 * combine.c (try_combine): Fix typo in comment.
36513 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
36516 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
36517 (rs6000_stack_info): Add assert.
36518 (rs6000_output_savres_externs): New function, split off from...
36519 (rs6000_output_function_prologue): ... here. Do not call it for
36522 2015-01-29 Jeff Law <law@redhat.com>
36525 * combine.c (try_combine): If I0 is a memory load and I3 a store
36526 to a related address, increase the "goodness" of doing a 4-insn
36527 combination with I0-I3.
36528 (make_field_assignment): Handle SUBREGs in the ior+and case.
36530 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
36532 PR tree-optimization/64746
36533 * tree-if-conv.c (mask_exists): New function.
36534 (predicate_mem_writes): Save created mask with given size for further
36536 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
36537 (ifcvt_repair_bool_pattern): Collect all statements that are root
36538 of bool pattern and use iterative algorithm to remove multiple uses
36539 of predicates, display number of required iterations.
36541 2015-01-29 Richard Biener <rguenther@suse.de>
36543 PR tree-optimization/64853
36544 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
36545 stmt will get simulated again.
36546 * tree-ssa-ccp.c (valueize_op_1): Likewise.
36548 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36550 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
36551 return_in_pc. Remove redundant assignments.
36552 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
36553 (arm_expand_epilogue): Don't compare boolean with true in if condition.
36555 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
36557 * config/i386/i386.c (ix86_mode_after): Make static.
36559 2015-01-29 Richard Biener <rguenther@suse.de>
36561 PR tree-optimization/64844
36562 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
36563 dump cost model analysis.
36564 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
36565 Do not register adjusted load/store costs here.
36567 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
36568 Uros Bizjak <ubizjak@gmail.com>
36570 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
36571 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
36572 using x86_use_pseudo_pic_reg.
36573 * config/i386/i386.c (ix86_conditional_register_usage): Remove
36574 support for fixed PIC register.
36575 (ix86_use_pseudo_pic_reg): Not static any more.
36577 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
36579 PR middle-end/64805
36580 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
36581 to avoid error in cgraph node verification.
36583 2015-01-29 Marek Polacek <polacek@redhat.com>
36585 * doc/standards.texi: Reflect that the default for C is gnu11.
36587 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
36590 * reorg.c (switch_text_sections_between_p): New function.
36591 (relax_delay_slots): Call it when testing if the jump insn
36592 is removable. Use targetm.can_follow_jump when testing if
36593 the conditional branch can follow an unconditional jump.
36595 2015-01-27 Caroline Tice <cmtice@google.com>
36597 Committing VTV Cywin/Ming patch for Patrick Wollgast
36598 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
36599 if -fvtable-verify=preinit/std is used.
36600 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
36601 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
36602 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
36603 if -fvtable-verify=preinit/std is used.
36604 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
36605 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
36606 if -fvtable-verify=preinit/std is used.
36607 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
36608 * config/i386/mingw32.h (LIB_SPEC): Likewise.
36609 * varasm.c (assemble_variable): Add code to properly set the comdat
36610 section and name for the .vtable_map_vars section in case the
36611 target is PE or COFF.
36613 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
36616 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
36617 make sane BB profile.
36618 (cgraph_node::expand_thunk): Make sane BB profile.
36619 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
36620 * cgraph.h (init_lowered_empty_function): Update prototype.
36621 * config/i386/i386.c (make_resolver_func): Update call.
36622 * predict.c (gate): Disable branch prediction pass if
36623 profile is already there.
36625 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
36627 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
36628 * opth-gen.awk: Likewise.
36629 * common.opt: Mark flag_fp_contract_mode as Optimization.
36631 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
36633 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
36634 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
36636 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
36639 * config/sh/predicates.md (atomic_arith_operand,
36640 atomic_logical_operand): Remove.
36641 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
36642 (atomic_arith_operand_0): New predicate.
36643 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
36644 Use atomic_arith_operand_0 for input values.
36645 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
36646 atomic_compare_and_swap<mode>_soft_gusa,
36647 atomic_compare_and_swap<mode>_soft_tcb,
36648 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
36649 arith_reg_operand instead of register_operand.
36650 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
36651 atomic_arith_operand_0 for newval input.
36652 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
36653 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
36654 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
36655 arith_reg_operand instead of register_operand.
36656 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
36657 fetchop_predicate_1, fetchop_constraint_1_llcs,
36658 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
36659 fetchop_constraint_1_imask): New code iterator attributes.
36660 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
36661 register_operand. Use fetchop_predicate_1.
36662 (atomic_fetch_<fetchop_name>si_hard,
36663 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
36664 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
36665 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
36666 and arith_reg_operand instead of register_operand. Use
36667 fetchop_predicate_1, fetchop_constraint_1_gusa.
36668 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
36669 and arith_reg_operand instead of register_operand. Use
36670 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
36672 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
36673 and arith_reg_operand instead of register_operand. Use
36674 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
36676 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
36677 register_operand. Use atomic_logical_operand_1.
36678 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
36679 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
36680 arith_reg_operand instead of register_operand.
36681 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
36682 Use arith_reg_dest and arith_reg_operand instead of register_operand.
36683 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
36684 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
36685 register_operand. Use fetchop_predicate_1.
36686 (atomic_<fetchop_name>_fetchsi_hard,
36687 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
36688 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36689 fetchop_constraint_1_llcs.
36690 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
36691 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36692 fetchop_constraint_1_gusa.
36693 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
36694 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36695 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
36696 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
36697 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36698 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
36699 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
36700 register_operand. Use atomic_logical_operand_1.
36701 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
36702 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
36703 arith_reg_operand instead of register_operand.
36704 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
36705 arith_reg_operand instead of register_operand. Use logical_operand
36706 and K08. Adjust asm sequence to allow R0 usage.
36707 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
36708 arith_reg_operand instead of register_operand. Use logical_operand
36711 2015-01-28 Jakub Jelinek <jakub@redhat.com>
36714 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
36715 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
36716 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
36717 only get_full_len HOST_WIDE_INTs from get_val () array rather than
36718 all bits in *val_wide.
36720 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
36722 * varpool.c (tls_model_names): Fix names.
36723 (varpool_node::dump): Dump tls- prefix for tls models.
36725 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
36726 Bernd Schmidt <bernds@codesourcery.com>
36727 Nathan Sidwell <nathan@codesourcery.com>
36729 * config/nvptx/mkoffload.c: New file.
36730 * config/nvptx/t-nvptx: Add build rules for it.
36731 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
36732 (extra_programs): Add mkoffload.
36733 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
36735 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
36737 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
36739 PR middle-end/64809
36740 * cfgexpand.c (reorder_operands): Skip debug gimples.
36742 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
36744 PR tree-optimization/64277
36745 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
36746 range info when possible to refine estimation.
36748 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
36750 PR tree-optimization/64718
36751 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
36752 be a 16bit unsigned integer when n->range is 16.
36753 (bswap_replace): Convert src to that type if necessary for all bswap
36754 sizes. Fix rotation right notation in nearby comment. Use bswap_type
36755 set in pass_optimize_bswap::execute ().
36757 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
36759 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
36760 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
36761 integer and floating point variants.
36762 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
36764 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
36766 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
36767 for all vector modes.
36769 2015-01-28 Jakub Jelinek <jakub@redhat.com>
36772 * doc/sourcebuild.texi (comdat_group): Document.
36774 2015-01-28 Terry Guo <terry.guo@arm.com>
36776 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
36778 2015-01-27 David Malcolm <dmalcolm@redhat.com>
36780 * toplev.c (print_version): Add param "show_global_state", and
36781 only print GGC and plugin information if it is true.
36782 (init_asm_output): Pass in "true" for the new param when calling
36784 (process_options): Likewise.
36785 (toplev::main): Likewise.
36786 * toplev.h (print_version): Add new param to decl.
36788 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
36792 * tree.c (lookup_binfo_at_offset): New function.
36793 (get_binfo_at_offset): Use it.
36795 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
36798 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
36799 on vtable being vtable.
36801 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
36803 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
36804 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
36805 -mhotpatch= option.
36806 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
36807 -mno-hotpatch options. Change syntax of -mhotpatch= option.
36808 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
36810 (s390_hotpatch_trampoline_halfwords_max): Renamed.
36811 (s390_hotpatch_hw_max): New name.
36812 (s390_hotpatch_trampoline_halfwords): Renamed.
36813 (s390_hotpatch_hw_before_label): New name.
36814 (get_hotpatch_attribute): Removed.
36815 (s390_hotpatch_hw_after_label): New name.
36816 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
36818 (s390_attribute_table): Ditto.
36819 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
36820 (s390_function_num_hotpatch_hw): New name.
36821 Remove special handling of inline functions and hotpatching.
36822 Return number of nops before and after the function label.
36823 (s390_can_inline_p): Removed.
36824 (s390_asm_output_function_label): Emit a configurable number of nops
36825 after the function label.
36826 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
36827 (TARGET_CAN_INLINE_P) Removed.
36828 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
36830 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36831 Jiong Wang <jiong.wang@arm.com>
36833 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
36835 (cb<optab><mode>1): Likewise.
36836 * config/aarch64/iterators.md (bcond): New define_code_attr.
36838 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36840 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
36843 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36845 * config/s390/s390.c (s390_register_move_cost): Increase costs for
36848 2015-01-27 Richard Biener <rguenther@suse.de>
36850 * tree-vrp.c (update_value_range): Intersect the range with
36851 old recorded SSA name range information.
36853 2015-01-27 Nick Clifton <nickc@redhat.com>
36855 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
36856 BC, DE and HL registers directly, not via AX.
36857 When decrementing the stack pointer by a large amount, transfer SP
36858 into AX and perform the subtraction there.
36859 (rl78_expand_epilogue): Perform the inverse of the above
36862 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36864 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
36866 2015-01-27 Jakub Jelinek <jakub@redhat.com>
36867 Yury Gribov <y.gribov@samsung.com>
36870 * ubsan.c (ubsan_source_location): Refactor code.
36871 (ubsan_type_descriptor): Update type size. Refactor code.
36873 2015-01-27 Richard Biener <rguenther@suse.de>
36875 PR tree-optimization/56273
36876 PR tree-optimization/59124
36877 PR tree-optimization/64277
36878 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
36879 from the first VRP pass.
36881 2015-01-27 Jakub Jelinek <jakub@redhat.com>
36884 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
36885 handle the first argument in the same loop as all the other arguments.
36887 PR rtl-optimization/61058
36888 * jump.c (cleanup_barriers): Update basic block boundaries
36889 if BLOCK_FOR_INSN is non-NULL on PREV.
36891 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
36893 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
36894 bounds narrowing, already instrumented calls and calls to
36895 not instrumentable functions.
36897 2015-01-27 Jakub Jelinek <jakub@redhat.com>
36899 PR tree-optimization/64807
36900 * wide-int.cc (wi::divmod_internal): Clear
36901 b_dividend[dividend_blocks_needed].
36903 2015-01-26 DJ Delorie <dj@redhat.com>
36905 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
36906 volatile memory references.
36908 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
36911 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
36913 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
36914 shifts if it already fits into K08.
36916 2015-01-26 Jakub Jelinek <jakub@redhat.com>
36919 * ipa-inline.c (inline_small_functions): Print "unknown" even
36920 if edge->call_stmt is non-NULL, but has builtins or unknown
36923 PR middle-end/64421
36924 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
36925 with asterisk, skip the first character.
36927 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
36930 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
36933 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
36936 * config/i386/i386.md (*movdi_internal): Also check operand 0
36937 to determine TYPE_LEA operand.
36938 (*movsi_internal): Ditto.
36940 2015-01-26 Jakub Jelinek <jakub@redhat.com>
36942 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
36943 OPTION_MASK_QUAD_MEMORY_ATOMIC.
36945 2015-01-26 Renlin Li <renlin.li@arm.com>
36947 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
36949 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
36952 2015-01-26 Richard Biener <rguenther@suse.de>
36954 PR middle-end/64764
36955 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
36956 combining two BIT_AND_EXPR predicates.
36958 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
36961 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
36963 2015-01-26 Terry Guo <terry.guo@arm.com>
36965 * config/arm/arm.c (arm_file_start): Update the assignment of
36966 Tag_ABI_HardFP_use.
36968 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
36970 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
36972 config/arm/arm.md: Include the new Cortex-A57 model.
36973 (generic_sched): Don't use generic_sched when tuning for
36976 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
36977 Uros Bizjak <ubizjak@gmail.com>
36979 * config/i386/i386.c (get_builtin_code_for_version): Add
36980 support for BMI and BMI2 multiversion functions.
36982 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36984 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
36985 (extract_bit_field): Likewise.
36986 (extract_low_bits): Likewise.
36987 (expand_mult): Likewise.
36988 (expand_mult_highpart_adjust): Likewise.
36990 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
36992 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
36993 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
36994 * config/i386/i386.c (processor_model): Add
36995 M_INTEL_COREI7_BROADWELL.
36996 (arch_names_table): Add "broadwell".
36998 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
37007 * config/sh/sh-protos.h
37008 (sh_extending_set_of_reg::can_use_as_unextended_reg,
37009 sh_extending_set_of_reg::use_as_unextended_reg,
37010 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
37011 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
37012 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
37013 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
37014 (sh_treg_insns): New class.
37015 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
37016 (scope_counter): New class.
37017 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
37018 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
37019 sh_extending_set_of_reg::can_use_as_unextended_reg,
37020 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
37021 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
37022 sh_split_treg_set_expr): New functions.
37023 (addsubcosts): Handle treg_set_expr.
37024 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
37025 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
37026 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
37027 (sh_insn_operands_modified_between_p): Make non-static.
37028 * config/sh/predicates.md (zero_extend_movu_operand): Allow
37029 simple_mem_operand in addition to displacement_mem_operand.
37030 (zero_extend_operand): Don't allow zero_extend_movu_operand.
37031 (treg_set_expr, treg_set_expr_not_const01,
37032 arith_reg_or_treg_set_expr): New predicates.
37033 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
37034 arith_or_int_operand instead of logical_operand. Convert to
37035 insn_and_split. Try to optimize constant operand in splitter.
37036 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
37037 (*tstqi_t_zero): Delete.
37038 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
37039 (tstsi_t_and_not): Delete.
37040 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
37041 Convert to insn_and_split.
37042 (unnamed split, tstsi_t_zero_extract_xor,
37043 tstsi_t_zero_extract_subreg_xor_little,
37044 tstsi_t_zero_extract_subreg_xor_big): Delete.
37045 (*tstsi_t_shift_mask): New insn_and_split.
37046 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
37047 to recombine with surrounding insns when splitting.
37048 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
37049 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
37050 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
37051 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
37052 (*cbranch_div0s: Delete.
37053 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
37054 Try to recombine with surrounding insns when splitting. Add operand
37056 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
37057 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
37058 *addc_r_r_msb, *addc_2r_msb): Delete.
37059 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
37061 (*addc_negreg_t): New insn_and_split.
37062 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
37063 Try to recombine with surrounding insns when splitting.
37064 Add operand order variants.
37065 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
37066 insn_and_split patterns.
37067 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
37068 surrounding insns when splitting.
37069 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
37070 (*rotcl): Likewise. Add zero_extract variant.
37071 (*ashrsi2_31): New insn_and_split.
37072 (*negc): Convert to insn_and_split. Use treg_set_expr.
37073 (*zero_extend<mode>si2_disp_mem): Update comment.
37074 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
37076 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
37077 with surrounding insns when splitting.
37078 (any_treg_expr_to_reg): New insn_and_split.
37079 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
37080 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
37081 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
37082 *zero_extract_2): New single bit zero extract patterns.
37083 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
37084 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
37085 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
37086 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
37088 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
37089 register_operand for set source.
37091 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
37093 * i386.opt (prefetch_sse): New targetsave.
37094 * i386.c (ix86_function_specific_save): Save prefetch_sse.
37095 (ix86_function_specific_restore): Restore prefetch_sse and initialize
37096 ix86_cost/ix86_tune_cost.
37098 2015-01-23 David Malcolm <dmalcolm@redhat.com>
37100 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
37101 Support the JIT by using 0 as the language type.
37103 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
37106 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
37107 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
37108 (mark_regno_live, process_bb_lives): Pass new parameter value to
37109 make_hard_regno_born.
37111 2015-01-23 Jakub Jelinek <jakub@redhat.com>
37113 PR rtl-optimization/63637
37114 PR rtl-optimization/60663
37115 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
37116 if elt->cost is MAX_COST for ASM_OPERANDS.
37117 (find_sets_in_insn): Fix up comment typo.
37118 (cse_insn): Don't set src_volatile for all non-volatile
37119 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
37120 or with "memory" clobber. Set elt->cost to MAX_COST
37121 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
37122 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
37124 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
37126 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
37129 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
37131 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
37132 libgcc/config/i386/elf-lib.h.
37134 2015-01-23 Jakub Jelinek <jakub@redhat.com>
37137 * gcc.c (print_configuration): Don't print a blank line at the end
37139 (run_attempt): ... but here unstead.
37141 PR middle-end/64734
37142 * omp-low.c (scan_sharing_clauses): Don't ignore
37143 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
37144 on target data/update constructs.
37146 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
37149 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
37150 (DEBUG_RELOAD): Removed define.
37151 (m32c_limit_reload_class): Enable traces with if DEBUG0.
37152 (m32c_function_arg): Added a type cast.
37153 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
37154 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
37155 * config/m32c/bitops.md (andqi3_16): Likewise.
37156 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
37157 (push_a01_l): Likewise.
37159 2015-01-23 David Malcolm <dmalcolm@redhat.com>
37162 * main.c (main): Construct toplev instances with init_signals=true.
37163 * toplev.c (general_init): Add param "init_signals", and use it to
37164 conditionalize the calls to signal and host_hooks.extra_signals.
37165 (toplev::toplev): Add param "init_signals".
37166 (toplev::main): When invoking general_init, pass m_init_signals
37167 to control whether signal-handlers are installed.
37168 * toplev.h (toplev::toplev): Add param "init_signals".
37169 (toplev::m_init_signals): New field.
37171 2015-01-23 David Malcolm <dmalcolm@redhat.com>
37174 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
37175 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
37176 latter may be affected by the former (e.g. on i686).
37178 2015-01-23 Martin Liska <mliska@suse.cz>
37180 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
37181 false positive during profiledbootstrap.
37183 2015-01-23 Tom de Vries <tom@codesourcery.com>
37186 * lto-opts.c (lto_write_options): Output non-explicit conservative
37188 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
37189 (append_compiler_options): Pass -fopenacc through.
37191 2015-01-23 Tom de Vries <tom@codesourcery.com>
37194 * lto-opts.c (lto_write_options): Output non-explicit conservative
37196 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
37197 (append_compiler_options): Pass -fopenmp through.
37199 2015-01-23 Jakub Jelinek <jakub@redhat.com>
37202 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
37205 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
37206 * diagnostic.def (DK_ICE_NOBT): New kind.
37207 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
37208 like DK_ICE, but never print backtrace.
37209 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
37210 (internal_error_no_backtrace): New function.
37211 * gcc.c (execute): Use internal_error_no_backtrace instead of
37214 2015-01-22 Jeff Law <law@redhat.com>
37217 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
37218 improve code density for small immediate to memory case.
37219 (insv): Better handle bitfield assignments when the field is
37220 being set to all ones.
37221 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
37224 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37225 Jakub Jelinek <jakub@redhat.com>
37227 PR middle-end/64729
37228 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
37229 for !TARGET_LIBC_PROVIDES_SSP version and
37230 -fstack-protector-{all,strong,explicit} otherwise.
37231 * config/freebsd.h (LINK_SSP_SPEC): Handle
37232 -fstack-protector-{strong,explicit}.
37234 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
37235 H.J. Lu <hongjiu.lu@intel.com>
37238 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
37241 2015-01-22 Wei Mi <wmi@google.com>
37243 PR rtl-optimization/64557
37244 * dse.c (record_store): Call get_addr for mem_addr.
37245 (check_mem_read_rtx): Likewise.
37247 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
37249 * fold-const.c (const_binop): Add early return for non-tcc_binary.
37251 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
37253 * toplev.c (init_local_tick): Process the failure when read
37254 fails for random_seed.
37256 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
37257 'pretty_name' to avoid memory overflow.
37259 2015-01-22 Richard Biener <rguenther@suse.de>
37261 PR middle-end/64728
37262 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
37263 abnormal coalescing on undefined SSA names.
37265 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
37269 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
37271 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
37273 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
37275 PR middle-end/63325
37276 * fold-const.c (fold_checksum_tree): Don't include value of
37277 expr->decl_with_vis.symtab_node in the checksum.
37279 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37281 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
37283 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
37286 * gcc.c (insert_comments): New function.
37287 (try_generate_repro): Call it.
37288 (append_text): Removed.
37290 2015-01-22 Richard Biener <rguenther@suse.de>
37292 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
37293 with IL incompatible options. Properly honor user optimize
37296 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
37298 PR rtl-optimization/64682
37299 * combine.c (distribute_notes): When moving a death note for
37300 a register that is set in the new I2, make sure to put it
37301 before that new I2.
37303 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
37305 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
37306 not TARGET_DEFAULT.
37308 2015-01-21 Jakub Jelinek <jakub@redhat.com>
37311 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
37312 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
37313 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
37316 * doc/invoke.texi (-fsanitize=vptr): Document.
37318 PR rtl-optimization/62078
37319 * dse.c: Include cfgcleanup.h.
37320 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
37321 anything call purge_all_dead_edges and cleanup_cfg at the end
37324 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
37326 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
37329 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
37331 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
37334 2015-01-21 David Sherwood <david.sherwood@arm.com>
37335 Tejas Belagod <Tejas.Belagod@arm.com>
37337 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
37338 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
37339 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
37342 2015-01-21 David Sherwood <david.sherwood@arm.com>
37343 Tejas Belagod <Tejas.Belagod@arm.com>
37345 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
37346 (aarch64_reverse_mask): New decls.
37347 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
37348 (insn_count): New mode_attr.
37349 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
37350 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
37351 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
37352 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
37353 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
37354 (aarch64_simd_st4): New patterns.
37355 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
37356 (aarch64_reverse_mask): New functions.
37358 2015-01-21 Alan Hayward <alan.hayward@arm.com>
37360 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
37362 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
37363 addressing modes for BE.
37364 (aarch64_print_operand): Add 'R' specifier.
37365 (aarch64_simd_disambiguate_copy): Delete.
37366 (aarch64_simd_emit_reg_reg_move): New function.
37367 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
37368 in define_splits for structural moves.
37369 (mov<mode>): Use less restrictive predicates.
37370 (*aarch64_mov<mode>): Simplify and only allow for LE.
37371 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
37373 2015-01-21 Alan Hayward <alan.hayward@arm.com>
37375 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
37377 2015-01-21 Richard Henderson <rth@redhat.com>
37380 * ccmp.c (used_in_cond_stmt_p): Remove.
37381 (expand_ccmp_expr): Don't use it.
37383 2015-01-21 Nick Clifton <nickc@redhat.com>
37385 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
37388 2015-01-21 Richard Biener <rguenther@suse.de>
37390 PR middle-end/64313
37391 * tree-core.h (builtin_info, builtin_info_type): Turn from
37392 an object with two arrays into an array of an object with
37393 decl and two flags, implicit_p and declared_p.
37394 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
37395 set_builtin_decl, set_builtin_decl_implicit_p,
37396 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
37397 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
37398 * builtins.c (builtin_info): Adjust.
37399 * gimplify.c (gimplify_addr_expr): References to builtins
37400 that have been declared by the user makes them eligible for
37401 use by the compiler. Call set_builtin_decl_implicit_p on them.
37403 2015-01-20 Jeff Law <law@redhat.com>
37406 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
37407 allow pc-relative addresses in operand predicates or constraints.
37409 2015-01-21 Bin Cheng <bin.cheng@arm.com>
37411 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
37412 neon on aarch32 processors for stringops.
37414 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37417 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
37419 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37422 * ipa-inline.c: Include lto-streamer.h
37423 (report_inline_failed_reason): Output source file differences and
37424 flags on optimization/target node mismatch.
37425 (can_inline_edge_p): Consider caller to be the outer inline function;
37426 be less restrictive about matching opimize and optimize_size attributes.
37427 (inline_account_function_p): Break out from ...
37428 (inline_small_functions): ... here.
37429 * ipa-inline-transform.c (clone_inlined_nodes): Use
37430 inline_account_function_p.
37431 (inline_call): Use optimize attribution; use inline_account_function_p.
37432 (inline_transform): Use opt_for_fn.
37433 * ipa-inline.h (inline_account_function_p): Declare.
37435 2015-01-20 Jakub Jelinek <jakub@redhat.com>
37438 * dwarf2out.c (decl_piece_node): Don't put bitsize into
37439 mode if bitsize <= 0.
37440 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
37441 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
37442 sizes and positions.
37444 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
37446 * config/nios2/nios2.c (nios2_asm_file_end): Implement
37447 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
37449 (TARGET_ASM_FILE_END): Define.
37451 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37453 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
37454 (struct tune_params): Use the enum.
37455 * arm.c (arm_*_tune): Update.
37456 (arm_option_override): Update.
37458 2015-01-20 Richard Biener <rguenther@suse.de>
37461 * ipa-reference.c (add_static_var): Inline ...
37462 (analyze_function): ... here after splitting out from ...
37463 (is_proper_for_analysis): ... this.
37465 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
37468 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
37469 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
37470 replace the conditional with it's true branch.
37471 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
37472 (arm_lra_p): Remove.
37474 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
37476 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
37478 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
37480 * config/tilegx/mul-tables.c: Move symtab.h include after
37481 coretypes.h include.
37482 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
37483 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
37484 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
37485 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
37486 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
37488 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
37492 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
37494 PR rtl-optimization/64081
37495 * loop-iv.c (def_pred_latch_p): New function.
37496 (latch_dominating_def): Allow specific cases with non-single
37498 (iv_get_reaching_def): Likewise.
37499 (check_complex_exit_p): New function.
37500 (check_simple_exit): Use check_complex_exit_p to allow certain cases
37501 with exits not executing on any iteration.
37503 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37506 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
37507 to set branch cost.
37509 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37512 * i386.c (gate): Check flag_expensive_optimizations and
37514 (ix86_option_override_internal): Drop optimize_size condition
37515 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
37516 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
37517 MASK_PREFER_AVX128.
37518 (ix86_avx256_split_vector_move_misalign,
37519 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
37520 * sse.md (all uses of TARGET_PREFER_AVX128): Add
37521 optimize_insn_for_speed_p check.
37523 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
37525 * config/mips/mips.h (FP_ASM_SPEC): New define.
37526 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
37529 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
37532 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
37533 nullptr for insn when reaching the first insn.
37534 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
37535 (sh_insn_operands_modified_between_p): Add nullptr check.
37536 (sh_find_extending_set_of_reg): Fix log message. Don't accept
37537 sign extending mem load if the insn contains any UNSPEC or
37540 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37542 * params.def (inline-unit-growth): Drop to 15%.
37543 * invoke.texi (inline-unit-growth): Document change.
37545 2015-01-19 Martin Liska <mliska@suse.cz>
37548 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
37549 function for second argument of OBJ_TYPE_REF.
37551 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37554 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
37555 whether function is an alias.
37557 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37559 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
37562 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
37564 PR rtl-optimization/64671
37565 * lra-remat.c (operand_to_remat): Don't consider jump and call
37568 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
37571 * config/rs6000/default64.h: Include rs6000-cpus.def.
37572 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
37573 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
37574 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
37576 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
37578 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
37579 pseudo-op to specify assembler dialect.
37581 2015-01-19 Martin Liska <mliska@suse.cz>
37584 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
37585 Handle safe potentially removed nodes during filtering.
37587 2015-01-19 Martin Liska <mliska@suse.cz>
37589 * doc/extend.texi (no_icf): Add new attribute description.
37590 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
37591 where the pass attempts to merge a function with no_icf attribute.
37593 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37596 * doc/md.texi (ARM Options): Document register constraints.
37598 2015-01-19 Jiong Wang <jiong.wang@arm.com>
37599 Andrew Pinski <apinski@cavium.com>
37602 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
37603 (ashl<mode>3): Don't expand if operands[2] is not constant.
37605 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37608 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
37609 Match xor-and-xor RTL pattern.
37611 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
37613 PR rtl-optimization/64081
37614 * loop-iv.c (def_pred_latch_p): New function.
37615 (latch_dominating_def): Allow specific cases with non-single
37617 (iv_get_reaching_def): Likewise.
37618 (check_complex_exit_p): New function.
37619 (check_simple_exit): Use check_complex_exit_p to allow certain cases
37620 with exits not executing on any iteration.
37622 2015-01-19 Jakub Jelinek <jakub@redhat.com>
37624 * common.opt (fgraphite): Fix a typo.
37626 2015-01-19 Felix Yang <felix.yang@huawei.com>
37628 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
37630 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
37631 uminp, smax_nanp, smin_nanp): New builtins.
37632 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
37633 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
37634 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
37635 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
37636 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
37637 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
37638 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
37639 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
37640 vpminnms_f32): Rewrite using builtin functions.
37642 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
37645 * omp-low.c (offload_symbol_decl): Remove variable.
37646 (get_offload_symbol_decl): Remove function.
37647 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
37648 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
37649 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
37650 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
37651 BUILT_IN_GOACC_UPDATE don't pass it at all.
37653 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
37655 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
37658 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
37660 * ipa-chkp.c (chkp_produce_thunks): Add early param
37661 to split thunks production into two passes. Keep
37662 'always_inline' function bodies after the first pass.
37663 (pass_data_ipa_chkp_early_produce_thunks): New.
37664 (pass_ipa_chkp_early_produce_thunks): New.
37665 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
37666 chkp_produce_thunks signature.
37667 (make_pass_ipa_chkp_early_produce_thunks): New.
37668 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
37669 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
37670 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
37672 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
37674 * cgraph.c (cgraph_node::dump): Dump profile flags.
37676 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
37679 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
37680 reg appear first in the parallel.
37682 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
37684 * ipa-reference.c (set_reference_optimization_summary,
37685 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
37687 (ignore_module_statics): New static var.
37688 (propagate_bits): If ipa-reference is disabled, do not look into local
37690 (analyze_function): Disable analysis when ipa_reference is disabled.
37691 (generate_summary): Do not dump when reference is disabled;
37692 collect vars accessed from functions with ipa-reference disabled.
37693 (get_read_write_all_from_node): When ipa-reference is disabled, use the
37695 (gate): Enable for LTO.
37696 (ignore_edge_p): New function.
37697 (propagate): Skip functions w/o ipa-reference analysis.
37698 * optc-save-gen.awk: Handle optimize_debug correctly.
37699 * opth-gen.awk: Likewise.
37700 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
37701 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
37702 fira-share-save-slots, fira-share-spill-slots,
37703 fmodulo-sched-allow-regmoves, fpartial-inlining,
37704 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
37705 ftracer, ftree-parallelize-loops, fassociative-math,
37706 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
37708 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
37709 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
37711 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
37714 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
37717 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
37719 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
37721 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
37723 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
37724 Remove duplicate option listings.
37726 2015-01-18 Felix Yang <felix.yang@huawei.com>
37728 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
37729 (autofdo_source_profile::get_callsite_total_count,
37730 function_instance::get_function_instance_by_decl,
37731 string_table::get_index, string_table::get_index_by_decl,
37732 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
37733 Fix comment typos. Reformatting and minor code rearrangement.
37735 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
37737 * config/rs6000/rs6000.md (probe_stack): Delete.
37738 (probe_stack_address): New.
37740 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
37742 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
37743 to test for 32-bit ABIs, not !TARGET_POWERPC64.
37745 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
37747 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
37748 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
37749 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
37751 (rs6000_libcall_value): Use the new function.
37753 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
37755 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
37757 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
37759 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
37760 implement a more precise life analysis for it during backward scan.
37762 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
37764 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
37766 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
37768 PR rtl-optimization/52773
37769 * calls.c (emit_library_call_value): When pushing arguments use
37770 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
37771 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
37772 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
37774 2015-01-17 Jeff Law <law@redhat.com>
37776 PR rtl-optimization/32790
37777 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
37778 not ZERO_EXTEND in SET_DESTs.
37780 2015-01-17 Alan Modra <amodra@gmail.com>
37782 * cprop.c (do_local_cprop): Revert last change.
37784 2015-01-16 DJ Delorie <dj@redhat.com>
37785 Nick Clifton <nickc@redhat.com>
37787 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
37788 (addhi3_real): Likewise. Fix [HL+0] syntax.
37789 (subqi3_real): Likewise.
37790 (subhi3_real): Likewise.
37791 (cbranchqi4_real): Likewise. Allow saddr,#imm.
37792 (cbranchhi4_real): Likewise.
37793 (cbranchhi4_real_inverted): Likewise.
37794 (cbranchsi4_real_lt): Likewise.
37795 (cbranchsi4_real_ge): Likewise.
37796 (cbranchsi4_real_ge): Likewise.
37797 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
37798 (sub<mode>3_virt): Likewise.
37799 (cbranchqi4_virt): Likewise.
37800 (cbranchhi4_virt): Likewise.
37801 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
37802 always use '[reg+imm]' even when imm is zero.
37803 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
37804 (rl78_general_operand): New.
37805 (rl78_nonimmediate_operand): New.
37806 (rl78_nonfar_operand): Use them.
37807 (rl78_nonfar_nonimm_operand): Likewise.
37808 (rl78_stack_based_mem): Fix.
37809 * config/rl78/constraints.md (Ibqi): New.
37814 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
37815 (iorqi3): Likewise.
37816 (xorqi3): Likewise.
37817 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
37819 * config/rl78/constrains (Qs8): New constraint.
37820 * config/rl78/rl78.c (rl78_flags_already_set): New function.
37821 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
37822 * config/rl78/rl78-real.md (update_Z): New attribute.
37823 Update patterns to set it.
37824 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
37825 shorter compare and branch sequence can be used.
37826 (cbranchhi4_real): Likewise.
37827 (cbranchhi4_real_inverted): Likewise.
37829 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
37830 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
37832 * config/rl78/rl78.c (rl78_get_name_encoding): New.
37833 (rl78_option_override): Allow -mes0 only if C.
37834 (characterize_address): Support subregs of symbol_refs.
37835 (rl78_addr_space_address_mode): Move. Add __near.
37836 (rl78_far_p): Likewise.
37837 (rl78_addr_space_pointer_mode): Likewise.
37838 (rl78_as_legitimate_address): Likewise.
37839 (rl78_addr_space_subset_p): Likewise.
37840 (rl78_addr_space_convert): Likewise.
37841 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
37842 symbols with -mes0.
37843 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
37845 (rl78_alloc_physical_registers_op1): Change logic to prefer
37846 symbol[BC] addressing.
37847 (frodata_section): New.
37848 (rl78_asm_init_sections): Initialize it.
37849 (rl78_select_section): Put __far readonly symbols in .frodata.
37850 (rl78_make_type_far): New.
37851 (rl78_insert_attributes): Force all readonly symbols to be
37853 (rl78_asm_out_integer): New.
37854 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
37855 * config/rl78/rl78.opt (-mes0): New.
37857 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
37858 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
37859 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
37860 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
37861 (rl78_saddr_p): New.
37862 (rl78_output_aligned_common): New.
37863 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
37864 (rl78_handle_saddr_attribute): New.
37865 (rl78_handle_naked_attribute): New.
37866 (rl78_attribute_table): Add saddr.
37867 (rl78_print_operand_1): Don't print '!' on saddr operands.
37868 (rl78_print_operand_1): Strip encodings.
37870 (rl78_strip_name_encoding): New.
37871 (rl78_attrlist_to_encoding): New.
37872 (rl78_encode_section_info): New.
37873 (rl78_asm_init_sections): New.
37874 (rl78_select_section): New.
37875 (rl78_output_labelref): New.
37876 (rl78_output_aligned_common): New.
37877 (rl78_asm_out_integer): New.
37878 (rl78_asm_ctor_dtor): New.
37879 (rl78_asm_constructor): New.
37880 (rl78_asm_destructor): New.
37882 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
37883 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
37884 (transcode_memory_rtx): Update.
37885 (rl78_expand_epilogue): Use A_REG instead of 0.
37887 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37889 * config/arm/arm-protos.h (struct tune_params): New field
37890 sched_autopref_queue_depth.
37891 * config/arm/arm.c (sched-int.h): Include header.
37892 (arm_first_cycle_multipass_dfa_lookahead_guard,)
37893 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
37894 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
37895 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
37896 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
37897 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
37898 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
37899 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
37900 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
37901 * config/arm/t-arm (arm.o): Update.
37902 * haifa-sched.c (update_insn_after_change): Update.
37903 (rank_for_schedule): Use auto-prefetcher model, if requested.
37904 (autopref_multipass_init): New static function.
37905 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
37906 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
37907 variable for debug dumps.
37908 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
37909 (autopref_multipass_dfa_lookahead_guard): New global function that
37910 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
37911 (init_h_i_d): Update.
37912 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
37913 * sched-int.h (enum autopref_multipass_data_status): New const enum.
37914 (autopref_multipass_data_): Structure for auto-prefetcher data.
37915 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
37916 (struct _haifa_insn_data:autopref_multipass_data): New field.
37917 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
37918 (autopref_multipass_dfa_lookahead_guard): Declare.
37920 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37922 * rtlanal.c (get_base_term): Handle SCRATCH.
37924 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37926 * config/aarch64/aarch64.c
37927 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
37928 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
37930 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
37931 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
37933 2015-01-17 Alan Modra <amodra@gmail.com>
37935 * cprop.c (do_local_cprop): Disallow replacement of fixed
37938 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37941 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
37944 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
37946 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
37947 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
37949 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37951 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
37952 * config/arm/thumb1.md: ... Here.
37954 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37956 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
37957 TImode for TARGET_32BIT.
37959 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37961 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
37962 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
37964 (rs6000_abi_word_mode): New function.
37966 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37968 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
37969 instead of UNITS_PER_WORD to describe the size of stack slots.
37971 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37973 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
37974 as rs6000_promote_function_mode. Move comment to there.
37975 (rs6000_promote_function_mode): New function.
37977 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
37979 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
37980 -mpowerpc64 is active.
37982 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
37984 PR middle-end/64353
37985 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
37988 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
37990 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
37991 introduced in revision 219724.
37993 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37994 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37997 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
37998 destination is not a GP reg.
37999 (*movdi_aarch64): Likewise.
38001 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
38004 * config/rs6000/default64.h: Revert ISA change.
38006 2015-01-16 Richard Biener <rguenther@suse.de>
38008 PR middle-end/64614
38009 * tree-ssa-uninit.c: Include tree-cfg.h.
38010 (MAX_SWITCH_CASES): New define.
38011 (convert_control_dep_chain_into_preds): Handle switch statements.
38012 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
38013 (normalize_one_pred_1): Do not split bit-manipulations.
38016 2015-01-16 Richard Biener <rguenther@suse.de>
38018 PR tree-optimization/64568
38019 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
38020 complex load rewriting for TARGET_MEM_REFs.
38022 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
38024 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
38026 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
38029 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
38031 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
38032 (aarch64_lra_p): Remove.
38034 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
38037 * ipa-chkp.h (chkp_instrumentable_p): New.
38038 * ipa-chkp.c: Include tree-inline.h.
38039 (chkp_instrumentable_p): New.
38040 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
38041 Fix processing of not instrumentable functions.
38042 (chkp_versioning): Use chkp_instrumentable_p. Warn about
38043 not instrumentable functions.
38044 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
38045 chkp_instrumentable_p.
38046 * tree-inline.h (copy_forbidden): New.
38047 * tree-inline.c (copy_forbidden): Not static anymore.
38049 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38051 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
38054 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
38056 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
38057 type OP_OUT to OP_INOUT.
38059 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
38061 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
38062 (high x) y) to y if x and y have the same base.
38064 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
38066 * config/arm/cortex-a57.md: New.
38067 * config/aarch64/aarch64.md: Include it.
38068 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
38069 * config/aarch64/aarch64-tune.md: Regenerate.
38071 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
38074 * ccmp.c (expand_ccmp_next): New function.
38075 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
38076 and compare insn sequence.
38077 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
38078 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
38079 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
38080 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
38081 (*ccmp_ior): Changed to ccmp_ior<mode>.
38082 (cmp<mode>): New pattern.
38083 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
38085 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
38087 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
38089 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
38090 _mm256_bsrli_epi128): New.
38091 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
38093 2015-01-15 Jiong Wang <jiong.wang@arm.com>
38095 * expmed.c (store_bit_field_using_insv): Improve warning message.
38096 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
38098 2015-01-15 Jiong Wang <jiong.wang@arm.com>
38100 PR rtl-optimization/64011
38101 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
38102 there is partial overflow.
38104 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38106 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
38108 (nds32_expand_epilogue_v3pop): Likewise.
38109 * config/nds32/nds32.md (sibcall): Define this for sibling call
38111 (sibcall_register): Likewise.
38112 (sibcall_immediate): Likewise.
38113 (sibcall_value): Likewise.
38114 (sibcall_value_register): Likewise.
38115 (sibcall_value_immediate): Likewise.
38116 (sibcall_epilogue): Likewise.
38117 (epilogue): Pass false to indicate this is not a sibcall epilogue.
38118 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
38119 (nds32_expand_epilogue_v3pop): Likewise.
38121 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38123 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
38124 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
38125 (return_internal): New.
38126 (return): Define this named pattern.
38127 (simple_return): Define this named pattern.
38128 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
38129 pattern instead of unspec_volatile_func_return.
38130 (nds32_expand_epilogue_v3pop): Likewise.
38131 (nds32_can_use_return_insn): New function.
38133 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38135 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
38136 * config/nds32/nds32.md (pop25return): New.
38137 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
38138 pop25return pattern.
38140 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38142 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
38143 -mforbid-fp-as-gp, and -mex9 options.
38145 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38147 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
38148 remove -mgp-direct option.
38150 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
38152 * doc/invoke.texi (--param early-inlining-insns): Update default value.
38153 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
38155 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
38157 * ipa-inline.c (inline_small_functions): Work around hints
38160 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
38163 * doc/invoke.texi (Option Summary): Document new Nios II
38165 (Nios II Options): Likewise.
38166 * config/nios2/nios2.opt: Add -mgpopt= option support.
38167 Modify existing -mgpopt and -mno-gpopt options to be aliases.
38168 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
38169 * config/nios2/nios2.c (nios2_option_override): Adjust
38170 -mgpopt defaulting.
38171 (nios2_in_small_data_p): Return true for explicit small data
38172 sections even with -G0.
38173 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
38176 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
38179 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
38181 (inline_call): Fix removal of aliases.
38183 2015-01-15 Jakub Jelinek <jakub@redhat.com>
38185 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
38186 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
38187 * opts.c (common_handle_option): Add -fsanitize=vptr.
38188 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
38189 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
38190 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
38191 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
38192 (ubsan_expand_vptr_ifn): New prototype.
38193 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
38194 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
38195 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
38196 expand_LOOP_VECTORIZED): Make argument nameless, remove
38198 (expand_UBSAN_VPTR): New function.
38199 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
38201 (UBSAN_VPTR): New internal function.
38202 * sanopt.c (tree_map_traits): Renamed to ...
38203 (sanopt_tree_map_traits): ... this.
38204 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
38205 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
38206 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
38207 (maybe_optimize_ubsan_vptr_ifn): New function.
38208 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
38209 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
38211 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
38212 internal calls like pure functions for aliasing, even when they
38213 have other side-effects that prevent making them ECF_PURE.
38214 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
38215 (ubsan_expand_vptr_ifn): New function.
38217 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
38219 PR rtl-optimization/64110
38220 * stmt.c (parse_output_constraint): Process '^' and '$'.
38221 (parse_input_constraint): Ditto.
38222 * lra-constraints.c (process_alt_operands): Process the new
38224 * ira-costs.c (record_reg_classes): Process the new constraint
38226 * genoutput.c (indep_constraints): Add '^' and '$'.
38227 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
38228 * doc/md.texi: Add description of the new constraints.
38230 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
38231 Bernd Schmidt <bernds@codesourcery.com>
38232 Cesar Philippidis <cesar@codesourcery.com>
38233 James Norris <jnorris@codesourcery.com>
38234 Tom de Vries <tom@codesourcery.com>
38235 Ilmir Usmanov <i.usmanov@samsung.com>
38236 Dmitry Bocharnikov <dmitry.b@samsung.com>
38237 Evgeny Gavrin <e.gavrin@samsung.com>
38238 Jakub Jelinek <jakub@redhat.com>
38240 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
38241 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38242 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38243 New function types.
38244 * builtins.c: Include "gomp-constants.h".
38245 (expand_builtin_acc_on_device): New function.
38246 (expand_builtin, is_inexpensive_builtin): Handle
38247 BUILT_IN_ACC_ON_DEVICE.
38248 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
38250 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
38252 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
38253 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
38254 i386/intelmic-offload.h.
38255 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
38256 to libgomp and its dependencies.
38257 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
38258 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
38259 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
38260 * config/ia64/hpux.h (LIB_SPEC): Likewise.
38261 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
38262 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
38263 * doc/generic.texi: Update for OpenACC changes.
38264 * doc/gimple.texi: Likewise.
38265 * doc/invoke.texi: Likewise.
38266 * doc/sourcebuild.texi: Likewise.
38267 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
38268 GF_OMP_FOR_KIND_OACC_LOOP.
38269 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
38270 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
38271 GF_OMP_TARGET_KIND_OACC_UPDATE,
38272 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
38274 * gimple.c: Update comments for OpenACC changes.
38275 * gimple.def: Likewise.
38276 * gimple.h: Likewise.
38277 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
38278 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
38279 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
38280 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
38281 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
38283 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
38284 * gimplify.c: Include "gomp-constants.h".
38285 Update comments for OpenACC changes.
38286 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
38287 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
38288 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
38289 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
38290 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
38291 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
38292 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
38293 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
38294 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
38296 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
38297 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
38298 OMP_CLAUSE_SET_MAP_KIND.
38299 (gimplify_oacc_cache): New function.
38300 (gimplify_omp_for): Handle OACC_LOOP.
38301 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
38303 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
38304 OACC_EXIT_DATA, OACC_UPDATE.
38305 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
38306 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
38307 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
38308 (gimplify_body): Consider flag_openacc next to flag_openmp.
38309 * lto-streamer-out.c: Include "gomp-constants.h".
38310 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
38311 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
38312 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
38313 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
38314 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
38315 (BUILT_IN_ACC_ON_DEVICE): New builtins.
38316 * omp-low.c: Include "gomp-constants.h".
38317 Update comments for OpenACC changes.
38318 (struct omp_context): Add reduction_map, gwv_below, gwv_this
38320 (extract_omp_for_data, use_pointer_for_field, install_var_field)
38321 (new_omp_context, delete_omp_context, scan_sharing_clauses)
38322 (create_omp_child_function, scan_omp_for, scan_omp_target)
38323 (check_omp_nesting_restrictions, lower_reduction_clauses)
38324 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
38325 Update for OpenACC changes.
38326 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
38327 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
38328 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
38329 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
38330 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
38331 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
38333 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
38334 Handle GF_OMP_FOR_KIND_OACC_LOOP.
38335 (expand_omp_target, lower_omp_target): Handle
38336 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
38337 GF_OMP_TARGET_KIND_OACC_UPDATE,
38338 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
38339 GF_OMP_TARGET_KIND_OACC_DATA.
38340 (pass_expand_omp::execute, execute_lower_omp)
38341 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
38343 (offload_symbol_decl): New variable.
38344 (oacc_get_reduction_array_id, oacc_max_threads)
38345 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
38346 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
38347 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
38348 (oacc_gimple_assign, oacc_initialize_reduction_data)
38349 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
38351 (is_targetreg_ctx): Remove function.
38352 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
38353 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
38354 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
38355 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
38356 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
38357 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
38358 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
38359 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
38360 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
38361 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
38362 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
38363 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
38364 * tree-core.h: Update comments for OpenACC changes.
38365 (enum omp_clause_map_kind): Remove.
38366 (struct tree_omp_clause): Change type of map_kind member from enum
38367 omp_clause_map_kind to unsigned char.
38368 * tree-inline.c: Update comments for OpenACC changes.
38369 * tree-nested.c: Likewise. Include "gomp-constants.h".
38370 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
38371 (convert_tramp_reference_stmt, convert_gimple_call): Update for
38372 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
38373 OMP_CLAUSE_SET_MAP_KIND.
38374 * tree-pretty-print.c: Include "gomp-constants.h".
38375 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
38376 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
38377 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
38378 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
38379 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
38380 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
38381 instead of OMP_CLAUSE_MAP_*.
38382 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
38383 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
38384 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
38385 * tree-streamer-in.c: Include "gomp-constants.h".
38386 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
38387 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
38388 * tree-streamer-out.c: Include "gomp-constants.h".
38389 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
38391 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
38392 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
38393 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
38394 * tree.c (omp_clause_num_ops): Update accordingly.
38395 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
38397 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
38398 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
38399 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
38400 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
38401 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
38402 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
38403 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
38404 (OMP_CLAUSE_SET_MAP_KIND): New macro.
38405 * varpool.c (varpool_node::get_create): Consider flag_openacc next
38407 * config/i386/intelmic-offload.h: New file.
38408 * config/nvptx/offload.h: Likewise.
38410 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38412 * explow.h: Remove duplicate contents.
38413 * dojump.h: Likewise.
38415 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
38417 * arm.c (arm_xgene_tune): Add default initializer for instruction
38420 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
38424 * ipa.c (symbol_table::remove_unreachable_nodes):
38425 Do not put abstract origins into boundary.
38427 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
38429 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
38430 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
38432 2015-01-15 Steve Ellcey <sellcey@mips.com>
38434 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
38435 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
38436 builtins.def, and chkp-builtins.def.
38438 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
38440 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
38443 2015-01-15 Richard Biener <rguenther@suse.de>
38445 PR tree-optimization/61743
38446 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
38447 information on PHIs for some simple cases.
38449 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38451 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
38453 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
38454 * config/arm/arm-cores.def (xgene1): New entry.
38455 * config/arm/arm-tables.opt: Regenerate.
38456 * config/arm/arm-tune.md: Regenerate.
38457 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
38459 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
38461 * tree-if-conv.c: Include hash-map.h.
38462 (aggressive_if_conv): New variable.
38463 (fold_build_cond_expr): Add simplification of non-zero condition.
38464 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
38465 destination block is not always executed.
38466 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
38467 than two predecessors if AGGRESSIVE_IF_CONV is true.
38468 (if_convertible_stmt_p): Fix commentary.
38469 (all_preds_critical_p): New function.
38470 (has_pred_critical_p): New function.
38471 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
38472 BB can have more than two predecessors and all incoming edges can be
38474 (predicate_bbs): Skip predication for loop exit block, use build2_loc
38475 to compute predicate for true edge.
38476 (find_phi_replacement_condition): Delete this function.
38477 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
38478 Allow interchange PHI arguments if EXTENDED is false.
38479 Change check that block containing reduction statement candidate
38480 is predecessor of phi-block since phi may have more than two arguments.
38481 (phi_args_hash_traits): New helper structure.
38482 (struct phi_args_hash_traits): New type.
38483 (phi_args_hash_traits::hash): New function.
38484 (phi_args_hash_traits::equal_keys): New function.
38485 (gen_phi_arg_condition): New function.
38486 (predicate_scalar_phi): Add handling of phi nodes with more than two
38487 arguments, delete COND and TRUE_BB arguments, insert body of
38488 find_phi_replacement_condition to predicate ordinary phi nodes.
38489 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
38490 delete call of find_phi_replacement_condition and invoke
38491 predicate_scalar_phi with two arguments.
38492 (insert_gimplified_predicates): Add assert that non-predicated block
38493 don't have statements to insert.
38494 (ifcvt_split_critical_edges): New function.
38495 (ifcvt_split_def_stmt): Likewise.
38496 (ifcvt_walk_pattern_tree): Likewise.
38497 (stmt_is_root_of_bool_pattern): Likewise.
38498 (ifcvt_repair_bool_pattern): Likewise.
38499 (ifcvt_local_dce): Likewise.
38500 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
38501 is copy of inner or outer loop force_vectorize field, invoke
38502 ifcvt_split_critical_edges, ifcvt_local_dce and
38503 ifcvt_repair_bool_pattern for aggressive if-conversion.
38505 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
38507 * config/aarch64/aarch64.md: Include xgene1.md.
38508 * config/aarch64/xgene1.md: New file.
38510 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38512 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
38513 xgene1 (APM XGene-1) core definition.
38514 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
38515 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
38516 * doc/invoke.texi: Document -mcpu=xgene1.
38518 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38520 * dojump.h: New header file.
38521 * explow.h: Likewise.
38522 * expr.h: Remove includes.
38523 Move expmed.c prototypes to expmed.h.
38524 Move dojump.c prototypes to dojump.h.
38525 Move alias.c prototypes to alias.h.
38526 Move explow.c prototypes to explow.h.
38527 Move calls.c prototypes to calls.h.
38528 Move emit-rtl.c prototypes to emit-rtl.h.
38529 Move varasm.c prototypes to varasm.h.
38530 Move stmt.c prototypes to stmt.h.
38531 (saved_pending_stack_adjust): Move to dojump.h.
38532 (adjust_address): Move to explow.h.
38533 (adjust_address_nv): Move to emit-rtl.h.
38534 (adjust_bitfield_address): Likewise.
38535 (adjust_bitfield_address_size): Likewise.
38536 (adjust_bitfield_address_nv): Likewise.
38537 (adjust_automodify_address_nv): Likewise.
38538 * explow.c (expr_size): Move to expr.c.
38539 (int_expr_size): Likewise.
38540 (tree_expr_size): Likewise.
38541 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38542 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
38543 * genemit.c (main): Generate includes statistics.h, real.h,
38544 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
38546 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
38547 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
38548 explow.h, emit-rtl.h, stmt.h.
38549 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
38550 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
38551 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
38552 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
38553 emit-rtl.h, varasm.h, stmt.h.
38554 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
38555 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
38556 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
38557 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
38558 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
38559 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
38560 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
38561 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
38562 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
38563 tm.h tree.h varasm.h vec.h wide-int.h.
38564 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38565 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
38566 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
38567 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
38568 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
38569 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
38570 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
38571 * loop-iv.c: Likewise.
38572 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
38573 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
38574 statistics.h stmt.h tree.h varasm.h wide-int.h.
38575 * lra-constraints.c: Likewise.
38576 * lra-eliminations.c: Likewise.
38577 * lra-lives.c: Likewise.
38578 * lra-remat.c: Likewise.
38579 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38580 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
38581 statistics.h stmt.h tree.h varasm.h wide-int.h.
38582 * hw-doloop.c: Likewise.
38583 * ira-color.c: Likewise.
38584 * ira-emit.c: Likewise.
38585 * loop-doloop.c: Likewise.
38586 * loop-invariant.c: Likewise.
38587 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38588 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
38589 statistics.h stmt.h tree.h varasm.h wide-int.h.
38590 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
38591 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
38592 statistics.h stmt.h tree.h varasm.h wide-int.h.
38593 * combine-stack-adj.c: Likewise.
38596 * ifcvt.c: Likewise.
38597 * ira-costs.c: Likewise.
38598 * jump.c: Likewise.
38599 * lra-coalesce.c: Likewise.
38600 * lra-spills.c: Likewise.
38601 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38602 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
38603 stmt.h varasm.h wide-int.h.
38604 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38605 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
38607 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
38608 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
38609 statistics.h stmt.h varasm.h wide-int.h.
38610 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
38611 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
38612 varasm.h wide-int.h.
38613 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
38614 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
38615 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
38616 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
38617 statistics.h stmt.h.
38618 * config/tilepro/tilepro.c: Likewise.
38619 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
38620 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
38621 * config/pdp11/pdp11.c: Likewise.
38622 * config/xtensa/xtensa.c: Likewise.
38623 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
38624 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
38626 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38627 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
38628 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
38629 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38630 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
38631 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
38632 * rtl-chkp.c: Likewise.
38633 * tree-chkp-opt.c: Likewise.
38634 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
38635 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
38636 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
38637 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38638 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
38639 statistics.h stmt.h.
38640 * tree-vect-data-refs.c: Likewise.
38641 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
38642 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38643 rtl.h statistics.h stmt.h varasm.h.
38644 * internal-fn.c: Likewise.
38645 * ipa-icf-gimple.c: Likewise.
38646 * lto-section-out.c: Likewise.
38647 * tree-data-ref.c: Likewise.
38648 * tree-nested.c: Likewise.
38649 * tree-outof-ssa.c: Likewise.
38650 * tree-predcom.c: Likewise.
38651 * tree-pretty-print.c: Likewise.
38652 * tree-scalar-evolution.c: Likewise.
38653 * tree-ssa-strlen.c: Likewise.
38654 * tree-vect-loop.c: Likewise.
38655 * tree-vect-patterns.c: Likewise.
38656 * tree-vect-slp.c: Likewise.
38657 * tree-vect-stmts.c: Likewise.
38658 * tsan.c: Likewise.
38659 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38660 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
38662 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
38663 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38664 statistics.h stmt.h varasm.h.
38665 * loop-unroll.c: Likewise.
38666 * ubsan.c: Likewise.
38667 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
38668 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
38670 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38671 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
38672 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
38673 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
38674 statistics.h stmt.h.
38675 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
38676 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
38677 statistics.h stmt.h varasm.h.
38678 * gimple-match-head.c: Likewise.
38679 * lto-cgraph.c: Likewise.
38680 * lto-section-in.c: Likewise.
38681 * lto-streamer-in.c: Likewise.
38682 * lto-streamer-out.c: Likewise.
38683 * tree-affine.c: Likewise.
38684 * tree-cfg.c: Likewise.
38685 * tree-cfgcleanup.c: Likewise.
38686 * tree-if-conv.c: Likewise.
38687 * tree-into-ssa.c: Likewise.
38688 * tree-ssa-alias.c: Likewise.
38689 * tree-ssa-copyrename.c: Likewise.
38690 * tree-ssa-dse.c: Likewise.
38691 * tree-ssa-forwprop.c: Likewise.
38692 * tree-ssa-live.c: Likewise.
38693 * tree-ssa-math-opts.c: Likewise.
38694 * tree-ssa-pre.c: Likewise.
38695 * tree-ssa-sccvn.c: Likewise.
38696 * tree-tailcall.c: Likewise.
38697 * tree-vect-generic.c: Likewise.
38698 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38699 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
38700 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38701 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
38702 * varasm.c: Likewise.
38703 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38704 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
38706 * init-regs.c: Likewise.
38708 * omp-low.c: Likewise.
38709 * stack-ptr-mod.c: Likewise.
38710 * tree-ssa-reassoc.c: Likewise.
38711 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38712 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
38714 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38715 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
38716 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38717 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
38718 * recog.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 varasm.h.
38720 * tree-ssa-phiopt.c: Likewise.
38721 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38722 fixed-value.h hashtab.h real.h statistics.h stmt.h.
38723 * config/fr30/fr30.c: Likewise.
38724 * config/frv/frv.c: Likewise.
38725 * expr.c: Likewise.
38726 * final.c: Likewise.
38727 * optabs.c: Likewise.
38728 * passes.c: Likewise.
38729 * simplify-rtx.c: Likewise.
38730 * stmt.c: Likewise.
38731 * toplev.c: Likewise.
38732 * var-tracking.c: Likewise.
38733 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38734 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
38735 * lower-subreg.c: Likewise.
38736 * postreload-gcse.c: Likewise.
38738 * reginfo.c: Likewise.
38739 * store-motion.c: Likewise.
38740 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38741 fixed-value.h hashtab.h real.h stmt.h varasm.h.
38742 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38743 fixed-value.h hashtab.h statistics.h stmt.h.
38744 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38745 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
38746 * except.c: Likewise.
38747 * explow.c: Likewise.
38748 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38749 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
38751 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38752 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
38753 * tree-ssa-structalias.c: Likewise.
38754 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38755 fixed-value.h insn-config.h real.h statistics.h.
38756 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38757 fixed-value.h insn-config.h real.h statistics.h stmt.h.
38758 * bb-reorder.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 varasm.h.
38760 * cfgbuild.c: Likewise.
38761 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38762 fixed-value.h real.h rtl.h statistics.h stmt.h.
38763 * cfgrtl.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 varasm.h.
38765 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38766 fixed-value.h real.h statistics.h stmt.h.
38767 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38768 fixed-value.h real.h statistics.h stmt.h varasm.h.
38769 * cprop.c: Likewise.
38770 * modulo-sched.c: Likewise.
38771 * postreload.c: Likewise.
38772 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
38773 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
38774 statistics.h stmt.h varasm.h.
38775 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
38776 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38777 rtl.h statistics.h stmt.h varasm.h.
38778 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
38779 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
38781 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
38782 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
38784 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
38785 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
38787 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
38788 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
38789 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
38790 function.h real.h statistics.h stmt.h varasm.h.
38791 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
38792 insn-config.h real.h statistics.h stmt.h.
38793 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
38794 statistics.h stmt.h.
38795 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
38796 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
38797 statistics.h stmt.h varasm.h.
38798 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
38799 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
38800 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
38801 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
38802 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
38803 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
38804 statistics.h stmt.h varasm.h.
38805 * ipa-polymorphic-call.c: Likewise.
38806 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
38807 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38808 statistics.h stmt.h.
38809 * config/c6x/c6x.c: Likewise.
38810 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
38811 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38812 statistics.h stmt.h varasm.h.
38813 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
38814 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
38816 * ipa-split.c: Likewise.
38817 * tree-eh.c: Likewise.
38818 * tree-ssa-dce.c: Likewise.
38819 * tree-ssa-loop-niter.c: Likewise.
38820 * tree-vrp.c: Likewise.
38821 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
38822 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
38824 * config/nds32/nds32-fp-as-gp.c: Likewise.
38825 * config/nds32/nds32-intrinsic.c: Likewise.
38826 * config/nds32/nds32-isr.c: Likewise.
38827 * config/nds32/nds32-md-auxiliary.c: Likewise.
38828 * config/nds32/nds32-memory-manipulation.c: Likewise.
38829 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
38830 * config/nds32/nds32-predicates.c: Likewise.
38831 * config/nds32/nds32.c: Likewise.
38832 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
38833 fixed-value.h hashtab.h real.h statistics.h.
38834 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
38835 fixed-value.h hashtab.h real.h statistics.h stmt.h.
38836 * config/arm/arm.c: Likewise.
38837 * config/avr/avr.c: Likewise.
38838 * config/bfin/bfin.c: Likewise.
38839 * config/h8300/h8300.c: Likewise.
38840 * config/i386/i386.c: Likewise.
38841 * config/ia64/ia64.c: Likewise.
38842 * config/iq2000/iq2000.c: Likewise.
38843 * config/m32c/m32c.c: Likewise.
38844 * config/m32r/m32r.c: Likewise.
38845 * config/m68k/m68k.c: Likewise.
38846 * config/mcore/mcore.c: Likewise.
38847 * config/mep/mep.c: Likewise.
38848 * config/mips/mips.c: Likewise.
38849 * config/mn10300/mn10300.c: Likewise.
38850 * config/moxie/moxie.c: Likewise.
38851 * config/pa/pa.c: Likewise.
38852 * config/rl78/rl78.c: Likewise.
38853 * config/rx/rx.c: Likewise.
38854 * config/s390/s390.c: Likewise.
38855 * config/sh/sh.c: Likewise.
38856 * config/sparc/sparc.c: Likewise.
38857 * config/spu/spu.c: Likewise.
38858 * config/stormy16/stormy16.c: Likewise.
38859 * config/v850/v850.c: Likewise.
38860 * config/vax/vax.c: Likewise.
38861 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
38862 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
38863 * config/msp430/msp430.c: Likewise.
38864 * predict.c: Likewise.
38865 * value-prof.c: Likewise.
38866 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
38867 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
38868 * config/microblaze/microblaze.c: Likewise.
38869 * config/nios2/nios2.c: Likewise.
38870 * config/rs6000/rs6000.c: Likewise.
38871 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
38872 insn-config.h real.h rtl.h statistics.h stmt.h.
38873 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
38874 insn-config.h real.h statistics.h stmt.h.
38875 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
38876 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
38877 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
38878 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
38879 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
38880 fixed-value.h real.h statistics.h stmt.h.
38881 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
38882 fixed-value.h statistics.h stmt.h.
38883 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
38886 2015-01-15 Jakub Jelinek <jakub@redhat.com>
38888 * gengtype.c (create_user_defined_type): Workaround
38889 -Wmaybe-uninitialized false positives.
38890 * cse.c (fold_rtx): Likewise.
38891 * loop-invariant.c (gain_for_invariant): Likewise.
38893 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
38895 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
38896 set the memory attributes in all cases but clear MEM_EXPR if need be.
38898 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
38900 PR tree-optimization/64434
38901 * cfgexpand.c (reorder_operands): New function.
38902 (expand_gimple_basic_block): Insert call of reorder_operands if
38905 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
38907 * config/mips/micromips.md (*swp): Remove explicit parallel.
38908 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
38909 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
38910 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
38911 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
38912 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
38913 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
38914 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
38915 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
38916 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
38917 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
38918 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
38919 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
38920 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
38921 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
38922 (mips_wrdsp): Likewise.
38923 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
38925 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
38926 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
38927 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
38928 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
38929 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
38930 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
38931 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
38932 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
38933 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
38935 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
38937 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
38938 (mips_print_operand): Support 'y' to print exact log2 in decimal
38940 * config/mips/mips.h (ISA_HAS_LSA): New define.
38941 (ISA_HAS_DLSA): Likewise.
38942 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
38943 * config/mips/predicates.md (const_immlsa_operand): New predicate.
38945 2015-01-15 Martin Liska <mliska@suse.cz>
38948 * optc-save-gen.awk: Add support for array types.
38950 2015-01-15 Richard Biener <rguenther@suse.de>
38952 PR middle-end/64365
38953 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
38954 for MEM_REF access functions with the same base can never partially
38957 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
38959 * common.opt: New option -fstack-protector-explicit.
38960 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
38961 (stack_protect_decl_phase): Handle stack_protect attribute for
38962 explicit stack protection requests.
38963 (expand_used_vars): Similarly.
38964 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
38965 * doc/extend.texi: Add documentation for "stack_protect" attribute.
38966 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
38968 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
38971 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
38973 (sh_extending_set_of_reg): New struct.
38974 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
38975 sh_remove_reg_dead_or_unused_notes): New Declarations.
38976 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
38977 sh_find_extending_set_of_reg, sh_split_tst_subregs,
38978 sh_extending_set_of_reg::use_as_extended_reg): New functions.
38979 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
38980 convert to insn_and_split and use new function sh_split_tst_subregs.
38982 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
38984 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
38986 (Optimization Options): Move -fuse-ld documentation to...
38987 (Link Options): ...here.
38989 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
38991 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
38993 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
38994 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
38995 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
38996 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
38997 instead of ZR for the memory operand of LL/SC.
38998 (compare_and_swap_12, sync_add<mode>): Likewise.
38999 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
39000 (sync_new_<optab>_12, sync_nand_12): Likewise.
39001 (sync_old_nand_12, sync_new_nand_12): Likewise.
39002 (sync_sub<mode>, sync_old_add<mode>): Likewise.
39003 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
39004 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
39005 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
39006 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
39007 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
39008 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
39009 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
39010 * doc/md.texi (ZC): Update description.
39012 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
39014 * builtins.c (expand_builtin_atomic_exchange): Remove error when
39015 memory model is CONSUME.
39016 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
39017 expand_builtin_atomic_store): Change invalid memory model errors to
39019 (expand_builtin_atomic_clear): Change invalid model errors to warnings
39020 and issue warning for CONSUME.
39022 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
39024 * lto-cgraph: Update function comments for
39025 lto_symtab_encoder_encode_*.
39027 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
39029 * Makefile.in (site.exp): Do not set ENABLE_LTO.
39031 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
39033 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
39034 * lto-cgraph.c (select_what_to_stream): Remove argument, use
39035 lto_stream_offload_p instead.
39036 * lto-streamer.h (select_what_to_stream): Remove argument.
39037 * passes.c (ipa_write_summaries): Likewise.
39038 * tree-pass.h (ipa_write_summaries): Likewise.
39040 2015-01-14 Richard Biener <rguenther@suse.de>
39042 PR tree-optimization/59354
39043 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
39044 groups larger than the slp group size as having gaps.
39046 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
39048 PR middle-end/59448
39049 * builtins.c (get_memmodel): Promote consume to acquire always.
39051 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39054 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
39057 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39060 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
39062 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
39063 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
39064 AVX512VBMI, as it implies AVX512BW.
39066 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39069 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
39070 (vec_unpacks_hi_v16sf): Ditto.
39072 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39074 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
39077 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39079 * doc/invoke.texi (mapcs): Mention deprecation.
39080 (mapcs-frame): Likewise.
39082 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
39085 * config/arm/arm.c (callee_saved_reg_p): Define.
39086 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
39087 register is callee saved instead of !call_used_regs[reg].
39088 (thumb1_compute_save_reg_mask): Likewise.
39090 2015-01-14 Hale Wang <hale.wang@arm.com>
39092 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
39095 2015-01-14 Richard Biener <rguenther@suse.de>
39098 * tree-inline.c (insert_debug_decl_map): Check destination
39099 function MAY_HAVE_DEBUG_STMTS.
39100 (insert_init_debug_bind): Likewise.
39101 (insert_init_stmt): Remove redundant check.
39102 (remap_gimple_stmt): Drop debug stmts if the destination
39103 function has var-tracking assignments disabled.
39105 2015-01-14 Martin Liska <mliska@suse.cz>
39107 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
39108 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
39110 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39113 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
39114 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
39116 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
39118 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
39119 level from an ARCH; do not inject the default.
39120 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
39121 MIPS_ISA_LEVEL_SPEC.
39122 (MIPS_ISA_NAN2008_SPEC): Update comment.
39123 (BASE_DRIVER_SELF_SPECS): Likewise.
39124 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
39125 MIPS_DEFAULT_ISA_LEVEL_SPEC.
39126 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
39127 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
39128 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
39130 2015-01-14 Richard Biener <rguenther@suse.de>
39132 PR tree-optimization/64493
39133 PR tree-optimization/64495
39134 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
39135 assign the proper vectorized PHI to the inner loop exit PHIs.
39137 2015-01-14 Joey Ye <joey.ye@arm.com>
39139 * config/arm/arm.c (arm_compute_save_reg_mask):
39140 Do not save lr in case of tail call.
39141 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
39143 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
39145 * tree-vrp.c (check_array_ref): Emit more warnings
39146 for warn_array_bounds >= 2.
39147 * common.opt: New option -Warray-bounds=.
39148 * doc/invoke.texi: Document -Warray-bounds=.
39150 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
39152 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
39153 (mforbid-fp-as-gp): Remove.
39155 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
39156 (nds32_symbol_load_store_p): Remove.
39157 (nds32_fp_as_gp_check_available): Clean up implementation.
39158 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
39160 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
39161 fp-as-gp and ex9 cases.
39163 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
39165 * tree-profile.c (init_ic_make_global_vars): Drop workaround
39166 for bintuils bug 14342.
39167 (init_ic_make_global_vars): Likewise.
39168 (gimple_init_edge_profiler): Likewise.
39169 (gimple_gen_ic_func_profiler): Likewise.
39171 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
39173 * ipa-inline.c (inline_small_functions): Swap the operands in
39176 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
39179 * ipa-inline-analysis.c (node_growth_cache): Remove.
39180 (initialize_growth_caches): Do not initialize it.
39181 (free_growth_caches): Do not free it.
39182 (do_estimate_growth): Rename to ...
39183 (estimate_growth): ... this one; drop growth cache code.
39184 (growth_likely_positive): Always go the heuristics way.
39185 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
39186 (reset_edge_caches): Do not reset node growth.
39187 (heap_edge_removal_hook): Do not maintain cache.
39188 (inline_small_functions): Likewise; strenghten sanity check.
39189 (ipa_inline): Do not maintain caches.
39190 * ipa-inline.h (node_growth_cache): Remove.
39191 (do_estimate_growth): Remove to ...
39192 (estimate_growth): this one; remove inline version.
39193 (reset_node_growth_cache): Remove.
39195 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
39198 * ipa-inline.c (inline_small_functions): Update callee keys after
39199 resolving speculation
39200 (inline_small_functions): Always check monotonicity of the queue.
39202 2015-01-13 Marek Polacek <polacek@redhat.com>
39204 PR middle-end/64391
39205 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
39207 2015-01-13 Jakub Jelinek <jakub@redhat.com>
39209 PR rtl-optimization/64286
39210 * ree.c (combine_reaching_defs): Move part of comment earlier,
39211 remove !SCALAR_INT_MODE_P check.
39212 (add_removable_extension): Don't add vector mode
39213 extensions if all uses of the source register aren't the same
39216 2015-01-13 Renlin Li <renlin.li@arm.com>
39218 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
39219 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
39221 2015-01-13 Martin Liska <mliska@suse.cz>
39223 * ipa-icf.c (sem_function::equals_private): Call new functions
39224 cl_target_option_print_diff and cl_optimization_print_diff.
39225 * optc-save-gen.awk (cl_target_option_print_diff): New function.
39226 (cl_optimization_print_diff): Likewise.
39227 * opth-gen.awk: Likewise.
39229 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
39231 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
39232 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
39233 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
39234 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
39235 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
39236 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
39238 2015-01-13 Andrew Pinski <apinski@cavium.com>
39240 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
39241 instead of src mode.
39243 2015-01-13 Richard Biener <rguenther@suse.de>
39246 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
39249 2015-01-13 Andrew Pinski <apinski@cavium.com>
39251 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
39253 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
39255 2015-01-13 Jakub Jelinek <jakub@redhat.com>
39257 PR middle-end/63974
39258 * cfgexpand.c (expand_computed_goto): Don't call
39259 convert_memory_address here.
39261 2015-01-13 Richard Biener <rguenther@suse.de>
39263 PR tree-optimization/64406
39264 * tree-loop-distibution.c (pass_loop_distribution::execute):
39265 Reset the SCEV hashtable if we distributed anything.
39267 2015-01-13 Richard Biener <rguenther@suse.de>
39269 PR tree-optimization/64404
39270 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
39271 SLP types for CSEd loads.
39273 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
39275 PR tree-optimization/64436
39276 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
39277 merge of two symbolic numbers for a bitwise OR to ...
39278 (perform_symbolic_merge): This. Also fix computation of the range and
39279 end of the symbolic number corresponding to the result of a bitwise OR.
39281 2015-01-13 Richard Biener <rguenther@suse.de>
39283 PR tree-optimization/64568
39284 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
39285 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
39287 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39289 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
39290 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
39292 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39294 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
39295 target-specific symbol_ref flag.
39296 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
39297 resides in rodata section.
39298 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
39299 (nds32_encode_section_info): New function.
39301 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39303 * config/nds32/nds32.md (call): Use pseudo instruction bal which
39304 clobbers TA_REGNUM if large code model is specified.
39305 (call_register): Likewise.
39306 (call_immediate): Likewise.
39307 (call_value): Likewise.
39308 (call_value_register): Likewise.
39309 (call_value_immediate): Likewise.
39311 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39313 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
39314 (TARGET_CMODEL_MEDIUM): New macro.
39315 (TARGET_CMODEL_LARGE): New macro.
39316 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
39317 code model setting in assembly code.
39319 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39321 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
39322 Remove MASK_GP_DIRECT flag.
39323 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
39324 one of the multilib default options.
39325 * config/nds32/nds32.opt (mgp-direct): Remove.
39326 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
39327 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
39329 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39331 * config/nds32/nds32.opt (mcmodel): Add new option.
39332 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
39333 to describe code model.
39335 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
39338 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
39340 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
39342 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
39343 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
39344 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
39345 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
39346 __builtin_sh_set_fpscr.
39348 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
39350 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
39351 after a funtion name just to indicate it is a function.
39352 ([-fsanitize-undefined-trap-on-error]): Likewise.
39353 ([-fdbg-cnt=]): Likewise.
39354 ([-mmemcpy]): Likewise.
39355 ([-mflush-func]): Likewise.
39356 ([-msynci]): Likewise.
39358 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
39360 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
39363 2015-01-12 Jakub Jelinek <jakub@redhat.com>
39365 PR tree-optimization/64563
39366 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
39367 instead of != VR_VARYING.
39370 * config/i386/i386.c (ix86_expand_prologue): Add
39371 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
39373 PR tree-optimization/64454
39374 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
39375 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
39376 for signed or [0, op1 - 1] for unsigned modulo.
39377 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
39378 even if op1 does not satisfy integer_pow2p.
39381 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
39383 2015-01-12 Jeff Law <law@redhat.com>
39386 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
39387 (trunchiqi2, truncsihi2): Similarly.
39389 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
39390 rather than calling F.
39392 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
39394 * tsan.c (instrument_expr): Use force_gimple_operand.
39395 Use may_be_nonaddressable_p instead of is_gimple_addressable.
39397 2015-01-12 Richard Biener <rguenther@suse.de>
39399 PR tree-optimization/64530
39400 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
39403 2015-01-12 Richard Biener <rguenther@suse.de>
39405 PR middle-end/64357
39406 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
39409 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39411 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
39412 Cortex-A17 tuning parameters.
39413 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
39415 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39417 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
39418 * config/arm/arm.c (arm_macro_fusion_p): New function.
39419 (arm_macro_fusion_pair_p): Likewise.
39420 (TARGET_SCHED_MACRO_FUSION_P): Define.
39421 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
39422 (ARM_FUSE_NOTHING): Likewise.
39423 (ARM_FUSE_MOVW_MOVT): Likewise.
39424 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
39425 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
39426 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
39427 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
39428 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
39429 arm_cortex_a5_tune): Specify fuseable_ops value.
39431 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
39434 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
39435 test for PIE with copy reloc.
39436 * configure: Regenerated.
39438 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39440 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
39442 (arm_tls_descseq_addr): Likewise.
39443 (arm_gen_movmemqi): Likewise.
39444 (arm_expand_epilogue_apcs_frame): Likewise.
39445 (arm_expand_epilogue): Likewise.
39446 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
39449 2015-01-12 Martin Liska <mliska@suse.cz>
39452 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
39453 volatility for correct operands.
39455 2015-01-12 Martin Liska <mliska@suse.cz>
39457 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
39458 indication that a function is not leaf.
39459 (sem_function::compare_polymorphic_p): Likewise.
39461 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39463 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
39464 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
39465 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
39466 fold-const.h, tree-check.h.
39468 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
39472 * ipa-inline.c (compute_uninlined_call_time,
39473 compute_inlined_call_time): Use counts for extra precision when
39475 (big_speedup_p): Fix formating.
39476 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
39477 (relative_time_benefit): Remove.
39478 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
39479 merge guessed and read profile paths.
39480 (inline_small_functions): Count only !optimize_size functions into
39481 initial size; be more lax about sanity check when profile is used;
39482 be sure to update inlined function profile when profile is read.
39484 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
39487 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
39488 cost when edge becomes direct.
39489 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
39490 is resolved or when introducing new speculation.
39492 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
39496 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
39497 '||' to fix typo issue.
39499 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
39500 accept and return NULL.
39502 2015-01-12 Martin Liska <mliska@suse.cz>
39504 * cgraph.c (cgraph_edge::remove_callee): Move function to header
39505 file for being inlined.
39506 (cgraph_set_edge_callee): Delete.
39507 (cgraph_edge::redirect_callee): Move function to header file
39509 (cgraph_edge::make_direct): Use new function.
39510 (cgraph_edge::dump_edge_flags): New function created from
39511 static dump_edge_flags function.
39512 (cgraph_node::dump): Use new function.
39513 (cgraph_edge::verify_count_and_frequency): New function created
39514 from verify_edge_count_and_frequency.
39515 (cgraph_edge::verify_corresponds_to_fndecl): New function created
39516 from verify_edge_corresponds_to_fndecl.
39517 (verify_edge_corresponds_to_fndecl): Delete.
39518 (cgraph_node::verify_node): Use new function.
39519 * cgraph.h (cgraph_edge::set_callee): New function.
39520 (cgraph_edge::dump_edge_flags): Likewise.
39521 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
39523 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
39525 * ipa-utils.c (estimate_function_body_sizes): Do not
39526 free node params when called late with early=true.
39528 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
39530 * doc/md.texi (Instruction Patterns): Rewrite text for
39532 (Example): Likewise.
39534 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
39536 * doc/invoke.texi (Option Summary): Break long lines.
39537 [(-fdiagnostics-color)]: Put long literal in @smallexample
39539 [(-fsanitize-recover)]: Likewise.
39540 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
39541 [(-ffast-math)]: Likewise.
39542 [(--param max-inline-insns-recursive)]: Likewise.
39543 [(--param max-inline-recursive-depth)]: Likewise.
39544 [(-mno-text-section-literals)]: Likewise.
39546 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
39548 * doc/install.texi: Update for libgomp being renamed from "GNU
39549 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
39551 * doc/sourcebuild.texi: Likewise.
39553 2015-01-10 Anthony Green <green@moxielogic.com>
39555 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
39556 mul.x availability for moxiebox configuration.
39558 2015-01-09 Anthony Green <green@moxielogic.com>
39560 * config/moxie/moxie.md: Tabify assembly output.
39562 2015-01-09 Anthony Green <green@moxielogic.com>
39564 * config/moxie/moxie.md (CC_REG): Correct register definition.
39566 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
39568 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
39569 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
39572 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
39574 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
39576 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
39577 Jakub Jelinek <jakub@redhat.com>
39579 PR middle-end/64412
39580 * lto-streamer.h (lto_stream_offload_p): New declaration.
39581 * lto-streamer.c (lto_stream_offload_p): New variable.
39582 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
39583 at the same time as section_name_prefix.
39584 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
39585 if lto_stream_offload_p.
39586 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
39587 stream TREE_TARGET_OPTION if lto_stream_offload_p.
39588 (write_ts_function_decl_tree_pointers): Don't
39589 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
39590 * tree-streamer-in.c (unpack_value_fields): Don't stream
39591 TREE_TARGET_OPTION in if ACCEL_COMPILER.
39592 (lto_input_ts_function_decl_tree_pointers): Don't stream
39593 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
39594 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
39595 instead of section_name_prefix string comparisons.
39597 2015-01-09 Jakub Jelinek <jakub@redhat.com>
39599 PR rtl-optimization/64536
39600 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
39603 2015-01-09 Michael Collison <michael.collison@linaro.org>
39605 PR tree-optimization/64322
39606 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
39607 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
39609 2015-01-09 Tom de Vries <tom@codesourcery.com>
39611 PR rtl-optimization/64539
39612 * regcprop.c (kill_clobbered_values): Factor out of ...
39613 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
39614 instead of note_stores with kill_clobbered_value.
39616 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
39618 * ginclude/unwind-arm-common.h: Revert previous commit.
39620 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
39622 * config.gcc (arm*-*-freebsd*): New configuration.
39623 * config/arm/freebsd.h: New file.
39624 * config.host: Add extra components for arm*-*-freebsd*.
39625 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
39626 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
39628 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39630 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
39632 * config/rs6000/t-rtems: Add e6500 multilibs.
39634 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39636 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
39639 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39641 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
39642 MULTILIB_EXCEPTIONS.
39644 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39646 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
39647 MULTILIB_EXCEPTIONS.
39649 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39651 * config/arm/t-rtems-eabi: Rename to...
39652 * config/arm/t-rtems: ...this.
39653 * config/arm/rtems-eabi.h: Rename to...
39654 * config/arm/rtems.h: ...this.
39655 * config.gcc (arm*-*-rtems*): Reflect changes above.
39657 2015-01-09 Richard Biener <rguenther@suse.de>
39659 PR tree-optimization/64410
39660 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
39662 (execute_update_addresses_taken): Deal with that.
39663 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
39664 loads/stores for complex variables.
39666 2015-01-09 Martin Liska <mliska@suse.cz>
39668 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
39670 (func_checker::compare_memory_operand): New function.
39671 (func_checker::compare_operand): Split case to newly
39673 (func_checker::compare_cst_or_decl): New function.
39674 (func_checker::compare_gimple_call): Identify
39676 (func_checker::compare_gimple_assign): Likewise.
39677 * ipa-icf-gimple.h: New function.
39679 2015-01-09 Martin Liska <mliska@suse.cz>
39682 * sreal.c (sreal::dump): Change unsigned format to signed for
39684 (sreal::to_double): Replace exp2 with scalbln.
39686 2015-01-09 Martin Liska <mliska@suse.cz>
39688 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
39689 * ipa-icf.c (sem_function::equals_private): Add support for target and
39690 (sem_item_optimizer::merge_classes): Remove redundant function
39691 optimization flags comparison.
39692 * tree.h (target_opts_for_fn): New function.
39694 2015-01-09 Tom de Vries <tom@codesourcery.com>
39696 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
39698 2015-01-09 Kito Cheng <kito@0xlab.org>
39700 PR rtl-optimization/64348
39701 * lra-constraints.c (split_reg): Fix caller-save store/restore
39702 instruction generation.
39704 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
39706 PR gcov-profile/61790
39707 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
39708 long long. Fallback to int64_t if host doesn't have long long and
39709 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
39711 2015-01-08 Jakub Jelinek <jakub@redhat.com>
39713 PR tree-optimization/63989
39714 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
39715 from 1000 to 10000.
39716 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
39717 (get_stridx): If we don't have a record for certain SSA_NAME,
39718 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
39719 constant offset, call get_stridx_plus_constant.
39720 (get_stridx_plus_constant): New function.
39721 (zero_length_string): Don't use get_stridx here.
39724 PR middle-end/64388
39725 * dse.c (struct insn_info): Mention frame_read set also
39726 before reload for tail calls on some targets.
39727 (scan_insn): Revert 2014-12-22 change. Set frame_read
39728 also before reload for tail calls if
39729 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
39730 instead of add_non_frame_wild_read for non-const/memset
39731 tail calls after reload.
39733 2015-01-08 Jason Merrill <jason@redhat.com>
39735 * ubsan.c (do_ubsan_in_current_function): New.
39736 (pass_ubsan::gate): Use it.
39737 * ubsan.h: Declare it.
39738 * convert.c (convert_to_integer): Use it.
39740 2015-01-08 Jakub Jelinek <jakub@redhat.com>
39743 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
39744 compare_code when it is unconditionally overwritten afterwards.
39745 Use ix86_reverse_condition instead of reverse_condition. Don't
39746 change code if *reverse_condition* returned UNKNOWN and don't
39747 swap ct/cf and negate diff in that case.
39749 2015-01-08 Mike Stump <mikestump@comcast.net>
39751 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
39752 (pass_tsan_O0::gate): Likewise.
39753 * extend.texi (Function Attributes): Add no_sanitize_thread
39756 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
39758 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
39759 for registering builtins.
39760 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
39761 add -fopenmp to the argv_obstack used when invoking
39762 compile_for_target.
39764 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
39765 add "-m32" or "-m64" to argv_obstack.
39766 (generate_host_descr_file): Likewise, when invoking host_compiler.
39767 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
39770 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
39772 * config/sh/sh-mem.cc: Use constant as second operand when emitting
39775 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
39778 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
39779 constant load if constant operand fits into I08.
39781 2015-01-08 Jakub Jelinek <jakub@redhat.com>
39784 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
39785 and TREE_THIS_VOLATILE for MEM_REFs.
39786 (build5_stat): Fix up initialization of TREE_READONLY and
39787 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
39789 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
39792 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
39793 of r for the second alternative of the destination operand.
39795 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
39798 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
39800 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
39802 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
39804 ([-fivar-visibility], [-fvisibility]): Likewise.
39806 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
39808 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
39809 the file where @code, @command, etc is more appropriate.
39811 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
39813 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
39814 of -mrecip= documentation.
39816 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
39819 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
39820 correct reload handler if -m32 -mpowerpc64 is used.
39822 2015-01-06 Tom de Vries <tom@codesourcery.com>
39824 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
39826 2015-01-08 Christian Bruel <christian.bruel@st.com>
39829 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
39831 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
39833 PR tree-optimization/63259
39834 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
39835 if optab exists for 16bit byteswap.
39837 2015-01-06 Jakub Jelinek <jakub@redhat.com>
39839 * opts.c (common_handle_option): Add support for
39840 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
39841 * doc/invoke.texi: Document -fno-sanitize=all,
39842 -f{,no-}sanitize-recover=all. Document that
39843 -fsanitize=float-cast-overflow is not enabled
39844 by -fsanitize=undefined. Fix up documentation
39845 of -f{,no-}sanitize-recover.
39847 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
39849 * config.gcc: Add Visium support.
39850 * configure.ac: Likewise.
39851 * configure: Regenerate.
39852 * doc/extend.texi (interrupt attribute): Add Visium.
39853 * doc/invoke.texi: Document Visium options.
39854 * doc/install.texi: Document Visium target.
39855 * doc/md.texi: Document Visium constraints.
39856 * common/config/visium: New directory.
39857 * config/visium: Likewise.
39859 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
39861 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
39862 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
39864 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
39866 * combine.c (combine_validate_cost): Do not count the cost of a
39867 split I2 twice. Do not display it twice in the dump, either.
39869 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
39871 Revert parts of r219199.
39872 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
39874 ([-Wtraditional]): Restore markup on <limits.h>.
39876 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
39879 * doc/invoke.texi: Document -Wsuggest-override.
39881 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
39883 PR rtl-optimization/64287
39884 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
39885 (process_options): Disable flag_ipa_ra if profiling.
39887 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
39889 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
39891 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
39893 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
39894 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
39895 put under #if TARGET_LOOPS guard.
39897 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
39899 * config/i386/i386.c (output_387_binary_op): Use std::swap.
39901 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
39903 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
39904 * rtl.h (refers_to_regno_p): Add overload.
39906 * bt-load.c: Likewise.
39907 * combine.c: Likewise.
39908 * df-scan.c: Likewise.
39909 * sched-deps.c: Likewise.
39910 * config/s390/s390.c: Likewise.
39911 * config/m32r/m32r.c: Likewise.
39912 * config/rs6000/spe.md: Likewise.
39913 * config/rs6000/rs6000.c: Likewise.
39914 * config/pa/pa.c: Likewise.
39915 * config/stormy16/stormy16.c: Likewise.
39916 * config/cris/cris.c: Likewise.
39917 * config/arc/arc.md: Likewise.
39918 * config/arc/arc.c: Likewise.
39919 * config/sh/sh.md: Likewise.
39920 * config/sh/sh.c: Likewise.
39921 * config/frv/frv.c: Likewise.
39923 2015-01-05 Jakub Jelinek <jakub@redhat.com>
39926 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
39927 call as cleanup of the whole body.
39928 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
39929 * tsan.c (replace_func_exit): New function.
39930 (instrument_func_exit): Moved earlier.
39931 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
39932 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
39934 (tsan_pass): Don't call instrument_func_exit.
39935 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
39936 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
39940 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
39941 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
39942 it to libubsan handler instead of EXPR. Fold comparisons earlier,
39943 if the result is integer_zerop, return NULL_TREE.
39944 * convert.c (convert_to_integer): Pass expr as ARG.
39946 PR tree-optimization/64465
39947 * tree-inline.c (redirect_all_calls): During inlining
39948 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
39949 changed the stmt to a non-throwing call.
39951 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
39953 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
39954 etc markup throughout the file.
39956 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
39958 Enable experimental TSAN support for Ada.
39959 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
39961 2015-01-05 Jakub Jelinek <jakub@redhat.com>
39963 PR tree-optimization/64494
39964 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
39965 clear SSA_NAME_ANTI_RANGE_P flag.
39967 2015-01-05 Marek Polacek <polacek@redhat.com>
39969 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
39971 2015-01-05 Jakub Jelinek <jakub@redhat.com>
39973 Update copyright years.
39975 * gcc.c (process_command): Update copyright notice dates.
39976 * gcov-dump.c: Ditto.
39978 * doc/cpp.texi: Bump @copying's copyright year.
39979 * doc/cppinternals.texi: Ditto.
39980 * doc/gcc.texi: Ditto.
39981 * doc/gccint.texi: Ditto.
39982 * doc/gcov.texi: Ditto.
39983 * doc/install.texi: Ditto.
39984 * doc/invoke.texi: Ditto.
39986 * auto-profile.c, auto-profile.h: Fix up Copyright line.
39988 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
39990 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
39992 ([-fvtable-verify], [-fvtv-debug]): Likewise.
39993 ([-Wabi]): Likewise.
39994 ([-fmessage-length]): Likewise.
39995 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
39996 ([-Wno-discarded-qualifiers]): Likewise.
39997 ([-Wnodiscarded-array-qualifiers]): Likewise.
39998 ([-Wno-virtual-move-assign]): Likewise.
39999 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
40000 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
40001 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
40002 ([-fsanitize-undefined-trap-on-error]): Likewise.
40003 ([-floop-interchange]): Likewise.
40004 ([-ftree-coalesce-inlined-vars]): Likewise.
40005 ([-fvect-cost-model]): Likewise.
40006 ([-flto]): Likewise.
40007 ([--param]): Likewise.
40008 (Spec Files): Likewise.
40009 ([-mstrict-align]): Likewise.
40010 ([-mfix-cortex-a53-835769]): Likewise.
40011 ([-march], [-mtune]): Likewise.
40012 ([-mpic-register]): Likewise.
40013 ([-munaligned-access]): Likewise.
40014 ([-msp8]): Likewise.
40015 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
40016 (AVR Built-in Macros): Likewise.
40017 ([-mpreferred-stack-boundary]): Likewise.
40018 ([-mtune-crtl]): Likewise.
40019 ([-mashf]): Likewise.
40020 ([-mmcu=]): Likewise.
40021 ([-minrt]): Likewise.
40022 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
40023 ([-mupper-regs]): Likewise.
40024 ([-matomic-model]): Likewise.
40025 ([-mdiv]): Likewise.
40026 ([-mzdcbranch]): Likewise.
40027 ([-mdisable-callt]): Likewise.
40028 ([-msoft-float]): Likewise.
40029 ([-m8byte-align]): Likewise.
40030 ([-fstack-reuse]): Likewise.
40032 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40034 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
40035 Fix markup, light copy-editing.
40036 ([-fauto-profile]): Rewrite to fix formatting and content
40039 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40041 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
40042 Copy-edit description.
40043 ([-fisolate-erroneous-paths-attribute]): Likewise.
40044 * common.opt (fisolate-erroneous-paths-dereference):
40045 Copy-edit description.
40046 (fisolate-erroneous-paths-attribute): Likewise.
40048 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40050 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
40053 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40055 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
40056 ([-fvtv-debug]): Likewise.
40057 ([-Wc++-compat]): Likewise.
40058 ([-Wc++11-compat]): Likewise.
40059 ([-Wc++14-compat]): Likewise.
40060 ([-Wno-sized-deallocation]): Likewise.
40061 ([-femit-class-debug-always]): Likewise.
40062 ([-femit-struct-debug-detailed]): Likewise.
40063 ([-fno-keep-inline-dllexport]): Likewise.
40064 ([-fira-algorithm]): Likewise.
40065 ([-fira-region]): Likewise.
40066 ([-flra-remat]): Likewise.
40067 ([-fipa-ra]): Likewise.
40068 ([-fhoist-adjacent-loads]): Likewise.
40069 ([-fisolate-erroneous-paths-dereference]): Likewise.
40070 ([-fisolate-erroneous-paths-attribute]): Likewise.
40071 ([-ftree-switch-conversion]): Likewise.
40072 ([-ftree-tail-merge]): Likewise.
40073 ([-ftree-loop-if-convert]): Likewise.
40074 ([-ftree-loop-if-convert-stores]): Likewise.
40075 ([-ftree-loop-distribution]): Likewise.
40076 ([-ftree-loop-distribute-patterns]): Likewise.
40077 ([-flto-compression-level]): Likewise.
40078 ([-flto-report]): Likewise.
40079 ([-flto-report-wpa]): Likewise.
40080 ([-fuse-linker-plugin]): Likewise.
40081 ([-mfix-cortex-a53-835769]): Likewise.
40082 ([-mno-fix-cortex-a53-835769]): Likewise.
40083 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
40084 explicit listing; add a note to the discussion indicating they
40085 exist. Reorder table to group similar options. Add missing
40086 @opindex entries. Add @need commands throughout the table to
40087 allow it to be split across multiple pages.
40088 ([-m8bit-idiv]): Fix @opindex.
40089 ([-mavx256-split-unaligned-load]): Likewise.
40090 ([-mavx256-split-unaligned-store]): Likewise.
40091 ([-mstack-protector-guard]): Likewise.
40092 ([-mcpu=]): Likewise.
40093 ([-mcpu]): Likewise.
40094 ([-mpointer-size=]): Likewise.
40096 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
40098 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
40099 instead of `m' constraint. Likewise for unnamed movb comparison
40100 patterns using reg_before_reload_operand predicate.
40101 * config/pa/predicates.md (reg_before_reload_operand): Tighten
40102 predicate to reject register index and LO_SUM DLT memory forms
40105 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
40107 * doc/invoke.texi (Option Summary): Fix spelling of
40108 -fdevirtualize-at-ltrans.
40109 ([-fdevirtualize]): Fix markup.
40110 ([-fdevirtualize-speculatively]): Fix typo.
40111 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
40112 implementor-speaky.
40113 * common.opt (fdevirtualize-at-ltrans): Likewise.
40114 * ipa-devirt.c: Fix typos in comments throughout the file.
40115 (ipa_devirt): Fix typos in format strings for dump output.
40117 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
40119 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
40120 discussion of defaults, light copy-editing.
40122 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
40124 * tsan.c (instrument_expr): corrected previous checkin.
40126 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
40128 Instrument bit field and unaligned accesses for TSAN.
40129 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
40130 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
40131 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
40132 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
40133 unaligned memory regions.
40135 2015-01-01 Anthony Green <green@moxielogic.com>
40137 * config/moxie/predicates.md (moxie_general_movsrc_operand):
40138 Restrict move source register offsets to 16 bits.
40140 Copyright (C) 2015 Free Software Foundation, Inc.
40142 Copying and distribution of this file, with or without modification,
40143 are permitted in any medium without royalty provided the copyright
40144 notice and this notice are preserved.