1 2015-09-03 Martin Sebor <msebor@redhat.com>
4 * doc/extend.texi (Other Builtins): Document when the address
5 of a built-in function can be taken.
7 2015-09-03 Richard Biener <rguenther@suse.de>
9 * dwarf2out.c (flush_limbo_die_list): Split out from ...
10 (dwarf2out_early_finish): ... here.
11 (dwarf2out_finish): Do not call dwarf2out_early_finish but
12 flush_limbo_die_list. Assert we have no deferred asm names.
14 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16 * optabs.c (expand_binop): Don't create a broadcast vector with a
17 source element wider than the inner mode.
19 2015-09-03 Richard Biener <rguenther@suse.de>
21 * varasm.c (output_constant): Use fold_convert instead of
24 2015-09-03 Tom de Vries <tom@codesourcery.com>
26 PR tree-optimization/65637
27 * omp-low.c (expand_omp_for_static_chunk): Handle case that fin_bb has 2
30 2015-09-03 Tom de Vries <tom@codesourcery.com>
32 PR tree-optimization/65637
33 * omp-low.c (find_phi_with_arg_on_edge): New function.
34 (expand_omp_for_static_chunk): Fix inner loop phi.
36 2015-09-03 Tom de Vries <tom@codesourcery.com>
38 PR tree-optimization/65637
39 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
42 2015-09-03 Tom de Vries <tom@codesourcery.com>
44 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
46 2015-09-03 Tom de Vries <tom@codesourcery.com>
48 * doc/invoke.texi (parloops-chunk-size): Add item.
49 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
50 * tree-parloops.c: Include params.h.
51 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
52 param parloops-chunk-size is used.
54 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
57 * fold-const.c (fold_binary_loc) : Move
58 Transform (x >> c) << c into x & (-1<<c) or
59 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
60 types using simplify and match.
61 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
62 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
64 2015-09-03 Richard Biener <rguenther@suse.de>
67 * tree-ssa-structalias.c (ctor_for_analysis): New function.
68 (create_variable_info_for_1): Use ctor_for_analysis instead
70 (create_variable_info_for): Likewise.
72 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
74 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
75 in new callgraph edge.
77 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
82 * config/aarch64/aarch64-simd.md
83 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
84 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
85 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
86 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
88 2015-09-02 Alan Modra <amodra@gmail.com>
90 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
91 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
92 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
94 2015-09-02 Alan Modra <amodra@gmail.com>
97 * config/rs6000/predicates.md (current_file_function_operand): Don't
98 return true for weak symbols.
99 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
101 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
102 Andrew Bennett <andrew.bennett@imgtec.com>
104 * config/mips/mips-opts.h (mips_cb_setting): New enum.
105 * config/mips/mips-protos.h: Add definitions for
106 mips_output_jump and mips_output_equal_conditional_branch
107 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
109 (mips_emit_compare): Add support for the MIPS R6 conditional
111 (mips_process_sync_loop): Likewise.
112 (mips_output_order_conditional_branch): Likewise.
113 (mips16_build_call_stub): Change MIPS_CALL to
115 (mips_print_operand_punctuation): Update 's' case to only
116 apply to micromips r2.
117 (mips_adjust_insn_length): Add support for forbidden slot
119 (mips_avoid_hazard): Likewise.
120 (mips_reorg_process_insns): Likewise.
121 (mips_output_jump): New function.
122 (mips_output_equal_conditional_branch): Likewise.
123 (mips_output_conditional_branch): Use jrc/bc if compact
124 branch support is enabled. Ensure the forbidden slots
125 between the two branch instructions is filled with a nop.
126 (mips_option_override): Add support to process the compact
127 branch option and set the correct defaults. Prevent
128 non-explict relocs being using for MIPS R6.
129 (mips_trampoline_init): Add compact branch support.
130 (mips_mult_zero_zero_cost): Allow zero initialisation of
131 accumulators with TARGET_DSP.
132 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
133 (TARGET_CB_MAYBE): New define.
134 (TARGET_CB_ALWAYS): New define.
135 (ISA_HAS_DELAY_SLOTS): New define.
136 (ISA_HAS_COMPACT_BRANCHES): New define.
137 (ISA_HAS_JRC): New define.
138 (MIPS_BRANCH_C): New define.
139 (MIPS_CALL): Removed.
140 (MICROMIPS_J): Removed.
141 * config/mips/mips.md (compact_form): New attr.
142 (hazard): Add support for forbidden slots.
143 (define_delay): Add support for compact branches.
144 (*branch_order<mode>): Likewise.
145 (*branch_order<mode>_inverted): Likewise.
146 (*branch_equality<mode>): Likewise.
147 (*branch_equality<mode>_inverted): Likewise.
148 (*jump_absolute): Likewise.
149 (*jump_pic): Likewise.
150 (indirect_jump): Use mips_output_jump to produce assembly output.
151 (tablejump_<mode>"): Likewise.
152 (*<optab>"): Likewise.
153 (<optab>_internal): Likewise.
154 (sibcall_internal): Likewise.
155 (sibcall_value_internal): Likewise.
156 (sibcall_value_multiple_internal): Likewise.
157 (call_internal): Likewise.
158 (call_split): Likewise.
159 (call_internal_direct): Likewise.
160 (call_direct_split): Likewise.
161 (call_value_internal): Likewise.
162 (call_value_split): Likewise.
163 (call_value_internal_direct): Likewise.
164 (call_value_direct_split): Likewise.
165 (call_value_multiple_internal): Likewise.
166 (call_value_multiple_split): Likewise.
167 (mips_get_fcsr_mips16_<mode>): Likewise.
168 (mips_set_fcsr_mips16_<mode>): Likewise.
169 (tls_get_tp_mips16_<mode>): Likewise.
170 * config/mips/mips.opt: Add -mcompact-branches option.
171 * config/mips/predicates.md (order_operator): Ensure the
172 conditional compact branches are only used if the ISA them.
173 * doc/invoke.texi: Document -mcompact-branches option.
175 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
178 * lra-lives.c (process_bb_lives): Process move pseudos with the
179 same value for copies and preferences
180 * lra-constraints.c (match_reload): Create match reload pseudo
181 with the same value from single dying input pseudo.
183 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
186 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
188 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
190 * trans-mem.c: Add contributed-by.
193 2015-09-01 Richard Biener <rguenther@suse.de>
195 * expr.c (expand_expr_real_1): For expanding TERed defs
196 set the current location to that of the def if not UNKNOWN.
198 2015-09-01 David Sherwood <david.sherwood@arm.com>
200 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
202 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
204 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
205 then_cost, else_cost fields. Change branch_cost field to unsigned
207 (end_ifcvt_sequence): Call set_used_flags on each insn in the
210 (noce_simple_bbs): New function.
211 (noce_try_move): Bail if basic blocks are not simple.
212 (noce_try_store_flag): Likewise.
213 (noce_try_store_flag_constants): Likewise.
214 (noce_try_addcc): Likewise.
215 (noce_try_store_flag_mask): Likewise.
216 (noce_try_cmove): Likewise.
217 (noce_try_minmax): Likewise.
218 (noce_try_abs): Likewise.
219 (noce_try_sign_mask): Likewise.
220 (noce_try_bitop): Likewise.
221 (bbs_ok_for_cmove_arith): New function.
222 (noce_emit_all_but_last): Likewise.
223 (noce_emit_insn): Likewise.
224 (noce_emit_bb): Likewise.
225 (noce_try_cmove_arith): Handle non-simple basic blocks.
226 (insn_valid_noce_process_p): New function.
227 (contains_mem_rtx_p): Likewise.
228 (bb_valid_for_noce_process_p): Likewise.
229 (noce_process_if_block): Allow non-simple basic blocks
232 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
234 * tree-ssa-dom.c (record_equivalences_from_phis,
235 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
236 (lookup_avail_expr): Likewise, and remove comment and unused temp.
238 2015-09-01 Nick Clifton <nickc@redhat.com>
240 * config/msp430/msp430.opt (mcpu): Fix typo.
242 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
244 * config/aarch64/aarch64.c (aarch64_set_current_function):
245 Re-layout any vector parameters have non-simd layout.
246 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
248 (aarch64_simd_expand_args): Delete call to the above.
250 2015-08-31 Mike Frysinger <vapier@gentoo.org>
252 * doc/invoke.texi (asan-stack): Add space before option.
254 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
256 * tree.h (zerop): New function.
257 * tree.c (zerop): Likewise.
258 (element_precision): Handle expressions.
259 * match.pd (define_predicates): Add zerop.
260 (x <= +Inf): Fix comment.
261 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
262 * fold-const.c (fold_binary_loc): ... here. Remove.
264 2015-08-31 Richard Biener <rguenther@suse.de>
267 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
269 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
271 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
272 (CEXPI): New operator list.
273 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
274 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
276 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
278 2015-08-31 Tom de Vries <tom@codesourcery.com>
280 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
281 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
283 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
284 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
285 (rewrite_into_loop_closed_ssa): ... here.
286 (replace_uses_in_dominated_bbs): Remove function.
287 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
288 rewrite_into_loop_closed_ssa_1.
290 2015-08-31 Michael Matz <matz@suse.de>
292 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
293 enter entry and exit blocks for reverse post order.
295 2015-08-31 Richard Biener <rguenther@suse.de>
297 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
298 (lto_location_cache::current_sysp): Likewise.
299 (output_block::current_sysp): Likewise.
300 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
301 (lto_location_cache::apply_location_cache): Properly record
302 system header locations.
303 (lto_location_cache::input_location): Input whether a file
305 * lto-streamer-out.c (lto_output_location): Stream whether a file
308 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
311 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
313 2015-08-31 Tom de Vries <tom@codesourcery.com>
315 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
316 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
317 Improve function header comments.
319 2015-08-30 Michael Collison <michael.collison@linaro.org>
322 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
325 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
327 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
328 special_handling bitfield.
329 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
330 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
331 that represents a general xxpermdi.
332 (insn_is_swappable_p): Add handling for vec_concat of two
333 doublewords, which maps to a specific xxpermdi.
334 (adjust_xxpermdi): New function.
335 (adjust_concat): Likewise.
336 (handle_special_swappables): Call adjust_xxpermdi and
338 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
340 2015-08-30 Rich Felker <dalias@libc.org>
342 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
343 case instead of sh[123456ble]-*-*.
345 2015-08-29 Anatoly Sokolov <aesok@post.ru>
347 * ira.c (print_unform_and_important_classes,
348 print_translated_classes): Remove reg_class_names static array.
349 (print_unform_and_important_classes): Rename to ...
350 (print_uniform_and_important_classes): ... this.
351 (ira_debug_allocno_classes): Update accordingly.
353 2015-08-29 Tom de Vries <tom@codesourcery.com>
355 PR tree-optimization/46193
356 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
359 2015-08-28 Jeff Law <law@redhat.com>
362 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
363 unable to find X NE 0 in the tables, return X as the simplified
365 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
366 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
368 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
369 after removing the control flow statement and unnecessary edges.
371 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
374 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
375 PR tree-optimization/67283
376 * tree-sra.c (type_consists_of_records_p): Rename to...
377 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
379 (completely_scalarize_record): Rename to...
380 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
382 (scalarize_elem): New.
384 2015-08-28 Jiong Wang <jiong.wang@arm.com>
386 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
387 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
388 (aarch64_symbol_type): Likewise.
389 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
391 (aarch64_expand_mov_immediate): Likewise.
392 (aarch64_print_operand): Likewise.
393 (aarch64_classify_tls_symbol): Likewise.
395 2015-08-28 Richard Biener <rguenther@suse.de>
397 * cgraphunit.c (symbol_table::compile): Move early debug generation
399 (symbol_table::finalize_compilation_unit): ... back here and
400 add a !seen_error () guard.
402 2015-08-27 Sebastian Pop <s.pop@samsung.com>
404 * toplev.c (process_options): Do not use flag_loop_block,
405 flag_loop_interchange, and flag_loop_strip_mine. Add check for
406 flag_loop_optimize_isl.
408 2015-08-27 Sebastian Pop <s.pop@samsung.com>
410 * Makefile.in (OBJS): Remove graphite-blocking.o and
411 graphite-interchange.o.
412 * common.opt (floop-strip-mine, floop-interchange, floop-block):
413 Alias of floop-nest-optimize.
414 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
415 Document as alias of -floop-nest-optimize.
416 * graphite-blocking.c: Remove.
417 * graphite-interchange.c: Remove.
418 * graphite-optimize-isl.c: Include dumpfile.h.
419 (getScheduleForBand): Add dump for tiled loops. Use
420 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
421 * graphite-poly.c (scop_max_loop_depth): Remove.
422 (print_scattering_function_1): Remove.
423 (print_scattering_function): Remove.
424 (print_scattering_functions): Remove.
425 (debug_scattering_function): Remove.
426 (debug_scattering_functions): Remove.
427 (apply_poly_transforms): Remove use of flag_loop_block,
428 flag_loop_strip_mine, and flag_loop_interchange.
429 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
431 (print_pdr_access_layout): Remove.
432 (print_pdr): Print ISL representation.
433 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
434 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
436 (openscop_print_pbb_domain): Remove.
437 (print_pbb): Remove call to print_scattering_function.
438 (openscop_print_scop_context): Remove.
439 (print_scop_context): Do not print matrices anymore.
440 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
441 SCOP_TRANSFORMED_SCHEDULE.
442 (print_isl_set): Add printing of a new line.
443 (print_isl_map): Same.
444 (print_isl_aff): Same.
445 (print_isl_constraint): Same.
446 (loop_to_lst): Remove.
447 (scop_to_lst): Remove.
448 (lst_indent_to): Remove.
453 (reverse_loop_at_level): Remove.
454 (reverse_loop_for_pbbs): Remove.
455 * graphite-poly.h (pdr_dim_iter_domain): Remove.
456 (pdr_nb_params): Remove.
457 (pdr_alias_set_dim): Remove.
458 (pdr_subscript_dim): Remove.
459 (pdr_iterator_dim): Remove.
460 (pdr_parameter_dim): Remove.
461 (same_pdr_p): Remove.
462 (struct poly_scattering): Remove.
463 (struct poly_bb): Remove _original, _transformed, _saved.
464 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
465 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
466 (PBB_NB_LOCAL_VARIABLES): Remove.
467 (PBB_NB_SCATTERING_TRANSFORM): Remove.
468 (schedule_to_scattering): Remove.
469 (number_of_write_pdrs): Remove.
470 (pbb_dim_iter_domain): Remove.
471 (pbb_nb_params): Remove.
472 (pbb_nb_scattering_orig): Remove.
473 (pbb_nb_scattering_transform): Remove.
474 (pbb_nb_dynamic_scattering_transform): Remove.
475 (pbb_nb_local_vars): Remove.
476 (pbb_iterator_dim): Remove.
477 (pbb_parameter_dim): Remove.
478 (psco_scattering_dim): Remove.
479 (psct_scattering_dim): Remove.
480 (psct_local_var_dim): Remove.
481 (psco_iterator_dim): Remove.
482 (psct_iterator_dim): Remove.
483 (psco_parameter_dim): Remove.
484 (psct_parameter_dim): Remove.
485 (psct_dynamic_dim): Remove.
486 (psct_static_dim): Remove.
487 (psct_add_local_variable): Remove.
488 (new_lst_loop): Remove.
489 (new_lst_stmt): Remove.
492 (lst_add_loop_under_loop): Remove.
494 (lst_dewey_number): Remove.
495 (lst_dewey_number_at_depth): Remove.
498 (lst_find_pbb): Remove.
499 (find_lst_loop): Remove.
500 (lst_find_first_pbb): Remove.
501 (lst_empty_p): Remove.
502 (lst_find_last_pbb): Remove.
503 (lst_contains_p): Remove.
504 (lst_contains_pbb): Remove.
505 (lst_create_nest): Remove.
506 (lst_remove_from_sequence): Remove.
507 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
508 (lst_niter_for_loop): Remove.
509 (pbb_update_scattering): Remove.
510 (lst_update_scattering_under): Remove.
511 (lst_update_scattering): Remove.
512 (lst_insert_in_sequence): Remove.
513 (lst_replace): Remove.
514 (lst_substitute_3): Remove.
515 (lst_distribute_lst): Remove.
516 (lst_remove_all_before_including_pbb): Remove.
517 (lst_remove_all_before_excluding_pbb): Remove.
518 (struct scop): Remove original_schedule, transformed_schedule, and
520 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
521 (SCOP_SAVED_SCHEDULE): Remove.
522 (poly_scattering_new): Remove.
523 (poly_scattering_free): Remove.
524 (poly_scattering_copy): Remove.
525 (store_scattering_pbb): Remove.
526 (store_lst_schedule): Remove.
527 (restore_lst_schedule): Remove.
528 (store_scattering): Remove.
529 (restore_scattering_pbb): Remove.
530 (restore_scattering): Remove.
531 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
532 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
533 compute the scattering polyhedron dimension from the dimension of
535 (build_scop_scattering): Update call to
536 build_pbb_scattering_polyhedrons.
537 (build_poly_scop): Remove call to scop_to_lst.
538 * graphite.c (graphite_transform_loops): Add call to print_scop.
539 (gate_graphite_transforms): Remove use of flag_loop_block,
540 flag_loop_interchange, and flag_loop_strip_mine.
542 2015-08-27 Sebastian Pop <s.pop@samsung.com>
544 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
545 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
546 -floop-nest-optimize.
547 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
548 (generate_luj_sepclass): Remove.
549 (generate_luj_options): Remove.
550 (set_options): Remove opt_luj.
551 (scop_to_isl_ast): Remove opt_luj.
552 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
553 flag_loop_unroll_jam.
554 (getPrevectorMap_full): Remove.
555 (getScheduleForBandList): Remove map_sepcl.
556 (getScheduleMap): Same.
557 (apply_schedule_map_to_scop): Remove sepcl.
558 (optimize_isl): Same.
559 * graphite-poly.c (apply_poly_transforms): Remove check for
560 flag_loop_unroll_jam.
561 (new_poly_bb): Remove map_sepclass.
562 * graphite-poly.h (struct poly_bb): Same.
563 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
564 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
565 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
566 * toplev.c (process_options): Remove flag_loop_unroll_jam.
568 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
571 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
573 (UNSPEC_ADD_CARRY): Remove.
574 (addqi3_cconly_overflow): New expander.
575 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
576 Adjust for changed add<mode>3_carry.
577 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
578 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
579 (<plusminus_insn><mode>3_carry): Remove expander.
580 (*<plusminus_insn><mode>3_carry): Split insn pattern to
581 add<mode>3_carry and sub<mode>3_carry.
582 (plusminus_carry_mnemonic): Remove code attribute.
583 (add<mode>3_carry): Canonicalize insn pattern.
584 (*addsi3_carry_zext): Ditto.
585 (sub<mode>3_carry): Ditto.
586 (*subsi3_carry_zext): Ditto.
587 (adcx<mode>3): Remove insn pattern.
588 (addcarry<mode>): New insn pattern.
589 (subborrow<mode>): Ditto.
590 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
591 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
592 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
593 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
594 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
595 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
596 Rewrite expander to not clobber carry flag chains.
598 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
600 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
603 2015-08-27 Marek Polacek <polacek@redhat.com>
606 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
607 an entry into an irreducible region.
609 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
611 * configure: Regenerate.
613 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
615 PR tree-optimization/67283
616 * tree-sra.c (type_consists_of_records_p): Rename to...
617 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
619 (completely_scalarize_record): Rename to...
620 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
621 (scalarize_elem): New.
623 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
625 * tree-sra.c (completely_scalarize_var): Rename to...
626 (create_total_scalarization_access): ... Here. Drop call to
627 completely_scalarize_record.
629 (analyze_all_variable_accesses): Replace completely_scalarize_var
630 with create_total_scalarization_access and completely_scalarize_record.
632 2015-08-27 Alan Modra <amodra@gmail.com>
635 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
638 2015-08-27 Richard Biener <rguenther@suse.de>
640 * passes.c (rest_of_decl_compilation): Guard early_global_decl
641 call with !seen_error ().
642 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
643 early debug generation and finish...
644 (symbol_table::compile): ... here to put it after a !seen_error ()
647 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
649 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
652 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
653 Andre Vieira <andre.simoesdiasvieira@arm.com>
655 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
656 (*cb<optab><mode>1): Likewise.
657 (*tb<optab><mode>1): Likewise.
658 (*cb<optab><mode>1): Likewise.
659 * config/aarch64/iterators.md (inv_cb): New code attribute.
661 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
662 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
664 2015-08-27 Richard Biener <rguenther@suse.de>
666 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
668 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
670 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
673 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
675 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
678 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
680 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
681 floating point in VSX registers.
682 (rs6000_output_move_128bit): Always print out the set insn if we
683 can't generate an appropriate 128-bit move.
684 (rs6000_generate_compare): Add support for IEEE 128-bit floating
685 point in VSX registers comparisons.
686 (rs6000_expand_float128_convert): Likewise.
688 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
689 predicate for only GPR hard registers.
691 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
692 modes to iterators. Add new iterators for moving 128-bit values in
693 scalar FPR registers and VSX registers.
694 (FMOVE128): Likewise.
695 (FMOVE128_FPR): Likewise.
696 (FMOVE128_GPR): Likewise.
697 (FMOVE128_VSX): Likewise.
698 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
703 (RELOAD): Add IEEE 128-bit floating point modes.
704 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
705 floating point in VSX registers modes.
706 (signbit<mode>2, IBM128 iterator): Likewise.
707 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
708 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
710 (neg<mode>2, TFIFKF iterator): Likewise.
711 (negtf2_internal): Likewise.
713 (abs<mode>2, TFIFKF iterator): Likewise.
714 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
715 VSX insn support for negate, absolute value, and negative absolute
717 (ieee_128bit_vsx_neg<mode>2): Likewise.
718 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
719 (ieee_128bit_vsx_abs<mode>2): Likewise.
720 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
721 (ieee_128bit_vsx_nabs<mode>2): Likewise.
722 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
723 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
724 floating point in VSX registers.
725 (unpack<mode>_dm): Likewise.
726 (unpack<mode>_nodm): Likewise.
727 (pack<mode>): Likewise.
728 (unpackv1ti): Likewise.
729 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
730 (packv1ti): Likewise.
731 (pack<mode>, FMOVE128_VSX iterator): Likewise.
732 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
734 (extenddftf2_internal): Likewise.
735 (trunctfdf2): Likewise.
736 (trunctfdf2_internal2): Likewise.
737 (fix_trunc_helper): Likewise.
738 (fix_trunctfdi2"): Likewise.
739 (floatditf2): Likewise.
740 (floatuns<mode>tf2): Likewise.
741 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
742 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
743 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
744 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
745 (float<SDI:mode><IFKF:mode>2): Likewise.
746 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
748 2015-08-26 Renlin Li <renlin.li@arm.com>
750 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
752 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
753 Jiong Wang <jiong.wang@arm.com>
755 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
756 (tlsie_tiny_<mode>): New define_insn.
757 (tlsie_tiny_sidi): Likewise.
758 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
760 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
761 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
763 (aarch64_expand_mov_immediate): Likewise.
764 (aarch64_print_operand): Likewise.
765 (arch64_classify_tls_symbol): Likewise.
767 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
769 * config/arm/arm-arches.def: Replace single value flags with
770 an initializer built from ARM_FSET_MAKE_CPU1.
771 * config/arm/arm-cores.def: Likewise.
772 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
773 derivation from the ARM_CORE macro definition, use the given value
775 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
776 ARM_ARCH macro definition, use the given value instead.
778 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
780 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
782 (struct builtin_description): Replace field mask with field
784 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
785 (IWMMXT2_BUILTIN): Likewise.
786 (IWMMXT2_BUILTIN2): Likewise.
787 (FP_BUILTIN): Likewise.
788 (CRC32_BUILTIN): Likewise.
789 (CRYPTO_BUILTIN): Likewise.
790 (iwmmx_mbuiltin): Likewise.
791 (iwmmx2_mbuiltin): Likewise.
792 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
793 struct builtin_description.
795 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
797 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
798 (struct builtin_description): Change type of mask to unsigned
800 * config/arm/arm-protos.h (insn_flags): Declare as type
802 (tune_flags): Likewise.
803 * config/arm/arm.c (feature_count): New.
804 (insn_flags): Define as type arm_feature_set.
805 (tune_flags): Likewise.
806 (struct processors): Define field flags as type arm_feature_set.
807 (all_cores): Update for change to struct processors.
808 (all_architectures): Likewise.
809 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
811 (arm_option_override_internal): Likewise.
812 (arm_option_override): Likewise.
814 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
815 Jiong Wang <jiong.wang@arm.com>
817 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
818 tls size for tiny, small, large memory model.
819 (aarch64_load_symref_appropriately): Support new symbol types.
820 (aarch64_expand_mov_immediate): Likewise.
821 (aarch64_print_operand): Likewise.
822 (aarch64_classify_tls_symbol): Likewise.
823 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
824 (aarch64_symbol_type): Likewise.
825 * config/aarch64/aarch64.md (tlsle): Deleted.
826 (tlsle12_<mode>): New define_insn.
827 (tlsle24_<mode>): Likewise.
828 (tlsle32_<mode>): Likewise.
829 (tlsle48_<mode>): Likewise.
830 * doc/sourcebuild.texi (AArch64-specific attributes): Document
833 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
835 * config/arm/arm-protos.h (FL_NONE): New.
837 (arm_feature_set): New.
838 (ARM_FSET_MAKE): New.
839 (ARM_FSET_MAKE_CPU1): New.
840 (ARM_FSET_MAKE_CPU2): New.
841 (ARM_FSET_CPU1): New.
842 (ARM_FSET_CPU2): New.
843 (ARM_FSET_EMPTY): New.
845 (ARM_FSET_HAS_CPU1): New.
846 (ARM_FSET_HAS_CPU2): New.
847 (ARM_FSET_HAS_CPU): New.
848 (ARM_FSET_ADD_CPU1): New.
849 (ARM_FSET_ADD_CPU2): New.
850 (ARM_FSET_DEL_CPU1): New.
851 (ARM_FSET_DEL_CPU2): New.
852 (ARM_FSET_UNION): New.
853 (ARM_FSET_INTER): New.
855 (ARM_FSET_EXCLUDE): New.
856 (AFM_FSET_IS_EMPTY): New.
857 (ARM_FSET_CPU_SUBSET): New.
859 2015-08-26 Jiong Wang <jiong.wang@arm.com>
861 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
862 SYMBOL_TLSLE to SYMBOL_TLSLE24.
863 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
865 (aarch64_expand_mov_immediate): Likewise.
866 (aarch64_print_operand): Likewise.
867 (aarch64_classify_symbol): Likewise.
869 2015-08-26 Jiong Wang <jiong.wang@arm.com>
871 * config/aarch64/aarch64.opt (mtls-size): New entry.
872 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
873 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
874 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
876 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
878 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
879 ARM_CORE entry. Fix some white-space.
880 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
883 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
885 * fold-const.c (fold_binary_loc) : Move Optimize
886 root(x)*root(y) as root(x*y) to match.pd.
887 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
888 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
889 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
890 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
891 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
892 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
893 (mult (exps:s @0) (exps:s @1)) : New simplifier.
894 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
895 (rdiv @0 (exps:s @1)) : New simplifier.
897 2015-08-25 Joseph Myers <joseph@codesourcery.com>
899 * gcc.c (driver::finalize): Only assign to extra_specs if
902 2015-08-25 Marek Polacek <polacek@redhat.com>
905 * varasm.c (declare_weak): Return after giving an error.
907 2015-08-25 David Malcolm <dmalcolm@redhat.com>
909 * gcc-main.c (main): Add params to driver ctor.
910 * gcc.c (class env_manager): New.
912 (env_manager::init): New.
913 (env_manager::get): New.
914 (env_manager::xput): New.
915 (env_manager::restore): New.
916 Poison getenv and putenv.
917 (DEFAULT_TARGET_SYSTEM_ROOT): New.
918 (target_system_root): Update initialization to use
919 DEFAULT_TARGET_SYSTEM_ROOT.
920 (struct spec_list): Add field "default_ptr".
921 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
922 (init_spec): Likewise.
923 (set_spec): Clear field "default_ptr".
924 (read_specs): Free "spec" and "buffer".
925 (xputenv): Reimplement in terms of env_manager.
926 (process_command): Replace ::getenv calls with calls to the
927 env_manager singleton.
928 (process_brace_body): Free string in three places.
929 (driver::driver): New.
930 (driver::~driver): New.
931 (used_arg): Convert from a function to...
932 (class used_arg_t): ...this class, and...
933 (used_arg): ...this new global instance.
934 (used_arg_t::finalize): New function.
935 (getenv_spec_function): Add "const" to local "value". Replace
936 ::getenv call with call to the env_manager singleton.
937 (path_prefix_reset): New function.
938 (driver::finalize): New function.
939 * gcc.h (driver::driver): New.
940 (driver::~driver): New.
941 (driver::finalize): New.
943 2015-08-25 Nathan Sidwell <nathan@acm.org>
945 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
946 target doesn't have one.
948 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
951 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
953 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
956 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
957 a define_insn, remove second alternative.
959 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
960 Joseph Myers <joseph@codesourcery.com>
962 * gcc.c (struct switchstr): Expand comment.
964 2015-08-25 Nathan Sidwell <nathan@acm.org>
966 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
967 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
969 2015-08-25 Richard Biener <rguenther@suse.de>
972 * genmatch.c (expr::gen_transform): Verify the result of
973 builtin_decl_implicit.
974 (dt_simplify::gen_1): Likewise.
976 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
978 * config/arm/constraints.md: Also list Cs and US ARM-specific
981 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
984 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
986 (nonpic_symbol_mentioned_p): Likewise.
987 (sh_delegitimize_address): Likewise.
988 (sh_function_ok_for_sibcall): Take into account weak symbols.
989 (sh_expand_sym_label2reg): New.
990 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
991 * config/sh/sh.md (UNSPEC_PCREL): New enum.
992 (call_pcrel): Use sh_expand_sym_label2reg.
993 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
994 (symPCREL_label2reg) New expand.
996 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
998 * graphite-poly.c: Change type of region from void* to sese.
999 * graphite-poly.h (struct scop): Changing the type of scop::region
1000 from void* to sese. Change accessor macro accordingly.
1001 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
1003 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
1005 * graphite-scop-detection.c (stmt_simple_for_scop_p):
1006 Constrain only on INTEGER_TYPE.
1008 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1011 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
1012 -mefficient-unaligned-vsx on ISA 2.7.
1014 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
1015 option to a masked option.
1017 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
1018 logic for -mefficient-unaligned-vsx so that it is set via an arch
1019 ISA option, instead of being set if -mtune=power8 is set. Move
1020 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
1021 near other default option handling.
1023 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
1025 * genflags.c (gen_macro): Delete.
1026 (gen_proto): Don't create GEN.*CALL.* macros.
1027 * gensupport.h (get_file_location): Declare.
1028 * gensupport.c (rtx_locs): New variable.
1029 (read_md_rtx): Record rtx locations.
1030 (get_file_location): New function.
1031 * target-insns.def (call, call_pop, call_value, call_value_pop)
1032 (sibcall, sibcall_value): New patterns.
1033 * gentarget-def.c (parse_argument): New function.
1034 (def_target_insn): Use it. Handle optional operands. Raise an
1035 error if an .md pattern has the wrong number of operands for the
1036 pattern name. Remove the names of unused operands from the prototype.
1037 * builtins.c (expand_builtin_apply): Use targetm functions
1038 instead of HAVE_call_value and GEN_CALL_VALUE.
1039 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
1040 and sibcall_value_pop.
1041 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
1043 * config/alpha/alpha.md (untyped_call): Likewise.
1044 * config/iq2000/iq2000.md (untyped_call): Likewise.
1045 * config/m68k/m68k.md (untyped_call): Likewise.
1046 * config/mips/mips.md (untyped_call): Likewise.
1047 * config/pa/pa.md (untyped_call): Likewise.
1048 * config/rs6000/rs6000.md (untyped_call): Likewise.
1049 * config/sparc/sparc.md (untyped_call): Likewise.
1050 * config/tilegx/tilegx.md (untyped_call): Likewise.
1051 * config/tilepro/tilepro.md (untyped_call): Likewise.
1052 * config/visium/visium.md (untyped_call): Likewise.
1053 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
1054 gen_call_value instead of GEN_CALL_VALUE.
1055 * config/arm/arm.md (untyped_call): Likewise.
1056 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
1059 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
1061 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
1062 (have_cbranchcc4): New variable.
1063 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
1064 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
1065 (if_convert): Initialize have_cbranchcc4.
1067 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
1069 * builtins.c (expand_cmpstrn): Rename to...
1070 (expand_cmpstrn_or_cmpmem): ...this.
1071 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
1072 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
1073 Remove mode argument.
1074 (expand_builtin): Update accordingly.
1076 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
1078 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
1079 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
1080 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
1081 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
1082 Add predicates for operands 0 and 3.
1083 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
1085 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
1086 immediate_operand to nonmemory_operand.
1088 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
1090 * df-scan.c (df_insn_info_init_fields): New function, split out
1092 (df_insn_create_insn_record): ...here.
1093 (df_insn_info_free_fields): New function, split out from...
1094 (df_insn_info_delete): ...here.
1095 (df_insn_rescan): Use the new functions instead of freeing and
1096 reallocating the df_insn_info.
1098 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1100 * doc/install.texi (Binaries): Remove links no longer valid.
1102 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
1104 * config/nvptx/mkoffload.c (process): Replace
1105 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
1107 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
1110 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
1112 2015-08-24 Renlin Li <renlin.li@arm.com>
1114 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
1115 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
1116 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
1117 * config/arm/constraints.md ("j"): Add check for high code.
1119 2015-08-24 Tom de Vries <tom@codesourcery.com>
1121 PR tree-optimization/65468
1122 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
1125 2015-08-24 Nathan Sidwell <nathan@acm.org>
1127 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
1128 change to nvptx_type_from_mode call. Use arg_promotion for both
1129 split and non-split args.
1131 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
1133 * target-insns.def (movstr): New pattern.
1134 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
1135 (expand_movstr): Use targetm rather than HAVE_movstr/
1138 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
1140 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
1143 2015-08-24 Andrew Pinski <apinski@cavium.com>
1145 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
1146 AARCH64_EXTRA_TUNING_OPTION.
1147 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index): New enum.
1148 (aarch64_extra_tuning_flags): Base the shifted value on the index instead
1149 of the argument to AARCH64_EXTRA_TUNING_OPTION.
1150 * config/aarch64/aarch64.c: Remove the last argument to
1151 AARCH64_EXTRA_TUNING_OPTION.
1153 2015-08-23 Nathan Sidwell <nathan@acm.org>
1155 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
1157 (nvptx_declare_function_name): Insert formatting tabs for
1160 2015-08-23 Tom de Vries <tom@codesourcery.com>
1162 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
1163 parm_decl, rather than generating a dummy default def in cfun.
1164 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
1165 ssa_name from cfun and child_fn do not share a stmt as def stmt.
1166 (move_stmt_op): Handle PARM_DECl.
1167 (gather_ssa_name_hash_map_from): New function.
1168 (move_sese_region_to_fn): Add default defs for function params, and add
1169 them to vars_map. Release copied ssa names.
1170 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
1172 2015-08-23 Tom de Vries <tom@codesourcery.com>
1174 * doc/sourcebuild.texi: Rename vect_no_int_max with
1175 vect_no_int_min_max. Update description.
1177 2015-08-22 Andrew Pinski <apinski@cavium.com>
1179 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
1180 * config/aarch64/aarch64-protos.h
1181 (aarch64_fusion_pairs_index): New enum.
1182 (aarch64_fusion_pairs): Base the shifted value on the index instead
1183 Rewrite AARCH64_FUSE_ALL to be based on the end index.
1184 of the argument to AARCH64_FUSION_PAIR.
1185 * config/aarch64/aarch64.c: Remove the last argument to
1186 AARCH64_FUSION_PAIR.
1188 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
1190 * dominance.c (new_zero_array): Define.
1191 (dom_info): Redefine as class with proper encapsulation.
1192 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
1194 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
1195 allocations/deallocations. Pass function as parameter (instead of
1197 (dom_info::get_idom): Define accessor method.
1198 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
1199 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
1200 (calculate_dominance_info): Adjust to use dom_info class.
1201 (verify_dominators): Likewise.
1203 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
1205 * print-rtl.c (print_rtx): Check the correct range for
1206 flag_dump_unnumbered_links to behave as documented.
1208 PR rtl-optimization/67227
1209 PR rtl-optimization/64164
1210 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
1211 (nonoverlapping_memrefs_p): Test offsets and sizes when given
1212 identical gimple_reg exprs.
1214 2015-08-21 Nathan Sidwell <nathan@acm.org>
1216 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
1218 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
1219 crtl->stack_alignment_needed to determine alignment.
1220 (nvptx_get_drap_rtx): New.
1221 (TARGET_GET_DRAP_RTX): Override.
1222 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
1224 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1226 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
1228 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1230 * configure.ac: Remove uwin* cases.
1231 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
1232 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
1233 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
1234 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
1235 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
1236 i[34567]86-*-uwin*, powerpc-*-beos*.
1238 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
1240 * gencodes.c (gencodes): Print the comma for the preceding
1241 enum value rather than the current one. Use aliased enum values
1242 rather than #defines for compiled-out patterns.
1243 (main): Update accordingly. Replace LAST_INSN_CODE with
1245 * lra.c (insn_code_data): Update accordingly.
1246 (finish_insn_code_data_once, get_static_insn_data): Likewise.
1247 * recog.h (target_recog): Likewise.
1248 (preprocess_insn_constraints): Change parameter to unsigned int.
1249 * recog.c (preprocess_insn_constraints): Likewise.
1250 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
1251 * tree-vect-stmts.c (vectorizable_operation): Simplify.
1253 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
1255 PR rtl-optimization/61657
1256 * loop-iv.c (iv_number_of_iterations): Declare up and down as
1257 unsigned. Remove superflous uint64_t cast.
1259 2014-08-21 Felix Yang <felix.yang@huawei.com>
1260 Jiji Jiang <jiangjiji@huawei.com>
1262 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL argument
1263 and get builtin function code directly from CALL.
1264 (gimple_stringop_fixed_value): Modified accordingly.
1265 (gimple_stringops_transform, gimple_stringops_values_to_profile): Modified
1266 accordingly and only accept BUILT_IN_NORMAL string operations.
1268 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
1270 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
1272 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1274 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
1276 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
1277 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
1278 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
1279 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
1280 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
1281 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
1282 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
1283 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
1284 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
1285 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
1287 * match.pd (SIN ) : New Operator.
1288 (TAN) : New Operator.
1289 (mult (SQRT@1 @0) @1) : New simplifier.
1290 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
1291 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
1292 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
1293 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
1294 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
1295 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
1296 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
1297 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
1298 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
1299 (rdiv @0 (POW:s @1 @2)) : New simplifier.
1301 2015-08-21 Bin Cheng <bin.cheng@arm.com>
1303 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
1304 loop if EXPR is simplified to const value.
1306 2015-08-21 Yury Gribov <y.gribov@samsung.com>
1308 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
1309 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
1311 2015-08-21 Richard Biener <rguenther@suse.de>
1314 * gimple-fold.c (replace_stmt_with_simplification): Assert
1315 seq is empty when replacing a call with itself but different
1317 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
1318 a call require that it is const.
1320 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1322 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
1323 * builtins.c (get_object_alignment_2): Adjust.
1324 * varasm.c (align_variable): Likewise.
1325 (get_variable_align): Likewise.
1326 (build_constant_desc): Likewise.
1327 (force_const_mem): Likewise.
1328 * doc/tm.texi.in: Likewise.
1329 * doc/tm.texi: Regenerate.
1331 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1333 * genconfig.c (main): Always define HAVE_cc0.
1334 * recog.c (rest_of_handle_peephole2): Adjust.
1336 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1338 * reorg.c (relax_delay_slots): Don't use #if to check value of
1341 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1343 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
1344 * targhooks.c (default_have_conditional_execution): Adjust.
1346 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
1348 * rtl.h (rtvec_all_equal_p): Declare.
1349 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
1350 * rtl.c (rtvec_all_equal_p): New function.
1351 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
1352 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
1353 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
1354 * config/arm/arm.c (neon_vdup_constant): Likewise.
1355 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
1356 * config/tilegx/constraints.md (W, Y): Likewise.
1357 * config/tilepro/constraints.md (W, Y): Likewise.
1358 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
1359 (classify_immediate): Use unwrap_const_vec_duplicate.
1360 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
1361 (reg_or_v2s8bit_operand): Likewise.
1362 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
1363 (reg_or_v4s8bit_operand): Likewise.
1365 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1367 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
1368 (vec_shasigma_be): New #define.
1369 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
1370 (VPMSUMH): Likewise.
1371 (VPMSUMW): Likewise.
1372 (VPMSUMD): Likewise.
1373 (VPMSUM): New BU_P8V_OVERLOAD_2.
1374 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
1375 entries for VEC_MADD and VEC_VPMSUM.
1377 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
1379 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
1380 Multiply argument avr_n_flash by 64 to match unit of "KiB".
1381 (avr_pgm_check_var_decl): Same.
1383 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
1385 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
1386 initialization of HFmode scalar type (float16_t) to...
1387 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
1390 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
1392 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
1393 having an -mfp16-format.
1395 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
1397 * config/i386/predicates.md (vector_all_ones_operand): Use
1398 CONSTM1_RTX to simplify definition.
1400 2015-08-20 Richard Biener <rguenther@suse.de>
1402 * toplev.c (compile_file): Remove loop calling late_global_decl
1404 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
1405 on decls we assembled.
1407 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
1409 * common/config/aarch64/aarch64-common.c
1410 (AARCH64_CPU_NAME_LENGTH): Delete.
1411 (aarch64_option_extension): New.
1412 (all_extensions): Likewise.
1413 (processor_name_to_arch): Likewise.
1414 (arch_to_arch_name): Likewise.
1416 (all_architectures): Likewise.
1417 (aarch64_get_extension_string_for_isa_flags): Likewise.
1418 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
1420 * config/aarch64/aarch64-protos.h
1421 (aarch64_get_extension_string_for_isa_flags): New.
1422 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
1423 (aarch64_option_print): Get the string to print from
1424 aarch64_get_extension_string_for_isa_flags.
1425 (aarch64_declare_function_name): Likewise.
1426 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
1427 (MCPU_TO_MARCH_SPEC): This.
1428 (ASM_CPU_SPEC): Use it.
1429 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
1430 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
1431 (EXTRA_SPEC_FUNCTIONS): Use it.
1433 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
1435 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
1436 expansion when !ISA_HAS_LWL_LWR.
1437 (mips_block_move_straight): Update the size of elements copied to
1438 account for alignment when !ISA_HAS_LWL_LWR.
1439 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
1441 2015-08-19 Jiong Wang <jiong.wang@arm.com>
1443 * expr.c (expand_expr_real_2): Check gimple statement during
1446 2015-08-19 Magnus Granberg <zorry@gentoo.org>
1448 * common.opt (fstack-protector): Initialize to -1.
1449 (fstack-protector-all): Likewise.
1450 (fstack-protector-strong): Likewise.
1451 (fstack-protector-explicit): Likewise.
1452 * configure.ac: Add --enable-default-ssp.
1453 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
1454 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
1456 * doc/install.texi: Document --enable-default-ssp.
1457 * config.in: Regenerated.
1458 * configure: Likewise.
1460 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
1462 PR rtl-optimization/64164
1463 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
1464 (parm_in_stack_slot_p): ... this. Disregard mode, what
1465 matters is whether the parm will live in a pseudo or a stack
1467 (expand_one_ssa_partition): Deal with params without a default
1468 def. Disregard mode.
1469 * cfgexpand.h: Renamed function declaration.
1470 * tree-ssa-coalesce.c: Adjust.
1471 * function.c (split_complex_args): Allocate stack slot for
1472 unassigned parms before splitting.
1473 (parm_in_unassigned_mem_p): New. Use it instead of
1474 parm_maybe_byref_p throughout this file.
1475 (assign_parm_setup_block): Use it. Accept pseudos in the
1476 expand-assigned rtl.
1477 (assign_parm_setup_reg): Drop BLKmode requirement.
1478 (assign_parm_setup_stack): Allocate and fill in the address of
1479 unassigned MEM parms.
1481 2015-08-19 David Sherwood <david.sherwood@arm.com>
1483 * genmodes.c (emit_mode_unit_size_inline): New function.
1484 (emit_mode_unit_precision_inline): New function.
1485 (emit_insn_modes_h): Emit new #define. Emit new functions.
1486 (emit_mode_unit_size): New function.
1487 (emit_mode_unit_precision): New function.
1488 (emit_mode_adjustments): Add mode_unit_size adjustments.
1489 (emit_insn_modes_c): Emit new arrays.
1490 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
1491 use new inline methods.
1493 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1495 * config/aarch64/aarch64.c (bit_count): Delete prototype
1497 (aarch64_print_operand): Use popcount_hwi instead of the above.
1499 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1501 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
1504 2015-08-19 Marek Polacek <polacek@redhat.com>
1507 * gimple-ssa-isolate-paths.c
1508 (insert_trap_and_remove_trailing_statements): Rename to ...
1509 (insert_trap): ... this. Don't remove trailing statements; split
1511 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
1513 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
1516 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
1517 conditionalize the whole on __GNUC__. Add fallback code
1518 depending neither on undefined nor implementation-defined behaviour.
1520 2015-08-19 Jiong Wang <jiong.wang@arm.com>
1522 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
1523 whitespaces with tab.
1525 2015-08-19 Florian Weimer <fweimer@redhat.com>
1527 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
1528 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
1529 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
1530 Move Name_Ids instantiation to the Prj.Proc package, to avoid
1533 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1535 * config/arm/arm.c (bounds_check): Use %wd print format
1536 for HOST_WIDE_INT arguments.
1538 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1540 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
1541 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
1542 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
1543 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
1544 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
1545 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
1546 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
1547 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
1548 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
1551 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
1553 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
1554 function.c, graphite-scop-detection.c, haifa-sched.c,
1555 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
1556 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
1557 varasm.c: Remove typedefs of structs.
1559 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
1561 * config/rs6000/altivec.h (vec_adde): New define.
1562 (vec_addec): Likewise.
1563 (vec_double): Likewise.
1564 (vec_bperm): Likewise.
1566 * config/rs6000/rs6000-builtin.def (ADDE): New
1567 BU_ALTIVEC_OVERLOAD_3.
1569 (DOUBLE): New BU_VSX_OVERLOAD_1.
1570 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
1571 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
1572 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
1573 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
1574 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
1575 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
1576 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
1577 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
1578 and P8V_BUILTIN_VEC_VBPERMQ.
1580 2015-08-18 Jason Merrill <jason@redhat.com>
1582 * print-tree.c (print_node): Handle TREE_BINFO.
1584 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1587 * builtins.c (expand_builtin_signbit): Add asserts to make sure
1588 we can expand BUILT_IN_SIGNBIT inline.
1589 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
1590 * doc/extend.texi: Document the type-generic __builtin_signbit.
1592 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
1594 PR rtl-optimization/67218
1595 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
1596 (simplify_unary_operation_1): Use it.
1598 2015-08-18 Marek Polacek <polacek@redhat.com>
1601 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
1602 if the call isn't valid.
1603 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
1604 gimple_call_builtin_p.
1605 (call_may_clobber_ref_p_1): Likewise.
1606 (stmt_kills_ref_p): Likewise.
1608 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
1610 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
1611 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
1612 (mips_hard_regno_scratch_ok): Likewise.
1613 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
1614 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
1616 2015-08-18 Bin Cheng <bin.cheng@arm.com>
1618 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
1619 (determine_value_range): Call refine_value_range_using_guard for
1620 each loop initial condition to improve value range.
1622 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
1624 * config/i386/i386.c: Remove include of fibheap.h.
1626 2015-08-17 Richard Biener <rguenther@suse.de>
1628 PR tree-optimization/67221
1629 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
1630 (sccvn_dom_walker::before_dom_children): Mark backedges of
1631 non-executable blocks as not executable.
1633 2015-08-17 David Sherwood <david.sherwood@arm.com>
1635 * config/arm/arm.c (neon_element_bits): Replace call to
1636 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
1637 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
1638 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
1639 (neon_vdup_lane<mode>): Likewise.
1640 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
1641 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
1642 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
1643 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
1644 * config/spu/spu.c (arith_immediate_p): Likewise.
1645 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
1646 * expr.c (expand_expr_real_2): Likewise.
1647 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
1648 * simplify-rtx.c (simplify_immed_subreg): Likewise.
1649 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
1650 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
1652 * fold-const.c (fold_binary_loc): Replace call to
1653 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
1654 GET_MODE_UNIT_PRECISION (m).
1656 2015-08-17 Mike Stump <mikestump@comcast.net>
1658 * config/arm/arm.c (arm_block_move_unaligned_straight):
1659 Emit normal move instead of unaligned load when source or destination
1660 are appropriately aligned.
1662 2015-08-17 Richard Biener <rguenther@suse.de>
1663 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1666 * match.pd (div (coss (op @0) : New simplifier.
1668 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
1670 PR rtl-optimization/64164
1673 PR rtl-optimization/67000
1676 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1677 * tree-ssa-copyrename.c: Removed.
1678 * opts.c (default_options_table): Drop -ftree-copyrename. Add
1679 -ftree-coalesce-vars.
1680 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1681 * common.opt (ftree-copyrename): Ignore.
1682 (ftree-coalesce-inlined-vars): Likewise.
1683 * doc/invoke.texi: Remove the ignored options above.
1684 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1685 * tree-ssa-coalesce.h: ... here.
1686 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1687 headers required by it.
1688 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1689 across variables when flag_tree_coalesce_vars. Check register
1690 use and promoted modes to allow coalescing. Do not coalesce
1691 maybe-byref parms with SSA_NAMEs of other variables, or
1692 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
1693 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1694 with its member functions to tree-ssa-coalesce.c.
1695 (var_map_base_init): Likewise. Renamed to
1696 compute_samebase_partition_bases.
1697 (partition_view_normal): Drop want_bases parameter.
1698 (partition_view_bitmap): Likewise.
1699 * tree-ssa-live.h: Adjust declarations.
1700 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
1701 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1702 default defs at the entry point.
1703 (dump_part_var_map): New.
1704 (compute_optimized_partition_bases): New, called by...
1705 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1706 of compute_samebase_partition_bases. Adjust.
1707 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1708 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
1709 (ssa_default_def_partition): New.
1710 (get_rtl_for_parm_ssa_default_def): New.
1711 (align_local_variable, add_stack_var): Support anonymous SSA
1713 (defer_stack_allocation): Likewise. Declare earlier.
1714 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1715 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1716 Do no record deferred-allocation marker in
1717 SA.partition_to_pseudo.
1718 (expand_stack_vars): Adjust check for the marker in it.
1719 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
1720 redundant MEM attr setting.
1721 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
1723 (expand_one_stack_var): ... this. New wrapper to check and
1724 skip already expanded SSA partitions.
1725 (record_alignment_for_reg_var): New, factored out of...
1726 (expand_one_var): ... this.
1727 (expand_one_ssa_partition): New.
1728 (adjust_one_expanded_partition_var): New.
1729 (expand_one_register_var): Check and skip already expanded SSA
1731 (expand_used_vars): Don't create DECLs for anonymous SSA
1732 names. Expand all SSA partitions, then adjust all SSA names.
1733 (pass::execute): Replace the loops that set
1734 SA.partition_to_pseudo from partition leaders and cleared
1735 DECL_RTL for multi-location variables, and that which used to
1736 rename vars and set attrs, with one that clears DECL_RTL and
1737 checks that PARMs and RESULTs default_defs match DECL_RTL.
1738 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1739 * emit-rtl.c: Include stor-layout.h.
1740 (set_reg_attrs_for_parm): Handle NULL decl.
1741 (set_reg_attrs_for_decl_rtl): Take mode from expression if
1743 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
1744 rather than its possibly-NULL DECL.
1745 * explow.c (promote_ssa_mode): New.
1746 * explow.h (promote_ssa_mode): Declare.
1747 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1748 (read_complex_part): Export.
1749 * expr.h (read_complex_part): Declare.
1750 * cfgexpand.h (parm_maybe_byref_p): Declare.
1751 * function.c: Include cfgexpand.h.
1752 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1753 (use_register_for_parm_decl): Wrapper for the above to
1754 special-case the result_ptr.
1755 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1756 (split_complex_args): Take assign_parm_data_all argument.
1757 Pass it to rtl_for_parm. Set up rtl and context for split
1758 args. Reset complex parm before fetching its default decl
1760 (assign_parms_unsplit_complex): Use the default-def complex
1761 parm rtl if it matches the components.
1762 (assign_parms_augmented_arg_list): Adjust.
1763 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1764 multiple locations. Recognize split complex args.
1765 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1766 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
1767 (assign_parm_setup_block): Prefer SSA-assigned location, and
1768 fill in its address if the memory location of a maybe-byref
1769 parm was not assigned by cfgexpand.
1770 (assign_parm_setup_reg): Likewise. Adjust its mode as
1771 needed. Use entry_parm for equiv if stack_parm is NULL. Make
1772 sure passed_pointer parms don't need conversion. Copy address
1774 (assign_parm_setup_stack): Prefer SSA-assigned location.
1775 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
1776 rtl before testing for pointer bounds. Special-case result_ptr.
1777 (expand_function_start): Maybe reset DECL_RTL of result.
1778 Prefer SSA-assigned location for result and static chain.
1779 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
1780 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
1781 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1782 anonymous SSA names. Use promote_ssa_mode.
1783 (get_temp_reg): Likewise.
1784 (remove_ssa_form): Adjust.
1785 * stor-layout.c (layout_decl): Don't set mem attributes of
1787 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1788 and get its reg_usage for reg invalidation.
1789 (compute_bb_dataflow): Pass it insn.
1790 (emit_notes_in_bb): Likewise.
1792 2015-08-14 Marek Polacek <polacek@redhat.com>
1794 * tree-core.h (tree_base): Fix typo.
1796 2015-08-14 Marek Polacek <polacek@redhat.com>
1799 * gimple.c (infer_nonnull_range_by_attribute): Check that the
1800 nonnull argument position is not outside function arguments.
1802 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
1805 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
1806 'lconst_atomic' with 'const_atomic'.
1807 (atomic_fetch_<optab><mode>): Likewise.
1808 (atomic_<optab>_fetch<mode>): Likewise.
1809 * config/aarch64/iterators.md (lconst-atomic): Move below
1811 (const_atomic): New.
1813 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
1814 Bernd Schmidt <bernds@codesourcery.com>
1816 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
1818 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
1819 (DWARF2_DEBUGGING_INFO): Don't define.
1820 * debug.h (dwarf2_lineno_debug_hooks): Declare.
1821 * toplev.c (process_options): Add a case for it.
1822 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
1823 (dwarf2out_init): Skip most initializations if
1824 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
1826 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
1827 DWARF2_LINENO_DEBUGGING_INFO.
1828 * opts.c (set_debug_level): Likewise.
1830 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
1832 * config/arm/types.md (is_neon_type): Add missing types.
1834 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
1836 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
1838 * config/i386/i386.c (PTA_SKYLAKE): New macros.
1839 (processor_alias_table): Add skylake description.
1840 (enum processor_model): Add skylake processor.
1841 (arch_names_table): Add skylake record.
1842 * doc/invoke.texi: Add skylake item.
1844 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
1846 * ira-int.h: Include recog.h.
1847 * ira-build.c: Don't include recog.h.
1848 * ira-color.c: Likewise.
1849 * ira-conflicts.c: Likewise.
1850 * ira-costs.c: Likewise.
1851 * ira-emit.c: Likewise.
1852 * ira-lives.c: Likewise.
1854 * sched-deps.c: Likewise.
1855 * sel-sched.c: Likewise.
1856 * target-globals.c: Likewise.
1858 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
1861 * reload1.c (elimination_costs_in_insn): Make it obvious to the
1862 compiler that the n_dups and n_operands loop bounds are invariant.
1864 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1866 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
1867 expressions in A and B.
1869 2015-08-13 Richard Biener <rguenther@suse.de>
1871 * tree.c (nonnull_arg_p): Move from ...
1872 * tree-vrp.c (nonnull_arg_p): ... here.
1873 * tree.h (nonnull_arg_p): Declare.
1874 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
1875 here, register ptr != 0 for nonnull_arg_p pointer arguments.
1876 Properly initialize static chain and by-reference result pointer.
1877 (run_scc_vn): Adjust.
1879 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
1881 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
1884 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
1886 * config/aarch64/aarch64-protos.h
1887 (aarch64_gen_atomic_cas): Declare.
1888 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
1889 Choose appropriate instruction pattern for the target.
1890 (aarch64_gen_atomic_cas): New.
1891 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
1892 (atomic_compare_and_swap<mode>_1): Rename to
1893 aarch64_compare_and_swap<mode>. Fix some indentation.
1894 (aarch64_compare_and_swap<mode>_lse): New.
1895 (aarch64_atomic_cas<mode>): New.
1897 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
1899 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
1902 2015-08-13 Richard Biener <rguenther@suse.de>
1904 PR tree-optimization/67191
1905 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
1906 assert we value-numbered last stmts operand because it can validly
1907 trigger for unreachable code.
1909 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1911 PR rtl-optimization/67103
1912 * ifcvt.c (noce_try_store_flag_constants): Move
1913 x = (-(test != 0) & (b - a)) + a transformation to...
1914 (noce_try_cmove): ... Here. Try it if normal conditional
1917 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
1919 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
1921 * config/mips/mips.md (processor): Remove w32 and w64.
1923 2015-08-13 Richard Biener <rguenther@suse.de>
1925 PR tree-optimization/66502
1926 PR tree-optimization/67167
1927 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
1929 (vn_phi_lookup): Adjust.
1930 (vn_phi_insert): Likewise.
1931 (visit_phi): Prefer to value-number to another PHI node
1932 over value-numbering to a PHI argument.
1933 (init_scc_vn): Mark DFS back edges.
1935 2015-08-13 Richard Biener <rguenther@suse.de>
1937 * gimple.h (gcall::code_): New constant static member.
1938 (gcond::code_): Likewise.
1939 * gimple.c (gcall::code_): Define.
1940 (gcond::code_): Likewise.
1941 (is_a_helper <const gcond *>): Add.
1942 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
1943 and forward to a new gcall overload with less checking and a
1944 cheaper way to access the operand.
1945 (gimple_call_lhs_ptr): Likewise.
1946 (gimple_call_set_lhs): Likewise.
1947 (gimple_call_internal_p): Likewise.
1948 (gimple_call_with_bounds_p): Likewise.
1949 (gimple_call_set_with_bounds): Likewise.
1950 (gimple_call_internal_fn): Likewise.
1951 (gimple_call_set_ctrl_altering): Likewise.
1952 (gimple_call_ctrl_altering_p): Likewise.
1953 (gimple_call_fntype): Likewise.
1954 (gimple_call_fn): Likewise.
1955 (gimple_call_fn_ptr): Likewise.
1956 (gimple_call_set_fndecl): Likewise.
1957 (gimple_call_fndecl): Likewise.
1958 (gimple_call_chain): Likewise.
1959 (gimple_call_num_args): Likewise.
1960 (gimple_call_arg): Likewise.
1961 (gimple_call_arg_ptr): Likewise.
1962 (gimple_call_set_arg): Likewise.
1963 (gimple_call_noreturn_p): Likewise.
1964 (gimple_cond_code): Likewise.
1965 (gimple_cond_lhs): Likewise.
1966 (gimple_cond_rhs): Likewise.
1967 (gimple_has_lhs): Reduce checking.
1969 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1972 * match.pd (div (mult @0 @1) @1) : New simplifier.
1974 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1977 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
1978 predicate to allow construction of vector constants using the
1979 VSLDOI vector shift instruction.
1981 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
1984 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
1985 the number of bytes to be shifted left and filled in with either
1986 all zero or all one bits.
1987 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
1989 (output_vec_const_move): On power8, generate XXLORC to generate
1990 a vector constant with all 1's. Do a split if we need to use a
1993 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
1994 properly test for the MSB.
1996 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
1997 vector constants that can be created with VSLDOI.
1999 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
2002 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
2003 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
2004 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
2005 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
2006 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
2007 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
2008 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
2009 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
2010 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
2012 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
2014 * config/xtensa/constraints.md (define_constraint "Y"): New
2016 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
2017 * config/xtensa/linux.h (ASM_SPEC): Likewise.
2018 * config/xtensa/predicates.md (move_operand): Match constants
2019 and symbols in the presence of TARGET_AUTO_LITPOOLS.
2020 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
2021 immediate references to TLS data.
2022 (xtensa_emit_move_sequence): Don't force constants to memory in
2023 the presence of TARGET_AUTO_LITPOOLS.
2024 (print_operand): Add 'y' format, same as default, but capable of
2025 printing SF mode constants as well.
2026 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
2027 (movsf_internal): Add movi pattern that loads literal.
2028 (movsf, movdf): Don't force constants to memory in the presence
2029 of TARGET_AUTO_LITPOOLS.
2030 (movdf_internal): Add 'Y' constraint.
2031 * config/xtensa/xtensa.opt (mauto-litpools): New option.
2032 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
2034 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
2036 * config/arm/arm-fpus.def: Replace booleans with feature flags.
2038 * config/arm/arm.c (ARM_FPU): Update macro.
2039 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
2040 (TARGET_FP16): Likewise.
2041 (TARGET_CRYPTO): Likewise.
2042 (TARGET_NEON): Likewise.
2043 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
2046 2015-08-12 Tom de Vries <tom@codesourcery.com>
2050 * doc/install.texi: Remove --with_host_libstdcxx item. Update
2051 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
2052 accordingly. Mention default for --with-stage1-ldflags.
2054 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
2056 * config/arm/arm.h (arm_fpu_feature_set): New.
2057 (ARM_FPU_FSET_HAS): New.
2061 (FPU_FL_CRYPTO): New.
2063 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2065 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
2066 after -mcmodel=large -fPIC sorry.
2068 2015-08-12 Richard Biener <rguenther@suse.de>
2070 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
2071 comparison operand order and commutative ternary op operand order.
2072 (sccvn_dom_walker::cond_stack): New state to track temporary
2074 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
2076 (sccvn_dom_walker::record_cond): Add a single temporary conditional
2078 (sccvn_dom_walker::record_conds): Add a temporary conditional
2079 expressions and all related expressions also true/false.
2080 (sccvn_dom_walker::before_dom_children): Record temporary
2081 expressions based on the controlling condition of a single
2082 predecessor. When trying to simplify a conditional statement
2083 lookup expressions we might have inserted earlier.
2085 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
2088 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
2089 to ARM core registers.
2091 2015-08-12 Nathan Sidwell <nathan@acm.org>
2093 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
2094 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
2096 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
2098 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
2100 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
2102 2015-08-12 Richard Biener <rguenther@suse.de>
2104 * gimple.h (remove_pointer): New trait.
2105 (GIMPLE_CHECK2): New inline template function.
2106 (gassign::code_): New constant static member.
2107 (is_a_helper<const gassign *>): Add.
2108 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
2109 and forward to a new gassign overload with less checking and a
2110 cheaper way to access the operand.
2111 (gimple_assign_lhs_ptr): Likewise.
2112 (gimple_assign_set_lhs): Likewise.
2113 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
2115 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
2117 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
2119 (gimple_assign_rhs_code): Likewise.
2120 * gimple.c (gassign::code_): Define.
2122 2015-08-12 Richard Biener <rguenther@suse.de>
2124 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2125 Eliminate edges marked as not executable by SCCVN.
2126 * tree-ssa-sccvn.c: Include gimple-iterator.h.
2127 (cond_dom_walker): Rename to sccvn_dom_walker.
2128 (sccvn_dom_walker::before_dom_children): Value-number defs
2130 (run_scc_vn): Remove loop value-numbering all SSA names.
2131 Drop not visited SSA names to varying.
2133 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
2135 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
2136 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
2137 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
2138 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
2139 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
2140 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
2141 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
2142 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
2143 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
2145 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
2148 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
2149 to enum feature_priority and feature_list.
2150 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
2151 and isa_names_table.
2153 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
2155 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
2158 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2162 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
2163 account when deciding what was the command-line status.
2165 2015-08-11 Nathan Sidwell <nathan@acm.org>
2167 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
2169 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
2170 we're not the only contributor to target phi.
2172 2015-08-11 Jiong Wang <jiong.wang@arm.com>
2174 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
2177 2015-08-11 Tom de Vries <tom@codesourcery.com>
2179 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
2181 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
2183 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
2185 * config/i386/i386.md (cpu): Remove knl.
2187 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
2191 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
2192 open-coded sequence.
2193 * omp-low.c (oacc_process_reduction_data): Remove handline of
2194 GOMP_DEVICE_HOST_NONSHM.
2196 * lto-streamer-in.c (lto_input_mode_table): Adjust to
2197 GET_MODE_INNER changes.
2199 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
2200 Ilya Verbin <ilya.verbin@intel.com>
2202 * lto-streamer-in.c (lto_input_mode_table): Correctly advance
2205 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2207 * doc/options.texi (EnabledBy): Document that the argument must be
2209 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
2210 Not enabled by -Wall.
2211 * optc-gen.awk: Give nicer error messages. Detect if the argument
2212 of EnabledBy is not a Common option.
2213 * common.opt (Wnull-dereference): Not enabled by -Wall.
2214 * opt-functions.awk (lang_enabled_by): Nicer error messages.
2216 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
2218 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
2219 model == 0x4f as Broadwell.
2221 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2223 PR rtl-optimization/67028
2224 * combine.c (simplify_comparison): Fix comment. Rearrange code.
2225 Add test to see if a const_int fits in the new mode.
2227 2015-08-07 DJ Delorie <dj@redhat.com>
2229 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
2231 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
2233 PR rtl-optimization/67029
2234 * ira-color.c: Include "recog.h" before including "ira-int.h".
2235 * target-globals.c: Likewise.
2236 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
2237 adds an alternative_mask argument and use it instead of
2238 preferred_alternatives.
2239 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
2240 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
2241 * sched-deps.c: Include "ira-int.h" after including "ira.h".
2242 (sched_analyze_insn): Update call to
2243 ira_implicitly_set_insn_hard_regs.
2244 * sel-sched.c: Include "ira-int.h" after including "ira.h".
2245 (implicit_clobber_conflict_p): Update call to
2246 ira_implicitly_set_insn_hard_regs.
2248 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
2250 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
2252 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
2255 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
2256 currently_expanding_to_rtl is set.
2258 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
2260 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
2261 * configure: Regenerate.
2263 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2264 Jiong Wang <jiong.wang@arm.com>
2266 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
2267 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
2268 (REG_CLASS_NAMES): Likewise.
2269 (REG_CLASS_CONTENTS): Likewise.
2270 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
2271 (aarch64_register_move_cost): Likewise.
2272 (aarch64_load_symref_appropriately): Invoke the new added pattern if
2274 * config/aarch64/constraints.md (Uc0): New constraint.
2276 2015-08-06 Jiong Wang <jiong.wang@arm.com>
2278 * config/aarch64/constraints.md (Usf): Add the test of
2279 aarch64_is_noplt_call_p.
2281 2015-08-06 Jiong Wang <jiong.wang@arm.com>
2283 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
2285 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
2286 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
2287 (call_symbol): Likewise.
2289 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
2291 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
2292 for vectorizing multiplication patterns.
2293 * tree-vectorizer.h: Adjust the number of patterns.
2295 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
2297 * config/i386/sse.md (*vec_concatv2df): Declare added
2298 alternatives as sselog type.
2300 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2302 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
2305 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2307 * config/s390/s390.c (s390_expand_tbegin): Expand either
2308 tbegin_1_z13 or tbegin_1 depending on VX flag.
2309 * config/s390/s390.md ("tbegin_1_z13"): New expander.
2311 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2313 * config/s390/s390.opt: Clarify description for -mzvector
2314 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
2317 2015-08-06 Richard Biener <rguenther@suse.de>
2319 * gimple.h (gimple_call_set_fn): Access op member directly.
2320 (gimple_call_chain_ptr): Likewise.
2321 (gimple_call_set_chain): Likewise.
2322 (gimple_cond_lhs_ptr): Likewise.
2323 (gimple_cond_set_lhs): Likewise.
2324 (gimple_cond_rhs_ptr): Likewise.
2325 (gimple_cond_set_rhs): Likewise.
2326 (gimple_cond_true_label): Likewise.
2327 (gimple_cond_set_true_label): Likewise.
2328 (gimple_cond_set_false_label): Likewise.
2329 (gimple_cond_false_label): Likewise.
2330 (gimple_label_label): Likewise.
2331 (gimple_label_set_label): Likewise.
2332 (gimple_goto_set_dest): Likewise.
2333 (gimple_asm_input_op): Likewise.
2334 (gimple_asm_input_op_ptr): Likewise.
2335 (gimple_asm_set_input_op): Likewise.
2336 (gimple_asm_output_op): Likewise.
2337 (gimple_asm_output_op_ptr): Likewise.
2338 (gimple_asm_set_output_op): Likewise.
2339 (gimple_asm_clobber_op): Likewise.
2340 (gimple_asm_set_clobber_op): Likewise.
2341 (gimple_asm_label_op): Likewise.
2342 (gimple_asm_set_label_op): Likewise.
2343 (gimple_switch_index): Likewise.
2344 (gimple_switch_index_ptr): Likewise.
2345 (gimple_return_retval_ptr): Likewise.
2346 (gimple_return_retval): Likewise.
2347 (gimple_return_set_retval): Likewise.
2348 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
2349 (gimple_switch_label): Likewise.
2350 (gimple_switch_set_label): Likewise.
2352 2015-08-06 Richard Biener <rguenther@suse.de>
2354 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
2355 bool comparison canonicalization and restrict to integers.
2357 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
2359 * coretypes.h (enum symbol_visibility): Relocate here.
2360 * flag-types.h (enum symbol_visibility): Remove.
2361 * tree-core.h (enum symbol_visibility): Remove.
2363 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
2366 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
2367 for no_split_stack function attribute along with
2369 (rs6000_expand_split_stack_prologue): Likewise.
2371 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2372 Jeff Law <law@redhat.com>
2375 * doc/invoke.texi (Wnull-dereference): New.
2376 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
2377 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
2378 Warn for potential NULL dereferences.
2379 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
2380 * ubsan.c (instrument_nonnull_arg): Call
2381 infer_nonnull_range_by_attribute.
2382 (instrument_nonnull_return): Likewise.
2383 * common.opt (Wnull-dereference); New.
2384 * gimple.c (infer_nonnull_range): Remove bool arguments.
2385 (infer_nonnull_range_by_dereference): New.
2386 (infer_nonnull_range_by_attribute): New.
2387 * gimple.h: Update declarations.
2389 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
2391 * gensupport.c (sequence_num): Replace with...
2392 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
2393 ...these new variables.
2394 (init_rtx_reader_args_cb): Update accordingly.
2395 (get_num_code_insns): Likewise.
2396 (read_md_rtx): Rework to use a while loop and get_c_test.
2397 Use the new counters. Remove redundant DEFINE_SUBST case.
2398 * genoutput.c (gen_split): Delete.
2399 (main): Don't call it.
2401 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
2403 * gensupport.h (get_c_test): Declare.
2404 * gensupport.c (get_c_test): New function.
2405 * genconditions.c (main): Use it.
2406 * genrecog.c (validate_pattern): Likewise.
2407 (match_pattern_1): Likewise. Remove c_test argument.
2408 (match_pattern): Update accordingly and remove c_test argument.
2409 (main): Update accordingly.
2411 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
2413 * gensupport.h (get_num_insn_codes): Declare.
2414 * gensupport.c (get_num_insn_codes): New function.
2415 * genattrtab.c (optimize_attrs): Rename max_insn_code to
2417 (main): Likewise. Use get_num_insn_codes.
2418 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
2420 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
2423 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
2424 is zero- rather than sign-extended.
2426 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
2428 * target-insns.def (can_extend): Delete.
2430 2015-08-05 Richard Biener <rguenther@suse.de>
2432 PR tree-optimization/67121
2433 * tree-if-conv.c (combine_blocks): Clear range-info produced
2434 by stmts no longer executed conditionally.
2436 2015-08-05 Nick Clifton <nickc@redhat.com>
2438 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
2439 to allow identical far pointers to remain.
2441 2015-08-05 Richard Biener <rguenther@suse.de>
2444 * match.pd: Compare address bases with == if they are decls
2445 or SSA names, not operand_equal_p. Otherwise fail.
2447 2015-08-05 Richard Biener <rguenther@suse.de>
2449 PR tree-optimization/67055
2450 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
2453 * g++.dg/torture/pr67055.C: New testcase.
2455 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
2457 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
2459 (define_attr "enabled"): Handle avx521vl and noavx512vl.
2460 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
2461 AVX-512 alternative out of SSE.
2462 (define_insn "*vec_concatv2df"): Ditto.
2464 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
2466 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
2467 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
2468 CODE_FOR_avx_ptestv4di.
2469 * config/i386/sse.md (define_mode_iterator V_AVX): New.
2470 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
2471 (define_insn "avx_ptest256"): Merge this ...
2472 (define_insn "sse4_1_ptest"): And this ...
2473 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
2475 2015-08-05 Richard Biener <rguenther@suse.de>
2477 PR tree-optimization/67109
2478 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
2479 against too big groups. Print whether this is a load or store
2480 group. Rename from ...
2481 (vect_analyze_group_access): ... this which is now a wrapper
2482 dissolving an invalid group.
2483 (vect_analyze_data_ref_accesses): Print whether this is a load
2486 2015-08-05 Richard Biener <rguenther@suse.de>
2489 * match.pd: Guard const_binop result checking against NULL_TREE
2492 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
2494 * cse.c (cse_insn): Restoring old behaviour for src_eqv
2495 when dest and value in the REG_EQUAL are same and dest
2498 2015-08-04 Anatoly Sokolov <aesok@post.ru>
2500 * config/moxie/moxie.h (PRINT_OPERAND,
2501 PRINT_OPERAND_ADDRESS): Remove macros.
2502 * config/moxie/moxie-protos.h (moxie_print_operand,
2503 moxie_print_operand_address): Remove declaration.
2504 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
2505 TARGET_PRINT_OPERAND_ADDRESS): Define.
2506 (moxie_print_operand, moxie_print_operand_address): Make static.
2508 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2511 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
2512 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
2514 2015-08-04 Richard Biener <rguenther@suse.de>
2516 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
2518 (dt_operand::gen_gimple_expr): Adjust.
2520 2015-08-04 Richard Biener <rguenther@suse.de>
2522 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
2523 bool compares on RHS.
2524 * match.pd: Add X ==/!= !X is false/true pattern.
2526 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
2528 * config/aarch64/aarch64.c: Change inner loop statement cost
2529 to be consistent with other targets.
2531 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
2533 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
2536 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
2538 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
2539 (machine_function): Remove pseudos field.
2541 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2543 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
2544 Exit early and use target_option_current_node if processing current
2547 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2549 * doc/extend.texi (AArch64 Function Attributes): New node.
2550 (AArch64 Pragmas): Likewise.
2552 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2554 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
2555 Initialize simd builtins if TARGET_SIMD.
2556 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
2557 Make sure that the builtins are initialized only once no matter how
2558 many times the function is called.
2559 (aarch64_init_builtins): Unconditionally initialize crc builtins.
2560 (aarch64_relayout_simd_param): New function.
2561 (aarch64_simd_expand_args): Use above during argument expansion.
2562 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
2563 simd builtins if TARGET_SIMD.
2564 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
2566 (aarch64_relayout_simd_types): Likewise.
2568 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2570 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
2571 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
2572 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
2573 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
2575 (aarch64_reset_previous_fndecl): New function.
2576 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
2578 * config/aarch64/aarch64-c.c: New file.
2579 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
2580 Push and pop options at beginning and end. Remove ifdef
2581 __ARM_FEATURE_CRC32.
2582 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
2583 Add pragma +nothing+simd and +nothing+crypto where appropriate.
2584 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
2585 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
2587 (aarch64_register_pragmas): Likewise.
2588 (aarch64_reset_previous_fndecl): Likewise.
2589 (aarch64_process_target_attr): Likewise.
2590 (aarch64_override_options_internal): Likewise.
2592 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2594 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
2596 (aarch64_can_inline_p): Likewise.
2597 (TARGET_CAN_INLINE_P): Define.
2599 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2601 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
2602 Remove static. Handle OPT_mgeneral_regs_only,
2603 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
2604 OPT_momit_leaf_frame_pointer.
2605 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
2606 (aarch64_attr_opt_type): New enum.
2607 (aarch64_attribute_info): New struct.
2608 (aarch64_handle_attr_arch): New function.
2609 (aarch64_handle_attr_cpu): Likewise.
2610 (aarch64_handle_attr_tune): Likewise.
2611 (aarch64_handle_attr_isa_flags): Likewise.
2612 (aarch64_attributes): New table.
2613 (aarch64_process_one_target_attr): New function.
2614 (num_occurences_in_str): Likewise.
2615 (aarch64_process_target_attr): Likewise.
2616 (aarch64_option_valid_attribute_p): Likewise.
2617 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
2618 * config/aarch64/aarch64-protos.h: Include input.h
2619 (aarch64_handle_option): Declare prototype.
2621 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2623 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
2624 * config/aarch64/aarch64.c: Include target-globals.h
2625 (aarch64_previous_fndecl): New variable.
2626 (aarch64_set_current_function): New function.
2627 (TARGET_SET_CURRENT_FUNCTION): Define.
2629 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2631 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
2632 (explicit_arch): Likewise.
2633 (x_aarch64_isa_flags): Likewise.
2634 (mgeneral-regs-only): Mark as Save.
2635 (mfix-cortex-a53-835769): Likewise.
2636 (mcmodel=): Likewise.
2637 (mstrict-align): Likewise.
2638 (momit-leaf-frame-pointer): Likewise.
2639 (mtls-dialect): Likewise.
2640 (master=): Likewise.
2641 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
2642 (aarch64_isa_flags): Remove extern declaration.
2643 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
2644 to indicate success or failure.
2645 (aarch64_validate_march): Likewise.
2646 (aarch64_validate_mtune): Likewise.
2647 (aarch64_isa_flags): Delete.
2648 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
2649 instead of aarch64_isa_flags.
2650 (aarch64_get_tune_cpu): New function.
2651 (aarch64_get_arch): Likewise.
2652 (aarch64_override_options): Use above and set up explicit_tune_core
2654 (aarch64_print_extension): Move earlier in file. Add isa_flags
2655 argument and use that instead of the global aarch64_isa_flags.
2656 (aarch64_option_save): New function.
2657 (aarch64_option_restore): Likewise.
2658 (aarch64_option_print): Likewise.
2659 (aarch64_declare_function_name): Likewise.
2660 (aarch64_start_file): Delete.
2661 (TARGET_ASM_FILE_START): Do not define.
2662 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
2663 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
2666 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2668 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
2669 flag_omit_leaf_frame_pointer to 2.
2671 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2673 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
2675 (TARGET_FIX_ERR_A53_835769): New macro.
2676 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
2677 handling of opts->x_aarch64_fix_a53_err835769.
2678 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
2679 than aarch64_fix_a53_err835769.
2680 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
2681 * config/aarch64/aarch64-linux.h: Likewise.
2683 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
2685 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
2686 ix86_expand_int_movcc as boolean.
2688 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2690 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
2691 (aarch64_cpu_string): Likewise.
2692 (aarch64_tune_string): Likewise.
2693 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
2694 (aarch64_parse_extension): Return aarch64_parse_opt_result.
2695 Add extra argument to put result into.
2696 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
2697 (aarch64_parse_cpu): Add arguments to put results into. Return
2698 aarch64_parse_opt_result.
2699 (aarch64_parse_tune): Likewise.
2700 (aarch64_override_options_after_change_1): New function.
2701 (aarch64_override_options_internal): New function.
2702 (aarch64_validate_mcpu): Likewise.
2703 (aarch64_validate_march): Likewise.
2704 (aarch64_validate_mtune): Likewise.
2705 (aarch64_override_options): Update to reflect above changes.
2706 Move some logic into aarch64_override_options_internal.
2707 Initialize target_option_default_node and target_option_current_node.
2708 (aarch64_override_options_after_change): Move logic into
2709 aarch64_override_options_after_change_1 and call it with global_options.
2710 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
2711 flag values from that.
2713 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2715 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2716 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
2717 * config/aarch64/aarch64.c (struct processor): Add arch field.
2718 (all_architectures): Handle above, move above all_cores.
2719 (all_cores): Handle above.
2720 (aarch64_parse_arch): Handle above changes.
2721 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
2722 above. Update comments.
2723 (armv8.1-a): Likewise.
2724 * config/aarch64/aarch64-cores.def: Update according to above.
2725 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
2726 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
2727 aarch64_arch_driver_info.
2729 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2731 * config/aarch64/aarch64.c (struct processor): Add ident field.
2732 Rename core sched_core.
2733 (all_cores): Handle above changes.
2734 (all_architectures): Likewise.
2735 (aarch64_parse_arch): Likewise.
2736 (aarch64_override_options): Likewise.
2738 2015-08-04 Richard Biener <rguenther@suse.de>
2740 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
2741 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
2742 comparisons embedded in [VEC_]COND_EXPRs.
2744 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
2746 * tree-if-conv.c: Fix various typos in comments.
2747 * tree-vect-stmts.c: Likewise.
2749 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
2751 PR tree-optimization/67043
2752 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
2753 preheader after hoisting invariant in it.
2754 (find_defs): Force recomputation of all luids.
2756 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
2758 * config/rs6000/htm.md (tabort.): Restrict the source operand to
2759 using a base register.
2761 2015-08-03 David Malcolm <dmalcolm@redhat.com>
2763 * main.c (main): Pass in NULL for toplev's external_timer.
2764 * timevar.c: Include coretypes.h.
2765 (class timer::named_items): New.
2766 (timer::named_items::named_items): New.
2767 (timer::named_items::~named_items): New.
2768 (timer::named_items::push): New.
2769 (timer::named_items::pop): New.
2770 (timer::named_items::print): New.
2771 (timer::timer): Initialize field "m_jit_client_items".
2772 (timer::~timer): New.
2773 (timer::push): Move bulk of implementation to...
2774 (timer::push_internal): ...here. New function.
2775 (timer::pop): Move bulk of implementation to...
2776 (timer::pop_internal): ...here. New function.
2777 (timer::push_client_item): New.
2778 (timer::pop_client_item): New.
2779 (timer::print_row): New function, taken from timer::print.
2780 (timer::print): Print "GCC items" header if we also have client
2781 items. Move row-printing to timer::print_row. Print any client
2783 (timer::get_topmost_item_name): New method.
2784 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
2785 (TV_JIT_CLIENT_CODE): New.
2786 * timevar.h (timer::push_client_item): New declaration.
2787 (timer::pop_client_item): New declaration.
2788 (timer::get_topmost_item_name): New method.
2789 (timer::push_internal): New declaration.
2790 (timer::pop_internal): New declaration.
2791 (timer::print_row): New declaration.
2792 (timer::named_items): New declaration.
2793 (timer::m_jit_client_items): New field.
2794 (timer): Add friend class named_items.
2795 (auto_timevar::auto_timevar): Add timer param.
2796 (auto_timevar::~auto_timevar): Use field "m_timer".
2797 (auto_timevar::m_timer): New field.
2798 * toplev.c (initialize_rtl): Add g_timer as param when
2799 constructing auto_timevar instance.
2800 (toplev::toplev): Add "external_timer" param, and use it to
2801 initialize the "g_timer" global if non-NULL.
2802 (toplev::~toplev): If this created "g_timer", delete it.
2803 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
2804 with "external_timer" timer *.
2806 2015-08-03 Alexander Basov <coohpt@gmail.com>
2811 * cfgexpand.c (expand_one_var): Add check if stack is going to
2812 be used in naked function.
2813 * expr.c (expand_expr_addr_expr_1): Remove excess checking
2814 whether expression should not reside in MEM.
2815 * function.c (use_register_for_decl): Do not use registers for
2816 non-register things (volatile, float, BLKMode) in naked functions.
2818 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
2821 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
2822 Adjust splits to match new pattern.
2824 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2826 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
2829 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
2830 point in VSX registers.
2832 * config/rs6000/constraints.md (wb constraint): Document unused
2834 (we constraint): Likewise.
2835 (wo constraint): Likewise.
2836 (wp constraint): New constraint for IEEE 128-bit floating point in
2838 (wq constraint): Likewise.
2840 * config/rs6000/predicates.md (easy_fp_constant): Add support for
2841 IEEE 128-bit floating point in VSX registers.
2842 (easy_scalar_constant): Likewise.
2844 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
2845 constraints (wp, wq) for IEEE 128-bit floating point in VSX
2847 (rs6000_init_hard_regno_mode_ok): Likewise.
2849 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
2850 floating point in VSX registers.
2859 (vsx_le_permute_<mode>): Add support to properly swap bytes for
2860 IEEE 128-bit floating point in VSX registers on little endian.
2861 (vsx_le_undo_permute_<mode>): Likewise.
2862 (vsx_le_perm_load_<mode>): Likewise.
2863 (vsx_le_perm_store_<mode>): Likewise.
2864 (splitters for IEEE 128-bit fp moves): Likewise.
2866 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
2869 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
2870 floating point in VSX registers.
2873 * doc/md.text (Machine Constraints): Document wp and wq
2874 constraints on PowerPC.
2876 2015-08-03 Jeff Law <law@redhat.com>
2879 PR gcov-profile/66899
2880 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
2881 iterate over the jump threading paths when an element in the
2882 jump threading paths array is eliminated.
2884 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
2886 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
2888 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
2890 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
2891 is_use_properly_guarded the variable def_preds. Free its
2892 contents before returning.
2893 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
2894 (is_use_properly_guarded): Replace local variable def_preds with
2895 a parameter. Adjust accordingly. Only update *def_preds if it's
2898 2015-08-03 Richard Biener <rguenther@suse.de>
2900 * genmatch.c (simplify::for_subst_vec): New member.
2901 (binary_ok): New helper for for lowering.
2902 (lower_for): Delay substituting operators into result expressions
2903 if we can merge the results eventually again.
2904 (capture_info::walk_result): Adjust for user_id appearing as
2905 result expression operator.
2906 (expr::gen_transform): Likewise.
2907 (dt_simplify::gen_1): Likewise.
2908 (dt_simplify::gen): Pass not substituted operators to tail
2909 functions or initialize local variable with it.
2910 (decision_tree::gen): Adjust function signature.
2911 * match.pd: Fix tests against global code and add default
2912 cases to switch stmts.
2914 2015-08-03 Richard Biener <rguenther@suse.de>
2916 * genmatch.c (dt_simplify::gen): Create captures array
2917 with an initializer.
2919 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2921 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
2922 the host compiler is affected by placement new aliasing bug.
2923 * configure: Regenerate.
2924 * Makefile.in (ALIASING_FLAGS): New variable.
2925 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
2927 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2930 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
2931 (negmulsf3_vfp): Likewise.
2932 (muldf3negdf_vfp): Disable for -frounding-math.
2933 (mulsf3negsf_vfp): Likewise.
2934 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
2935 fix MULT cost with -frounding-math.
2937 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2939 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
2940 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
2941 explicit. Prefer to add the flag whenever possible.
2942 (noce_process_if_block): Try noce_try_store_flag_constants before
2945 2015-08-03 Richard Biener <rguenther@suse.de>
2947 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
2948 New hash-map to record equivalent transforms.
2949 (dt_node::analyze): Populate the equivalent transforms hash-map.
2950 (dt_simplify::info): Add reference to hash-map entry.
2951 (dt_simplify::gen): If we have split out a function for the
2952 transform, generate a call to it.
2953 (sinfo_hashmap_traits::hash): New function.
2954 (compare_op): New helper function for ...
2955 (sinfo_hashmap_traits::equal_keys): ... this new function.
2956 (decision_tree::gen): Split out common equivalent transforms
2959 2015-08-03 Richard Biener <rguenther@suse.de>
2961 * gimple-fold.c (fold_gimple_assign): Remove folding of
2962 the comparison in COND_EXPRs.
2964 2015-08-03 Richard Biener <rguenther@suse.de>
2966 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
2967 on the rhs of assignments first simplify the embedded
2970 2015-08-03 Richard Biener <rguenther@suse.de>
2972 PR tree-optimization/66917
2973 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
2975 (DR_VECT_AUX): New macro.
2976 (set_dr_misalignment): Adjust.
2977 (dr_misalignment): Likewise.
2978 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2979 Compute whether the base is at least element aligned.
2980 * tree-vect-stmts.c (ensure_base_align): Adjust.
2981 (vectorizable_store): If the base is not element aligned
2982 preserve alignment of the original access if misalignment is unknown.
2983 (vectorizable_load): Likewise.
2985 2015-08-02 Martin Sebor <msebor@redhat.com>
2987 * c-family/c.opt (-Wframe-address): New warning option.
2988 * doc/invoke.texi (Wframe-address): Document it.
2989 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
2990 Clarify possible effects of calling the functions with non-zero
2991 arguments and mention -Wframe-address.
2992 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
2994 2015-08-01 Michael Collison <michael.collison@linaro.org
2995 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2997 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
2998 (*arm_umin_cmp): Likewise.
3000 2015-08-01 Caroline Tice <cmtice@google.com>
3003 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
3005 (vtbl_find_mangled_name): New function.
3006 (vtbl_register_mangled_name): New function.
3007 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
3008 mangled name in mangled name vectors.
3009 (find_or_create_vtbl_map_node): Ditto.
3010 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
3011 update recursion_depth on function entry; pass it to every recursive
3012 call; automatically exit if depth > 25 (give up looking at that point).
3013 (verify_bb_vtables): Initialize recursion_depth and pass it to
3014 var_is_used_for_virtual_call_p.
3015 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
3016 global variable decls.
3017 (vtbl_register_mangled_name): New extern function decl.
3019 2015-08-01 Tom de Vries <tom@codesourcery.com>
3021 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
3023 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
3025 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
3026 operation_no_trapping_overflow. Allow non-overflow operations.
3027 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
3030 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
3033 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
3035 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3037 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
3038 Enable for TARGET_32BIT.
3039 (*if_move_neg): Likewise.
3041 2015-07-31 Nick Clifton <nickc@redhat.com>
3043 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
3044 Returns true for __model__.
3045 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3047 2015-07-31 Alan Modra <amodra@gmail.com>
3050 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
3051 (rs6000_emit_prologue): Set it.
3052 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
3054 2015-07-31 Richard Biener <rguenther@suse.de>
3056 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
3057 -> X == (C1 ^ C2) which is already implemented in match.pd.
3058 Remove redundant dispatching to fold_relational_const.
3059 Move unordered self and NaN compares ...
3060 * match.pd: ... as patterns here. Remove some stray captures
3063 2015-07-31 Petr Murzin <petr.murzin@intel.com>
3065 * config/i386/i386.c
3066 (bdesc_special_args): Convert mask type from signed to unsigned for
3068 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
3069 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
3070 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
3071 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
3072 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
3073 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
3074 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
3075 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
3076 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
3077 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
3078 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
3079 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
3080 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
3081 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
3082 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
3083 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
3084 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
3085 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
3086 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
3087 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
3088 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
3089 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
3090 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
3091 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
3092 * config/i386/i386-builtin-types.def
3093 (V16QI_FTYPE_V16SI): Remove.
3094 (V8DF_FTYPE_V8SI): Ditto.
3095 (V8HI_FTYPE_V8DI): Ditto.
3096 (V8SI_FTYPE_V8DI): Ditto.
3097 (V8SF_FTYPE_V8DF): Ditto.
3098 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
3099 (V16HI_FTYPE_V16SI): Ditto.
3100 (V16SF_FTYPE_V16HI): Ditto.
3101 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
3102 (V16SF_FTYPE_V16SI): Ditto.
3103 (V4DI_FTYPE_V4DI): Ditto.
3104 (V16SI_FTYPE_V16SF): Ditto.
3105 (V16SF_FTYPE_FLOAT): Ditto.
3106 (V8DF_FTYPE_DOUBLE): Ditto.
3107 (V8DI_FTYPE_INT64): Ditto.
3108 (V8DI_FTYPE_V4DI): Ditto.
3109 (V16QI_FTYPE_V8DI): Ditto.
3110 (UINT_FTYPE_V4SF): Ditto.
3111 (UINT64_FTYPE_V4SF): Ditto.
3112 (UINT_FTYPE_V2DF): Ditto.
3113 (UINT64_FTYPE_V2DF): Ditto.
3114 (V16SI_FTYPE_V16SI): Ditto.
3115 (V8DI_FTYPE_V8DI): Ditto.
3116 (V16SI_FTYPE_PV4SI): Ditto.
3117 (V16SF_FTYPE_PV4SF): Ditto.
3118 (V8DI_FTYPE_PV2DI): Ditto.
3119 (V8DF_FTYPE_PV2DF): Ditto.
3120 (V4DI_FTYPE_PV2DI): Ditto.
3121 (V4DF_FTYPE_PV2DF): Ditto.
3122 (V16SI_FTYPE_PV2SI): Ditto.
3123 (V16SF_FTYPE_PV2SF): Ditto.
3124 (V8DI_FTYPE_PV4DI): Ditto.
3125 (V8DF_FTYPE_PV4DF): Ditto.
3126 (V8SF_FTYPE_FLOAT): Ditto.
3127 (V4SF_FTYPE_FLOAT): Ditto.
3128 (V4DF_FTYPE_DOUBLE): Ditto.
3129 (V8SF_FTYPE_PV4SF): Ditto.
3130 (V8SI_FTYPE_PV4SI): Ditto.
3131 (V4SI_FTYPE_PV2SI): Ditto.
3132 (V8SF_FTYPE_PV2SF): Ditto.
3133 (V8SI_FTYPE_PV2SI): Ditto.
3134 (V16SF_FTYPE_PV8SF): Ditto.
3135 (V16SI_FTYPE_PV8SI): Ditto.
3136 (V8DI_FTYPE_V8SF): Ditto.
3137 (V4DI_FTYPE_V4SF): Ditto.
3138 (V2DI_FTYPE_V4SF): Ditto.
3139 (V64QI_FTYPE_QI): Ditto.
3140 (V32HI_FTYPE_HI): Ditto.
3141 (V8UHI_FTYPE_V8UHI): Ditto.
3142 (V16UHI_FTYPE_V16UHI): Ditto.
3143 (V32UHI_FTYPE_V32UHI): Ditto.
3144 (V2UDI_FTYPE_V2UDI): Ditto.
3145 (V4UDI_FTYPE_V4UDI): Ditto.
3146 (V8UDI_FTYPE_V8UDI): Ditto.
3147 (V4USI_FTYPE_V4USI): Ditto.
3148 (V8USI_FTYPE_V8USI): Ditto.
3149 (V16USI_FTYPE_V16USI): Ditto.
3150 (V2DF_FTYPE_V2DF_UINT64): Ditto.
3151 (V2DI_FTYPE_V2DF_V2DF): Ditto.
3152 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
3153 (V8DF_FTYPE_V8DF_V8DI): Ditto.
3154 (V4SF_FTYPE_V4SF_UINT64): Ditto.
3155 (V4SI_FTYPE_V4SF_V4SF): Ditto.
3156 (V16SF_FTYPE_V16SF_V16SI): Ditto.
3157 (V64QI_FTYPE_V32HI_V32HI): Ditto.
3158 (V32HI_FTYPE_V16SI_V16SI): Ditto.
3159 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
3160 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
3161 (V32HI_FTYPE_V64QI_V64QI): Ditto.
3162 (V32HI_FTYPE_V32HI_V32HI): Ditto.
3163 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
3164 (V16SI_FTYPE_V16SI_V4SI): Ditto.
3165 (V16SI_FTYPE_V16SI_V16SI): Ditto.
3166 (V16SI_FTYPE_V32HI_V32HI): Ditto.
3167 (V16SI_FTYPE_V16SI_SI): Ditto.
3168 (V8DI_FTYPE_V8DI_V8DI): Ditto.
3169 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
3170 (V8DI_FTYPE_V16SI_V16SI): Ditto.
3171 (V8DI_FTYPE_V8DI_V2DI): Ditto.
3172 (QI_FTYPE_QI): Ditto.
3173 (SI_FTYPE_SI): Ditto.
3174 (DI_FTYPE_DI): Ditto.
3175 (QI_FTYPE_QI_QI): Ditto.
3176 (QI_FTYPE_QI_INT): Ditto.
3177 (HI_FTYPE_HI_INT): Ditto.
3178 (SI_FTYPE_SI_INT): Ditto.
3179 (DI_FTYPE_DI_INT): Ditto.
3180 (HI_FTYPE_V16QI_V16QI): Ditto.
3181 (SI_FTYPE_V32QI_V32QI): Ditto.
3182 (DI_FTYPE_V64QI_V64QI): Ditto.
3183 (QI_FTYPE_V8HI_V8HI): Ditto.
3184 (HI_FTYPE_V16HI_V16HI): Ditto.
3185 (SI_FTYPE_V32HI_V32HI): Ditto.
3186 (QI_FTYPE_V4SI_V4SI): Ditto.
3187 (QI_FTYPE_V8SI_V8SI): Ditto.
3188 (QI_FTYPE_V2DI_V2DI): Ditto.
3189 (QI_FTYPE_V4DI_V4DI): Ditto.
3190 (QI_FTYPE_V8DI_V8DI): Ditto.
3191 (HI_FTYPE_V16SI_V16SI): Ditto.
3192 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
3193 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
3194 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
3195 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
3196 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
3197 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
3198 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
3199 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
3200 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
3201 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
3202 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
3203 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
3204 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
3205 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
3206 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
3207 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
3208 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
3209 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
3210 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
3211 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
3212 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
3213 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
3214 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
3215 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
3216 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
3217 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
3218 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
3219 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
3220 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
3221 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
3222 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
3223 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
3224 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
3225 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
3226 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
3227 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
3228 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
3229 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
3230 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
3231 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
3232 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
3233 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
3234 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
3235 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
3236 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
3237 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
3238 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
3239 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
3240 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
3241 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
3242 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
3243 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
3244 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
3245 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
3246 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
3247 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
3248 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
3249 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
3250 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
3251 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
3252 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
3253 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
3254 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
3255 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
3256 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
3257 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
3258 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
3259 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
3260 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
3261 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
3262 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
3263 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
3264 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
3265 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
3266 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
3267 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
3268 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
3269 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
3270 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
3271 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
3272 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
3273 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
3274 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
3275 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
3276 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
3277 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
3278 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
3279 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
3280 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
3281 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
3282 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
3283 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
3284 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
3285 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
3286 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
3287 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
3288 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
3289 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
3290 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
3291 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
3292 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
3293 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
3294 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
3295 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
3296 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
3297 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
3298 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
3299 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
3300 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
3301 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
3302 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
3303 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
3304 (HI_FTYPE_HI): Ditto.
3305 (HI_FTYPE_V16QI): Ditto.
3306 (SI_FTYPE_V32QI): Ditto.
3307 (DI_FTYPE_V64QI): Ditto.
3308 (QI_FTYPE_V8HI): Ditto.
3309 (HI_FTYPE_V16HI): Ditto.
3310 (SI_FTYPE_V32HI): Ditto.
3311 (QI_FTYPE_V4SI): Ditto.
3312 (QI_FTYPE_V8SI): Ditto.
3313 (HI_FTYPE_V16SI): Ditto.
3314 (QI_FTYPE_V2DI): Ditto.
3315 (QI_FTYPE_V4DI): Ditto.
3316 (QI_FTYPE_V8DI): Ditto.
3317 (V16QI_FTYPE_HI): Ditto.
3318 (V32QI_FTYPE_SI): Ditto.
3319 (V64QI_FTYPE_DI): Ditto.
3320 (V8HI_FTYPE_QI): Ditto.
3321 (V16HI_FTYPE_HI): Ditto.
3322 (V32HI_FTYPE_SI): Ditto.
3323 (V4SI_FTYPE_QI): Ditto.
3324 (V4SI_FTYPE_HI): Ditto.
3325 (V8SI_FTYPE_QI): Ditto.
3326 (V8SI_FTYPE_HI): Ditto.
3327 (V2DI_FTYPE_QI): Ditto.
3328 (V4DI_FTYPE_QI): Ditto.
3329 (HI_FTYPE_HI_HI): Ditto.
3330 (SI_FTYPE_SI_SI): Ditto.
3331 (DI_FTYPE_DI_DI): Ditto.
3332 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
3333 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
3334 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
3335 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
3336 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
3337 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
3338 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
3339 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
3340 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
3341 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
3342 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
3343 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
3344 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
3345 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
3346 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
3347 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
3348 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
3349 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
3350 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
3351 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
3352 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
3353 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
3354 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
3355 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
3356 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
3357 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
3358 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
3359 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
3360 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
3361 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
3362 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
3363 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
3364 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
3365 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
3366 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
3367 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
3368 (V16SI_FTYPE_HI): Ditto.
3369 (V8DI_FTYPE_QI): Ditto.
3370 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
3371 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
3372 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
3373 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
3374 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
3375 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
3376 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
3377 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
3378 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
3379 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
3380 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
3381 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
3382 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
3383 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
3384 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
3385 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
3386 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
3387 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
3388 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
3389 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
3390 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
3391 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
3392 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
3393 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
3394 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
3395 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
3396 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
3397 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
3398 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
3399 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
3400 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
3401 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
3402 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
3403 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
3404 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
3405 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
3406 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
3407 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
3408 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
3409 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
3410 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
3411 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
3412 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
3413 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
3414 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
3415 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
3416 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
3417 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
3418 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
3419 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
3420 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
3421 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
3422 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
3423 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
3424 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
3425 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
3426 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
3427 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
3428 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
3429 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
3430 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
3431 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
3432 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
3433 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
3434 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
3435 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
3436 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
3437 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
3438 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
3439 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
3440 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
3441 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
3442 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
3443 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
3444 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
3445 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
3446 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
3447 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
3448 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
3449 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
3450 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
3451 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
3452 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
3453 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
3454 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
3455 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
3456 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
3457 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
3458 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
3459 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
3460 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
3461 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
3462 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
3463 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
3464 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
3465 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
3466 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
3467 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
3468 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
3469 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
3470 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
3471 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
3472 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
3473 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
3474 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
3475 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
3476 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
3477 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
3478 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
3479 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
3480 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
3481 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
3482 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
3483 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
3484 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
3485 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
3486 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
3487 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
3488 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
3489 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
3490 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
3491 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
3492 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
3493 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
3494 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
3495 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
3496 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
3497 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
3498 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
3499 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
3500 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
3501 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
3502 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
3503 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
3504 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
3505 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
3506 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
3507 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
3508 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
3509 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
3510 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
3511 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
3512 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
3513 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
3514 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
3515 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
3516 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
3517 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
3518 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
3519 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
3520 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
3521 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
3522 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
3523 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
3524 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
3525 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
3526 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
3527 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
3528 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
3529 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
3530 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
3531 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
3532 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
3533 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
3534 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
3535 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
3536 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
3537 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
3538 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
3539 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
3540 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
3541 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
3542 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
3543 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
3544 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
3545 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
3546 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
3547 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
3548 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
3549 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
3550 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
3551 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
3552 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
3553 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
3554 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
3555 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
3556 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
3557 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
3558 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
3559 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
3560 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
3561 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
3562 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
3563 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
3564 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
3565 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
3566 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
3567 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
3568 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
3569 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
3570 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
3571 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
3572 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
3573 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
3574 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
3575 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
3576 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
3577 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
3578 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
3579 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
3580 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
3581 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
3582 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
3583 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
3584 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
3585 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
3586 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
3587 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
3588 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
3589 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
3590 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
3591 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
3592 (QI_FTYPE_V8DF_INT_QI): Ditto.
3593 (QI_FTYPE_V4DF_INT_QI): Ditto.
3594 (QI_FTYPE_V2DF_INT_QI): Ditto.
3595 (HI_FTYPE_V16SF_INT_HI): Ditto.
3596 (QI_FTYPE_V8SF_INT_QI): Ditto.
3597 (QI_FTYPE_V4SF_INT_QI): Ditto.
3598 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
3600 2015-07-31 Richard Biener <rguenther@suse.de>
3602 * gimple-fold.c (fold_gimple_assign): Remove folding of
3605 2015-07-31 Tom de Vries <tom@codesourcery.com>
3607 PR tree-optimization/66846
3608 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
3609 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
3610 (expand_omp_target) [ENABLE_CHECKING]: Same.
3611 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
3612 cfun if !LOOPS_NEED_FIXUP.
3613 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
3614 that omp_for already has its own loop struct.
3615 * tree-parloops.c (create_phi_for_local_result)
3616 (create_call_for_reduction): Handle simple latch bb.
3617 (create_parallel_loop): Add simple latch bb to preserve
3618 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
3619 (gen_parallel_loop): Remove call to cancel_loop_tree.
3620 (parallelize_loops): Skip loops that are inner loops of parallelized
3622 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
3623 verify_loop_structure.
3625 2015-07-30 Anatoly Sokolov <aesok@post.ru>
3627 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
3628 * config/v850/v850.md (RV_REGNUM): New constants.
3629 * config/v850/v850.c (v850_libcall_value): New functions.
3630 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
3631 (TARGET_LIBCALL_VALUE): Define.
3633 2015-07-30 Anatoly Sokolov <aesok@post.ru>
3635 * rtl.h (lowpart_subreg): Move in file.
3636 * loop-iv.c (lowpart_subreg): Move to...
3637 * simplify-rtx.c (lowpart_subreg): ...here.
3638 (simplify_binary_operation_1): Use lowpart_subreg instead of
3639 simplify_gen_subreg.
3640 * expr.c (expand_expr_real_2): Ditto.
3641 * emit-rtl.c (gen_lowpart_common): Ditto.
3642 * combine.c (gen_lowpart_for_combine): Ditto.
3643 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
3644 expand_debug_source_expr): Ditto.
3646 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
3648 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
3649 (expand_builtin_atomic_clear): Remove support for atomic_clear
3652 2015-07-30 Richard Biener <rguenther@suse.de>
3654 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
3655 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
3656 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
3657 redundant operand canonicalization.
3659 2015-07-30 David Sherwood <david.sherwood@arm.com>
3661 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
3662 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
3663 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
3664 * config/arm/arm.c (neon_valid_immediate): Likewise.
3665 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
3666 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
3667 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
3668 (expand_vec_perm_vpshufb2_vpermq): Likewise.
3669 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
3670 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
3671 * config/i386/sse.md
3672 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
3673 (*ssse3_palignr<mode>_perm): Likewise.
3674 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
3675 * config/spu/spu.c (arith_immediate_p): Likewise.
3676 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3677 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
3679 2015-07-30 Richard Biener <rguenther@suse.de>
3681 * genmatch.c (decision_tree::gen_gimple): Merge with ...
3682 (decision_tree::gen_generic): ... this into ...
3683 (decision_tree::gen): ... this.
3684 (main): Adjust callers.
3686 2015-07-30 Richard Biener <rguenther@suse.de>
3688 * genmatch.c (verbose): New global.
3689 (warning_at): Add overload with source_location.
3690 (capture_info::capture_info): Add bool whether generating gimple
3691 or generic. Add gimple member.
3692 (capture_info::cinfo): Add capture member.
3693 (capture_info::walk_match): Record capture. Warn on
3695 (capture_info::walk_c_expr): Add more fragments captures cannot
3696 escape through. Warn on escaped captures.
3697 (dt_simplify::gen_1): Warn on operands we force to have no
3699 (main): Initialize verbose.
3700 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
3702 2015-07-30 Richard Biener <rguenther@suse.de>
3705 * match.pd: Allow both operands to independently have conversion
3706 when simplifying compares of addresses.
3708 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
3712 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
3713 around those cases that need one.
3715 2015-07-29 Aditya Kumar <hiraditya@msn.com>
3717 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
3719 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
3721 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
3722 New. Copied from config/i386/gnu-user.h.
3723 (ASM_COMMENT_START): Likewise.
3724 (DBX_REGISTER_NUMBER): Likewise.
3726 2015-07-29 Richard Biener <rguenther@suse.de>
3728 * gimple-fold.c (fold_gimple_cond): Remove.
3729 (fold_stmt_1): Do not call it.
3731 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
3733 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
3734 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
3736 * config/aarch64/aarch64-modes.def: Add HFmode.
3738 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
3739 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
3741 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
3742 aarch64_promoted_type): New.
3744 (aarch64_float_const_representable_p): Disable HFmode.
3745 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
3746 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
3747 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
3749 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
3750 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
3752 * config/aarch64/iterators.md (GPF_F16): New.
3754 2015-07-29 Richard Biener <rguenther@suse.de>
3756 * match.pd: Merge address comparison patterns and make them
3757 handle some more cases.
3759 2015-07-29 Richard Biener <rguenther@suse.de>
3761 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
3762 (parser::parse_capture): Add bool argument on whether to reject
3764 (parser::parse_expr): Adjust.
3765 (parser::parse_op): Likewise.
3766 (parser::parse_pattern): Likewise.
3768 2015-07-29 Richard Biener <rguenther@suse.de>
3770 * gimple-fold.c (has_use_on_stmt): New function.
3771 (replace_stmt_with_simplification): Use it to allow
3772 abnormals originally referenced in the stmt.
3773 (fold_stmt_1): Canonicalize operand order.
3775 2015-07-28 David Sherwood <david.sherwood@arm.com>
3777 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
3778 GET_MODE_INNER unconditionally.
3779 * config/spu/spu.c (arith_immediate_p): Likewise.
3780 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
3781 * expmed.c (synth_mult): Remove check for VOIDmode result from
3783 (expand_mult_const): Likewise.
3784 * fold-const.c (fold_binary_loc): Replace call to element_precision
3785 with call to GET_MODE_PRECISION.
3786 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
3788 (emit_mode_inner): Likewise.
3789 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
3791 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
3792 (GET_MODE_UNIT_PRECISION): Likewise.
3793 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
3794 * simplify-rtx.c (simplify_immed_subreg): Likewise.
3795 * stor-layout.c (bitwise_type_for_mode): Update assert.
3796 (element_precision): Remove.
3798 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
3800 * target-insns.def (reload_load_address): New targetm instruction
3802 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
3804 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
3806 * target-insns.def (atomic_test_and_set): New targetm instruction
3808 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
3809 HAVE_*/gen_* interface.
3811 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
3813 * target-insns.def (can_extend, ptr_extend): New targetm instruction
3815 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
3816 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3817 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
3818 * rtlanal.c (nonzero_bits1): Likewise.
3819 (num_sign_bit_copies1): Likewise.
3821 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
3823 * target-insns.def (eh_return): New targetm instruction pattern.
3824 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
3826 * function.c (thread_prologue_and_epilogue_insns): Remove
3827 preprocessor condition.
3829 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
3831 * target-insns.def (indirect_jump): New targetm instruction pattern.
3832 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
3835 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
3837 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
3838 instead of nonimmediate_operand. Remove C condiition.
3840 2015-07-28 Richard Biener <rguenther@suse.de>
3842 * match.pd: Add more simplification of address comparisons.
3844 2015-07-28 Richard Biener <rguenther@suse.de>
3846 * match.pd: Re-order two cases in comparison with max/min
3847 value simplification to make it apply for bools.
3849 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3851 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
3852 Handle simple SIGN_EXTEND or ZERO_EXTEND.
3853 (aarch64_rtx_costs): Properly strip extend or extract before
3854 passing down to rtx costs again.
3856 2015-07-28 Nick Clifton <nickc@redhat.com>
3858 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
3859 Optimizes the case where -mes0 is active and a constant symbolic
3861 * config/rl78/rl78-protos.h: Prototype the new function.
3862 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
3864 2015-07-28 Tom de Vries <tom@codesourcery.com>
3866 * tree-parloops.c (reduc_stmt_res): New function.
3867 (initialize_reductions, add_field_for_reduction)
3868 (create_phi_for_local_result, create_loads_for_reductions)
3869 (create_stores_for_reduction, build_new_reduction): Handle case that
3870 reduc_stmt is a phi.
3871 (gather_scalar_reductions): Allow double_reduc reductions.
3873 2015-07-28 Richard Biener <rguenther@suse.de>
3875 * fold-const.c (fold_comparison): Remove equality folding
3876 of decl addresses ...
3877 * match.pd: ... here and merge with existing pattern.
3879 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
3881 PR tree-optimization/66828
3882 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
3883 from int64_t to uint64_t.
3885 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
3887 * opts-common.c (read_cmdline_option): List DriverOnly enum values
3888 as valid only in the error message of the driver, not in the
3889 messages of the language compilers.
3891 2015-07-27 Tom de Vries <tom@codesourcery.com>
3893 * tree-parloops.c (gather_scalar_reductions): Simplify function
3896 2015-07-27 Marek Polacek <polacek@redhat.com>
3898 * ipa-devirt.c (types_same_for_odr): Fix typo.
3900 2015-07-27 Jason Merrill <jason@redhat.com>
3903 * dwarf2out.c (gen_inlined_subroutine_die): Check
3904 cgraph_function_possibly_inlined_p.
3906 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
3908 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
3909 Place integer variant first.
3910 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
3912 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
3915 * config/arm/arm-builtins.c (enum arm_builtins):
3916 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
3917 (ARM_BUILTIN_NEON_BASE): Rename macro to....
3918 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
3919 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
3920 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
3922 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
3925 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
3926 Add qualifier_lane_index.
3927 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
3928 (arm_getlane_qualifiers): Use qualifier_lane_index.
3929 (arm_lanemac_qualifiers): Rename to...
3930 (arm_mac_n_qualifiers): ...this.
3931 (LANEMAC_QUALIFIERS): Rename to...
3932 (MAC_N_QUALIFIERS): ...this.
3933 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
3934 (arm_setlane_qualifiers): Use qualifier_lane_index.
3935 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
3936 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
3937 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
3938 (arm_expand_neon_builtin): Handle qualifier_lane_index.
3940 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
3941 * config/arm/arm.c (bounds_check): Likewise, improve error message.
3942 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
3943 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
3944 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
3945 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
3946 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
3947 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
3948 qualifiers to TERNOP_IMM.
3949 (vdup_lane): Change qualifiers to GETLANE.
3950 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
3951 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
3952 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
3953 vqdmlsl_n): Change qualifiers to MAC_N.
3955 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
3956 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
3957 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
3958 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
3959 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
3960 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
3961 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
3962 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
3963 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
3964 Remove call to neon_lane_bounds.
3966 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
3968 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
3969 Place integer variant first.
3971 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
3973 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
3974 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
3975 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
3976 for armv6kz targets.
3977 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
3978 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
3979 (FL_FOR_ARCH6ZK): Remove.
3980 (FL_FOR_ARCH6KZ): New.
3981 (arm_arch6zk): New declaration.
3982 * config/arm/arm-tables.opt: Regenerate.
3983 * config/arm/arm.c (arm_arch6kz): New.
3984 (arm_option_override): Set arm_arch6kz.
3985 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
3986 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
3987 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
3989 2015-07-27 Marek Polacek <polacek@redhat.com>
3993 * doc/invoke.texi: Document -Wtautological-compare.
3995 2015-07-27 Richard Biener <rguenther@suse.de>
3997 * genmatch.c (decision_tree::gen_gimple): Split out large
3998 subtrees into separate functions.
3999 (decision_tree::gen_generic): Likewise.
4001 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
4003 * config/alpha/alpha.c: Use SUBREG_P predicate.
4004 * config/alpha/predicates.md: Ditto.
4006 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
4008 * config.host (s390*-*-*): Include driver-native.c only when
4009 building with s390* as host *and* target.
4011 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
4014 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
4015 T bit register modified_between_p check.
4017 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
4019 * config/i386/i386.c: Use SUBREG_P predicate.
4020 * config/i386/i386.md: Ditto.
4021 * config/i386/sse.md: Ditto.
4022 * config/i386/predicates.md: Ditto.
4024 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
4027 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
4028 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
4030 2015-07-25 Sebastian Pop <s.pop@samsung.com>
4032 * Makefile.in: Remove use of TREEBROWSER.
4033 * config.in: Regenerated.
4034 * configure: Regenerated.
4035 * configure.ac: Remove definition of TREEBROWSER.
4036 * tree-browser.c: Removed.
4037 * tree-browser.def: Removed.
4039 2015-07-25 Sebastian Pop <s.pop@samsung.com>
4041 * graphite-scop-detection.c: Include gimple-pretty-print.h.
4042 (stmt_simple_for_scop_p): Print when a stmt is not handled in
4044 (scopdet_basic_block_info): Print when a loop or bb cannot be
4045 represented in Graphite.
4047 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
4050 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
4051 execution guard when min_size is less than size_needed.
4053 2015-07-25 Sebastian Pop <s.pop@samsung.com>
4055 * doc/install.texi: Document supported versions of ISL.
4057 2015-07-25 Jeff Law <law@redhat.com>
4061 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
4062 unable to find X NE 0 in the tables, return X as the simplified
4064 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
4065 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
4067 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
4068 after removing the control flow statement and unnecessary edges.
4070 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
4073 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
4075 PR rtl-optimization/64164
4076 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4077 * tree-ssa-copyrename.c: Removed.
4078 * opts.c (default_options_table): Drop -ftree-copyrename. Add
4079 -ftree-coalesce-vars.
4080 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4081 * common.opt (ftree-copyrename): Ignore.
4082 (ftree-coalesce-inlined-vars): Likewise.
4083 * doc/invoke.texi: Remove the ignored options above.
4084 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4085 * tree-ssa-coalesce.h: ... here.
4086 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4087 headers required by it.
4088 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4089 across variables when flag_tree_coalesce_vars. Check register
4090 use and promoted modes to allow coalescing. Moved to
4091 tree-ssa-coalesce.c.
4092 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4093 with its member functions to tree-ssa-coalesce.c.
4094 (var_map_base_init): Likewise. Renamed to
4095 compute_samebase_partition_bases.
4096 (partition_view_normal): Drop want_bases parameter.
4097 (partition_view_bitmap): Likewise.
4098 * tree-ssa-live.h: Adjust declarations.
4099 * tree-ssa-coalesce.c: Include explow.h.
4100 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4101 default defs at the entry point.
4102 (dump_part_var_map): New.
4103 (compute_optimized_partition_bases): New, called by...
4104 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4105 of compute_samebase_partition_bases. Adjust.
4106 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4107 * cfgexpand.c (leader_merge): New.
4108 (get_rtl_for_parm_ssa_default_def): New.
4109 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4110 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4111 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4112 redundant MEM attr setting.
4113 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4115 (expand_one_stack_var): ... this. New wrapper to check and
4116 skip already expanded SSA partitions.
4117 (record_alignment_for_reg_var): New, factored out of...
4118 (expand_one_var): ... this.
4119 (expand_one_ssa_partition): New.
4120 (adjust_one_expanded_partition_var): New.
4121 (expand_one_register_var): Check and skip already expanded SSA
4123 (expand_used_vars): Don't create DECLs for anonymous SSA
4124 names. Expand all SSA partitions, then adjust all SSA names.
4125 (pass::execute): Replace the loops that set
4126 SA.partition_to_pseudo from partition leaders and cleared
4127 DECL_RTL for multi-location variables, and that which used to
4128 rename vars and set attrs, with one that clears DECL_RTL and
4129 checks that PARMs and RESULTs default_defs match DECL_RTL.
4130 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4131 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4132 * explow.c (promote_ssa_mode): New.
4133 * explow.h (promote_ssa_mode): Declare.
4134 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4135 * function.c: Include cfgexpand.h.
4136 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4137 (use_register_for_parm_decl): Wrapper for the above to
4138 special-case the result_ptr.
4139 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4140 (split_complex_args): Take assign_parm_data_all argument.
4141 Pass it to rtl_for_parm. Set up rtl and context for split
4143 (assign_parms_augmented_arg_list): Adjust.
4144 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4145 multiple locations. Recognize split complex args.
4146 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4147 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
4148 (assign_parm_setup_block): Prefer SSA-assigned location.
4149 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
4150 if stack_parm is NULL.
4151 (assign_parm_setup_stack): Prefer SSA-assigned location.
4152 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
4153 rtl before testing for pointer bounds. Special-case result_ptr.
4154 (expand_function_start): Maybe reset DECL_RTL of result.
4155 Prefer SSA-assigned location for result and static chain.
4156 Factor out DECL_RESULT and SET_DECL_RTL.
4157 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4158 anonymous SSA names. Use promote_ssa_mode.
4159 (get_temp_reg): Likewise.
4160 (remove_ssa_form): Adjust.
4161 * stor-layout.c (layout_decl): Don't set mem attributes of
4163 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4164 and get its reg_usage for reg invalidation.
4165 (compute_bb_dataflow): Pass it insn.
4166 (emit_notes_in_bb): Likewise.
4168 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
4170 * config/i386/i386.c (ix86_va_start): Remove
4171 unneeded !TARGET_64BIT check.
4172 (ix86_gimplify_va_arg): Ditto.
4174 2015-07-24 Tom de Vries <tom@codesourcery.com>
4176 * graphite-sese-to-poly.c (build_poly_scop): Always call
4177 rewrite_commutative_reductions_out_of_ssa.
4179 2015-07-24 Tom de Vries <tom@codesourcery.com>
4181 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
4182 flag_associative_math to FLOAT_TYPE_P. Honour
4183 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
4185 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
4188 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
4189 and "%qD" in warning_at instead of "%q+D" in warning.
4191 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
4193 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
4194 (ix86_function_abi): Cleanup.
4196 2015-07-24 Michael Darling <darlingm@gmail.com>
4199 * acinclude.m4: Reflects renaming of configure.in to configure.ac
4200 * configure: Likewise
4201 * configure.ac: Likewise
4202 * doc/install.texi: Likewise
4203 * doc/tm.texi: Likewise
4204 * doc/tm.texi.in: Likewise
4206 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4208 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
4209 manually swapping values.
4210 * cse.c (fold_rtx): Likewise.
4211 * lra-eliminations.c (form_sum): Likewise.
4213 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
4216 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
4217 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
4218 (*jcc_1, *jcc_2, jump, simple_return_internal)
4219 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
4220 Set length_nobnd attribute instead of length attribute.
4221 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
4222 (length_nobnd): Remove attribute.
4223 (length): Remove length_nobnd processing.
4225 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
4227 * gimplify.c (omp_default_clause): New function. Reorganize flow
4228 for clarity. Broken out of ...
4229 (omp_notice_variable): ... here.
4231 2015-07-24 Gary Funck <gary@intrepid.com>
4234 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
4235 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
4237 2015-07-24 Tom de Vries <tom@codesourcery.com>
4239 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
4240 exit-first loop transform.
4242 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
4245 * tree-cfg.c (struct replace_decls_d): New struct.
4246 (replace_block_vars_by_duplicates_1): New function.
4247 (replace_block_vars_by_duplicates): Use it to replace the decls
4248 in the value exprs by duplicates.
4250 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
4252 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
4253 -shared, -symbolic, -rdynamic.
4255 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
4258 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
4259 -dynamic-linker within %{!static %{!shared, and -rdynamic within
4262 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
4265 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
4266 edge summary is available.
4268 2015-07-24 Richard Biener <rguenther@suse.de>
4270 * genmatch.c (struct dt_node): Add statistic fields.
4271 (dt_node::analyze): New method.
4272 (decision_tree::gen_gimple): Call analyze on the root node
4273 and print statistics to stderr.
4274 (decision_tree::gen_generic): Likewise.
4276 2015-07-24 Richard Biener <rguenther@suse.de>
4278 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
4279 against the highest or lowest possible integer ...
4280 * match.pd: ... as patterns here.
4282 2015-07-24 Richard Biener <rguenther@suse.de>
4284 * genmatch.c (struct capture_info): Add same_as field.
4285 (capture_info::capture_info): Initialize same_as.
4286 (capture_info::walk_match): Compute same_as.
4287 (capture_info::walk_result): Compute stuff for the leader.
4288 (capture_info::walk_c_expr): Likewise.
4289 (dt_simplify::gen_1): Only look at leaders when deciding
4290 to force no side-effects or emit side-effects of omitted operands.
4292 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4294 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
4295 reg note to the GPR -> FPR save instructions.
4297 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4299 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
4301 (s390_expand_insv): Don't generate risbg pattern for constant zero
4303 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
4304 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
4307 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
4309 * config/s390/s390.c (s390_reorg): Clean up handling of processors
4312 (s390_issue_rate): Likewise.
4313 (s390_sched_reorder): Likewise.
4314 (s390_sched_variable_issue): Likewise.
4315 (s390_loop_unroll_adjust): Likewise.
4316 (s390_option_override): Likewise.
4318 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
4320 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
4321 processor capabilities with -march=native.
4322 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
4323 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
4324 (S390_TARGET_BITS_STRING): Macro to simplify specs.
4326 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
4328 * config/s390/s390.c (s390_issue_rate): Handle
4329 PROCESSOR_2094_Z9_EC.
4330 (s390_option_override): Likewise.
4331 (s390_adjust_priority): Likewise.
4333 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
4335 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
4336 when cross compiling.
4338 2015-07-24 Richard Biener <rguenther@suse.de>
4340 * fold-const.c (maybe_canonicalize_comparison_1): Move
4341 A code CST canonicalization ...
4342 * match.pd: ... to a pattern here.
4344 2015-07-24 Jiong Wang <jiong.wang@arm.com>
4347 2015-07-22 Jiong Wang <jiong.wang@arm.com>
4349 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
4350 (HONOR_REG_ALLOC_ORDER): Define.
4352 2015-07-24 Richard Biener <rguenther@suse.de>
4354 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
4355 * fold-const.c (fold_comparison): Move parameter does not
4356 alias &local simplification ...
4357 * match.pd: ... as a pattern here.
4359 2015-07-24 Richard Biener <rguenther@suse.de>
4361 * gimple-fold.c (replace_stmt_with_simplification): Special-case
4362 valueizing call operands.
4363 * gimple-match-head.c (maybe_push_res_to_seq): Take
4364 number of call arguments from ops array.
4365 (do_valueize): New function.
4366 (gimple_simplify): Return true if valueization changed
4367 any operand even if the result didn't simplify further.
4369 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4372 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
4374 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4377 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
4379 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
4381 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
4384 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
4386 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
4389 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
4391 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
4392 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
4394 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
4395 ms_va_list_type_node initialization.
4397 2015-07-23 Jeff Law <law@redhat.com>
4400 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
4401 unable to find X NE 0 in the tables, return X as the simplified
4403 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
4404 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
4406 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
4407 after removing the control flow statement and unnecessary edges.
4409 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
4411 * tree-pass.h (get_current_pass_name): Removed.
4413 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
4415 PR rtl-optimization/64164
4416 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4417 * tree-ssa-copyrename.c: Removed.
4418 * opts.c (default_options_table): Drop -ftree-copyrename. Add
4419 -ftree-coalesce-vars.
4420 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4421 * common.opt (ftree-copyrename): Ignore.
4422 (ftree-coalesce-inlined-vars): Likewise.
4423 * doc/invoke.texi: Remove the ignored options above.
4424 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4425 * tree-ssa-coalesce.h: ... here.
4426 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4427 headers required by it.
4428 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4429 across variables when flag_tree_coalesce_vars. Check register
4430 use and promoted modes to allow coalescing. Moved to
4431 tree-ssa-coalesce.c.
4432 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4433 with its member functions to tree-ssa-coalesce.c.
4434 (var_map_base_init): Likewise. Renamed to
4435 compute_samebase_partition_bases.
4436 (partition_view_normal): Drop want_bases parameter.
4437 (partition_view_bitmap): Likewise.
4438 * tree-ssa-live.h: Adjust declarations.
4439 * tree-ssa-coalesce.c: Include explow.h.
4440 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4441 default defs at the entry point.
4442 (dump_part_var_map): New.
4443 (compute_optimized_partition_bases): New, called by...
4444 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4445 of compute_samebase_partition_bases. Adjust.
4446 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4447 * cfgexpand.c (leader_merge): New.
4448 (get_rtl_for_parm_ssa_default_def): New.
4449 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4450 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4451 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4452 redundant MEM attr setting.
4453 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4455 (expand_one_stack_var): ... this. New wrapper to check and
4456 skip already expanded SSA partitions.
4457 (record_alignment_for_reg_var): New, factored out of...
4458 (expand_one_var): ... this.
4459 (expand_one_ssa_partition): New.
4460 (adjust_one_expanded_partition_var): New.
4461 (expand_one_register_var): Check and skip already expanded SSA
4463 (expand_used_vars): Don't create DECLs for anonymous SSA
4464 names. Expand all SSA partitions, then adjust all SSA names.
4465 (pass::execute): Replace the loops that set
4466 SA.partition_to_pseudo from partition leaders and cleared
4467 DECL_RTL for multi-location variables, and that which used to
4468 rename vars and set attrs, with one that clears DECL_RTL and
4469 checks that PARMs and RESULTs default_defs match DECL_RTL.
4470 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4471 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4472 * explow.c (promote_ssa_mode): New.
4473 * explow.h (promote_ssa_mode): Declare.
4474 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4475 * function.c: Include cfgexpand.h.
4476 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4477 (use_register_for_parm_decl): Wrapper for the above to
4478 special-case the result_ptr.
4479 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4480 (split_complex_args): Take assign_parm_data_all argument.
4481 Pass it to rtl_for_parm. Set up rtl and context for split
4483 (assign_parms_augmented_arg_list): Adjust.
4484 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4485 multiple locations. Recognize split complex args.
4486 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4487 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
4488 (assign_parm_setup_block): Prefer SSA-assigned location.
4489 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
4490 if stack_parm is NULL.
4491 (assign_parm_setup_stack): Prefer SSA-assigned location.
4492 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
4493 rtl before testing for pointer bounds. Special-case result_ptr.
4494 (expand_function_start): Maybe reset DECL_RTL of result.
4495 Prefer SSA-assigned location for result and static chain.
4496 Factor out DECL_RESULT and SET_DECL_RTL.
4497 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4498 anonymous SSA names. Use promote_ssa_mode.
4499 (get_temp_reg): Likewise.
4500 (remove_ssa_form): Adjust.
4501 * stor-layout.c (layout_decl): Don't set mem attributes of
4503 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4504 and get its reg_usage for reg invalidation.
4505 (compute_bb_dataflow): Pass it insn.
4506 (emit_notes_in_bb): Likewise.
4508 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
4511 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
4513 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
4514 (rs6000_emit_2insn_and): Handle dot forms.
4515 * config/rs6000/rs6000.md (and<mode>3): Adjust.
4516 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
4517 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
4519 2015-07-23 Richard Biener <rguenther@suse.de>
4521 * generic-match-head.c: Include cgraph.h.
4522 * gimple-match-head.c: Likewise.
4523 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
4525 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
4526 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
4529 2015-07-23 Richard Biener <rguenther@suse.de>
4531 * gimple-fold.c (fold_gimple_cond): Do not require folding
4532 results to pass valid_gimple_rhs_p.
4533 * tree-cfg.h (fold_cond_expr_cond): Remove.
4534 * tree-cfg.c (fold_cond_expr_cond): Likewise.
4535 (make_edges): Do not call it.
4536 * tree-inline.c (tree_function_versioning): Likewise.
4538 2015-07-23 Tom de Vries <tom@codesourcery.com>
4540 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
4541 vect_force_simple_reduction.
4542 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
4543 (vect_is_simple_reduction_1): Add and handle
4544 need_wrapping_integral_overflow parameter.
4545 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
4546 need_wrapping_integral_overflow parameter.
4547 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
4548 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
4551 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
4553 PR tree-optimization/66926,66951
4554 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
4555 INNER_LOOP and fix up condition for renaming virtual operands.
4557 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4559 * combine.c (try_combine): Use std::swap instead of manually
4562 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
4564 * config/mips/i6400.md: New file.
4565 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
4566 (mips64r6): Likewise.
4568 * config/mips/mips-tables.opt: Regenerate.
4569 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
4570 (mips_issue_rate): Add support for i6400.
4571 (mips_multipass_dfa_lookahead): Likewise.
4572 * config/mips/mips.h (TUNE_I6400): Define.
4573 * config/mips/mips.md: Include i6400.md.
4574 (processor): Add i6400.
4575 * doc/invoke.texi (-march=@var{arch}): Add i6400.
4577 2015-07-23 Richard Biener <rguenther@suse.de>
4580 * match.pd: Guard widen and sign-change comparison simplification
4583 2015-07-23 Richard Biener <rguenther@suse.de>
4585 PR tree-optimization/66945
4586 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
4587 ::before_dom_children): Force the propagators idea of
4588 non-executable edges to materialize, not what the folder
4591 2015-07-23 Richard Biener <rguenther@suse.de>
4593 * gimple.h (gimple_cond_make_false): Use 0 != 0.
4594 (gimple_cond_make_true): Use 1 != 0.
4596 2015-07-22 DJ Delorie <dj@redhat.com>
4598 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
4601 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
4602 (ashrhi3): Likewise.
4603 (lshrhi3): Likewise.
4604 (movhi): Take advantage of zero-extend to load small constants.
4606 (and<mode>3): Likewise.
4607 (zero_extendqihi2): Likewise.
4608 (zero_extendqisi2): New.
4609 * config/msp430/constraints.md (N,O): New.
4610 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
4612 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
4615 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
4616 to enum feature_priority and feature_list.
4617 (fold_builtin_cpu): Add F_AES to enum processor_features
4618 and isa_names_table.
4620 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
4623 * config/i386/linux-common.h (MPX_SPEC): Use linker option
4624 for 64bit target only.
4626 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
4628 * config/nvptx/nvptx.c: Expand some comments.
4630 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
4632 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
4633 (cortex_a53_advsimd): ...This.
4635 2015-07-22 Richard Biener <rguenther@suse.de>
4637 * genmatch.c (expr::gen_transform): Clarify error message
4638 and display location.
4640 2015-07-22 Richard Biener <rguenther@suse.de>
4642 * genmatch.c (struct operand): Add location member.
4643 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
4645 (struct simplify): Remove match_location and result_location
4647 (elsehwere): Adjust.
4649 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
4651 * config/mips/m5100.md: New file.
4652 * config/mips/mips-cpus.def (m5100, m5101): Define.
4653 * config/mips/mips-tables.opt: Regenerate.
4654 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
4655 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
4656 -march=m5101 to -mips32r5.
4657 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
4658 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
4660 * config/mips/mips.md: Include m5100.md.
4661 (processor): Add m5100.
4662 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
4664 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
4666 * config/mips/mips-cpus.def (interaptiv): Define.
4667 * config/mips/mips-tables.opt: Regenerate.
4668 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
4670 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
4671 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
4673 2015-07-22 Jiong Wang <jiong.wang@arm.com>
4676 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
4677 (HONOR_REG_ALLOC_ORDER): Define.
4679 2015-07-22 Richard Biener <rguenther@suse.de>
4681 PR tree-optimization/66952
4682 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
4683 blocks we end up executing unconditionally reset all SSA
4684 info such as range and alignment.
4685 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
4686 * tree-ssanames.c (reset_flow_sensitive_info): New function.
4688 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
4690 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
4693 2015-07-22 Richard Biener <rguenther@suse.de>
4695 * genmatch.c (parser::parse_result): Properly handle
4696 match with result operands and conditions.
4698 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
4701 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
4702 Add qualifier_struct_load_store_lane_index.
4703 (aarch64_types_loadstruct_lane_qualifiers): Use
4704 qualifier_struct_load_store_lane_index for lane index argument for
4706 (aarch64_types_storestruct_lane_qualifiers): Ditto.
4707 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4708 (aarch64_simd_expand_args): Add new argument describing mode of
4709 builtin. Check lane bounds for arguments with
4710 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4711 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
4712 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4713 (aarch64_simd_expand_builtin): Handle arguments with
4714 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
4715 aarch64_simd_expand_args.
4716 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
4717 vst[234]_lane with BUILTIN_VALLDIF.
4718 * config/aarch64/aarch64-simd.md:
4719 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
4720 endianness reversal on lane index.
4721 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
4722 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
4723 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
4724 (vec_store_lanesci_lane<mode>): Ditto.
4725 (vec_store_lanesxi_lane<mode>): Ditto.
4726 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
4727 reversal of lane index.
4728 (aarch64_ld3_lane<mode>): Ditto.
4729 (aarch64_ld4_lane<mode>): Ditto.
4730 (aarch64_st2_lane<mode>): Ditto.
4731 (aarch64_st3_lane<mode>): Ditto.
4732 (aarch64_st4_lane<mode>): Ditto.
4733 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
4734 to qmode. Add new mode parameter. Update uses.
4735 (__LD3_LANE_FUNC): Ditto.
4736 (__LD4_LANE_FUNC): Ditto.
4737 (__ST2_LANE_FUNC): Ditto.
4738 (__ST3_LANE_FUNC): Ditto.
4739 (__ST4_LANE_FUNC): Ditto.
4741 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
4743 * doc/invoke.texi (Language Independent Options): Rename node to
4744 Diagnostic Message Formatting Options.
4746 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
4749 * lra-remat.c (operand_to_remat): Prevent using insns with input
4750 subregs processed separately by IRA.
4752 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
4754 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
4756 (single_imm_use): Check for iterator node.
4757 (num_imm_uses): Likewise.
4758 * tree-ssa-operands.c (has_zero_uses_1): Delete.
4759 (single_imm_use_1): Check for iterator node.
4761 2015-07-21 Mike Frysinger <vapier@gentoo.org>
4762 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4764 * configure.ac: Add check for new options in isl-0.15.
4765 * config.in, configure: Rebuilt.
4766 * graphite-blocking.c: Include <isl/constraint.h>
4767 * graphite-interchange.c, graphite-poly.c: Likewise.
4768 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
4769 * graphite.c: Likewise.
4770 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
4772 * graphite-dependences.c: Include <isl/constraint.h>.
4773 (max_number_of_out_dimensions): Returns isl_stat.
4774 (extend_schedule_1): Likewise
4775 (extend_schedule): Corresponding changes.
4776 * graphite-optimize-isl.c: Include <isl/constraint.h> and
4778 (getSingleMap): Change return type of isl_stat.
4779 (optimize_isl): Conditionally use
4780 isl_options_set_schedule_serialize_sccs.
4781 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
4782 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
4784 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
4787 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
4788 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
4790 2015-07-21 Richard Biener <rguenther@suse.de>
4792 PR tree-optimization/66948
4793 * genmatch.c (capture_info::walk_match): Also recurse to
4794 captures. Properly compute expr state from captures of
4796 * match.pd: Add single-use guards to
4797 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
4799 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
4801 * config/nvptx/mkoffload.c (process): Add static destructor call.
4803 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4806 * match.pd (A - B -> A + (-B)): Don't allow folding
4807 when type if a fixed-point type.
4809 2015-07-20 DJ Delorie <dj@redhat.com>
4811 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
4812 (iorqi3_real): Likewise for set1.
4814 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
4816 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
4819 2015-07-20 Aditya Kumar <hiraditya@msn.com>
4821 * graphite-isl-ast-to-gimple.c:
4822 Refactor so that each function can access 'region'. This will help
4823 maintain a parameter rename_map within a region.
4825 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4827 * config/rs6000/rs6000.md (*lt0_disi): New.
4829 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4832 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
4833 "available letters" comment.
4834 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
4835 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
4836 and_2rld_operand): Delete.
4837 (and_operand): Adjust.
4838 (rotate_mask_operator): New.
4839 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
4840 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
4841 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
4842 extract_ME): Delete.
4843 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
4844 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
4845 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
4846 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
4847 rs6000_emit_2insn_and): New.
4848 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
4849 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
4850 includes_rldic_lshift_p, includes_rldicr_lshift_p,
4851 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
4852 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
4853 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
4854 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
4855 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
4856 rs6000_emit_2insn_and): New.
4857 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
4858 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
4860 <NOT>: Don't fall through to next case.
4861 <AND>: Handle the various rotate-and-mask cases directly.
4862 <IOR>: Always cost as one insn.
4863 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
4864 (and<mode>3): Adjust expander for the new patterns.
4865 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
4866 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
4867 (*and<mode>3_imm_dot_shifted): New.
4868 (*and<mode>3_mask): Delete, rewrite as ...
4869 (and<mode>3_mask): ... New.
4870 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
4871 (andsi3_internal0_nomc): Delete.
4872 (*andsi3_internal6): Delete.
4873 (*and<mode>3_2insn): New.
4874 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
4875 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
4876 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
4877 *insvdi_internal3): Delete.
4878 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
4879 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
4880 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
4881 *ior<mode>_mask): New.
4882 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
4883 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
4884 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
4885 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
4887 (ashr<mode>3): Delete expander.
4888 (*ashr<mode>3): Rename to ...
4889 (ashr<mode>3): ... This.
4890 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
4891 (*rotldi3_internal4, *rotldi3_internal5 and split,
4892 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
4893 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
4894 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
4895 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
4896 (splitter for loading a mask): Adjust.
4897 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
4899 2015-07-20 Marek Polacek <polacek@redhat.com>
4901 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
4902 output_add_clobbers, output_added_clobbers_hard_reg_p,
4903 gen_rtx_scratch): Remove declarations.
4905 2015-07-20 Marek Polacek <polacek@redhat.com>
4908 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
4910 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4912 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
4913 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
4915 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4917 * combine.c (combine_simplify_rtx): Move simplification step
4918 before various transformations/substitutions.
4920 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
4922 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
4923 (struct int_traits): Likewise.
4925 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4927 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
4928 function to vmsdbgout_function_decl.
4930 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
4933 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
4934 from misaligned positions.
4935 (ix86_expand_pinsr): Reject insertions to misaligned positions.
4937 2015-07-18 Sebastian Pop <s.pop@samsung.com>
4941 * Makefile.in: Removed omega.o.
4942 * common.opt: Document flag fcheck-data-deps as deprecated.
4943 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
4944 its associated params: omega-max-vars, omega-max-geqs,
4945 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
4946 omega-max-keys, omega-eliminate-redundant-constraints.
4947 * doc/loop.texi: Remove all the section on Omega.
4948 * graphite-blocking.c: Include missing params.h: it used to be
4949 included through tree-data-ref.h and omega.h.
4950 * graphite-isl-ast-to-gimple.c: Same.
4951 * graphite-optimize-isl.c: Same.
4952 * graphite-sese-to-poly.c: Same.
4956 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
4957 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
4958 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
4959 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
4960 * passes.def: Remove pass_check_data_deps.
4961 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
4962 (dump_conflict_function): Same.
4963 (dump_subscript): Same.
4964 (print_direction_vector): Same.
4965 (print_dir_vectors): Same.
4966 (print_lambda_vector): Same.
4967 (print_dist_vectors): Same.
4968 (dump_data_dependence_relation): Same.
4969 (dump_data_dependence_relations): Same.
4970 (dump_dist_dir_vectors): Same.
4972 (init_omega_eq_with_af): Removed.
4973 (omega_extract_distance_vectors): Removed.
4974 (omega_setup_subscript): Removed.
4975 (init_omega_for_ddr_1): Removed.
4976 (init_omega_for_ddr): Removed.
4977 (ddr_consistent_p): Removed.
4978 (compute_affine_dependence): Do not use omega to check data
4980 (compute_data_dependences_for_bb): Removed.
4981 (analyze_all_data_dependences): Removed.
4982 (tree_check_data_deps): Removed.
4983 * tree-data-ref.h: Do not include omega.h.
4984 (compute_data_dependences_for_bb): Removed.
4985 (tree_check_data_deps): Removed.
4986 * tree-ssa-loop.c (pass_check_data_deps): Removed.
4987 (make_pass_check_data_deps): Removed.
4988 * tree-ssa-phiopt.c: Include params.h.
4989 * tree-vect-data-refs.c: Same.
4990 * tree-vect-slp.c: Same.
4992 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
4994 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
4995 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
4996 (mem->fpreg splitters): Ditto.
4997 (general_operand->nonimmediate_operand splitter): Use explicit modes.
4998 Disable DFmode for TARGET_64BIT.
5000 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
5003 * config/i386/i386.c (ix86_expand_prologue): Replicate static
5006 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
5008 * config/nvptx/mkoffload.c (process): Constify host data.
5009 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
5011 (generate_host_descr_file): Likewise.
5013 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
5014 Sebastian Pop <s.pop@samsung.com>
5017 * graphite-dependences.c (add_pdr_constraints): Renamed
5018 pdr->extent to pdr->subscript_sizes.
5019 * graphite-interchange.c (build_linearized_memory_access): Add
5020 back all gcc_assert's that the "isl_int to isl_val conversion"
5021 patch has removed. Refactored.
5022 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
5023 * graphite-poly.c (new_poly_dr): Same.
5024 (free_poly_dr): Same.
5025 * graphite-poly.h (struct poly_dr): Same.
5026 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
5027 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
5028 * graphite-scop-detection.h: Fix space.
5029 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
5030 back all gcc_assert's removed by a previous patch.
5031 (wrap): Remove the_isl_ctx global variable that the same patch has
5033 (build_loop_iteration_domains): Same.
5034 (add_param_constraints): Same.
5035 (pdr_add_data_dimensions): Same. Refactored.
5036 (build_poly_dr): Renamed extent to subscript_sizes.
5038 2015-07-17 Marek Polacek <polacek@redhat.com>
5040 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
5041 * match.pd: ... here.
5043 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
5045 * config/nvptx/mkoffload.c (process): Constify target data.
5046 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
5047 Constify target data.
5048 (generate_target_offloadend_file): Likewise.
5050 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
5052 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
5053 to allow renaming of PHI arguments on edges incoming from outer
5054 loop header, add corresponding check before start PHI iterator.
5055 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
5056 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
5057 with true force_vectorize. Set-up dominator for outer loop too.
5058 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
5059 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
5060 was marked with force_vectorize and has restricted cfg.
5061 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
5063 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
5064 do peeling for outer loops.
5066 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
5067 Matthias Klose <doko@ubuntu.com>
5069 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
5070 build-sysroot, sysroot from the `Miscenalleous configure options' to
5071 the `Directories' section and strip trailing `/' from with_sysroot.
5072 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
5073 * configure: Regenerated.
5075 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
5078 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
5079 (TARGET_HARD_DF_REGS): Ditto.
5080 (TARGET_HARD_XF_REGS): Ditto.
5081 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
5082 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
5083 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
5084 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
5085 (*movsf_internal): Add alternatives 16 and 17. Enable
5086 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
5088 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
5090 PR rtl-optimization/66891
5091 * calls.c (expand_call): Wrap precompute_register_parameters with
5092 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
5094 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
5096 * config/nvptx/mkoffload.c (process): Constify mapping variables.
5097 Define target data struct and initialize it.
5099 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
5101 PR rtl-optimization/66626
5102 * ira.h (emit-rtl.h): Include.
5103 (non_spilled_static_chain_regno_p): New.
5104 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
5105 unless it is non spilled static chain pseudo.
5106 (assign_hard_rego): Spill memory profitable allocno unless it is
5107 non spilled static chain pseudo.
5108 (allocno_spill_priority_compare): Put non spilled static chain
5109 pseudo at the end of sorted array.
5110 (improve_allocation): Do nothing if we have static chain and
5112 (allocno__priority_compare_func): Put non spilled static chain
5113 pseudo at the beginning of sorted array.
5114 (move_spill_restore): Ignore non spilled static chain pseudo.
5115 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
5116 to non spilled static chain pseudo.
5117 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
5118 pseudo at the beginning of sorted array.
5119 (spill_for): Spill non spilled static chain pseudo last.
5120 * lra-constraints.c (lra_constraints): Remove static chain pseudo
5121 check for equivalence.
5123 2015-07-16 Martin Liska <mliska@suse.cz>
5126 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
5127 dst_ctx if it does not exist.
5129 2015-07-16 Martin Liska <mliska@suse.cz>
5131 * hash-set.h (remove): New function.
5132 (iterator): New iteration class for hash_set.
5134 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
5136 * genattrtab.c (make_canonical): Add a file_location parameter.
5137 Use fatal_at rather than fatal.
5138 (get_attr_value): Likewise. Update call to make_canonical.
5139 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
5140 (make_internal_attr): Update calls accordingly.
5142 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
5144 * read-md.h (message_with_line, error_with_line): Delete.
5145 * read-md.c (message_with_line, error_with_line): Delete.
5146 * gensupport.h: Include read-md.h.
5147 (md_rtx_info): New structure.
5148 (read_md_rtx): Use it. Return a bool success value.
5149 * gensupport.c (read_md_rtx): Likewise.
5150 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
5151 (main): Update after interface changes.
5152 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
5153 (main): Update after interface changes.
5154 * genattrtab.c (insn_code_number): Delete.
5155 (optimize_attrs): Add a max_insn_code parameter and use it instead
5156 of insn_code_number.
5157 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
5158 Use *_at rather than *_with_line functions.
5159 (gen_insn): Likewise.
5160 (gen_delay): Likewise.
5161 (gen_insn_reserv): Likewise.
5162 (gen_bypass): Take an md_rtx_info rather than an rtx.
5163 (main): Update after interface changes. Use a local max_insn_code
5164 variable instead of insn_code_number.
5165 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
5166 an rtx. Use fatal_at rather than fatal.
5167 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
5168 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
5169 (gen_absence_set, gen_final_absence_set, gen_automaton)
5170 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
5171 (main): Update after interface changes.
5172 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
5174 (main): Update after interface changes.
5175 * genconditions.c (main): Use new read_md_rtx interface.
5176 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
5177 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
5178 (main): Update after interface changes.
5179 * genemit.c (insn_code_number, insn_index_number): Delete.
5180 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
5181 Use fatal_at rather than fatal.
5182 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
5184 (gen_split): Likewise.
5185 (main): Update after interface changes.
5186 * genextract.c (line_no): Delete.
5187 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
5188 Update call to walk_rtx.
5189 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
5190 rather than message_with_line.
5191 (walk_rtx): Add an md_rtx_info argument. Update call to
5192 VEC_safe_set_locstr.
5193 (main): Update after interface changes.
5194 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
5195 and lineno. Use error_at rather than separate message_with_line
5196 calls and have_error assignments.
5197 (main): Update after interface changes.
5198 * genmddump.c (main): Use new read_md_rtx interface.
5199 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
5200 (main): Update after interface changes.
5201 * genoutput.c (next_code_number): Delete.
5202 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
5203 (gen_peephole, gen_expand, gen_split): Likewise.
5204 (note_constraint): Likewise. Use *_at rather than *_with_line
5206 (main): Update after interface changes.
5207 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
5209 (main): Update after interface changes.
5210 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
5211 than an rtx and lineno.
5212 (process_define_constraint): Likewise.
5213 (process_define_register_constraint): Likewise.
5214 (main): Update after interface changes.
5215 * genrecog.c (next_insn_code, pattern_lineno): Delete.
5216 (validate_pattern): Replace top-level rtx with an md_rtx_info.
5217 Use *_at rather than *_with_line functions.
5218 (match_pattern_2): Likewise.
5219 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
5220 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
5221 Use *_at rather than *_with_line functions.
5222 * gentarget-def.c (add_insn): New function.
5223 (main): Use it. Use new read_md_rtx interface.
5225 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
5227 * gensupport.h (compute_test_codes): Take a file_location rather
5229 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
5230 rather than *_with_line functions.
5231 (process_define_predicate): Update call to compute_test_codes.
5232 * genpreds.c (validate_exp): Take a file_location rather than a
5233 line number. Use *_at functions rather than *_with_line functions.
5234 (process_define_predicate): Update call to validate_exp.
5235 (constraint_data): Replace lineno field with a file_location.
5236 (add_constraint): Take a file_location rather than a line number.
5237 Use *_at functions rather than *_with_line functions. Fix error
5238 message for address constraints. Update after changes to
5239 validate_exp, constraint_data and compute_test_codes.
5240 (process_define_constraint): Update accordingly.
5241 (process_define_register_constraint): Likewise.
5243 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
5245 * genoutput.c (data): Use a file_location to record the source
5248 (idata, idata_end): Remove initialization.
5249 (constraint_data): Replace lineno with a file_location.
5250 (output_insn_data): Update after changes to data.
5251 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
5252 (scan_operands): Likewise, using *_at rather than *_with_line
5254 (process_template): Likewise.
5255 (validate_insn_alternatives): Likewise.
5256 (validate_insn_operands): Likewise.
5257 (validate_optab_operands): Likewise.
5258 (init_insn_for_nothing): Initialize idata and idata_end.
5259 (note_constraint): Update after changes to constraint_data,
5260 using at rather than with_line functions.
5261 (mdep_constraint_len): Take a file_location rather than a
5262 line number. Use at rather than with_line functions.
5264 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
5266 * read-md.h (fatal_at): Declare.
5267 * read-md.c (fatal_at): New function.
5268 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
5269 to record the source position.
5270 (check_attr_test): Take a file_location instead of a line number.
5271 Use fatal_at instead of fatal.
5272 (check_attr_value): Update after above changes, using "at"
5273 rather than "with_line" reporting functions.
5274 (convert_set_attr_alternative): Likewise.
5275 (gen_attr): Likewise.
5276 (check_defs): Likewise. Don't assign to read_md_filename.
5277 (gen_insn): Update initialization after above changes.
5278 (gen_delay): Likewise.
5279 (write_insn_cases): Print the filename for a define_peephole.
5280 (gen_insn_reserv): Take a line number as argument and update
5281 the call to check_attr_test.
5282 (main): Pass a line number to gen_insn_reserv.
5284 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
5286 * read-md.h (file_location): New structure.
5287 (directive_handler_t): Take a file_location rather than a line number.
5288 (message_at, error_at): Declare.
5289 (read_skip_construct): Delete.
5290 * read-md.c (message_with_line_1): Replace with...
5291 (message_at_1): ...this new function.
5292 (message_at, error_at): New functions.
5293 (message_with_line, error_with_line): Update to use message_at_1.
5294 (handle_enum): Take a file_location rather than a line number
5295 and use error_at for error reporting.
5296 (handle_include): Likewise.
5297 (read_skip_construct): Likewise. Make static.
5298 (handle_file): Update after above changes. Pass a file_location
5299 rather than a line number to handle_directive.
5300 * gensupport.c (queue_elem): Replace separate filename and lineno
5301 with a file_location.
5302 (queue_pattern): Replace filename and lineno arguments with a
5303 file_location. Update after change to queue_elem.
5304 (process_define_predicate): Replace lineno argument with a
5305 file_location and use error_at for error reporting. Update
5306 after above changes.
5307 (process_rtx): Likewise.
5308 (subst_pattern_match): Likewise.
5309 (get_alternatives_number): Likewise.
5310 (alter_predicate_for_insn): Likewise.
5311 (rtx_handle_directive): Likewise.
5312 (is_predicable): Update after above changes, using error_at rather
5313 than error_with_line.
5314 (has_subst_attribute): Likewise.
5315 (identify_predicable_attribute): Likewise.
5316 (alter_attrs_for_subst_insn): Likewise.
5317 (process_one_cond_exec): Likewise.
5318 (process_substs_on_one_elem): Likewise.
5319 (process_define_subst): Likewise.
5320 (check_define_attr_duplicates): Likewise.
5321 (read_md_rtx): Update after change to queue_elem.
5323 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
5325 * genoutput.c (next_index_number): Delete.
5326 (data): Remove index_number.
5327 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
5328 (main): Remove manipulation of next_index_number.
5330 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
5332 * genattrtab.c (check_attr_value): Remove handling of null attrs.
5333 (make_canonical): Likewise.
5335 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
5337 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
5338 instead of adjust_address_nv.
5339 (restore_stack_nonlocal): Likewise.
5340 (nonlocal_goto): Likewise.
5342 2015-07-16 Tom de Vries <tom@codesourcery.com>
5344 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
5345 not have a corresponding loop header phi.
5347 2015-07-16 Tom de Vries <tom@codesourcery.com>
5349 * tree-parloops.c (create_loads_for_reductions): Handle case that
5350 reduction is unused.
5352 2015-07-16 Richard Biener <rguenther@suse.de>
5354 PR tree-optimization/66894
5355 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
5356 about deriving NE_EXPR from truncated values.
5358 2015-07-16 Martin Liska <mliska@suse.cz>
5361 (object_allocator): Add new class.
5362 (pool_allocator::initialize): Use the underlying class.
5363 (pool_allocator::allocate): Likewise.
5364 (pool_allocator::remove): Likewise.
5365 (operator new): A new generic allocator.
5366 * asan.c (struct asan_mem_ref): Remove unused members.
5367 (asan_mem_ref_new): Replace new operator with
5368 object_allocator::allocate.
5369 (free_mem_ref_resources): Change deallocation.
5370 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
5371 with object_allocator.
5372 * config/sh/sh.c (add_constant): Replace new operator with
5373 object_allocator::allocate.
5374 (sh_reorg): Change call to a release method.
5375 * cselib.c (struct elt_list): Remove unused members.
5376 (new_elt_list): Replace new operator with
5377 object_allocator::allocate.
5378 (new_elt_loc_list): Likewise.
5379 (new_cselib_val): Likewise.
5380 (unchain_one_elt_list): Change delete operator with remove method.
5381 (unchain_one_elt_loc_list): Likewise.
5382 (unchain_one_value): Likewise.
5383 (cselib_finish): Release newly added static allocators.
5384 * cselib.h (struct cselib_val): Remove unused members.
5385 (struct elt_loc_list): Likewise.
5386 * df-problems.c (df_chain_alloc): Replace pool_allocator with
5388 * df-scan.c (struct df_scan_problem_data): Likewise.
5389 (df_scan_alloc): Likewise.
5390 * df.h (struct dataflow): Likewise.
5391 * dse.c (struct read_info_type): Likewise.
5392 (struct insn_info_type): Likewise.
5393 (struct dse_bb_info_type): Likewise.
5394 (struct group_info): Likewise.
5395 (struct deferred_change): Likewise.
5396 (get_group_info): Likewise.
5397 (delete_dead_store_insn): Likewise.
5398 (free_read_records): Likewise.
5399 (replace_read): Likewise.
5400 (check_mem_read_rtx): Likewise.
5401 (scan_insn): Likewise.
5402 (dse_step1): Likewise.
5403 (dse_step7): Likewise.
5404 * et-forest.c (struct et_occ): Remove unused members.
5405 (et_new_occ): Use allocate instead of new operator.
5406 (et_new_tree): Likewise.
5407 (et_free_tree): Call release method explicitly.
5408 (et_free_tree_force): Likewise.
5409 (et_free_pools): Likewise.
5410 (et_split): Use remove instead of delete operator.
5411 * et-forest.h (struct et_node): Remove unused members.
5412 * ipa-cp.c: Change pool_allocator to object_allocator.
5413 * ipa-inline-analysis.c: Likewise.
5414 * ipa-profile.c: Likewise.
5415 * ipa-prop.c: Likewise.
5416 * ipa-prop.h: Likewise.
5417 * ira-build.c (initiate_cost_vectors): Cast return value.
5418 (ira_allocate_cost_vector): Likewise.
5419 * ira-color.c (struct update_cost_record): Remove unused members.
5420 * lra-int.h (struct lra_live_range): Likewise.
5421 (struct lra_copy): Likewise.
5422 (struct lra_insn_reg): Likewise.
5423 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
5424 * lra.c (new_insn_reg): Replace new operator with allocate method.
5425 (free_insn_regs): Same for operator delete.
5426 (finish_insn_regs): Release new static allocator.
5427 (finish_insn_recog_data): Likewise.
5428 (lra_free_copies): Replace delete operator with remove method.
5429 (lra_create_copy): Replace operator new with allocate method.
5430 (invalidate_insn_data_regno_info): Same for remove method.
5431 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
5432 (free_debug_insn_changes): Replace delete operator with remove method.
5433 (replace_oldest_value_reg): Replace operator new with allocate method.
5434 (pass_cprop_hardreg::execute): Release new static variable.
5435 * sched-deps.c (sched_deps_init): Change pool_allocator to
5437 * sel-sched-ir.c: Likewise.
5438 * sel-sched-ir.h: Likewise.
5439 * stmt.c (expand_case): Likewise.
5440 (expand_sjlj_dispatch_table): Likewise.
5441 * tree-sra.c (struct access): Remove unused members.
5442 (struct assign_link): Likewise.
5443 (sra_deinitialize): Release newly added static pools.
5444 (create_access_1):Replace operator new with allocate method.
5445 (build_accesses_from_assign): Likewise.
5446 (create_artificial_child_access): Likewise.
5447 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
5448 pool_allocator to object_allocator.
5449 * tree-ssa-pre.c: Likewise.
5450 * tree-ssa-reassoc.c: Likewise.
5451 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
5452 * tree-ssa-strlen.c: Likewise.
5453 * tree-ssa-structalias.c: Likewise.
5454 * var-tracking.c (onepart_pool_allocate): New function.
5455 (unshare_variable): Use the newly added function.
5456 (variable_merge_over_cur): Likewise.
5457 (variable_from_dropped): Likewise.
5458 (variable_was_changed): Likewise.
5459 (set_slot_part): Likewise.
5460 (emit_notes_for_differences_1): Likewise.
5461 (vt_finalize): Release newly added static pools.
5463 2015-07-16 Martin Jambor <mjambor@suse.cz>
5465 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
5466 all uses. Fix two typos in its general comment.
5467 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
5469 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
5471 * config/i386/linux-common.h (LINK_MPX): New.
5472 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
5473 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
5474 indicating '-z bndplt' support by linker.
5475 * configure: Regenerate.
5476 * config.in: Regenerate.
5478 2015-07-16 Richard Biener <rguenther@suse.de>
5480 * fold-const.c (fold_widened_comparison): Remove.
5481 (fold_sign_changed_comparison): Likewise.
5482 (fold_comparison): Move widened and sign-changed comparison
5484 * match.pd: ... to patterns here.
5485 * generic-match-head.c: Include target.h.
5486 * gimple-match-head.c: Likewise.
5488 2015-07-16 Richard Biener <rguenther@suse.de>
5490 * tree-ssa-dom.c (dom_valueize): New function.
5491 (record_temporary_equivalences): Also record equivalences
5492 for dominating stmts that have uses of equivalences we are
5495 2015-07-16 Bin Cheng <bin.cheng@arm.com>
5497 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
5498 add_autoinc_candidates.
5499 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
5500 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
5501 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
5502 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
5504 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
5505 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
5506 Remove parameter struct iv*. Call add_autoinc_candidates here.
5507 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
5508 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
5510 (find_iv_candidates): Call new functions.
5512 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
5514 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
5515 uninitialized-variable warning.
5517 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
5520 * config/sh/sh.md (movdi): Split simple reg move to two movsi
5521 when the destination is R0.
5523 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
5526 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
5527 * config/i386/i386.c (ix86_expand_pextr): New function.
5528 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
5529 for non-lowpart subregs.
5530 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
5531 (insv<mode>): Use SWI248 mode iterator.
5532 (insv<mode>_1): Ditto.
5534 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
5535 Sebastian Pop <s.pop@samsung.com>
5537 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
5538 iterator to use_stmt.
5540 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
5541 Sebastian Pop <s.pop@samsung.com>
5543 * graphite-scop-detection.c (build_scops_1): Discard scops for
5546 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
5547 Sebastian Pop <s.pop@samsung.com>
5549 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
5550 case of a return statement in scop.
5552 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
5553 Sebastian Pop <s.pop@samsung.com>
5555 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
5556 INTEGER_TYPE parameters.
5557 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
5558 VECTOR_CST in scan_tree_for_params.
5559 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
5561 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
5563 * gimple-pretty-print.h: Don't include pretty-print.h.
5564 * tree-streamer.h: Don't include lto-streamer.h.
5565 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
5566 * gimple-streamer-in.c: Remove redundant includes.
5567 * gimple-streamer-out.c: Likewise.
5568 * ipa-devirt.c: Likewise.
5569 * ipa-icf.c: Likewise.
5570 * ipa-inline-analysis.c: Likewise.
5571 * ipa-polymorphic-call.c: Likewise.
5572 * ipa-profile.c: Likewise.
5573 * ipa-prop.c: Likewise.
5574 * ipa-pure-const.c: Likewise.
5575 * lto-cgraph.c: Likewise.
5576 * lto-streamer-in.c: Likewise.
5577 * lto-streamer-out.c: Likewise.
5578 * lto-streamer.c: Likewise.
5579 * tree-streamer-in.c: Likewise.
5580 * tree-streamer-out.c: Likewise.
5581 * tree-streamer.c: Likewise.
5583 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
5585 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
5587 * opts.c: Remove multiline #include comment.
5589 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
5591 * config/nvptx/mkoffload.c (process): Add C++ protection to
5594 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5597 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
5598 null before IEEE 128-bit floating point support patch.
5600 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5602 * simplify-rtx.c (simplify_ternary_operation): Add simplification
5603 for (!c) != {0,...,0} ? a : b for vector modes.
5605 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
5606 Martin Jambor <mjambor@suse.cz>
5608 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
5609 struct func_body_info* instead of struct ipa_node_params*, expecting
5610 fbi->info to be filled in. Replace throughout. Adjust call to
5611 ipa_load_from_parm_agg.
5612 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
5613 instead of struct ipa_node_params*. Adjust calls to other functions
5614 so that they pass either fbi or fbi->info.
5615 (set_switch_stmt_execution_predicate): Likewise.
5616 (will_be_nonconstant_predicate): Likewise.
5617 (compute_bb_predicates): Likewise.
5618 (estimate_function_body_sizes): Move asserts earlier. Fill in
5619 struct func_body_info, replace parms_info with fbi.info. Adjust
5620 calls to functions that now accept struct func_body_info.
5621 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
5622 (struct func_body_info): Likewise.
5623 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
5624 remove static. Adjust callers.
5625 (ipa_load_from_parm_agg): Remove.
5626 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
5627 (func_body_info): Likewise.
5628 (ipa_load_from_parm_agg): Adjust prototype.
5630 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5632 * gensupport.c (rtx_handle_directive): Adjust.
5633 * read-rtl.c (apply_iterators): Take vector to add rtxs to
5634 instead of expr list rtx.
5635 (add_define_attr_for_define_subst): Likewise.
5636 (add_define_subst_attr): Likewise.
5637 (read_subst_mapping): Likewise.
5638 (read_rtx): Likewise.
5639 * rtl.h (read_rtx): Adjust.
5641 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5643 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
5645 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
5648 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
5649 (*tls_local_dynamic_base_64_<mode>): Ditto.
5650 (*tls_local_dynamic_base_64_largepic): Ditto.
5651 (tls_global_dynamic_64_<mode>): Update expander pattern.
5652 (tls_local_dynamic_base_64_<mode>): Ditto.
5654 2015-07-15 Richard Biener <rguenther@suse.de>
5656 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
5657 and bool_var == 1 -> bool_var simplifications ...
5658 * match.pd: ... to patterns here. Factor out negate_expr_p
5659 cases from the A - B -> A + (-B) patterns as negate_expr_p
5660 predicate and add a -(A + B) -> (-B) - A pattern.
5662 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
5664 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
5666 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
5667 Robert Suchanek <robert.suchanek@imgtec.com>
5669 * config/mips/mips.c (mips_int_mask): New enum.
5670 (mips_shadow_set): Likewise.
5671 (int_mask): New variable.
5672 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
5673 (machine_function): Add int_mask and use_shadow_register_set.
5674 (mips_attribute_table): Add attribute handlers for interrupt and
5675 use_shadow_register_set.
5676 (mips_interrupt_mask): New static function.
5677 (mips_handle_interrupt_attr): Likewise.
5678 (mips_handle_use_shadow_register_set_attr): Likewise.
5679 (mips_use_shadow_register_set): Change return type to enum
5680 mips_shadow_set. Add argument handling for use_shadow_register_set
5682 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
5683 compare with mips_shadow_set enum.
5684 (mips_compute_frame_info): Add interrupt mask and
5685 use_shadow_register_set to per-function information structure.
5686 Add a stack slot for EPC unconditionally.
5687 (mips_expand_prologue): Compare use_shadow_register_set value
5688 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
5689 masked interrupt register but in EIC mode use K0 and save Cause in K0.
5690 EPC saved and restored unconditionally. Use PMODE_INSN macro when
5691 copying the stack pointer from the shadow register set.
5692 * config/mips/mips.h (SR_IM0): New define.
5693 * config/mips/mips.md (mips_rdpgpr): Rename to...
5694 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
5695 * doc/extend.texi (Declaring Attributes of Functions): Document
5696 optional arguments for interrupt and use_shadow_register_set
5699 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
5701 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
5702 interrupt attribute.
5703 (mips_expand_prologue): Disable the floating point unit in an ISR.
5704 * config/mips/mips.h (SR_COP1): New define.
5706 2015-07-15 Richard Biener <rguenther@suse.de>
5708 * genmatch.c (parser::peek, parser::peek_ident): Add argument
5709 to tell how many tokens to peek ahead (default 1).
5710 (parser::eat_token, parser::eat_ident): Return token consumed.
5711 (parser::parse_result): Parse new switch statement.
5712 * match.pd: Use case statements where appropriate.
5714 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
5716 PR rtl-optimization/58066
5717 * calls.c (expand_call): Precompute register parameters before stack
5718 alignment is performed.
5720 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
5722 PR rtl-optimization/66838
5723 * postreload.c (reload_cse_move2add): Also process
5724 CALL_INSN_FUNCTION_USAGE when resetting information of
5725 call-clobbered registers.
5727 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5728 Cesar Philippidis <cesar@codesourcery.com>
5729 Chung-Lin Tang <cltang@codesourcery.com>
5731 * config/nios2/constraints.md (U, v): New constraints.
5732 * config/nios2/predicates.md (rdprs_dcache_operand): New.
5733 (ldstex_memory_operand): New.
5734 * config/nios2/sync.md: New file.
5735 * config/nios2/nios2.md (unspecv): Add new builtin function
5737 (rdprs, flushd, flushda, wrpie, eni): New patterns.
5738 (top-level): Include sync.md.
5739 * config/nios2/nios2.c (N2_FTYPES): Add function types for
5741 (N2_BUILTINS): Add arch field setting, add new builtins.
5742 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
5744 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
5745 Also handle ldex/stex/ldsex/stsex builtins.
5746 (nios2_expand_rdprs_builtin): New function.
5747 (nios2_expand_cache_builtin): New function.
5748 (nios2_expand_wrpie_builtin): New function.
5749 (nios2_expand_eni_builtin): New function.
5750 (nios2_expand_builtin): Add arch field handling and new builtin
5752 * doc/extend.texi (Altera Nios II Built-in Functions): Document
5754 * doc/md.texi (Machine Constraints): Document U and v constraints.
5756 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5757 Cesar Philippidis <cesar@codesourcery.com>
5758 Chung-Lin Tang <cltang@codesourcery.com>
5760 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
5761 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
5762 callee_save_reg_size and uses_anonymous_args fields.
5763 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
5764 (nios2_create_cfa_notes): New function.
5765 (nios2_adjust_stack): New function for adjusting stack.
5766 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
5767 Use nios2_adjust_stack.
5768 (nios2_expand_epilogue): Likewise.
5769 (nios2_expand_return): New function.
5770 (nios2_can_use_return_insn): Update for CDX pop.n usage.
5771 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
5772 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
5773 * config/nios2/nios2.md (return): Use nios2_expand_return.
5775 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5776 Cesar Philippidis <cesar@codesourcery.com>
5777 Chung-Lin Tang <cltang@codesourcery.com>
5779 * config/nios2/predicates.md (pop_operation): New.
5780 (ldwm_operation, stwm_operation): New.
5781 (nios2_hard_register_operand): New.
5782 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
5783 (ldstwm_operation_p): Declare.
5784 (gen_ldstwm_peep): Declare.
5785 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
5786 (base_reg_adjustment_p): New.
5787 (pop_operation_p): New.
5788 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
5789 (nios2_ldstwm_regset_p): New.
5790 (ldstwm_operation_p): New.
5792 (nios2_ldst_parallel): New.
5793 (struct ldswm_operand): Declare.
5794 (compare_ldstwm_operands): New.
5795 (can_use_cdx_ldstw): New.
5796 (gen_ldstwm_peep): New.
5797 * config/nios2/nios2-ldstwm.sml: New.
5798 * config/nios2/nios2.md: Include ldstwm.md.
5799 * config/nios2/ldstwm.md: Generated.
5801 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5802 Cesar Philippidis <cesar@codesourcery.com>
5803 Chung-Lin Tang <cltang@codesourcery.com>
5805 * config/nios2/nios2.h (LABEL_ALIGN): Define.
5806 (REG_ALLOC_ORDER): Define.
5807 (ADJUST_REG_ALLOC_ORDER): Define.
5808 (HONOR_REG_ALLOC_ORDER): Define.
5809 (CDX_REG_P): Define.
5810 (ANDCLEAR_INT): Define.
5811 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
5812 (nios2_label_align): Declare.
5813 (nios2_cdx_narrow_form_p): Declare.
5814 (nios2_adjust_reg_alloc_order): Declare.
5815 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
5817 (nios2_large_unspec_reloc_p): New function, split from...
5818 (nios2_legitimate_pic_operand_p): ...here.
5819 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
5820 (nios2_print_operand_punct_valid_p): New.
5821 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
5822 (split_mem_address): New.
5823 (split_alu_insn): New.
5825 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
5826 (enum nios2_add_insn_kind): New.
5827 (nios2_add_insn_names, nios2_add_insn_narrow): New.
5828 (nios2_add_insn_classify): New.
5829 (nios2_add_insn_asm): New.
5830 (nios2_cdx_narrow_form_p): New.
5831 (label_align, min_labelno, max_labelno): New.
5833 (nios2_label_align): New.
5834 (nios2_adjust_reg_alloc_order): New.
5835 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5836 (TARGET_MACHINE_DEPENDENT_REORG): Define.
5837 * config/nios2/constraints.md (P): New constraint.
5838 * config/nios2/predicates.md (const_and_operand): New.
5840 (stack_memory_operand): New.
5841 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
5842 (length): Update to use nios2_cdx_narrow_form_p().
5843 (type): Add new insn type values.
5844 (control, alu, st, ld, shift): Update insn reservations with
5845 new insn type values.
5846 (*high, *lo_sum): Define new insn patterns for constant generation.
5847 (movqi_internal, movhi_internal, movsi_internal): Reduce
5848 alternatives, update asm template to handle CDX variants, update
5850 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
5851 template, update type attributes.
5852 (extendhisi2, extendqi<mode>2): Likewise.
5853 (addsi3): Change to use function for asm string.
5854 (subsi3): Add CDX notation to asm template, update type attributes.
5855 (negsi3, one_cmplsi3): Likewise.
5856 (andsi3): New pattern, specialized from logical patterns.
5857 (<code>si3): Remove and case, combine alternatives, update asm
5859 (<shift_op>si3): Add CDX notation, update type attributes.
5860 (rotrsi3): Update type attribute.
5861 (*merge, extzv, insv): New insn patterns.
5862 (return): Change to define_expand.
5863 (simple_return): Add CDX notation, update type attributes.
5864 (indirect_jump): Add CDX notation.
5865 (jump): Update asm cases, update length attribute expression.
5866 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
5867 (nios2_cbranch): Update asm cases and length attribute expression
5868 to handle CDX variants.
5869 (nios2_cmp<code>): Update asm template.
5870 (nop): Add CDX notation, update type attributes.
5871 (trap): Add CDX notation.
5872 (ctrapsi4): Update asm cases and length attribute expression to
5874 * doc/md.texi (Machine Constraints): Document P constraint.
5876 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5877 Cesar Philippidis <cesar@codesourcery.com>
5878 Chung-Lin Tang <cltang@codesourcery.com>
5880 * config/nios2/nios2.h (SMALL_INT12): New macro.
5881 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
5882 (nios2_valid_addr_expr_p): Use it.
5883 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
5884 with implicit "io" instructions on R2.
5885 * config/nios2/constraints.md (w): New constraint.
5886 * config/nios2/predicates.md (ldstio_memory_operand): New.
5887 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
5888 operand predicate and constraint.
5889 (ld<bh>io_signed, st<bhw>io>): Likewise.
5890 * doc/md.texi (Machine Constraints): Document w constraint.
5892 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5893 Cesar Philippidis <cesar@codesourcery.com>
5894 Chung-Lin Tang <cltang@codesourcery.com>
5896 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
5897 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
5898 Nios II architecture level.
5899 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
5900 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
5901 (OPTION_DEFAULT_SPECS): Define.
5902 (ASM_SPEC): Add -march= spec strings.
5903 * config/nios2/nios2.c (nios2_option_override): Check for
5904 conflicts involving new options.
5905 * config.gcc (nios2*-*-*): Support --with-arch=.
5906 * doc/invoke.texi (Option Summary, Nios II Options): Document
5907 -march=, -mbmx, and -mcdx.
5909 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
5911 PR rtl-optimization/66626
5912 * lra-constraints.c (lra_constraints): Prevent equivalence
5913 substitution for static chain pseudo in functions with nonlocal
5916 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5918 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
5919 (nios2_emit_stack_limit_check): Add size parameter. Handle
5920 -fstack-limit-symbol as well as -fstack-limit-register.
5921 (nios2_expand_prologue): Emit only a single stack limit check,
5922 even if multiple stack adjustments are required.
5923 (nios2_option_override): Diagnose unsupported combination of -fpic
5924 and -stack-limit-symbol.
5926 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
5928 * Makefile.in (top_srcdir): New.
5929 * configure.ac: Use AM_ZLIB.
5930 * configure: Regeneated.
5932 2015-07-14 Matthias Klose <doko@ubuntu.com>
5935 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
5937 2015-07-14 Richard Biener <rguenther@suse.de>
5939 PR tree-optimization/66863
5940 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
5941 what we record for conversion use stmt lhs inequalities.
5943 2015-07-14 Richard Biener <rguenther@suse.de>
5945 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
5946 (decision_tree::gen_gimple): Likewise.
5948 2015-07-14 Tom de Vries <tom@codesourcery.com>
5950 * gcc.c (greater_than_spec_func): Declare forward.
5951 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
5952 -ftree-parallelize-loops={0,1}.
5953 (static_spec_functions): Add greater_than_spec_func function with name
5955 (greater_than_spec_func): New function.
5957 2015-07-14 Richard Biener <rguenther@suse.de>
5959 * tree-ssa-dom.c (record_temporary_equivalences): Merge
5960 wideing type conversion case from record_equivalences_from_incoming_edge
5961 and use record_equality to record equivalences.
5962 (record_equivalences_from_incoming_edge): Call
5963 record_temporary_equivalences.
5965 2015-07-14 Richard Biener <rguenther@suse.de>
5967 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
5968 (struct if_expr): New.
5969 (struct with_expr): Likewise.
5970 (is_a_helper): Add helpers for if_expr and with_expr.
5971 (struct simplify): Add simplify_kind enum and member. Remove
5973 (simplify::simplify): Adjust.
5974 (lower_commutative): Adjust.
5975 (lower_opt_convert): Likewise.
5976 (lower_cond): Likewise.
5977 (replace_id): Handle with_expr and if_expr.
5978 (lower_for): Adjust.
5979 (dt_simplify::gen_1): New recursive worker, split out from ...
5980 (dt_simplify::gen): ... here. Deal with if and with expansion
5982 (capture_info::capture_info): Take context argument
5983 (capture_info::walk_result): Only analyze specific result.
5984 (parser::parse_result): New function.
5985 (parser::parse_simplify): Adjust to parse ifs with then end
5987 (parser::parse_if): Simplify.
5988 (parser::parse_pattern): Pass down simplify kind.
5989 * match.pd: Convert if structure to new syntax.
5991 2015-07-13 Marek Polacek <polacek@redhat.com>
5993 * rtl.c (rtx_equal_p_cb): Fix typo.
5995 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
5997 * omega.h: Don't include config.h, don't include params.h again if
5998 omega.h has already been included.
5999 * graphite-poly.h: Include sese.h.
6000 * graphite.c: Don't include sese.h, remove needless includes and
6001 minimize includes outside #ifdef HAVE_isl block.
6002 * graphite-blocking.c: Don't include sese.h, remove needless includes,
6003 and wrap entire file in #ifdef HAVE_isl
6004 * graphite-dependences.c: Likewise.
6005 * graphite-interchange.c: Likewise.
6006 * graphite-isl-ast-to-gimple.c: Likewise.
6007 * graphite-optimize-isl.c: Likewise.
6008 * graphite-poly.c: Likewise.
6009 * graphite-scop-detection.c: Likewise.
6010 * graphite-sese-to-poly.c: Likewise.
6012 2015-07-13 Tom de Vries <tom@codesourcery.com>
6014 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
6016 2015-07-13 Renlin Li <renlin.li@arm.com>
6019 * simplify-rtx.c (simplify_const_relational_operation): Add
6020 side_effects_p checks.
6022 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
6024 * bitmap.h: Fix double word typos.
6027 * cfgloopmanip.c: Same.
6030 * cgraphclones.c: Same.
6032 * config/aarch64/aarch64-protos.h: Same.
6033 * config/aarch64/aarch64.c: Same.
6034 * config/aarch64/aarch64.md: Same.
6035 * config/arm/arm.md: Same.
6036 * config/arm/arm1020e.md: Same.
6037 * config/arm/arm1026ejs.md: Same.
6038 * config/arm/arm926ejs.md: Same.
6039 * config/arm/fa526.md: Same.
6040 * config/arm/fa606te.md: Same.
6041 * config/arm/fa626te.md: Same.
6042 * config/arm/fa726te.md: Same.
6043 * config/arm/fmp626.md: Same.
6044 * config/darwin.c: Same.
6045 * config/epiphany/epiphany.c: Same.
6046 * config/frv/frv.c: Same.
6047 * config/ft32/ft32.c: Same.
6048 * config/gnu-user.h: Same.
6049 * config/h8300/constraints.md: Same.
6050 * config/i386/i386.c: Same.
6051 * config/i386/i386.md: Same.
6052 * config/iq2000/iq2000.md: Same.
6053 * config/mips/mips.c: Same.
6054 * config/mmix/mmix.md: Same.
6055 * config/moxie/moxie.c: Same.
6056 * config/nds32/nds32.md: Same.
6057 * config/pa/pa.h: Same.
6058 * config/rs6000/aix.h: Same.
6059 * config/rs6000/rs6000.h: Same.
6060 * config/sh/sh.c: Same.
6061 * config/tilegx/tilegx.md: Same.
6062 * config/tilepro/gen-mul-tables.cc: Same.
6065 * doc/invoke.texi: Same.
6067 * dwarf2out.c: Same.
6072 * hash-table.h: Same.
6073 * internal-fn.c: Same.
6075 * ipa-devirt.c: Same.
6078 * ipa-profile.c: Same.
6083 * reg-stack.c: Same.
6089 * tree-inline.c: Same.
6091 * tree-ssa-dom.c: Same.
6092 * tree-ssa-loop-ivopts.c: Same.
6093 * tree-ssa-structalias.c: Same.
6094 * tree-ssa-tail-merge.c: Same.
6095 * tree-ssa-ter.c: Same.
6096 * tree-ssa-threadupdate.c: Same.
6097 * tree-ssa-uninit.c: Same.
6098 * tree-ssanames.c: Same.
6099 * tree-vect-loop-manip.c: Same.
6105 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
6108 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
6109 tree_ssa_phiopt_worker): Call it.
6111 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
6113 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
6114 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
6117 2015-07-11 Marek Polacek <polacek@redhat.com>
6120 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
6121 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
6122 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
6123 rather than bb_has_abnormal_call_pred.
6124 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
6125 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
6126 rather than bb_has_abnormal_call_pred.
6128 2015-07-10 Anatoly Sokolov <aesok@post.ru>
6130 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6131 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
6132 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6133 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
6134 v850_legitimate_address_p): New functions.
6135 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
6137 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
6140 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
6141 indirect sibcall with register arguments if register available
6142 for argument passing.
6143 (init_cumulative_args): Set cfun->machine->arg_reg_available
6144 to (cum->nregs > 0) or to true if function has a variable
6146 (function_arg_advance_32): Set cfun->machine->arg_reg_available
6147 to false if cum->nregs <= 0.
6148 * config/i386/i386.h (machine_function): Add arg_reg_available.
6150 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
6152 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
6153 and gen_higpart instead of gen_rtx_SUBREG.
6154 * config/i386/i386.md
6155 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
6156 (read-modify peephole2): Use gen_lowpart instead of
6157 gen_rtx_SUBREG for operand 5.
6159 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
6161 * config/tilepro/gen-mul-tables.cc (main): Change include list for
6163 * config/tilepro/mul-tables.c: Regenerate.
6164 * config/tilegx/mul-tables.c: Regenerate.
6166 2015-07-10 Richard Biener <rguenther@suse.de>
6168 * fold-const.c (distribute_bit_expr): Remove.
6169 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
6170 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
6171 to A & (B | C) and simplifying A << C1 << C2 to ...
6172 * match.pd: ... patterns here.
6174 2015-07-10 Jiong Wang <jiong.wang@arm.com>
6176 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6177 Mark mem as READONLY and NOTRAP for PIC symbol.
6179 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
6181 * gimple-predict.h: New file.
6182 (gimple_predict_predictor, gimple_predict_set_predictor,
6183 gimple_predict_outcome, gimple_predict_set_outcome,
6184 gimple_build_predict): Relocate here.
6185 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
6186 gimple_predict_outcome, gimple_predict_set_outcome): Move to
6188 * gimple.c (gimple_build_predict): Move to gimple-predict.h
6189 * basic-block.h: Don't include cfghooks.h.
6190 * backend.h: Don't include predict.h.
6191 * cfghooks.h: Include predict.h.
6192 * gimple-pretty-print.c: Include gimple-predict.h.
6193 * gimplify.c: Likwise.
6194 * predict.c: Adjust includes.
6195 * tree-inline.c: Likewise.
6197 * auto-inc-dec.c: Likewise.
6198 * auto-profile.c: Likewise.
6199 * bb-reorder.c: Likewise.
6200 * builtins.c: Likewise.
6201 * caller-save.c: Likewise.
6202 * calls.c: Likewise.
6203 * cfganal.c: Likewise.
6204 * cfgbuild.c: Likewise.
6206 * cfgcleanup.c: Likewise.
6207 * cfgexpand.c: Likewise.
6208 * cfghooks.c: Likewise.
6209 * cfgloopanal.c: Likewise.
6210 * cfgloop.c: Likewise.
6211 * cfgloopmanip.c: Likewise.
6212 * cfgrtl.c: Likewise.
6213 * cgraph.c: Likewise.
6214 * cgraphunit.c: Likewise.
6215 * combine.c: Likewise.
6216 * cprop.c: Likewise.
6219 * dojump.c: Likewise.
6221 * except.c: Likewise.
6222 * expmed.c: Likewise.
6224 * final.c: Likewise.
6225 * fold-const.c: Likewise.
6226 * function.c: Likewise.
6227 * fwprop.c: Likewise.
6228 * gcc-plugin.h: Likewise.
6230 * genattrtab.c: Likewise.
6231 * genemit.c: Likewise.
6232 * gengtype.c: Likewise.
6233 * genopinit.c: Likewise.
6234 * genoutput.c: Likewise.
6235 * genpreds.c: Likewise.
6236 * genrecog.c: Likewise.
6237 * gimple-fold.c: Likewise.
6238 * gimple-iterator.c: Likewise.
6239 * gimple-ssa-isolate-paths.c: Likewise.
6240 * gimple-ssa-strength-reduction.c: Likewise.
6241 * graph.c: Likewise.
6242 * graphite-blocking.c: Likewise.
6243 * graphite.c: Likewise.
6244 * graphite-dependences.c: Likewise.
6245 * graphite-interchange.c: Likewise.
6246 * graphite-isl-ast-to-gimple.c: Likewise.
6247 * graphite-optimize-isl.c: Likewise.
6248 * graphite-poly.c: Likewise.
6249 * graphite-scop-detection.c: Likewise.
6250 * graphite-sese-to-poly.c: Likewise.
6251 * haifa-sched.c: Likewise.
6252 * ifcvt.c: Likewise.
6253 * internal-fn.c: Likewise.
6254 * ipa-cp.c: Likewise.
6255 * ipa-profile.c: Likewise.
6256 * ipa-split.c: Likewise.
6257 * ipa-utils.c: Likewise.
6258 * ira-build.c: Likewise.
6259 * ira-color.c: Likewise.
6260 * ira-conflicts.c: Likewise.
6261 * ira-costs.c: Likewise.
6262 * ira-emit.c: Likewise.
6263 * ira-lives.c: Likewise.
6265 * loop-doloop.c: Likewise.
6266 * loop-init.c: Likewise.
6267 * loop-invariant.c: Likewise.
6268 * loop-unroll.c: Likewise.
6269 * lower-subreg.c: Likewise.
6270 * lra-assigns.c: Likewise.
6272 * lra-coalesce.c: Likewise.
6273 * lra-constraints.c: Likewise.
6274 * lra-lives.c: Likewise.
6275 * lto-cgraph.c: Likewise.
6276 * lto-streamer-in.c: Likewise.
6277 * mode-switching.c: Likewise.
6278 * modulo-sched.c: Likewise.
6279 * omp-low.c: Likewise.
6280 * optabs.c: Likewise.
6281 * passes.c: Likewise.
6282 * postreload.c: Likewise.
6283 * postreload-gcse.c: Likewise.
6284 * profile.c: Likewise.
6285 * recog.c: Likewise.
6286 * regstat.c: Likewise.
6287 * reload1.c: Likewise.
6288 * reorg.c: Likewise.
6289 * rtlanal.c: Likewise.
6290 * sched-ebb.c: Likewise.
6291 * sel-sched-ir.c: Likewise.
6293 * shrink-wrap.c: Likewise.
6294 * simplify-rtx.c: Likewise.
6296 * store-motion.c: Likewise.
6297 * tracer.c: Likewise.
6298 * trans-mem.c: Likewise.
6299 * tree-call-cdce.c: Likewise.
6300 * tree-cfg.c: Likewise.
6301 * tree-cfgcleanup.c: Likewise.
6302 * tree-chkp.c: Likewise.
6303 * tree-complex.c: Likewise.
6304 * tree-eh.c: Likewise.
6305 * tree-if-conv.c: Likewise.
6306 * tree-loop-distribution.c: Likewise.
6307 * tree-outof-ssa.c: Likewise.
6308 * tree-parloops.c: Likewise.
6309 * tree-predcom.c: Likewise.
6310 * tree-pretty-print.c: Likewise.
6311 * tree-profile.c: Likewise.
6312 * tree-sra.c: Likewise.
6313 * tree-ssa.c: Likewise.
6314 * tree-ssa-coalesce.c: Likewise.
6315 * tree-ssa-dce.c: Likewise.
6316 * tree-ssa-dom.c: Likewise.
6317 * tree-ssa-forwprop.c: Likewise.
6318 * tree-ssa-ifcombine.c: Likewise.
6319 * tree-ssa-loop-ch.c: Likewise.
6320 * tree-ssa-loop-im.c: Likewise.
6321 * tree-ssa-loop-ivcanon.c: Likewise.
6322 * tree-ssa-loop-ivopts.c: Likewise.
6323 * tree-ssa-loop-manip.c: Likewise.
6324 * tree-ssa-loop-prefetch.c: Likewise.
6325 * tree-ssa-loop-unswitch.c: Likewise.
6326 * tree-ssa-math-opts.c: Likewise.
6327 * tree-ssa-phiopt.c: Likewise.
6328 * tree-ssa-pre.c: Likewise.
6329 * tree-ssa-reassoc.c: Likewise.
6330 * tree-ssa-sink.c: Likewise.
6331 * tree-ssa-tail-merge.c: Likewise.
6332 * tree-ssa-threadedge.c: Likewise.
6333 * tree-ssa-threadupdate.c: Likewise.
6334 * tree-switch-conversion.c: Likewise.
6335 * tree-tailcall.c: Likewise.
6336 * tree-vect-data-refs.c: Likewise.
6337 * tree-vect-loop.c: Likewise.
6338 * tree-vect-loop-manip.c: Likewise.
6339 * tree-vectorizer.c: Likewise.
6340 * tree-vrp.c: Likewise.
6341 * ubsan.c: Likewise.
6342 * value-prof.c: Likewise.
6343 * varasm.c: Likewise.
6344 * var-tracking.c: Likewise.
6345 * config/aarch64/aarch64-builtins.c: Likewise.
6346 * config/aarch64/aarch64.c: Likewise.
6347 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
6348 * config/alpha/alpha.c: Likewise.
6349 * config/arc/arc.c: Likewise.
6350 * config/arm/arm.c: Likewise.
6351 * config/avr/avr.c: Likewise.
6352 * config/bfin/bfin.c: Likewise.
6353 * config/c6x/c6x.c: Likewise.
6354 * config/cr16/cr16.c: Likewise.
6355 * config/cris/cris.c: Likewise.
6356 * config/darwin.c: Likewise.
6357 * config/darwin-c.c: Likewise.
6358 * config/epiphany/epiphany.c: Likewise.
6359 * config/epiphany/mode-switch-use.c: Likewise.
6360 * config/epiphany/resolve-sw-modes.c: Likewise.
6361 * config/fr30/fr30.c: Likewise.
6362 * config/frv/frv.c: Likewise.
6363 * config/ft32/ft32.c: Likewise.
6364 * config/h8300/h8300.c: Likewise.
6365 * config/i386/i386.c: Likewise.
6366 * config/i386/winnt.c: Likewise.
6367 * config/ia64/ia64.c: Likewise.
6368 * config/iq2000/iq2000.c: Likewise.
6369 * config/lm32/lm32.c: Likewise.
6370 * config/m32c/m32c.c: Likewise.
6371 * config/m32r/m32r.c: Likewise.
6372 * config/m68k/m68k.c: Likewise.
6373 * config/mcore/mcore.c: Likewise.
6374 * config/mep/mep.c: Likewise.
6375 * config/microblaze/microblaze.c: Likewise.
6376 * config/mips/mips.c: Likewise.
6377 * config/mmix/mmix.c: Likewise.
6378 * config/mn10300/mn10300.c: Likewise.
6379 * config/moxie/moxie.c: Likewise.
6380 * config/msp430/msp430.c: Likewise.
6381 * config/nds32/nds32.c: Likewise.
6382 * config/nds32/nds32-cost.c: Likewise.
6383 * config/nds32/nds32-fp-as-gp.c: Likewise.
6384 * config/nds32/nds32-intrinsic.c: Likewise.
6385 * config/nds32/nds32-isr.c: Likewise.
6386 * config/nds32/nds32-md-auxiliary.c: Likewise.
6387 * config/nds32/nds32-memory-manipulation.c: Likewise.
6388 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6389 * config/nds32/nds32-predicates.c: Likewise.
6390 * config/nios2/nios2.c: Likewise.
6391 * config/nvptx/nvptx.c: Likewise.
6392 * config/pa/pa.c: Likewise.
6393 * config/pdp11/pdp11.c: Likewise.
6394 * config/rl78/rl78.c: Likewise.
6395 * config/rs6000/rs6000.c: Likewise.
6396 * config/rx/rx.c: Likewise.
6397 * config/s390/s390.c: Likewise.
6398 * config/sh/sh.c: Likewise.
6399 * config/sh/sh-mem.cc: Likewise.
6400 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
6401 * config/sh/sh_treg_combine.cc: Likewise.
6402 * config/sparc/sparc.c: Likewise.
6403 * config/spu/spu.c: Likewise.
6404 * config/stormy16/stormy16.c: Likewise.
6405 * config/tilegx/tilegx.c: Likewise.
6406 * config/tilepro/tilepro.c: Likewise.
6407 * config/v850/v850.c: Likewise.
6408 * config/vax/vax.c: Likewise.
6409 * config/visium/visium.c: Likewise.
6410 * config/xtensa/xtensa.c: Likewise.
6412 2015-07-10 Richard Biener <rguenther@suse.de>
6414 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
6415 (decision_tree::gen_gimple): Likewise.
6416 (decision_tree::gen_generic): Likewise.
6418 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
6421 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
6422 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
6424 2015-07-10 Jakub Jelinek <jakub@redhat.com>
6427 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
6428 or ORT_TASK contexts.
6429 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
6432 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6434 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
6437 2015-07-10 Tom de Vries <tom@codesourcery.com>
6439 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
6440 insert nit + 1 bound.
6442 2015-07-10 Richard Biener <rguenther@suse.de>
6444 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
6445 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
6446 (if_convertible_loop_p_1): For this always compute bb predicates.
6447 (if_convertible_loop_p): And free them.
6449 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6451 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
6454 2015-07-10 Richard Biener <rguenther@suse.de>
6456 PR tree-optimization/66823
6457 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
6460 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
6462 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
6463 to handle mips[32|64]r3 and mips[32|64]r5.
6465 2015-07-09 Jakub Jelinek <jakub@redhat.com>
6468 * tree-nested.c (get_static_chain): Or in a flag into
6469 info->static_chain_added.
6470 (get_frame_field, get_nonlocal_debug_decl): Likewise.
6471 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
6473 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
6474 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
6477 PR tree-optimization/66718
6478 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
6480 (vect_simd_lane_linear): New function.
6481 (vectorizable_simd_clone_call): Support using linear arguments for
6482 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
6484 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
6487 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
6489 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6491 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
6492 Use machine mode, not enum machine_mode in the prototype.
6494 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
6495 classify 128-bit floating point support.
6496 (FLOAT128_IBM_P): Likewise.
6497 (FLOAT128_VECTOR_P): Likewise.
6498 (FLOAT128_2REG_P): Likewise.
6499 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
6500 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
6501 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6502 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
6504 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
6505 tests against TFmode/TDmode, since those modes do not use VSX
6507 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
6509 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
6510 tests against TFmode, etc.
6511 (invalid_e500_subreg): Add tests against IFmode/KFmode.
6512 (reg_offset_addressing_ok_p): Likewise.
6513 (rs6000_legitimate_offset_address_p): Likewise.
6514 (rs6000_legitimize_address): Likewise.
6515 (rs6000_legitimize_reload_address): Likewise.
6516 (rs6000_legitimate_address_p): Clean up tests against TFmode and
6517 TDmode to use the new helper macros, which will include IFmode and
6519 (rs6000_emit_move): Likewise.
6520 (rs6000_darwin64_record_arg_recurse): Likewise.
6521 (print_operand): Likewise.
6522 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
6523 that uses a single vector register as a vector and not as a
6524 floating point register in terms of the calling sequence.
6525 (rs6000_discover_homogeneous_aggregate): Likewise.
6526 (rs6000_return_in_memory): Likewise.
6527 (init_cumulative_args): Likewise.
6528 (rs6000_function_arg_boundary): Likewise.
6529 (rs6000_function_arg_advance_1): Likewise.
6530 (rs6000_function_arg): Likewise.
6531 (rs6000_pass_by_reference): Likewise.
6532 (rs6000_gimplify_va_arg): Likewise.
6533 (rs6000_secondary_reload_memory): Use machine_mode not enum
6535 (rs6000_split_multireg_move): Use new helper macros.
6536 (spe_func_has_64bit_regs_p): Likewise.
6537 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
6538 (output_toc): Use new helper macros.
6539 (rs6000_register_move_cost): Likewise.
6540 (rs6000_function_value): Add IEEE 128-bit floating point calling
6542 (rs6000_libcall_value): Likewise.
6543 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
6544 floating point support.
6545 (rs6000_vector_mode_supported_p): Likewise.
6547 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
6549 PR rtl-optimization/66782
6550 * lra-int.h (struct lra_insn_recog_data): Add comment about
6551 clobbered hard regs for arg_hard_regs.
6552 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
6553 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
6554 Add condition for processing used hard regs.
6555 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
6556 Process clobbered hard regs.
6558 2015-07-09 Michael Matz <matz@suse.de>
6560 * genmatch.c (fprintf_indent): New function.
6561 (operand::gen_transform): Add indent parameter.
6562 (expr::gen_transform, c_expr::gen_transform,
6563 capture::gen_transform): Ditto and use fprintf_indent.
6564 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
6565 (dt_operand::gen, dt_operand::gen_predicate,
6566 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
6567 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
6568 (decision_tree::gen_gimple): Adjust calls and indent generated
6570 (decision_tree::gen_generic): Ditto.
6571 (write_predicate): Ditto.
6573 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
6576 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
6577 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
6578 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
6579 {GENERAL,SSE,MMX}_REG_P where appropriate.
6581 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
6583 * lto-streamer.h: Don't include target.h and alloc-pool.h.
6584 * builtins.c: Adjust includes.
6585 * gimple.c: Likewise.
6586 * ipa-icf.c: Likewise.
6587 * lto-opts.c: Likewise.
6588 * ipa-reference.c: Likewise.
6589 * lto-section-out.c: Likewise.
6590 * lto-streamer-in.c: Likewise.
6591 * lto-streamer-out.c: Likewise.
6592 * opts-global.c: Likewise.
6593 * symtab.c: Likewise.
6594 * tree-chkp.c: Likewise.
6595 * tree-ssa-live.c: Likewise.
6596 * tree-streamer-in.c: Likewise.
6597 * tree-streamer-out.c: Likewise.
6598 * config/darwin.c: Likewise.
6599 * config/i386/winnt.c: Likewise.
6601 2015-07-09 Richard Biener <rguenther@suse.de>
6603 * genmatch.c (struct expr): Add force_single_use flag.
6604 (expr::expr): Add copy constructor.
6605 (capture_info::walk_match): Gather force_single_use captures.
6606 (expr::gen_transform): Use possibly NULLified sequence.
6607 (dt_simplify::gen): Apply single-use restrictions by NULLifying
6608 seq if any constrained expr is not single-use.
6609 (parser::parse_expr): Refactor to allow multiple flags. Handle
6610 's' flag to force an expression have a single-use if the pattern
6611 simplifies to more than one statement.
6612 * match.pd: Convert most single_use conditionals to :s flags.
6614 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
6616 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
6617 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
6618 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
6620 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
6622 * flags.h: Don't include flag-types.h or options.h.
6623 * opts-common.c: Adjust includes.
6624 * opts-global.c: Likewise.
6625 * common/config/epiphany/epiphany-common.c: Likewise.
6627 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
6630 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
6633 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
6636 * config/i386/i386.c (ix86_return_in_memory): Return true
6637 if int_size_in_bytes returns negative for IA MCU.
6639 2015-07-09 Marek Polacek <polacek@redhat.com>
6641 PR tree-optimization/66718
6642 * Makefile.in (OBJS): Add gimple-laddress.o.
6643 * passes.def: Schedule pass_laddress.
6644 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
6645 * tree-pass.h (make_pass_laddress): Declare.
6646 * gimple-laddress.c: New file.
6648 2015-07-09 Richard Biener <rguenther@suse.de>
6650 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
6652 2015-07-09 Richard Biener <rguenther@suse.de>
6654 PR tree-optimization/66807
6655 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
6657 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
6659 * function.c (stack_protect_epilogue): Use if rather than switch for
6660 check targetm.have_stack_protect_test.
6662 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6664 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
6665 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
6666 * config/arc/arc.h: Likewise.
6667 * config/arm/arm.h: Likewise.
6668 * config/bfin/bfin.h: Likewise.
6669 * config/epiphany/epiphany.h: Likewise.
6670 * config/frv/frv.h: Likewise.
6671 * config/ia64/ia64.h: Likewise.
6672 * config/iq2000/iq2000.h: Likewise.
6673 * config/lm32/lm32.h: Likewise.
6674 * config/m32r/m32r.h: Likewise.
6675 * config/mcore/mcore.h: Likewise.
6676 * config/mep/mep.h: Likewise.
6677 * config/microblaze/microblaze.h: Likewise.
6678 * config/mips/mips.h: Likewise.
6679 * config/mmix/mmix.h: Likewise.
6680 * config/mn10300/mn10300.h: Likewise.
6681 * config/nds32/nds32.h: Likewise.
6682 * config/nios2/nios2.h: Likewise.
6683 * config/pa/pa.h: Likewise.
6684 * config/rl78/rl78.h: Likewise.
6685 * config/sh/sh.h: Likewise.
6686 * config/sparc/sparc.h: Likewise.
6687 * config/stormy16/stormy16.h: Likewise.
6688 * config/tilegx/tilegx.h: Likewise.
6689 * config/tilepro/tilepro.h: Likewise.
6690 * config/v850/v850.h: Likewise.
6691 * config/xtensa/xtensa.h: Likewise.
6692 * doc/tm.texi: Regenerate.
6693 * doc/tm.texi.in: Adjust.
6694 * combine.c (simplify_set): Likewise.
6695 (simplify_comparison): Likewise.
6696 * expr.c (store_constructor): Likewise.
6697 * internal-fn.c (expand_arith_overflow): Likewise.
6698 * reload.c (push_reload): Likewise.
6699 (find_reloads): Likewise.
6700 (find_reloads_subreg_address): Likewise.
6701 * reload1.c (eliminate_regs_1): Likewise.
6702 * rtlanal.c (nonzero_bits1): Likewise.
6703 (num_sign_bit_copies1): Likewise.
6704 * simplify-rtx.c (simplify_truncation): Likewise.
6706 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6708 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
6709 of AUTO_INC_DEC with the preprocessor.
6710 * combine.c (combine_instructions): Likewise.
6711 (can_combine_p): Likewise.
6712 (try_combine): Likewise.
6713 * emit-rtl.c (try_split): Likewise.
6714 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
6715 * lower-subreg.c (resolve_simple_move): Likewise.
6716 * lra.c (update_inc_notes): Likewise.
6717 * recog.c (asm_operand_ok): Likewise.
6718 (constrain_operands): Likewise.
6719 * regrename.c (scan_rtx_address): Likewise.
6720 * reload.c (update_auto_inc_notes): Likewise.
6721 (reg_inc_found_and_valid_p): Likewise.
6722 * reload1.c (reload): Likewise.
6723 (emit_input_reload_insns): Likewise.
6724 (delete_output_reload): Likewise.
6725 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
6726 * valtrack.c (cleanup_auto_inc_dec): Likewise.
6728 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6730 * rtl.h: Always define AUTO_INC_DEC.
6731 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
6732 * combine.c (combine_instructions): Likewise.
6733 (can_combine_p): Likewise.
6734 (try_combine): Likewise.
6735 * emit-rtl.c (try_split): Likewise.
6736 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
6737 * lower-subreg.c (resolve_simple_move): Likewise.
6738 * lra.c (update_inc_notes): Likewise.
6739 * recog.c (asm_operand_ok): Likewise.
6740 (constrain_operands): Likewise.
6741 * regrename.c (scan_rtx_address): Likewise.
6742 * reload.c (update_auto_inc_notes): Likewise.
6743 (find_equiv_reg): Likewise.
6744 * reload1.c (reload): Likewise.
6745 (reload_as_needed): Likewise.
6746 (choose_reload_regs): Likewise.
6747 (emit_input_reload_insns): Likewise.
6748 (delete_output_reload): Likewise.
6749 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
6750 * valtrack.c (cleanup_auto_inc_dec): Likewise.
6752 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6754 * combine.c (can_combine_def_p): Don't check the value of
6755 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
6756 (combinable_i3pat): Likewise.
6757 (mark_used_regs_combine): Likewise.
6758 * regrename.c (rename_chains): Likewise.
6759 * reload.c (find_reloads_address): Likewise.
6760 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6762 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6764 * combine.c (update_rsp_from_reg_equal): Don't check if
6765 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
6766 (reg_nonzero_bits_for_combine): Likewise.
6767 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
6769 * config/frv/frv.h: Likewise.
6770 * config/lm32/lm32.h: Likewise.
6771 * config/mep/mep.h: Likewise.
6772 * config/mips/mips.h: Likewise.
6773 * config/rs6000/rs6000.h: Likewise.
6774 * config/sh/sh.h: Likewise.
6775 * config/tilegx/tilegx.h (enum reg_class): Likewise.
6776 * config/tilepro/tilepro.h: Likewise.
6777 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
6778 * doc/tm.texi: Regenerate.
6779 * doc/tm.texi.in: Adjust.
6780 * rtlanal.c (nonzero_bits1): Likewise.
6782 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6784 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
6785 with the preprocessor.
6786 (combine_instructions): Likewise.
6787 (try_combine): Likewise.
6789 (distribute_notes): Likewise.
6791 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6793 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
6795 (simplify_set): Likewise.
6796 * cse.c (cse_insn): Likewise.
6797 * fold-const.c (fold_single_bit_test): Likewise.
6798 (fold_unary_loc): Likewise.
6799 * postreload.c (reload_cse_simplify_set): Likewise.
6800 (reload_cse_simplify_operands): Likewise.
6802 2015-07-08 Jiong Wang <jiong.wang@arm.com>
6804 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
6805 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
6807 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
6810 * config/i386/x86intrin.h: Include <adxintrin.h> even if
6811 __iamcu__ is defined.
6813 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
6815 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
6817 2015-07-08 Iain Sandoe <iain@codesourcery.com>
6820 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
6821 names from preservation.
6823 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
6826 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
6828 (function_arg_advance_32): Don't pass vectors in registers for
6830 (function_arg_32): Likewise.
6831 (ix86_return_in_memory): Don't return vectors in registers for
6834 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
6837 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
6838 hard regno live at the start of BB with incoming abnormal edges.
6839 * lra-lives.c (process_bb_lives): Ditto.
6841 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
6844 * config/nvptx/mkoffload.c (main): Create an offload image only in
6845 64-bit configurations.
6847 2015-07-08 Martin Liska <mliska@suse.cz>
6850 * tree-sra.c (create_access_1): Call ctor without brackets.
6851 (create_artificial_child_access): Likewise.
6853 2015-07-08 Richard Biener <rguenther@suse.de>
6855 PR tree-optimization/66793
6856 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
6857 Properly split the block after stmts ending it.
6859 2015-07-08 Richard Biener <rguenther@suse.de>
6861 PR tree-optimization/66794
6862 * passes.c (execute_function_todo): Assert that post-dominators
6864 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
6865 Free post-dominators.
6867 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6869 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
6872 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
6874 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
6875 more than or equal 8 and less than 32 when optimizing for size.
6877 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6879 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
6880 COSTS_N_INSNS (1) and increment it appropriately throughout the
6883 2015-07-08 Richard Biener <rguenther@suse.de>
6885 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
6887 2015-07-08 Alan Modra <amodra@gmail.com>
6889 * target.def (rtx_costs): Remove "code" param, add "mode".
6890 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
6891 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
6892 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
6893 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
6894 call. Track mode when given in rtx.
6895 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
6896 (default_address_cost): Pass Pmode to rtx_cost.
6897 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
6898 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
6900 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
6901 (notreg_cost): Add mode param. Use it.
6902 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
6903 mode param and pass to set_src_cost. Update all calls.
6904 (hash_scan_set): Formatting.
6905 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
6906 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
6908 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
6909 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
6910 emit_store_flag): Update set_src_cost and rtx_cost calls.
6911 * auto-inc-dec.c (attempt_change): Likewise.
6912 * calls.c (precompute_register_parameters): Likewise.
6913 * combine.c (expand_compound_operation, make_extraction,
6914 force_to_mode, distribute_and_simplify_rtx): Likewise.
6915 * dojump.c (prefer_and_bit_test): Likewise.
6916 * dse.c (find_shift_sequence): Likewise.
6917 * expr.c (compress_float_constant): Likewise.
6918 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
6919 * ifcvt.c (noce_try_sign_mask): Likewise.
6920 * loop-doloop.c (doloop_optimize): Likewise.
6921 * loop-invariant.c (create_new_invariant): Likewise.
6922 * lower-subreg.c (shift_cost, compute_costs): Likewise.
6923 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
6924 lshift_cheap_p): Likewise.
6925 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
6926 try_replace_in_use, reload_cse_move2add): Likewise.
6927 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
6929 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6930 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6931 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
6932 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
6933 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
6934 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
6936 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
6937 * config/arc/arc.c (arc_rtx_costs): Likewise.
6938 * config/arm/arm.c (arm_rtx_costs): Likewise.
6939 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
6940 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6941 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
6942 * config/cris/cris.c (cris_rtx_costs): Likewise.
6943 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
6944 * config/frv/frv.c (frv_rtx_costs): Likewise.
6945 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
6946 * config/i386/i386.c (ix86_rtx_costs): Likewise.
6947 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
6948 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
6949 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
6950 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
6951 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
6952 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
6953 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
6954 * config/mep/mep.c (mep_rtx_cost): Likewise.
6955 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
6956 * config/mips/mips.c (mips_rtx_costs): Likewise.
6957 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
6958 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
6959 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
6960 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
6961 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
6962 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
6963 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
6964 * config/pa/pa.c (hppa_rtx_costs): Likewise.
6965 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
6966 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
6967 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
6968 * config/s390/s390.c (s390_rtx_costs): Likewise.
6969 * config/sh/sh.c (sh_rtx_costs): Likewise.
6970 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
6971 * config/spu/spu.c (spu_rtx_costs): Likewise.
6972 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
6973 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
6974 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
6975 * config/v850/v850.c (v850_rtx_costs): Likewise.
6976 * config/vax/vax.c (vax_rtx_costs): Likewise.
6977 * config/visium/visium.c (visium_rtx_costs): Likewise.
6978 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
6979 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
6980 "code" param, and pass as outer_code to first rtx_cost call. Pass
6981 mode to rtx_cost calls.
6982 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
6984 (aarch64_rtx_costs_wrapper): Update.
6985 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
6986 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
6988 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
6990 (avr_operand_rtx_cost): Similarly.
6991 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
6992 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
6993 * config/mips/mips.c (mips_stack_address_p): Comment typo.
6994 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
6995 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
6996 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
6998 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
6999 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
7000 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
7001 * doc/tm.texi: Regenerate.
7003 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
7005 * tree-core.h: Include symtab.h.
7006 * rtl.h: Include hard-reg-set.h but not flags.h.
7007 (HARD_CONST): Remove condition compilation involving HARD_CONST since
7008 hard-reg-set.h is always included.
7009 * regs.h: Don't include hard-reg-set.h or rtl.h.
7010 * cfg.h: Include dominance.h.
7011 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
7012 * backend.h: New. Aggregate commonly used backend header files.
7013 * gimple-ssa.h: Don't include tree-hasher.h.
7014 * ssa.h: New. Aggregate commonly used SSA header files.
7015 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
7016 * sel-sched-ir.h: Flatten includes.
7017 * lra-int.h: Flatten completely.
7018 * sel-sched-dump.h: Flatten includes.
7019 * ira-int.h: Flatten includes.
7020 * gimple-streamer.h: Remove all includes.
7021 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
7022 * resource.h: Flatten hard-reg-set.h and df.h.
7023 * sched-int.h: Flatten insn-arrt.h and df.h.
7024 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
7025 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
7026 * genattrtab.c (write_header): Adjust generated includes.
7027 * genautomata.c (main): Likewise.
7028 * genconditions.c (write-header): Likewise.
7029 * genemit.c (main): Likewise.
7030 * gengtype.c (open_base_files): Likewise.
7031 * genopinit.c (main): Likewise.
7032 * genoutput.c (output_prologue): Likewise.
7033 * genpeep.c (main): Likewise.
7034 * genpreds.c (write_insn_preds_c): Likewise.
7035 * genrecog.c (write_header): Likewise.
7036 * alias.c: Adjust includes.
7038 * attribs.c: Likewise.
7039 * auto-inc-dec.c: Likewise.
7040 * auto-profile.c: Likewise.
7041 * bb-reorder.c: Likewise.
7042 * bt-load.c: Likewise.
7043 * builtins.c: Likewise.
7044 * caller-save.c: Likewise.
7045 * calls.c: Likewise.
7048 * cfganal.c: Likewise.
7049 * cfgbuild.c: Likewise.
7050 * cfgcleanup.c: Likewise.
7051 * cfgexpand.c: Likewise.
7052 * cfghooks.c: Likewise.
7053 * cfgloop.c: Likewise.
7054 * cfgloopanal.c: Likewise.
7055 * cfgloopmanip.c: Likewise.
7056 * cfgrtl.c: Likewise.
7057 * cgraph.c: Likewise.
7058 * cgraphbuild.c: Likewise.
7059 * cgraphclones.c: Likewise.
7060 * cgraphunit.c: Likewise.
7061 * cilk-common.c: Likewise.
7062 * combine-stack-adj.c: Likewise.
7063 * combine.c: Likewise.
7064 * compare-elim.c: Likewise.
7065 * convert.c: Likewise.
7066 * coverage.c: Likewise.
7067 * cppbuiltin.c: Likewise.
7068 * cprop.c: Likewise.
7070 * cselib.c: Likewise.
7071 * data-streamer-in.c: Likewise.
7072 * data-streamer-out.c: Likewise.
7073 * data-streamer.c: Likewise.
7074 * dbxout.c: Likewise.
7077 * debug.c: Likewise.
7078 * df-core.c: Likewise.
7079 * df-problems.c: Likewise.
7080 * df-scan.c: Likewise.
7082 * dojump.c: Likewise.
7083 * dominance.c: Likewise.
7084 * domwalk.c: Likewise.
7085 * double-int.c: Likewise.
7087 * dumpfile.c: Likewise.
7088 * dwarf2asm.c: Likewise.
7089 * dwarf2cfi.c: Likewise.
7090 * dwarf2out.c: Likewise.
7091 * emit-rtl.c: Likewise.
7092 * et-forest.c: Likewise.
7093 * except.c: Likewise.
7094 * explow.c: Likewise.
7095 * expmed.c: Likewise.
7097 * final.c: Likewise.
7098 * fixed-value.c: Likewise.
7099 * fold-const.c: Likewise.
7100 * function.c: Likewise.
7101 * fwprop.c: Likewise.
7102 * gcc-plugin.h: Likewise.
7103 * gcse-common.c: Likewise.
7105 * generic-match-head.c: Likewise.
7106 * ggc-page.c: Likewise.
7107 * gimple-builder.c: Likewise.
7108 * gimple-expr.c: Likewise.
7109 * gimple-fold.c: Likewise.
7110 * gimple-iterator.c: Likewise.
7111 * gimple-low.c: Likewise.
7112 * gimple-match-head.c: Likewise.
7113 * gimple-pretty-print.c: Likewise.
7114 * gimple-ssa-isolate-paths.c: Likewise.
7115 * gimple-ssa-strength-reduction.c: Likewise.
7116 * gimple-streamer-in.c: Likewise.
7117 * gimple-streamer-out.c: Likewise.
7118 * gimple-walk.c: Likewise.
7119 * gimple.c: Likewise.
7120 * gimplify-me.c: Likewise.
7121 * gimplify.c: Likewise.
7122 * godump.c: Likewise.
7123 * graph.c: Likewise.
7124 * graphite-blocking.c: Likewise.
7125 * graphite-dependences.c: Likewise.
7126 * graphite-interchange.c: Likewise.
7127 * graphite-isl-ast-to-gimple.c: Likewise.
7128 * graphite-optimize-isl.c: Likewise.
7129 * graphite-poly.c: Likewise.
7130 * graphite-scop-detection.c: Likewise.
7131 * graphite-sese-to-poly.c: Likewise.
7132 * graphite.c: Likewise.
7133 * haifa-sched.c: Likewise.
7134 * hw-doloop.c: Likewise.
7135 * ifcvt.c: Likewise.
7136 * init-regs.c: Likewise.
7137 * internal-fn.c: Likewise.
7138 * ipa-chkp.c: Likewise.
7139 * ipa-comdats.c: Likewise.
7140 * ipa-cp.c: Likewise.
7141 * ipa-devirt.c: Likewise.
7142 * ipa-icf-gimple.c: Likewise.
7143 * ipa-icf.c: Likewise.
7144 * ipa-inline-analysis.c: Likewise.
7145 * ipa-inline-transform.c: Likewise.
7146 * ipa-inline.c: Likewise.
7147 * ipa-polymorphic-call.c: Likewise.
7148 * ipa-profile.c: Likewise.
7149 * ipa-prop.c: Likewise.
7150 * ipa-pure-const.c: Likewise.
7151 * ipa-ref.c: Likewise.
7152 * ipa-reference.c: Likewise.
7153 * ipa-split.c: Likewise.
7154 * ipa-utils.c: Likewise.
7155 * ipa-visibility.c: Likewise.
7157 * ira-build.c: Likewise.
7158 * ira-color.c: Likewise.
7159 * ira-conflicts.c: Likewise.
7160 * ira-costs.c: Likewise.
7161 * ira-emit.c: Likewise.
7162 * ira-lives.c: Likewise.
7165 * langhooks.c: Likewise.
7167 * loop-doloop.c: Likewise.
7168 * loop-init.c: Likewise.
7169 * loop-invariant.c: Likewise.
7170 * loop-iv.c: Likewise.
7171 * loop-unroll.c: Likewise.
7172 * lower-subreg.c: Likewise.
7173 * lra-assigns.c: Likewise.
7174 * lra-coalesce.c: Likewise.
7175 * lra-constraints.c: Likewise.
7176 * lra-eliminations.c: Likewise.
7177 * lra-lives.c: Likewise.
7178 * lra-remat.c: Likewise.
7179 * lra-spills.c: Likewise.
7181 * lto-cgraph.c: Likewise.
7182 * lto-compress.c: Likewise.
7183 * lto-opts.c: Likewise.
7184 * lto-section-in.c: Likewise.
7185 * lto-section-out.c: Likewise.
7186 * lto-streamer-in.c: Likewise.
7187 * lto-streamer-out.c: Likewise.
7188 * lto-streamer.c: Likewise.
7190 * mode-switching.c: Likewise.
7191 * modulo-sched.c: Likewise.
7192 * omega.c: Likewise.
7193 * omp-low.c: Likewise.
7194 * optabs.c: Likewise.
7195 * opts-global.c: Likewise.
7196 * passes.c: Likewise.
7197 * plugin.c: Likewise.
7198 * postreload-gcse.c: Likewise.
7199 * postreload.c: Likewise.
7200 * predict.c: Likewise.
7201 * print-rtl.c: Likewise.
7202 * print-tree.c: Likewise.
7203 * profile.c: Likewise.
7205 * realmpfr.c: Likewise.
7206 * recog.c: Likewise.
7208 * reg-stack.c: Likewise.
7209 * regcprop.c: Likewise.
7210 * reginfo.c: Likewise.
7211 * regrename.c: Likewise.
7212 * regstat.c: Likewise.
7213 * reload.c: Likewise.
7214 * reload1.c: Likewise.
7215 * reorg.c: Likewise.
7216 * resource.c: Likewise.
7217 * rtl-chkp.c: Likewise.
7218 * rtlanal.c: Likewise.
7219 * rtlhooks.c: Likewise.
7220 * sanopt.c: Likewise.
7221 * sched-deps.c: Likewise.
7222 * sched-ebb.c: Likewise.
7223 * sched-rgn.c: Likewise.
7224 * sched-vis.c: Likewise.
7225 * sdbout.c: Likewise.
7226 * sel-sched-dump.c: Likewise.
7227 * sel-sched-ir.c: Likewise.
7228 * sel-sched.c: Likewise.
7230 * shrink-wrap.c: Likewise.
7231 * simplify-rtx.c: Likewise.
7232 * stack-ptr-mod.c: Likewise.
7234 * stor-layout.c: Likewise.
7235 * store-motion.c: Likewise.
7236 * stringpool.c: Likewise.
7237 * symtab.c: Likewise.
7238 * target-globals.c: Likewise.
7239 * targhooks.c: Likewise.
7240 * toplev.c: Likewise.
7241 * tracer.c: Likewise.
7242 * trans-mem.c: Likewise.
7243 * tree-affine.c: Likewise.
7244 * tree-browser.c: Likewise.
7245 * tree-call-cdce.c: Likewise.
7246 * tree-cfg.c: Likewise.
7247 * tree-cfgcleanup.c: Likewise.
7248 * tree-chkp-opt.c: Likewise.
7249 * tree-chkp.c: Likewise.
7250 * tree-chrec.c: Likewise.
7251 * tree-complex.c: Likewise.
7252 * tree-data-ref.c: Likewise.
7253 * tree-dfa.c: Likewise.
7254 * tree-diagnostic.c: Likewise.
7255 * tree-dump.c: Likewise.
7256 * tree-eh.c: Likewise.
7257 * tree-emutls.c: Likewise.
7258 * tree-if-conv.c: Likewise.
7259 * tree-inline.c: Likewise.
7260 * tree-into-ssa.c: Likewise.
7261 * tree-iterator.c: Likewise.
7262 * tree-loop-distribution.c: Likewise.
7263 * tree-nested.c: Likewise.
7264 * tree-nrv.c: Likewise.
7265 * tree-object-size.c: Likewise.
7266 * tree-outof-ssa.c: Likewise.
7267 * tree-parloops.c: Likewise.
7268 * tree-phinodes.c: Likewise.
7269 * tree-predcom.c: Likewise.
7270 * tree-pretty-print.c: Likewise.
7271 * tree-profile.c: Likewise.
7272 * tree-scalar-evolution.c: Likewise.
7273 * tree-sra.c: Likewise.
7274 * tree-ssa-address.c: Likewise.
7275 * tree-ssa-alias.c: Likewise.
7276 * tree-ssa-ccp.c: Likewise.
7277 * tree-ssa-coalesce.c: Likewise.
7278 * tree-ssa-copy.c: Likewise.
7279 * tree-ssa-copyrename.c: Likewise.
7280 * tree-ssa-dce.c: Likewise.
7281 * tree-ssa-dom.c: Likewise.
7282 * tree-ssa-dse.c: Likewise.
7283 * tree-ssa-forwprop.c: Likewise.
7284 * tree-ssa-ifcombine.c: Likewise.
7285 * tree-ssa-live.c: Likewise.
7286 * tree-ssa-loop-ch.c: Likewise.
7287 * tree-ssa-loop-im.c: Likewise.
7288 * tree-ssa-loop-ivcanon.c: Likewise.
7289 * tree-ssa-loop-ivopts.c: Likewise.
7290 * tree-ssa-loop-manip.c: Likewise.
7291 * tree-ssa-loop-niter.c: Likewise.
7292 * tree-ssa-loop-prefetch.c: Likewise.
7293 * tree-ssa-loop-unswitch.c: Likewise.
7294 * tree-ssa-loop.c: Likewise.
7295 * tree-ssa-math-opts.c: Likewise.
7296 * tree-ssa-operands.c: Likewise.
7297 * tree-ssa-phiopt.c: Likewise.
7298 * tree-ssa-phiprop.c: Likewise.
7299 * tree-ssa-pre.c: Likewise.
7300 * tree-ssa-propagate.c: Likewise.
7301 * tree-ssa-reassoc.c: Likewise.
7302 * tree-ssa-sccvn.c: Likewise.
7303 * tree-ssa-scopedtables.c: Likewise.
7304 * tree-ssa-sink.c: Likewise.
7305 * tree-ssa-strlen.c: Likewise.
7306 * tree-ssa-structalias.c: Likewise.
7307 * tree-ssa-tail-merge.c: Likewise.
7308 * tree-ssa-ter.c: Likewise.
7309 * tree-ssa-threadedge.c: Likewise.
7310 * tree-ssa-threadupdate.c: Likewise.
7311 * tree-ssa-uncprop.c: Likewise.
7312 * tree-ssa-uninit.c: Likewise.
7313 * tree-ssa.c: Likewise.
7314 * tree-ssanames.c: Likewise.
7315 * tree-stdarg.c: Likewise.
7316 * tree-streamer-in.c: Likewise.
7317 * tree-streamer-out.c: Likewise.
7318 * tree-streamer.c: Likewise.
7319 * tree-switch-conversion.c: Likewise.
7320 * tree-tailcall.c: Likewise.
7321 * tree-vect-data-refs.c: Likewise.
7322 * tree-vect-generic.c: Likewise.
7323 * tree-vect-loop-manip.c: Likewise.
7324 * tree-vect-loop.c: Likewise.
7325 * tree-vect-patterns.c: Likewise.
7326 * tree-vect-slp.c: Likewise.
7327 * tree-vect-stmts.c: Likewise.
7328 * tree-vectorizer.c: Likewise.
7329 * tree-vrp.c: Likewise.
7332 * ubsan.c: Likewise.
7333 * valtrack.c: Likewise.
7334 * value-prof.c: Likewise.
7335 * var-tracking.c: Likewise.
7336 * varasm.c: Likewise.
7337 * varpool.c: Likewise.
7338 * vmsdbgout.c: Likewise.
7339 * vtable-verify.c: Likewise.
7341 * wide-int.cc: Likewise.
7342 * xcoffout.c: Likewise.
7343 * config/aarch64/aarch64-builtins.c: Likewise.
7344 * config/aarch64/aarch64.c: Likewise.
7345 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7346 * config/alpha/alpha.c: Likewise.
7347 * config/arc/arc.c: Likewise.
7348 * config/arm/aarch-common.c: Likewise.
7349 * config/arm/arm-builtins.c: Likewise.
7350 * config/arm/arm-c.c: Likewise.
7351 * config/arm/arm.c: Likewise.
7352 * config/avr/avr-c.c: Likewise.
7353 * config/avr/avr-log.c: Likewise.
7354 * config/avr/avr.c: Likewise.
7355 * config/bfin/bfin.c: Likewise.
7356 * config/c6x/c6x.c: Likewise.
7357 * config/cr16/cr16.c: Likewise.
7358 * config/cris/cris.c: Likewise.
7359 * config/darwin-c.c: Likewise.
7360 * config/darwin.c: Likewise.
7361 * config/epiphany/epiphany.c: Likewise.
7362 * config/epiphany/mode-switch-use.c: Likewise.
7363 * config/epiphany/resolve-sw-modes.c: Likewise.
7364 * config/fr30/fr30.c: Likewise.
7365 * config/frv/frv.c: Likewise.
7366 * config/ft32/ft32.c: Likewise.
7367 * config/h8300/h8300.c: Likewise.
7368 * config/i386/i386-c.c: Likewise.
7369 * config/i386/i386.c: Likewise.
7370 * config/i386/msformat-c.c: Likewise.
7371 * config/i386/winnt-cxx.c: Likewise.
7372 * config/i386/winnt-stubs.c: Likewise.
7373 * config/i386/winnt.c: Likewise.
7374 * config/ia64/ia64-c.c: Likewise.
7375 * config/ia64/ia64.c: Likewise.
7376 * config/iq2000/iq2000.c: Likewise.
7377 * config/lm32/lm32.c: Likewise.
7378 * config/m32c/m32c-pragma.c: Likewise.
7379 * config/m32c/m32c.c: Likewise.
7380 * config/m32r/m32r.c: Likewise.
7381 * config/m68k/m68k.c: Likewise.
7382 * config/mcore/mcore.c: Likewise.
7383 * config/mep/mep-pragma.c: Likewise.
7384 * config/mep/mep.c: Likewise.
7385 * config/microblaze/microblaze-c.c: Likewise.
7386 * config/microblaze/microblaze.c: Likewise.
7387 * config/mips/mips.c: Likewise.
7388 * config/mmix/mmix.c: Likewise.
7389 * config/mn10300/mn10300.c: Likewise.
7390 * config/moxie/moxie.c: Likewise.
7391 * config/msp430/msp430-c.c: Likewise.
7392 * config/msp430/msp430.c: Likewise.
7393 * config/nds32/nds32-cost.c: Likewise.
7394 * config/nds32/nds32-fp-as-gp.c: Likewise.
7395 * config/nds32/nds32-intrinsic.c: Likewise.
7396 * config/nds32/nds32-isr.c: Likewise.
7397 * config/nds32/nds32-md-auxiliary.c: Likewise.
7398 * config/nds32/nds32-memory-manipulation.c: Likewise.
7399 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7400 * config/nds32/nds32-predicates.c: Likewise.
7401 * config/nds32/nds32.c: Likewise.
7402 * config/nios2/nios2.c: Likewise.
7403 * config/nvptx/nvptx.c: Likewise.
7404 * config/pa/pa.c: Likewise.
7405 * config/pdp11/pdp11.c: Likewise.
7406 * config/rl78/rl78-c.c: Likewise.
7407 * config/rl78/rl78.c: Likewise.
7408 * config/rs6000/rs6000-c.c: Likewise.
7409 * config/rs6000/rs6000.c: Likewise.
7410 * config/rx/rx.c: Likewise.
7411 * config/s390/s390-c.c: Likewise.
7412 * config/s390/s390.c: Likewise.
7413 * config/sh/sh-c.c: Likewise.
7414 * config/sh/sh-mem.cc: Likewise.
7415 * config/sh/sh.c: Likewise.
7416 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7417 * config/sh/sh_treg_combine.cc: Likewise.
7418 * config/sol2-c.c: Likewise.
7419 * config/sol2-cxx.c: Likewise.
7420 * config/sol2-stubs.c: Likewise.
7421 * config/sol2.c: Likewise.
7422 * config/sparc/sparc-c.c: Likewise.
7423 * config/sparc/sparc.c: Likewise.
7424 * config/spu/spu-c.c: Likewise.
7425 * config/spu/spu.c: Likewise.
7426 * config/stormy16/stormy16.c: Likewise.
7427 * config/tilegx/mul-tables.c: Likewise.
7428 * config/tilegx/tilegx-c.c: Likewise.
7429 * config/tilegx/tilegx.c: Likewise.
7430 * config/tilepro/mul-tables.c: Likewise.
7431 * config/tilepro/tilepro-c.c: Likewise.
7432 * config/tilepro/tilepro.c: Likewise.
7433 * config/v850/v850-c.c: Likewise.
7434 * config/v850/v850.c: Likewise.
7435 * config/vax/vax.c: Likewise.
7436 * config/visium/visium.c: Likewise.
7437 * config/vms/vms-c.c: Likewise.
7438 * config/vms/vms.c: Likewise.
7439 * config/vxworks.c: Likewise.
7440 * config/xtensa/xtensa.c: Likewise.
7442 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
7444 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
7445 Remove operand constraints. Change operand 2 predicate to
7446 nonmemory operand. Limit const_int values to mode bitsize. Only
7447 allow const_int values less than 32 when optimizing for size.
7448 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
7449 Remove operand constraints.
7450 (*bt<mode>): Use SImode for const_int values less than 32.
7451 (regmode): Remove mode attribute.
7453 2015-07-07 Anatoly Sokolov <aesok@post.ru>
7455 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7456 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
7457 moxie_legitimate_address_p): New functions.
7458 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7460 2015-07-07 Tom de Vries <tom@codesourcery.com>
7462 PR tree-optimization/66642
7463 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
7464 header comment. Rename split_edge variable to edge_at_split. Split
7465 exit edge to create new loop exit bb. Insert loop exit phis in new
7468 2015-07-07 Tom de Vries <tom@codesourcery.com>
7470 * tree-cfg.c (get_virtual_phi): New function.
7471 * tree-cfg.h (get_virtual_phi): Declare.
7472 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
7473 (rewrite_virtuals_into_loop_closed_ssa): New function.
7474 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
7476 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
7477 (transform_to_exit_first_loop_alt): Use
7478 rewrite_virtuals_into_loop_closed_ssa.
7480 2015-07-07 Richard Biener <rguenther@suse.de>
7482 * fold-const.c (fold_binary_loc): Move
7483 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
7484 * match.pd: ... here.
7485 Add (X * C1) % C2 -> 0 simplification pattern derived from
7488 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
7491 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
7492 change for target/65249.
7494 2015-07-07 Paulo Matos <pmatos@broadcom.com>
7496 * symtab.c (address_matters_1): Fix typo in comment above.
7497 (can_increase_alignment_p): Likewise.
7499 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7501 * function.c (free_after_compilation): Clear PROP_cfg in
7504 2015-07-07 Richard Biener <rguenther@suse.de>
7506 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
7508 (add_control_edge): Remove excessive vertical space in dumping.
7509 (process_ssa_edge_worklist): Simulate at most one statement and
7510 return whether we did. Do not simulate PHIs if they are in a
7511 BB not yet simulated.
7512 (ssa_propagate): Adjust to always drain the BB worklist whenever
7513 a BB is available there, likewise the VARYING edges list before
7514 the interesting edge list.
7516 2015-07-07 Christian Bruel <christian.bruel@st.com>
7519 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
7521 2015-07-07 Richard Biener <rguenther@suse.de>
7524 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
7527 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
7529 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
7530 modes for operands 0 and 3. Use SImode for operands 2 and 3.
7531 Copy operand 0 to a temporary if !ext_register_operand. Remove
7532 ancient extract_bit_field workaround.
7533 (insv<mode>_1): Rename from mov<mode>_insv_1.
7534 (*insvqi): Rename from *movqi_insv_2.
7535 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
7536 for renamed insvsi_1.
7537 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
7539 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
7541 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
7542 call to nvptx_reorg_subreg.
7544 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
7546 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
7547 * graphite-dependencies.c, graphite-interchange.c,
7548 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
7549 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
7552 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
7554 * match.pd: Remove element_mode inside HONOR_*.
7555 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
7556 (~X | X -> -1, ~X ^ X -> -1): Merge.
7557 * tree.c (build_each_one_cst): New function.
7558 * tree.h (build_each_one_cst): Likewise.
7560 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
7562 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7565 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
7567 * config.gcc <mips*-*-*>: Add fused-madd.opt.
7568 * config/mips/mips.opt (mfused-madd): Remove.
7569 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
7570 * config/mips/mips.h (TARGET_MIPS8000): New.
7571 (ISA_HAS_FP_MADD4_MSUB4): Remove.
7572 (ISA_HAS_FP_MADDF_MSUBF): Remove.
7573 (ISA_HAS_FP_MADD3_MSUB3): Remove.
7574 (ISA_HAS_NMADD4_NMSUB4): Remove.
7575 (ISA_HAS_NMADD3_NMSUB3): Remove.
7576 (ISA_HAS_FUSED_MADD4): New.
7577 (ISA_HAS_UNFUSED_MADD4): New.
7578 (ISA_HAS_FUSED_MADDF): New.
7579 (ISA_HAS_FUSED_MADD3): New.
7580 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
7581 (*fma<mode>4_madd3) New.
7582 (*fma<mode>4_madd4) New.
7583 (*fma<mode>4_maddf) New.
7585 (*fms<mode>4_msub3) New.
7586 (*fms<mode>4_msub4) New.
7588 (*fnma<mode>4_nmadd3) New.
7589 (*fnma<mode>4_nmadd4) New.
7591 (*fnms<mode>4_nmsub3) New.
7592 (*fnms<mode>4_nmsub4) New.
7593 (*madd4<mode>) Modify to be unfused only.
7594 (*msub4<mode>) Modify to be unfused only.
7595 (*nmadd4<mode>) Modify to be unfused only.
7596 (*nmsub4<mode>) Modify to be unfused only.
7597 (*madd3<mode>) Remove.
7598 (*msub3<mode>) Remove.
7599 (*nmadd3<mode>) Remove.
7600 (*nmsub3<mode>) Remove.
7601 (*nmadd3<mode>_fastmath) Remove.
7602 (*nmsub3<mode>_fastmath) Remove.
7603 (*nmadd4<mode>_fastmath) Update condition.
7604 (*nmsub4<mode>_fastmath) Update condition.
7606 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
7609 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
7610 alignment attribute, exploring one level down for records and arrays.
7612 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
7614 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
7615 modes for operands 0 and 1. Use SImode for operands 2 and 3.
7616 Copy operand 1 to a temporary if !ext_register_operand. Remove
7617 ancient extract_bit_field workaround.
7618 (*extv<mode>): Rename from *mov<mode>_extv_1.
7619 (*extvqi): Rename from *movqi_extv_1.
7620 (extzv<mode>): Rename from extzv. Use SWI248 modes for
7621 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
7622 to a temporary if !ext_register_operand. Remove ancient
7623 extract_bit_field workaround.
7624 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
7625 (*extzvqi): Rename from *movqi_extzv_2.
7626 (*testqi_ext_3): Remove modes from const_int_operand predicated
7627 operands. Add "n" constraint.
7628 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
7629 operand. Add "J" constraint.
7630 (*btsq, *btrq, *btcq peephole2s): Remove mode from
7631 const_0_to_63 predicated operand.
7632 (regmode): New insn attribute.
7633 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
7634 to nonmemory_operand. Use regmode insn attribute.
7635 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
7636 (*jcc_bt<mode>_mask): Remove mode from operand 3.
7637 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
7638 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
7639 operands. Use "N" constraint instead of "n".
7641 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
7643 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
7645 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
7648 * config/i386/i386.c (iamcu_cost): New.
7649 (m_IAMCU): Likewise.
7650 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
7651 (processor_target_table): Add an entry for "iamcu".
7652 (processor_alias_table): Likewise.
7653 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
7654 (ix86_adjust_cost): Likewise.
7655 (ia32_multipass_dfa_lookahead): Likewise.
7656 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
7657 * config/i386/x86-tune.def: Updated for m_IAMCU.
7659 2015-07-06 Richard Biener <rguenther@suse.de>
7661 PR tree-optimization/66772
7662 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
7663 values are available in the PHI node BB when there are
7664 still unexecutable edges.
7666 2015-07-06 Richard Biener <rguenther@suse.de>
7668 PR tree-optimization/66767
7669 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
7670 Make sure to build the alignment test on a SSA name without
7671 final alignment info valid only if the alignment test
7674 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
7677 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
7678 loop start when inserting LSETUP.
7680 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
7683 * config/i386/i386.c (ix86_option_override_internal): Allow
7684 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
7686 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7688 * read-md.c (decimal_string): Rename to ...
7689 (md_decimal_string): ... this.
7690 (handle_enum): Reflect this.
7692 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
7695 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
7697 2015-07-06 Richard Biener <rguenther@suse.de>
7700 * match.pd: Add missing constraint of y to REAL_CST in
7701 REAL_CST - x CMP y to y - CST CMP x simplification.
7703 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
7705 PR tree-optimization/66757
7706 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
7708 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
7709 Sandra Loosemore <sandra@codesourcery.com>
7711 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
7712 Delete extern declaration.
7713 (gprel_constant_p): Add extern declaration.
7714 * config/nios2/constraints.md ("S"): Use gprel_constant_p
7715 instead of nios2_symbol_ref_in_small_data_p.
7716 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
7717 (nios2_symbol_ref_in_small_data_p): Make static.
7718 (gprel_constant_p): Make non-static.
7720 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
7722 * doc/fragments.texi (Target Fragment): Convert debian.org
7724 * doc/install.texi (Configuration): Ditto.
7726 2015-07-05 Jakub Jelinek <jakub@redhat.com>
7728 PR tree-optimization/66718
7729 * tree-vect-stmts.c (vectorizable_call): Replace uses of
7730 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
7732 PR tree-optimization/66718
7733 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
7734 vectorizable_load, vectorizable_condition): Move vectype,
7735 nunits, ncopies computation after checking what kind of statement
7738 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7740 * target-insns.def (extv, extzv, insv): New targetm instruction
7742 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
7744 * recog.c (simplify_while_replacing): Likewise.
7746 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7748 * target-insns.def (doloop_begin, doloop_end): New targetm
7749 instruction patterns.
7750 * loop-init.c: Include target.h.
7751 (pass_loop2::gate): Use the new targetm patterns instead of
7752 HAVE_*/gen_* interface.
7753 (pass_rtl_doloop::gate): Likewise.
7754 (pass_rtl_doloop::execute): Remove preprocessor condition.
7755 * hw-doloop.c: Build unconditionally.
7756 * loop-doloop.c: Likewise.
7757 (doloop_optimize): Use the new targetm patterns instead of
7758 HAVE_*/gen_* interface.
7759 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
7760 * modulo-sched.c (doloop_register_get): Likewise.
7762 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7764 * target-insns.def (clear_cache): New targetm instruction pattern.
7765 * builtins.c (expand_builtin___clear_cache): Use it instead of
7766 HAVE_*/gen_* interface.
7768 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7770 * target-insns.def (allocate_stack, check_stack, probe_stack)
7771 (probe_stack_address, split_stack_prologue, split_stack_space_check):
7772 New targetm instruction patterns.
7773 * explow.c (allocate_dynamic_stack_space): Use them instead of
7774 HAVE_*/gen_* interface.
7775 (emit_stack_probe): Likewise.
7776 (probe_stack_range): Likewise.
7777 * function.c (thread_prologue_and_epilogue_insns): Likewise.
7779 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7781 * target-insns.def (stack_protect_set, stack_protect_test): New
7782 targetm instruction patterns.
7783 * cfgexpand.c (stack_protect_prologue): Use them instead of
7784 HAVE_*/gen_* interface.
7785 * function.c (stack_protect_epilogue): Likewise.
7787 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7789 * expr.h (gen_move_insn_uncast): Delete.
7790 * expr.c (gen_move_insn_uncast): Delete.
7792 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7794 * target-insns.def (restore_stack_block, restore_stack_function)
7795 (restore_stack_nonlocal, save_stack_block, save_stack_function)
7796 (save_stack_nonlocal): New targetm instruction patterns.
7797 * builtins.c (expand_builtin_apply): Use them instead of
7798 HAVE_*/gen_* interface.
7799 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
7801 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7803 * target-insns.def (trap): New targetm instruction pattern.
7804 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
7806 * explow.c (allocate_dynamic_stack_space): Likewise.
7807 * ifcvt.c (find_if_header): Likewise.
7809 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7811 * target-insns.def (prefetch): New targetm instruction pattern.
7812 * tree-ssa-loop-prefetch.c: Include targeth.
7813 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
7814 of HAVE_*/gen_* interface.
7815 * builtins.c (expand_builtin_prefetch): Likewise.
7816 * toplev.c (process_options): Likewise.
7818 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7820 * target-insns.def (untyped_call, untyped_return): New targetm
7821 instruction patterns.
7822 * builtins.c (expand_builtin_apply): Use them instead of
7823 HAVE_*/gen_* interface.
7824 (result_vector): Define unconditionally.
7826 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7828 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
7829 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
7830 (nonlocal_goto_receiver): New targetm instruction patterns.
7831 * builtins.c (expand_builtin_setjmp_setup): Use them instead
7832 of HAVE_*/gen_* interface.
7833 (expand_builtin_setjmp_receiver): Likewise.
7834 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
7835 * except.c (expand_dw2_landing_pad_for_region): Likewise.
7837 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7839 * target.def: Add code_for_* hooks.
7840 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
7841 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
7842 * target-insns.def (casesi, tablejump): New targetm instruction
7844 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
7845 (do_tablejump): Likewise.
7846 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
7847 (expand_sjlj_dispatch_table): Likewise.
7848 * targhooks.c (default_case_values_threshold): Likewise.
7850 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
7852 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
7853 Use rtx_insn * instead of rtx.
7854 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
7855 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
7856 (nios2_call_tls_get_addr): Likewise.
7857 (nios2_emit_expensive_div): Likewise.
7858 (nios2_emit_move_sequence): Change return type to bool.
7859 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
7860 Change return type to bool.
7862 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7865 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
7867 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
7870 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
7871 of register_operand. Remove constraint.
7873 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
7875 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
7878 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
7880 * attribs.c (decl_attributes): Guard inform with the return value
7881 of the preceding warning.
7883 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
7885 * doc/invoke.texi (moverride): Move to correct section.
7887 2015-07-03 Richard Biener <rguenther@suse.de>
7889 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
7891 (dt_operand::gen_gimple_expr): After valueizing operands
7892 re-canonicalize operand order for commutative tree codes.
7894 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
7897 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
7899 (__crc32w): Likewise.
7900 (__crc32d): Likewise.
7901 (__rdpmc): Likewise.
7902 (__rdtscp): Likewise.
7904 (_rdtscp): Likewise.
7905 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
7908 2015-07-03 Richard Biener <rguenther@suse.de>
7910 * fold-const.c (fold_mathfn_compare): Remove.
7911 (fold_inf_compare): Likewise.
7912 (fold_comparison): Move floating point comparison simplifications...
7913 * match.pd: ... to patterns here. Introduce simple_comparisons
7914 operator list and use it for patterns formerly in fold_comparison.
7916 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
7918 PR tree-optimization/66119
7919 * toplev.c (process_options): Don't set up default values for
7920 the sra_max_scalarization_size_{speed,size} parameters.
7921 * tree-sra (analyze_all_variable_accesses): If no values
7922 have been set for the sra_max_scalarization_size_{speed,size}
7923 parameters, call get_move_ratio to get target defaults.
7925 2015-07-03 Richard Biener <rguenther@suse.de>
7927 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
7928 * match.pd: ... here.
7930 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
7933 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
7934 is not actually the default on FreeBSD.
7936 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7938 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
7940 (CMPGE_8HI): Likewise.
7941 (CMPGE_4SI): Likewise.
7942 (CMPGE_2DI): Likewise.
7943 (CMPGE_U16QI): Likewise.
7944 (CMPGE_U8HI): Likewise.
7945 (CMPGE_U4SI): Likewise.
7946 (CMPGE_U2DI): Likewise.
7947 (CMPLE_16QI): Likewise.
7948 (CMPLE_8HI): Likewise.
7949 (CMPLE_4SI): Likewise.
7950 (CMPLE_2DI): Likewise.
7951 (CMPLE_U16QI): Likewise.
7952 (CMPLE_U8HI): Likewise.
7953 (CMPLE_U4SI): Likewise.
7954 (CMPLE_U2DI): Likewise.
7955 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7956 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
7957 ALTIVEC_BUILTIN_VEC_CMPLE.
7958 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
7959 floating-point vector modes.
7960 (vector_nlt<mode>): New define_expand.
7961 (vector_nltu<mode>): Likewise.
7962 (vector_ngt<mode>): Likewise.
7963 (vector_ngtu<mode>): Likewise.
7965 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
7967 PR rtl-optimization/66706
7968 * combine.c (make_compound_operation): If an AND of SUBREG of
7969 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
7971 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
7973 * tree-pass.h (make_pass_ch_vect): New.
7974 * passes.def: Add pass_ch_vect just before pass_if_conversion.
7976 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
7977 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
7978 make_pass_ch_vect): New.
7979 (pass_ch): Extend ch_base.
7981 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
7982 (ch_base::copy_headers): ...here.
7984 2015-07-02 Richard Biener <rguenther@suse.de>
7986 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
7987 * fold-const.c (get_pointer_modulus_and_residue): Remove.
7988 (fold_binary_loc): Implement (T)ptr & CST in terms of
7989 get_pointer_alignment_1.
7990 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
7991 Make sure to build the alignment test on a SSA name without
7992 final alignment info valid only after the prologue.
7994 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
7996 * config/cris/cris.md ("epilogue"): Remove condition.
7997 ("prologue"): Ditto.
7999 2015-07-02 Richard Biener <rguenther@suse.de>
8001 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
8002 parameter to record a condition that is false.
8003 (record_conditions): When recording an extra NE_EXPR that is
8004 true also record a EQ_EXPR that is false.
8006 2015-07-02 Bin Cheng <bin.cheng@arm.com>
8008 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
8009 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
8010 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
8011 (set_iv, find_interesting_uses_address, add_candidate_1): New
8012 argument to alloc_iv.
8013 (find_interesting_uses_op, find_interesting_uses_cond): Don't
8014 duplicate struct iv.
8015 (free_loop_data): Don't free struct iv explicitly.
8016 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
8018 2015-07-01 DJ Delorie <dj@redhat.com>
8020 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
8022 (SUPPORTS_DISCRIMINATOR): Define.
8024 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
8027 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
8028 there are no CALLs in the same pattern.
8030 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8032 PR rtl-optimization/61047
8033 * rtlanal.c (get_initial_register_offset): New function.
8034 (rtx_addr_can_trap_p_1): Check offsets of stack references.
8036 2015-07-01 Richard Biener <rguenther@suse.de>
8038 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
8039 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
8040 ~X CMP C -> X CMP' ~C to ...
8041 * match.pd: ... patterns here.
8043 2015-07-01 Nick Clifton <nickc@redhat.com>
8045 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
8046 a 16-bit value into a 20-bit memory slot.
8048 2015-07-01 Jiong Wang <jiong.wang@arm.com>
8050 * doc/sourcebuild.texi (AArch64-specific attributes): Document
8051 "aarch64_tiny", "aarch64_small", "aarch64_large",
8052 "aarch64_little_endian", "aarch64_big_endian".
8054 2015-07-01 Jiong Wang <jiong.wang@arm.com>
8056 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
8057 Document "aarch64_small_fpic".
8059 2015-07-01 Jiong Wang <jiong.wang@arm.com>
8061 * configure.ac: Add check for aarch64 assembler -fpic relocation
8063 * configure: Regenerate.
8064 * config.in: Regenerate.
8065 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
8066 to -fPIC if not support of -fpic relocation modifier in assembler.
8068 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
8071 * rtl.c (classify_insn): Handle returns in PARALLELs.
8073 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
8076 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
8077 to true if the function is nested and if not optimizing.
8078 (convert_local_omp_clauses): Initialize need_frame to true if the
8079 function contains nested functions and if not optimizing.
8081 2015-07-01 Richard Biener <rguenther@suse.de>
8083 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
8084 (X & Y) ^ Y -> ~X & Y transforms to ...
8085 * match.pd: ... here.
8087 2015-07-01 Richard Biener <rguenther@suse.de>
8089 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
8090 of converts to avoid uninteresting noise from the conversion
8091 simplifying patterns.
8093 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
8095 * config/c6x/c6x.c (try_rename_operands): Do not depend on
8096 gcc_assert evaluating its argument for side-effect.
8098 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
8101 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
8104 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
8106 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
8107 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
8108 (hash_scc): Add this_ref_p and ref_p parameters and pass them
8109 to the inner DFS walk.
8111 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
8113 * target-insns.def (jump): New targetm instruction pattern.
8114 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
8115 instead of gen_jump.
8116 (fix_up_crossing_landing_pad): Likewise.
8117 (add_labels_and_missing_jumps): Likewise.
8118 (fix_crossing_conditional_branches): Likewise.
8119 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8120 (force_nonfallthru_and_redirect): Likewise.
8121 * cse.c (cse_insn): Likewise.
8122 * expmed.c (expand_divmod): Likewise.
8123 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
8124 * haifa-sched.c (init_before_recovery): Likewise.
8125 (sched_create_recovery_edges): Likewise.
8126 * ifcvt.c (find_cond_trap): Likewise.
8127 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
8128 (expand_float, expand_fix): Likewise.
8129 * stmt.c (emit_jump): Likewise.
8131 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
8133 * defaults.h (HAVE_load_multiple, gen_load_multiple)
8134 (HAVE_store_multiple, gen_store_multiple): Delete.
8135 * target-insns.def (load_multiple, store_multiple): New targetm
8136 instruction patterns.
8137 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
8138 of HAVE_*/gen_* interface.
8140 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
8142 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
8143 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
8144 (gen_mem_signal_fence): Delete.
8145 * target-insns.def (mem_signal_fence, mem_thread_fence)
8146 (memory_barrier): New targetm instruction patterns.
8147 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
8149 (expand_mem_signal_fence): Likewise.
8151 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
8153 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
8154 * target-insns.def (epilogue, prologue, sibcall_prologue): New
8155 targetm instruction patterns.
8156 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
8158 * calls.c (expand_call): Likewise.
8159 * cfgrtl.c (cfg_layout_finalize): Likewise.
8160 * df-scan.c (df_get_entry_block_def_set): Likewise.
8161 (df_get_exit_block_use_set): Likewise.
8162 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
8163 * final.c (final_start_function): Likewise.
8164 * function.c (thread_prologue_and_epilogue_insns): Likewise.
8165 (reposition_prologue_and_epilogue_notes): Likewise.
8166 * reorg.c (find_end_label): Likewise.
8167 * toplev.c (process_options): Likewise.
8169 2015-06-30 David Malcolm <dmalcolm@redhat.com>
8171 * typed-splay-tree.h: New file.
8173 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
8176 * lra-int.h (lra_substitute_pseudo): Add a parameter.
8177 (lra_substitute_pseudo_within_insn): Ditto.
8178 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
8180 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
8181 to lra_substitute_pseudo.
8182 * lra-lives.c (process_bb_lives): Add an argument to
8183 lra_substitute_pseudo_within_insn call.
8184 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
8185 argument to lra_substitute_pseudo and
8186 lra_substitute_pseudo_within_insn calls.
8187 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
8189 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
8191 * configure: Regenerated.
8193 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
8195 * config.gcc: Support i[34567]86-*-elfiamcu target.
8196 * config/i386/iamcu.h: New.
8197 * config/i386/i386.opt: Add -miamcu.
8198 * doc/invoke.texi: Document -miamcu.
8199 * common/config/i386/i386-common.c (ix86_handle_option): Turn
8200 off x87/MMX/SSE/AVX codegen for -miamcu.
8201 * config/i386/i386-c.c (ix86_target_macros_internal): Define
8202 __iamcu/__iamcu__ for -miamcu.
8203 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
8204 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
8205 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
8206 * config/i386/i386.c (ix86_option_override_internal): Ignore and
8207 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
8208 MCU by default. Default long double to 64-bit for Intel MCU.
8209 Turn on -freg-struct-return for Intel MCU. Issue an error when
8210 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
8212 (function_arg_advance_32): Pass value whose size is no larger
8213 than 8 bytes in registers for Intel MCU.
8214 (function_arg_32): Likewise.
8215 (ix86_return_in_memory): Return value whose size is no larger
8216 than 8 bytes in registers for Intel MCU.
8217 (iamcu_alignment): New function.
8218 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
8220 (ix86_local_alignment): Don't increase alignment for Intel MCU.
8221 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
8224 2015-06-30 Marek Polacek <polacek@redhat.com>
8226 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
8227 both operands of the resulting expression.
8229 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
8230 the final expression with the operand's type and then convert
8231 it to the type of the expression.
8233 2015-06-30 Richard Biener <rguenther@suse.de>
8235 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
8236 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
8237 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
8238 * match.pd: ... to patterns here.
8240 2015-06-30 Richard Biener <rguenther@suse.de>
8242 PR tree-optimization/66704
8243 * tree-vect-data-refs.c (vect_setup_realignment): Use
8244 make_ssa_name for non-SSA name source.
8246 2015-06-30 Jakub Jelinek <jakub@redhat.com>
8249 * omp-low.c (simd_clone_adjust): Handle addressable linear
8250 or uniform parameters or non-gimple type uniform parameters.
8252 2015-06-30 Richard Biener <rguenther@suse.de>
8254 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
8255 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
8256 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
8257 * match.pd: ... here.
8258 Add a few cases of A - B -> A + (-B) when B "easily" negates.
8259 Move (x & y) | x -> x and friends before
8260 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
8262 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
8264 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
8265 -mfix-ut699 is not specified.
8266 (leon3_load): Rename into...
8267 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
8270 2015-06-30 Marek Polacek <polacek@redhat.com>
8272 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
8273 * match.pd: ... here.
8275 2015-06-30 Richard Biener <rguenther@suse.de>
8277 * target-insns.def (canonicalize_funcptr_for_compare): Add.
8278 * fold-const.c (build_range_check): Replace uses of
8279 HAVE_canonicalize_funcptr_for_compare.
8280 (fold_widened_comparison): Likewise.
8281 (fold_sign_changed_comparison): Likewise.
8282 * dojump.c: Include "target.h".
8283 (do_compare_and_jump): Replace uses of
8284 HAVE_canonicalize_funcptr_for_compare and
8285 gen_canonicalize_funcptr_for_compare.
8286 * expr.c (do_store_flag): Likewise.
8288 2015-06-30 Tom de Vries <tom@codesourcery.com>
8290 PR tree-optimization/66652
8291 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
8292 max_loop_iterations to determine if nit + 1 overflows.
8294 2015-06-30 Richard Biener <rguenther@suse.de>
8296 * tree-vrp.c (register_edge_assert_for_2): Also register
8297 asserts for dominating conversion results.
8299 2015-06-30 Bin Cheng <bin.cheng@arm.com>
8301 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
8304 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
8307 * configure.ac: Fix filds and fildq test for 64-bit.
8308 * configure: Regenerated.
8310 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
8312 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
8313 (nvptx_reorg): Here. Keep the non-subreg pieces.
8315 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
8317 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
8318 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
8320 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
8322 * config/i386/i386.md (*jcc_1): Use %! in asm template.
8323 Set attribute "length_nobnd" instead of "length".
8326 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
8328 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
8330 * config/nios2/nios2.c (nios2_delegitimize_address): Make
8331 assert less restrictive.
8333 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
8336 * cgraphunit.c (cgraph_node::finalize_function): Do not call
8337 do_warn_unused_parameter.
8338 * function.c (do_warn_unused_parameter): Move from here.
8339 * function.h (do_warn_unused_parameter): Do not declare.
8341 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
8344 * gcc.target/arm/armv-sync-comp-swap.c: New.
8345 * gcc.target/arm/armv-sync-op-acquire.c: New.
8346 * gcc.target/arm/armv-sync-op-full.c: New.
8347 * gcc.target/arm/armv-sync-op-release.c: New.
8349 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
8352 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
8353 initial acquire barrier with final barrier.
8355 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
8358 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
8359 initial acquire barrier with final barrier.
8361 2015-06-29 Richard Henderson <rth@redhat.com>
8363 * config/i386/constraints.md (Bf): New constraint.
8364 * config/i386/i386-c.c (ix86_target_macros): Define
8365 __GCC_ASM_FLAG_OUTPUTS__.
8366 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
8368 * doc/extend.texi (FlagOutputOperands): Document them.
8370 2015-06-29 Jiong Wang <jiong.wang@arm.com>
8372 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
8373 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
8375 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
8376 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
8377 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
8378 (aarch64_symbol_context): Ditto.
8379 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
8380 and use new pattern name.
8381 (aarch64_expand_mov_immediate): Ditto.
8382 (aarch64_print_operand): Ditto.
8383 (aarch64_classify_tls_symbol): Ditto.
8385 2015-06-29 Marek Polacek <polacek@redhat.com>
8386 Marc Glisse <marc.glisse@inria.fr>
8388 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
8389 * match.pd: ... pattern here.
8391 2015-06-29 Tom de Vries <tom@codesourcery.com>
8393 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
8396 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
8398 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
8399 feature description, split out the native option, add a link to
8400 the feature documentation, rearrange and slightly rewrite text.
8401 (Aarch64 options, -mcpu): Likewise.
8402 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
8403 +rdma implies Adv. SIMD.
8405 2015-06-29 Marek Polacek <polacek@redhat.com>
8408 * function.c (stack_protect_epilogue): Remove a cast to int.
8409 * doc/invoke.texi: Update -Wswitch-bool description.
8411 2015-06-29 Richard Biener <rguenther@suse.de>
8413 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
8414 * fold-const.c (fold_binary_loc): Move &A - &B simplification
8415 via ptr_difference_const ...
8416 * match.pd: ... here.
8417 When matching (X ^ Y) == Y also match with swapped operands.
8419 2015-06-29 Richard Biener <rguenther@suse.de>
8421 * lto-streamer.h (LTO_major_version): Bump to 5.
8423 2015-06-29 Richard Biener <rguenther@suse.de>
8425 PR tree-optimization/66677
8426 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
8427 STMT_VINFO_VEC_STMT clobbering less strict.
8429 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
8432 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
8433 division, compute max and min when value ranges for dividend and
8434 divisor are available.
8436 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
8437 Sandra Loosemore <sandra@codesourcery.com>
8439 * regrename.h (regrename_do_replace): Change to return bool.
8440 * regrename.c (rename_chains): Check return value of
8442 (regrename_do_replace): Re-validate the modified insns and
8444 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
8445 Update to match rename_chains changes.
8446 * config/c6x/c6x.c (try_rename_operands): Assert that
8447 regrename_do_replace returns true.
8449 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
8451 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
8452 operand 2 here. Use copy_addr_to_reg to copy non-index
8453 register operand 2 to a temporary.
8454 (<mode>_stx): Ditto for operand 1.
8455 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
8456 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
8457 (ix86_store_bounds): Ditto.
8459 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
8461 * print-tree.c (print_node) [TREE_VEC]: Print its length.
8463 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
8465 * gimple.c (gimple_call_set_fndecl): Remove.
8466 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
8467 build1_loc directly instead of build_fold_addr_expr_loc.
8469 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
8471 * hash-map.h (hash_map::traverse): Use the definition of the
8472 Key typedef rather than the typedef itself.
8474 2015-06-26 Martin Jambor <mjambor@suse.cz>
8477 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
8478 NULL instead of calling dump_enabled_p.
8480 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
8482 * config/aarch64/aarch64.opt: (override): New.
8483 * doc/invoke.texi (override): Document.
8484 * config/aarch64/aarch64.c (aarch64_flag_desc): New
8485 (aarch64_fusible_pairs): Likewise.
8486 (aarch64_tuning_flags): Likewise.
8487 (aarch64_tuning_override_function): Likewise.
8488 (aarch64_tuning_override_functions): Likewise.
8489 (aarch64_parse_one_option_token): Likewise.
8490 (aarch64_parse_boolean_options): Likewise.
8491 (aarch64_parse_fuse_string): Likewise.
8492 (aarch64_parse_tune_string): Likewise.
8493 (aarch64_parse_one_override_token): Likewise.
8494 (aarch64_parse_override_string): Likewise.
8495 (aarch64_override_options): Parse the -override string if it
8498 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
8500 * config/aarch64/aarch64-protos.h (tune_params): Remove
8502 (aarch64_tune_params): Remove const, change to no longer be
8504 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
8505 change to no longer be a pointer, initialize to generic_tunings.
8506 (aarch64_min_divisions_for_recip_mul): Change dereference of
8507 aarch64_tune_params to member access.
8508 (aarch64_reassociation_width): Likewise.
8509 (aarch64_rtx_mult_cost): Likewise.
8510 (aarch64_address_cost): Likewise.
8511 (aarch64_branch_cost): Likewise.
8512 (aarch64_rtx_costs): Likewise.
8513 (aarch64_register_move_cost): Likewise.
8514 (aarch64_memory_move_cost): Likewise.
8515 (aarch64_sched_issue_rate): Likewise.
8516 (aarch64_builtin_vectorization_cost): Likewise.
8517 (aarch64_override_options): Take a copy of the selected tuning
8518 struct in to aarch64_tune_params, rather than just setting
8519 a pointer, change dereferences of aarch64_tune_params to member
8521 (aarch64_override_options_after_change): Change dereferences of
8522 aarch64_tune_params to member access.
8523 (aarch64_macro_fusion_p): Likewise.
8524 (aarch_macro_fusion_pair_p): Likewise.
8525 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
8527 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
8529 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
8530 (aarch64_tune_flags): Likewise.
8531 (AARCH64_TUNE_FMA_STEERING): Likewise.
8532 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
8533 to AARCH64_FL_USE_FMA_STEERING_PASS.
8534 (cortex-a57.cortex-a53): Likewise.
8535 (cortex-a72): Use cortexa72_tunings.
8536 (cortex-a72.cortex-a53): Likewise.
8537 (exynos-m1): Likewise.
8538 * config/aarch64/aarch64-protos.h (tune_params): Add
8539 a field: extra_tuning_flags.
8540 * config/aarch64/aarch64-tuning-flags.def: New.
8541 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
8542 (aarch64_extra_tuning_flags): Likewise.
8543 (aarch64_tune_params): Declare here.
8544 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
8545 (cortexa53_tunings): Likewise.
8546 (cortexa57_tunings): Likewise.
8547 (thunderx_tunings): Likewise.
8548 (xgene1_tunings): Likewise.
8549 (cortexa72_tunings): New.
8550 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
8551 (gate): Check against aarch64_tune_params.
8552 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
8555 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
8557 * config/aarch64/aarch64-fusion-pairs.def: New.
8558 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
8559 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
8560 aarch64_fusion_pairs.
8561 (AARCH64_FUSE_MOV_MOVK): Likewise.
8562 (AARCH64_FUSE_ADRP_ADD): Likewise.
8563 (AARCH64_FUSE_MOVK_MOVK): Likewise.
8564 (AARCH64_FUSE_ADRP_LDR): Likewise.
8565 (AARCH64_FUSE_CMP_BRANCH): Likewise.
8567 2015-06-26 Jiong Wang <jiong.wang@arm.com>
8569 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
8570 SYMBOL_SMALL_GOT_28K.
8571 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
8572 relocation modifiers.
8573 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
8574 (ldr_got_small_28k_<mode>): New.
8575 (ldr_got_small_28k_sidi): New.
8576 * config/aarch64/iterators.md (got_modifier): New mode iterator.
8577 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
8578 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
8579 SYMBOL_SMALL_GOT_28K.
8580 (aarch64_rtx_costs): Add costs for new instruction sequences.
8581 (initialize_aarch64_code_model): Initialize new model.
8582 (aarch64_classify_symbol): Recognize new model and new symbol classification.
8583 (aarch64_asm_preferred_eh_data_format): Support new model.
8584 (aarch64_load_symref_appropriately): Generate new instruction
8585 sequences for -fpic.
8586 (TARGET_USE_PSEUDO_PIC_REG): New definition.
8587 (aarch64_use_pseudo_pic_reg): New function.
8589 2015-06-26 Jiong Wang <jiong.wang@arm.com>
8591 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
8592 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
8593 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
8594 (aarch64_expand_mov_immediate): Ditto.
8595 (aarch64_print_operand): Ditto.
8596 (aarch64_classify_symbol): Ditto.
8598 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
8600 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
8602 2015-06-26 Bin Cheng <bin.cheng@arm.com>
8605 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
8606 assertion failed. Remove assertion itself.
8608 2015-06-26 Richard Biener <rguenther@suse.de>
8610 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
8611 and -A CMP CST -> A CMP -CST which is redundant with a pattern
8613 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
8614 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
8615 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
8616 * match.pd: ... patterns here.
8618 2015-06-26 Marek Polacek <polacek@redhat.com>
8620 * match.pd ((x | y) & ~(x & y) -> x ^ y,
8621 (x | y) & (~x ^ y) -> x & y): New patterns.
8623 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
8625 * rtl.h (emit): Add an optional boolean parameter to control
8626 whether barriers are emitted.
8627 * emit-rtl.c (emit): Likewise.
8628 * gensupport.c (get_emit_function): Return null rather than "emit".
8629 * genemit.c (gen_emit_seq): Handle the null return value.
8630 Don't emit barriers after the final instruction in the sequence.
8631 * gentarget-def.c (main): Don't emit barriers after the instruction.
8633 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8635 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
8638 2015-06-26 Richard Biener <rguenther@suse.de>
8640 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
8642 2015-06-26 Richard Biener <rguenther@suse.de>
8644 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
8645 irrespective on whether the inner operation has a single use
8646 of both off are constant.
8648 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
8649 Segher Boessenkool <segher@kernel.crashing.org>
8652 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
8653 before doing PUT_MODE or PUT_CODE on operands to avoid
8654 in-place RTX modification.
8656 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
8658 * gentarget-def.c (def_target_insn): Cast return of strtol to
8661 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
8663 * gimple.h (gimple_call_set_fn): Move inline function.
8664 * gimple.c (gimple_call_set_fn): Relocate here.
8666 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
8670 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
8671 the replacement insn will work.
8673 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
8675 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
8678 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
8680 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
8681 * cgraph.h: Include ipa-ref.h and plugin-api.h.
8682 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
8683 (symtab_node::address_can_be_compared_p): Move function.
8684 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
8686 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
8687 * auto-profile.c: Likewise.
8688 * bb-reorder.c: Likewise.
8689 * builtins.c: Likewise.
8690 * calls.c: Likewise.
8691 * cfgexpand.c: Likewise.
8692 * cgraphbuild.c: Likewise.
8693 * cgraphclones.c: Likewise.
8694 * cgraphunit.c: Likewise.
8695 * combine.c: Likewise.
8696 * coverage.c: Likewise.
8697 * data-streamer-in.c: Likewise.
8698 * data-streamer-out.c: Likewise.
8699 * data-streamer.c: Likewise.
8700 * dbxout.c: Likewise.
8701 * dwarf2out.c: Likewise.
8702 * except.c: Likewise.
8704 * final.c: Likewise.
8705 * fold-const.c: Likewise.
8706 * ggc-page.c: Likewise.
8707 * gimple-fold.c: Likewise.
8708 * gimple-iterator.c: Likewise.
8709 * gimple-pretty-print.c: Likewise.
8710 * gimple-streamer-in.c: Likewise.
8711 * gimple-streamer-out.c: Likewise.
8712 * gimple.c: Likewise.
8713 * gimplify.c: Likewise.
8714 * ipa-chkp.c: Likewise.
8715 * ipa-comdats.c: Likewise.
8716 * ipa-cp.c: Likewise.
8717 * ipa-devirt.c: Likewise.
8718 * ipa-icf-gimple.c: Likewise.
8719 * ipa-icf.c: Likewise.
8720 * ipa-inline-analysis.c: Likewise.
8721 * ipa-inline-transform.c: Likewise.
8722 * ipa-inline.c: Likewise.
8723 * ipa-polymorphic-call.c: Likewise.
8724 * ipa-profile.c: Likewise.
8725 * ipa-prop.c: Likewise.
8726 * ipa-pure-const.c: Likewise.
8727 * ipa-ref.c: Likewise.
8728 * ipa-reference.c: Likewise.
8729 * ipa-split.c: Likewise.
8730 * ipa-utils.c: Likewise.
8731 * ipa-visibility.c: Likewise.
8733 * langhooks.c: Likewise.
8734 * lto-cgraph.c: Likewise.
8735 * lto-compress.c: Likewise.
8736 * lto-opts.c: Likewise.
8737 * lto-section-in.c: Likewise.
8738 * lto-section-out.c: Likewise.
8739 * lto-streamer-in.c: Likewise.
8740 * lto-streamer-out.c: Likewise.
8741 * lto-streamer.c: Likewise.
8742 * omp-low.c: Likewise.
8743 * opts-global.c: Likewise.
8744 * passes.c: Likewise.
8745 * predict.c: Likewise.
8746 * print-tree.c: Likewise.
8747 * profile.c: Likewise.
8749 * sanopt.c: Likewise.
8750 * stor-layout.c: Likewise.
8751 * symtab.c: Likewise.
8752 * toplev.c: Likewise.
8753 * trans-mem.c: Likewise.
8754 * tree-cfg.c: Likewise.
8755 * tree-chkp.c: Likewise.
8756 * tree-eh.c: Likewise.
8757 * tree-emutls.c: Likewise.
8758 * tree-inline.c: Likewise.
8759 * tree-nested.c: Likewise.
8760 * tree-parloops.c: Likewise.
8761 * tree-pretty-print.c: Likewise.
8762 * tree-profile.c: Likewise.
8763 * tree-sra.c: Likewise.
8764 * tree-ssa-alias.c: Likewise.
8765 * tree-ssa-live.c: Likewise.
8766 * tree-ssa-loop-ivcanon.c: Likewise.
8767 * tree-ssa-loop-ivopts.c: Likewise.
8768 * tree-ssa-pre.c: Likewise.
8769 * tree-ssa-sccvn.c: Likewise.
8770 * tree-ssa-strlen.c: Likewise.
8771 * tree-ssa-structalias.c: Likewise.
8772 * tree-streamer-in.c: Likewise.
8773 * tree-streamer-out.c: Likewise.
8774 * tree-streamer.c: Likewise.
8775 * tree-switch-conversion.c: Likewise.
8776 * tree-tailcall.c: Likewise.
8777 * tree-vect-data-refs.c: Likewise.
8778 * tree-vect-stmts.c: Likewise.
8779 * tree-vectorizer.c: Likewise.
8782 * ubsan.c: Likewise.
8783 * value-prof.c: Likewise.
8784 * varasm.c: Likewise.
8785 * varpool.c: Likewise.
8786 * config/arm/arm.c: Likewise.
8787 * config/bfin/bfin.c: Likewise.
8788 * config/c6x/c6x.c: Likewise.
8789 * config/cris/cris.c: Likewise.
8790 * config/darwin-c.c: Likewise.
8791 * config/darwin.c: Likewise.
8792 * config/i386/i386.c: Likewise.
8793 * config/i386/winnt.c: Likewise.
8794 * config/microblaze/microblaze.c: Likewise.
8795 * config/mips/mips.c: Likewise.
8796 * config/rs6000/rs6000.c: Likewise.
8797 * config/rx/rx.c: Likewise.
8798 * config/s390/s390.c: Likewise.
8799 * config/tilegx/mul-tables.c: Likewise.
8801 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8803 * config/aarch64/aarch64.c, config/alpha/alpha.c,
8804 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
8805 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
8806 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
8807 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
8808 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8809 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
8810 config/microblaze/microblaze.c, config/mips/mips.c,
8811 config/mmix/mmix.c, config/mn10300/mn10300.c,
8812 config/moxie/moxie.c, config/msp430/msp430.c,
8813 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
8814 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
8815 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
8816 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
8817 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8818 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8819 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
8820 target-def.h include.
8821 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
8823 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8825 * Makefile.in (TARGET_DEF): Add target-insns.def.
8826 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
8827 (build/gentarget-def.o): New rule.
8828 (genprogrtl): Add target-def.
8829 * target-insns.def, gentarget-def.c: New files.
8830 * target.def: Add targetm.have_* and targetm.gen_* hooks,
8831 based on the contents of target-insns.def.
8832 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
8833 (HAVE_return, gen_return): Delete.
8834 * target-def.h: Include insn-target-def.h.
8835 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
8836 instead of direct calls. Rely on them to do the appropriate assertions.
8837 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
8838 (convert_jumps_to_returns): Use targetm interface instead of
8840 (thread_prologue_and_epilogue_insns): Likewise.
8841 * reorg.c (find_end_label, dbr_schedule): Likewise.
8842 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
8843 * shrink-wrap.c (convert_to_simple_return): Likewise.
8844 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
8846 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8848 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
8849 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8850 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
8851 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
8852 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
8853 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8854 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
8855 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
8856 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
8857 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
8858 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
8859 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
8860 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
8861 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8862 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8863 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
8866 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8868 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
8869 (unbounded_int_hashmap_traits::key_type): Likewise.
8870 * hash-map.h (hash_map): Get the key type from the traits.
8871 * hash-traits.h (default_hash_traits): By default, inherit from the
8873 * alias.c (alias_set_traits): Delete.
8874 (alias_set_entry_d::children): Use alias_set_hash as the first
8876 (record_alias_subset): Update accordingly.
8877 * except.c (tree_hash_traits): Delete.
8878 (type_to_runtime_map): Use tree_hash as the first template parameter.
8879 (init_eh): Update accordingly.
8880 * genmatch.c (capture_id_map_hasher): Delete.
8881 (cid_map_t): Use nofree_string_hash as first template parameter.
8882 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
8883 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
8884 Use symbol_compare_hash as the first template parameter in
8886 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
8887 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
8889 * passes.c (pass_registry_hasher): Delete.
8890 (name_to_pass_map): Use nofree_string_hash as the first template
8892 (register_pass_name): Update accordingly.
8893 * sanopt.c (sanopt_tree_map_traits): Delete.
8894 (sanopt_tree_triplet_map_traits): Delete.
8895 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
8897 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
8898 the first template parameter.
8899 * sese.c (rename_map_hasher): Delete.
8900 (rename_map_type): Use tree_ssa_name_hash as the first template
8902 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
8903 (function_summary::m_map): Use map_hash as the first template
8905 (function_summary::release): Update accordingly.
8906 * tree-if-conv.c (phi_args_hash_traits): Delete.
8907 (predicate_scalar_phi): Use tree_operand_hash as the first template
8908 parameter to phi_arg_map.
8909 * tree-inline.h (dependence_hasher): Delete.
8910 (copy_body_data::dependence_map): Use dependence_hash as the first
8912 * tree-inline.c (remap_dependence_clique): Update accordingly.
8913 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
8914 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
8916 (addr_stridxptr): Update accordingly.
8917 * value-prof.c (profile_id_traits): Delete.
8918 (cgraph_node_map): Use profile_id_hash as the first template
8920 (init_node_map): Update accordingly.
8921 * config/alpha/alpha.c (string_traits): Delete.
8922 (machine_function::links): Use nofree_string_hash as the first
8924 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
8925 * config/m32c/m32c.c (pragma_traits): Delete.
8926 (pragma_htab): Use nofree_string_hash as the first template parameter.
8927 (m32c_note_pragma_address): Update accordingly.
8928 * config/mep/mep.c (pragma_traits): Delete.
8929 (pragma_htab): Use nofree_string_hash as the first template parameter.
8930 (mep_note_pragma_flag): Update accordingly.
8931 * config/mips/mips.c (mips16_flip_traits): Delete.
8932 (mflip_mips16_htab): Use nofree_string_hash as the first template
8934 (mflip_mips16_use_mips16_p): Update accordingly.
8935 (local_alias_traits): Delete.
8936 (mips16_local_aliases): Use nofree_string_hash as the first template
8938 (mips16_local_alias): Update accordingly.
8940 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8942 * hash-map-traits.h (default_hashmap_traits): Delete.
8944 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8946 * hash-map-traits.h (unbounded_hashmap_traits): New class.
8947 (unbounded_int_hashmap_traits): Likewise.
8948 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
8950 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8952 * ipa-icf.h (symbol_compare_hash): New class.
8953 (symbol_compare_hashmap_traits): Use it.
8954 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
8955 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
8956 (mem_alloc_description::reverse_mem_map_t): Remove redundant
8957 default_hashmap_traits.
8958 * sanopt.c (sanopt_tree_triplet_hash): New class.
8959 (sanopt_tree_triplet_map_traits): Use it.
8961 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8963 * gengtype-parse.c (require_template_declaration): Allow '+' in
8964 template parameters. Consolidate cases.
8965 * hash-traits.h (int_hash): New class.
8966 * alias.c (alias_set_hash): New structure.
8967 (alias_set_traits): Use it.
8968 * symbol-summary.h (function_summary::map_hash): New class.
8969 (function_summary::summary_hashmap_traits): Use it.
8970 * tree-inline.h (dependence_hash): New class.
8971 (dependence_hasher): Use it.
8972 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
8973 * value-prof.c (profile_id_hash): New class.
8974 (profile_id_traits): Use it.
8976 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8978 * config/mips/mips.c (mips16_flip_traits): Use it.
8979 (local_alias_traits, mips16_local_aliases): Convert from a map of
8980 rtxes to a map of symbol names.
8981 (mips16_local_alias): Update accordingly.
8983 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8985 * hash-traits.h (string_hash, nofree_string_hash): New classes.
8986 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
8987 * passes.c (pass_registry_hasher): Likewise.
8988 * config/alpha/alpha.c (string_traits): Likewise.
8989 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
8990 * config/m32c/m32c.c (pragma_traits): Likewise.
8991 * config/mep/mep.c (pragma_traits): Likewise.
8993 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8995 * tree-hash-traits.h (tree_hash): New class.
8996 * except.c: Include tree-hash-traits.h.
8997 (tree_hash_traits): Use tree_hash.
8999 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9001 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
9002 * sese.c: Include tree-hash-traits.h.
9003 (rename_map_hasher): Use tree_ssa_name_hasher.
9005 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9007 * tree-hash-traits.h (tree_decl_hash): New class.
9008 * tree-ssa-strlen.c: Include tree-hash-traits.h.
9009 (stridxlist_hash_traits): Use tree_decl_hash.
9011 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9013 * tree-hash-traits.h: New file.
9014 (tree_operand_hash): New class.
9015 * sanopt.c: Include tree-hash-traits.h.
9016 (sanopt_tree_map_traits): Use tree_operand_hash.
9017 * tree-if-conv.c: Include tree-hash-traits.h.
9018 (phi_args_hash_traits): Use tree_operand_hash.
9019 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
9020 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
9022 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9024 * hash-map-traits.h: Include hash-traits.h.
9025 (simple_hashmap_traits): New class.
9026 * mem-stats.h (hash_map): Change the default traits to
9027 simple_hashmap_traits<default_hash_traits<Key> >.
9029 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9031 * hash-table.h: Update comments.
9033 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9035 * hash-traits.h (default_hash_traits): New structure.
9036 * hash-set.h (default_hashset_traits): Delete.
9037 (hash_set): Use default_hash_traits<Key> instead of
9038 default_hashset_traits. Delete hash_entry type and use Key directly.
9039 * ipa-devirt.c (pair_traits): Delete.
9040 (default_hash_traits <type_pair>): Override.
9041 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
9042 (odr_types_equivalent_p, add_type_duplicate): Likewise.
9044 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9046 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
9048 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9050 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
9051 (has_is_empty, is_empty_helper): Delete.
9052 (has_mark_deleted, mark_deleted_helper): Delete.
9053 (has_mark_empty, mark_empty_helper): Delete.
9054 (hash_table::is_deleted): Call the Descriptor unconditionally.
9055 (hash_table::is_empty): Likewise.
9056 (hash_table::mark_deleted): Likewise.
9057 (hash_table::mark_empty): Likewise.
9059 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9061 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
9062 redundant typedefs and members.
9063 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
9065 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
9066 * ipa-devirt.c (odr_name_hasher): Likewise.
9067 (polymorphic_call_target_hasher): Likewise.
9068 * ira-costs.c (cost_classes_hasher): Likewise.
9069 * statistics.c (stats_counter_hasher): Likewise.
9070 * trans-mem.c (log_entry_hasher): Likewise.
9071 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
9072 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
9073 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
9074 * var-tracking.c (variable_hasher): Likewise.
9075 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
9076 Remove redundant typedefs and members.
9078 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9080 * hash-traits.h (ggc_cache_hasher): Rename to...
9081 (ggc_cache_remove): ...this and remove typedefs.
9082 (ggc_cache_ptr_hash): New class.
9083 * hash-table.h: Update commentary.
9084 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
9085 rather than ggc_cache_hasher.
9086 (const_wide_int_hasher, reg_attr_hasher): Likewise.
9087 (const_double_hasher, const_fixed_hasher): Likewise.
9088 * function.c (insn_cache_hasher): Likewise.
9089 * trans-mem.c (tm_wrapper_hasher): Likewise.
9090 * tree.h (tree_decl_map_cache_hasher): Likewise.
9091 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
9092 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
9093 * ubsan.c (tree_type_map_cache_hasher): Likewise.
9094 * varasm.c (tm_clone_hasher): Likewise.
9095 * config/i386/i386.c (dllimport_hasher): Likewise.
9096 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
9097 (tree_hasher): Likewise.
9099 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9101 * hash-traits.h (ggc_hasher): Rename to...
9102 (ggc_remover): ...this and remove typedefs.
9103 (ggc_cache_hasher): Update accordingly. Add typedefs.
9104 (ggc_ptr_hash): New class.
9105 * hash-table.h: Update comment.
9106 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
9108 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
9109 (tree_descriptor_hasher): Likewise.
9110 * cgraph.c (function_version_hasher): Likewise.
9111 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
9112 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
9113 (dw_loc_list_hasher, addr_hasher): Likewise.
9114 * function.h (used_type_hasher): Likewise.
9115 * function.c (temp_address_hasher): Likewise.
9116 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
9117 * libfuncs.h (libfunc_hasher): Likewise.
9118 * lto-streamer.h (decl_state_hasher): Likewise.
9119 * optabs.c (libfunc_decl_hasher): Likewise.
9120 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
9121 * varasm.c (section_hasher, object_block_hasher): Likewise.
9122 (const_rtx_desc_hasher): Likewise.
9123 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
9124 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
9126 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9128 * hash-traits.h (free_ptr_hash): New class.
9129 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
9130 rather than typed_free_remove. Remove redudant typedefs.
9131 (external_ref_hasher): Likewise.
9132 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
9133 (ehspec_hasher): Likewise.
9134 * ggc-common.c (saving_hasher): Likewise.
9135 * gimplify.c (gimplify_hasher): Likewise.
9136 * haifa-sched.c (delay_i2_hasher): Likewise.
9137 * loop-invariant.c (invariant_expr_hasher): Likewise.
9138 * loop-iv.c (biv_entry_hasher): Likewise.
9139 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
9140 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
9141 * tree-cfg.c (locus_discrim_hasher): Likewise.
9142 * tree-eh.c (finally_tree_hasher): Likewise.
9143 * tree-into-ssa.c (var_info_hasher): Likewise.
9144 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
9145 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
9146 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
9147 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
9148 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
9149 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
9150 (shared_bitmap_hasher): Likewise.
9151 * tree-ssa-threadupdate.c (redirection_data): Likewise.
9152 * tree-vectorizer.h (peel_info_hasher): Likewise.
9153 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
9154 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
9156 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9158 * hash-table.h: Update comments.
9159 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
9160 (nofree_ptr_hash): New class.
9161 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
9162 than typed_noop_remove. Remove redudant typedefs.
9163 * attribs.c (attribute_hasher): Likewise.
9164 * cfg.c (bb_copy_hasher): Likewise.
9165 * cselib.c (cselib_hasher): Likewise.
9166 * dse.c (invariant_group_base_hasher): Likewise.
9167 * dwarf2cfi.c (trace_info_hasher): Likewise.
9168 * dwarf2out.c (macinfo_entry_hasher): Likewise.
9169 (comdat_type_hasher, loc_list_hasher): Likewise.
9170 * gcse.c (pre_ldst_expr_hasher): Likewise.
9171 * genmatch.c (id_base): Likewise.
9172 * genrecog.c (test_pattern_hasher): Likewise.
9173 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
9174 * haifa-sched.c (delay_i1_hasher): Likewise.
9175 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
9176 * ipa-icf.h (congruence_class_group_hash): Likewise.
9177 * ipa-profile.c (histogram_hash): Likewise.
9178 * ira-color.c (allocno_hard_regs_hasher): Likewise.
9179 * lto-streamer.h (string_slot_hasher): Likewise.
9180 * lto-streamer.c (tree_entry_hasher): Likewise.
9181 * plugin.c (event_hasher): Likewise.
9182 * postreload-gcse.c (expr_hasher): Likewise.
9183 * store-motion.c (st_expr_hasher): Likewise.
9184 * tree-sra.c (uid_decl_hasher): Likewise.
9185 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
9186 (ssa_name_var_hash): Likewise.
9187 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
9188 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
9189 * tree-ssa-pre.c (pre_expr_d): Likewise.
9190 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
9191 * vtable-verify.h (registration_hasher): Likewise.
9192 * vtable-verify.c (vtbl_map_hasher): Likewise.
9193 * config/arm/arm.c (libcall_hasher): Likewise.
9194 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
9195 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
9196 * config/sol2.c (comdat_entry_hasher): Likewise.
9197 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
9198 (print_fold_checksum, fold_checksum_tree): Likewise.
9199 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
9200 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
9201 (fold_build_call_array_loc): Likewise.
9202 * tree-ssa-ccp.c (gimple_htab): Likewise.
9203 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
9204 rather than pointer_type.
9206 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9208 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
9209 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
9211 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9213 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
9214 (ggc_hasher::ggc_mx): Likewise.
9215 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
9216 that duplicate ggc_hasher ones.
9218 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9220 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
9221 (gt_cleare_cache): Check here for deleted and empty entries.
9222 Replace handle_cache_entry with a call to keep_cache_entry.
9223 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
9224 (ggc_cache_hasher::keep_cache_entry): New function.
9225 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
9226 (tm_wrapper_hasher::keep_cache_entry): New function.
9227 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
9228 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
9229 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
9230 (type_cache_hasher::keep_cache_entry): New function.
9231 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
9232 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
9233 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
9234 (tree_type_map_cache_hasher::keep_cache_entry): New function.
9235 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
9236 (tm_clone_hasher::keep_cache_entry): New function.
9237 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
9238 (dllimport_hasher::keep_cache_entry): New function.
9240 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9242 * hash-table.h: Include hash-traits.h.
9243 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
9244 (ggc_cache_hasher): Move to...
9245 * hash-traits.h: ...this new file.
9247 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
9249 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
9250 struct cl_optimization.
9251 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
9252 * tree.c (make_node_stat): Allocate cl_optimization struct.
9253 (copy_node_stat): Allocate and copy cl_optimization struct.
9255 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
9257 * function.h (struct incoming_args): Move struct.
9258 (pass_by_reference, reference_callee_copied): Remove prototypes.
9259 * emit-rtl.h (struct incoming_args): Relocate struct here.
9260 * calls.h (pass_by_reference, reference_callee_copied): Relocate
9262 * function.c (pass_by_reference, reference_callee_copied): Move.
9263 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
9264 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
9265 * ipa-chkp.c: Include calls.h.
9267 2015-06-25 Andrew Macleod <amacleod@redhat.com>
9269 * alias.h (alias_set_type): Move typedef.
9270 * coretypes.h (alias_set_type): Relocate typedef here.
9271 * rtl.h: Don't include alias.h.
9273 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
9275 * cgraph.h (cgraph_rtl_info): Move to rtl.h
9276 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
9278 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
9279 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
9281 * calls.c: Include hard-reg-set.h before rtl.h.
9284 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
9285 Vladimir Makarov <vmakarov@redhat.com>
9287 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
9290 2015-06-25 Richard Biener <rguenther@suse.de>
9292 * fold-const.c (fold_binary_loc): Move simplification of
9293 (X <<>> C1) & C2 ...
9294 * match.pd: ... here.
9296 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
9298 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
9300 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9302 * match.pd: Add patterns for vec_conds between 1 and 0.
9304 2015-06-25 Richard Biener <rguenther@suse.de>
9306 * tree-vect-stmts.c (vectorizable_conversion): Do not set
9307 STMT_VINFO_VEC_STMT for SLP.
9308 (vectorizable_store): Likewise.
9309 (vectorizable_load): Likewise.
9310 (vect_transform_stmt): Catch SLP vectorization clobbering
9311 STMT_VINFO_VEC_STMT.
9313 2015-06-25 Richard Biener <rguenther@suse.de>
9315 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
9317 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
9318 cleanup resulting dead code and parameters.
9319 (vect_transform_slp_perm_load): Adjust.
9321 2015-06-25 Nick Clifton <nickc@redhat.com>
9323 * config/bfin/bfin.c (bfin_expand_prologue): Set
9324 current_function_static_stack_size if flag_stack_usage_info is set.
9325 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
9326 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
9327 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
9328 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
9330 2015-06-25 Tom de Vries <tom@codesourcery.com>
9332 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
9333 comment that the generated IV is unsigned.
9335 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9338 * config/arm/arm.c (arm_dbx_register_number): Return
9339 DWARF_FRAME_REGISTERS by default.
9341 2015-06-25 Tom de Vries <tom@codesourcery.com>
9343 * dominance.c (calculate_dominance_info): Fix verify_dominators call
9344 argument. Call verify_dominator when reusing dominator info.
9346 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
9349 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
9350 an additional element of the unspec vector. Modify indices
9352 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
9353 * config/sh/sh.c (prepare_move_operands): Pass incremented
9354 const_int to gen_GOTaddr2picreg.
9355 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
9357 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
9359 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
9360 Condition on TARGET_FLOAT.
9362 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
9364 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
9367 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
9369 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
9371 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
9372 aarch64_err_no_fpadvsimd.
9374 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
9375 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
9376 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
9377 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
9378 Turn error into assert, test TARGET_FLOAT.
9379 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
9382 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
9385 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
9387 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
9389 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
9391 2015-06-24 Renlin Li <renlin.li@arm.com>
9393 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
9394 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
9396 2015-06-24 Richard Biener <rguenther@suse.de>
9398 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
9400 (lower_opt_convert): Support lowering of conditional view_convert.
9401 (parser::parse_operation): Likewise.
9402 (parser::parse_for): Likewise.
9404 2015-06-24 Renlin Li <renlin.li@arm.com>
9406 * varasm.c (emit_local): Use unsigned int for align variable.
9408 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9411 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
9412 for negative numbers.
9414 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9416 PR rtl-optimization/66306
9417 * reload.c (find_reloads): Swap the match_dup info for
9418 commutative operands.
9420 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9422 * config/s390/vx-builtins.md
9423 ("vec_scatter_element<mode>_<non_vec_int>")
9424 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
9425 attribute with bhfgq.
9427 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9429 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
9431 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9433 * config/s390/s390-builtin-types.def: Add flag to indicate the
9434 options under which the function type is needed.
9435 * config/s390/s390-builtins.def: Add flag to indicate the options
9436 under which the builtin is enabled.
9437 * config/s390/s390-builtins.h: Add flags parameter to macro
9439 (bflags_for_builtin): New function.
9440 (flags_for_builtin): Renamed to ...
9441 (opflags_for_builtin): ... this.
9442 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
9443 flags_for_builtin to bflags_for_builtin and
9444 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
9445 * config/s390/s390.c: Add initialization of bflags_builtin and
9446 opflags_builtin arrays.
9447 Remove code for flags_builtin.
9448 (s390_init_builtins): Only create builtin function types if one of
9449 their flags is active.
9450 Only create builtins if all of their flags are active.
9451 (s390_expand_builtin): Rename flags_for_builtin to
9452 opflags_for_builtin.
9454 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9456 * config/s390/vecintrin.h: Remove internal builtins.
9458 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9460 * config/s390/s390.c (s390_secondary_reload): Fix check for
9461 GENERAL_REGS register class.
9463 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9465 * config/s390/s390.c (s390_support_vector_misalignment): Call
9466 default implementation for !TARGET_VX.
9468 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9470 * config/s390/s390.c (s390_legitimate_constant_p): Add
9473 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9475 * config/s390/s390.c (s390_vector_abi): New variable definition.
9476 (s390_check_type_for_vector_abi): New function.
9477 (TARGET_ASM_FILE_END): New macro definition.
9478 (s390_asm_file_end): New function.
9479 (s390_function_arg): Call s390_check_type_for_vector_abi.
9480 (s390_gimplify_va_arg): Likewise.
9481 * configure: Regenerate.
9482 * configure.ac: Check for .gnu_attribute Binutils feature.
9484 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
9487 * config/bfin/bfin.c (hwloop_optimize): Initialize
9488 JUMP_LABEL for newly created jump.
9490 2015-06-23 Tristan Gingold <gingold@adacore.com>
9492 * collect-utils.c (collect_wait): Unlink the response file here
9495 (utils_cleanup): ...and here.
9497 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
9499 * df-scan.c: Don't include target-def.h.
9500 * targhooks.c: Likewise.
9501 * config/arm/arm-c.c: Likewise.
9502 * config/i386/i386-c.c: Likewise.
9503 * config/nds32/nds32-cost.c: Likewise.
9504 * config/nds32/nds32-fp-as-gp.c: Likewise.
9505 * config/nds32/nds32-intrinsic.c: Likewise.
9506 * config/nds32/nds32-isr.c: Likewise.
9507 * config/nds32/nds32-md-auxiliary.c: Likewise.
9508 * config/nds32/nds32-memory-manipulation.c: Likewise.
9509 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9510 * config/nds32/nds32-predicates.c: Likewise.
9512 2015-06-23 Richard Biener <rguenther@suse.de>
9514 PR tree-optimization/66636
9515 * tree-vect-stmts.c (vectorizable_store): Properly compute the
9516 def type for further defs for strided stores.
9518 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
9520 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
9521 conditional selects.
9522 (setcc_int<mode>, setcc_float<mode>): Reformat.
9524 2015-06-23 Marek Polacek <polacek@redhat.com>
9526 * match.pd ((x + y) - (x | y) -> x & y,
9527 (x + y) - (x & y) -> x | y): New patterns.
9529 2015-06-23 Ludovic Courtès <ludo@gnu.org>
9532 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
9533 '-dynamic-linker' within %{!shared: ...}.
9535 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
9538 * config/i386/predicates.md (addsub_vm_operator): New predicate.
9539 (addsub_vs_operator): Ditto.
9540 (addsub_vs_parallel): Ditto.
9541 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
9542 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
9543 Put minus RTX before plus and adjust vec_merge selector.
9544 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
9545 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
9546 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
9547 (addsub vec_merge splitters): New combiner splitters.
9548 (addsub vec_select/vec_concat splitters): Ditto.
9550 2015-06-23 Bin Cheng <bin.cheng@arm.com>
9552 PR tree-optimization/66449
9553 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
9554 POINTER_PLUS_EXPR for pointers.
9556 2015-06-23 Alan Modra <amodra@gmail.com>
9558 * rtlanal.c (commutative_operand_precedence): Correct comments.
9559 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
9560 declaration. Return an int. Distinguish REG,REG return from
9562 (struct simplify_plus_minus_op_data): Make local to function.
9563 (simplify_plus_minus): Don't set canonicalized if merely sorting
9564 registers. Avoid packing ops if nothing changes. White space fixes.
9566 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
9568 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
9569 -fdump-ada-spec is passed but not if -fsyntax-only is.
9571 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
9574 * lra-lives.c (process_bb_lives): Check insn copying the same
9575 reload pseudo and don't create a copy for it.
9577 2015-06-22 Tom de Vries <tom@codesourcery.com>
9579 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
9582 2015-06-22 Tom de Vries <tom@codesourcery.com>
9584 * builtins.def (DEF_GOMP_BUILTIN): Test
9585 'flag_tree_parallelize_loops > 1' instead of
9586 'flag_tree_parallelize_loops'. Test flag_cilkplus.
9588 2015-06-22 Tom de Vries <tom@codesourcery.com>
9590 * dominance.c (calculate_dominance_info): Verify dominators if
9593 2015-06-22 Marek Polacek <polacek@redhat.com>
9595 * match.pd ((x ^ y) ^ (x | y) -> x & y,
9596 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
9597 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
9598 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
9600 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
9603 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
9604 cost of embedded comparison.
9606 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9609 * config/rs6000/predicates.md (altivec_register_operand): Permit
9610 virtual stack registers.
9611 (vsx_register_operand): Likewise.
9612 (vfloat_operand): Likewise.
9613 (vint_operand): Likewise.
9614 (vlogical_operand): Likewise.
9616 2015-06-22 Richard Biener <rguenther@suse.de>
9618 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
9619 and single_scalar_iteration_cost members.
9620 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
9621 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
9622 (vect_get_single_scalar_iteration_cost): Remove.
9623 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
9624 Use LOOP_VINFO_SCALAR_ITERATION_COST.
9625 * tree-vect-loop.c (destroy_loop_vec_info): Free
9627 (vect_get_single_scalar_iteration_cost): Compute result into
9628 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
9629 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
9630 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
9631 (vect_estimate_min_profitable_iters): Use them.
9633 2015-06-22 Christian Bruel <christian.bruel@st.com>
9636 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
9637 (TARGET_INSERT_ATTRIBUTES): Define.
9638 (thumb_flipper): New var.
9639 * config/arm/arm.opt (-mflip-thumb): New switch.
9641 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
9642 Martin Liska <mliska@suse.cz>
9645 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
9646 construction of arg_types.
9647 (sem_function::sem_function): Likewise.
9648 (sem_function::~sem_function): Remove destruction of arg_types.
9649 (sem_function::compatible_parm_types_p): New function.
9650 (sem_function::equals_wpa): Reorg matching of return values
9651 and parameter types.
9652 (sem_function::equals_private): Reorg mathcing of argument types.
9653 (sem_function::parse_tree_args): Remove.
9654 * ipa-icf.h (init_wpa): Do not call it.
9655 (parse_tree_args): Remove.
9656 (compatible_parm_types_p): Declare.
9657 (result_type): Remove.
9658 (arg_types): Remove.
9660 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
9663 * ipa-polymorphic-call.c
9664 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
9665 initializing alias oracle; fix formating; set base_alias_set if it
9668 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
9670 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
9671 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
9672 (find_inc): Likewise.
9673 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
9675 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
9676 * df-scan.c (df_swap_refs): Remove.
9677 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
9678 * dominance.c (link_roots): Use std::swap instead of manually swapping.
9679 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
9680 * fold-const.c (fold_relational_const): Likewise.
9681 * genattrtab.c (simplify_test_exp): Likewise.
9682 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
9683 gimple_simplify): Likewise.
9684 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
9685 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
9686 * ipa-devirt.c (add_type_duplicate): Likewise.
9687 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
9688 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
9689 * lra.c (lra_create_copy): Likewise.
9690 * lto-streamer-out.c (DFS::DFS): Likewise.
9691 * modulo-sched.c (get_sched_window): Likewise.
9692 * omega.c (omega_pretty_print_problem): Likewise.
9693 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
9694 * reload1.c (reloads_unique_chain_p): Likewise.
9695 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
9696 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
9698 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
9700 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
9701 predicate_mem_writes): Likewise.
9702 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
9703 * tree-predcom.c (combine_chains): Likewise.
9704 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
9705 refs_may_alias_p_1): Likewise.
9706 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
9707 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
9708 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
9709 number_of_iterations_cond): Likewise.
9710 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
9711 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
9712 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
9713 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
9714 * tree-vrp.c (extract_range_from_binary_expr_1,
9715 extract_range_from_unary_expr_1): Likewise.
9717 2015-06-20 Marek Polacek <polacek@redhat.com>
9719 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
9721 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
9724 * config/sh/sh.c (prepare_move_operands): Replace subreg
9725 index term with R0 for base and index addressing.
9727 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
9729 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
9731 (movsf_aarch64): Change condition from register_operand to
9732 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
9733 load1. Change type for alternative 7 to store1.
9734 (movdf_aarch64): Likewise.
9736 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
9738 * config/vax/vax.md: Adjust sign/zero extend patterns to
9739 handle SUBREGs in operands[1].
9741 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9743 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
9744 of manually swapping.
9745 (expand_vec_perm_interleave2): Likewise.
9747 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
9749 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
9750 reuse bounds created for abnormal ssa names.
9752 2015-06-19 Jakub Jelinek <jakub@redhat.com>
9754 * config/nvptx/nvptx.md (allocate_stack): Rename to...
9755 (allocate_stack_<mode>): ... this, and add :P on both
9756 match_operand and unspec.
9757 (allocate_stack): New expander.
9759 2015-06-19 Christian Bruel <christian.bruel@st.com>
9763 * config/arm/arm.c (arm_set_current_function): Handle
9764 explicit default options.
9766 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
9768 * config/i386/i386.md (*movsicc_noc_zext): New insn.
9769 (zero-extended cmove with mem peephole2): New pattern.
9770 (cmove with mem peephole2): Merge patterns.
9772 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
9774 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
9776 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
9778 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
9779 * config/mips/mips.md (*madd4<mode>): Ditto.
9780 (*nmadd3<mode>) Ditto.
9781 (*nmadd4<mode>_fastmath): Ditto.
9782 (*nmadd3<mode>_fastmath): Ditto.
9783 (*nmsub4<mode>): Ditto.
9784 (*nmsub3<mode>): Ditto.
9785 (*nmsub4<mode>_fastmath): Ditto.
9786 (*nmsub3<mode>_fastmath): Ditto.
9788 2015-06-18 Michael Matz <matz@suse.de>
9791 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
9792 grouped strided stores.
9793 (vectorizable_load): Don't use the DR from first_stmt in
9794 the non-SLP grouped strided case.
9796 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
9799 * function.c (assign_bounds): Add arguments assign_regs,
9800 assign_special, assign_bt.
9801 (assign_parms): For vararg functions handle bounds in BT
9802 and special slots after incoming vararg bounds.
9804 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
9807 * cfgexpand.c (expand_return): Handle missing bounds.
9808 (expand_gimple_stmt_1): Likewise.
9809 * tree-chkp.c (chkp_expand_zero_bounds): New.
9810 * tree-chkp.h (chkp_expand_zero_bounds): New.
9812 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
9815 * ipa-chkp.c (chkp_maybe_create_clone): Require
9816 functions to be instrumentable.
9817 * tree-chkp.c (chkp_replace_function_pointer): Use
9818 chkp_instrumentable_p instead of attribute check.
9820 2015-06-18 Richard Biener <rguenther@suse.de>
9822 PR tree-optimization/66510
9823 * tree-vect-stmts.c (vectorizable_load): Properly compute the
9824 number of vector loads for SLP permuted loads.
9825 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
9826 check the stride for loop vectorization.
9827 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
9828 vectorization factor.
9829 (vect_analyze_group_access): If the group size is not a power
9830 of two require a epilogue loop.
9831 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
9832 compute and optimizing and alias test pruning after final
9833 vectorization factor computation.
9834 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
9836 (vect_transform_slp_perm_load): Properly compute the original
9837 number of vector load stmts.
9839 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
9841 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
9842 "unlikely character , in @var" warning.
9844 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
9846 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
9847 (ix86_function_arg_advance): Ditto.
9848 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
9850 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
9852 * function.h (struct rtl_data): Remove struct and accessor macros.
9853 * emit-rtl.h (struct rtl_data): Relocate to here.
9854 * Makefile.in (GTFILES): Add emit-rtl.h.
9855 * df-core.c: Include emit-rtl.h.
9856 * genattrtab.c: Likewise.
9857 * genconditions.c: Likewise.
9858 * genpreds.c: Likewise.
9859 * genrecog.c: Likewise.
9860 * regcprop.c: Likewise.
9861 * resource.c: Likewise.
9862 * sched-rgn.c: Likewise.
9863 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9864 * config/i386/winnt.c: Likewise.
9866 2015-06-17 Jakub Jelinek <jakub@redhat.com>
9869 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
9870 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
9871 and has_force_vectorize_loops flags from cfun into
9873 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
9874 if simduid is non-NULL.
9875 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
9876 * passes.def (pass_simduid_cleanup): Add new pass after loop
9878 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
9879 indirection from htab argument's type.
9880 (shrink_simd_arrays): New function.
9881 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
9882 Don't call adjust_simduid_builtins if there are no loops.
9883 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
9884 (pass_simduid_cleanup::execute): New method.
9885 (make_pass_simduid_cleanup): New function.
9887 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
9889 * tree-core.h (tree_target_option): Make opts field a pointer to a
9890 cl_target_option instead of an instance of the struct.
9891 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
9893 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
9895 (copy_node_stat): Allocate and copy struct cl_target_option.
9897 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
9899 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
9900 Remove conditional exposure of prototypes.
9901 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
9902 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
9903 definitions in tree.h with functions.
9904 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
9906 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
9908 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
9910 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
9911 (*cmp<mode>_signed): ... this.
9912 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
9913 (*cmp<mode>_unsigned): ... this. Remove %b.
9915 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
9917 * coretypes.h: Include input.h and as-a.h.
9918 * rtl.h: Include input.h and as-a.h for generator files.
9919 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
9920 * vec.c: Don't include diagnostic-core.h.
9921 * alias.c: Do not include input.h, line-map.h or is-a.h.
9923 * attribs.c: Likewise.
9924 * auto-inc-dec.c: Likewise.
9925 * auto-profile.c: Likewise.
9926 * bb-reorder.c: Likewise.
9927 * bt-load.c: Likewise.
9928 * builtins.c: Likewise.
9929 * caller-save.c: Likewise.
9930 * calls.c: Likewise.
9933 * cfganal.c: Likewise.
9934 * cfgbuild.c: Likewise.
9935 * cfgcleanup.c: Likewise.
9936 * cfgexpand.c: Likewise.
9937 * cfghooks.c: Likewise.
9938 * cfgloop.c: Likewise.
9939 * cfgloop.h: Likewise.
9940 * cfgloopanal.c: Likewise.
9941 * cfgloopmanip.c: Likewise.
9942 * cfgrtl.c: Likewise.
9943 * cgraph.c: Likewise.
9944 * cgraphbuild.c: Likewise.
9945 * cgraphclones.c: Likewise.
9946 * cgraphunit.c: Likewise.
9947 * cilk-common.c: Likewise.
9948 * combine-stack-adj.c: Likewise.
9949 * combine.c: Likewise.
9950 * compare-elim.c: Likewise.
9951 * convert.c: Likewise.
9952 * coverage.c: Likewise.
9953 * cppbuiltin.c: Likewise.
9954 * cprop.c: Likewise.
9956 * cselib.c: Likewise.
9957 * data-streamer-in.c: Likewise.
9958 * data-streamer-out.c: Likewise.
9959 * data-streamer.c: Likewise.
9960 * dbxout.c: Likewise.
9963 * debug.c: Likewise.
9964 * df-core.c: Likewise.
9965 * df-problems.c: Likewise.
9966 * df-scan.c: Likewise.
9969 * diagnostic-core.h: Likewise.
9970 * diagnostic.c: Likewise.
9971 * dojump.c: Likewise.
9972 * dominance.c: Likewise.
9973 * domwalk.c: Likewise.
9974 * double-int.c: Likewise.
9976 * dumpfile.c: Likewise.
9977 * dumpfile.h: Likewise.
9978 * dwarf2asm.c: Likewise.
9979 * dwarf2cfi.c: Likewise.
9980 * dwarf2out.c: Likewise.
9981 * emit-rtl.c: Likewise.
9982 * et-forest.c: Likewise.
9983 * except.c: Likewise.
9984 * explow.c: Likewise.
9985 * expmed.c: Likewise.
9987 * final.c: Likewise.
9988 * fixed-value.c: Likewise.
9989 * fold-const.c: Likewise.
9990 * function.c: Likewise.
9991 * fwprop.c: Likewise.
9992 * gcc-plugin.h: Likewise.
9994 * generic-match-head.c: Likewise.
9995 * ggc-page.c: Likewise.
9996 * gimple-builder.c: Likewise.
9997 * gimple-expr.c: Likewise.
9998 * gimple-fold.c: Likewise.
9999 * gimple-iterator.c: Likewise.
10000 * gimple-low.c: Likewise.
10001 * gimple-match-head.c: Likewise.
10002 * gimple-pretty-print.c: Likewise.
10003 * gimple-ssa-isolate-paths.c: Likewise.
10004 * gimple-ssa-strength-reduction.c: Likewise.
10005 * gimple-streamer-in.c: Likewise.
10006 * gimple-streamer-out.c: Likewise.
10007 * gimple-streamer.h: Likewise.
10008 * gimple-walk.c: Likewise.
10009 * gimple.c: Likewise.
10010 * gimplify-me.c: Likewise.
10011 * gimplify.c: Likewise.
10012 * godump.c: Likewise.
10013 * graph.c: Likewise.
10014 * graphite-blocking.c: Likewise.
10015 * graphite-dependences.c: Likewise.
10016 * graphite-interchange.c: Likewise.
10017 * graphite-isl-ast-to-gimple.c: Likewise.
10018 * graphite-optimize-isl.c: Likewise.
10019 * graphite-poly.c: Likewise.
10020 * graphite-scop-detection.c: Likewise.
10021 * graphite-sese-to-poly.c: Likewise.
10022 * graphite.c: Likewise.
10023 * haifa-sched.c: Likewise.
10024 * hw-doloop.c: Likewise.
10025 * ifcvt.c: Likewise.
10026 * init-regs.c: Likewise.
10027 * input.c: Likewise.
10028 * internal-fn.c: Likewise.
10029 * ipa-chkp.c: Likewise.
10030 * ipa-comdats.c: Likewise.
10031 * ipa-cp.c: Likewise.
10032 * ipa-devirt.c: Likewise.
10033 * ipa-icf-gimple.c: Likewise.
10034 * ipa-icf.c: Likewise.
10035 * ipa-inline-analysis.c: Likewise.
10036 * ipa-inline-transform.c: Likewise.
10037 * ipa-inline.c: Likewise.
10038 * ipa-polymorphic-call.c: Likewise.
10039 * ipa-profile.c: Likewise.
10040 * ipa-prop.c: Likewise.
10041 * ipa-pure-const.c: Likewise.
10042 * ipa-ref.c: Likewise.
10043 * ipa-reference.c: Likewise.
10044 * ipa-split.c: Likewise.
10045 * ipa-utils.c: Likewise.
10046 * ipa-visibility.c: Likewise.
10048 * ira-build.c: Likewise.
10049 * ira-color.c: Likewise.
10050 * ira-conflicts.c: Likewise.
10051 * ira-costs.c: Likewise.
10052 * ira-emit.c: Likewise.
10053 * ira-lives.c: Likewise.
10055 * jump.c: Likewise.
10056 * langhooks.c: Likewise.
10058 * loop-doloop.c: Likewise.
10059 * loop-init.c: Likewise.
10060 * loop-invariant.c: Likewise.
10061 * loop-iv.c: Likewise.
10062 * loop-unroll.c: Likewise.
10063 * lower-subreg.c: Likewise.
10064 * lra-assigns.c: Likewise.
10065 * lra-coalesce.c: Likewise.
10066 * lra-constraints.c: Likewise.
10067 * lra-eliminations.c: Likewise.
10068 * lra-lives.c: Likewise.
10069 * lra-remat.c: Likewise.
10070 * lra-spills.c: Likewise.
10072 * lto-cgraph.c: Likewise.
10073 * lto-compress.c: Likewise.
10074 * lto-opts.c: Likewise.
10075 * lto-section-in.c: Likewise.
10076 * lto-section-out.c: Likewise.
10077 * lto-streamer-in.c: Likewise.
10078 * lto-streamer-out.c: Likewise.
10079 * lto-streamer.c: Likewise.
10081 * mode-switching.c: Likewise.
10082 * modulo-sched.c: Likewise.
10083 * omega.c: Likewise.
10084 * omp-low.c: Likewise.
10085 * optabs.c: Likewise.
10086 * opts-global.c: Likewise.
10087 * opts.h: Likewise.
10088 * passes.c: Likewise.
10089 * plugin.c: Likewise.
10090 * postreload-gcse.c: Likewise.
10091 * postreload.c: Likewise.
10092 * predict.c: Likewise.
10093 * pretty-print.h: Likewise.
10094 * print-rtl.c: Likewise.
10095 * print-tree.c: Likewise.
10096 * profile.c: Likewise.
10097 * real.c: Likewise.
10098 * realmpfr.c: Likewise.
10099 * recog.c: Likewise.
10101 * reg-stack.c: Likewise.
10102 * regcprop.c: Likewise.
10103 * reginfo.c: Likewise.
10104 * regrename.c: Likewise.
10105 * regstat.c: Likewise.
10106 * reload.c: Likewise.
10107 * reload1.c: Likewise.
10108 * reorg.c: Likewise.
10109 * resource.c: Likewise.
10110 * rtl-chkp.c: Likewise.
10111 * rtl-error.c: Likewise.
10112 * rtlanal.c: Likewise.
10113 * rtlhooks.c: Likewise.
10114 * sanopt.c: Likewise.
10115 * sched-deps.c: Likewise.
10116 * sched-ebb.c: Likewise.
10117 * sched-rgn.c: Likewise.
10118 * sched-vis.c: Likewise.
10119 * sdbout.c: Likewise.
10120 * sel-sched-dump.c: Likewise.
10121 * sel-sched-ir.c: Likewise.
10122 * sel-sched.c: Likewise.
10123 * sese.c: Likewise.
10124 * shrink-wrap.c: Likewise.
10125 * simplify-rtx.c: Likewise.
10126 * stack-ptr-mod.c: Likewise.
10127 * statistics.c: Likewise.
10128 * stmt.c: Likewise.
10129 * stor-layout.c: Likewise.
10130 * store-motion.c: Likewise.
10131 * streamer-hooks.c: Likewise.
10132 * stringpool.c: Likewise.
10133 * symtab.c: Likewise.
10134 * target-globals.c: Likewise.
10135 * targhooks.c: Likewise.
10136 * toplev.c: Likewise.
10137 * tracer.c: Likewise.
10138 * trans-mem.c: Likewise.
10139 * tree-affine.c: Likewise.
10140 * tree-browser.c: Likewise.
10141 * tree-call-cdce.c: Likewise.
10142 * tree-cfg.c: Likewise.
10143 * tree-cfgcleanup.c: Likewise.
10144 * tree-chkp-opt.c: Likewise.
10145 * tree-chkp.c: Likewise.
10146 * tree-chrec.c: Likewise.
10147 * tree-complex.c: Likewise.
10148 * tree-data-ref.c: Likewise.
10149 * tree-dfa.c: Likewise.
10150 * tree-diagnostic.c: Likewise.
10151 * tree-dump.c: Likewise.
10152 * tree-eh.c: Likewise.
10153 * tree-emutls.c: Likewise.
10154 * tree-if-conv.c: Likewise.
10155 * tree-inline.c: Likewise.
10156 * tree-into-ssa.c: Likewise.
10157 * tree-iterator.c: Likewise.
10158 * tree-loop-distribution.c: Likewise.
10159 * tree-nested.c: Likewise.
10160 * tree-nrv.c: Likewise.
10161 * tree-object-size.c: Likewise.
10162 * tree-outof-ssa.c: Likewise.
10163 * tree-parloops.c: Likewise.
10164 * tree-phinodes.c: Likewise.
10165 * tree-predcom.c: Likewise.
10166 * tree-pretty-print.c: Likewise.
10167 * tree-profile.c: Likewise.
10168 * tree-scalar-evolution.c: Likewise.
10169 * tree-sra.c: Likewise.
10170 * tree-ssa-address.c: Likewise.
10171 * tree-ssa-alias.c: Likewise.
10172 * tree-ssa-ccp.c: Likewise.
10173 * tree-ssa-coalesce.c: Likewise.
10174 * tree-ssa-copy.c: Likewise.
10175 * tree-ssa-copyrename.c: Likewise.
10176 * tree-ssa-dce.c: Likewise.
10177 * tree-ssa-dom.c: Likewise.
10178 * tree-ssa-dse.c: Likewise.
10179 * tree-ssa-forwprop.c: Likewise.
10180 * tree-ssa-ifcombine.c: Likewise.
10181 * tree-ssa-live.c: Likewise.
10182 * tree-ssa-loop-ch.c: Likewise.
10183 * tree-ssa-loop-im.c: Likewise.
10184 * tree-ssa-loop-ivcanon.c: Likewise.
10185 * tree-ssa-loop-ivopts.c: Likewise.
10186 * tree-ssa-loop-manip.c: Likewise.
10187 * tree-ssa-loop-niter.c: Likewise.
10188 * tree-ssa-loop-prefetch.c: Likewise.
10189 * tree-ssa-loop-unswitch.c: Likewise.
10190 * tree-ssa-loop.c: Likewise.
10191 * tree-ssa-math-opts.c: Likewise.
10192 * tree-ssa-operands.c: Likewise.
10193 * tree-ssa-phiopt.c: Likewise.
10194 * tree-ssa-phiprop.c: Likewise.
10195 * tree-ssa-pre.c: Likewise.
10196 * tree-ssa-propagate.c: Likewise.
10197 * tree-ssa-reassoc.c: Likewise.
10198 * tree-ssa-sccvn.c: Likewise.
10199 * tree-ssa-scopedtables.c: Likewise.
10200 * tree-ssa-sink.c: Likewise.
10201 * tree-ssa-strlen.c: Likewise.
10202 * tree-ssa-structalias.c: Likewise.
10203 * tree-ssa-tail-merge.c: Likewise.
10204 * tree-ssa-ter.c: Likewise.
10205 * tree-ssa-threadedge.c: Likewise.
10206 * tree-ssa-threadupdate.c: Likewise.
10207 * tree-ssa-uncprop.c: Likewise.
10208 * tree-ssa-uninit.c: Likewise.
10209 * tree-ssa.c: Likewise.
10210 * tree-ssanames.c: Likewise.
10211 * tree-stdarg.c: Likewise.
10212 * tree-streamer-in.c: Likewise.
10213 * tree-streamer-out.c: Likewise.
10214 * tree-streamer.c: Likewise.
10215 * tree-switch-conversion.c: Likewise.
10216 * tree-tailcall.c: Likewise.
10217 * tree-vect-data-refs.c: Likewise.
10218 * tree-vect-generic.c: Likewise.
10219 * tree-vect-loop-manip.c: Likewise.
10220 * tree-vect-loop.c: Likewise.
10221 * tree-vect-patterns.c: Likewise.
10222 * tree-vect-slp.c: Likewise.
10223 * tree-vect-stmts.c: Likewise.
10224 * tree-vectorizer.c: Likewise.
10225 * tree-vrp.c: Likewise.
10226 * tree.c: Likewise.
10227 * tsan.c: Likewise.
10228 * ubsan.c: Likewise.
10229 * valtrack.c: Likewise.
10230 * value-prof.c: Likewise.
10231 * var-tracking.c: Likewise.
10232 * varasm.c: Likewise.
10233 * varpool.c: Likewise.
10234 * vmsdbgout.c: Likewise.
10235 * vtable-verify.c: Likewise.
10237 * wide-int.cc: Likewise.
10238 * xcoffout.c: Likewise.
10239 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
10240 * common/common-targhooks.c: Likewise.
10241 * config/aarch64/aarch64-builtins.c: Likewise.
10242 * config/aarch64/aarch64.c: Likewise.
10243 * config/alpha/alpha.c: Likewise.
10244 * config/arc/arc.c: Likewise.
10245 * config/arm/aarch-common.c: Likewise.
10246 * config/arm/arm-builtins.c: Likewise.
10247 * config/arm/arm-c.c: Likewise.
10248 * config/arm/arm.c: Likewise.
10249 * config/avr/avr-c.c: Likewise.
10250 * config/avr/avr-log.c: Likewise.
10251 * config/avr/avr.c: Likewise.
10252 * config/bfin/bfin.c: Likewise.
10253 * config/c6x/c6x.c: Likewise.
10254 * config/cr16/cr16.c: Likewise.
10255 * config/cris/cris.c: Likewise.
10256 * config/darwin-c.c: Likewise.
10257 * config/darwin.c: Likewise.
10258 * config/default-c.c: Likewise.
10259 * config/epiphany/epiphany.c: Likewise.
10260 * config/epiphany/mode-switch-use.c: Likewise.
10261 * config/epiphany/resolve-sw-modes.c: Likewise.
10262 * config/fr30/fr30.c: Likewise.
10263 * config/frv/frv.c: Likewise.
10264 * config/ft32/ft32.c: Likewise.
10265 * config/glibc-c.c: Likewise.
10266 * config/h8300/h8300.c: Likewise.
10267 * config/i386/i386-c.c: Likewise.
10268 * config/i386/i386.c: Likewise.
10269 * config/i386/msformat-c.c: Likewise.
10270 * config/i386/winnt-cxx.c: Likewise.
10271 * config/i386/winnt-stubs.c: Likewise.
10272 * config/i386/winnt.c: Likewise.
10273 * config/ia64/ia64-c.c: Likewise.
10274 * config/ia64/ia64.c: Likewise.
10275 * config/iq2000/iq2000.c: Likewise.
10276 * config/lm32/lm32.c: Likewise.
10277 * config/m32c/m32c-pragma.c: Likewise.
10278 * config/m32c/m32c.c: Likewise.
10279 * config/m32r/m32r.c: Likewise.
10280 * config/m68k/m68k.c: Likewise.
10281 * config/mcore/mcore.c: Likewise.
10282 * config/mep/mep-pragma.c: Likewise.
10283 * config/mep/mep.c: Likewise.
10284 * config/microblaze/microblaze-c.c: Likewise.
10285 * config/microblaze/microblaze.c: Likewise.
10286 * config/mips/mips.c: Likewise.
10287 * config/mmix/mmix.c: Likewise.
10288 * config/mn10300/mn10300.c: Likewise.
10289 * config/moxie/moxie.c: Likewise.
10290 * config/msp430/msp430-c.c: Likewise.
10291 * config/msp430/msp430.c: Likewise.
10292 * config/nds32/nds32-cost.c: Likewise.
10293 * config/nds32/nds32-fp-as-gp.c: Likewise.
10294 * config/nds32/nds32-intrinsic.c: Likewise.
10295 * config/nds32/nds32-isr.c: Likewise.
10296 * config/nds32/nds32-md-auxiliary.c: Likewise.
10297 * config/nds32/nds32-memory-manipulation.c: Likewise.
10298 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10299 * config/nds32/nds32-predicates.c: Likewise.
10300 * config/nds32/nds32.c: Likewise.
10301 * config/nios2/nios2.c: Likewise.
10302 * config/nvptx/nvptx.c: Likewise.
10303 * config/pa/pa.c: Likewise.
10304 * config/pdp11/pdp11.c: Likewise.
10305 * config/rl78/rl78-c.c: Likewise.
10306 * config/rl78/rl78.c: Likewise.
10307 * config/rs6000/rs6000-c.c: Likewise.
10308 * config/rs6000/rs6000.c: Likewise.
10309 * config/rx/rx.c: Likewise.
10310 * config/s390/s390-c.c: Likewise.
10311 * config/s390/s390.c: Likewise.
10312 * config/sh/sh-c.c: Likewise.
10313 * config/sh/sh-mem.cc: Likewise.
10314 * config/sh/sh.c: Likewise.
10315 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10316 * config/sh/sh_treg_combine.cc: Likewise.
10317 * config/sol2-c.c: Likewise.
10318 * config/sol2-cxx.c: Likewise.
10319 * config/sol2-stubs.c: Likewise.
10320 * config/sol2.c: Likewise.
10321 * config/sparc/sparc-c.c: Likewise.
10322 * config/sparc/sparc.c: Likewise.
10323 * config/spu/spu-c.c: Likewise.
10324 * config/spu/spu.c: Likewise.
10325 * config/stormy16/stormy16.c: Likewise.
10326 * config/tilegx/mul-tables.c: Likewise.
10327 * config/tilegx/tilegx-c.c: Likewise.
10328 * config/tilegx/tilegx.c: Likewise.
10329 * config/tilepro/mul-tables.c: Likewise.
10330 * config/tilepro/tilepro-c.c: Likewise.
10331 * config/tilepro/tilepro.c: Likewise.
10332 * config/v850/v850-c.c: Likewise.
10333 * config/v850/v850.c: Likewise.
10334 * config/vax/vax.c: Likewise.
10335 * config/visium/visium.c: Likewise.
10336 * config/vms/vms-c.c: Likewise.
10337 * config/vms/vms.c: Likewise.
10338 * config/vxworks.c: Likewise.
10339 * config/winnt-c.c: Likewise.
10340 * config/xtensa/xtensa.c: Likewise.
10342 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
10344 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
10346 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
10348 2015-06-17 Richard Biener <rguenther@suse.de>
10350 PR tree-optimization/66251
10351 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
10352 stmts for SLP strided stores.
10355 2015-05-22 Richard Biener <rguenther@suse.de>
10357 PR tree-optimization/66251
10358 * tree-vect-stmts.c (vectorizable_conversion): Properly
10359 set STMT_VINFO_VEC_STMT even for the SLP case.
10361 2015-05-26 Michael Matz <matz@suse.de>
10363 PR middle-end/66251
10364 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
10365 STMT_VINFO_VEC_STMT, also with SLP.
10367 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
10370 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
10371 (*avx_addsubv4df3_1s): Ditto.
10372 (*sse3_addsubv2df3_1): Ditto.
10373 (*sse3_addsubv2df3_1s): Ditto.
10374 (*avx_addsubv8sf3_1): Ditto.
10375 (*avx_addsubv8sf3_1s): Ditto.
10376 (*sse3_addsubv4sf3_1): Ditto.
10377 (*sse3_addsubv4sf3_1s): Ditto.
10379 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
10381 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
10382 (SYSROOT_SUFFIX_SPEC): Update.
10383 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
10384 (STARTFILE_PREFIX_SPEC): Update.
10385 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
10386 (MULTILIB_REQUIRED): New.
10387 (MULTILIB_OSDIRNAMES): New.
10388 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
10389 (MULTILIB_REQUIRED): New.
10390 (MULTILIB_OSDIRNAMES): New.
10392 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
10394 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
10395 * config/aarch64/aarch64-options-extensions.def: Update "fP",
10396 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
10397 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
10398 (AARCH64_FL_PAN): New.
10399 (AARCH64_FL_LOR): New.
10400 (AARCH64_FL_RDMA): New.
10401 (AARCH64_FL_FOR_ARCH8_1): New.
10402 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
10403 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
10405 2015-06-16 Martin Liska <mliska@suse.cz>
10407 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
10408 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
10411 2015-06-16 Richard Biener <rguenther@suse.de>
10413 * tree-vect-stmts.c (vectorizable_store): Adjust.
10414 (vectorizable_load): Likewise.
10415 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10417 (vect_create_data_ref_ptr): Likewise.
10418 (bump_vector_ptr): Adjust.
10420 2015-06-16 Richard Biener <rguenther@suse.de>
10422 * tree-vect-stmts.c (vectorizable_load): Properly start loads
10423 with the first element if this is grouped loads.
10425 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
10427 * config/arm/arm-protos.h (struct tune_params): Rename
10428 log_op_non_sc to log_op_non_short_circuit, and rename enum
10429 values to expand SC to SHORT_CIRCUIT.
10430 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
10431 to LOG_OP_NON_SHORT_CIRCUIT.
10432 (arm_fastmul_tune):Likewise
10433 (arm_strongarm_tune): Likewise.
10434 (arm_xscale_tune): Likewise.
10435 (arm_9e_tune): Likewise.
10436 (arm_marvell_pj4_tune): Likewise.
10437 (arm_v6t2_tune): Likewise.
10438 (arm_cortex_tune): Likewise.
10439 (arm_cortex_a8_tune): Likewise.
10440 (arm_cortex_a7_tune): Likewise.
10441 (arm_cortex_a15_tune): Likewise.
10442 (arm_cortex_a53_tune): Likewise.
10443 (arm_cortex_a57_tune): Likewise.
10444 (arm_xgene1_tune): Likewise.
10445 (arm_cortex_a5_tune): Likewise.
10446 (arm_cortex_a9_tune): Likewise.
10447 (arm_cortex_a12_tune): Likewise.
10448 (arm_v7m_tune): Likewise.
10449 (arm_cortex_m7_tune): Likewise.
10450 (arm_v6m_tune): Likewise.
10451 (arm_fa726te_tune): Likewise.
10453 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
10455 * altivec.md: Delete UNSPEC_VMLADDUHM.
10456 (mulv4si3_p8): New pattern.
10457 (mulv4si3): Use it for POWER8.
10458 (mulv8hi3): Use vmladduhm with zero addend.
10459 (altivec_vmladduhm): Descriptive RTL.
10461 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
10463 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
10464 to use neon_move instead of mov_imm.
10465 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
10466 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
10468 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
10469 aarch64_float_const_zero_rtx_p check before TFmode check.
10470 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
10472 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
10473 code and attributes to match. Change condition from register_operand
10474 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
10475 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
10478 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
10481 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
10482 there is no parent.
10484 2015-06-14 Shiva Chen <shiva0217@gmail.com>
10486 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
10487 HOST_WIDE_INT parameter.
10489 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
10492 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
10493 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
10495 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
10497 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
10499 * rtl.h (classify_insn): Declare.
10500 * emit-rtl.c (classify_insn): Move to...
10501 * rtl.c: ...here and add generator support.
10502 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
10503 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
10504 * genemit.c (gen_emit_seq): New function.
10505 (gen_expand, gen_split): Use it.
10507 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
10509 * tree.c (make_vector_stat): Fix comment to state that the
10510 function returns a VECTOR_CST.
10512 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
10514 * gensupport.h (add_implicit_parallel): Declare.
10515 * genrecog.c (add_implicit_parallel): Move to...
10516 * gensupport.c (add_implicit_parallel): ...here.
10517 (process_one_cond_exec): Use it.
10518 * genemit.c (gen_insn): Likewise.
10520 2015-06-13 Iain Sandoe <iain@codesourcery.com>
10523 * passes.c (rest_of_decl_compilation): Do not register globals for
10524 early debug if they are declared in built-ins.
10526 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
10528 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
10530 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10532 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
10534 (noce_try_cmove_arith): Likewise.
10535 (noce_get_alt_condition): Likewise.
10537 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10539 * common/config/i386/i386-common.c
10540 (OPTION_MASK_ISA_MWAITX_SET): New.
10541 (ix86_handle_option): Handle mwaitx.
10542 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
10543 (x86_64-*-*): Likewise.
10544 * config/i386/mwaitxintrin.h: New header.
10545 * config/i386/cpuid.h (bit_MWAITX): Define.
10546 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10548 * config/i386/i386.opt (mwaitx): New.
10549 * config/i386/i386-builtin-types.def
10550 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
10551 * config/i386/i386-c.c: Define __MWAITX__ if needed.
10552 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
10554 (ix86_option_override_internal): Handle new option.
10555 (processor_alias_table): Added PTA_MWAITX.
10556 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
10557 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
10558 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
10559 IX86_BUILTIN_MONITORX built-ins.
10560 * config/i386/i386.h (TARGET_MWAITX): New.
10561 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
10563 (mwaitx): New pattern.
10564 (monitorx_<mode>): New pattern.
10565 * config/i386/x86intrin.h: Include mwaitxintrin.h.
10566 * doc/extend.texi: Document monitorx and mwaitx builtins.
10567 * doc/invoke.texi: Document -mmwaitx option.
10569 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
10571 * emit-rtl.c (need_atomic_barrier_p): Mask model with
10572 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
10574 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
10576 * dbxout.c (xcoff_debug_hooks): Provide a function for
10577 register_main_translation_unit hook.
10579 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
10581 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
10582 variants cases from switch.
10583 (rs6000_post_atomic_barrier): Same.
10584 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
10585 (rs6000_expand_atomic_exchange): Same.
10586 (rs6000_expand_atomic_op): Same.
10587 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
10588 SYNC variants cases from switch.
10589 (atomic_load): Same.
10590 (atomic_store): Same.
10592 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
10594 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
10595 CONST_INT for goto.
10597 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
10600 * dwarf2out.c (check_die): Check for common duplicate attributes.
10601 (add_location_or_const_value_attribute): Do not add duplicate
10603 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
10605 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
10606 (gen_type_die_with_usage): Call check_die.
10607 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
10609 2015-06-11 Jason Merrill <jason@redhat.com>
10611 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
10614 2015-06-11 Marek Polacek <polacek@redhat.com>
10616 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
10618 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
10621 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
10622 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
10623 (*addx_extend_sp32): Fix pasto.
10624 (*subx_extend): Rename into...
10625 (*subx_extend_sp32): ...this.
10626 (*adddi3_extend_sp32): Add earlyclobber.
10627 (*subdi3_insn_sp32): Likewise.
10628 (*subdi3_extend_sp32): Likewise.
10629 (*and_not_di_sp32): Likewise.
10630 (*or_not_di_sp32): Likewise.
10631 (*xor_not_di_sp32): Likewise.
10632 (*negdi2_sp32): Likewise.
10633 (*one_cmpldi2_sp32): Likewise.
10635 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
10637 * debug.h (struct gcc_debug_hooks): Add a
10638 register_main_translation_unit hook.
10639 * debug.c (do_nothing_debug_hooks): Provide a function for this
10641 * dbxout.c (dbx_debug_hooks): Likewise.
10642 * sdbout.c (sdb_debug_hooks): Likewise.
10643 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10644 * dwarf2out.c (main_translation_unit): New global variable.
10645 (dwarf2out_register_main_translation_unit): New function
10646 implementing the new hook.
10647 (dwarf2_debug_hooks): Assign
10648 dwarf2out_register_main_translation_unit to this new hook.
10649 (dwarf2out_init): Associate any main translation unit to
10652 2015-06-11 Marek Polacek <polacek@redhat.com>
10654 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
10656 2015-06-11 Marek Polacek <polacek@redhat.com>
10658 * match.pd: Use single_use throughout.
10660 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10662 * config/arm/arm.c (arm_option_params_internal): When optimising
10663 for speed set max_insns_skipped when arm_restrict_it.
10665 2015-06-11 Christian Bruel <christian.bruel@st.com>
10668 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
10670 (arm_cpu_builtins): New function.
10671 (arm_pragma_target_parse): Call arm_cpu_builtins.
10672 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
10673 (arm_register_target_pragmas): Likewise.
10674 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
10675 Call arm_register_target_pragmas.
10676 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
10677 (arm_pragma_target_parse): Likewise.
10679 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
10681 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
10682 of the second operand.
10684 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
10687 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
10688 to prepare mask operand for AVX512 modes.
10690 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
10693 * doc/md.texi (Machine Constraints): Document that on the PowerPC
10694 if you use a constraint that targets a VSX register, you must use
10695 %x<n> in the template.
10697 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
10699 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
10700 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
10701 (define_insn "trap"): New definition.
10703 2015-06-10 Richard Biener <rguenther@suse.de>
10705 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
10707 (vect_supported_load_permutation_p): ... here. Handle
10708 supportable permutations in reductions.
10709 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
10710 for vectorizing strided group loads.
10712 2015-06-10 Jakub Jelinek <jakub@redhat.com>
10715 * config/i386/i386.c (ix86_split_long_move): For collisions
10716 involving direct tls segment refs, move the UNSPEC_TP possibly
10717 wrapped in ZERO_EXTEND out of the address for lea, to each of
10720 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10722 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
10723 dmb sy. Adjust tabs.
10725 2015-06-10 Tom de Vries <tom@codesourcery.com>
10727 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
10729 2015-06-10 Martin Liska <mliska@suse.cz>
10732 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
10733 all enum values in mem_alloc_origin.
10734 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
10736 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
10737 * bitmap.c (bitmap_register): Likewise.
10738 (dump_bitmap_statistics): Likewise.
10739 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
10740 (ggc_record_overhead): Likewise.
10741 * hash-map.h: Likewise.
10742 * hash-set.h: Likewise.
10743 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
10744 * hash-table.h: Likewise.
10745 * vec.c (vec_prefix::register_overhead): Likewise.
10746 (vec_prefix::release_overhead): Likewise.
10747 (dump_vec_loc_statistics): Likewise.
10749 2015-06-09 Christian Bruel <christian.bruel@st.com>
10752 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
10753 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
10754 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
10755 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
10756 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
10757 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
10758 (arm_valid_target_attribute_p): Likewise.
10759 (arm_set_current_function, arm_can_inline_p): Likewise.
10760 (arm_valid_target_attribute_rec): Likewise.
10761 (arm_previous_fndecl): New variable.
10762 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
10763 (TARGET_CAN_INLINE_P): Define.
10764 (arm_asm_trampoline_template): Emit mode.
10765 (arm_file_start): Don't set unified syntax.
10766 (arm_declare_function_name): Set unified syntax and mode.
10767 (arm_option_override): Init target_option_default_node.
10768 and target_option_current_node.
10769 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
10770 (*call_symbol): Likewise.
10771 * doc/extend.texi: Document ARM/Thumb target attribute.
10772 * doc/invoke.texi: Likewise.
10774 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
10777 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
10778 PR rtl-optimization/64164
10779 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10780 * tree-ssa-copyrename.c: Removed.
10781 * opts.c (default_options_table): Drop -ftree-copyrename. Add
10782 -ftree-coalesce-vars.
10783 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10784 * common.opt (ftree-copyrename): Ignore.
10785 (ftree-coalesce-inlined-vars): Likewise.
10786 * doc/invoke.texi: Remove the ignored options above.
10787 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10788 * tree-ssa-coalesce.h: ... here.
10789 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10790 headers required by it.
10791 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10792 across variables when flag_tree_coalesce_vars. Check register
10793 use and promoted modes to allow coalescing. Moved to
10794 tree-ssa-coalesce.c.
10795 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10796 with its member functions to tree-ssa-coalesce.c.
10797 (var_map_base_init): Likewise. Renamed to
10798 compute_samebase_partition_bases.
10799 (partition_view_normal): Drop want_bases parameter.
10800 (partition_view_bitmap): Likewise.
10801 * tree-ssa-live.h: Adjust declarations.
10802 * tree-ssa-coalesce.c: Include explow.h.
10803 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10804 default defs at the entry point.
10805 (dump_part_var_map): New.
10806 (compute_optimized_partition_bases): New, called by...
10807 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10808 of compute_samebase_partition_bases. Adjust.
10809 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10810 * cfgexpand.c (leader_merge): New.
10811 (get_rtl_for_parm_ssa_default_def): New.
10812 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10813 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10814 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
10815 redundant MEM attr setting.
10816 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
10818 (expand_one_stack_var): ... this. New wrapper to check and
10819 skip already expanded SSA partitions.
10820 (record_alignment_for_reg_var): New, factored out of...
10821 (expand_one_var): ... this.
10822 (expand_one_ssa_partition): New.
10823 (adjust_one_expanded_partition_var): New.
10824 (expand_one_register_var): Check and skip already expanded SSA
10826 (expand_used_vars): Don't create DECLs for anonymous SSA
10827 names. Expand all SSA partitions, then adjust all SSA names.
10828 (pass::execute): Replace the loops that set
10829 SA.partition_to_pseudo from partition leaders and cleared
10830 DECL_RTL for multi-location variables, and that which used to
10831 rename vars and set attrs, with one that clears DECL_RTL and
10832 checks that PARMs and RESULTs default_defs match DECL_RTL.
10833 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10834 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10835 * explow.c (promote_ssa_mode): New.
10836 * explow.h (promote_ssa_mode): Declare.
10837 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10838 * function.c: Include cfgexpand.h.
10839 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10840 (use_register_for_parm_decl): Wrapper for the above to
10841 special-case the result_ptr.
10842 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10843 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10844 multiple locations.
10845 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10846 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
10847 (assign_parm_setup_block): Prefer SSA-assigned location.
10848 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
10849 if stack_parm is NULL.
10850 (assign_parm_setup_stack): Prefer SSA-assigned location.
10851 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
10852 rtl before testing for pointer bounds. Special-case result_ptr.
10853 (expand_function_start): Maybe reset DECL_RTL of result.
10854 Prefer SSA-assigned location for result and static chain.
10855 Factor out DECL_RESULT and SET_DECL_RTL.
10856 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10857 anonymous SSA names. Use promote_ssa_mode.
10858 (get_temp_reg): Likewise.
10859 (remove_ssa_form): Adjust.
10860 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10861 and get its reg_usage for reg invalidation.
10862 (compute_bb_dataflow): Pass it insn.
10863 (emit_notes_in_bb): Likewise.
10864 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
10865 fail assert on conversion between unsigned types.
10867 2015-06-09 Tom de Vries <tom@codesourcery.com>
10869 PR tree-optimization/65460
10870 * omp-low.c (expand_omp_target): Set parallelized_function on
10871 cgraph_node for child_fn.
10873 2015-06-09 Tom de Vries <tom@codesourcery.com>
10875 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
10876 parallelized_function before add_new_function.
10878 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
10880 * gcc-plugin.h: Move decls to plugin.h and include it.
10881 * plugin.h: Relocate decls from gcc-plugin.h
10882 * ggc-page.c: Include required header files.
10883 * passes.c: Likewise.
10884 * cgraphunit.c: Likewise.
10886 2015-06-09 Tom de Vries <tom@codesourcery.com>
10888 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
10890 2015-06-09 Jason Merrill <jason@redhat.com>
10893 * toplev.c (check_global_declaration): Don't warn about a clone.
10895 2015-06-09 Marek Polacek <polacek@redhat.com>
10897 PR tree-optimization/66299
10898 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
10899 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
10902 2015-06-09 Richard Biener <rguenther@suse.de>
10904 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
10905 (vect_analyze_slp_instance): Instead do not falsely drop
10908 2015-06-09 Richard Biener <rguenther@suse.de>
10910 PR middle-end/66423
10911 * match.pd: Handle A % (unsigned)(1 << B).
10913 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
10915 * varasm.c (output_object_block_htab): Remove.
10916 (output_object_block_compare): New.
10917 (output_object_blocks): Sort named object_blocks before outputting
10920 2015-06-09 Richard Biener <rguenther@suse.de>
10922 PR tree-optimization/66419
10923 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
10924 consider GROUP_GAP when detecting a perfect subchain.
10926 2015-06-09 Nick Clifton <nickc@redhat.com>
10928 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
10929 place read only data in the .frodata section.
10931 2015-06-09 Shiva Chen <shiva0217@gmail.com>
10933 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
10934 (atomic_store<mode>): Likewise.
10936 2015-06-09 Richard Biener <rguenther@suse.de>
10938 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
10940 2015-06-09 Richard Biener <rguenther@suse.de>
10942 PR middle-end/66413
10943 * tree-inline.c (insert_init_debug_bind): Unshare value.
10945 2015-06-09 Richard Biener <rguenther@suse.de>
10947 PR tree-optimization/66396
10948 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
10949 Rename virtual operands.
10951 2015-06-09 Tom de Vries <tom@codesourcery.com>
10953 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
10954 always return false.
10956 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
10958 PR rtl-optimization/64164
10959 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10960 * tree-ssa-copyrename.c: Removed.
10961 * opts.c (default_options_table): Drop -ftree-copyrename. Add
10962 -ftree-coalesce-vars.
10963 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10964 * common.opt (ftree-copyrename): Ignore.
10965 (ftree-coalesce-inlined-vars): Likewise.
10966 * doc/invoke.texi: Remove the ignored options above.
10967 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10968 * tree-ssa-coalesce.h: ... here.
10969 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10970 headers required by it.
10971 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10972 across variables when flag_tree_coalesce_vars. Check register
10973 use and promoted modes to allow coalescing. Moved to
10974 tree-ssa-coalesce.c.
10975 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10976 with its member functions to tree-ssa-coalesce.c.
10977 (var_map_base_init): Likewise. Renamed to
10978 compute_samebase_partition_bases.
10979 (partition_view_normal): Drop want_bases parameter.
10980 (partition_view_bitmap): Likewise.
10981 * tree-ssa-live.h: Adjust declarations.
10982 * tree-ssa-coalesce.c: Include explow.h.
10983 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10984 default defs at the entry point.
10985 (dump_part_var_map): New.
10986 (compute_optimized_partition_bases): New, called by...
10987 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10988 of compute_samebase_partition_bases. Adjust.
10989 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10990 * cfgexpand.c (leader_merge): New.
10991 (get_rtl_for_parm_ssa_default_def): New.
10992 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10993 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10994 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
10995 redundant MEM attr setting.
10996 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
10998 (expand_one_stack_var): ... this. New wrapper to check and
10999 skip already expanded SSA partitions.
11000 (record_alignment_for_reg_var): New, factored out of...
11001 (expand_one_var): ... this.
11002 (expand_one_ssa_partition): New.
11003 (adjust_one_expanded_partition_var): New.
11004 (expand_one_register_var): Check and skip already expanded SSA
11006 (expand_used_vars): Don't create DECLs for anonymous SSA
11007 names. Expand all SSA partitions, then adjust all SSA names.
11008 (pass::execute): Replace the loops that set
11009 SA.partition_to_pseudo from partition leaders and cleared
11010 DECL_RTL for multi-location variables, and that which used to
11011 rename vars and set attrs, with one that clears DECL_RTL and
11012 checks that PARMs and RESULTs default_defs match DECL_RTL.
11013 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11014 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11015 * explow.c (promote_ssa_mode): New.
11016 * explow.h (promote_ssa_mode): Declare.
11017 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11018 * function.c: Include cfgexpand.h.
11019 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11020 (use_register_for_parm_decl): Wrapper for the above to
11021 special-case the result_ptr.
11022 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11023 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11024 multiple locations.
11025 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11026 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
11027 (assign_parm_setup_block): Prefer SSA-assigned location.
11028 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
11029 if stack_parm is NULL.
11030 (assign_parm_setup_stack): Prefer SSA-assigned location.
11031 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
11032 rtl before testing for pointer bounds. Special-case result_ptr.
11033 (expand_function_start): Maybe reset DECL_RTL of result.
11034 Prefer SSA-assigned location for result and static chain.
11035 Factor out DECL_RESULT and SET_DECL_RTL.
11036 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11037 anonymous SSA names. Use promote_ssa_mode.
11038 (get_temp_reg): Likewise.
11039 (remove_ssa_form): Adjust.
11040 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11041 and get its reg_usage for reg invalidation.
11042 (compute_bb_dataflow): Pass it insn.
11043 (emit_notes_in_bb): Likewise.
11044 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
11045 fail assert on conversion between unsigned types.
11047 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
11050 * tree-inline.c (reset_debug_binding): New.
11051 (reset_debug_bindings): Likewise.
11052 (expand_call_inline): Call it.
11054 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
11056 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
11059 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
11061 * lto-streamer-out.c (lto_output_location): Stream
11062 reserved locations correctly.
11063 * lto-streamer-in.c (lto_output_location): Likewise.
11065 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
11067 * coretypes.h: Include hash-table.h and hash-set.h for host files.
11068 * ggc.h: Don't include statistics.h>
11069 * hash-map.h: Remove all includes.
11070 * hash-set.h: Likewise.
11071 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
11072 the include list. Remove <new>.
11073 * inchash.h: Remove all includes.
11074 * mem-stats.h: Likewise.
11075 * vec.h: No special processing for generators or ggc.
11076 * alias.c : Adjust include files.
11077 * alloc-pool.c : Likewise.
11078 * alloc-pool.h : Likewise.
11079 * asan.c : Likewise.
11080 * attribs.c : Likewise.
11081 * auto-inc-dec.c : Likewise.
11082 * auto-profile.c : Likewise.
11083 * bb-reorder.c : Likewise.
11084 * bitmap.c : Likewise.
11085 * bitmap.h : Likewise.
11086 * bt-load.c : Likewise.
11087 * builtins.c : Likewise.
11088 * caller-save.c : Likewise.
11089 * calls.c : Likewise.
11090 * ccmp.c : Likewise.
11091 * cfg.c : Likewise.
11092 * cfganal.c : Likewise.
11093 * cfgbuild.c : Likewise.
11094 * cfgcleanup.c : Likewise.
11095 * cfgexpand.c : Likewise.
11096 * cfghooks.c : Likewise.
11097 * cfgloop.c : Likewise.
11098 * cfgloop.h : Likewise.
11099 * cfgloopanal.c : Likewise.
11100 * cfgloopmanip.c : Likewise.
11101 * cfgrtl.c : Likewise.
11102 * cgraph.c : Likewise.
11103 * cgraphbuild.c : Likewise.
11104 * cgraphclones.c : Likewise.
11105 * cgraphunit.c : Likewise.
11106 * cilk-common.c : Likewise.
11107 * combine-stack-adj.c : Likewise.
11108 * combine.c : Likewise.
11109 * compare-elim.c : Likewise.
11110 * context.c : Likewise.
11111 * convert.c : Likewise.
11112 * coverage.c : Likewise.
11113 * cppbuiltin.c : Likewise.
11114 * cprop.c : Likewise.
11115 * cse.c : Likewise.
11116 * cselib.c : Likewise.
11117 * data-streamer-in.c : Likewise.
11118 * data-streamer-out.c : Likewise.
11119 * data-streamer.c : Likewise.
11120 * data-streamer.h : Likewise.
11121 * dbxout.c : Likewise.
11122 * dce.c : Likewise.
11123 * ddg.c : Likewise.
11124 * debug.c : Likewise.
11125 * df-core.c : Likewise.
11126 * df-problems.c : Likewise.
11127 * df-scan.c : Likewise.
11129 * dfp.c : Likewise.
11130 * dojump.c : Likewise.
11131 * dominance.c : Likewise.
11132 * domwalk.c : Likewise.
11133 * double-int.c : Likewise.
11134 * dse.c : Likewise.
11135 * dumpfile.c : Likewise.
11136 * dwarf2asm.c : Likewise.
11137 * dwarf2cfi.c : Likewise.
11138 * dwarf2out.c : Likewise.
11139 * emit-rtl.c : Likewise.
11140 * et-forest.c : Likewise.
11141 * except.c : Likewise.
11142 * except.h : Likewise.
11143 * explow.c : Likewise.
11144 * expmed.c : Likewise.
11145 * expr.c : Likewise.
11146 * final.c : Likewise.
11147 * fixed-value.c : Likewise.
11148 * fold-const.c : Likewise.
11149 * function.c : Likewise.
11150 * fwprop.c : Likewise.
11151 * gcc-plugin.h : Likewise.
11152 * gcc.c : Likewise.
11153 * gcse-common.c : Likewise.
11154 * gcse.c : Likewise.
11155 * genattrtab.c : Likewise.
11156 * genautomata.c : Likewise.
11157 * genconditions.c : Likewise.
11158 * genemit.c : Likewise.
11159 * generic-match-head.c : Likewise.
11160 * genextract.c : Likewise.
11161 * gengtype-state.c : Likewise.
11162 * gengtype.c : Likewise.
11163 * genhooks.c : Likewise.
11164 * genmatch.c : Likewise.
11165 * genmodes.c : Likewise.
11166 * genrecog.c : Likewise.
11167 * gensupport.c : Likewise.
11168 * ggc-common.c : Likewise.
11169 * ggc-internal.h : Likewise.
11170 * ggc-none.c : Likewise.
11171 * ggc-page.c : Likewise.
11172 * gimple-builder.c : Likewise.
11173 * gimple-expr.c : Likewise.
11174 * gimple-fold.c : Likewise.
11175 * gimple-iterator.c : Likewise.
11176 * gimple-low.c : Likewise.
11177 * gimple-match-head.c : Likewise.
11178 * gimple-pretty-print.c : Likewise.
11179 * gimple-ssa-isolate-paths.c : Likewise.
11180 * gimple-ssa-strength-reduction.c : Likewise.
11181 * gimple-ssa.h : Likewise.
11182 * gimple-streamer-in.c : Likewise.
11183 * gimple-streamer-out.c : Likewise.
11184 * gimple-streamer.h : Likewise.
11185 * gimple-walk.c : Likewise.
11186 * gimple.c : Likewise.
11187 * gimplify-me.c : Likewise.
11188 * gimplify.c : Likewise.
11189 * godump.c : Likewise.
11190 * graph.c : Likewise.
11191 * graphds.c : Likewise.
11192 * graphite-blocking.c : Likewise.
11193 * graphite-dependences.c : Likewise.
11194 * graphite-interchange.c : Likewise.
11195 * graphite-isl-ast-to-gimple.c : Likewise.
11196 * graphite-optimize-isl.c : Likewise.
11197 * graphite-poly.c : Likewise.
11198 * graphite-scop-detection.c : Likewise.
11199 * graphite-sese-to-poly.c : Likewise.
11200 * graphite.c : Likewise.
11201 * haifa-sched.c : Likewise.
11202 * hard-reg-set.h : Likewise.
11203 * hw-doloop.c : Likewise.
11204 * ifcvt.c : Likewise.
11205 * inchash.c : Likewise.
11206 * incpath.c : Likewise.
11207 * init-regs.c : Likewise.
11208 * input.c : Likewise.
11209 * internal-fn.c : Likewise.
11210 * ipa-chkp.c : Likewise.
11211 * ipa-comdats.c : Likewise.
11212 * ipa-cp.c : Likewise.
11213 * ipa-devirt.c : Likewise.
11214 * ipa-icf-gimple.c : Likewise.
11215 * ipa-icf.c : Likewise.
11216 * ipa-inline-analysis.c : Likewise.
11217 * ipa-inline-transform.c : Likewise.
11218 * ipa-inline.c : Likewise.
11219 * ipa-polymorphic-call.c : Likewise.
11220 * ipa-profile.c : Likewise.
11221 * ipa-prop.c : Likewise.
11222 * ipa-pure-const.c : Likewise.
11223 * ipa-ref.c : Likewise.
11224 * ipa-reference.c : Likewise.
11225 * ipa-split.c : Likewise.
11226 * ipa-utils.c : Likewise.
11227 * ipa-visibility.c : Likewise.
11228 * ipa.c : Likewise.
11229 * ira-build.c : Likewise.
11230 * ira-color.c : Likewise.
11231 * ira-conflicts.c : Likewise.
11232 * ira-costs.c : Likewise.
11233 * ira-emit.c : Likewise.
11234 * ira-lives.c : Likewise.
11235 * ira.c : Likewise.
11236 * jump.c : Likewise.
11237 * langhooks.c : Likewise.
11238 * lcm.c : Likewise.
11239 * libfuncs.h : Likewise.
11240 * lists.c : Likewise.
11241 * loop-doloop.c : Likewise.
11242 * loop-init.c : Likewise.
11243 * loop-invariant.c : Likewise.
11244 * loop-iv.c : Likewise.
11245 * loop-unroll.c : Likewise.
11246 * lower-subreg.c : Likewise.
11247 * lra-assigns.c : Likewise.
11248 * lra-coalesce.c : Likewise.
11249 * lra-constraints.c : Likewise.
11250 * lra-eliminations.c : Likewise.
11251 * lra-lives.c : Likewise.
11252 * lra-remat.c : Likewise.
11253 * lra-spills.c : Likewise.
11254 * lra.c : Likewise.
11255 * lto-cgraph.c : Likewise.
11256 * lto-compress.c : Likewise.
11257 * lto-opts.c : Likewise.
11258 * lto-section-in.c : Likewise.
11259 * lto-section-out.c : Likewise.
11260 * lto-streamer-in.c : Likewise.
11261 * lto-streamer-out.c : Likewise.
11262 * lto-streamer.c : Likewise.
11263 * lto-streamer.h : Likewise.
11264 * mcf.c : Likewise.
11265 * mode-switching.c : Likewise.
11266 * modulo-sched.c : Likewise.
11267 * omega.c : Likewise.
11268 * omp-low.c : Likewise.
11269 * optabs.c : Likewise.
11270 * opts-global.c : Likewise.
11271 * opts.h : Likewise.
11272 * passes.c : Likewise.
11273 * plugin.c : Likewise.
11274 * postreload-gcse.c : Likewise.
11275 * postreload.c : Likewise.
11276 * predict.c : Likewise.
11277 * print-rtl.c : Likewise.
11278 * print-tree.c : Likewise.
11279 * profile.c : Likewise.
11280 * read-md.c : Likewise.
11281 * read-md.h : Likewise.
11282 * read-rtl.c : Likewise.
11283 * real.c : Likewise.
11284 * realmpfr.c : Likewise.
11285 * recog.c : Likewise.
11286 * ree.c : Likewise.
11287 * reg-stack.c : Likewise.
11288 * regcprop.c : Likewise.
11289 * reginfo.c : Likewise.
11290 * regrename.c : Likewise.
11291 * regstat.c : Likewise.
11292 * reload.c : Likewise.
11293 * reload1.c : Likewise.
11294 * reorg.c : Likewise.
11295 * resource.c : Likewise.
11296 * rtl-chkp.c : Likewise.
11297 * rtl.c : Likewise.
11298 * rtl.h : Likewise.
11299 * rtlanal.c : Likewise.
11300 * rtlhash.c : Likewise.
11301 * rtlhash.h : Likewise.
11302 * rtlhooks.c : Likewise.
11303 * sanopt.c : Likewise.
11304 * sched-deps.c : Likewise.
11305 * sched-ebb.c : Likewise.
11306 * sched-rgn.c : Likewise.
11307 * sched-vis.c : Likewise.
11308 * sdbout.c : Likewise.
11309 * sel-sched-dump.c : Likewise.
11310 * sel-sched-ir.c : Likewise.
11311 * sel-sched-ir.h : Likewise.
11312 * sel-sched.c : Likewise.
11313 * sese.c : Likewise.
11314 * shrink-wrap.c : Likewise.
11315 * shrink-wrap.h : Likewise.
11316 * simplify-rtx.c : Likewise.
11317 * stack-ptr-mod.c : Likewise.
11318 * statistics.c : Likewise.
11319 * stmt.c : Likewise.
11320 * stor-layout.c : Likewise.
11321 * store-motion.c : Likewise.
11322 * stringpool.c : Likewise.
11323 * symtab.c : Likewise.
11324 * target-globals.c : Likewise.
11325 * targhooks.c : Likewise.
11326 * tlink.c : Likewise.
11327 * toplev.c : Likewise.
11328 * tracer.c : Likewise.
11329 * trans-mem.c : Likewise.
11330 * tree-affine.c : Likewise.
11331 * tree-affine.h : Likewise.
11332 * tree-browser.c : Likewise.
11333 * tree-call-cdce.c : Likewise.
11334 * tree-cfg.c : Likewise.
11335 * tree-cfgcleanup.c : Likewise.
11336 * tree-chkp-opt.c : Likewise.
11337 * tree-chkp.c : Likewise.
11338 * tree-chrec.c : Likewise.
11339 * tree-complex.c : Likewise.
11340 * tree-data-ref.c : Likewise.
11341 * tree-dfa.c : Likewise.
11342 * tree-diagnostic.c : Likewise.
11343 * tree-dump.c : Likewise.
11344 * tree-eh.c : Likewise.
11345 * tree-eh.h : Likewise.
11346 * tree-emutls.c : Likewise.
11347 * tree-hasher.h : Likewise.
11348 * tree-if-conv.c : Likewise.
11349 * tree-inline.c : Likewise.
11350 * tree-inline.h : Likewise.
11351 * tree-into-ssa.c : Likewise.
11352 * tree-iterator.c : Likewise.
11353 * tree-loop-distribution.c : Likewise.
11354 * tree-nested.c : Likewise.
11355 * tree-nrv.c : Likewise.
11356 * tree-object-size.c : Likewise.
11357 * tree-outof-ssa.c : Likewise.
11358 * tree-parloops.c : Likewise.
11359 * tree-phinodes.c : Likewise.
11360 * tree-predcom.c : Likewise.
11361 * tree-pretty-print.c : Likewise.
11362 * tree-profile.c : Likewise.
11363 * tree-scalar-evolution.c : Likewise.
11364 * tree-sra.c : Likewise.
11365 * tree-ssa-address.c : Likewise.
11366 * tree-ssa-alias.c : Likewise.
11367 * tree-ssa-ccp.c : Likewise.
11368 * tree-ssa-coalesce.c : Likewise.
11369 * tree-ssa-copy.c : Likewise.
11370 * tree-ssa-copyrename.c : Likewise.
11371 * tree-ssa-dce.c : Likewise.
11372 * tree-ssa-dom.c : Likewise.
11373 * tree-ssa-dse.c : Likewise.
11374 * tree-ssa-forwprop.c : Likewise.
11375 * tree-ssa-ifcombine.c : Likewise.
11376 * tree-ssa-live.c : Likewise.
11377 * tree-ssa-loop-ch.c : Likewise.
11378 * tree-ssa-loop-im.c : Likewise.
11379 * tree-ssa-loop-ivcanon.c : Likewise.
11380 * tree-ssa-loop-ivopts.c : Likewise.
11381 * tree-ssa-loop-manip.c : Likewise.
11382 * tree-ssa-loop-niter.c : Likewise.
11383 * tree-ssa-loop-prefetch.c : Likewise.
11384 * tree-ssa-loop-unswitch.c : Likewise.
11385 * tree-ssa-loop.c : Likewise.
11386 * tree-ssa-math-opts.c : Likewise.
11387 * tree-ssa-operands.c : Likewise.
11388 * tree-ssa-phiopt.c : Likewise.
11389 * tree-ssa-phiprop.c : Likewise.
11390 * tree-ssa-pre.c : Likewise.
11391 * tree-ssa-propagate.c : Likewise.
11392 * tree-ssa-reassoc.c : Likewise.
11393 * tree-ssa-sccvn.c : Likewise.
11394 * tree-ssa-scopedtables.c : Likewise.
11395 * tree-ssa-sink.c : Likewise.
11396 * tree-ssa-strlen.c : Likewise.
11397 * tree-ssa-structalias.c : Likewise.
11398 * tree-ssa-tail-merge.c : Likewise.
11399 * tree-ssa-ter.c : Likewise.
11400 * tree-ssa-threadedge.c : Likewise.
11401 * tree-ssa-threadupdate.c : Likewise.
11402 * tree-ssa-uncprop.c : Likewise.
11403 * tree-ssa-uninit.c : Likewise.
11404 * tree-ssa.c : Likewise.
11405 * tree-ssanames.c : Likewise.
11406 * tree-stdarg.c : Likewise.
11407 * tree-streamer-in.c : Likewise.
11408 * tree-streamer-out.c : Likewise.
11409 * tree-streamer.c : Likewise.
11410 * tree-streamer.h : Likewise.
11411 * tree-switch-conversion.c : Likewise.
11412 * tree-tailcall.c : Likewise.
11413 * tree-vect-data-refs.c : Likewise.
11414 * tree-vect-generic.c : Likewise.
11415 * tree-vect-loop-manip.c : Likewise.
11416 * tree-vect-loop.c : Likewise.
11417 * tree-vect-patterns.c : Likewise.
11418 * tree-vect-slp.c : Likewise.
11419 * tree-vect-stmts.c : Likewise.
11420 * tree-vectorizer.c : Likewise.
11421 * tree-vectorizer.h : Likewise.
11422 * tree-vrp.c : Likewise.
11423 * tree.c : Likewise.
11424 * tsan.c : Likewise.
11425 * ubsan.c : Likewise.
11426 * valtrack.c : Likewise.
11427 * valtrack.h : Likewise.
11428 * value-prof.c : Likewise.
11429 * var-tracking.c : Likewise.
11430 * varasm.c : Likewise.
11431 * varpool.c : Likewise.
11433 * vmsdbgout.c : Likewise.
11434 * vtable-verify.c : Likewise.
11435 * vtable-verify.h : Likewise.
11436 * web.c : Likewise.
11437 * wide-int.cc : Likewise.
11438 * xcoffout.c : Likewise.
11439 * config/aarch64/aarch64-builtins.c : Likewise.
11440 * config/aarch64/aarch64.c : Likewise.
11441 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
11442 * config/alpha/alpha.c : Likewise.
11443 * config/arc/arc.c : Likewise.
11444 * config/arm/aarch-common.c : Likewise.
11445 * config/arm/arm-builtins.c : Likewise.
11446 * config/arm/arm-c.c : Likewise.
11447 * config/arm/arm.c : Likewise.
11448 * config/avr/avr-c.c : Likewise.
11449 * config/avr/avr-log.c : Likewise.
11450 * config/avr/avr.c : Likewise.
11451 * config/bfin/bfin.c : Likewise.
11452 * config/c6x/c6x.c : Likewise.
11453 * config/cr16/cr16.c : Likewise.
11454 * config/cris/cris.c : Likewise.
11455 * config/darwin-c.c : Likewise.
11456 * config/darwin.c : Likewise.
11457 * config/default-c.c : Likewise.
11458 * config/epiphany/epiphany.c : Likewise.
11459 * config/epiphany/mode-switch-use.c : Likewise.
11460 * config/epiphany/resolve-sw-modes.c : Likewise.
11461 * config/fr30/fr30.c : Likewise.
11462 * config/frv/frv.c : Likewise.
11463 * config/ft32/ft32.c : Likewise.
11464 * config/glibc-c.c : Likewise.
11465 * config/h8300/h8300.c : Likewise.
11466 * config/i386/i386-c.c : Likewise.
11467 * config/i386/i386.c : Likewise.
11468 * config/i386/msformat-c.c : Likewise.
11469 * config/i386/winnt-cxx.c : Likewise.
11470 * config/i386/winnt-stubs.c : Likewise.
11471 * config/i386/winnt.c : Likewise.
11472 * config/ia64/ia64-c.c : Likewise.
11473 * config/ia64/ia64.c : Likewise.
11474 * config/iq2000/iq2000.c : Likewise.
11475 * config/lm32/lm32.c : Likewise.
11476 * config/m32c/m32c-pragma.c : Likewise.
11477 * config/m32c/m32c.c : Likewise.
11478 * config/m32r/m32r.c : Likewise.
11479 * config/m68k/m68k.c : Likewise.
11480 * config/mcore/mcore.c : Likewise.
11481 * config/mep/mep-pragma.c : Likewise.
11482 * config/mep/mep.c : Likewise.
11483 * config/microblaze/microblaze-c.c : Likewise.
11484 * config/microblaze/microblaze.c : Likewise.
11485 * config/mips/mips.c : Likewise.
11486 * config/mmix/mmix.c : Likewise.
11487 * config/mn10300/mn10300.c : Likewise.
11488 * config/moxie/moxie.c : Likewise.
11489 * config/msp430/msp430-c.c : Likewise.
11490 * config/msp430/msp430.c : Likewise.
11491 * config/nds32/nds32-cost.c : Likewise.
11492 * config/nds32/nds32-fp-as-gp.c : Likewise.
11493 * config/nds32/nds32-intrinsic.c : Likewise.
11494 * config/nds32/nds32-isr.c : Likewise.
11495 * config/nds32/nds32-md-auxiliary.c : Likewise.
11496 * config/nds32/nds32-memory-manipulation.c : Likewise.
11497 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
11498 * config/nds32/nds32-predicates.c : Likewise.
11499 * config/nds32/nds32.c : Likewise.
11500 * config/nios2/nios2.c : Likewise.
11501 * config/nvptx/nvptx.c : Likewise.
11502 * config/pa/pa.c : Likewise.
11503 * config/pdp11/pdp11.c : Likewise.
11504 * config/rl78/rl78-c.c : Likewise.
11505 * config/rl78/rl78.c : Likewise.
11506 * config/rs6000/rs6000-c.c : Likewise.
11507 * config/rs6000/rs6000.c : Likewise.
11508 * config/rx/rx.c : Likewise.
11509 * config/s390/s390-c.c : Likewise.
11510 * config/s390/s390.c : Likewise.
11511 * config/sh/sh-c.c : Likewise.
11512 * config/sh/sh-mem.cc : Likewise.
11513 * config/sh/sh.c : Likewise.
11514 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
11515 * config/sh/sh_treg_combine.cc : Likewise.
11516 * config/sol2-c.c : Likewise.
11517 * config/sol2-cxx.c : Likewise.
11518 * config/sol2-stubs.c : Likewise.
11519 * config/sol2.c : Likewise.
11520 * config/sparc/sparc-c.c : Likewise.
11521 * config/sparc/sparc.c : Likewise.
11522 * config/spu/spu-c.c : Likewise.
11523 * config/spu/spu.c : Likewise.
11524 * config/stormy16/stormy16.c : Likewise.
11525 * config/tilegx/mul-tables.c : Likewise.
11526 * config/tilegx/tilegx-c.c : Likewise.
11527 * config/tilegx/tilegx.c : Likewise.
11528 * config/tilepro/mul-tables.c : Likewise.
11529 * config/tilepro/tilepro-c.c : Likewise.
11530 * config/tilepro/tilepro.c : Likewise.
11531 * config/v850/v850-c.c : Likewise.
11532 * config/v850/v850.c : Likewise.
11533 * config/vax/vax.c : Likewise.
11534 * config/visium/visium.c : Likewise.
11535 * config/vms/vms-c.c : Likewise.
11536 * config/vms/vms.c : Likewise.
11537 * config/vxworks.c : Likewise.
11538 * config/winnt-c.c : Likewise.
11539 * config/xtensa/xtensa.c : Likewise.
11541 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
11544 * ipa-utils.h (warn_types_mismatch): Update prototype.
11545 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
11547 (type_mismatch_p): New function.
11548 (warn_types_mismatch): Reorg to work better on non-C++ types.
11549 (odr_types_equivalent_p): Add loc1/loc2 parameters.
11550 (add_type_duplicate): Update.
11552 2015-06-08 Tom de Vries <tom@codesourcery.com>
11554 PR rtl-optimization/66444
11555 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
11558 2015-06-08 Richard Biener <rguenther@suse.de>
11560 PR tree-optimization/66422
11561 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
11562 block after inserted gcc_unreachable.
11564 2015-06-08 Nick Clifton <nickc@redhat.com>
11566 * config/rx/rx.c (rx_function_value): Do not promote vector types.
11567 (rx_promote_function_mode): Likewise.
11568 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
11570 2015-06-08 Jakub Jelinek <jakub@redhat.com>
11572 * genattrtab.c (insn_alternatives): Change type from int *
11574 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
11575 (get_attr_value): Change type of num_alt to uint64_t.
11576 (compute_alternative_mask): Change return type from
11577 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
11578 (make_alternative_compare, mk_attr_alt): Change argument type
11579 from int to uint64_t.
11580 (simplify_test_exp): Change type of i from int to uint64_t.
11581 Shift ((uint64_t) 1) instead of 1 up.
11582 (main): Adjust oballocvec first argument from int to uint64_t.
11583 Shift ((uint64_t) 1) instead of 1 up.
11585 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11588 * gdbhooks.py: Import sys.
11589 (intptr): New function. Replace int(...) by intptr(...).
11591 2015-06-08 Richard Biener <rguenther@suse.de>
11593 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
11594 adjustment for gaps at the end of a SLP load group properly.
11595 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
11596 all permutations we can generate.
11597 (vect_transform_slp_perm_load): Use the correct group-size.
11599 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
11601 * genmatch.c (expr::gen_transform): For conditions, guess the type
11602 from the second operand.
11604 2015-06-08 Tom de Vries <tom@codesourcery.com>
11606 PR tree-optimization/66442
11607 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
11608 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
11609 if the loop latch is not a singleton. Use
11610 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
11612 2015-06-08 Marek Polacek <polacek@redhat.com>
11615 * toplev.c (check_global_declaration): Don't warn about artificial
11618 2015-06-08 Tom de Vries <tom@codesourcery.com>
11620 PR tree-optimization/66436
11621 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
11623 * gimplify.c: Add tree-dump.h include.
11624 (gimplify_function_tree): Dump function to gimple dump file.
11625 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
11628 2015-06-08 Tom de Vries <tom@codesourcery.com>
11630 PR tree-optimization/66435
11631 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
11634 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
11636 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
11637 of ptr_type_node to not be ptr_to_node.
11638 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
11639 TREE_TYPE of pointers.
11640 * gimple-expr.c (useless_type_conversion): Reorder the check for
11641 function pointers and TYPE_CANONICAL.
11643 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
11646 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
11647 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
11648 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
11650 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
11651 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
11652 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
11653 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
11654 and non iso if unix2003.
11656 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
11658 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
11660 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
11662 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
11663 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
11664 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
11665 except.c, final.c, function.c, gcse-common.c, genemit.c,
11666 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
11667 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
11668 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
11669 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
11672 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
11674 * combine.c (combine_split_insns): Remove cast.
11675 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
11676 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
11677 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
11678 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
11679 * genemit.c (gen_split): Change return type of generated functions to
11681 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
11682 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
11683 gen_peephole2_* functions.
11684 (print_subroutine, main): Likewise.
11685 * recog.c (peephole2_optimize): Remove cast.
11686 (peep2_next_insn): Promote return type to rtx_insn.
11687 * recog.h (peep2_next_insn): Fix prototype.
11688 * rtl.h (try_split, split_insns): Likewise.
11690 2015-06-06 DJ Delorie <dj@redhat.com>
11692 * config/msp430/msp430.c (msp430_asm_integer): Support addition
11693 and subtraction too.
11695 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
11698 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
11699 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
11700 instead of Snd. Disparage Sid/z alternative with '^'.
11702 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
11704 * dwarf2out.c: Remove deferred_locations*.
11705 (dwarf2_debug_hooks): Add early_finish hook.
11706 Remove global_decl hook.
11707 Add early_global_decl and late_global_decl hook.
11708 New global early_dwarf.
11709 New structure set_early_dwarf.
11710 (output_die): Indicate whether a DIE was generated early
11711 when generating assembly with -dA.
11712 (struct limbo_die_struct): Document created_for field.
11713 Remove file_table_last_lookup.
11714 (remove_AT): Return TRUE if successful.
11715 (remove_child_TAG): Clear die_parent.
11716 (reparent_child): New function abstracted from...
11717 (splice_child_die): ...here.
11718 (new_die): ICE if a DIE ends up in limbo too late.
11720 (defer_location): Remove.
11721 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
11722 (fill_variable_array_bounds): New.
11723 (decl_start_label): Call fill_variable_array_bounds.
11724 (gen_formal_parameter_die): Rewrite to reuse previously generated
11726 (gen_subprogram_die): Same.
11727 (gen_variable_die): Same.
11728 (gen_const_die): Same.
11729 (gen_label_die): Same.
11730 (gen_lexical_block_die): Same.
11731 (decl_will_get_specification_p): New.
11732 (local_function_static): New.
11733 (gen_struct_or_union_type_die): Fill in variable-length fields.
11734 (gen_typedef_die): Fill in variable-length typedefs.
11735 (gen_tagged_type_die): Gracefully return on error_mark_node.
11736 Handle re-entrancy.
11737 (gen_type_die_with_usage): Handle variable-length types.
11738 Remove duplicate code for ARRAY_TYPE case.
11739 (process_scope_var): Only process imported modules during early
11741 (dwarf2out_early_global_decl): New.
11742 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
11743 (dwarf2out_type_decl): Set early_dwarf while calling
11745 (dwarf2out_decl): Verify that we did not recreate a previously
11747 Do not return on DECL_EXTERNALs in VAR_DECLs.
11748 Abstract some code to local_function_static.
11749 (lookup_filename): Remove use of file_table_last_lookup.
11750 Gracefully exit on missing file_name.
11751 (dwarf2out_finish): Verify limbo list.
11752 Remove deferred_locations_list use.
11753 Move deferred_asm_name and limbo flushing to...
11754 (dwarf2out_early_finish): ...here. New.
11755 (dwarf2out_c_finalize): Remove set of deferred_location_list,
11756 deferred_asm_name, and file_table_last_lookup.
11757 * cgraph.h (referred_to_p): Add default argument.
11758 * cgraphunit.c (referred_to_p): Add and handle include_self
11760 (analyze_functions): Add first_time argument.
11761 Call check_global_declaration for all symbols.
11762 Call late_global_decl for nodes for moribund nodes.
11763 (finalize_compilation_unit): Add new argument to
11765 Call early_global_decl for functions.
11766 Call early_finish debug hook.
11767 * dbxout.c (dbxout_early_global_decl): New.
11768 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
11769 (dbx_debug_hooks): Add new hooks.
11770 (xcoff_debug_hooks): Same.
11771 * debug.c (do_nothing_debug_hooks): Add early_finish field.
11772 Add early and late debug hooks.
11773 Remove global_decl hook.
11774 * debug.h (struct gcc_debug_hooks): Add early_finish,
11775 early_global_decl, and late_global_decl fields.
11776 Remove global_decl field.
11777 Document gcc_debug_hooks.
11778 * gengtype.c (output_typename): Remove.
11779 * godump.c (go_early_global_decl): New.
11780 (go_late_global_decl): New.
11781 (go_global_decl): Remove.
11782 (dump_go_spec_init): Remove global_decl. Add
11783 {early,late}_global_decl.
11784 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
11785 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
11786 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
11787 (write_global_declarations): Remove.
11788 (global_decl_processing): New.
11789 * langhooks.h (struct lang_hooks_for_decls): Remove
11790 final_write_globals field.
11791 Add post_compilation_parsing_cleanups field.
11792 * passes.c (rest_of_decl_compilation): Call early_global_decl.
11793 * sdbout.c: Add early and late_global_decl hooks. Remove
11794 sdbout_global_decl hook.
11795 Add early_finish field for sdb_debug_hooks.
11796 (sdbout_global_decl): Remove.
11797 (sdbout_early_global_decl): New.
11798 (sdbout_late_global_decl): New.
11799 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
11800 * toplev.c (check_global_declaration): Rename from
11801 check_global_declaration_1.
11802 Adapt to use symtab infrastructure.
11803 (check_global_declarations): Remove.
11804 (emit_debug_global_declarations): Remove.
11805 (compile_file): Remove call to final_write_globals langhook.
11806 Run the actual compilation process.
11807 Perform any post compilation parser cleanups.
11808 Generate late debug info.
11809 * toplev.h (check_global_declaration): New.
11810 (check_global_declaration_1): Remove.
11811 (check_global_declarations): Remove.
11812 (write_global_declarations): Remove.
11813 (emit_debug_global_declarations): Remove.
11814 (global_decl_processing): New.
11815 * tree-core.h (struct tree_block): Add DIE field.
11816 * tree.h (BLOCK_DIE): New.
11817 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
11819 (vmsdbgout_early_global_decl): New.
11820 (vmsdbgout_late_global_decl): New.
11821 Add early_finish debug hook field to vmsdbg_debug_hooks.
11822 Remove vmsdbgout_decl to vmsdbgout_function_decl.
11823 Add early and late_global_decl debug hooks.
11825 2015-06-05 Julian Brown <julian@codesourcery.com>
11826 Sandra Loosemore <sandra@codesourcery.com>
11828 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
11829 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
11830 to print-sysroot-suffix.sh script.
11832 2015-06-05 Tom de Vries <tom@codesourcery.com>
11834 merge from gomp4 branch:
11835 2015-05-28 Tom de Vries <tom@codesourcery.com>
11837 PR tree-optimization/65443
11838 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
11839 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
11840 (try_transform_to_exit_first_loop_alt): New function.
11841 (transform_to_exit_first_loop): Use
11842 try_transform_to_exit_first_loop_alt.
11844 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
11846 * builtins.c (expand_builtin_atomic_compare_exchange): Call
11847 emit_cmp_and_jump_insns with the mode of target.
11849 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11851 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
11853 2015-06-04 DJ Delorie <dj@redhat.com>
11855 * config/msp430/msp430.md (movsi_s): New. Special case for
11856 storing a 20-bit symbol into a 32-bit register.
11857 * config/msp430/msp430.c (msp430_subreg): Add support for it.
11858 * config/msp430/predicates.md (msp430_symbol_operand): New.
11860 2015-06-04 Sriraman Tallam <tmsriram@google.com>
11862 * c-family/c-common.c (noplt): New attribute.
11863 (handle_noplt_attribute): New handler.
11864 * calls.c (prepare_call_address): Check for noplt
11866 * config/i386/i386.c (ix86_expand_call): Check
11867 for noplt attribute.
11868 (ix86_nopic_noplt_attribute_p): New function.
11869 (ix86_output_call_insn): Output indirect call for non-pic
11871 * doc/extend.texi (noplt): Document new attribute.
11872 * doc/invoke.texi: Document new attribute.
11874 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
11876 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
11877 real.h, and fixed-value.h when included in host source files.
11878 * double-int.h: Remove redundant #includes listed above.
11879 * fixed-value.h: Likewise.
11880 * real.h: Likewise.
11881 * wide-int.h: Likewise.
11882 * inchash.h: Likewise.
11883 * rtl.h: Add some include files When included from a generator file.
11884 * target.h: Remove wide-int.h and insn-modes.h from the include list.
11885 * internal-fn.h: Don't include coretypes.h.
11886 * alias.c: Adjust includes for restructured coretypes.h.
11887 * asan.c: Likewise.
11888 * attribs.c: Likewise.
11889 * auto-inc-dec.c: Likewise.
11890 * auto-profile.c: Likewise.
11891 * bb-reorder.c: Likewise.
11892 * bt-load.c: Likewise.
11893 * builtins.c: Likewise.
11894 * caller-save.c: Likewise.
11895 * calls.c: Likewise.
11896 * ccmp.c: Likewise.
11898 * cfganal.c: Likewise.
11899 * cfgbuild.c: Likewise.
11900 * cfgcleanup.c: Likewise.
11901 * cfgexpand.c: Likewise.
11902 * cfghooks.c: Likewise.
11903 * cfgloop.c: Likewise.
11904 * cfgloop.h: Likewise.
11905 * cfgloopanal.c: Likewise.
11906 * cfgloopmanip.c: Likewise.
11907 * cfgrtl.c: Likewise.
11908 * cgraph.c: Likewise.
11909 * cgraphbuild.c: Likewise.
11910 * cgraphclones.c: Likewise.
11911 * cgraphunit.c: Likewise.
11912 * cilk-common.c: Likewise.
11913 * combine-stack-adj.c: Likewise.
11914 * combine.c: Likewise.
11915 * compare-elim.c: Likewise.
11916 * convert.c: Likewise.
11917 * coverage.c: Likewise.
11918 * cppbuiltin.c: Likewise.
11919 * cprop.c: Likewise.
11921 * cselib.c: Likewise.
11922 * data-streamer-in.c: Likewise.
11923 * data-streamer-out.c: Likewise.
11924 * data-streamer.c: Likewise.
11925 * dbxout.c: Likewise.
11928 * debug.c: Likewise.
11929 * df-core.c: Likewise.
11930 * df-problems.c: Likewise.
11931 * df-scan.c: Likewise.
11934 * dojump.c: Likewise.
11935 * dominance.c: Likewise.
11936 * domwalk.c: Likewise.
11937 * double-int.c: Likewise.
11939 * dumpfile.c: Likewise.
11940 * dwarf2asm.c: Likewise.
11941 * dwarf2cfi.c: Likewise.
11942 * dwarf2out.c: Likewise.
11943 * dwarf2out.h: Likewise.
11944 * emit-rtl.c: Likewise.
11945 * et-forest.c: Likewise.
11946 * except.c: Likewise.
11947 * explow.c: Likewise.
11948 * expmed.c: Likewise.
11949 * expr.c: Likewise.
11950 * final.c: Likewise.
11951 * fixed-value.c: Likewise.
11952 * fold-const.c: Likewise.
11953 * function.c: Likewise.
11954 * fwprop.c: Likewise.
11955 * gcc-plugin.h: Likewise.
11956 * gcse.c: Likewise.
11957 * generic-match-head.c: Likewise.
11958 * ggc-page.c: Likewise.
11959 * gimple-builder.c: Likewise.
11960 * gimple-expr.c: Likewise.
11961 * gimple-fold.c: Likewise.
11962 * gimple-iterator.c: Likewise.
11963 * gimple-low.c: Likewise.
11964 * gimple-match-head.c: Likewise.
11965 * gimple-pretty-print.c: Likewise.
11966 * gimple-ssa-isolate-paths.c: Likewise.
11967 * gimple-ssa-strength-reduction.c: Likewise.
11968 * gimple-streamer-in.c: Likewise.
11969 * gimple-streamer-out.c: Likewise.
11970 * gimple-streamer.h: Likewise.
11971 * gimple-walk.c: Likewise.
11972 * gimple.c: Likewise.
11973 * gimplify-me.c: Likewise.
11974 * gimplify.c: Likewise.
11975 * godump.c: Likewise.
11976 * graph.c: Likewise.
11977 * graphite-blocking.c: Likewise.
11978 * graphite-dependences.c: Likewise.
11979 * graphite-interchange.c: Likewise.
11980 * graphite-isl-ast-to-gimple.c: Likewise.
11981 * graphite-optimize-isl.c: Likewise.
11982 * graphite-poly.c: Likewise.
11983 * graphite-scop-detection.c: Likewise.
11984 * graphite-sese-to-poly.c: Likewise.
11985 * graphite.c: Likewise.
11986 * haifa-sched.c: Likewise.
11987 * hooks.h: Likewise.
11988 * hw-doloop.c: Likewise.
11989 * ifcvt.c: Likewise.
11990 * incpath.c: Likewise.
11991 * init-regs.c: Likewise.
11992 * internal-fn.c: Likewise.
11993 * ipa-chkp.c: Likewise.
11994 * ipa-comdats.c: Likewise.
11995 * ipa-cp.c: Likewise.
11996 * ipa-devirt.c: Likewise.
11997 * ipa-icf-gimple.c: Likewise.
11998 * ipa-icf.c: Likewise.
11999 * ipa-inline-analysis.c: Likewise.
12000 * ipa-inline-transform.c: Likewise.
12001 * ipa-inline.c: Likewise.
12002 * ipa-polymorphic-call.c: Likewise.
12003 * ipa-profile.c: Likewise.
12004 * ipa-prop.c: Likewise.
12005 * ipa-pure-const.c: Likewise.
12006 * ipa-ref.c: Likewise.
12007 * ipa-reference.c: Likewise.
12008 * ipa-split.c: Likewise.
12009 * ipa-utils.c: Likewise.
12010 * ipa-visibility.c: Likewise.
12012 * ira-build.c: Likewise.
12013 * ira-color.c: Likewise.
12014 * ira-conflicts.c: Likewise.
12015 * ira-costs.c: Likewise.
12016 * ira-emit.c: Likewise.
12017 * ira-lives.c: Likewise.
12019 * jump.c: Likewise.
12020 * langhooks.c: Likewise.
12022 * loop-doloop.c: Likewise.
12023 * loop-init.c: Likewise.
12024 * loop-invariant.c: Likewise.
12025 * loop-iv.c: Likewise.
12026 * loop-unroll.c: Likewise.
12027 * lower-subreg.c: Likewise.
12028 * lra-assigns.c: Likewise.
12029 * lra-coalesce.c: Likewise.
12030 * lra-constraints.c: Likewise.
12031 * lra-eliminations.c: Likewise.
12032 * lra-lives.c: Likewise.
12033 * lra-remat.c: Likewise.
12034 * lra-spills.c: Likewise.
12036 * lto-cgraph.c: Likewise.
12037 * lto-compress.c: Likewise.
12038 * lto-opts.c: Likewise.
12039 * lto-section-in.c: Likewise.
12040 * lto-section-out.c: Likewise.
12041 * lto-streamer-in.c: Likewise.
12042 * lto-streamer-out.c: Likewise.
12043 * lto-streamer.c: Likewise.
12045 * mode-switching.c: Likewise.
12046 * modulo-sched.c: Likewise.
12047 * omega.c: Likewise.
12048 * omp-low.c: Likewise.
12049 * optabs.c: Likewise.
12050 * opts-global.c: Likewise.
12051 * passes.c: Likewise.
12052 * plugin.c: Likewise.
12053 * postreload-gcse.c: Likewise.
12054 * postreload.c: Likewise.
12055 * predict.c: Likewise.
12056 * print-rtl.c: Likewise.
12057 * print-tree.c: Likewise.
12058 * profile.c: Likewise.
12059 * real.c: Likewise.
12060 * realmpfr.c: Likewise.
12061 * realmpfr.h: Likewise.
12062 * recog.c: Likewise.
12064 * reg-stack.c: Likewise.
12065 * regcprop.c: Likewise.
12066 * reginfo.c: Likewise.
12067 * regrename.c: Likewise.
12068 * regs.h: Likewise.
12069 * regstat.c: Likewise.
12070 * reload.c: Likewise.
12071 * reload1.c: Likewise.
12072 * reorg.c: Likewise.
12073 * resource.c: Likewise.
12074 * rtl-chkp.c: Likewise.
12075 * rtlanal.c: Likewise.
12076 * rtlhooks.c: Likewise.
12077 * sanopt.c: Likewise.
12078 * sched-deps.c: Likewise.
12079 * sched-ebb.c: Likewise.
12080 * sched-rgn.c: Likewise.
12081 * sched-vis.c: Likewise.
12082 * sdbout.c: Likewise.
12083 * sel-sched-dump.c: Likewise.
12084 * sel-sched-ir.c: Likewise.
12085 * sel-sched.c: Likewise.
12086 * sese.c: Likewise.
12087 * shrink-wrap.c: Likewise.
12088 * shrink-wrap.h: Likewise.
12089 * simplify-rtx.c: Likewise.
12090 * stack-ptr-mod.c: Likewise.
12091 * statistics.c: Likewise.
12092 * stmt.c: Likewise.
12093 * stor-layout.c: Likewise.
12094 * store-motion.c: Likewise.
12095 * stringpool.c: Likewise.
12096 * symtab.c: Likewise.
12097 * target-globals.c: Likewise.
12098 * targhooks.c: Likewise.
12099 * toplev.c: Likewise.
12100 * tracer.c: Likewise.
12101 * trans-mem.c: Likewise.
12102 * tree-affine.c: Likewise.
12103 * tree-affine.h: Likewise.
12104 * tree-browser.c: Likewise.
12105 * tree-call-cdce.c: Likewise.
12106 * tree-cfg.c: Likewise.
12107 * tree-cfgcleanup.c: Likewise.
12108 * tree-chkp-opt.c: Likewise.
12109 * tree-chkp.c: Likewise.
12110 * tree-chrec.c: Likewise.
12111 * tree-complex.c: Likewise.
12112 * tree-data-ref.c: Likewise.
12113 * tree-dfa.c: Likewise.
12114 * tree-diagnostic.c: Likewise.
12115 * tree-dump.c: Likewise.
12116 * tree-eh.c: Likewise.
12117 * tree-emutls.c: Likewise.
12118 * tree-if-conv.c: Likewise.
12119 * tree-inline.c: Likewise.
12120 * tree-into-ssa.c: Likewise.
12121 * tree-iterator.c: Likewise.
12122 * tree-loop-distribution.c: Likewise.
12123 * tree-nested.c: Likewise.
12124 * tree-nrv.c: Likewise.
12125 * tree-object-size.c: Likewise.
12126 * tree-outof-ssa.c: Likewise.
12127 * tree-parloops.c: Likewise.
12128 * tree-phinodes.c: Likewise.
12129 * tree-predcom.c: Likewise.
12130 * tree-pretty-print.c: Likewise.
12131 * tree-pretty-print.h: Likewise.
12132 * tree-profile.c: Likewise.
12133 * tree-scalar-evolution.c: Likewise.
12134 * tree-sra.c: Likewise.
12135 * tree-ssa-address.c: Likewise.
12136 * tree-ssa-alias.c: Likewise.
12137 * tree-ssa-ccp.c: Likewise.
12138 * tree-ssa-coalesce.c: Likewise.
12139 * tree-ssa-copy.c: Likewise.
12140 * tree-ssa-copyrename.c: Likewise.
12141 * tree-ssa-dce.c: Likewise.
12142 * tree-ssa-dom.c: Likewise.
12143 * tree-ssa-dse.c: Likewise.
12144 * tree-ssa-forwprop.c: Likewise.
12145 * tree-ssa-ifcombine.c: Likewise.
12146 * tree-ssa-live.c: Likewise.
12147 * tree-ssa-loop-ch.c: Likewise.
12148 * tree-ssa-loop-im.c: Likewise.
12149 * tree-ssa-loop-ivcanon.c: Likewise.
12150 * tree-ssa-loop-ivopts.c: Likewise.
12151 * tree-ssa-loop-manip.c: Likewise.
12152 * tree-ssa-loop-niter.c: Likewise.
12153 * tree-ssa-loop-prefetch.c: Likewise.
12154 * tree-ssa-loop-unswitch.c: Likewise.
12155 * tree-ssa-loop.c: Likewise.
12156 * tree-ssa-loop.h: Likewise.
12157 * tree-ssa-math-opts.c: Likewise.
12158 * tree-ssa-operands.c: Likewise.
12159 * tree-ssa-phiopt.c: Likewise.
12160 * tree-ssa-phiprop.c: Likewise.
12161 * tree-ssa-pre.c: Likewise.
12162 * tree-ssa-propagate.c: Likewise.
12163 * tree-ssa-reassoc.c: Likewise.
12164 * tree-ssa-sccvn.c: Likewise.
12165 * tree-ssa-scopedtables.c: Likewise.
12166 * tree-ssa-sink.c: Likewise.
12167 * tree-ssa-strlen.c: Likewise.
12168 * tree-ssa-structalias.c: Likewise.
12169 * tree-ssa-tail-merge.c: Likewise.
12170 * tree-ssa-ter.c: Likewise.
12171 * tree-ssa-threadedge.c: Likewise.
12172 * tree-ssa-threadupdate.c: Likewise.
12173 * tree-ssa-uncprop.c: Likewise.
12174 * tree-ssa-uninit.c: Likewise.
12175 * tree-ssa.c: Likewise.
12176 * tree-ssanames.c: Likewise.
12177 * tree-stdarg.c: Likewise.
12178 * tree-streamer-in.c: Likewise.
12179 * tree-streamer-out.c: Likewise.
12180 * tree-streamer.c: Likewise.
12181 * tree-switch-conversion.c: Likewise.
12182 * tree-tailcall.c: Likewise.
12183 * tree-vect-data-refs.c: Likewise.
12184 * tree-vect-generic.c: Likewise.
12185 * tree-vect-loop-manip.c: Likewise.
12186 * tree-vect-loop.c: Likewise.
12187 * tree-vect-patterns.c: Likewise.
12188 * tree-vect-slp.c: Likewise.
12189 * tree-vect-stmts.c: Likewise.
12190 * tree-vectorizer.c: Likewise.
12191 * tree-vrp.c: Likewise.
12192 * tree.c: Likewise.
12193 * tsan.c: Likewise.
12194 * ubsan.c: Likewise.
12195 * valtrack.c: Likewise.
12196 * value-prof.c: Likewise.
12197 * var-tracking.c: Likewise.
12198 * varasm.c: Likewise.
12199 * varpool.c: Likewise.
12200 * vmsdbgout.c: Likewise.
12201 * vtable-verify.c: Likewise.
12203 * wide-int-print.cc: Likewise.
12204 * wide-int-print.h: Likewise.
12205 * wide-int.cc: Likewise.
12206 * xcoffout.c: Likewise.
12207 * config/aarch64/aarch64-builtins.c: Likewise.
12208 * config/aarch64/aarch64.c: Likewise.
12209 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12210 * config/alpha/alpha.c: Likewise.
12211 * config/arc/arc.c: Likewise.
12212 * config/arm/aarch-common.c: Likewise.
12213 * config/arm/arm-builtins.c: Likewise.
12214 * config/arm/arm-c.c: Likewise.
12215 * config/arm/arm.c: Likewise.
12216 * config/avr/avr-c.c: Likewise.
12217 * config/avr/avr-log.c: Likewise.
12218 * config/avr/avr.c: Likewise.
12219 * config/bfin/bfin.c: Likewise.
12220 * config/c6x/c6x.c: Likewise.
12221 * config/cr16/cr16.c: Likewise.
12222 * config/cris/cris.c: Likewise.
12223 * config/darwin-c.c: Likewise.
12224 * config/darwin.c: Likewise.
12225 * config/default-c.c: Likewise.
12226 * config/epiphany/epiphany.c: Likewise.
12227 * config/epiphany/mode-switch-use.c: Likewise.
12228 * config/epiphany/resolve-sw-modes.c: Likewise.
12229 * config/fr30/fr30.c: Likewise.
12230 * config/frv/frv.c: Likewise.
12231 * config/ft32/ft32.c: Likewise.
12232 * config/glibc-c.c: Likewise.
12233 * config/h8300/h8300.c: Likewise.
12234 * config/i386/i386-c.c: Likewise.
12235 * config/i386/i386.c: Likewise.
12236 * config/i386/msformat-c.c: Likewise.
12237 * config/i386/winnt-cxx.c: Likewise.
12238 * config/i386/winnt-stubs.c: Likewise.
12239 * config/i386/winnt.c: Likewise.
12240 * config/ia64/ia64-c.c: Likewise.
12241 * config/ia64/ia64.c: Likewise.
12242 * config/iq2000/iq2000.c: Likewise.
12243 * config/lm32/lm32.c: Likewise.
12244 * config/m32c/m32c-pragma.c: Likewise.
12245 * config/m32c/m32c.c: Likewise.
12246 * config/m32r/m32r.c: Likewise.
12247 * config/m68k/m68k.c: Likewise.
12248 * config/mcore/mcore.c: Likewise.
12249 * config/mep/mep-pragma.c: Likewise.
12250 * config/mep/mep.c: Likewise.
12251 * config/microblaze/microblaze-c.c: Likewise.
12252 * config/microblaze/microblaze.c: Likewise.
12253 * config/mips/mips.c: Likewise.
12254 * config/mmix/mmix.c: Likewise.
12255 * config/mn10300/mn10300.c: Likewise.
12256 * config/moxie/moxie.c: Likewise.
12257 * config/msp430/msp430-c.c: Likewise.
12258 * config/msp430/msp430.c: Likewise.
12259 * config/nds32/nds32-cost.c: Likewise.
12260 * config/nds32/nds32-fp-as-gp.c: Likewise.
12261 * config/nds32/nds32-intrinsic.c: Likewise.
12262 * config/nds32/nds32-isr.c: Likewise.
12263 * config/nds32/nds32-md-auxiliary.c: Likewise.
12264 * config/nds32/nds32-memory-manipulation.c: Likewise.
12265 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12266 * config/nds32/nds32-predicates.c: Likewise.
12267 * config/nds32/nds32.c: Likewise.
12268 * config/nios2/nios2.c: Likewise.
12269 * config/nvptx/nvptx.c: Likewise.
12270 * config/pa/pa.c: Likewise.
12271 * config/pdp11/pdp11.c: Likewise.
12272 * config/rl78/rl78-c.c: Likewise.
12273 * config/rl78/rl78.c: Likewise.
12274 * config/rs6000/rs6000-c.c: Likewise.
12275 * config/rs6000/rs6000.c: Likewise.
12276 * config/rx/rx.c: Likewise.
12277 * config/s390/s390-c.c: Likewise.
12278 * config/s390/s390.c: Likewise.
12279 * config/sh/sh-c.c: Likewise.
12280 * config/sh/sh-mem.cc: Likewise.
12281 * config/sh/sh.c: Likewise.
12282 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12283 * config/sh/sh_treg_combine.cc: Likewise.
12284 * config/sol2-c.c: Likewise.
12285 * config/sol2-cxx.c: Likewise.
12286 * config/sol2-stubs.c: Likewise.
12287 * config/sol2.c: Likewise.
12288 * config/sparc/sparc-c.c: Likewise.
12289 * config/sparc/sparc.c: Likewise.
12290 * config/spu/spu-c.c: Likewise.
12291 * config/spu/spu.c: Likewise.
12292 * config/stormy16/stormy16.c: Likewise.
12293 * config/tilegx/mul-tables.c: Likewise.
12294 * config/tilegx/tilegx-c.c: Likewise.
12295 * config/tilegx/tilegx.c: Likewise.
12296 * config/tilepro/mul-tables.c: Likewise.
12297 * config/tilepro/tilepro-c.c: Likewise.
12298 * config/tilepro/tilepro.c: Likewise.
12299 * config/v850/v850-c.c: Likewise.
12300 * config/v850/v850.c: Likewise.
12301 * config/vax/vax.c: Likewise.
12302 * config/visium/visium.c: Likewise.
12303 * config/vms/vms-c.c: Likewise.
12304 * config/vms/vms.c: Likewise.
12305 * config/vxworks.c: Likewise.
12306 * config/winnt-c.c: Likewise.
12307 * config/xtensa/xtensa.c: Likewise.
12308 * common/config/bfin/bfin-common.c: Likewise.
12310 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
12312 * tree.h (tree_code_for_canonical_type_merging): New function.
12313 * tree.c (gimple_canonical_types_compatible_p): Use
12314 tree_code_for_canonical_type_merging..
12316 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12320 * doc/tm.texi: Regenerate.
12321 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
12322 * target.def (TARGET_RELAXED_ORDERING): Likewise.
12323 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
12324 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
12325 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
12326 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
12327 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
12328 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
12329 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
12331 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12333 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
12334 register fma steering pass.
12335 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
12336 AARCH64_TUNE_FMA_STEERING.
12338 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
12340 * tree.c (verify_type_variant): Verify that type and variant is
12342 (gimple_canonical_types_compatible_p): Look for main variants.
12344 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
12346 * config.gcc (powerpc*-*-*): Add support for a new configure
12347 option --with-advance-toolchain=<xxx> which overrides using the
12348 default header files, libraries and dynamic linker.
12350 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
12351 specs to support the configure --with-advance-toolchain=<xxx>
12353 (INCLUDE_EXTRA_SPEC): Likewise.
12354 (LINK_OS_EXTRA_SPEC32): Likewise.
12355 (LINK_OK_EXTRA_SPEC64): Likewise.
12356 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
12357 (DYNAMIC_LINKER_PREFIX): Likewise.
12358 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
12360 (GLIBC_DYNAMIC_LINKER32): Likewise.
12361 (GLIBC_DYNAMIC_LINKER64): Likewise.
12362 (LINK_OS_LINUX_SPEC32): Likewise.
12363 (LINK_OS_LINUX_SPEC64): Likewise.
12365 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
12366 configuration option.
12368 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
12371 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
12372 to determine current function ABI.
12373 (ix86_function_value_regno_p): Ditto.
12375 2015-06-03 Martin Liska <mliska@suse.cz>
12377 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
12378 * bitmap.h (struct bitmap_usage): Likewise.
12379 * ggc-common.c (struct ggc_usage): Likewise.
12380 * mem-stats.h (struct mem_location): Likewise.
12381 (struct mem_usage): Likewise.
12382 * vec.c (struct vec_usage): Likewise.
12384 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
12386 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
12389 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
12391 * doc/plugins.texi (enum plugin_event): New event.
12392 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
12393 and PLUGIN_FINISH_FUNCTION.
12394 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
12395 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
12397 2015-06-03 Richard Biener <rguenther@suse.de>
12399 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
12400 compute GROUP_GAP for the first element.
12401 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
12404 2015-06-03 Nick Clifton <nickc@redhat.com>
12406 * config/rl78/rl78-real.md: Add peepholes to avoid a register
12407 copy when calling a function.
12408 * config/rl78/rl78.c (need_to_save): Do not push the frame
12409 pointer in an interrupt handler prologue if it is never used.
12411 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12413 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
12415 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
12417 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
12418 reference when cloning alias node.
12420 2015-06-03 Martin Liska <mliska@suse.cz>
12422 * alloc-pool.h (struct pool_usage): Correct space padding.
12423 * ggc-page.c (ggc_print_statistics): Align columns in a report.
12424 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
12425 * tree.c (dump_tree_statistics): Align columns in a report.
12427 2015-06-03 Martin Liska <mliska@suse.cz>
12429 * alloc-pool.c (allocate_pool_descriptor): Remove.
12430 (struct pool_output_info): Likewise.
12431 (print_alloc_pool_statistics): Likewise.
12432 (dump_alloc_pool_statistics): Likewise.
12433 * alloc-pool.h (struct pool_usage): New struct.
12434 (pool_allocator::initialize): Change usage of memory statistics
12435 to a new interface.
12436 (pool_allocator::release): Likewise.
12437 (pool_allocator::allocate): Likewise.
12438 (pool_allocator::remove): Likewise.
12439 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
12440 for a pool allocator.
12441 * mem-stats.h (struct mem_location): Add new ctor.
12442 (struct mem_usage): Add counter for number of
12444 (mem_alloc_description::register_descriptor): New overload of
12445 * mem-stats.h (mem_location::to_string): New function.
12446 * bitmap.h (struct bitmap_usage): Use this new function.
12447 * ggc-common.c (struct ggc_usage): Likewise.
12450 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
12452 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
12453 of GCC_INSN_FLAGS_H block.
12455 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
12457 * explow.c (plus_constant): Update check after force_const_mem call
12458 to see if the value returned is not a NULL_RTX.
12460 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
12462 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
12463 remove instumentation thunks calling reachable functions.
12464 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
12465 * lto/lto-partition.c (privatize_symbol_name_1): New.
12466 (privatize_symbol_name): Privatize both decl and orig_decl
12467 names for instrumented functions.
12468 * cgraph.c (cgraph_node::verify_node): Add transparent
12469 alias chain check for instrumented node.
12471 2015-06-03 Marek Polacek <polacek@redhat.com>
12475 * tree.c (attribute_value_equal): Handle attribute format.
12476 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
12478 2015-06-03 Richard Biener <rguenther@suse.de>
12480 PR tree-optimization/63916
12481 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
12482 Forward-propagate non-invariant addresses by splicing their
12483 reference ops if the result isn't going to be used by PRE.
12484 (vn_reference_lookup_3): Remove pointless assert.
12486 2015-06-03 Richard Biener <rguenther@suse.de>
12488 PR tree-optimization/66375
12489 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
12490 add to the evolution before following SSA edges.
12492 2015-06-03 Bin Cheng <bin.cheng@arm.com>
12494 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
12495 (dump_use, dump_cand, find_induction_variables): Pass new argument
12497 (record_use): Preserve the ssa name information in IV.
12499 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
12501 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
12503 (add_mode_tests): Don't add mode tests if the predicate only
12504 accepts scalar constant integers. Otherwise, allow the mode
12505 of "op" to be VOIDmode if the predicate does accept such integers.
12507 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
12510 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
12511 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
12512 (aarch64_secondary_reload): Likewise
12513 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
12515 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
12518 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
12519 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12522 * cprop.c (try_replace_reg): Check cost of constants before propagating.
12524 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12526 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
12527 provide access to the IBM extended double floating point mode if
12528 long double is IEEE 128-bit floating point.
12529 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
12530 point if long double is the IBM extended double type.
12532 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
12533 enable adding IEEE 128-bit floating point support.
12534 (-mfloat128-software): Likewise.
12535 (-mfloat128-sw): Likewise.
12537 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
12538 128-bit floating point types to occupy any register if
12539 -mlong-double-64. Do not allow use of IFmode/KFmode unless
12540 -mfloat128-software is enabled.
12541 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
12543 (rs6000_option_override_internal): Add -mfloat128-* support.
12544 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
12546 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
12547 and float128 type nodes.
12548 (ieee128_float_type_node): Likewise.
12549 (ibm128_float_type_node): Likewise.
12551 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
12554 * config/aarch64/geniterators.sh: Rewrite in awk.
12556 2015-06-02 Martin Liska <mliska@suse.cz>
12558 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
12559 values to avoid -Wmaybe-uninitialized errors.
12561 2015-06-02 Richard Biener <rguenther@suse.de>
12564 * dwarf2out.c (lookup_context_die): New function.
12565 (resolve_addr): Avoid forcing a full DIE for the
12566 target of a DW_TAG_GNU_call_site during late compilation.
12567 Instead create a stub DIE without a type if we have a
12568 context DIE present.
12570 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
12572 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
12574 2015-06-02 Bin Cheng <bin.cheng@arm.com>
12576 PR tree-optimization/48052
12577 * cfgloop.h (struct control_iv): New.
12578 (struct loop): New field control_ivs.
12579 * tree-ssa-loop-niter.c : Include "stor-layout.h".
12580 (number_of_iterations_lt): Set no_overflow information.
12581 (number_of_iterations_exit): Init control iv in niter struct.
12582 (record_control_iv): New.
12583 (estimate_numbers_of_iterations_loop): Call record_control_iv.
12584 (loop_exits_before_overflow): New. Interface factored out of
12585 scev_probably_wraps_p.
12586 (scev_probably_wraps_p): Factor loop niter related code into
12587 loop_exits_before_overflow.
12588 (free_numbers_of_iterations_estimates_loop): Free control ivs.
12589 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
12591 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
12593 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
12594 the target doesn't belong to the current function.
12596 2015-06-02 Marek Polacek <polacek@redhat.com>
12598 PR middle-end/66345
12599 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
12600 get_maxval_strlen does not produce an INTEGER_CST.
12602 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
12604 * config/arc/constraints.md: Use lower-case names in match_code.
12605 * config/mmix/constraints.md: Likewise.
12607 2015-06-02 Richard Biener <rguenther@suse.de>
12609 PR tree-optimization/65961
12610 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
12611 check and clarify dump message.
12612 (vect_build_slp_tree): If all children are built up from scalars
12613 build up the parent from scalars instead.
12614 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
12616 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12619 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
12620 instead of print ... .
12622 2015-06-02 Alan Modra <amodra@gmail.com>
12624 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
12627 2015-06-02 Bin Cheng <bin.cheng@arm.com>
12629 PR tree-optimization/52563
12630 PR tree-optimization/62173
12631 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
12632 (alloc_iv, set_iv): New parameter.
12633 (determine_biv_step): Delete.
12634 (find_bivs): Inline original determine_biv_step. Pass new
12635 argument to set_iv.
12636 (idx_find_step): Use no_overflow information for conversion.
12637 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
12638 resolve_mixers handle folded_casts.
12639 (instantiate_scev_name): Change bool parameter to bool pointer.
12640 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
12641 (instantiate_array_ref, instantiate_scev_not): Ditto.
12642 (instantiate_scev_3, instantiate_scev_2): Ditto.
12643 (instantiate_scev_1, instantiate_scev_r): Ditto.
12644 (instantiate_scev_convert, ): Change parameter. Pass argument
12645 to chrec_convert_aggressive.
12646 (instantiate_scev): Change argument.
12647 (resolve_mixers): New parameter and set it.
12648 (scev_const_prop): New argument.
12649 * tree-scalar-evolution.h (resolve_mixers): New parameter.
12650 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
12652 (chrec_convert): New parameter. Move definition below.
12653 (chrec_convert_aggressive): New parameter and set it. Call
12654 convert_affine_scev.
12655 * tree-chrec.h (chrec_convert): New parameter.
12656 (chrec_convert_aggressive): Ditto.
12658 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
12660 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
12661 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
12662 the LHS of a no-return call if its type has variable size.
12663 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
12664 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
12666 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
12668 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
12669 * config.in: Regenerate.
12671 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
12673 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
12674 consecutive accesses within outer-loop with force_vectorize
12675 for references with zero step in inner-loop.
12677 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
12679 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
12680 rather than from gcc/build directory.
12682 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
12685 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
12686 for __sync memory models, emit initial loads and final barriers as
12689 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
12692 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
12693 (aarch64_split_atomic_op): Check for __sync memory models, emit
12694 appropriate initial loads and final barriers.
12696 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
12698 * Makefile.in: Fix gcov dependencies that should
12699 not point to a build folder.
12701 2015-06-01 Richard Biener <rguenther@suse.de>
12704 2015-05-29 Richard Biener <rguenther@suse.de>
12706 PR tree-optimization/66314
12707 * tree-ssa-threadupdate.c (create_block_for_threading): Add
12708 parameter that says which loop the new block belongs to.
12709 (ssa_create_duplicates): Blocks duplicated for the threaded
12710 path belong to the loop of the thread destination.
12712 2015-06-01 Martin Liska <mliska@suse.cz>
12714 * sched-deps.c: Include pool-alloc.h before
12715 cselib.h header file is included.
12717 2015-06-01 Richard Biener <rguenther@suse.de>
12719 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
12722 2015-06-01 Martin Liska <mliska@suse.cz>
12724 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
12725 a function local variable.
12727 2015-06-01 Martin Liska <mliska@suse.cz>
12729 * alloc-pool.c (create_alloc_pool): Remove.
12730 (empty_alloc_pool): Likewise.
12731 (free_alloc_pool): Likewise.
12732 (free_alloc_pool_if_empty): Likewise.
12733 (pool_alloc): Likewise.
12734 (pool_free): Likewise.
12735 * alloc-pool.h: Remove old declarations.
12737 2015-06-01 Martin Liska <mliska@suse.cz>
12739 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
12740 (ira_create_object): Likewise.
12741 (ira_create_allocno): Likewise.
12742 (ira_create_live_range): Likewise.
12743 (copy_live_range): Likewise.
12744 (ira_finish_live_range): Likewise.
12745 (ira_free_allocno_costs): Likewise.
12746 (finish_allocno): Likewise.
12747 (finish_allocnos): Likewise.
12748 (initiate_prefs): Likewise.
12749 (ira_create_pref): Likewise.
12750 (finish_pref): Likewise.
12751 (finish_prefs): Likewise.
12752 (initiate_copies): Likewise.
12753 (ira_create_copy): Likewise.
12754 (finish_copy): Likewise.
12755 (finish_copies): Likewise.
12756 (finish_prefs): Likewise.
12758 2015-06-01 Martin Liska <mliska@suse.cz>
12760 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
12761 (allocate_and_init_ipcp_value): Likewise.
12762 (ipcp_lattice::add_value): Likewise.
12763 (merge_agg_lats_step): Likewise.
12764 (ipcp_driver): Likewise.
12765 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
12766 (ipa_free_all_structures_after_iinln): Likewise.
12767 * ipa-prop.h: Likewise.
12769 2015-06-01 Martin Liska <mliska@suse.cz>
12771 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
12773 (set_hint_predicate): Likewise.
12774 (inline_summary_alloc): Likewise.
12775 (reset_inline_edge_summary): Likewise.
12776 (reset_inline_summary): Likewise.
12777 (set_cond_stmt_execution_predicate): Likewise.
12778 (set_switch_stmt_execution_predicate): Likewise.
12779 (compute_bb_predicates): Likewise.
12780 (estimate_function_body_sizes): Likewise.
12781 (inline_free_summary): Likewise.
12783 2015-06-01 Martin Liska <mliska@suse.cz>
12785 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
12786 (ipa_edge_duplication_hook): Likewise.
12787 (ipa_free_all_structures_after_ipa_cp): Likewise.
12788 (ipa_free_all_structures_after_iinln): Likewise.
12790 2015-06-01 Martin Liska <mliska@suse.cz>
12792 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
12793 (ipa_profile_generate_summary): Likewise.
12794 (ipa_profile_read_summary): Likewise.
12795 (ipa_profile): Likewise.
12797 2015-06-01 Martin Liska <mliska@suse.cz>
12799 * tree-ssa-structalias.c (new_var_info): Use new type-based
12801 (new_constraint): Likewise.
12802 (init_alias_vars): Likewise.
12803 (delete_points_to_sets): Likewise.
12805 2015-06-01 Martin Liska <mliska@suse.cz>
12807 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
12808 (free_strinfo): Likewise.
12809 (pass_strlen::execute): Likewise.
12811 2015-06-01 Martin Liska <mliska@suse.cz>
12813 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
12815 (vn_reference_insert_pieces): Likewise.
12816 (vn_phi_insert): Likewise.
12817 (visit_reference_op_call): Likewise.
12818 (copy_phi): Likewise.
12819 (copy_reference): Likewise.
12820 (process_scc): Likewise.
12821 (allocate_vn_table): Likewise.
12822 (free_vn_table): Likewise.
12824 2015-06-01 Martin Liska <mliska@suse.cz>
12826 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
12828 (add_repeat_to_ops_vec): Likewise.
12829 (get_ops): Likewise.
12830 (maybe_optimize_range_tests): Likewise.
12831 (init_reassoc): Likewise.
12832 (fini_reassoc): Likewise.
12834 2015-06-01 Martin Liska <mliska@suse.cz>
12836 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
12838 (bitmap_set_new): Likewise.
12839 (get_or_alloc_expr_for_constant): Likewise.
12840 (get_or_alloc_expr_for): Likewise.
12841 (phi_translate_1): Likewise.
12842 (compute_avail): Likewise.
12843 (init_pre): Likewise.
12844 (fini_pre): Likewise.
12846 2015-06-01 Martin Liska <mliska@suse.cz>
12848 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
12849 (delete_dep_node): Likewise.
12850 (create_deps_list): Likewise.
12851 (free_deps_list): Likewise.
12852 (sched_deps_init): Likewise.
12853 (sched_deps_finish): Likewise.
12855 2015-06-01 Martin Liska <mliska@suse.cz>
12857 * regcprop.c (free_debug_insn_changes): Use new type-based
12859 (replace_oldest_value_reg): Likewise.
12860 (pass_cprop_hardreg::execute): Likewise.
12862 2015-06-01 Martin Liska <mliska@suse.cz>
12864 * ira-build.c (initiate_cost_vectors): Use new type-based
12866 (ira_allocate_cost_vector): Likewise.
12867 (ira_free_cost_vector): Likewise.
12868 (finish_cost_vectors): Likewise.
12870 2015-06-01 Martin Liska <mliska@suse.cz>
12872 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
12874 (free_sched_pools): Likewise.
12875 * sel-sched-ir.h (_list_alloc): Likewise.
12876 (_list_remove): Likewise.
12878 2015-06-01 Martin Liska <mliska@suse.cz>
12880 * stmt.c (add_case_node): Use new type-based pool allocator.
12881 (expand_case): Likewise.
12882 (expand_sjlj_dispatch_table): Likewise.
12884 2015-06-01 Martin Liska <mliska@suse.cz>
12886 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
12887 (free_bb): Likewise.
12888 (pass_cse_reciprocals::execute): Likewise.
12890 2015-06-01 Martin Liska <mliska@suse.cz>
12892 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
12893 (sra_deinitialize) Likewise.
12894 (create_access_1) Likewise.
12895 (build_accesses_from_assign) Likewise.
12896 (create_artificial_child_access) Likewise.
12898 2015-06-01 Martin Liska <mliska@suse.cz>
12900 * dse.c (get_group_info):Use new type-based pool allocator.
12901 (dse_step0) Likewise.
12902 (free_store_info) Likewise.
12903 (delete_dead_store_insn) Likewise.
12904 (free_read_records) Likewise.
12905 (record_store) Likewise.
12906 (replace_read) Likewise.
12907 (check_mem_read_rtx) Likewise.
12908 (scan_insn) Likewise.
12909 (dse_step1) Likewise.
12910 (dse_step7) Likewise.
12912 2015-06-01 Martin Liska <mliska@suse.cz>
12914 * df-scan.c (struct df_scan_problem_data):Use new type-based
12916 (df_scan_free_internal) Likewise.
12917 (df_scan_alloc) Likewise.
12918 (df_grow_reg_info) Likewise.
12919 (df_free_ref) Likewise.
12920 (df_insn_create_insn_record) Likewise.
12921 (df_mw_hardreg_chain_delete) Likewise.
12922 (df_insn_info_delete) Likewise.
12923 (df_free_collection_rec) Likewise.
12924 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
12925 (df_sort_and_compress_mws) Likewise.
12926 (df_ref_create_structure) Likewise.
12927 (df_ref_record) Likewise.
12929 2015-06-01 Martin Liska <mliska@suse.cz>
12931 * df-problems.c (df_chain_create):Use new type-based pool allocator.
12932 (df_chain_unlink_1) Likewise.
12933 (df_chain_unlink) Likewise.
12934 (df_chain_remove_problem) Likewise.
12935 (df_chain_alloc) Likewise.
12936 (df_chain_free) Likewise.
12937 * df.h (struct dataflow) Likewise.
12939 2015-06-01 Martin Liska <mliska@suse.cz>
12941 * cselib.c (new_elt_list):Use new type-based pool allocator.
12942 (new_elt_loc_list) Likewise.
12943 (unchain_one_elt_list) Likewise.
12944 (unchain_one_elt_loc_list) Likewise.
12945 (unchain_one_value) Likewise.
12946 (new_cselib_val) Likewise.
12947 (cselib_init) Likewise.
12948 (cselib_finish) Likewise.
12950 2015-06-01 Martin Liska <mliska@suse.cz>
12952 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
12953 (sh_reorg) Likewise.
12955 2015-06-01 Martin Liska <mliska@suse.cz>
12957 * cfg.c (initialize_original_copy_tables):Use new type-based
12959 (free_original_copy_tables) Likewise.
12960 (copy_original_table_clear) Likewise.
12961 (copy_original_table_set) Likewise.
12963 2015-06-01 Martin Liska <mliska@suse.cz>
12965 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
12967 (asan_mem_ref_new) Likewise.
12968 (free_mem_ref_resources) Likewise.
12970 2015-06-01 Martin Liska <mliska@suse.cz>
12972 * var-tracking.c (variable_htab_free):Use new type-based
12974 (attrs_list_clear) Likewise.
12975 (attrs_list_insert) Likewise.
12976 (attrs_list_copy) Likewise.
12977 (shared_hash_unshare) Likewise.
12978 (shared_hash_destroy) Likewise.
12979 (unshare_variable) Likewise.
12980 (var_reg_delete_and_set) Likewise.
12981 (var_reg_delete) Likewise.
12982 (var_regno_delete) Likewise.
12983 (drop_overlapping_mem_locs) Likewise.
12984 (variable_union) Likewise.
12985 (insert_into_intersection) Likewise.
12986 (canonicalize_values_star) Likewise.
12987 (variable_merge_over_cur) Likewise.
12988 (dataflow_set_merge) Likewise.
12989 (remove_duplicate_values) Likewise.
12990 (variable_post_merge_new_vals) Likewise.
12991 (dataflow_set_preserve_mem_locs) Likewise.
12992 (dataflow_set_remove_mem_locs) Likewise.
12993 (variable_from_dropped) Likewise.
12994 (variable_was_changed) Likewise.
12995 (set_slot_part) Likewise.
12996 (clobber_slot_part) Likewise.
12997 (delete_slot_part) Likewise.
12998 (loc_exp_insert_dep) Likewise.
12999 (notify_dependents_of_changed_value) Likewise.
13000 (emit_notes_for_differences_1) Likewise.
13001 (vt_emit_notes) Likewise.
13002 (vt_initialize) Likewise.
13003 (vt_finalize) Likewise.
13005 2015-06-01 Martin Liska <mliska@suse.cz>
13007 * ira-color.c (init_update_cost_records):Use new type-based
13009 (get_update_cost_record) Likewise.
13010 (free_update_cost_record_list) Likewise.
13011 (finish_update_cost_records) Likewise.
13012 (initiate_cost_update) Likewise.
13014 2015-06-01 Martin Liska <mliska@suse.cz>
13016 * lra.c (init_insn_regs): Use new type-based pool allocator.
13017 (new_insn_reg) Likewise.
13018 (free_insn_reg) Likewise.
13019 (free_insn_regs) Likewise.
13020 (finish_insn_regs) Likewise.
13021 (init_insn_recog_data) Likewise.
13022 (init_reg_info) Likewise.
13023 (finish_reg_info) Likewise.
13024 (lra_free_copies) Likewise.
13025 (lra_create_copy) Likewise.
13026 (invalidate_insn_data_regno_info) Likewise.
13028 2015-06-01 Martin Liska <mliska@suse.cz>
13030 * lra-lives.c (free_live_range): Use new type-based pool allocator.
13031 (free_live_range_list) Likewise.
13032 (create_live_range) Likewise.
13033 (copy_live_range) Likewise.
13034 (lra_merge_live_ranges) Likewise.
13035 (remove_some_program_points_and_update_live_ranges) Likewise.
13036 (lra_live_ranges_init) Likewise.
13037 (lra_live_ranges_finish) Likewise.
13039 2015-06-01 Martin Liska <mliska@suse.cz>
13041 * et-forest.c (et_new_occ): Use new type-based pool allocator.
13042 (et_new_tree): Likewise.
13043 (et_free_tree): Likewise.
13044 (et_free_tree_force): Likewise.
13045 (et_free_pools): Likewise.
13046 (et_split): Likewise.
13048 2015-06-01 Martin Liska <mliska@suse.cz>
13050 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
13052 * alloc-pool.h (pool_allocator::pool_allocator): New function.
13053 (pool_allocator::release): Likewise.
13054 (inline pool_allocator::release_if_empty): Likewise.
13055 (inline pool_allocator::~pool_allocator): Likewise.
13056 (pool_allocator::allocate): Likewise.
13057 (pool_allocator::remove): Likewise.
13059 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
13061 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
13064 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
13066 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
13068 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
13069 (arm_macro_fusion_p): Likewise.
13070 (arm_macro_fusion_pair_p): Likewise.
13072 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
13074 * config/aarch64/aarch64-protos.h (tune_params): Rename
13075 fuseable_ops to fusible_ops.
13076 * config/aarch64/aarch64.c (generic_tunings): Rename
13077 fuseable_ops to fusible_ops.
13078 (cortexa53_tunings): Likewise.
13079 (cortexa57_tunings): Likewise.
13080 (thunderx_tunings): Likewise.
13081 (xgene1_tunings): Likewise.
13082 (aarch64_macro_fusion_p): Likewise.
13083 (aarch64_macro_fusion_pair_p): Likewise.
13085 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
13087 * config/s390/driver-native.c: New file.
13088 * config/s390/x-native: New file.
13089 * config.host: Add new files for s390.
13090 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
13092 * config.gcc: Likewise.
13093 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
13094 * config/s390/s390-opts.h (enum processor_type): Ditto.
13095 * config/s390/s390.c (s390_option_override): Catch unhandled
13098 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
13101 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
13102 redirection for instrumented calls.
13103 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
13104 (append_compiler_options): Append -fcheck-pointer-bounds.
13105 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
13106 (chkp_redirect_edge): New.
13107 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
13108 (chkp_redirect_edge): New.
13110 2015-06-01 Richard Biener <rguenther@suse.de>
13112 PR tree-optimization/66280
13113 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
13116 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13118 * config/aarch64/aarch64.md
13119 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
13122 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
13124 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
13125 Remove obsolete kludge.
13127 2015-06-01 Richard Biener <rguenther@suse.de>
13129 * tree-ssa-reassoc.c (get_rank): Simplify.
13131 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
13133 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
13134 * configure: Regenerated.
13136 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
13138 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
13139 issue (add space between string literal and macro).
13140 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
13142 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
13144 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
13145 implict or explicit -fPIE or -fpie.
13147 2015-05-30 Mike Frysinger <vapier@gentoo.org>
13149 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
13151 2015-05-28 DJ Delorie <dj@redhat.com>
13153 * expmed.c (extract_bit_field_1): Avoid clobbering a
13154 yet-to-be-used base/index register.
13156 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
13158 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
13159 (alias_stats): Add num_universal.
13160 (alias_set_subset_of): Special case pointers; be ready for NULL
13162 (alias_sets_conflict_p): Special case pointers; be ready for NULL
13164 (init_alias_set_entry): Break out from ...
13165 (record_alias_subset): ... here; propagate new fields;
13166 allocate children only when really needed.
13167 (get_alias_set): Do less generous pointer globbing.
13168 (dump_alias_stats_in_alias_c): Update statistics.
13170 2015-05-30 Alan Modra <amodra@gmail.com>
13172 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
13173 correct block for use of r12.
13174 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
13176 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
13179 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
13182 2015-05-29 Jakub Jelinek <jakub@redhat.com>
13184 PR tree-optimization/66142
13185 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
13186 virtual phis that feed themselves.
13188 2015-05-29 Richard Biener <rguenther@suse.de>
13190 PR tree-optimization/66314
13191 * tree-ssa-threadupdate.c (create_block_for_threading): Add
13192 parameter that says which loop the new block belongs to.
13193 (ssa_create_duplicates): Blocks duplicated for the threaded
13194 path belong to the loop of the thread destination.
13196 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13198 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
13199 to cleanup-saved-temps.
13200 * doc/sourcebuild.texi (Clean up generated test files): Expand
13202 (dg-keep-saved-temps): Document new proc.
13203 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
13204 cleanup-saved-temps): Remove.
13206 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
13208 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
13209 gcc_AC_CHECK_DECLS.
13210 * configure: Regenerate.
13212 2015-05-28 Mike Frysinger <vapier@gentoo.org>
13214 * config/nios2/linux.h (CPP_SPEC): Define.
13216 2015-05-28 Mike Frysinger <vapier@gentoo.org>
13218 * config/microblaze/linux.h (CPP_SPEC): Define.
13220 2015-05-28 Mike Frysinger <vapier@gentoo.org>
13222 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
13223 -pthread is specified.
13225 2015-05-28 Richard Biener <rguenther@suse.de>
13227 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
13228 (vect_fixup_scalar_cycles_with_patterns): Likewise.
13229 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
13230 after pattern recog.
13231 (vect_create_epilog_for_reduction): Properly handle reductions
13233 (vectorizable_reduction): Likewise.
13234 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
13236 (vect_get_constant_vectors): Create the correct number of
13237 initial values for reductions.
13238 (vect_schedule_slp_instance): Handle reduction chains that are
13239 type changing properly.
13240 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
13242 2015-05-28 Richard Biener <rguenther@suse.de>
13244 PR tree-optimization/66142
13245 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
13246 values better in memcpy destination handling. Handle non-aliasing
13249 2015-05-28 Lawrence Velázquez <vq@larryv.me>
13252 * config/darwin-c.c (version_components): New global enum.
13253 (parse_version, version_as_legacy_macro)
13254 (version_as_modern_macro, macosx_version_as_macro): New functions.
13255 (version_as_macro): Remove.
13256 (darwin_cpp_builtins): Use new function.
13258 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
13260 * builtins.c (expand_builtin_acc_on_device): Mark parameters
13261 with ATTRIBUTE_UNUSED.
13263 2015-05-28 Julian Brown <julian@codesourcery.com>
13267 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
13268 sequence for !ACCEL_COMPILER.
13270 2015-05-28 Nick Clifton <nickc@redhat.com>
13272 * config/rx/rx.c (push_regs): New function. Extracts code from...
13273 (rx_expand_prologue): ... here. Use push_regs to push even small
13274 spans of registers.
13275 (pop_regs): New function.
13276 (rx_expand_epilogue): Use pop_regs to pop even small spans of
13279 2015-05-28 Richard Biener <rguenther@suse.de>
13281 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
13283 (SLP_INSTANCE_BODY_COST_VEC): Remove.
13284 (vect_update_slp_costs_according_to_vf): Likewise.
13285 (vect_slp_analyze_operations): Update prototype.
13286 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
13287 vect_update_slp_costs_according_to_vf, adjust.
13288 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
13289 (vect_analyze_slp_cost_1): Likewise.
13290 (vect_analyze_slp_cost): Likewise. Properly deal with
13291 widening reduction ops. Commit body costs.
13292 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
13293 cost for loops from here.
13294 (vect_slp_analyze_operations): But do it from here when
13295 the vectorization factor is known and stmts are analyzed.
13296 (vect_bb_vectorization_profitable_p): Simplify.
13297 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
13298 (vect_update_slp_costs_according_to_vf): Remove.
13300 2015-05-27 Magnus Granberg <zorry@gentoo.org>
13301 H.J. Lu <hongjiu.lu@intel.com>
13303 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
13304 (BUILD_CFLAGS): Likewise.
13305 (BUILD_CXXFLAGS): Likewise.
13306 (LINKER): Add @NO_PIE_FLAG@.
13307 (BUILD_LDFLAGS): Likewise.
13308 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
13309 --enable-default-pie.
13310 * common.opt (fPIE): Initialize to -1.
13312 (no-pie): New option.
13313 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
13314 * configure.ac: Add --enable-default-pie.
13315 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
13316 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
13317 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
13318 * gcc.c (NO_PIE_SPEC): New.
13319 (PIE_SPEC): Likewise.
13320 (NO_FPIE1_SPEC): Likewise.
13321 (FPIE1_SPEC): Likewise.
13322 (NO_FPIE2_SPEC): Likewise.
13323 (FPIE2_SPEC): Likewise.
13324 (NO_FPIE2_SPEC): Likewise.
13325 (FPIE_SPEC): Likewise.
13326 (NO_FPIE_SPEC): Likewise.
13327 (NO_FPIC1_SPEC): Likewise.
13328 (FPIC1_SPEC): Likewise.
13329 (NO_FPIC2_SPEC): Likewise.
13330 (FPIC2_SPEC): Likewise.
13331 (NO_FPIC2_SPEC): Likewise.
13332 (FPIC_SPEC): Likewise.
13333 (NO_FPIC_SPEC): Likewise.
13334 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
13335 (FPIE1_OR_FPIC1_SPEC): Likewise.
13336 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
13337 (FPIE2_OR_FPIC2_SPEC): Likewise.
13338 (NO_FPIE_AND_FPIC_SPEC): Likewise.
13339 (FPIE_OR_FPIC_SPEC): Likewise.
13340 (LD_PIE_SPEC): Likewise.
13341 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
13342 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
13343 * config/darwin.h (PIE_SPEC): Renamed to ...
13344 (DARWIN_PIE_SPEC): This.
13345 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
13346 * config/darwin9.h (PIE_SPEC): Renamed to ...
13347 (DARWIN_PIE_SPEC): This.
13348 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
13349 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
13350 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
13351 FPIE2_OR_FPIC2_SPEC.
13352 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
13353 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
13354 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
13355 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13356 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13357 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13358 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
13359 * config/m32r/m32r.h (ASM_SPEC): Likewise.
13360 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
13361 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13362 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
13363 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
13364 * config/sparc/linux.h (ASM_SPEC): Likewise.
13365 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13366 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
13367 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
13368 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13369 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13370 * config/sparc/sparc.h (ASM_SPEC): Likewise.
13371 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
13372 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
13373 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
13374 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
13375 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
13376 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
13377 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
13378 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
13379 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
13380 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
13381 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
13382 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
13383 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13384 * config/vax/linux.h (ASM_SPEC): Likewise.
13385 * doc/install.texi: Document --enable-default-pie.
13386 * doc/invoke.texi: Document -no-pie.
13387 * config.in: Regenerated.
13388 * configure: Likewise.
13390 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
13392 PR rtl-optimization/66168
13393 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
13394 can_move_invariant_reg.
13396 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
13399 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
13400 REG_EQUAL note when doing insert.
13402 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
13403 instead of "%d" for 'o' operand.
13405 2015-05-27 Nathan Sidwell <nathan@acm.org>
13408 * tree.c (build_pointer_type_for_mode): Canonical type does not
13409 inherit can_alias_all.
13410 (build_reference_type_for_mode): Likewise.
13412 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
13414 * expr.h (array_at_struct_end_p): Move to...
13415 (array_ref_element_size): Likewise.
13416 (component_ref_field_offset): Likewise.
13417 * tree.h (array_ref_element_size): ...here.
13418 (array_at_struct_end_p): Likewise.
13419 (component_ref_field_offset): Likewise.
13420 * expr.c (array_ref_element_size): Move to...
13421 (array_ref_low_bound): Likewise.
13422 (array_at_struct_end_p): Likewise.
13423 (array_ref_up_bound): Likewise.
13424 (component_ref_field_offset): Likewise.
13425 * tree.c (array_ref_element_size): ...here.
13426 (array_ref_low_bound): Likewise.
13427 (array_ref_up_bound): Likewise.
13428 (array_at_struct_end_p): Likewise.
13429 (component_ref_field_offset): Likewise.
13431 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
13432 Szabolcs Nagy <szabolcs.nagy@arm.com>
13434 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
13436 2015-05-27 Jason Merrill <jason@redhat.com>
13439 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
13440 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
13441 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
13443 2015-05-22 Aditya Kumar <hiraditya@msn.com>
13445 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
13448 * statistics.c (statistics_fini_pass): Print pass name.
13450 2015-05-27 Richard Biener <rguenther@suse.de>
13452 PR tree-optimization/66272
13454 2014-08-15 Richard Biener <rguenther@suse.de>
13456 PR tree-optimization/62031
13457 * tree-data-ref.c (dr_analyze_indices): Do not set
13458 DR_UNCONSTRAINED_BASE.
13459 (dr_may_alias_p): All indirect accesses have to go the
13460 formerly DR_UNCONSTRAINED_BASE path.
13461 * tree-data-ref.h (struct indices): Remove
13462 unconstrained_base member.
13463 (DR_UNCONSTRAINED_BASE): Remove.
13465 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
13467 * dwarf2out.c: Remove block_map.
13468 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
13469 (gen_lexical_block_die): Same.
13470 (dwarf2out_function_decl): Remove block_map use.
13471 (dwarf2out_c_finalize): Same.
13472 * tree-core.h (struct tree_block): Add die field.
13473 * tree.h (BLOCK_DIE): New.
13475 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13478 * expr.c (memory_load_overlap): New function.
13479 (emit_push_insn): When pushing partial args to the stack would
13480 clobber the register part load the overlapping part into a pseudo
13481 and put it into the hard reg after pushing. Change return type
13482 to bool. Add bool argument.
13483 * expr.h (emit_push_insn): Change return type to bool.
13485 * calls.c (expand_call): Cancel sibcall optimization when encountering
13486 partial argument on targets with ARGS_GROW_DOWNWARD and
13487 !STACK_GROWS_DOWNWARD.
13488 (emit_library_call_value_1): Update callsite of emit_push_insn.
13489 (store_one_arg): Likewise.
13491 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
13493 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
13495 2015-05-27 Martin Liska <mliska@suse.cz>
13497 * Makefile.in: Add additional dependencies related to memory report
13499 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
13500 * bitmap.c (struct bitmap_descriptor_d): Remove.
13501 (struct loc): Likewise.
13502 (struct bitmap_desc_hasher): Likewise.
13503 (bitmap_desc_hasher::hash): Likewise.
13504 (bitmap_desc_hasher::equal): Likewise.
13505 (get_bitmap_descriptor): Likewise.
13506 (bitmap_register): User new memory descriptor API.
13507 (register_overhead): Likewise.
13508 (bitmap_find_bit): Register nsearches and search_iter statistics.
13509 (struct bitmap_output_info): Remove.
13510 (print_statistics): Likewise.
13511 (dump_bitmap_statistics): Use new memory descriptor.
13512 * bitmap.h (struct bitmap_usage): New class.
13513 * genmatch.c: Extend header file inclusion.
13514 * genpreds.c: Likewise.
13515 * ggc-common.c (struct ggc_usage): New class.
13516 (struct ggc_loc_desc_hasher): Remove.
13517 (ggc_loc_desc_hasher::hash): Likewise.
13518 (ggc_loc_desc_hasher::equal): Likewise.
13519 (struct ggc_ptr_hash_entry): Likewise.
13520 (struct ptr_hash_hasher): Likewise.
13521 (ptr_hash_hasher::hash): Likewise.
13522 (ptr_hash_hasher::equal): Likewise.
13523 (make_loc_descriptor): Likewise.
13524 (ggc_prune_ptr): Likewise.
13525 (dump_ggc_loc_statistics): Use new memory descriptor.
13526 (ggc_record_overhead): Likewise.
13527 (ggc_free_overhead): Likewise.
13528 (final_cmp_statistic): Remove.
13529 (cmp_statistic): Likewise.
13530 (ggc_add_statistics): Liekwise.
13531 (ggc_prune_overhead_list): Likewise.
13532 * hash-map-traits.h: New file.
13533 * hash-map.h (struct default_hashmap_traits): Move the traits to a
13534 separate header file.
13535 * hash-set.h: Pass memory statistics info to ctor.
13536 * hash-table.c (void dump_hash_table_loc_statistics): New function.
13537 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
13538 (hash_table::~hash_table): Register memory release operation.
13539 (hash_table::alloc_entries): Handle memory allocation operation.
13540 (hash_table::expand): Likewise.
13541 * inchash.c (iterative_hash_hashval_t): Move implementation to header
13543 (iterative_hash_host_wide_int): Likewise.
13544 * inchash.h (class hash): Likewise.
13545 * mem-stats-traits.h: New file.
13546 * mem-stats.h: New file.
13547 (mem_location): Add new class.
13548 (mem_usage): Likewise.
13549 (mem_alloc_description): Likewise.
13550 * sese.c: Add new header file inclusision.
13551 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
13553 * tree-sra.c: Add new header file inclusision.
13554 * vec.c (struct vec_descriptor): Remove.
13555 (hash_descriptor): Likewise.
13556 (struct vec_usage): Likewise.
13557 (struct ptr_hash_entry): Likewise.
13558 (hash_ptr): Likewise.
13559 (eq_ptr): Likewise.
13560 (vec_prefix::register_overhead): Use new memory descriptor API.
13561 (vec_prefix::release_overhead): Likewise.
13562 (add_statistics): Remove.
13563 (dump_vec_loc_statistics): Use new memory descriptor API.
13564 * vec.h (struct vec_prefix): Likewise.
13565 (va_heap::reserve): Likewise.
13566 (va_heap::release): Likewise.
13567 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
13569 2015-05-27 Richard Biener <rguenther@suse.de>
13571 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
13572 earlier and remove ??? comment.
13573 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
13574 and got called from loop analysis bail out. Always pass the SLP
13575 node to the vectorizable_* functions.
13576 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
13577 the premature SLP check here.
13578 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
13579 detected SLP stmts.
13580 (vect_detect_hybrid_slp_1): Likewise.
13582 2015-05-26 Jeff Law <law@redhat.com>
13584 * combine.c (find_split_point): Verify that the shift count is a
13585 constant when choosing (plus (ashift ...)) as a split point.
13587 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
13588 No functional changes.
13590 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
13592 * ipa-polymorphic-call.c
13593 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
13594 case when call target is already known.
13596 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
13599 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
13600 take into account the case that operands[1] and operands[2]
13601 are the same register.
13603 2015-05-26 Michael Matz <matz@suse.de>
13605 PR middle-end/66251
13607 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
13609 (vect_create_vectorized_demotion_stmts): Always set
13610 STMT_VINFO_VEC_STMT, also with SLP.
13611 (vectorizable_store): Handle strided group stores.
13613 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13616 * config/aarch64/aarch64.md
13617 (*adds_shift_imm_<mode>): New pattern.
13618 (*subs_shift_imm_<mode>): Likewise.
13619 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
13620 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
13621 (*add_uxt<mode>_shift2): Likewise.
13622 (*add_uxtsi_shift2_uxtw): Likewise.
13623 (*sub_uxt<mode>_shift2): Likewise.
13624 (*sub_uxtsi_shift2_uxtw): Likewise.
13626 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
13628 * config/rs6000/constraints.md (Y, U): Use match_test.
13630 2015-05-26 Christian Bruel <christian.bruel@st.com>
13633 * config/arm/arm.c (arm_option_check_internal)
13634 (arm_option_params_internal): Check opts->target_flags to set macros.
13635 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
13636 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
13637 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
13638 (builtin_define): Replaced with def_or_undef_macro.
13639 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
13640 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
13641 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
13642 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
13643 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
13644 (TARGET_ARM_FEATURE_LDREX_P)
13645 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
13646 * config/arm/arm-c.c (def_or_undef_macro): New function.
13647 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
13649 2015-05-26 Christian Bruel <christian.bruel@st.com>
13651 * c-common.h (builtin_define_with_int_value)
13652 (builtin_define_type_sizeof): Declare.
13653 * c-cppbuiltin.c (builtin_define_with_int_value)
13654 (builtin_define_type_sizeof): Externalize.
13655 (builtin_define_std): Cleanup declaration.
13656 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
13657 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
13658 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
13659 (builtin_define, builtin_assert): New macros.
13661 2015-05-26 Richard Biener <rguenther@suse.de>
13663 PR tree-optimization/66142
13664 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
13665 MEM_REFs for the same base address.
13667 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13670 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
13672 2015-05-26 Jason Merrill <jason@redhat.com>
13674 * configure.ac: Set CXXFLAGS for ISL test.
13675 * configure: Regenerate.
13677 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
13678 strstr and basename.
13679 * configure: Regenerate.
13681 2015-05-26 Richard Biener <rguenther@suse.de>
13683 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
13684 X % C -> X & (C - 1) for C being a power-of two to ...
13685 * match.pd: ... patterns.
13687 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
13689 * match.pd (swapped_tcc_comparison): New operator list.
13690 (-A CMP -B): New simplification.
13691 * fold-const.c (fold_comparison): Remove corresponding code.
13693 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
13695 * caller-save.c (init_caller_save): Base temporary register numbers
13696 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
13697 * cfgloopanal.c (init_set_costs): Likewise.
13698 * dojump.c (prefer_and_bit_test): Likewise.
13699 * expr.c (init_expr_target): Likewise.
13700 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13701 * lower-subreg.c (init_lower_subreg): Likewise.
13702 * postreload.c (reload_cse_regs_1): Likewise.
13704 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
13706 * gensupport.h (compute_test_codes): Declare.
13707 * gensupport.c (compute_predicate_codes): Rename to...
13708 (compute_test_codes): ...this. Generalize error message.
13709 (process_define_predicate): Update accordingly.
13710 * genpreds.c (compute_maybe_allows): Delete.
13711 (add_constraint): Use compute_test_codes to determine whether
13712 something can accept a SUBREG, REG or MEM.
13714 2015-05-26 Torvald Riegel <triegel@redhat.com>
13716 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
13717 'memory model' to align with C++11; fix description of memory orders;
13720 2015-05-26 Richard Biener <rguenther@suse.de>
13722 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
13723 (vect_analyze_loop_operations): ... here. Remove slp parameter,
13724 detect whether we apply SLP. Remove call to
13725 vect_update_slp_costs_according_to_vf.
13726 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
13727 vect_update_slp_costs_according_to_vf from here. Dispatch
13728 to vect_slp_analyze_operations to analyze SLP stmts.
13729 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
13730 unused bb_vec_info parameter, adjust assert.
13731 (vect_slp_analyze_operations): Pass in the slp instance tree
13732 instead of bb_vec_info.
13733 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
13734 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
13736 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
13738 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
13739 Q_REGS. Expand comment.
13740 (REG_CLASS_NAMES): Ditto.
13741 (REG_CLASS_CONTENTS): Ditto.
13743 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
13746 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
13747 when LEGACY_INT_REGNO_P is processed.
13749 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
13751 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
13753 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13755 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
13756 register if not marked dead/unused, before return.
13758 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
13761 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
13762 is set; check for assembler name at LTO time.
13763 (type_in_anonymous_namespace): Remove hacks, check that all
13764 anonymous types are called "<anon>"
13765 (odr_type_p): Simplify; add check for "<anon>"
13766 (odr_subtypes_equivalent): Add odr_type_p check.
13767 * tree.c (need_assembler_name_p): Even anonymous namespace needs
13770 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
13772 * ipa-utils.h (method_class_type): Remove.
13773 * cgraphunit.c (walk_polymorphic_call_targets): Use
13774 TYPE_METHOD_BASETYPE.
13775 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
13776 on main variants only.
13777 (method_class_type): Remove.
13778 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
13779 (build_type_inheritance_graph): Likewise.
13780 * ipa-icf.c (sem_function::equals_wpa): Likewise.
13781 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
13782 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
13784 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
13786 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
13787 is_typedef_decl, typedef_variant_p): Constify.
13788 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
13789 is_typedef_decl, typedef_variant_p): Constify.
13791 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13793 * defaults.h (gen_tablejump): New function.
13794 (HAVE_tablejump): Add default value.
13796 * stmt.c: Likewise.
13798 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13800 * defaults.h (gen_store_multiple): New function.
13801 (HAVE_store_multiple): Add default value.
13802 * expr.c (move_block_from_reg): Adjust.
13804 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13806 * defaults.h (gen_load_multiple): New function.
13807 (HAVE_load_multiple): Add default value.
13808 * expr.c (move_block_to_reg): Adjust.
13810 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13812 * defaults.h (gen_mem_signal_fence): New function.
13813 (HAVE_mem_signal_fence): Add default value.
13814 * optabs.c: Adjust.
13816 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13818 * defaults.h (gen_memory_barrier): New function.
13819 (HAVE_memory_barrier): Add default value.
13820 * optabs.c: Adjust.
13822 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13824 * defaults.h (gen_mem_thread_fence): New function.
13825 (HAVE_mem_thread_fence): Add default definition.
13826 * optabs.c: Adjust.
13828 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13830 * combine.c (find_split_point): Check the value of HAVE_lo_sum
13831 instead of if it is defined.
13832 (combine_simplify_rtx): Likewise.
13833 * lra-constraints.c (process_address_1): Likewise.
13834 * config/darwin.c: Adjust.
13835 * genconfig.c (main): Always define HAVE_lo_sum.
13837 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13839 * genmatch.c (parser::parse_operation): Reject expanding
13840 operator-list inside 'for'.
13842 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13844 * genmatch.c (parser::parse_for): Reject iterator if used as
13847 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13849 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
13850 after end of id-list.
13852 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
13854 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
13855 we do not try to compute canonical type for type that does not need
13857 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
13859 * tree.h (type_with_alias_set_p): New.
13861 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
13863 * tree.c (gimple_canonical_types_compatible_p): Do not compare
13864 function attributes.
13865 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
13867 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
13869 * Makefile.in (check_gcc_parallelize): Delete.
13870 (lang_checks_parallelized): Update comment.
13872 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
13874 PR rtl-optimization/66237
13875 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
13876 location of an "as_a" cast.
13878 2015-05-22 Jeff Law <law@redhat.com>
13880 * config/pa/pa.md (non-canonical shift-add insns): Remove.
13881 (peepholes with non-canonical RTL sources): Remove.
13882 (peepholes for indexed stores of FP regs in integer modes): Match and
13883 generate canonical RTL.
13885 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
13887 PR tree-optimization/63387
13888 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
13889 ((x ord x) & (y ord y) -> (x ord y),
13890 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
13891 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
13892 vectors like scalars.
13894 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
13896 * convert.c (convert_to_integer, convert_to_vector): Include the
13897 types in the error message.
13899 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
13901 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
13904 2015-05-22 Jeff Law <law@redhat.com>
13906 * config/pa/pa.md (integer_indexed_store splitters): Use
13907 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
13908 insns -- adjusting the constant 2nd operand accordingly.
13910 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
13911 (plus (ashift X log2) Y) if it is a split point.
13913 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
13914 out of hppa_legitimize_address to handle both forms of a multiply
13916 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
13917 Always generate the ASHIFT variant as the result is not directly
13918 used in a MEM. Update comments and refactor slightly to improve
13921 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13924 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
13925 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
13926 (aarch64_composite_type_p): Return false if given type and mode are
13927 for a short vector.
13929 2015-05-22 Richard Biener <rguenther@suse.de>
13931 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
13933 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
13934 patterns when determining whether SLP is pure.
13935 (vect_is_slp_reduction): Remove check for pattern stmts.
13936 (vect_is_simple_reduction_1): Remove dead code.
13937 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
13938 (vect_get_and_check_slp_defs): Pass in the stmt number.
13939 Allow the first def in a reduction to be not a pattern stmt when
13940 the rest of the stmts def are patterns.
13941 (vect_build_slp_tree_1): Allow tcc_expression codes like
13942 SAD_EXPR and DOT_PROD_EXPR.
13943 (vect_build_slp_tree): Adjust.
13944 (vect_analyze_slp): Refactor and move BB vect error message ...
13945 (vect_slp_analyze_bb_1): ... here.
13947 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
13949 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
13950 for CSWTCH temporary.
13952 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13954 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
13955 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
13958 2015-05-22 Richard Biener <rguenther@suse.de>
13960 PR tree-optimization/66251
13961 * tree-vect-stmts.c (vectorizable_conversion): Properly
13962 set STMT_VINFO_VEC_STMT even for the SLP case.
13964 2015-05-22 Marek Polacek <polacek@redhat.com>
13966 * doc/extend.texi: Use @pxref instead of @xref.
13968 2015-05-22 hiraditya <hiraditya@msn.com>
13970 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
13973 2015-05-22 Richard Biener <rguenther@suse.de>
13975 PR tree-optimization/65701
13976 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
13977 Move peeling cost models into one place. Peel for alignment
13978 for single loads only if an aligned load is cheaper than
13981 2015-05-22 Marek Polacek <polacek@redhat.com>
13984 * doc/extend.texi (Enumerator Attributes): New section.
13985 Document syntax of enumerator attributes.
13987 2015-05-22 Richard Biener <rguenther@suse.de>
13989 * tree-vect-loop.c (get_reduction_op): New function.
13990 (vect_model_reduction_cost): Use it, add reduc_index parameter.
13991 Make ready for BB reductions.
13992 (vect_create_epilog_for_reduction): Use get_reduction_op.
13993 (vectorizable_reduction): Init reduc_index to a valid value.
13994 Adjust vect_model_reduction_cost call.
13995 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
13996 operand for reduction defaults. Add SAD_EXPR support.
13997 Assert we have a neutral op for SLP reductions.
13998 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
13999 walking pattern stmt ops only recurse to SSA names.
14001 2015-05-22 Richard Biener <rguenther@suse.de>
14003 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
14004 assert with guard, remove check on detected reduction.
14005 (vect_recog_sad_pattern): Likewise.
14006 (vect_recog_widen_sum_pattern): Likewise.
14008 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14010 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
14011 __always_inline__ attribute.
14012 (vaesdq_u8): Likewise.
14013 (vaesmcq_u8): Likewise.
14014 (vaesimcq_u8): Likewise.
14015 (vsha1cq_u32): Likewise.
14016 (vsha1mq_u32): Likewise.
14017 (vsha1pq_u32): Likewise.
14018 (vsha1h_u32): Likewise.
14019 (vsha1su0q_u32): Likewise.
14020 (vsha1su1q_u32): Likewise.
14021 (vsha256hq_u32): Likewise.
14022 (vsha256h2q_u32): Likewise.
14023 (vsha256su0q_u32): Likewise.
14024 (vsha256su1q_u32): Likewise.
14025 (vmull_p64): Likewise.
14026 (vmull_high_p64): Likewise.
14028 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14030 * final.c (final_scan_insn): Don't check HAVE_peephole with the
14032 * output.h: Likewise.
14033 * genconfig.c (main): Alwways define HAVE_peephole.
14034 * genpeep.c: Don't emit checks of HAVE_peephole.
14036 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14038 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
14039 check HAVE_conditional_move with the preprocessor.
14041 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14043 * genconfig.c (main): Always define HAVE_conditional_move.
14044 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
14045 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
14048 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14050 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
14051 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
14052 and FRAME_POINTER_REGNUM with the preprocessor.
14054 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14056 * defaults.h: Add default for STACK_PUSH_CODE.
14057 * expr.c: Don't redefine STACK_PUSH_CODE.
14058 * recog.c: Likewise.
14060 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14062 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
14063 sched-deps.c: Use if instead of preprocessor checks with
14064 STACK_GROWS_DOWNWARD.
14066 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14068 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
14070 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
14071 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
14072 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
14073 * doc/tm.texi: Regenerate.
14075 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
14078 * config/i386/constraints.md (Bg): New constraint for GOT memory
14080 * config/i386/i386.md (*call_got_x32): New pattern.
14081 (*call_value_got_x32): Likewise.
14082 * config/i386/predicates.md (GOT_memory_operand): New predicate.
14084 2015-05-21 Jakub Jelinek <jakub@redhat.com>
14086 PR tree-optimization/66233
14087 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
14090 2015-05-21 Jeff Law <law@redhat.com>
14092 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
14093 than MULT for shadd sequences.
14095 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
14097 * alias.c (alias_stats): New static var.
14098 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
14099 (dump_alias_stats_in_alias_c): New function.
14100 * alias.h (dump_alias_stats_in_alias_c): Declare.
14101 * tree-ssa-alias.c (dump_alias_stats): Call it.
14103 2015-05-08 Michael Matz <matz@suse.de>
14105 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
14107 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
14108 (STMT_VINFO_STRIDED_P): ... this.
14109 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
14110 (vect_verify_datarefs_alignment): Likewise.
14111 (vect_enhance_data_refs_alignment): Likewise.
14112 (vect_analyze_data_ref_access): Likewise.
14113 (vect_analyze_data_refs): Accept strided stores.
14114 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
14115 (vect_model_load_cost): Adjust for macro rename.
14116 (vectorizable_mask_load_store): Likewise.
14117 (vectorizable_load): Likewise.
14118 (vectorizable_store): Open code strided stores.
14120 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14122 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
14123 Document sqrt_insn.
14125 2015-05-21 Richard Biener <rguenther@suse.de>
14128 * match.pd: Guard pattern optimzing (int)(float)int
14129 conversions to apply only on GIMPLE.
14131 2015-05-21 Jeff Law <law@redhat.com>
14133 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
14134 multiply-accumulate/shift-add insn generation.
14136 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
14139 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
14140 operands[1] are the same.
14142 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
14144 PR middle-end/66221
14145 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
14146 build_distinct_type_copy to copy bounds.
14148 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
14150 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
14151 Change to unsigned int.
14153 2015-05-20 Jeff Law <law@redhat.com>
14155 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
14156 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
14157 (pa_shadd_constant_p): Allow constants for shadd insns rather
14158 than valid scaling constants for memory addresses.
14159 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
14160 * config/pa/predicates.md (mem_shadd_operand): New predicate.
14161 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
14162 (shift-add insns using ASHIFT): New patterns.
14164 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
14166 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
14168 (fix_up_fall_thru_edges): Likewise.
14169 (fix_crossing_conditional_branches): Likewise. Promote jump targets
14170 from to rtx_insn to rtx_code_label where feasible.
14171 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
14172 gen_move_insn (returned type changed to rtx_insn).
14173 * builtins.c (expand_errno_check): Fix arguments of
14174 do_compare_rtx_and_jump (now expects rtx_code_label).
14175 (expand_builtin_acc_on_device): Likewise.
14176 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
14177 invert_jump (now exprects rtx_jump_insn).
14178 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
14179 (construct_init_block): Use rtx_code_label.
14180 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
14181 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
14182 calling redirect_jump.
14183 (patch_jump_insn): Likewise.
14184 (redirect_branch_edge): Likewise.
14185 (force_nonfallthru_and_redirect): Likewise.
14186 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
14188 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
14189 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
14190 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
14191 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
14192 to store the value retured by gen_label_rtx.
14193 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
14195 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
14196 (split_branches): Fix calls of redirect_jump.
14197 * dojump.c (jumpifnot): Promote argument type from rtx to
14199 (jumpifnot_1): Likewise.
14200 (jumpif): Likewise.
14201 (jumpif_1): Likewise.
14202 (do_jump_1): Likewise.
14203 (do_jump): Likewise. Use rtx_code_label when feasible.
14204 (do_jump_by_parts_greater_rtx): Likewise.
14205 (do_jump_by_parts_zero_rtx): Likewise.
14206 (do_jump_by_parts_equality_rtx): Likewise.
14207 (do_compare_rtx_and_jump): Likewise.
14208 * dojump.h: Update function prototypes.
14209 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
14211 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
14213 (emit_label_before): Likewise.
14214 (emit_jump_insn_after_noloc): Likewise.
14215 (emit_jump_insn_after_setloc): Likewise.
14216 (emit_jump_insn_after): Likewise
14217 (emit_jump_insn_before_setloc): Likewise.
14218 (emit_jump_insn_before): Likewise.
14219 (emit_label_before): Promote return type to rtx_code_label.
14220 (emit_label): Likewise.
14221 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
14222 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
14224 (emit_stack_restore): Likewise.
14225 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
14226 (do_cmp_and_jump): Likewise.
14227 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
14228 from rtx to rtx_code_label.
14229 (gen_move_insn_uncast): New function.
14230 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
14231 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
14232 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
14233 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
14234 invert_jump_1 and redirect_jump_1.
14235 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
14236 do_compare_rtx_and_jump.
14237 (expand_addsub_overflow): Likewise.
14238 (expand_neg_overflow): Likewise.
14239 (expand_mul_overflow): Likewise.
14240 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
14241 return value of gen_move_insn.
14242 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
14243 * loop-doloop.c (add_test): Use rtx_code_label.
14244 (doloop_modify): Likewise.
14245 (doloop_optimize): Likewise.
14246 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
14247 * lra-constraints.c (emit_spill_move): Remove cast of value returned
14249 (inherit_reload_reg): Add cast when calling dump_insn_slim.
14250 (split_reg): Likewise.
14251 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
14253 * optabs.c (expand_binop_directly): Remove casts of values returned by
14255 (expand_unop_direct): Likewise.
14256 (expand_abs): Likewise.
14257 (maybe_emit_unop_insn): Likewise.
14258 (maybe_gen_insn): Promote return type to rtx_insn.
14259 * optabs.h: Update prototype of maybe_gen_insn.
14260 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
14262 * recog.c (struct peep2_insn_data): Promote type of insn field to
14264 (peep2_reinit_state): Use NULL instead of NULL_RTX.
14265 (peep2_attempt): Remove casts of insn in peep2_insn_data.
14266 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
14267 * recog.h (struct insn_gen_fn): Promote return types of function
14268 pointers and operator ().from rtx to rtx_insn.
14269 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
14270 (fill_eager_delay_slots): Likewise.
14271 (relax_delay_slots): Likewise.
14272 (make_return_insns): Likewise.
14273 (dbr_schedule): Likewise.
14274 (optimize_skips): Likewise.
14275 (reorg_redirect_jump): Likewise.
14276 (fill_slots_from_thread): Likewise.
14277 * reorg.h: Update prototypes.
14278 * resource.c (find_dead_or_set_registers): Use dyn_cast to
14279 rtx_jump_insn instead of check. Use it's jump_target method.
14280 * rtl.h (rtx_jump_insn::jump_label): Define new method.
14281 (rtx_jump_insn::jump_target): Define new method.
14282 (rtx_jump_insn::set_jump_target): Define new method.
14283 * rtlanal.c (tablejump_p): Promote type of one local variable.
14284 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
14285 (sched_analyze_insn): Likewise.
14286 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
14287 (print_insn): Likewise.
14288 * stmt.c (label_rtx): Promote return type to rtx_insn.
14289 (force_label_rtx): Likewise.
14290 (jump_target_rtx): Define new function.
14291 (expand_label): Use it, get rid of one cast.
14292 (expand_naked_return): Promote rtx to rtx_code_label.
14293 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
14294 (expand_case): Use rtx_code_label instread of rtx where feasible.
14295 (expand_sjlj_dispatch_table): Likewise.
14296 (emit_case_nodes): Likewise.
14297 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
14298 * store-motion.c (insert_store): Make use of new return type of
14299 gen_move_insn and remove a cast.
14300 (replace_store_insn): Likewise.
14302 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
14304 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
14305 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
14307 2015-05-20 Jeff Law <law@redhat.com>
14309 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
14310 dispose of the jump thread path when the jump threading
14311 opportunity is cancelled.
14313 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14315 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
14316 when printing the caret character.
14318 2015-05-20 Marek Polacek <polacek@redhat.com>
14320 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
14322 2015-05-20 Marek Polacek <polacek@redhat.com>
14324 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
14325 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
14326 * gimple-fold.c (canonicalize_bool): Likewise.
14327 (same_bool_result_p): Likewise.
14328 * tree-if-conv.c (parse_predicate): Likewise.
14330 2015-05-20 Marek Polacek <polacek@redhat.com>
14332 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
14333 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
14335 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14337 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
14338 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
14341 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
14343 * config/mips/mips.h (micromips_globals): Declare.
14345 2015-05-20 David Malcolm <dmalcolm@redhat.com>
14347 * timevar.def (TV_INITIALIZE_RTL): New.
14348 * toplev.c (initialize_rtl): Use an auto_timevar to account this
14349 function's time to TV_INITIALIZE_RTL.
14351 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
14353 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
14354 gimple_build_nop calls.
14355 (chkp_find_bounds_for_elem): Likewise.
14356 (chkp_get_zero_bounds): Likewise.
14357 (chkp_get_none_bounds): Likewise.
14358 (chkp_get_bounds_by_definition): Likewise.
14359 (chkp_generate_extern_var_bounds): Likewise.
14360 (chkp_get_bounds_for_decl_addr): Likewise.
14361 (chkp_get_bounds_for_string_cst): Likewise.
14363 2015-05-20 Bin Cheng <bin.cheng@arm.com>
14365 PR tree-optimization/65447
14366 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
14367 (dump_use, dump_uses): Support to dump sub use.
14368 (record_use): New parameters to support sub use. Remove call to
14370 (record_sub_use, record_group_use): New functions.
14371 (compute_max_addr_offset, split_all_small_groups): New functions.
14372 (group_address_uses, rewrite_use_address): New functions.
14373 (strip_offset): New declaration.
14374 (find_interesting_uses_address): Call record_group_use.
14375 (add_candidate): New assertion.
14376 (infinite_cost_p): Move definition forward.
14377 (add_costs): Check INFTY cost and return immediately.
14378 (get_computation_cost_at): Clear setup cost and dependent bitmap
14380 (determine_use_iv_cost_address): Compute cost for sub uses.
14381 (rewrite_use_address_1): Rename from old rewrite_use_address.
14382 (free_loop_data): Free sub uses.
14383 (tree_ssa_iv_optimize_loop): Call group_address_uses.
14385 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14386 Jim Wilson <jim.wilson@linaro.org>
14388 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
14389 new fields loadv and storev.
14390 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
14391 Initialize loadv and storev.
14392 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
14393 (cortexa53_extra_costs): Likewise.
14394 (cortexa57_extra_costs): Likewise.
14395 (xgene1_extra_costs): Likewise.
14396 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
14399 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14401 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
14403 (cortexa8_extra_costs): Likewise.
14404 (cortexa5_extra_costs): Likewise.
14405 (cortexa7_extra_costs): Likewise.
14406 (cortexa12_extra_costs): Likewise.
14407 (cortexa15_extra_costs): Likewise.
14408 (v7m_extra_costs): Likewise.
14410 2015-05-20 Jeff Law <law@redhat.com>
14412 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
14413 instead of open-coded version. Also delete the jump thread created
14414 within this function.
14416 2015-05-20 Alan Modra <amodra@gmail.com>
14418 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
14419 stack adjusting insn. Formatting.
14420 (rs6000_emit_prologue): Track stack adjusting insn, and use of
14421 r12. If possible, emit first -fsplit-stack arg pointer insn
14422 before stack adjust. Don't use r12 to save cr if split-stack.
14424 2015-05-20 Alan Modra <amodra@gmail.com>
14426 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
14428 (rs6000_supports_split_stack): New function.
14429 * gcc/config/rs6000/rs6000.c (machine_function): Add
14430 split_stack_arg_pointer.
14431 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
14432 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
14433 rather than virtual_incoming_args_rtx.
14434 (rs6000_va_start): Likewise.
14435 (split_stack_arg_pointer_used_p): New function.
14436 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
14437 (morestack_ref): New var.
14438 (gen_add3_const, rs6000_expand_split_stack_prologue,
14439 rs6000_internal_arg_pointer, rs6000_live_on_entry,
14440 rs6000_split_stack_space_check): New functions.
14441 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
14442 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
14443 (UNSPECV_SPLIT_STACK_RETURN): Define.
14444 (split_stack_prologue, load_split_stack_limit,
14445 load_split_stack_limit_di, load_split_stack_limit_si,
14446 split_stack_return, split_stack_space_check): New expands and insns.
14447 * gcc/config/rs6000/rs6000-protos.h
14448 (rs6000_expand_split_stack_prologue): Declare.
14449 (rs6000_split_stack_space_check): Declare.
14451 2015-05-20 Alan Modra <amodra@gmail.com>
14453 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
14454 (direct_return): Test vrsave_size rather than vrsave_mask.
14455 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
14456 (rs6000_emit_epilogue): Likewise.
14458 2015-05-20 Alan Modra <amodra@gmail.com>
14460 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
14461 when not saving registers.
14462 (debug_stack_info): Adjust to omit printing unused offsets,
14464 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
14467 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14470 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
14471 value_type to const char *.
14473 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
14475 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
14476 to build a biarch toolchain again.
14478 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
14480 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
14481 or implicit declarations.
14482 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
14484 (get_odr_type): Check type has linkage before adding bases.
14485 (register_odr_type): Check that type has linkage before adding it.
14486 (type_known_to_have_no_deriavations_p): Rename to ..
14487 (type_known_to_have_no_derivations_p): This one.
14488 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
14489 (type_known_to_have_no_derivations_p): This one.
14490 * ipa-polymorphic-call.c
14491 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
14494 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
14496 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
14497 (layout_type): Use RECORD_OR_UNION_TYPE_P.
14499 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14501 * config/s390/s390.c (s390_vector_bool_type_p): New function.
14502 (s390_invalid_binary_op): New function.
14503 (TARGET_INVALID_BINARY_OP): Define macro.
14505 2015-05-19 David Sherwood <david.sherwood@arm.com>
14507 * loop-invariant.c (create_new_invariant): Don't calculate address cost
14508 if mode is not a scalar integer.
14509 (get_inv_cost): Increase computational cost for unused invariants.
14511 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14513 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
14514 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
14515 * config/s390/s390-builtin-types.def: New file.
14516 * config/s390/s390-builtins.def: New file.
14517 * config/s390/s390-builtins.h: New file.
14518 * config/s390/s390-c.c: New file.
14519 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
14520 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
14521 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
14522 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
14524 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
14526 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
14527 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
14528 variable definitions.
14529 (s390_const_operand_ok): New function.
14530 (s390_expand_builtin): Rewrite.
14531 (s390_init_builtins): New function.
14532 (s390_handle_vectorbool_attribute): New function.
14533 (s390_attribute_table): Add s390_vector_bool attribute.
14534 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
14535 (s390_branch_condition_mask): Generate masks for new modes.
14536 (s390_expand_vec_compare_cc): New function.
14537 (s390_mangle_type): Add mangling for vector bool types.
14538 (enum s390_builtin): Remove.
14539 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
14541 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
14542 s390_cpu_cpp_builtins.
14543 (REGISTER_TARGET_PRAGMAS): New macro.
14544 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
14545 (insn_cmp mode attribute): Add new CC modes.
14546 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
14547 (lcbb): New pattern definition.
14548 * config/s390/s390intrin.h: Include vecintrin.h.
14549 * config/s390/t-s390: New file.
14550 * config/s390/vecintrin.h: New file.
14551 * config/s390/vector.md: Include vx-builtins.md.
14552 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
14555 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14557 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
14559 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
14560 (s390_select_ccmode): Likewise.
14561 (s390_canonicalize_comparison): Swap operands if necessary.
14562 (s390_expand_vec_compare_scalar): Expand DFmode compare using
14563 single element vector instructions.
14564 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
14565 (s390_branch_condition_mask): Generate CC masks for the new modes.
14566 * config/s390/s390.md (v0, vf, vd): New mode attributes.
14567 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
14568 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
14569 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
14570 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
14571 (*extend<DSF:mode><BFP:mode>2): New insn definition.
14572 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
14573 (extend<DSF:mode><BFP:mode>2): Turn into expander.
14574 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
14575 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
14576 (sqrt<mode>2): Add vector instruction.
14578 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14580 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
14582 * config/s390/predicates.md (const0_operand, constm1_operand)
14583 (constable_operand): Accept vector operands.
14584 * config/s390/s390-modes.def: Add supported vector modes.
14585 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
14586 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
14587 (s390_bytemask_vector_p, s390_expand_vec_strlen)
14588 (s390_expand_vec_compare, s390_expand_vcond)
14589 (s390_expand_vec_init): Add prototypes.
14590 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
14591 (s390_vector_mode_supported_p): New function.
14592 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
14593 (s390_contiguous_bitmask_vector_p): New function.
14594 (s390_bytemask_vector_p): New function.
14595 (s390_split_ok_p): Vector regs don't work either.
14596 (regclass_map): Add VEC_REGS.
14597 (s390_legitimate_constant_p): Handle vector constants.
14598 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
14599 (legitimate_reload_vector_constant_p): New function.
14600 (s390_preferred_reload_class): Handle CONST_VECTOR.
14601 (s390_reload_symref_address): Likewise.
14602 (s390_secondary_reload): Vector memory instructions only support
14603 short displacements. Rename reload*_nonoffmem* to reload*_la*.
14604 (s390_emit_ccraw_jump): New function.
14605 (s390_expand_vec_strlen): New function.
14606 (s390_expand_vec_compare): New function.
14607 (s390_expand_vcond): New function.
14608 (s390_expand_vec_init): New function.
14609 (s390_dwarf_frame_reg_mode): New function.
14610 (print_operand): Handle addresses with 'O' and 'R' constraints.
14611 (NR_C_MODES, constant_modes): Add vector modes.
14612 (s390_output_pool_entry): Handle vector constants.
14613 (s390_hard_regno_mode_ok): Handle vector registers.
14614 (s390_class_max_nregs): Likewise.
14615 (s390_cannot_change_mode_class): New function.
14616 (s390_invalid_arg_for_unprototyped_fn): New function.
14617 (s390_function_arg_vector): New function.
14618 (s390_function_arg_float): Remove size variable.
14619 (s390_pass_by_reference): Handle vector arguments.
14620 (s390_function_arg_advance): Likewise.
14621 (s390_function_arg): Likewise.
14622 (s390_return_in_memory): Vector values are returned in a VR if
14624 (s390_function_and_libcall_value): Handle vector arguments.
14625 (s390_gimplify_va_arg): Likewise.
14626 (s390_call_saved_register_used): Consider the arguments named.
14627 (s390_conditional_register_usage): Disable v16-v31 for non-vec
14629 (s390_preferred_simd_mode): New function.
14630 (s390_support_vector_misalignment): New function.
14631 (s390_vector_alignment): New function.
14632 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
14633 (TARGET_VECTOR_MODE_SUPPORTED_P)
14634 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
14635 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
14636 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
14637 (TARGET_VECTOR_ALIGNMENT): Define target macro.
14638 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
14639 (FIRST_PSEUDO_REGISTER): Increase value.
14640 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
14641 (VECTOR_REG_P): Define macros.
14642 (FIXED_REGISTERS, CALL_USED_REGISTERS)
14643 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
14644 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
14645 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
14646 Add vector registers.
14647 (CANNOT_CHANGE_MODE_CLASS): Call C function.
14648 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
14649 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
14651 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
14652 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
14653 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
14654 (VR*_REGNUM): New constants.
14655 (ALL): New mode iterator.
14656 (INTALL): Remove mode iterator.
14658 (movti): Implement TImode moves for VRs.
14659 Disable TImode splitter for VR targets.
14660 Implement splitting TImode GPR<->VR moves.
14661 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
14662 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
14663 reload<mode>_la_in, reload<mode>_la_out.
14664 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
14665 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
14666 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
14667 (mov<mode> SF SD): Prefer lder, lde for loading.
14668 Add lrl and strl instructions.
14669 Add vector instructions.
14670 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
14671 Call s390_expand_vec_strlen on z13.
14672 (*cc_to_int): Change predicate to nonimmediate_operand.
14673 (addti3): Rename to *addti3. New expander.
14674 (subti3): Rename to *subti3. New expander.
14675 * config/s390/vector.md: New file.
14677 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14679 * common/config/s390/s390-common.c (processor_flags_table): Add
14681 * config.gcc: Add z13.
14682 * config/s390/s390-opts.h (enum processor_type): Add
14683 PROCESSOR_2964_Z13.
14684 * config/s390/s390.c (s390_adjust_priority): Check for
14685 PROCESSOR_2964_Z13.
14686 (s390_reorg): Likewise.
14687 (s390_sched_reorder): Likewise.
14688 (s390_sched_variable_issue): Likewise.
14689 (s390_loop_unroll_adjust): Likewise.
14690 (s390_option_override): Likewise. Default to -mvx when available.
14691 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
14692 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
14693 (TARGET_VX_ABI): Define macros.
14695 (TARGET_DEFAULT): Add MASK_OPT_VX.
14696 * config/s390/s390.md ("cpu" attribute): Add z13.
14697 ("cpu_facility" attribute): Add vec.
14698 * config/s390/s390.opt (processor_type): Add z13.
14699 (mvx): New options.
14700 * doc/invoke.texi: Add z13 option for -march.
14702 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14704 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
14705 mode check to make sure that only scalar integer values are
14708 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
14710 * tree.c (verify_type_variant): Fix #undef.
14711 (gimple_canonical_types_compatible_p): Move here from lto.c
14712 (verify_type): Verify TYPE_CANONICAL compatibility.
14713 * tree.h (gimple_canonical_types_compatible_p): Declare.
14715 2015-05-19 Jakub Jelinek <jakub@redhat.com>
14717 PR middle-end/66199
14718 * tree.h (OMP_TEAMS_COMBINED): Define.
14719 * gimplify.c (enum gimplify_omp_var_data): Add
14720 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
14721 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
14722 (omp_notice_variable): Accept both ORT_TEAMS
14723 and ORT_COMBINED_TEAMS. Don't recurse if
14724 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
14725 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
14727 (omp_no_lastprivate): New function.
14728 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
14729 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
14730 notice_outer and set appropriate bits, otherwise make
14731 sure default(none) combined constructs won't complain.
14732 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
14733 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
14734 omp_no_lastprivate either remove the clause or turn it
14735 into OMP_CLAUSE_PRIVATE.
14736 (gimplify_omp_for): Fix up handling of implicit
14737 lastprivate or linear iterators.
14738 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
14739 ORT_COMBINED_TEAMS.
14740 * omp-low.c (lower_omp_for_lastprivate): For combined
14741 for simd use fd.loop.n2 from the for rather than simd.
14743 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14745 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
14746 instead of gen_rtx_raw_REG.
14747 (cris_expand_epilogue): Likewise.
14748 * config/microblaze/microblaze.c (microblaze_classify_address):
14750 * config/sparc/sparc.md: Likewise.
14752 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
14754 * config/alpha/alpha.c (alpha_legitimize_reload_address)
14755 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
14756 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
14757 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
14758 Use CASE_CONST_SCALAR_INT.
14759 (print_operand) <case 'M'>: Use mode_width_operand to check the
14760 value of the constant.
14761 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
14762 * config/alpha/predicates.md (input_operand): Use general_operand
14763 instead of match_code as operand check.
14764 (symbolic_operand): Use match_code with subexpression digits.
14765 * config/alpha/constraints.md (Q): Ditto.
14767 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14769 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
14771 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14773 * config/s390/s390.c (s390_secondary_reload): Fix check for
14774 load/store relative.
14776 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14778 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
14779 alternative_mask to uint64_t.
14781 2015-05-19 Jakub Jelinek <jakub@redhat.com>
14783 PR tree-optimization/66187
14784 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
14785 Pass TYPE_SIGN to tree_int_cst_min_precision. If
14786 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
14788 2015-05-19 David Malcolm <dmalcolm@redhat.com>
14790 * diagnostic.c (diagnostic_report_current_module): Strengthen
14791 local "new_map" from const line_map * to
14792 const line_map_ordinary *.
14793 * genmatch.c (error_cb): Likewise for local "map".
14794 (output_line_directive): Likewise for local "map".
14795 * input.c (expand_location_1): Likewise for local "map".
14796 Pass NULL rather than &map to
14797 linemap_unwind_to_first_non_reserved_loc, since the value is never
14798 read from there, and the value written back not read from here.
14799 (is_location_from_builtin_token): Strengthen local "map" from
14800 const line_map * to const line_map_ordinary *.
14801 (dump_location_info): Strengthen locals "map" from
14802 line_map *, one to const line_map_ordinary *, the other
14803 to const line_map_macro *.
14804 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
14805 const line_map * to const line_map_macro *.
14806 (maybe_unwind_expanded_macro_loc): Add a call to
14807 linemap_check_macro when writing to the "map" field of the
14809 Introduce local const line_map_ordinary * "ord_map", using it in
14810 place of "map" in the part of the function where we know we have
14811 an ordinary map. Strengthen local "m" from const line_map * to
14812 const line_map_ordinary *.
14814 2015-05-19 Nick Clifton <nickc@redhat.com>
14817 * config/msp430/msp430.md (zero_extendhisi2): Add support for
14818 separate source and destination registers.
14820 2015-05-19 Richard Biener <rguenther@suse.de>
14822 PR tree-optimization/66165
14823 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
14824 for no load permutation.
14826 PR tree-optimization/66185
14827 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
14828 when building the SLP node from scalars.
14830 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
14831 Tristan Gingold <gingold@adacore.com>
14833 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
14834 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
14835 (expand_stack_restore): Call record_new_stack_level.
14836 (expand_stack_save): Do not call do_pending_stack_adjust.
14837 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
14838 * calls.c (expand_call): Call record_new_stack_level for alloca.
14839 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
14840 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
14841 (update_sjlj_context): New global function.
14842 * except.h (update_sjlj_context): Declare.
14843 * explow.c (record_new_stack_level): New global function.
14844 (allocate_dynamic_stack_space): Call record_new_stack_level.
14845 * explow.h (record_new_stack_level): Declare.
14846 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
14847 * cfgrtl.c (duplicate_insn_chain): Likewise.
14849 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14851 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
14852 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
14853 STACK_GROWS_DOWNWARD as normal if.
14854 (expand_call): Likewise.
14856 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
14859 * config/sh/sh.md (*round_int_even): New insn_and_split and
14860 accompanying new unnamed split.
14862 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14864 * bitmap.c (bitmap_set_range): Handle count==1 specially.
14865 (bitmap_clear_range): Likewise.
14866 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
14867 bitmap_set_range unconditionally.
14868 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
14869 * df-scan.c (df_mark_reg): Likewise.
14870 * haifa-sched.c (setup_ref_regs): Likewise.
14871 * sched-rgn.c (update_live_1): Likewise.
14873 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14875 * regs.h (END_HARD_REGNO): Delete.
14876 (END_REGNO): Move to...
14878 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
14879 * caller-save.c (mark_set_regs): Likewise.
14880 * combine.c (move_deaths, distribute_notes): Likewise.
14881 * cse.c (invalidate, invalidate_for_call): Likewise.
14882 * df-scan.c (df_ref_record): Likewise.
14883 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
14884 (record_last_reg_set_info): Likewise.
14885 * reg-stack.c (convert_regs_exit): Likewise.
14886 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
14887 * resource.c (update_live_status): Likewise.
14888 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
14890 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14892 * rtl.h (reg_info): Add an nregs field.
14893 (REG_NREGS): Use it.
14894 (SET_REGNO_RAW): Delete.
14895 (set_regno_raw): New function.
14896 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
14897 (END_REGNO): Redefine in terms of REG_NREGS.
14898 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
14900 * emit-rtl.c (set_mode_and_regno): Likewise.
14901 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
14902 instead of SET_REGNO_RAW.
14904 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14906 * rtl.h (PUT_MODE_RAW): New macro.
14907 (PUT_REG_NOTE_KIND): Use it.
14908 (set_mode_and_regno): Declare.
14909 (gen_raw_REG): Change regno to "unsigned int".
14910 (gen_rtx_REG): Change "unsigned" to "unsigned int".
14911 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
14912 use set_mode_and_regno to change the mode of registers.
14913 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
14914 * emit-rtl.c (set_mode_and_regno): New function.
14915 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
14916 * caller-save.c (reg_save_code): Use set_mode_and_regno.
14917 * expr.c (init_expr_target): Likewise.
14918 * ira.c (setup_prohibited_mode_move_regs): Likewise.
14919 * postreload.c (reload_cse_simplify_operands): Likewise.
14921 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14923 * caller-save.c (init_caller_save): Use word_mode and
14924 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
14925 * expr.c (init_expr_target): Likewise.
14926 * ira.c (setup_prohibited_mode_move_regs): Likewise.
14927 * postreload.c (reload_cse_regs_1): Likewise.
14929 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14931 * rtl.def (REG): Change format to "r".
14932 * rtl.h (rtunion): Remove rt_reg.
14933 (reg_info): New structure.
14934 (rtx_def): Add reg field to main union.
14935 (X0REGATTR): Delete.
14936 (REG_CHECK): New macro.
14937 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
14938 * rtl.c (rtx_format): Document "r".
14939 (rtx_code_size): Handle REG specially.
14940 * gengenrtl.c (special_format): Return true for formats
14942 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
14943 Deal with REG_ATTRS after the field loop.
14944 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
14945 * expmed.c (init_expmed): Call gen_raw_REG instead of
14947 * expr.c (init_expr_target): Likewise.
14948 * regcprop.c (maybe_mode_change): Likewise.
14949 * varasm.c (make_decl_rtl): Likewise.
14950 * final.c (leaf_renumber_regs_insn): Return early after
14952 * genemit.c (gen_exp): Handle 'r' fields.
14953 * genpeep.c (match_rtx): Likewise.
14954 * gensupport.c (subst_pattern_match): Likewise.
14955 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
14956 (alter_constraints, subst_dup): Likewise.
14957 * read-rtl.c (read_rtx_code): Likewise.
14958 * print-rtl.c (print_rtx): Likewise.
14959 * genrecog.c (find_operand, find_matching_operand): Likewise.
14960 (validate_pattern, match_pattern_2): Likewise.
14961 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
14962 (rtx_test::regno_field): New function.
14963 (operator ==, safe_to_hoist_p, transition_parameter_type)
14964 (parameter_type_string, print_parameter_value)
14965 (print_nonbool_test, print_test): Handle new enum values.
14966 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
14967 * lra-constraints.c (operands_match_p): Likewise.
14969 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14971 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
14972 Change type of new_regno to unsigned int.
14973 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
14974 new_regno to unsigned int.
14975 (df_ref_change_reg_with_loc): Remove old_regno parameter.
14976 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
14977 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
14978 (SET_REGNO_RAW): Add space after ",".
14980 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14982 * rtl.h (REG_NREGS): New macro
14983 * alias.c (record_set): Use it.
14984 * cfgcleanup.c (mark_effect): Likewise.
14985 * combine.c (likely_spilled_retval_1): Likewise.
14986 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
14987 (move_deaths, distribute_notes): Likewise.
14988 * cselib.c (cselib_record_set): Likewise.
14989 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
14990 * df-scan.c (df_mark_reg): Likewise.
14991 * dse.c (look_for_hardregs): Likewise.
14992 * dwarf2out.c (reg_loc_descriptor): Likewise.
14993 (multiple_reg_loc_descriptor): Likewise.
14994 * expr.c (write_complex_part, read_complex_part): Likewise.
14995 (emit_move_complex): Likewise.
14996 * haifa-sched.c (setup_ref_regs): Likewise.
14997 * ira-lives.c (mark_hard_reg_live): Likewise.
14998 * lra.c (lra_set_insn_recog_data): Likewise.
14999 * mode-switching.c (create_pre_exit): Likewise.
15000 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
15001 (reload_combine_recognize_pattern): Likewise.
15002 (reload_combine_note_use, move2add_record_mode): Likewise.
15003 (reload_cse_move2add): Likewise.
15004 * reg-stack.c (subst_stack_regs_pat): Likewise.
15005 * regcprop.c (kill_value, copy_value): Likewise.
15006 (copyprop_hardreg_forward_1): Likewise.
15007 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
15008 (build_def_use): Likewise.
15009 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
15010 (deps_analyze_insn): Likewise.
15011 * sched-rgn.c (check_live_1, update_live_1): Likewise.
15012 * sel-sched.c (count_occurrences_equiv): Likewise.
15013 * valtrack.c (dead_debug_insert_temp): Likewise.
15015 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
15017 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
15018 * dse.c (note_add_store): Likewise.
15019 * ira-lives.c (mark_hard_reg_dead): Likewise.
15020 * loop-invariant.c (mark_reg_store): Likewise.
15021 (mark_reg_death): Likewise.
15022 * postreload.c (reload_combine): Likewise.
15023 (reload_combine_note_store): Likewise.
15024 (reload_combine_note_use): Likewise.
15025 * recog.c (peep2_reg_dead_p): Likewise.
15027 2015-05-19 Alan Modra <amodra@gmail.com>
15029 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
15030 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
15031 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
15033 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
15034 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
15035 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
15036 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
15038 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
15040 * config/mips/mips.md (JOIN_MODE): New mode iterator.
15041 (join2_load_Store<JOIN_MODE:mode>): New pattern.
15042 (join2_loadhi): Likewise.
15043 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
15044 load-load and store-stores.
15045 * config/mips/mips.opt (mload-store-pairs): New option.
15046 (TARGET_LOAD_STORE_PAIRS): New macro.
15047 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
15048 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
15049 * config/mips/mips.c (mips_load_store_bonding_p): New function.
15051 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
15053 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
15055 * dojump.c (do_compare_rtx_and_jump): Likewise.
15056 * expmed.c (emit_store_flag_1): Likewise.
15057 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
15058 * final.c (sprint_ul): Use std::reverse for reversing a string.
15059 * fold-const.c (extract_muldiv_1): Use std::swap.
15060 * genmodes.c (emit_mode_int_n): Likewise.
15061 * ifcvt.c (dead_or_predicable): Likewise.
15062 * ira-build.c (ira_merge_live_ranges): Likewise.
15063 (swap_allocno_copy_ends_if_necessary): Likewise.
15064 * ira.c (ira_setup_alts): Likewise.
15065 * loop-iv.c (iv_analyze_expr): Likewise.
15066 (implies_p): Likewise.
15067 (canon_condition): Likewise.
15068 * lra-constraints.c (swap_operands): Likewise.
15069 * lra-lives.c (lra_merge_live_ranges): Likewise.
15070 * omega.c (swap): Remove.
15072 (omega_unprotect_1): Use std::swap.
15073 (omega_solve_geq): Likewise.
15074 * optabs.c (expand_binop_directly): Likewise.
15075 (expand_binop): Likewise.
15076 (emit_conditional_move): Likewise.
15077 (emit_conditional_add): Likewise.
15078 * postreload.c (reload_cse_simplify_operands): Likewise.
15079 * reg-stack.c (emit_swap_insn): Likewise.
15080 (swap_to_top): Likewise.
15081 (compare_for_stack_reg): Likewise.
15082 (subst_asm_stack_regs): Likewise.
15083 * reload.c (find_reloads): Likewise.
15084 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
15085 * sel-sched.c (invoke_reorder_hooks): Likewise.
15086 (create_block_for_bookkeeping): Likewise.
15087 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
15088 (lambda_matrix_right_hermite): Use std::swap.
15089 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
15090 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
15091 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
15092 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
15093 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
15094 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
15095 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15096 * tree-vrp.c (compare_ranges): Likewise.
15097 * var-tracking.c (add_with_sets): Likewise.
15098 (vt_find_locations): Likewise.
15100 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
15102 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
15104 (FBSD_ENDFILE_SPEC): Likewise.
15105 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
15106 config/freebsd-spec.h.
15107 (ENDFILE_SPEC): Likewise.
15109 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
15110 Richard Henderson <rth@redhat.com>
15113 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
15114 Check for a memory location that is not a reference (using an AND)
15115 to an unaligned location here.
15116 * config/alpha/predicates.md (normal_memory_operand): Remove.
15118 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
15120 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
15121 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
15123 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
15125 * config/mips/mips.c (micromips_globals): New variable.
15126 (mips_set_compression_mode): Save and reinitialize target-dependent
15127 state for microMIPS.
15129 2015-05-18 Martin Liska <mliska@suse.cz>
15131 * dbgcnt.def: Add new counter.
15132 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
15134 2015-05-18 Martin Liska <mliska@suse.cz>
15136 * dbgcnt.def: Sort counters.
15137 * opts.c (common_handle_option): Do not compile if
15138 -fdbg-cnt-list is enabled.
15140 2015-05-18 Tom de Vries <tom@codesourcery.com>
15142 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
15143 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
15144 address operator to va_list operand.
15145 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
15147 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
15149 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
15150 * config/s390/s390.c (s390_gimplify_va_arg): Same.
15151 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
15153 2015-05-18 Tom de Vries <tom@codesourcery.com>
15155 * tree-ssa-tail-merge.c: Fix whitespace.
15157 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
15159 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
15160 cortex-a17, and cortex-a17.cortex-a7.
15162 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
15165 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
15167 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
15170 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
15171 QImode inner modes for TARGET_AVX512BW. Force mask operand
15172 to a register for AVX512F modes.
15174 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
15176 * toplev.c (emit_debug_global_declarations): Do not output debug info
15177 when doing slim LTO objects.
15179 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
15181 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
15182 odr_types_equivalent_p): Declare.
15183 (odr_type_p): Use gcc_checking_assert.
15184 (type_in_anonymous_namespace_p) Declare.
15185 (type_with_linkage_p): Declare.
15186 * common.opt (Wlto-type-mismatch): New warning.
15187 * ipa-devirt.c (compound_type_base): New function.
15188 (odr_or_derived_type_p): New function.
15189 (odr_types_equivalent_p): New function.
15190 (add_type_duplicate): Simplify.
15191 (type_with_linkage_p): Add hack to prevent false positives on C types
15192 (type_in_anonymous_namespace_p): Likewise.
15193 * tree.c (need_assembler_name_p): Use type_with_linkage.
15194 * tree.h (type_in_anonymous_namespace_p): Remove.
15195 * doc/invoke.texi (-Wlto-type-mismatch): Document
15197 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
15199 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
15200 (verify_type): Verify STRING_FLAG.
15202 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
15205 * tree-pretty-print.c (percent_K_format): Replace locus pointer
15206 with accessor function.
15207 * tree-diagnostic.c (diagnostic_report_current_function): Use
15208 diagnostic_location function.
15209 (maybe_unwind_expanded_macro_loc): Likewise.
15210 (virt_loc_aware_diagnostic_finalizer): Likewise.
15211 (default_tree_printer): Replace locus pointer with accessor function.
15212 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
15213 (diagnostic_set_info_translated): Initialize second location.
15214 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
15215 (diagnostic_show_locus): Handle two locations. Call
15216 diagnostic_print_caret_line.
15217 (diagnostic_print_caret_line): New.
15218 (default_diagnostic_starter): Use diagnostic_location function.
15219 (diagnostic_report_diagnostic): Use diagnostic_location function.
15220 (verbatim): Do not set text.locus.
15221 * diagnostic.h (struct diagnostic_info): Remove location field.
15222 (struct diagnostic_context): Make caret_chars an array of two.
15223 (diagnostic_location): New inline.
15224 (diagnostic_expand_location): Handle two locations.
15225 (diagnostic_same_line): New inline.
15226 (diagnostic_print_caret_line): Declare.
15227 (CARET_LINE_MARGIN): New constant.
15228 * pretty-print.c (pp_printf): Do not set text.locus.
15229 (pp_verbatim): Do not set text.locus.
15230 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
15231 (struct text_info): Replace locus pointer with locations
15232 array. Add accessor functions.
15234 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
15235 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15238 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
15239 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
15240 large constants in register instead of splitting them.
15242 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
15245 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
15246 replacements in memory addresses.
15247 (get_unaligned_address): Ditto.
15249 2015-05-16 James Bowman <james.bowman@ftdichip.com>
15251 * config/ft32/*: New files for FT32 port.
15252 * doc/install.texi: Add FT32 information.
15253 * doc/invoke.texi: Add FT32 information.
15254 * doc/md.texi: Add FT32 information.
15255 * doc/contrib.texi: Self added.
15257 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
15259 PR tree-optimization/64454
15260 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
15261 (-1 - A -> ~A): Remove unnecessary condition.
15263 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
15265 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
15266 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
15267 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
15269 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
15271 * ipa-chkp.h (chkp_wrap_function): New.
15272 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
15273 (chkp_wrap_function_name): New.
15274 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
15275 to get wrapper name.
15276 * lto-cgraph.c: Include ipa-chkp.h.
15277 (input_cgraph_1): Avoid alias chain for wrappers.
15279 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
15281 PR middle-end/66134
15282 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
15283 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
15285 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15287 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
15288 (AARCH64_FL_SLOWMUL): Delete.
15289 (AARCH64_FL_CRC): Redefine to 1<<3.
15290 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
15292 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15294 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
15297 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
15299 * config/alpha/alpha.md (extendqidi2): Use general_operand
15300 instead of some_operand for operand[1] predicate.
15301 (extendhidi2): Ditto.
15302 (cbranchdi4): Use general_operand instead of some_operand
15303 for operand[1] and operands[2] predicates.
15304 (cstoredi4): Ditto.
15305 * config/alpha/predicates.md (some_operand): Remove unused predicate.
15306 (some_ni_operand): Ditto.
15308 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
15310 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
15311 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
15312 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
15313 low part of the constant using alpha_emit_set_const_1.
15314 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
15316 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
15318 * varasm.c (output_constant_pool_1): Pass down alignment from
15319 constant pool entry's descriptor to output_constant_pool_2.
15320 (output_object_block): Add comment prior to call to
15321 output_constant_pool_1.
15323 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
15325 PR rtl-optimization/65862
15326 * target.def (ira_change_pseudo_allocno_class): New hook.
15327 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
15329 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
15330 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
15332 * ira-costs.c (find_costs_and_classes): Call the hook and change
15333 classes when it is necessary.
15334 * doc/tm.texi: Update.
15336 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
15338 * config/i386/i386.md (sibcall_memory): Check that register with
15339 callee address is not also used as one of the arguments, instead
15340 of checking that it is not live after the sibcall.
15341 (sibcall_pop_memory): Ditto.
15342 (sibcall_value_memory): Ditto.
15343 (sibcall_value_pop_memory): Ditto.
15345 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
15347 * generic-match-head.c (types_match): Handle non-types.
15348 * gimple-match-head.c (types_match): Likewise.
15349 * match.pd: Remove unnecessary TREE_TYPE for types_match.
15351 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
15353 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
15354 (csneg3<mode>_insn): Enable expansion of pattern.
15356 2015-05-14 Nick Clifton <nickc@redhat.com>
15358 * config/rl78/rl78.c (rl78_select_section): Select the correct
15359 default section based upon the category of the decl.
15361 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
15363 PR rtl-optimization/30967
15364 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
15365 destination mode for the cost of scc patterns.
15367 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
15369 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
15370 using SWIM248 mode iterator.
15371 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
15372 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
15373 for operand[2] constraint.
15374 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
15376 2015-05-13 Jakub Jelinek <jakub@redhat.com>
15378 PR middle-end/66133
15379 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
15380 make sure it is never noreturn, even when the task body does not
15382 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
15383 right before GIMPLE_OMP_RETURN.
15384 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
15385 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
15386 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
15388 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15390 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
15391 * tree-ssa-math-opts.c: Include params.h
15392 (pow_synth_sqrt_info): New struct.
15393 (representable_as_half_series_p): New function.
15394 (get_fn_chain): Likewise.
15395 (print_nested_fn): Likewise.
15396 (dump_fractional_sqrt_sequence): Likewise.
15397 (dump_integer_part): Likewise.
15398 (expand_pow_as_sqrts): Likewise.
15399 (gimple_expand_builtin_pow): Use above to attempt to expand
15400 pow as series of square roots. Removed now unused variables.
15402 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
15404 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
15405 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
15406 Remove *p0 and *p1 arguments. Rewrite function.
15407 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
15408 (alpha_split_const_mov): Update calls to alpha_extract_integer and
15409 alpha_emit_set_long_const.
15410 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
15411 (alpha_output_mi_thunk_osf): Ditto.
15412 * config/alpha/alpha.md (movti): Do not check operands[1]
15415 2015-05-13 Richard Biener <rguenther@suse.de>
15417 PR tree-optimization/66129
15418 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
15420 (vect_schedule_slp_instance): Fix typo.
15422 2015-05-13 David Malcolm <dmalcolm@redhat.com>
15424 * common.opt (fdump-internal-locations): New option.
15425 * input.c: Include diagnostic-core.h.
15426 (get_end_location): New function.
15427 (write_digit): New function.
15428 (write_digit_row): New function.
15429 (dump_location_range): New function.
15430 (dump_labelled_location_range): New function.
15431 (dump_location_info): New function.
15432 * input.h (dump_location_info): New prototype.
15433 * toplev.c (compile_file): Handle flag_dump_locations.
15435 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
15437 * gimple-expr.h (is_gimple_constant): Reorder.
15438 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
15440 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
15442 * combine.c (simplify_set): When generating a CC set, if the
15443 source already is in the correct mode, do not wrap it in a
15444 compare. Simplify the rest of that code.
15446 2015-05-13 Richard Biener <rguenther@suse.de>
15448 PR tree-optimization/66123
15449 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
15452 2015-05-13 Richard Biener <rguenther@suse.de>
15454 PR middle-end/66110
15455 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
15457 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
15459 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15461 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
15462 * aclocal.m4: Regenerated with automake-1.11.6.
15464 2015-05-13 Tom de Vries <tom@codesourcery.com>
15466 PR tree-optimization/66010
15467 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
15468 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
15469 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
15470 and rval based on do_deref.
15472 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
15475 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
15476 link time constants into adress expressions and therefore set
15479 2015-05-13 Jakub Jelinek <jakub@redhat.com>
15482 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
15483 Use SWI248 iterator instead of SWI.
15484 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
15485 Use eq_attr "alternative" "0" instead of match_test in
15486 length_immediate attribute computation.
15487 (*mulvhi4, *mulvhi4_1): New define_insns.
15490 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
15491 SIGNED to get precision of non-negative value.
15493 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
15496 * function.c (diddle_return_value_1): Process bounds first.
15497 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
15500 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
15502 PR rtl-optimization/64616
15503 * loop-invariant.c (can_move_invariant_reg): New.
15504 (move_invariant_reg): Call above new function to decide whether
15505 instruction can just be moved, skipping creation of temporary
15508 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
15510 PR target/pr66047.c
15511 * i386.c (ix86_function_sseregparm): Only return -1 if local function
15512 with implied regparm is called from -mno-sse function.
15513 (init_cumulative_args): Output error if ix86_function_sseregparm
15514 return -1 and SSE register would be needed.
15515 (function_arg_advance_32): Likewise.
15516 (function_arg_32): Likewise.
15517 * i386.h (ix86_args): Add decl field.
15519 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
15522 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
15523 inlines across optimization boundary.
15525 2015-05-12 Jason Merrill <jason@redhat.com>
15527 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
15528 string literal and macro name.
15530 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
15532 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
15533 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
15534 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
15536 2015-05-12 David Malcolm <dmalcolm@redhat.com>
15538 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
15539 (-Wmisleading-indentation): New option.
15540 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
15542 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
15544 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
15545 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
15546 (alpha_extract_integer): Ditto.
15547 (alpha_legitimate_constant_p): Ditto.
15548 (alpha_split_tmode_pair): Ditto.
15549 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
15550 (alpha_expand_mov): Ditto.
15551 (print_operand): Remove handling of 'H' modifier.
15552 <case 'm'>: Remove CONST_DOUBLE handling.
15553 (summarize_insn): Handle CONST_WIDE_INT.
15554 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
15556 (movti): Handle CONST_WIDE_INT.
15557 * config/alpha/constraints.md ('H'): Remove constraint definition.
15558 ('G'): Do not match MODE_FLOAT class.
15559 * config/alpha/predicates.md (const0_operand): Also match
15561 (non_add_const_operand): Ditto.
15562 (non_zero_const_operand): Ditto.
15563 (some_operand): Ditto.
15564 (input_operand): Ditto. Handle CONST_WIDE_INT.
15565 (and_operand): Do not match const_double.
15566 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
15568 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
15571 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
15572 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
15573 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
15574 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
15575 is_mm_seq_cst, is_mm_sync): New accessor functions.
15576 * builtins.c (expand_builtin_sync_operation,
15577 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
15578 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
15579 (get_memmodel, expand_builtin_atomic_compare_exchange,
15580 expand_builtin_atomic_load, expand_builtin_atomic_store,
15581 expand_builtin_atomic_clear): Use new accessor routines.
15582 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
15583 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
15584 (maybe_emit_sync_lock_test_and_set): Use new accessors and
15585 MEMMODEL_SYNC_ACQUIRE.
15586 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
15587 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
15588 expand_atomic_store): Use new accessors.
15589 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
15590 * tsan.c (instrument_builtin_call): Update check for memory model beyond
15591 final enum to use MEMMODEL_LAST.
15592 * c-family/c-common.c: Use new accessor for memmodel_base.
15593 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
15595 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
15596 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
15597 mem_thread_fence, *dmb): Likewise.
15598 * config/alpha/alpha.c (alpha_split_compare_and_swap,
15599 alpha_split_compare_and_swap_12): Likewise.
15600 * config/arm/arm.c (arm_expand_compare_and_swap,
15601 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
15602 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
15603 atomic_loaddi): Likewise.
15604 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
15606 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
15607 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
15609 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
15610 atomic_store<mode>, atomic_compare_and_swap<mode>,
15611 atomic_exchange<mode>): Use new accessors.
15612 * config/mips/mips.c (mips_process_sync_loop): Likewise.
15613 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
15614 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
15615 rs6000_post_atomic_barrier): Add new cases.
15616 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
15617 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
15618 (atomic_load<mode>): Add new cases and use new accessors.
15619 (store_quadpti): Add new cases.
15620 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
15622 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
15623 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
15626 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
15628 * ipa-devirt.c (type_with_linkage_p): New function.
15629 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
15631 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
15632 (can_be_name_hashed_p): Simplify.
15633 (hash_odr_name): Check that type has linkage before checking if it is
15635 (types_same_for_odr): Likewise.
15636 (odr_name_hasher::equal): Likewise.
15637 (odr_subtypes_equivalent_p): Likewise.
15638 (warn_types_mismatch): Likewise.
15639 (get_odr_type): Likewise.
15640 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
15641 * ipa-utils.h (odr_type_p): Move offline.
15642 * tree.c (need_assembler_name_p): Fix handling of types
15644 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
15646 2015-05-12 David Malcolm <dmalcolm@redhat.com>
15648 * timevar.c (timevar_enable): Delete in favor of...
15649 (g_timer): New global.
15650 (struct timevar_def): Move to timevar.h inside class timer.
15651 (struct timevar_stack_def): Likewise.
15652 (timevars): Delete global in favor of field "m_timevars" within
15653 class timer in timevar.h
15654 (stack): Likewise, in favor of field "m_stack".
15655 (unused_stack_instances): Likewise, in favor of field
15656 "m_unused_stack_instances".
15657 (start_time): Likewise, in favor of field "m_start_time".
15658 (get_time): Eliminate check for timevar_enable.
15659 (timer::timer): New function, built from part of timevar_init.
15660 (timevar_init): Rewrite idempotency test from using
15661 "timevar_enable" bool to using dynamic allocation of "g_timer".
15662 Move rest of implementation into timer's constructor.
15663 (timevar_push_1): Rename to...
15664 (timer::push): ...this, adding "m_" prefixes to variables that
15665 are now fields of timer.
15666 (timevar_pop_1): Likewise, rename to...
15667 (timer::pop): ...this, and add "m_" prefixes.
15668 (timevar_start): Replace test for "timevar_enable" with one for
15669 "g_timer", and move bulk of implementation to...
15670 (timer::start): ...here, adding "m_" prefixes.
15671 (timevar_stop): Likewise, from here...
15672 (timer::stop): ...to here.
15673 (timevar_cond_start): Likewise, from here...
15674 (timer::cond_start): ...to here.
15675 (timevar_cond_stop): Likewise, from here...
15676 (timer::cond_stop): ...to here.
15677 (validate_phases): Rename to...
15678 (timer::validate_phases): ...this, and add "m_" prefixes. Make
15679 locals "total" and "tv" const.
15680 (timevar_print): Rename to...
15681 (timer::print): ...this, and add "m_" prefixes. Make locals
15682 "total" and "tv" const. Eliminate test for timevar_enable.
15683 * timevar.h (timevar_enable): Eliminate.
15684 (g_timer): New declaration.
15685 (timevar_push_1): Eliminate.
15686 (timevar_pop_1): Eliminate.
15687 (timevar_print): Eliminate.
15688 (class timer): New class.
15689 (timevar_push): Rewrite to use g_timer.
15690 (timevar_pop): Likewise.
15691 * toplev.c (toplev::~toplev): Likewise.
15693 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
15695 * arm-protos.h (arm_sched_autopref): Delete.
15696 (tune_params): Re-organize, use enums for flag values.
15697 (FUSE_OPS): New macro.
15698 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
15699 (ARM_PREFETCH_BENEFICIAL): Likewise.
15700 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
15701 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
15702 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
15703 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
15704 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
15705 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
15706 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
15707 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
15709 (arm_option_override, thumb2_reorg, arm_print_tune_info)
15710 (aarch_macro_fusion_pair_p): Update uses of current_tune.
15711 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
15713 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
15715 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
15718 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
15719 Sandra Loosemore <sandra@codesourcery.com>
15721 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
15723 (REG_CLASS_NAMES): Add "IJMP_REGS".
15724 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
15725 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
15726 use new "c" register constraint.
15727 * config/nios2/constraint.md (c): New register constraint
15728 corresponding to IJMP_REGS.
15730 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
15732 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
15733 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
15734 define_splits): Delete, revamp, transmogrify into ...
15735 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
15736 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
15737 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
15740 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
15742 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
15743 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
15745 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
15747 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
15748 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
15749 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
15750 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
15751 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
15752 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
15753 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
15754 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
15755 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
15756 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
15757 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
15758 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
15759 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
15760 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
15761 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
15762 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
15763 and 30 corresponding splitters): Delete.
15765 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
15767 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
15770 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
15772 * combine.c (recog_for_combine_1): New function, factored out
15773 from recog_for_combine.
15774 (change_zero_ext): New function.
15775 (recog_for_combine): If recog fails, try again with the pattern
15776 modified by change_zero_ext; if that still fails, restore the
15779 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
15781 * combine.c (get_undo_marker): New function.
15782 (undo_to_marker): New function, largely factored out from ...
15783 (undo_all): ... this. Adjust.
15785 2015-05-12 Richard Biener <rguenther@suse.de>
15787 PR tree-optimization/66101
15788 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
15789 fixup if we turn a loop exit edge to a fallthru edge.
15791 2015-05-12 Richard Biener <rguenther@suse.de>
15793 PR tree-optimization/37021
15794 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
15795 (SLP_TREE_TWO_OPERATORS): New define.
15796 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
15797 SLP_TREE_TWO_OPERATORS.
15798 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
15800 (vect_build_slp_tree): Adjust.
15801 (vect_analyze_slp_cost_1): Likewise.
15802 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
15803 emitting two vector stmts and mixing the results.
15805 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
15807 * call.c (print_z_candidates): Remove dead code.
15809 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15811 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
15812 and zEC12_simple_fp.
15813 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
15816 2015-05-12 Tom de Vries <tom@codesourcery.com>
15818 PR tree-optimization/66010
15819 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
15821 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
15822 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
15823 va_lists are passed, and remove corresponding handling.
15824 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
15825 do_deref argument to ifn_va_arg.
15826 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
15829 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15832 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
15833 REG before taking its REGNO.
15835 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
15837 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
15838 rsp->sign_bit_copies and rsp->nonzero_bits into ...
15839 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
15840 present to get more accurate information about the number of sign bit
15841 copies and non zero bits.
15843 2015-05-12 Richard Biener <rguenther@suse.de>
15845 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
15846 do not allow unrolling.
15848 2015-05-11 Richard Henderson <rth@redhat.com>
15850 * config/i386/i386-modes.def (CCP): New.
15851 * config/i386/i386.c (put_condition_code): Handle it.
15852 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
15854 2015-05-11 Richard Henderson <rth@redhat.com>
15856 * target.def (md_asm_clobbers): Replace with...
15857 (md_asm_adjust): this.
15858 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
15859 (TARGET_MD_ASM_ADJUST): New.
15860 * tm.texi: Rebuild.
15861 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
15862 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
15863 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
15865 * cfgexpand.c (check_operand_nalternatives): Accept vector of
15866 constraints instead of lists of outputs and inputs.
15867 (expand_asm_stmt): Save and restore input_location around the
15868 body of the function. Move asm data into vectors instead of
15869 building tree lists. Generate cleanup sequences as needed,
15870 rather than waiting til the end. Use new md_asm_adjust hook.
15872 * config/vxworks.c: Include vec.h before target.h.
15873 * gimple.c: Likewise.
15874 * incpath.c: Likewise.
15875 * mode-switching.c: Likewise.
15877 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
15878 (cris_md_asm_adjust): this.
15879 (TARGET_MD_ASM_CLOBBERS): Remove.
15880 (TARGET_MD_ASM_ADJUST): New.
15881 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
15882 (ix86_md_asm_adjust): this.
15883 (TARGET_MD_ASM_CLOBBERS): Remove.
15884 (TARGET_MD_ASM_ADJUST): New.
15885 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
15886 (mn10300_md_asm_adjust): this.
15887 (TARGET_MD_ASM_CLOBBERS): Remove.
15888 (TARGET_MD_ASM_ADJUST): New.
15889 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
15890 (rs6000_md_asm_adjust): this.
15891 (TARGET_MD_ASM_CLOBBERS): Remove.
15892 (TARGET_MD_ASM_ADJUST): New.
15893 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
15894 (visium_md_asm_adjust): this.
15895 (TARGET_MD_ASM_CLOBBERS): Remove.
15896 (TARGET_MD_ASM_ADJUST): New.
15898 2015-05-11 Richard Henderson <rth@redhat.com>
15900 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
15901 if noutputs is zero.
15902 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
15904 * cfgexpand.c (expand_asm_operands): Merge into...
15905 (expand_asm_stmt): ... here.
15907 * cfgexpand.c (expand_asm_operands): Don't call
15908 resolve_asm_operand_names.
15909 * stmt.c (resolve_asm_operand_names): Clarify block comment.
15911 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
15913 * dwarf2out.c (gen_member_die): Sanity check that we access
15914 TYPE_MAIN_VARIANT for TYPE_METHODS.
15915 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
15916 checking TYPE_METHODS.
15917 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
15919 (build_distinct_type_copy): Clear TYPE_METHODS.
15920 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
15921 (verify_type): Allow TYPE_METHODS to be error_mark_node.
15922 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
15924 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
15926 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
15927 (emit_pattern_before_setloc): Likewise.
15929 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
15931 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
15932 for define_peephole2s.
15933 (get_peephole2_pattern): New function.
15934 (main): Use it. Call validate_pattern.
15936 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15938 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
15939 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
15940 (Last callee saved reg is different for AVR_TINY architecture)
15942 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
15944 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
15945 when looking for memory references.
15947 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
15950 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
15951 via function pointers.
15953 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
15955 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
15956 indirect call by forcing address into a pseudo with -fno-plt.
15957 * common.opt (flag_plt): New option.
15958 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
15959 ([-fno-plt]): Document.
15961 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
15964 * config/rs6000/option-defaults.h: Add space between string literal
15967 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
15969 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
15970 accross ARM targets.
15972 2015-05-11 Christian Bruel <christian.bruel@st.com>
15974 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
15975 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
15977 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
15979 PR rtl-optimization/66076
15980 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
15981 Don't grow the heap array if it is already big enough from a
15982 previous iteration.
15984 2015-05-11 Christian Bruel <christian.bruel@st.com>
15986 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
15987 (is_called_in_ARM_mode): Remove.
15988 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
15989 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
15990 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
15991 arm_declare_function_name.
15993 2015-05-11 Christian Bruel <christian.bruel@st.com>
15995 * config/arm/arm.c (arm_option_override): Reoganized and split into :
15996 (arm_option_params_internal); New function.
15997 (arm_option_check_internal): New function.
15998 (arm_option_override_internal): New function.
15999 (thumb_code, thumb1_code): Remove.
16000 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
16001 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
16002 (thumb_code, thumb1_code): Remove.
16003 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
16005 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
16007 * config/alpha/alpha.c (alpha_emit_set_const_1)
16008 (alpha_emit_set_long_const, alpha_extract_integer)
16009 (alpha_legitimate_constant_p, alpha_split_const_mov)
16010 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
16011 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16012 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
16014 * config/alpha/predicates.md (mode_mask_operand): Do not match
16016 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16017 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
16018 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
16019 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16020 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
16022 2015-05-11 Jakub Jelinek <jakub@redhat.com>
16025 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
16026 default_binds_local_p_2.
16027 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
16028 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
16030 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
16032 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
16034 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
16036 Patch by Richard Biener
16037 * coverage.c (coverage_obj_init): Delay building of type variant
16038 until the type is finished.
16040 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
16042 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
16043 mismatch between C and C++ type; compoare correctly ARG_TYPES
16044 for non-prototypes and output correctly parameter index for METHOD_TYPE.
16045 (odr_types_equivalent_p): Fix wording of warning about attributes;
16046 it is OK to match prototype and non-prototype.
16048 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
16050 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
16051 TYPE_ARG_TYPES list.
16052 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
16053 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
16055 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
16057 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
16058 * tree.h (is_lang_specific): Constify.
16060 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
16062 PR tree-optimization/64454
16063 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
16066 2015-05-08 Jason Merrill <jason@redhat.com>
16068 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
16069 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
16070 config/darwin.h, config/darwin9.h, config/elfos.h,
16071 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
16072 config/microblaze/microblaze.h, config/mips/mips.h,
16073 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
16074 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
16075 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
16076 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
16077 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
16078 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
16079 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
16080 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
16081 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
16082 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
16083 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
16084 between string literal and macro name.
16086 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16088 * jump.c: Change argument types to rtx_insn *.
16091 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16093 * lra-constraints.c: Change argument type to rtx_insn *.
16095 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16097 * df-problems.c: Change argument type to rtx_insn *.
16099 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16101 * combine.c: Change argument type to rtx_insn *.
16103 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16106 * rtlanal.c: Change argument type to rtx_insn *.
16108 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16110 * sched-deps.c: Change argument types to rtx_insn *.
16111 * sched-int.h: Adjust.
16113 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16115 * dwarf2cfi.c: Change argument type to rtx_insn *.
16117 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16119 * ira.c (decrease_live_ranges_number): Changetype of local
16120 variable to rtx_insn *.
16121 * recog.c: Change argument types to rtx_insn *.
16124 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16126 * reorg.c: Change argument types to rtx_insn *.
16128 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16130 * ira-color.c: Change argument types to rtx_insn *.
16131 * lra-eliminations.c: Likewise.
16134 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16136 * gcse.c: Change argument types to rtx_insn *.
16138 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16140 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
16142 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16144 * emit-rtl.c (emit_debug_insn_before): Change argument type to
16148 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16150 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
16153 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16155 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
16158 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16160 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
16163 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16165 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
16168 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16170 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
16174 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16176 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
16180 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16182 * except.c (can_nonlocal_goto): Change type of argument to
16186 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16188 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
16191 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16193 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
16194 * cfgrtl.c (can_delete_label_p): Adjust.
16197 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16199 * reorg.c (stop_search_p): Change argument to rtx_insn *.
16201 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16203 * except.c (make_reg_eh_region_note): Change argument to
16205 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
16206 * except.h: Adjust.
16208 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16210 * mode-switching.c (commit_mode_sets): Change type of local
16211 variable from rtx to rtx_insn *.
16213 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
16215 * doc/install.texi (--enable-languages): Add missing jit and lto info.
16216 Add ^ to grep command.
16217 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
16218 arg to last gimple_simplify declaration. Add missing gimple_build
16219 declaration for built-in function case with four tree args.
16221 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
16222 Szabolcs Nagy <szabolcs.nagy@arm.com>
16224 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
16225 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
16226 (GNU_USER_DYNAMIC_LINKERN32): Update.
16228 2015-05-08 Richard Biener <rguenther@suse.de>
16230 PR tree-optimization/66036
16231 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16232 Handle strided group loads.
16233 (vect_verify_datarefs_alignment): Likewise.
16234 (vect_enhance_data_refs_alignment): Likewise.
16235 (vect_analyze_group_access): Likewise.
16236 (vect_analyze_data_ref_access): Likewise.
16237 (vect_analyze_data_ref_accesses): Likewise.
16238 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
16239 (vectorizable_load): Likewise.
16241 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
16243 * config/rs6000/rs6000.md: Require operand inequality in one
16246 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
16247 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16249 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
16251 * config/rx/rx.md (movdi, movdf): Likewise.
16252 Likewise for define_peephole2s.
16254 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
16256 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
16257 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
16258 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
16259 vtst_u64): Rewrite using gcc vector extensions.
16261 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
16263 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
16264 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
16266 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
16268 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
16270 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
16272 * config/glibc-stdint.h (OPTION_MUSL): Define.
16273 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
16274 Change the definition based on OPTION_MUSL for 64 bit targets.
16275 * config/linux.h (OPTION_MUSL): Redefine.
16276 * config/alpha/linux.h (OPTION_MUSL): Redefine.
16277 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
16278 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
16280 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
16281 Szabolcs Nagy <szabolcs.nagy@arm.com>
16283 * config.gcc (LIBC_MUSL): New tm_defines macro.
16284 * config/linux.h (OPTION_MUSL): Define.
16285 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
16286 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
16287 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
16288 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
16289 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
16290 * config/linux.opt (mmusl): New option.
16291 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
16292 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
16293 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
16294 * configure: Regenerate.
16296 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
16297 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16300 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
16301 * config/i386/knetbsd-gnu64.h: New file.
16303 2015-05-08 Marek Polacek <polacek@redhat.com>
16306 * doc/invoke.texi: Document -Woverride-init-side-effects.
16308 2015-05-07 Marek Polacek <polacek@redhat.com>
16311 * doc/invoke.texi: Document -Wshift-negative-value.
16313 2015-05-06 Aditya Kumar <hiraditya@msn.com>
16315 * gcov-tool.c (do_merge): Refactore to remove int ret.
16316 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
16317 !type == FUNC to type != FUNC.
16318 * reload.h (struct target_reload): Changee to type of
16319 x_spill_indirect_levels from bool to unsigned char.
16321 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
16323 * rtl.h (always_void_p): New function.
16324 * gengenrtl.c (always_void_p): Likewise.
16325 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
16326 with code foo are always VOIDmode.
16327 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
16328 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
16329 compare-elim.c, config/aarch64/aarch64.c,
16330 config/aarch64/aarch64.md, config/alpha/alpha.c,
16331 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
16332 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
16333 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
16334 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
16335 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
16336 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
16337 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
16338 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
16339 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
16340 config/ia64/vect.md, config/iq2000/iq2000.c,
16341 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
16342 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
16343 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
16344 config/mep/mep.c, config/microblaze/microblaze.c,
16345 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
16346 config/mn10300/mn10300.c, config/msp430/msp430.c,
16347 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
16348 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
16349 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
16350 config/rs6000/altivec.md, config/rs6000/rs6000.c,
16351 config/rs6000/rs6000.md, config/rs6000/vector.md,
16352 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
16353 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
16354 config/sh/sh.md, config/sh/sh_treg_combine.cc,
16355 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
16356 config/spu/spu.md, config/stormy16/stormy16.c,
16357 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
16358 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
16359 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
16360 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
16361 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
16362 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
16363 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
16364 var-tracking.c: Update calls accordingly.
16366 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16369 PR middle-end/54303
16370 * varasm.c (function_mergeable_rodata_prefix): New function.
16371 (mergeable_string_section): Use it.
16372 (mergeable_constant_section): Use it.
16374 2015-05-07 Jeff Law <law@redhat.com>
16377 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16378 simplifier to narrow arithmetic.
16379 * generic-match-head.c: (types_match, single_use): New functions.
16380 * gimple-match-head.c: (types_match, single_use): New functions.
16382 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16384 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
16387 2015-05-07 Richard Biener <rguenther@suse.de>
16389 PR tree-optimization/66002
16390 * passes.def: Schedule another pass_merge_phi after ifcombine, right
16393 2015-05-07 Marek Polacek <polacek@redhat.com>
16394 Martin Uecker <uecker@eecs.berkeley.edu>
16396 * doc/invoke.texi: Document -fsanitize=bounds-strict.
16397 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
16398 into SANITIZE_NONDEFAULT.
16399 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
16401 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
16404 * config/alpha/alpha.c (alpha_override_options_after_change): New.
16405 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
16406 (alpha_override_options): Move align_loops, align_jumps and
16407 align_functions handling into alpha_override_options_after_change.
16409 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
16410 Chris Jones <chrisj@nvidia.com>
16411 Joshua Conner <jconner@nvidia.com>
16413 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
16414 linking of crtfastmath.o.
16415 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
16417 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
16419 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
16420 (cstore<mode>4_unsigned_imm): New expander.
16421 (cstore<mode>4): Remove empty constraint strings. Use the new
16424 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
16427 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
16430 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
16432 * config/aarch64/geniterators.sh: Use standard BRE in sed.
16434 2015-05-06 Alan Modra <amodra@gmail.com>
16437 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
16438 (UNSPEC_NOP): Define.
16439 (reload_vsx_from_gpr<mode>): Add missing DONE.
16440 (reload_gpr_from_vsx<mode>): Likewise.
16441 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
16442 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
16444 2015-05-06 Christian Bruel <christian.bruel@st.com>
16447 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
16448 align_jumps, align_functions into aarch64_override_options_after_change.
16450 2015-05-06 Richard Biener <rguenther@suse.de>
16452 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
16453 vect_transform_slp_perm_load to check if we support a permutation
16454 for basic-block vectorization.
16456 2015-05-06 Nick Clifton <nickc@redhat.com>
16458 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
16459 used, even if it is not being used as a frame pointer.
16461 2015-05-05 Jason Merrill <jason@redhat.com>
16463 * dwarf2out.c (gen_member_die): Don't emit anything for an
16464 anonymous class constructor.
16466 2015-05-05 David Malcolm <dmalcolm@redhat.com>
16468 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
16469 that it reflects the block structure.
16470 (afdo_propagate_edge): Likewise.
16471 (afdo_calculate_branch_prob): Likewise.
16472 (afdo_annotate_cfg): Likewise.
16473 * cfgcleanup.c (equal_different_set_p): Likewise.
16474 (try_crossjump_to_edge): Likewise.
16475 * cgraph.c (cgraph_node::verify_node): Likewise.
16476 * cgraphunit.c (expand_all_functions): Likewise.
16477 * config/i386/i386.c (ix86_expand_copysign): Likewise.
16478 (exact_dependency_1): Likewise.
16479 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
16480 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
16481 * gensupport.c (process_define_subst): Likewise.
16482 * lto-wrapper.c (merge_and_complain): Likewise.
16483 * tree-if-conv.c (if_convertible_bb_p): Likewise.
16484 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
16485 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
16486 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
16487 * tree-vect-loop.c (vectorizable_reduction): Likewise.
16488 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
16489 * tree-vect-stmts.c (vectorizable_shift): Likewise.
16490 * tree-vrp.c (vrp_finalize): Likewise.
16491 * tree.c (variably_modified_type_p): Likewise.
16493 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
16495 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
16496 on darwin12 and later.
16497 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
16498 file to pass -rdynamic on darwin12 and later.
16499 * config/darwin.opt (rdynamic): Add.
16501 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
16503 * doc/extend.texi (C Extensions): Update menu for moved Variable
16504 Attributes and Type Attributes sections.
16506 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
16509 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
16510 if rep_8byte stringop strategy was specified for 32-bit target.
16512 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
16515 * config/i386/i386.md (vector convert to float spltiter): Check for
16516 xmm16+, when splitting scalar float conversion.
16517 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
16519 2015-05-05 Nick Clifton <nickc@redhat.com>
16521 * config/msp430/msp430-opts.h (enum msp430_regions): New.
16522 * config/msp430/msp430.c (msp430_override_options): Complain if
16523 -mcode-region or -mdata-region is used on a non MSP430X.
16524 (msp430_section_attr): New function. Checks lower, upper and
16526 (msp430_attribute_table): Add lower, upper and either.
16527 (gen_prefix): New function. Generates a prefix for a section
16529 (msp430_select_section): New function - handles the choice of
16530 section for an object. Takes into account memory region
16531 attributes and options.
16532 (msp430_function_section): Use gen_prefix.
16533 (TARGET_SECTION_TYPE_FLAGS): Define.
16534 (msp430_section_type_flags): New function.
16535 (TARGET_ASM_UNIQUE_SECTION): Define.
16536 (msp430_unique_section): New function.
16537 (msp430_output_aligned_decl_common): New function.
16538 (msp430_do_not_relax_short_jumps): New function.
16539 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
16541 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
16542 * config/msp430/msp430-protos.h
16543 (msp430_do_not_relax_short_jumps): New prototype.
16544 (msp430_output_aligned_decl_common): New prototype.
16545 * config/msp430/msp430.md (length): New attribute.
16546 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
16547 then use a long code sequence for short jumps.
16548 * config/msp430/msp430.opt (mcode-region): New.
16549 (mdata-region): New.
16550 * doc/invoke.texi: Document new options.
16551 * doc/extend.texi: Document new attributes.
16553 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
16555 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
16556 (tune_params): Add field branch_costs.
16557 (aarch64_branch_cost): Declare.
16558 * gcc/config/aarch64.c (generic_branch_cost): New.
16559 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
16560 (cortexa53_tunings): Likewise.
16561 (cortexa57_tunings): Likewise.
16562 (thunderx_tunings): Likewise.
16563 (xgene1_tunings): Likewise.
16564 (aarch64_branch_cost): Define.
16565 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
16567 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
16569 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
16570 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
16571 * config/i386/i386.md: Ditto.
16572 * config/i386/winnt.c: Ditto.
16574 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
16576 * doc/extend.texi (__atomic Builtins): Move implementation details
16577 to the end of the description, rewrite opening paragraphs, state
16578 difference with __sync builtins, state C11/C++11 assumptions,
16579 weaken itemized descriptions, add explanation of memory model
16580 behaviour, expand description of compare-exchange, simplify text.
16582 2015-05-05 Renlin Li <renlin.li@arm.com>
16584 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
16586 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
16588 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
16589 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
16590 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
16591 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
16592 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
16593 * configure: Regenerate.
16594 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
16595 * doc/install.texi (aarch64*-*-*): Document new
16596 --enable-fix-cortex-a53-843419 option.
16597 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
16598 and -mno-fix-cortex-a53-843419 options.
16600 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
16603 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
16605 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
16607 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
16608 fix overactive TYPE_MIN_VALUE check and add FIXME for type
16609 compatibility problems.
16611 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
16613 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
16615 (cbranchsi4_reg): New.
16616 * config/microblaze/microblaze.c
16617 (microblaze_expand_conditional_branch_reg): New.
16618 * config/microblaze/microblaze-protos.h
16619 (microblaze_expand_conditional_branch_reg): New prototype.
16621 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
16623 * config/microblaze/microblaze.md (peephole2): New.
16625 2015-05-04 Jeff Law <law@redhat.com>
16628 2015-05-04 Jeff Law <law@redhat.com>
16630 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16631 simplifier to narrow arithmetic.
16632 * generic-match-head.c: (types_match, single_use): New functions.
16633 * gimple-match-head.c: (types_match, single_use): New functions.
16635 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
16638 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
16639 (split_branches): Likewise.
16641 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
16643 * common.opt (fdelete-null-pointer-checks): Init to -1.
16644 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
16645 override flag_delete_null_pointer_checks default.
16646 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
16647 behavior re address zero. Better document target-specific behavior.
16648 (-fisolate-errneous-paths-dereference): Mention relationship to
16649 -fdelete-null-pointer-checks.
16651 2015-05-04 Jakub Jelinek <jakub@redhat.com>
16653 PR tree-optimization/65984
16654 * ubsan.c: Include tree-cfg.h.
16655 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
16656 stmt_could_throw_p test, rename can_throw variable to ends_bb.
16658 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
16660 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
16661 to CONST_DOUBLE_P predicate.
16662 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
16663 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
16664 allow only operands that satisfy standard_sse_constant_p predicate.
16665 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
16666 to CONST_DOUBLE_P predicate.
16668 2015-05-04 Jeff Law <law@redhat.com>
16670 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16671 simplifier to narrow arithmetic.
16672 * generic-match-head.c: (types_match, single_use): New functions.
16673 * gimple-match-head.c: (types_match, single_use): New functions.
16675 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
16677 * config/arm/arm.c: Restore bootstrap.
16679 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
16681 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
16682 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
16683 as CONST_WIDE_INT, not CONST_DOUBLE.
16684 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
16685 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
16686 (ix86_find_base_term): Do not check for CONST_DOUBLE.
16687 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
16688 (ix86_build_signbit_mask): Rewrite using wide ints.
16689 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
16690 (ix86_rtx_costs): Handle CONST_WIDE_INT.
16691 (find_constant): Ditto.
16692 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
16693 using gen_int_mode.
16694 * config/i386/predicates.md (x86_64_immediate_operand)
16695 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
16696 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
16697 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
16698 (const0_operand): Also match const_wide_int.
16699 (constm1_operand): Ditto.
16700 (const1_operand): Ditto.
16702 2015-05-04 Richard Biener <rguenther@suse.de>
16704 PR tree-optimization/65965
16705 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
16706 store groups at gaps.
16708 2015-05-04 Richard Biener <rguenther@suse.de>
16710 PR tree-optimization/65935
16711 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
16712 then make sure to apply that swapping to the IL.
16714 2015-05-04 Jakub Jelinek <jakub@redhat.com>
16716 * Makefile.in (PATCHLEVEL_c): New variable.
16717 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
16718 expand the same way as if DEVPHASE_c was non-empty.
16720 2015-05-04 Kai Tietz <ktietz@redhat.com>
16723 * lto-wrapper.c (run_gcc): Open filename
16726 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
16728 * doc/extend.texi (Variable Attributes, Type Attributes): Move
16729 sections up in file, to immediately after the Function Attributes
16732 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
16734 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
16736 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16738 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
16739 (insert_partition_copy_on_edge): Adjust.
16740 (insert_rtx_to_part_on_edge): Likewise.
16741 (insert_part_to_rtx_on_edge): Likewise.
16743 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16745 * function.c (set_return_jump_label): Change type of argument to
16747 * function.h (set_return_jump_label): Adjust.
16749 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16751 * reload.h (struct reg_equivs_t): Change type of init to
16753 * ira.c (fix_reg_equiv_init): Adjust.
16754 * reload1.c (eliminate_regs_1): Likewise.
16755 (init_eliminable_invariants): Likewise.
16757 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16759 * cselib.c (fp_setter_insn): Take a rtx_insn *.
16760 * cselib.h (fp_setter_insn): Adjust.
16762 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16764 * recog.c (struct validate_replace_src_data): Change type of
16765 insn field to rtx_insn *.
16766 (validate_replace_src_group): Change type of argument to rtx_insn *.
16767 * recog.h (validate_replace_src_group): Adjust.
16769 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16771 * haifa-sched.c: Change the type of some variables to rtx_insn *.
16772 * sched-deps.c: Likewise.
16773 * sched-int.h: Likewise.
16774 * sched-rgn.c: Likewise.
16775 * sel-sched.c: Likewise.
16777 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16780 * config/i386/i386.c: Change the type of some arguments to
16782 * config/arm/arm.c: Likewise.
16784 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16786 * lra-constraints.c: Change type of some arguments to rtx_insn *.
16788 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16790 * regcprop.c (kill_autoinc_value): Change type of argument to
16793 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16795 * genrecog.c (print_subroutine): Adjust.
16796 * recog.c (get_bool_attr_mask_uncached): Likewise.
16797 * recog.h (struct recog_data_d): Change the type of insn to
16800 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16802 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
16804 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16806 * df-problems.c (df_set_note): Change type of argument to
16809 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16811 * builtins.c (expand_builtin_trap): Change type of local
16812 variable to rtx_insn *.
16813 (add_sched_insns_for_speculation): Likewise.
16814 (ix86_emit_save_regs): Likewise.
16815 (get_scratch_register_on_entry): Likewise.
16816 (ix86_emit_restore_reg_using_pop): Likewise.
16817 (ix86_emit_leave): Likewise.
16818 (ix86_emit_restore_regs_using_mov): Likewise.
16819 (ix86_expand_epilogue): Likewise.
16821 (rl78_alloc_physical_registers_umul): Likewise.
16822 * cselib.c (discard_useless_locs): Likewise.
16823 (cselib_invalidate_regno): Likewise.
16824 (cselib_invalidate_mem): Likewise.
16825 * function.c (expand_function_start): Likewise.
16826 (emit_use_return_register_into_block): Likewise.
16827 * gcse.c: Likewise.
16828 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
16829 * ifcvt.c (noce_get_alt_condition): Likewise.
16830 * loop-doloop.c (doloop_condition_get): Likewise.
16831 * lra-constraints.c (inherit_in_ebb): Likewise.
16832 * modulo-sched.c (sms_schedule_by_order): Likewise.
16833 * recog.c (next_insn_tests_no_inequality): Likewise.
16834 * reorg.c (emit_delay_sequence): Likewise.
16835 (update_reg_dead_notes): Likewise.
16836 (fix_reg_dead_note): Likewise.
16837 (fill_slots_from_thread): Likewise.
16838 (delete_computation): Likewise.
16840 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
16842 * doc/extend.texi (Variable Attributes): Add menu and proper
16843 @nodes to subsections. Move Microsoft Windows attributes to
16844 their own subsection.
16845 (Type Attributes): Reorganize introduction to remove duplicate
16846 list of attributes. Add menu and proper @nodes to subsections.
16847 Alphabetize the main table of common attributes.
16849 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
16851 * match.pd: New simplification patterns.
16852 (x + (x & 1)) -> ((x + 1) & ~1)
16853 (x & ~(x & y)) -> ((x & ~y))
16854 (x | ~(x | y)) -> ((x | ~y))
16856 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16858 * target.def (attribute_table): Mention that struct attribute_spec
16859 is defined in tree-core.h rather than tree.h
16860 * doc/tm.texi: Regenerate.
16862 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
16864 * genrecog.c (test): Rename to rtx_test. Update rest of file
16867 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
16869 PR translation/65959
16870 * params.h (DEFPARAM): Rename msgid to nocmsgid.
16872 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
16874 * gcc/config/aarch64/aarch64-protos.h (tune_params):
16875 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
16876 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
16877 Return value depending on target.
16878 (generic_tunings): Initialize new target settings.
16879 (cortexa53_tunings): Likewise.
16880 (cortexa57_tunings): Likewise.
16881 (thunderx_tunings): Likewise.
16882 (xgene1_tunings): Likewise.
16884 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
16886 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
16887 Make Cortex-A53 shift costs more accurate.
16889 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16891 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
16894 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
16896 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
16897 Calculate cost of op0 and op1 in PLUS and MINUS cases.
16899 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16901 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
16902 Add cost of op0 in the compare-with-fpzero case.
16904 2015-04-30 David Malcolm <dmalcolm@redhat.com>
16906 * builtins.c (fold_builtin_1): Remove spurious second
16908 * cgraph.h (symtab_node::get_availability): Likewise.
16909 * opts.c (common_handle_option): Remove spurious second semicolon.
16910 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
16911 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
16913 2015-04-30 Caroline Tice <cmtice@google.com>
16915 PR gcov-profile/65929
16916 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
16917 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
16918 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
16919 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
16920 * doc/tm.texi: Regenerate.
16921 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
16922 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
16923 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
16924 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
16926 2015-04-30 Marek Polacek <polacek@redhat.com>
16928 * varasm.c (handle_cache_entry): Fix logic.
16930 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16932 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
16933 (*extrsi5_insn_uxtw_alt): Likewise.
16934 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
16935 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
16938 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16940 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
16943 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16945 * config/aarch64/aarch64.md
16946 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
16947 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
16948 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
16949 appropriately. Handle alternative EON form.
16951 2015-04-30 Renlin Li <renlin.li@arm.com>
16953 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
16954 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
16956 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
16959 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
16960 -fstrict-aliasing boundaries.
16962 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16964 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
16965 and [SU]MNEGL patterns.
16967 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16969 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
16970 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
16971 combined arithmetic-shift ops. Properly handle all shift and extend
16972 operations that can occur in combination with PLUS/MINUS.
16973 Rename maybe_fma to compound_p.
16974 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
16975 arithmetic and shift operations.
16977 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16979 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
16980 rather than arith_shift cost when costing ADD/MINUS of an
16983 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
16986 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
16989 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
16991 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
16992 are for the same position.
16994 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
16996 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
16998 (vectorize_loops): Use it.
17000 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
17002 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
17003 for aggregate types.
17004 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
17005 type to be non_ODR.
17006 * tree.c (need_assembler_name_p): Compute mangled name for
17007 non-fundamental types and integer types.
17009 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
17011 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
17013 * expr.c (expand_expr_real_2): Likewise.
17015 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
17017 * tree.c (build_common_builtin_nodes): Do not build
17018 __builtin_alloca_with_align as equivalent of library alloca.
17020 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
17022 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
17023 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
17025 * tree.c: Include print-tree.h and ipa-utils.h
17026 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
17027 (free_lang_data_in_cgraph): Call verify_type.
17028 (verify_type_variant): New function.
17029 (verify_type): New function.
17030 * tree.h (verify_type): Declare.
17032 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
17034 * config/mips/mips-cpus.def: (mips4): Change default processor
17035 from PROCESSOR_R8000 to PROCESSOR_R10000.
17037 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
17039 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
17040 la/jalr instead of jal.
17042 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
17045 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
17046 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
17047 (setcc+movzbl peephole2): Check also clobbered reg.
17048 (setcc+andl peephole2): Ditto.
17050 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
17053 * config/nvptx/mkoffload.c (target_ilp32): New variable.
17054 (main): Set it depending on "-foffload-abi=[...]".
17055 (compile_native, main): Use it to pass "-m32" or "-m64" to the
17058 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
17061 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
17062 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
17063 Flip lane index back at assembly time for bigendian.
17065 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
17067 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
17068 * gimplify.c (gimplify_omp_workshare): Use it.
17070 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
17072 * Makefile.in (build/genrecog.o): Depend on inchash.h.
17073 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
17075 * genrecog.c: Rewrite most of the code except for the third page.
17077 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
17079 * inchash.h, inchash.c: Include bconfig.h for build objects.
17080 * Makefile.in (build/inchash.o): New rule.
17082 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
17085 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
17086 number in type attribute expression.
17088 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
17090 * loop-iv.c (canon_condition): Generalize to all types of integer
17093 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
17095 * gimple-walk.c: Prune duplicate or unneeded includes.
17096 (walk_gimple_asm): Only call parse_input_constraint or
17097 parse_output_constraint if their findings are used.
17098 Honour parse_input_constraint and parse_output_constraint
17101 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
17103 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
17105 2015-04-29 Tom de Vries <tom@codesourcery.com>
17107 PR tree-optimization/65893
17108 * passes.def (pass_all_optimizations): Move pass_stdarg to after
17111 2015-04-29 Richard Biener <rguenther@suse.de>
17113 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
17114 compute GROUP_SIZE for basic-block SLP.
17115 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
17116 take into account gaps.
17117 (vect_get_mask_element): Properly reject references to previous
17119 (vect_transform_slp_perm_load): Likewise.
17121 2015-04-29 Christian Bruel <christian.bruel@st.com>
17124 * config/i386/i386.c (ix86_default_align): New function.
17125 (ix86_override_options_after_change): Call ix86_default_align.
17126 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
17127 (ix86_override_options_after_change): New function.
17129 2015-04-28 Jeff Law <law@redhat.com>
17131 * tree-ssa-dom.c (record_equality); Fix comment typos.
17133 2015-04-28 Tom de Vries <tom@codesourcery.com>
17135 PR tree-optimization/65887
17136 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
17138 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
17140 * doc/extend.texi (Declaring Attributes of Functions): Split into
17141 subsections by target. Alphabetize the table of common attributes.
17142 Rewrite some of the introductory text to reflect the new structure.
17143 Update some cross-references to point to the new subsections.
17144 (Attribute Syntax): Put paragraph about "__" naming here. Remove
17145 duplicate copies in the discussion of function, label, and type
17148 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
17151 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
17153 2015-04-28 Jason Merrill <jason@redhat.com>
17156 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
17157 (finalize_type_size): Respect TYPE_USER_ALIGN.
17158 (layout_type) [ARRAY_TYPE]: Likewise.
17160 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
17162 * config/arm/arm.md (*arm_movt): Fix type attribute.
17163 (*cmpsi_shiftsi): Likewise.
17164 (*cmpsi_shiftsi_swp): Likewise.
17165 (*movsicc_insn): Likewise.
17166 (*cond_move): Likewise.
17167 (*if_plus_move): Likewise.
17168 (*if_move_plus): Likewise.
17169 (*if_arith_move): Likewise.
17170 (*if_move_arith): Likewise.
17171 (*if_shift_move): Likewise.
17172 (*if_move_shift): Likewise.
17173 (*arm_movtas_ze): Likewise.
17174 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
17175 redundancy and type attribute.
17176 (*thumb2_movsi_insn): Fix type attribute.
17177 (*thumb2_addsi_short): Likewise.
17178 (thumb2_addsi3_compare0): Likewise.
17179 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
17180 attributes accordingly.
17182 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
17185 * function.c (pad_to_arg_alignment): Add parentheses.
17187 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
17189 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
17190 libgcc/config/frv/elf-lib.h.
17192 2015-04-28 Tom de Vries <tom@codesourcery.com>
17194 * tree-call-cdce.c: Fix example in header comment.
17196 2015-04-28 Richard Biener <rguenther@suse.de>
17198 PR tree-optimization/62283
17199 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
17200 fails fatally and we are vectorizing a basic-block simply
17201 cause the child to be constructed piecewise.
17202 (vect_analyze_slp_cost_1): Adjust.
17203 (vect_detect_hybrid_slp_stmts): Likewise.
17204 (vect_bb_slp_scalar_cost): Likewise.
17205 (vect_get_constant_vectors): For piecewise constructed
17206 constants place them after the last def.
17207 (vect_get_slp_defs): Adjust.
17208 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
17209 externals for basic-block vectorization.
17211 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
17214 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
17216 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
17217 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
17218 (AARCH64_TUNE_FMA_STEERING): Likewise.
17219 * config/aarch64/aarch64-cores.def: Set
17220 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
17221 FMUL/FMADD instructions.
17222 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
17223 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
17224 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
17225 * config/aarch64/cortex-a57-fma-steering.h: New file.
17226 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17228 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
17230 * gensupport.c (std_preds): Add missing codes to address_operand entry.
17232 2015-04-28 Richard Biener <rguenther@suse.de>
17234 PR tree-optimization/65851
17235 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
17236 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
17237 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
17238 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
17239 (ccp_visit_phi_node): Adjust.
17240 (evaluate_stmt): For simplifications to SSA names return its
17241 lattice value if that isn't VARYING. Return immediately when
17242 simplified to a constant.
17243 (visit_assignment): Adjust.
17244 (ccp_visit_stmt): Likewise.
17246 2015-04-28 Tom de Vries <tom@codesourcery.com>
17248 PR tree-optimization/65818
17249 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
17252 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17254 * calls.c (save_fixed_argument_area): Don't check
17255 ARGS_GROW_DOWNWARD with the preprocessor.
17256 (restore_fixed_argument_area): Likewise.
17257 (mem_overlaps_already_clobbered_arg_p): Likewise.
17258 (check_sibcall_argument_overlap): Likewise.
17259 (expand_call): Likewise.
17260 (emit_library_call_value_1): Likewise.
17261 (store_one_arg): Likewise.
17262 * function.c (assign_parms): Likewise.
17263 (locate_and_pad_parm): Likewise.
17264 (pad_to_arg_alignment): Likewise.
17265 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
17267 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17269 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
17270 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
17271 * calls.c (save_fixed_argument_area): Don't chekc if
17272 ARGS_GROW_DOWNWARD is defined.
17273 (restore_fixed_argument_area): Likewise.
17274 (mem_overlaps_already_clobbered_arg_p): Likewise.
17275 (check_sibcall_argument_overlap): Likewise.
17276 (expand_call): Likewise.
17277 (emit_library_call_value_1): Likewise.
17278 (store_one_arg): Likewise.
17279 * function.c (assign_parms): Likewise.
17280 (locate_and_pad_parm): Likewise.
17281 (pad_to_arg_alignment): Likewise.
17282 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
17284 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17286 * defaults.h (gen_epilogue): New function.
17287 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
17289 * cfgrtl.c (cfg_layout_finalize): Likewise.
17290 * df-scan.c: Likewise.
17291 * function.c (thread_prologue_and_epilogue_insns): Likewise.
17292 (reposition_prologue_and_epilogue_notes): Likewise.
17293 * reorg.c (find_end_label): Likewise.
17294 * toplev.c: Likewise.
17296 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17298 * bb-reorder.c (HAVE_return): Don't check if its undefined.
17299 * defaults.h (gen_simple_return): New function.
17300 (gen_simple_return): Likewise.
17301 (HAVE_return): Add default definition to false.
17302 (HAVE_simple_return): Likewise.
17303 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
17304 HAVE_return and HAVE_simple_return are defined.
17305 * function.c (gen_return_pattern): Likewise.
17306 (convert_jumps_to_returns): Likewise.
17307 (thread_prologue_and_epilogue_insns): Likewise.
17308 * reorg.c (find_end_label): Likewise.
17309 (dbr_schedule): Likewise.
17310 * shrink-wrap.c: Likewise.
17311 * shrink-wrap.h: Likewise.
17313 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17315 * defaults.h (EPILOGUE_USES): Add default definition of false.
17316 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
17317 * resource.c (init_resource_info): Likewise.
17319 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17321 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
17323 * dwarf2out.c (field_byte_offset): REmove check if
17324 PCC_BITFIELD_TYPE_MATTERS is defined.
17325 * stor-layout.c (layout_decl): Likewise.
17326 (update_alignment_for_field): Likewise.
17327 (place_field): Likewise.
17329 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17331 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
17333 * regrename.c (check_new_reg_p): Remove check if
17334 HARD_REGNO_RENAME_OK is defined.
17335 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
17337 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17339 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
17340 * cse.c (fold_rtx): Likewise.
17341 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
17342 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
17343 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
17344 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
17345 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
17346 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
17347 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
17348 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
17349 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
17350 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
17352 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
17353 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
17354 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
17355 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
17356 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
17357 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
17358 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
17359 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
17360 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
17361 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
17362 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
17363 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
17364 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
17365 * doc/tm.texi: Regenerate.
17366 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
17367 either true or false.
17369 2015-04-27 Jeff Law <law@redhat.com>
17371 PR tree-optimization/65217
17372 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
17373 of them has a single use, make sure it is the LHS of the implied
17376 2015-04-28 Alan Modra <amodra@gmail.com>
17379 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
17380 (offsettable_ok_by_alignment): Use minimum of decl and toc
17381 pointer alignment. Replace dead code with assertion.
17382 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
17383 case if size exceeds toc pointer alignment.
17384 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
17385 (rs6000_emit_move): Likewise.
17386 * configure.ac: Add linker toc pointer alignment check.
17387 * configure: Regenerate.
17388 * config.in: Regenerate.
17390 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
17392 * config.gcc: Add h8300-*-linux.
17393 * config/h8300/linux.h: New.
17394 * config/h8300/t-linux: New.
17395 * config/h8300/h8300.c (h8300_option_override): Normal mode
17396 is not supported for h8300-*-linux.
17397 (h8300_file_start): Target priority change.
17398 (get_shift_alg): Likewise.
17399 (h8300_shift_need_scratch_p): Likewise.
17400 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
17401 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
17403 2015-04-27 Caroline Tice <cmtice@google.com>
17405 * final.c (final_scan_insn): Output cold_function_name as function
17407 * varasm.c (cold_function_name): Make global.
17408 (assemble_start_function): Re-set cold_function_name.
17409 (assemble_end_function): Output cold partition size.
17410 * varasm.h (cold_function_name): Declare global.
17412 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
17414 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
17415 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
17417 (*movxi_internal_avx512f): Ditto.
17418 (define_split): Check for xmm16+, when splitting scalar float_extend.
17419 (*extendsfdf2_mixed): Use "v" constraint.
17420 (define_split): Check for xmm16+, when splitting scalar float_truncate.
17421 (*truncdfsf_fast_sse): Use "v" constraint.
17422 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
17423 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
17424 (define_peephole2): Check for xmm16+, when converting scalar
17426 (define_peephole2): Check for xmm16+, when converting scalar
17428 (*fop_<mode>_comm_mixed): Use "v" constraint.
17429 (*fop_<mode>_comm_sse): Ditto.
17430 (*fop_<mode>_1_mixed): Ditto.
17431 (*sqrt<mode>2_sse): Ditto.
17432 (*ieee_s<ieee_maxmin><mode>3): Ditto.
17434 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17436 * combine.c (simplify_if_then_else): Use std::swap instead
17437 of manually swapping.
17438 (known_cond): Likewise.
17439 (simplify_comparison): Likewise.
17441 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
17444 * config/rs6000/htm.md: Remove all define_expands.
17445 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
17446 UNSPECV_HTM_TABORTWCI): Remove.
17447 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
17448 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
17449 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
17450 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
17451 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
17452 tabortwci_internal): Remove define_insns.
17453 (tabort<wd>c, tabort<wd>ci): New define_insns.
17454 (tabort): Use gpc_reg_operand.
17455 (tcheck): Remove operand.
17456 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
17457 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
17459 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
17460 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
17461 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
17462 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
17463 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
17464 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
17465 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
17466 (tcheck): Remove builtin argument.
17467 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
17469 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
17470 tabortdc and tabortdci builtins when not in 64-bit mode.
17471 Modify code to handle the loss of the HTM define_expands.
17472 Emit code to copy the CR register to TARGET.
17473 (htm_init_builtins): Modify code to handle the loss of the HTM
17475 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
17476 (RS6000_BTC_64BIT): Likewise.
17477 (RS6000_BTC_CR): New macro.
17478 * doc/extend.texi: Update documentation for htm builtins.
17480 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17482 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
17483 of manually swapping.
17484 (simplify_associative_operation): Likewise.
17485 (simplify_binary_operation): Likewise.
17486 (simplify_plus_minus): Likewise.
17487 (simplify_relational_operation): Likewise.
17488 (simplify_ternary_operation): Likewise.
17490 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
17492 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
17493 (xs_hi_nonmemory_operand): Remove error.
17494 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
17495 general_operand rather than xs_hi_general_operand.
17497 2015-04-27 Richard Biener <rguenther@suse.de>
17499 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
17500 (record_equivalences_from_stmt): Valueize rhs.
17501 (record_equality): Canonicalize x and y order via
17502 tree_swap_operands_p. Do not swap operands for same loop depth.
17504 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
17508 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
17509 Add hint how to use own spec file.
17511 2015-04-27 Jakub Jelinek <jakub@redhat.com>
17513 PR tree-optimization/65875
17514 * tree-vrp.c (update_value_range): If in is_new case setting
17515 old_vr to VR_VARYING, also set new_vr to it. Remove
17516 old_vr->type == VR_VARYING test.
17517 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
17518 SSA_PROP_INTERESTING if update_value_range returned true,
17519 but new range is VR_VARYING.
17521 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
17523 * combine.c (sign_extend_short_imm): New.
17524 (set_nonzero_bits_and_sign_copies): Use above new function for sign
17525 extension of src short immediate.
17526 (reg_nonzero_bits_for_combine): Likewise for tem.
17528 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
17530 * stor-layout.c (self_referential_component_ref_p): New predicate.
17531 (copy_self_referential_tree_r): Use it.
17532 (self_referential_size): Punt for simple operations directly involving
17533 self-referential component references.
17534 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
17536 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
17538 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
17540 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
17542 * vec.h (vec): Make splice arguments const. Update definitions
17545 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
17547 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
17550 2015-04-26 Tom de Vries <tom@codesourcery.com>
17552 PR tree-optimization/65826
17553 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
17555 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
17557 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
17558 (*madd3<mode>): Ditto.
17559 (*msub4<mode>): Ditto.
17560 (*msub3<mode>): Ditto.
17561 (*nmadd4<mode>): Ditto.
17562 (*nmadd3<mode>): Ditto.
17563 (*nmadd4<mode>_fastmath): Ditto.
17564 (*nmadd3<mode>_fastmath): Ditto.
17565 (*nmsub4<mode>): Ditto.
17566 (*nmsub3<mode>): Ditto.
17567 (*nmsub4<mode>_fastmath): Ditto.
17568 (*nmsub3<mode>_fastmath): Ditto.
17570 2015-04-24 Jason Merrill <jason@redhat.com>
17573 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
17574 down when building TYPE_CANONICAL.
17575 (build_pointer_type_for_mode): Likewise.
17577 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
17579 * genrecog.c (validate_pattern): Check matching constraint refers
17580 to a lower numbered operand.
17582 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17585 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
17586 save to independent variables use the Save attribute. This will
17587 allow these options to be modified with the #pragma/attribute
17589 (-mallow-movmisalign): Likewise.
17590 (-mallow-df-permute): Likewise.
17591 (-msched-groups): Likewise.
17592 (-malways-hint): Likewise.
17593 (-malign-branch-targets): Likewise.
17594 (-mvectorize-builtins): Likewise.
17595 (-msave-toc-indirect): Likewise.
17597 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
17598 can be set via the #pragma/attribute target support.
17599 (rs6000_opt_vars): Likewise.
17600 (rs6000_inner_target_options): If VSX was set, also set
17601 -mno-avoid-indexed-addresses.
17603 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17605 * config/arm/iterators.md (shiftable_ops): Rename to...
17606 (SHIFTABLE_OPS): ... This. Update use in comments.
17607 (ior_xor): Rename to...
17608 (IOR_XOR): ... This.
17609 (vqh_ops): Rename to...
17610 (VQH_OPS): ... This.
17611 (vqhs_ops): Rename to...
17612 (VQHS_OPS): ... This.
17613 (rshifts): Rename to...
17614 (RSHIFTS): ... This.
17615 (returns): Rename to...
17616 (RETURNS): ... This.
17617 * config/arm/arm.md: Update uses of the above.
17618 * config/arm/neon.md: Likewise.
17620 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17622 * config.host (case ${host}): Add aarch64*-*-linux case.
17623 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
17624 fields to all the cores.
17625 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
17626 Add MCPU_MTUNE_NATIVE_SPECS.
17627 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
17628 field to all extensions.
17629 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
17630 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
17631 Adjust definition of AARCH64_OPT_EXTENSION.
17632 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
17633 (MCPU_MTUNE_NATIVE_SPECS): Define.
17634 * config/aarch64/driver-aarch64.c: New file.
17635 * config/aarch64/x-arch64: New file.
17636 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
17639 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
17640 Wei Mi <wmi@google.com>
17642 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
17643 * config/i386/i386.c (extract_base_offset_in_addr): New function.
17644 (ix86_operands_ok_for_move_multiple): Ditto.
17645 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
17646 (movlpd/movhpd to movupd peephole2): Ditto.
17648 2015-04-24 Marek Polacek <polacek@redhat.com>
17651 * input.h (from_macro_expansion_at): Define.
17654 * doc/invoke.texi: Update description of -Wlogical-op.
17656 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
17658 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
17659 ternary operator in fprintf and harmonize spacing.
17661 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
17663 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
17664 Mark operand1 commutative.
17666 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
17668 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
17669 input operands in memory.
17670 (*vec_concatv2si_sse4_1): Ditto.
17671 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
17672 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
17674 (vec_extract_hi_v32hi): Ditto.
17675 (vec_extract_hi_v64hi): Ditto.
17676 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
17678 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
17679 Steven Bosscher <steven@gcc.gnu.org>
17681 PR rtl-optimization/34503
17682 * cprop.c (cprop_reg_p): New.
17683 (hash_scan_set): Use above function to check if register can be
17685 (find_avail_set): Return up to two sets, one whose source is a
17686 register and one whose source is a constant. Sets are returned in an
17687 array passed as parameter rather than as a return value.
17688 (cprop_insn): Use a do while loop rather than a goto. Try each of the
17689 sets returned by find_avail_set, starting with the one whose source is
17690 a constant. Use cprop_reg_p to check if register can be propagated.
17691 (do_local_cprop): Use cprop_reg_p to check if register can be
17693 (implicit_set_cond_p): Likewise.
17695 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
17697 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
17698 (sem_function::equals): IGNORED_NODES parameter is now unused;
17699 update call of equals_private.
17700 (sem_function::equals_private): Do not call equals_wpa; skip
17701 gimple body matching if there is no body.
17702 (sem_function::init): Add logic to hash tthunk info.
17703 (sem_function::parse): Also parse thunks.
17704 * ipa-icf.h (equals_private): Update declaration.
17706 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17708 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
17709 asterisk from name so this can be generated directly.
17710 (*altivec_stvx_<mode>_internal): Likewise.
17711 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
17712 that this is never called during or after reload/lra.
17713 (rs6000_frame_related): Remove split_reg
17714 argument and logic that references it.
17715 (emit_frame_save): Remove last parameter from call to
17716 rs6000_frame_related.
17717 (rs6000_emit_prologue): Remove last parameter from eight calls to
17718 rs6000_frame_related. Force generation of stvx instruction for
17719 Altivec register saves. Remove split_reg handling, which is no
17721 (rs6000_emit_epilogue): Force generation of lvx instruction for
17722 Altivec register restores.
17724 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17726 * config/rs6000/rs6000.opt (mcrypto): Change option description to
17727 match category changes in ISA 2.07B.
17729 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17731 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
17733 (cmp_op, cmp_type): New code attributes.
17734 (NEON_VCMP, NEON_VACMP): New int iterators.
17735 (cmp_op_unsp): New int attribute.
17736 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
17737 (neon_vceq<mode>): Delete.
17738 (neon_vc<cmp_op><mode>_insn): New pattern.
17739 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
17740 (neon_vcgeu<mode>): Delete.
17741 (neon_vcle<mode>): Likewise.
17742 (neon_vclt<mode>: Likewise.
17743 (neon_vcage<mode>): Likewise.
17744 (neon_vcagt<mode>): Likewise.
17745 (neon_vca<cmp_op><mode>): New define_expand.
17746 (neon_vca<cmp_op><mode>_insn): New pattern.
17747 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
17749 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
17751 * tree.h (attribute_value_equal): Declare.
17752 * tree.c (attribute_value_equal): Export.
17754 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
17756 * ipa-icf.c (sem_item::compare_attributes): New function.
17757 (sem_item::compare_referenced_symbol_properties): Compare variable
17759 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
17760 (sem_function::param_used_p): New function.
17761 (sem_function::equals_wpa): Fix attribute comparsion; match
17762 parameter type codes; do not compare paremter flags when
17763 they are not used; compare edge flags; compare indirect calls.
17764 (sem_item::update_hash_by_addr_refs): Hash reference type.
17765 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
17766 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
17767 reference use type.
17768 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
17769 * ipa-icf.h (compare_attributes, param_used_p): Declare.
17771 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
17773 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
17775 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
17776 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
17777 (sem_item::compare_referenced_symbol_properties): New.
17778 (sem_item::hash_referenced_symbol_properties): New.
17779 (sem_item::compare_cgraph_references): Rename to ...
17780 (sem_item::compare_symbol_references): ... this one; use
17781 compare_referenced_symbol_properties.
17782 (sem_function::equals_wpa): Do not compare
17783 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
17784 DECL_IS_OPERATOR_NEW; compare pointer sizes.
17785 (sem_item::update_hash_by_addr_refs): Call
17786 hash_referenced_symbol_properties.
17787 (sem_item::update_hash_by_local_refs): Cleanup.
17788 (sem_function::merge): Do not mix up symbol properties.
17789 (sem_variable::equals_wpa): Use compare_symbol_references.
17790 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
17791 (sem_item::hash_referenced_symbol_properties): New.
17792 (sem_item::compare_symbol_references): New.
17793 (sem_item::compare_cgraph_references): Remove.
17795 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
17798 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
17799 Emit size of local.
17801 2015-04-23 Nick Clifton <nickc@redhat.com>
17803 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
17804 ATTRIBUTE_UNUSED to x parameter.
17805 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
17807 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17809 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
17810 TARGET_CRYPTO to TARGET_P8_VECTOR>
17811 (crypto_vpermxor_<mode>): Likewise.
17812 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
17813 (BU_CRYPTO_3A): Likewise.
17814 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
17815 (BU_CRYPTO_OVERLOAD_3A): New #define.
17816 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
17817 (VPMSUMH): Likewise.
17818 (VPMSUMW): Likewise.
17819 (VPMSUMD): Likewise.
17820 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
17821 (VPERMXOR_V4SI): Likewise.
17822 (VPERMXOR_V8HI): Likewise.
17823 (VPERMXOR_V16QI): Likewise.
17824 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
17825 BU_CRYPTO_OVERLOAD_2A.
17826 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
17827 BU_CRYPTO_OVERLOAD_3A.
17828 * config/rs6000/rs6000.opt (mcrypto): Change description of
17831 2015-04-23 Richard Biener <rguenther@suse.de>
17833 * passes.def: Remove copy propagation passes run directly after CCP.
17834 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
17836 (ccp_visit_phi_node): Rework to handle first executable edge
17839 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
17841 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
17842 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
17843 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
17844 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
17845 (thumb_legimitimize_reload_address): Remove.
17846 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
17848 (thumb_legimitimize_reload_address): Remove.
17850 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17852 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
17854 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17856 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
17858 (store_multiple): Likewise.
17860 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17862 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
17863 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
17864 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
17865 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
17866 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
17867 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
17868 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
17869 Specify issue_rate value.
17870 (arm_issue_rate): Look up issue rate from tuning structs. Remove
17871 large switch statement.
17872 (arm_marvell_pj4_tune): New struct.
17873 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
17876 2015-04-23 Richard Biener <rguenther@suse.de>
17878 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
17879 (vect_find_last_store_in_slp_instance): Rename to ...
17880 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
17881 (vect_analyze_slp_cost_1): Use vector_load for constant defs
17882 and vec_construct for external defs when estimating prologue cost.
17883 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
17884 Compute costs here only when vectorizing loops.
17885 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
17886 have been determined.
17887 (vect_schedule_slp_instance): Simplify vectorized code placement
17888 and prepare for in-BB external defs.
17889 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
17890 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
17891 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
17893 (vect_model_load_cost): Likewise.
17894 (vectorizable_store): Instead add it here.
17895 (vectorizable_load): Likewise.
17896 (vect_is_simple_use): Dump def type textually.
17898 2015-04-23 Richard Biener <rguenther@suse.de>
17900 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
17901 * cfgloop.c (verify_loop_structure): Verify the root loop node.
17902 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
17903 instead of get_eh_region_from_lp_number.
17904 * loop-init.c (fix_loop_structure): If we removed a loop, reset
17907 2015-04-23 Anton Blanchard <anton@samba.org>
17909 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
17910 need for -mprofile-kernel to save LR to stack.
17912 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17914 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
17916 (insn_is_swappable_p): Return 1 for a convert from double to
17917 single precision when all of its uses are splats of BE element
17920 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17922 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
17924 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17927 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
17928 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
17929 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
17931 (rs6000_builtin_mask_for_load): Return 0 for targets with
17932 efficient unaligned VSX accesses so that the vectorizer will use
17933 direct unaligned loads.
17934 (rs6000_builtin_support_vector_misalignment): Always return true
17935 for targets with efficient unaligned VSX accesses.
17936 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
17937 stores on targets with efficient unaligned VSX accesses is almost
17938 always the same as the cost of an aligned load or store, so model
17940 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
17941 unaligned vectors if we have efficient unaligned VSX accesses.
17942 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
17943 undocumented option.
17945 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17948 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
17950 * config.gcc (LIBC_MUSL): New tm_defines macro.
17951 * config/linux.h (OPTION_MUSL): Define.
17952 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
17953 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
17954 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
17956 * config/linux.opt (mmusl): New option.
17957 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
17958 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
17960 * configure: Regenerate.
17962 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
17964 * config.gcc (LIBC_MUSL): New tm_defines macro.
17965 * config/linux.h (OPTION_MUSL): Define.
17966 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
17967 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
17968 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
17970 * config/linux.opt (mmusl): New option.
17971 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
17972 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
17974 * configure: Regenerate.
17976 2015-04-22 Yury Gribov <y.gribov@samsung.com>
17978 * doc/invoke.texi (-fsanitize-sections): Update description.
17979 * asan.c (set_sanitized_sections): Parse incoming arg.
17980 (section_sanitized_p): Support wildcards.
17982 2015-04-22 Tom de Vries <tom@codesourcery.com>
17984 PR tree-optimization/65823
17985 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
17986 equality between ap_copy and ap.
17988 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17991 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
17993 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17996 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
17998 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18001 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
18002 remove already contained t-files.
18004 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18006 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
18007 Remove unneeded forward declarations.
18008 (suitable_for_tail_call_opt_p): Commentary typo fix.
18010 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18012 * varasm.c (emit_bss): Remove redundant guard.
18014 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18016 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
18018 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18020 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
18022 2015-04-22 Hale Wang <hale.wang@arm.com>
18023 Terry Guo <terry.guo@arm.com>
18025 PR rtl-optimization/64818
18026 * combine.c (can_combine_p): Don't combine user-specified
18027 register if it is in an asm input.
18029 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
18032 * passes.def (early_optimizations): Add pass_dse.
18034 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18036 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
18037 * reorg.c (redundant_insn): Remove ifdef
18038 INSN_REFERENCES_ARE_DELAYED.
18039 * resource.c (mark_referenced_resources): Likewise.
18041 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18043 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
18044 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
18045 * resource.c (mark_set_resources): Likewise.
18047 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18049 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
18050 * cfgcleanup.c (flow_find_cross_jump): Likewise.
18051 (flow_find_head_matching_sequence): Likewise.
18052 (try_head_merge_bb): Likewise.
18053 * combine.c (can_combine_p): Likewise.
18054 (try_combine): Likewise.
18055 (distribute_notes): Likewise.
18056 * df-problems.c (can_move_insns_across): Likewise.
18057 * final.c (final): Likewise.
18058 * gcse.c (insert_insn_end_basic_block): Likewise.
18059 * ira.c (find_moveable_pseudos): Likewise.
18060 * reorg.c (try_merge_delay_insns): Likewise.
18061 (fill_simple_delay_slots): Likewise.
18062 (fill_slots_from_thread): Likewise.
18063 * sched-deps.c (sched_analyze_2): Likewise.
18065 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18067 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
18068 PIC_OFFSET_TABLE_REGNUM.
18070 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18072 * alias.c (init_alias_target): Remove ifdef
18073 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
18074 * df-scan.c (df_insn_refs_collect): Likewise.
18075 (df_get_regular_block_artificial_uses): Likewise.
18076 (df_get_eh_block_artificial_uses): Likewise.
18077 (df_get_entry_block_def_set): Likewise.
18078 (df_get_exit_block_use_set): Likewise.
18079 * emit-rtl.c (gen_rtx_REG): Likewise.
18080 * ira.c (ira_setup_eliminable_regset): Likewise.
18081 * reginfo.c (init_reg_sets_1): Likewise.
18082 * regrename.c (rename_chains): Likewise.
18083 * reload1.c (reload): Likewise.
18084 (eliminate_regs_in_insn): Likewise.
18085 * resource.c (mark_referenced_resources): Likewise.
18086 (init_resource_info): Likewise.
18088 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18090 * defaults.h (MASK_RETURN_ADDR): New definition.
18091 * except.c (expand_builtin_extract_return_addr): Remove ifdef
18094 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18096 * defaults.h (RETURN_ADDR_OFFSET): New definition.
18097 * except.c (expand_builtin_extract_return_addr): Remove ifdef
18098 RETURN_ADDR_OFFSET.
18099 (expand_builtin_frob_return_addr): Likewise.
18101 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18103 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
18104 (try_redirect_by_replacing_jump): Likewise.
18105 (rtl_tidy_fallthru_edge): Likewise.
18106 * combine.c (insn_a_feeds_b): Likewise.
18107 (find_split_point): Likewise.
18108 (simplify_set): Likewise.
18109 * cprop.c (cprop_jump): Likewise.
18110 * cse.c (cse_extended_basic_block): Likewise.
18111 * df-problems.c (can_move_insns_across): Likewise.
18112 * function.c (emit_use_return_register_into_block): Likewise.
18113 * haifa-sched.c (sched_init): Likewise.
18114 * ira.c (find_moveable_pseudos): Likewise.
18115 * loop-invariant.c (find_invariant_insn): Likewise.
18116 * lra-constraints.c (curr_insn_transform): Likewise.
18117 * postreload.c (reload_combine_recognize_const_pattern):
18119 * reload.c (find_reloads): Likewise.
18120 * reorg.c (delete_scheduled_jump): Likewise.
18121 (steal_delay_list_from_target): Likewise.
18122 (steal_delay_list_from_fallthrough): Likewise.
18123 (redundant_insn): Likewise.
18124 (fill_simple_delay_slots): Likewise.
18125 (fill_slots_from_thread): Likewise.
18126 (delete_computation): Likewise.
18127 * sched-rgn.c (add_branch_dependences): Likewise.
18129 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18131 * genconfig.c (main): Always define HAVE_cc0.
18132 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
18134 * cfgcleanup.c (flow_find_cross_jump): Likewise.
18135 (flow_find_head_matching_sequence): Likewise.
18136 (try_head_merge_bb): Likewise.
18137 * cfgrtl.c (rtl_merge_blocks): Likewise.
18138 (try_redirect_by_replacing_jump): Likewise.
18139 (rtl_tidy_fallthru_edge): Likewise.
18140 * combine.c (do_SUBST_MODE): Likewise.
18141 (insn_a_feeds_b): Likewise.
18142 (combine_instructions): Likewise.
18143 (can_combine_p): Likewise.
18144 (try_combine): Likewise.
18145 (find_split_point): Likewise.
18147 (simplify_set): Likewise.
18148 (distribute_notes): Likewise.
18149 * cprop.c (cprop_jump): Likewise.
18150 * cse.c (cse_extended_basic_block): Likewise.
18151 * df-problems.c (can_move_insns_across): Likewise.
18152 * final.c (final): Likewise.
18153 (final_scan_insn): Likewise.
18154 * function.c (emit_use_return_register_into_block): Likewise.
18155 * gcse.c (insert_insn_end_basic_block): Likewise.
18156 * haifa-sched.c (sched_init): Likewise.
18157 * ira.c (find_moveable_pseudos): Likewise.
18158 * loop-invariant.c (find_invariant_insn): Likewise.
18159 * lra-constraints.c (curr_insn_transform): Likewise.
18160 * optabs.c (prepare_cmp_insn): Likewise.
18161 * postreload.c (reload_combine_recognize_const_pattern):
18163 * reload.c (find_reloads): Likewise.
18164 (find_reloads_address_1): Likewise.
18165 * reorg.c (delete_scheduled_jump): Likewise.
18166 (steal_delay_list_from_target): Likewise.
18167 (steal_delay_list_from_fallthrough): Likewise.
18168 (try_merge_delay_insns): Likewise.
18169 (redundant_insn): Likewise.
18170 (fill_simple_delay_slots): Likewise.
18171 (fill_slots_from_thread): Likewise.
18172 (delete_computation): Likewise.
18173 (relax_delay_slots): Likewise.
18174 * sched-deps.c (sched_analyze_2): Likewise.
18175 * sched-rgn.c (add_branch_dependences): Likewise.
18177 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18179 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
18180 that is trivially ded on non cc0 targets.
18181 (simplify_set): Likewise.
18182 (mark_used_regs_combine): Likewise.
18183 * cse.c (new_basic_block): Likewise.
18184 (fold_rtx): Likewise.
18185 (cse_insn): Likewise.
18186 (cse_extended_basic_block): Likewise.
18187 (set_live_p): Likewise.
18188 * rtlanal.c (canonicalize_condition): Likewise.
18189 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18191 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18193 * conditions.h: Define macros even if HAVE_cc0 is undefined.
18194 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
18195 * final.c: Likewise.
18196 * jump.c: Likewise.
18197 * recog.c: Likewise.
18198 * recog.h: Declare functions even when HAVE_cc0 is undefined.
18199 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
18201 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18203 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
18204 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
18205 * builtins.c (expand_builtin): Remove check if
18206 EH_RETURN_DATA_REGNO is defined.
18207 * df-scan.c (df_bb_refs_collect): Likewise.
18208 (df_get_exit_block_use_set): Likewise.
18209 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
18210 * ira-lives.c (process_bb_node_lives): Likewise.
18211 * lra-lives.c (process_bb_lives): Likewise.
18213 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
18215 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
18216 FIRST_PSEUDO_REG): New.
18217 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
18218 (ARG_POINTER_REGNUM): Define to ARGP_REG.
18219 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
18220 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
18221 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
18222 (FIRST_INT_REG): New.
18223 (LAST_INT_REG): New.
18224 (FIRST_*_REG): Define using *_REG.
18225 (LAST_*_REG): Ditto.
18226 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
18227 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
18228 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
18230 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18232 * expmed.c: (synth_mult): Only assume overlapping
18233 shift with previous steps in alg_sub_t_m2 case.
18235 2015-04-21 Richard Biener <rguenther@suse.de>
18237 PR tree-optimization/65650
18238 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
18239 transitions involving copies.
18240 (set_lattice_value): Adjust for copy lattice state.
18241 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
18242 if that doesn't dominate the merge point.
18243 (bit_value_unop): Adjust what we treat as varying mask.
18244 (bit_value_binop): Likewise.
18245 (bit_value_assume_aligned): Likewise.
18246 (evaluate_stmt): When we simplified to a SSA name record a copy
18247 instead of dropping to varying.
18248 (visit_assignment): Simplify.
18250 * gimple-match.h (gimple_simplify): Add another callback.
18251 * gimple-fold.c (fold_stmt_1): Adjust caller.
18252 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
18253 for the 2nd callback.
18254 * gimple-match-head.c (gimple_simplify): Add a callback that is
18255 used to valueize the stmt operands and use it that way.
18257 2015-04-21 Richard Biener <rguenther@suse.de>
18259 PR tree-optimization/65788
18260 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
18262 2015-04-21 Richard Biener <rguenther@suse.de>
18264 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
18265 vec_construct cost by vec_stmt_cost.
18267 2015-04-21 Richard Biener <rguenther@suse.de>
18269 * cfghooks.h (create_basic_block): Replace with two overloads
18270 for RTL and GIMPLE.
18271 (split_block): Likewise.
18272 * cfghooks.c (split_block): Rename to ...
18273 (split_block_1): ... this.
18274 (split_block): Add two type-safe overloads for RTL and GIMPLE.
18275 (split_block_after_labels): Call split_block_1.
18276 (create_basic_block): Rename to ...
18277 (create_basic_block_1): ... this.
18278 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
18279 (create_empty_bb): Call create_basic_block_1.
18280 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
18281 split_block_after_labels.
18282 * omp-low.c (expand_parallel_call): Likewise.
18283 (expand_omp_target): Likewise.
18284 (simd_clone_adjust): Likewise.
18285 * tree-chkp.c (chkp_get_entry_block): Likewise.
18286 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
18287 create_basic_block overload.
18288 (cgraph_node::expand_thunk): Likewise.
18289 * tree-cfg.c (make_blocks): Likewise.
18290 (handle_abnormal_edges): Likewise.
18291 * tree-inline.c (copy_bb): Likewise.
18293 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18295 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
18297 (*xor_one_cmplsidi3_ze): Likewise.
18299 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
18301 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
18302 use df_remove_problem rather than manually removing problems, leaving
18303 holes in df->problems_in_order[].
18305 2015-04-21 Tom de Vries <tom@codesourcery.com>
18307 PR tree-optimization/65802
18308 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
18310 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18312 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
18314 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
18315 at '.'. Assert that there's enough space for everything.
18317 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
18319 PR tree-optimization/64950
18321 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
18324 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
18327 2015-04-20 Shiva Chen <shiva0217@gmail.com>
18329 PR rtl-optimization/64916
18330 * cfgcleanup.c (values_equal_p): New function.
18331 (can_replace_by): Use it.
18333 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
18336 * doc/invoke.texi ([-Wnarrowing]): Update.
18338 2015-04-20 Jeff Law <law@redhat.com>
18340 PR tree-optimization/65658
18341 * tree-ssa-threadupdate.c (redirection_block_p): Remove
18342 redundant test for GIMPLE_ASSIGN in last change.
18344 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
18346 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
18347 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
18348 (legitimize_tls_address): Ditto.
18349 (ix86_expand_move): Ditto.
18350 (ix86_expand_binary_operator): Remove reload_in_progress checks.
18351 (ix86_expand_unary_operator): Ditto.
18352 * config/i386/predicates.md (index_register_operand): Ditto.
18354 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
18356 * reorg.c (try_merge_delay_insns): Improve correctness checking
18357 for targets with multiple delay slots.
18359 2015-04-20 Jeff Law <law@redhat.com>
18361 PR tree-optimization/65658
18362 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
18365 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
18367 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
18368 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
18371 2015-04-20 Jakub Jelinek <jakub@redhat.com>
18374 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
18376 2015-04-20 Richard Biener <rguenther@suse.de>
18378 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
18379 * gimple-fold.c (gimple_build_valueize): New function.
18380 (gimple_build): Always use gimple_build_valueize as valueize hook.
18382 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
18385 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
18386 and overwrite variable parts if <= 1/2 the elements are variable.
18388 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
18390 PR rtl-optimization/65805
18391 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
18392 Don't use difference of offset and previous offset if
18393 update_sp_offset is non-zero.
18394 (eliminate_regs_in_insn): Ditto.
18395 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
18396 lra_eliminate_regs_1 call.
18397 * lra-constraints.c (get_equiv_with_elimination): Ditto.
18399 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
18401 * hash-table.h: Remove version of hash_table that stored value_type *.
18402 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
18403 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
18404 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
18405 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
18406 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
18407 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
18408 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
18409 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
18410 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
18411 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
18412 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
18413 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
18414 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
18415 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
18416 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
18417 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
18419 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18420 Jakub Jelinek <jakub@redhat.com>
18423 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
18424 subsequent SH_NONE operand does not overwrite an existing *special
18426 (adjust_extract): Handle case where a vec_extract operation is
18427 wrapped in a PARALLEL.
18429 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
18432 * config/i386/i386.c (ix86_binds_local_p): Define only if
18433 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
18435 2015-04-17 Jeff Law <law@redhat.com>
18437 PR tree-optimization/47679
18438 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
18439 * tree-ssa-scopedtables.c: New file.
18440 * tree-ssa-scopedtables.h: New file.
18441 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
18442 (const_and_copies): Change name/type.
18443 (record_const_or_copy): Move into tree-ssa-scopedtables.c
18444 (record_const_or_copy_1): Similarly.
18445 (restore_vars_to_original_value): Similarly.
18446 (pass_dominator::execute): Create and destroy const_and_copies table.
18447 (thread_across_edge): Update passing of const_and_copies.
18448 (record_temporary_equivalence): Use method calls rather than
18449 manipulating const_and_copies directly.
18450 (record_equality, cprop_into_successor_phis): Similarly.
18451 (dom_opt_dom_walker::before_dom_children): Similarly.
18452 (dom_opt_dom_walker::after_dom_children): Similarly.
18453 (eliminate_redundant_computations): Similarly.
18454 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
18455 (record_temporary_equivalence): Likewise.
18456 (invalidate_equivalences): Likewise.
18457 (record_temporary_equivalences_from_phis): Update due to type
18458 change of const_and_copies. Use method calls rather than
18459 manipulating the stack directly.
18460 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
18461 (thread_through_normal_block, thread_across_edge): Likewise.
18462 (thread_across_edge): Likewise.
18463 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
18464 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
18466 (identify_jump_threads): Update due to type change of equiv_stack.
18467 (finalize_jump_threads): Delete the equiv_stack when complete.
18469 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
18471 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
18472 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
18473 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
18475 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
18478 * config.gcc: Exit with a comment when we do not have a major version
18479 number for the FreeBSD target.
18481 2015-04-17 Jakub Jelinek <jakub@redhat.com>
18484 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
18485 maybe_allows_mem bitfields.
18486 (maybe_allows_none_start, maybe_allows_none_end,
18487 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
18488 maybe_allows_mem_end): New variables.
18489 (compute_maybe_allows): New function.
18490 (add_constraint): Use it to initialize maybe_allows_reg and
18491 maybe_allows_mem fields.
18492 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
18493 is_address constraints such that those that allow neither mem nor
18494 reg come first, then those that only allow reg but not mem, then
18495 those that only allow mem but not reg, then the rest.
18496 (write_allows_reg_mem_function): New function.
18497 (write_tm_preds_h): Call it.
18498 * stmt.c (parse_output_constraint, parse_input_constraint): Use
18499 the generated insn_extra_constraint_allows_reg_mem function
18500 instead of always setting *allows_reg = true; *allows_mem = true;
18501 for unknown extra constraints.
18503 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
18506 * output.h (default_binds_local_p_3): New.
18507 * varasm.c (default_binds_local_p_3): Make it public. Take an
18508 argument to indicate if common symbol may be local. If common
18509 symbol may be local, treat non-external variable as defined
18511 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
18512 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
18513 * config/i386/i386.c (ix86_binds_local_p): New.
18514 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
18515 ix86_binds_local_p.
18517 2015-04-17 Jakub Jelinek <jakub@redhat.com>
18520 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
18521 trying mem_loc_descriptor on XEXP (rtl, 0).
18523 2015-04-17 Martin Liska <mliska@suse.cz>
18525 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
18526 Release symbol_compare_collection.
18527 * ipa-reference.c: Add TODO that a vector should be released.
18529 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
18532 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
18533 to new AVR-LibC file layout (bug #44574).
18534 (*avrlibc_devicelib): Same.
18535 * config/avr/avr-mcus.def: Adjust comments.
18536 * config/avr/avr.opt (nodevicelib): Adjust help.
18538 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
18540 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
18542 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
18545 * gimplify.c (gimplify_init_constructor): Always emit a
18546 side-effecting constructor.
18548 2015-04-17 Tom de Vries <tom@codesourcery.com>
18550 PR tree-optimization/64950
18551 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
18552 in cfun->curr_properties.
18553 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
18554 if we generate an IFN_VA_ARG.
18555 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
18556 function if PROP_gimple_lva is not set in src function.
18558 2015-04-17 Tom de Vries <tom@codesourcery.com>
18559 Michael Matz <matz@suse.de>
18561 PR tree-optimization/64950
18562 * gimple-iterator.c (update_modified_stmts): Remove static.
18563 * gimple-iterator.h (update_modified_stmts): Declare.
18564 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
18565 (gimplify_va_arg_internal): New function.
18566 (gimplify_va_arg_expr): Use IFN_VA_ARG.
18567 * gimplify.h (gimplify_va_arg_internal): Declare.
18568 * internal-fn.c (expand_VA_ARG): New unreachable function.
18569 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
18570 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
18571 (expand_ifn_va_arg): New function.
18572 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
18573 (pass_stdarg::execute): Call expand_ifn_va_arg.
18574 (pass_data_lower_vaarg): New pass_data.
18575 (pass_lower_vaarg): New gimple_opt_pass.
18576 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
18577 (make_pass_lower_vaarg): New function.
18578 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
18579 properties_required field.
18580 * passes.def (all_passes): Add pass_lower_vaarg.
18581 * tree-pass.h (PROP_gimple_lva): Add define.
18582 (make_pass_lower_vaarg): Declare.
18584 2015-04-17 Tom de Vries <tom@codesourcery.com>
18586 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
18587 * calls.c (call_expr_flags): Same.
18589 2015-04-17 Tom de Vries <tom@codesourcery.com>
18591 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
18592 (pass_stdarg::execute): ... here.
18594 2015-04-17 Tom de Vries <tom@codesourcery.com>
18595 Michael Matz <matz@suse.de>
18597 * tree-cfg.c (make_blocks_1): Factor out of ...
18598 (make_blocks): ... here.
18599 (make_edges_bb): Factor out of ...
18600 (make_edges): ... here.
18601 (gimple_find_sub_bbs): New function.
18602 * tree-cfg.h (gimple_find_sub_bbs): Declare.
18604 2015-04-17 Tom de Vries <tom@codesourcery.com>
18606 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
18608 2015-04-17 Yury Gribov <y.gribov@samsung.com>
18610 * asan.c (set_sanitized_sections): New function.
18611 (section_sanitized_p): Ditto.
18612 (asan_protect_global): Optionally sanitize user-defined
18614 * asan.h (set_sanitized_sections): Declare new function.
18615 * common.opt (fsanitize-sections): New option.
18616 * doc/invoke.texi (-fsanitize-sections): Document new option.
18617 * opts-global.c (handle_common_deferred_options): Handle new
18620 2015-04-17 Jakub Jelinek <jakub@redhat.com>
18623 * dwarf2out.c (loc_list_from_tree): Return NULL
18624 for DEBUG_EXPR_DECL.
18626 2015-04-17 Christian Bruel <christian.bruel@st.com>
18628 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
18631 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18633 * ira-color.c (setup_left_conflict_sizes_p): Do not process
18634 node itself when computing left conflict subnode size.
18636 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
18638 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
18639 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
18640 *fop_<mode>_1_sse using enabled attribute. Use
18641 register_mixssei387nonimm_operand operand 1 predicate. Change
18642 alternative 3 constraints from "x" to "v".
18644 2015-04-16 Richard Biener <rguenther@suse.de>
18646 PR tree-optimization/65774
18647 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
18648 bit-value tracking on.
18650 2015-04-16 Richard Biener <rguenther@suse.de>
18652 PR tree-optimization/64277
18653 * tree-vrp.c (check_array_ref): Fix anti-range handling,
18654 simplify upper bound handling.
18655 (search_for_addr_array): Simplify.
18656 (check_array_bounds): Handle ADDR_EXPRs here.
18657 (check_all_array_refs): Simplify.
18659 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
18661 * config/i386/i386.c (print_reg): Rewrite function.
18663 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18665 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
18666 Invert the condition.
18668 2015-04-16 Renlin Li <renlin.li@arm.com>
18670 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
18671 simplifications for UNSIGNED_FLOAT.
18673 2015-04-16 Nick Clifton <nickc@redhat.com>
18675 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
18677 (enum rl78_cpu_type): New.
18678 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
18679 (umulhi3_shift_virt): Remove m constraint from operand 1.
18680 (umulqihi3_virt): Likewise.
18681 * config/rl78/rl78.c (rl78_option_override): Add code to process
18682 -mcpu and -mmul options.
18683 (rl78_alloc_physical_registers): Add code to handle divhi and
18684 divsi valloc attributes.
18685 (set_origin): Likewise.
18686 * config/rl78/rl78.h (RL78_MUL_G14): Define.
18687 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
18688 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
18690 (ASM_SPEC): Pass -mcpu on to assembler.
18691 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
18692 (mulqi3_rl78): Likewise.
18693 (mulhi3_g13): Likewise.
18694 (mulhi3): Generate the G13 or G14 versions of the insn directly.
18695 (mulsi3): Likewise.
18696 (mulhi3_g14): Add clobbers of AX and BC.
18697 (mulsi3_g14): Likewise.
18698 (mulsi3_g13): Likewise.
18699 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
18700 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
18701 * config/rl78/rl78.opt (mmul): Initialise value to
18703 (mcpu): New option.
18704 (m13, m14, mrl78): New option aliases.
18705 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
18706 (MULTILIB_DIRNAMES): Add g13 and g14.
18707 * doc/invoke.texi: Document -mcpu and -mmul options.
18709 2015-04-16 Richard Biener <rguenther@suse.de>
18711 * tree-ssa-ccp.c (likely_value): See if we have operands that
18712 are marked as never simulate again and return CONSTANT in this
18714 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
18715 not have any operands that will be simulated again as
18716 not being simulated again.
18718 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
18720 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
18721 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
18722 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
18724 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
18726 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
18727 *float<SWI48:mode><MODEF:mode>2_sse.
18728 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
18730 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
18733 2015-04-15 Tom de Vries <tom@codesourcery.com>
18736 * function.c (push_dummy_function): New function.
18737 (init_dummy_function_start): Use push_dummy_function.
18738 (pop_dummy_function): New function. Factored out of ...
18739 (expand_dummy_function_end): ... here.
18740 * function.h (push_dummy_function, pop_dummy_function): Declare.
18741 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
18742 pop_dummy_function.
18743 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
18745 2015-04-15 Jeff Law <law@redhat.com>
18747 PR tree-optimization/47679
18748 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
18749 need for forward declaration in upcoming changes.
18750 (record_conditions, record_edge_info): Likewise.
18752 PR rtl-optimization/42522
18753 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
18754 SIGN_EXTRACT as a whole object rather than simplifying
18757 2015-04-15 Jakub Jelinek <jakub@redhat.com>
18760 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
18761 and GIMPLE_PREDICT use break instead of return true. For
18762 GIMPLE_EH_DISPATCH, compare dispatch region.
18764 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
18766 * doc/extend.texi (__sync Builtins): Simplify some text. Update
18767 details about the implementation. Make clear preference for
18768 __atomic builtins. Reduce possibility of future change.
18770 2015-04-15 Nick Clifton <nickc@redhat.com>
18772 * config/rx/rx.opt (mallow-string-insns): New option.
18773 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
18774 builtin if string instructions are denied.
18775 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
18776 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
18778 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
18779 * config/rx/rx.md (movstr): Enable pattern only if string
18780 instructions are allowed.
18781 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
18782 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
18783 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
18784 (MULTILIB_DIRNAMES): Add no-strings.
18785 * doc/invoke.texi: Document -mno-allow-string-insns.
18787 2015-04-15 Alan Modra <amodra@gmail.com>
18791 PR middle-end/36043
18792 * calls.c (load_register_parameters): Don't load past end of
18793 mem unless suitably aligned.
18795 2015-04-15 Nick Clifton <nickc@redhat.com>
18797 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
18798 decrement instruction as being frame related.
18799 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
18801 If zero extending a function address enclose the operation in
18803 (rl78_preferred_reload_class): New function.
18804 (TARGET_PREFERRED_RELOAD_CLASS): Define.
18805 * config/rl78/rl78.md: Remove useless constraints in expanders.
18806 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
18807 (mulhi3_rl78): Likewise.
18808 (mulhi3_g13): Likewise.
18809 (mulsi3_rl78): Likewise.
18810 (es_addr): Move to before the multiply patterns.
18812 2015-04-15 Alan Modra <amodra@gmail.com>
18814 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
18815 and sequence_stack. Add seq.
18816 (seq_stack): Delete.
18817 * function.c (prepare_function_start): Don't access x_last_insn.
18818 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
18819 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
18820 * emit_rtl.c (start_sequence, push_topmost_sequence,
18821 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
18822 sequence accessors.
18823 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
18824 remove_insn): Likewise. Simplify.
18825 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
18826 and pop_topmost_sequence.
18827 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
18829 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
18831 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
18834 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
18837 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
18839 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
18840 (LEGACY_INT_REGNO_P): Ditto.
18841 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
18842 (ANY_MASK_REG_P): Remove.
18843 (BND_REG_P): Rename from ANY_BND_REG_P.
18844 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
18845 legacy integer registers. Do not handle MMX_REG_P in a special way.
18846 Merge 64byte and 32byte SSE handling.
18848 2015-04-14 Nick Clifton <nickc@redhat.com>
18850 * expr.c (expand_assignment): Force an address offset computation
18851 into a register before changing its mode.
18852 (expand_expr_real_1): Likewise.
18854 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
18856 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
18857 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
18858 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
18859 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
18860 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
18861 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
18862 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
18863 and __aarch64_vget_lane_any.
18865 2015-04-14 Jakub Jelinek <jakub@redhat.com>
18867 PR rtl-optimization/65761
18868 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
18869 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
18871 2015-04-14 Richard Biener <rguenther@suse.de>
18873 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
18874 (graphite_can_represent_scev): Use POINTER_TYPE_P.
18876 2015-04-14 Richard Biener <rguenther@suse.de>
18878 PR tree-optimization/65758
18879 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
18881 (ccp_lattice_meet): Likewise.
18882 (bit_value_unop): Likewise.
18883 (bit_value_binop): Likewise.
18884 (bit_value_assume_aligned): Likewise.
18886 2015-04-14 Christian Bruel <christian.bruel@st.com>
18888 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
18891 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
18893 PR tree-optimization/63387
18894 * match.pd ((x unord x) | (y unord y) -> (x unord y),
18895 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
18897 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
18899 * config/i386/predicates.md (any_QIreg_operand): Rename from
18900 q_regs_operand. Do not process subregs.
18901 (QIreg_operand): Use QI_REGNO_P predicate.
18902 (ext_QIreg_operand): Ditto.
18903 (ext_register_operand): Ditto.
18904 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
18905 (AND splitters): Ditto.
18906 (AND with -65536 splitter): Add SWI48 mode for operand 0.
18907 (AND with -256 splitter): Use any_QIreg_operand predicate and
18908 SWI248 mode for operand 0.
18909 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
18910 mode for operand 0.
18911 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
18913 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
18915 * doc/plugins.texi: Rewrite first introductory paragraph.
18917 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
18919 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
18920 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
18922 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
18924 * ipa-profie.c (ipa_profile): Check number of parameters
18925 and possible polymorphic call targets before
18928 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
18930 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
18931 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
18933 2015-04-13 Richard Biener <rguenther@suse.de>
18935 PR tree-optimization/65204
18936 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
18937 takens for bit-CCP.
18939 2015-04-13 Richard Biener <rguenther@suse.de>
18942 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
18943 and cond_not_taken_branch_cost to 4 and 2.
18944 (bdver2_cost): Likewise.
18945 (bdver3_cost): Likewise.
18946 (bdver4_cost): Likewise.
18948 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
18950 * hash-table.h (hash_table constructor): Add mem stats.
18951 (alloc_entries): Likewise.
18953 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
18955 * ipa-cp.c (ipcp_driver): Relase prev_edge.
18956 * passes.c (execute_one_pass): Only add transform if pass has one.
18958 2015-04-12 Joseph Myers <joseph@codesourcery.com>
18960 * config/i386/i386.c (ix86_option_override_internal): Don't set
18961 -fprefetch-loop-arrays if optimizing for size.
18963 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
18964 Gerald Pfeifer <gerald@pfeifer.com>
18966 * doc/contrib.texi (Contributors): Add Martin Jambor and
18969 2015-04-12 Jakub Jelinek <jakub@redhat.com>
18971 * BASE-VER: Set to 6.0.0.
18973 PR tree-optimization/65747
18974 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
18975 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
18977 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
18979 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
18980 sentence. Improve grammar.
18982 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
18984 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
18986 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
18989 * ipa-inline-transform.c (speculation_removed): Remove static var.
18990 (check_speculations): New function.
18991 (clone_inlined_nodes): Do not check spculations.
18992 (inline_call): Call check_speculations.
18993 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
18994 consider non-invariants.
18996 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
18997 Martin Liska <mliska@suse.cz>
19000 * ipa-icf.c (sem_item::compare_cgraph_references): function and
19001 variable can not match.
19002 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
19003 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
19005 2015-04-11 Jakub Jelinek <jakub@redhat.com>
19007 PR tree-optimization/65735
19008 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
19009 Remove visited_phis argument, add visited_bbs, avoid recursing into the
19010 same bb rather than just into the same phi node.
19011 (thread_through_normal_block): Adjust caller.
19013 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
19015 * doc/contrib.texi (Contributors): Add Ira Rosen.
19017 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
19019 * gcov.c (find_source): Fix miswording in error message.
19020 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
19021 (ix86_expand_sse_comi_round): Fix typo in error message.
19023 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
19025 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
19027 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
19029 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
19031 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
19034 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
19035 Print bad_spills_num and insn_pseudos_num.
19037 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19040 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
19041 when creating +1 values for SImode.
19043 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
19046 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
19049 2015-04-10 Jakub Jelinek <jakub@redhat.com>
19050 Iain Sandoe <iain@codesourcery.com>
19053 * configure: Regenerate.
19055 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
19058 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
19060 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
19062 * doc/contrib.texi (Contributors): Add John Marino.
19064 2015-04-09 Jakub Jelinek <jakub@redhat.com>
19066 PR tree-optimization/65709
19067 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
19068 TREE_TYPE (TREE_TYPE (t)).
19070 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
19073 * lra-int.h (lra_bad_spill_regno_start): New.
19074 * lra.c (lra_bad_spill_regno_start): New.
19075 (lra): Set up lra_bad_spill_regno_start. Set up
19076 lra_constraint_new_regno_start unconditionally.
19077 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
19080 2015-04-09 Marek Polacek <polacek@redhat.com>
19081 Jakub Jelinek <jakub@redhat.com>
19083 PR middle-end/65554
19084 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
19085 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
19088 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
19090 PR rtl-optimization/65693
19091 * combine.c (is_parallel_of_n_reg_sets): Move outside of
19094 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
19097 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
19098 device specs file if "device-specs%s" didn't resolve to a path.
19100 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
19103 * config/i386/i386.c (fixup_modeless_constant): New.
19104 (ix86_expand_args_builtin): Fixup modeless constant operand.
19105 (ix86_expand_round_builtin): Ditto.
19106 (ix86_expand_special_args_builtin): Ditto.
19107 (ix86_expand_builtin): Ditto.
19109 2015-04-09 Jakub Jelinek <jakub@redhat.com>
19112 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
19113 any pow2 integer in between 2 and 0x80000000U inclusive.
19115 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
19117 PR rtl-optimization/65693
19118 * combine.c (is_parallel_of_n_reg_sets): Change first argument
19119 from an rtx_insn * to an rtx.
19120 (try_combine): Adjust both callers. Use it once more.
19122 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
19124 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
19125 (chkp_make_static_const_bounds): Search existing
19126 symbol by assembler name. Use make_decl_one_only.
19127 (chkp_get_zero_bounds_var): Remove node search which
19128 is now performed in chkp_make_static_const_bounds.
19129 (chkp_get_none_bounds_var): Likewise.
19131 2015-04-08 Michael Witten <mfwitten@gmail.com>
19133 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
19136 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19138 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
19140 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
19142 * doc/extend.texi (__sync Builtins): Fix grammar.
19144 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19146 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
19148 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19150 * varasm.c (emit_local): Move definition of align.
19152 2015-04-08 Julian Brown <julian@codesourcery.com>
19154 * config/nvptx/mkoffload.c (process): Support variable mapping.
19156 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
19158 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
19160 (alpha_write_one_linkage): Correct typo.
19162 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
19164 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
19166 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
19168 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
19170 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
19172 * tree-chkp.h (chkp_insert_retbnd_call): New.
19173 * tree-chkp.c (chkp_insert_retbnd_call): New.
19174 * ipa-split.c (insert_bndret_call_after): Remove.
19175 (split_function): Use chkp_insert_retbnd_call.
19176 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
19177 bounds for instrumented functions.
19179 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
19182 * calls.c (initialize_argument_information): When producing tail
19183 call also turn SSA_NAMES passed by references to original PARM_DECLs
19185 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
19188 * lra-remat.c (do_remat): Process input and non-input insn
19189 registers separately.
19191 2015-04-07 Jakub Jelinek <jakub@redhat.com>
19194 * valtrack.c (debug_lowpart_subreg): New function.
19195 (dead_debug_insert_temp): Use it.
19197 PR middle-end/65680
19198 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
19199 into signed HOST_WIDE_INT the same as negative bit_offset.
19201 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
19203 * ipa-comdats.c (ipa_comdats): Visit all thunks
19204 to set proper comdat group.
19206 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19209 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
19210 on constants for NEON VSTRUCT modes.
19212 2015-04-07 Jakub Jelinek <jakub@redhat.com>
19213 Iain Sandoe <iain@codesourcery.com>
19216 * configure: Regenerate.
19218 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
19221 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
19222 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
19223 that LFD is used to load double constants instead of LFS. Add
19224 defaults for all costs structures. Add comments for missing
19225 initialization fields.
19226 (size32_cost): Likewise.
19227 (size64_cost): Likewise.
19228 (rs64a_cost): Likewise.
19229 (mpccore_cost): Likewise.
19230 (ppc403_cost): Likewise.
19231 (ppc405_cost): Likewise.
19232 (ppc440_cost): Likewise.
19233 (ppc476_cost): Likewise.
19234 (ppc601_cost): Likewise.
19235 (ppc603_cost): Likewise.
19236 (ppc604_cost): Likewise.
19237 (ppc604e_cost): Likewise.
19238 (ppc620_cost): Likewise.
19239 (ppc630_cost): Likewise.
19240 (ppccell_cost): Likewise.
19241 (ppc750_cost): Likewise.
19242 (ppc7450_cost): Likewise.
19243 (ppc8540_cost): Likewise.
19244 (ppce300c2c3_cost): Likewise.
19245 (ppce500mc_cost): Likewise.
19246 (ppce500mc64_cost): Likewise.
19247 (ppce5500_cost): Likewise.
19248 (ppce6500_cost): Likewise.
19249 (titan_cost): Likewise.
19250 (power4_cost): Likewise.
19251 (power6_cost): Likewise.
19252 (power7_cost): Likewise.
19253 (power8_cost): Likewise.
19254 (ppca2_cost): Likewise.
19255 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
19257 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
19258 instead of XXLOR to copy SFmode to clear out dirty bits created
19259 when SFmode denormals are generated.
19260 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
19261 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
19263 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
19265 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
19266 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
19267 * config/aarch64/aarch64-tune.md: Regenerate.
19269 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
19271 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
19272 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
19273 * config/arm/arm-cores.def (exynos-m1): New core.
19274 * config/arm/arm-tune.md: Regenerate.
19275 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
19276 * config/arm/bpabi.h: Likewise.
19278 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
19280 * ipa-cp (set_single_call_flag): Remove too
19281 restrictive assert.
19283 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
19285 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
19286 GOMP_offload_unregister from the destructor.
19288 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
19290 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
19291 flags for instrumentation thunk.
19292 (chkp_produce_thunks): Likewise.
19294 2015-04-05 Martin Liska <mliska@suse.cz>
19297 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
19298 has computed data structure.
19299 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
19301 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
19303 * invoke.texi (inline-unit-growth): Increase growth to 20%
19304 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
19306 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
19309 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
19311 (lra_rematerialization_iter): New.
19312 * lra.c (lra): Initialize lra_rematerialization_iter.
19313 Stop updating lra_constraint_new_regno_start after switching of
19314 inheritance and rematerialization.
19315 * lra-remat.c (lra_rematerialization_iter): New.
19316 (lra_remat): Add printing pass iteration. Do rematerialization
19317 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
19319 2015-04-04 Richard Biener <rguenther@suse.de>
19321 PR tree-optimization/64909
19322 PR tree-optimization/65660
19323 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
19324 to take a cost vector for scalar iteration cost.
19325 (vect_get_single_scalar_iteration_cost): Likewise.
19326 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
19327 Compute the scalar iteration cost into a cost vector.
19328 (vect_get_known_peeling_cost): Use the scalar cost vector to
19329 account for the cost of the peeled iterations.
19330 (vect_estimate_min_profitable_iters): Likewise.
19331 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
19334 2015-04-04 Alan Modra <amodra@gmail.com>
19338 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
19339 0.0 constant unless TARGET_VSX.
19340 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
19343 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
19346 * ipa-inline-transform.c (inline_call): Skip sanity check to work
19349 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
19352 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
19353 speculative indirect edges to avoid ordering issue.
19355 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
19358 * ipa-inline.c (edge_badness): Add combined size to the denominator.
19360 2015-04-03 Jakub Jelinek <jakub@redhat.com>
19362 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
19363 TYPE_ARTIFICIAL on the .omp_data* types.
19365 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
19367 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
19368 instrumentation thunks.
19370 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
19372 * config/i386/i386.c (ix86_expand_call): Avoid nested
19373 PARALLEL in returned call value.
19375 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
19377 * lto-cgraph.c (input_cgraph_1): Always link instrumented
19378 assembler name with original one.
19380 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
19382 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
19384 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
19386 Revert parts of r216820.
19387 * config/i386/i386.md (movqi_internal): Correct type calculation
19388 for alternatives 3 and 5.
19390 2015-04-02 Jakub Jelinek <jakub@redhat.com>
19392 PR preprocessor/61977
19393 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
19394 predefine __vector/__bool/__pixel macros nor context sensitive
19395 macros for CLK_ASM.
19396 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
19398 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
19400 * config/pa/pa.c (pa_output_move_double): Directly handle register
19401 indexed memory operand. Simplify handling of scaled register indexed
19404 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
19407 * config/i386/linux-common.h (MPX_SPEC): New.
19408 (CHKP_SPEC): Add MPX_SPEC.
19409 * doc/invoke.texi (-fcheck-pointer-boudns): Document
19410 possible issues with '-z bndplt' support in linker.
19412 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
19414 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
19415 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
19416 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
19417 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
19418 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
19420 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
19422 * config/i386/sync.md (UNSPEC_MOVA): Remove.
19423 (atomic_load<mode>): Change operand 0 predicate to
19424 nonimmediate_operand and fix up the destination when needed.
19426 (atomic_loaddi_fpu): Use UNSPEC_LDA.
19427 (atomic_store<mode>): Change operand 1 predicate to
19428 nonimmendate_operand and move the source to register when needed.
19430 (atomic_store<mode>_1): Use UNSPEC_STA.
19431 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
19432 Fix moves from memory operand. Use UNSPEC_STA.
19434 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
19436 * expmed.c (strict_volatile_bitfield_p): Check that the access will
19437 not cross a MODESIZE boundary.
19438 (store_bit_field, extract_bit_field): Added assertions in the
19439 strict volatile bitfields code path.
19441 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
19444 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
19445 Increase args array size by one to avoid buffer overflow.
19447 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
19449 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
19451 * ipa-inline.c (edge_badness): Add wrapper penalty.
19452 (sum_callers): Move up.
19453 (inline_small_functions): Set single_caller.
19454 * ipa-inline.h (inline_summary): Add single_caller.
19455 * ipa-split.c (split_function): Set split_part.
19456 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
19457 * cgraph.h (cgraph_node): Add split_part.
19459 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
19462 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
19463 Do not split operands 0 and operands 2 to halfmode.
19464 (atomic_compare_and_swap<mode>): Update for
19465 atomic_compare_and_swap<dwi>_doubleword changes.
19467 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
19469 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
19470 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
19471 no caching is done.
19473 2015-03-31 Martin Liska <mliska@suse.cz>
19476 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
19477 has already filled up function summary.
19478 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
19480 2015-03-31 Richard Biener <rguenther@suse.de>
19482 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
19485 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
19487 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
19489 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
19490 (s390_asm_output_function_label): Adapt to new signature of
19491 s390_function_num_hotpatch_hw
19492 Optimise the code generating assembler output.
19493 Add comments to assembler file.
19495 2015-03-31 Richard Biener <rguenther@suse.de>
19497 PR middle-end/65626
19498 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
19499 of the noreturn call so it is last and cleanup_control_flow_bb
19500 can do the CFG part.
19502 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
19505 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
19506 same_comdat_group for external symbols.
19507 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
19508 infinite same_comdat_group traversal loop.
19510 2015-03-31 Jakub Jelinek <jakub@redhat.com>
19513 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
19514 automatically to $headers.
19516 2015-03-30 Jakub Jelinek <jakub@redhat.com>
19519 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
19520 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
19522 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
19524 * ipa-prop.c (param_type_may_change_p): Likewise.
19525 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
19526 (remove_unused_scope_block_p): Add in_ctor_dtor_block
19527 argument. Before inlining, preserve
19528 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
19529 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
19531 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
19533 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
19536 * ipa-inline.c (edge_badness): Base denominator on callee's
19539 2015-03-27 Martin Jambor <mjambor@suse.cz>
19542 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
19543 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
19544 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
19545 node_calling_single_call.
19546 * ipa-cp.c (count_callers): New function.
19547 (set_single_call_flag): Likewise.
19548 (initialize_node_lattices): Count callers and set single_flag_call if
19550 (incorporate_penalties): New function.
19551 (good_cloning_opportunity_p): Use it, dump new flags.
19552 (propagate_constants_topo): Set node_within_scc flag if appropriate.
19553 * doc/invoke.texi (ipa-cp-recursion-penalty,
19554 ipa-cp-single-call-pentalty): Document.
19556 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
19559 * symtab.c (symtab_node::get_partitioning_class): Register vars
19561 * varpool.c (symbol_table::output_variables) Do not assemble unefined
19562 decls for non-symbols.
19564 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
19567 * output.h (default_binds_local_p_2): New.
19568 * varasm.c (default_binds_local_p_2): Renamed to ...
19569 (default_binds_local_p_3): This. Don't return true on protected
19570 data symbol if protected data may be external.
19571 (default_binds_local_p): Use default_binds_local_p_3.
19572 (default_binds_local_p_1): Likewise.
19573 (default_binds_local_p_2): New.
19574 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
19575 default_binds_local_p_2 if TARGET_MACHO is undefined.
19577 2015-03-27 Jakub Jelinek <jakub@redhat.com>
19580 * config/i386/i386.c (legitimize_pic_address): If base
19581 is SYMBOL_REF or LABEL_REF using %rip addressing, force
19582 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
19584 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
19587 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
19590 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
19593 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
19594 of optimized out indirect call.
19595 (redirect_to_unreachable): Always build symbol table node for
19596 BUILT_IN_UNREACHABLE
19598 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
19601 * ira-costs.c (record_reg_classes): Process all constraint string
19604 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
19606 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
19610 * config/c6x/constraints.md (S3): New constraint.
19611 * config/c6x/c6x.md (real_jump): Use it.
19613 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19615 PR middle-end/65595
19616 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
19617 do redirection if the call is not optimized out.
19619 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
19622 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
19623 (fchkp-check-incomplete-type): Add LTO.
19624 (fchkp-zero-input-bounds-for-main): Likewise.
19625 (fchkp-first-field-has-own-bounds): Likewise.
19626 (fchkp-narrow-bounds): Likewise.
19627 (fchkp-narrow-to-innermost-array): Likewise.
19628 (fchkp-use-static-bounds): Likewise.
19629 (fchkp-use-static-const-bounds): Likewise.
19630 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
19632 2015-03-27 Marek Polacek <polacek@redhat.com>
19634 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
19636 2015-03-27 Marek Polacek <polacek@redhat.com>
19639 * ubsan.c (ubsan_create_edge): New function.
19640 (instrument_bool_enum_load): Call it.
19641 (instrument_nonnull_arg): Likewise.
19642 (instrument_nonnull_return): Likewise.
19643 (instrument_object_size): Likewise.
19645 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19647 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
19650 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19653 * lto-streamer.h (class lto_location_cache): New.
19654 (struct data_in): Add location_cache.
19655 (lto_input_location): Update prototype.
19656 (stream_input_location_now): New.
19657 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
19658 pointer to location.
19659 (stream_input_location): Update.
19660 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
19661 (warn_odr): Apply location cache before warning.
19662 (lto_input_location): Update prototype.
19663 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
19664 Use stream_input_location_now.
19665 * lto-streamer-in.c (lto_location_cache::current_cache): New static
19667 (lto_location_cache::cmp_loc): New function.
19668 (lto_location_cache::apply_location_cache): New function.
19669 (lto_location_cache::accept_location_cache): New function.
19670 (lto_location_cache::revert_location_cache): New function.
19671 (lto_location_cache::input_location): New function.
19672 (lto_input_location): Do location caching.
19673 (stream_input_location_now): New function.
19674 (input_eh_region, input_struct_function_base): Use
19675 stream_input_location_now.
19676 (lto_data_in_create): use new.
19677 (lto_data_in_delete): Use delete.
19678 * tree-streamer-in.c (unpack_ts_block_value_fields,
19679 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
19680 lto_input_ts_exp_tree_pointers): Update for cached location api.
19682 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19685 * passes.def: Add pass_nothrow.
19686 * ipa-pure-const.c: (pass_data_nothrow): New.
19687 (pass_nothrow): New.
19688 (pass_nothrow::execute): New.
19689 (make_pass_nothrow): New.
19690 * tree-pass.h (make_pass_nothrow): Declare.
19692 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19694 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
19695 edge to change by speculation resolution or redirection.
19696 (edge_set_predicate): Likewise.
19697 (inline_summary_t::duplicate): Likewise.
19698 (remap_edge_summaries): Likewise.
19700 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19702 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
19704 (can_inline_edge_p): Relax option matching for always inline functions.
19706 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
19709 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
19710 Check operand 4 and operand 0 for equality.
19711 (avx512f_vextract<shuffletype>32x4_1_maskm):
19712 Check operand 6 and operand 0 for equality.
19713 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
19715 (vec_extract_hi_<mode>_maskm): Ditto.
19717 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19719 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
19720 dead calls back to live.
19721 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
19723 (cgraph_node::verify_node): ... here; verify only callee edges,
19725 * cif-code.def (CILK_SPAWN): New code.
19727 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19729 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
19730 (edge_set_predicate): Use it to mark unreachable edges.
19731 (inline_summary_t::duplicate): Remove unnecesary code.
19732 (remap_edge_summaries): Likewise.
19733 (dump_inline_summary): Report contains_cilk_spawn.
19734 (compute_inline_parameters): Compute contains_cilk_spawn.
19735 (inline_read_section, inline_write_summary): Stream
19736 contains_cilk_spawn.
19737 * ipa-inline.c (can_inline_edge_p): Do not touch
19738 DECL_STRUCT_FUNCTION that may not be available;
19739 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
19740 remove check for callee_fun->can_throw_non_call_exceptions and
19741 replace it by optimization attribute check; check for flag_exceptions.
19742 * ipa-inline-transform.c (inline_call): Maintain
19743 DECL_FUNCTION_PERSONALITY
19744 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
19746 2015-03-26 Jakub Jelinek <jakub@redhat.com>
19748 PR tree-optimization/65551
19749 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
19750 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
19752 2015-03-26 Richard Biener <rguenther@suse.de>
19754 PR middle-end/65555
19755 * tree-cfg.c (verify_gimple_call): Do not require a call to
19756 have no LHS if it wasn't recognized as control altering yet.
19758 2015-03-26 Jakub Jelinek <jakub@redhat.com>
19760 PR tree-optimization/64715
19761 * passes.def: Add another instance of pass_object_sizes before ccp1.
19762 * tree-object-size.c (pass_object_sizes::execute): In
19763 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
19764 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
19765 __bos result and the computed constant. Remove redundant
19766 checks, obsoleted by gimple_call_builtin_p test.
19768 * var-tracking.c (variable_tracking_main_1): Don't track
19769 variables for targetm.no_register_allocation targets.
19771 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
19773 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
19774 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
19776 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
19779 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
19780 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
19781 0.0 is correctly setup.
19782 (extenddftf2_internal): Likewise.
19784 2015-03-25 Sebastian Pop <s.pop@samsung.com>
19786 PR tree-optimization/65177
19787 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
19789 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
19790 edges not adjacent on the path to the original code.
19792 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
19795 * doc/install.texi (Building a native compiler): Document new
19796 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
19797 configuration assumes that the host supports the linker plugin.
19799 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
19802 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
19803 chain for generated call.
19805 2015-03-25 Richard Biener <rguenther@suse.de>
19807 * passes.c (pass_manager::execute_early_local_passes): Guard
19808 execution of pass_chkp_instrumentation_passes with
19809 flag_check_pointer_bounds.
19810 (pass_chkp_instrumentation_passes::gate): Likewise.
19812 2015-03-25 Martin Liska <mliska@suse.cz>
19814 PR tree-optimization/65538
19815 * symbol-summary.h (function_summary::~function_summary):
19816 Relese memory for allocated summaries.
19817 (function_summary::release): New function.
19819 2015-03-25 Jakub Jelinek <jakub@redhat.com>
19822 * lto-streamer-out.c (DFS::worklist): New struct.
19823 (DFS::worklist_vec): New data member.
19824 (DFS::next_dfs_num): Remove.
19825 (DFS::DFS): Rewritten using worklist instead of recursion,
19826 using most of code from DFS::DFS_write_tree.
19827 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
19828 pass it to DFS_write_tree calls.
19829 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
19830 quick initial checks push it into worklist_vec and return.
19832 2015-03-25 Richard Biener <rguenther@suse.de>
19834 PR middle-end/65519
19835 * genmatch.c (expr::gen_transform): Re-write to avoid
19836 using gimple_build.
19838 2015-03-25 Bin Cheng <bin.cheng@arm.com>
19840 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
19842 2015-03-25 Bin Cheng <bin.cheng@arm.com>
19844 * config/arm/arm.opt (print_tune_info): New option.
19845 * config/arm/arm.c (arm_print_tune_info): New function.
19846 (arm_file_start): Call arm_print_tune_info.
19847 * config/arm/arm-protos.h (struct tune_params): Add comment.
19848 * doc/invoke.texi (@item -mprint-tune-info): New item.
19849 (-mtune): mention it in ARM Option Summary.
19851 2015-03-25 DJ Delorie <dj@redhat.com>
19853 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
19856 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
19857 Martin Liska <mliska@suse.cz>
19859 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
19860 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
19861 (sem_item::add_type): New function.
19862 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
19863 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
19864 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
19865 (sem_function::equals_wpa): Fix typo.
19866 * ipa-icf.h (sem_item::add_type): New function.
19867 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
19870 2015-03-24 Jakub Jelinek <jakub@redhat.com>
19872 PR tree-optimization/65533
19873 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
19874 with swapped operands, call vect_free_slp_tree on
19875 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
19878 2015-03-24 Richard Biener <rguenther@suse.de>
19880 PR middle-end/65517
19881 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
19882 for fixup if necessary.
19884 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
19886 * doc/extend.texi (Function Attributes): Add @cindex entries
19887 for all attributes and regularize their format. Delete text
19888 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
19889 information about "eightbit_data", "tiny_data", and "model"
19890 variable attributes to the Variable Attributes section. Fix
19891 some obvious typos and copy-editing issues.
19892 (Variable Attributes, Type Attributes): Likewise add/fix
19893 @cindex entries for all attributes.
19895 2015-03-23 Jakub Jelinek <jakub@redhat.com>
19898 * tree-chkp.c (chkp_build_returned_bound): Ignore
19899 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
19901 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
19904 * config/sh/predicates.md (simple_mem_operand,
19905 displacement_mem_operand): Add test for reg.
19906 (short_displacement_mem_operand): Test for displacement_mem_operand
19907 before invoking sh_disp_addr_displacement.
19908 * config/sh/constraints.md (Sdd, Sra): Simplify.
19909 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
19910 Remove redundant displacement_mem_operand tests.
19912 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
19915 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
19916 the same -mmcu=MCU more than once.
19918 2015-03-23 Jakub Jelinek <jakub@redhat.com>
19921 * ipa-devirt.c: Remove duplicate demangle.h include.
19924 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
19926 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
19927 REG_POINTER on *destptr after adjusting it for prologue size.
19930 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
19931 ultimate_alias_target ()->order ints instead of
19932 ultimate_alias_target () pointers.
19934 2015-03-23 Richard Biener <rguenther@suse.de>
19936 PR tree-optimization/65518
19937 * tree-vect-stmts.c (vectorizable_load): Reject single-element
19938 interleaving cases we generate absymal code for.
19940 2015-03-23 Richard Biener <rguenther@suse.de>
19942 PR tree-optimization/65494
19943 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
19945 (vect_analyze_slp_instance): But do that here, always and once.
19947 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19949 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
19950 adding T or multiplying by T+1 and subracting T.
19952 2015-03-22 Jeff Law <law@redhat.com>
19954 PR rtl-optimization/64317
19955 * Makefile.in (OBJS): Add gcse-common.c
19956 * gcse.c: Include gcse-common.h
19957 (struct modify_pair_s): Move structure definition to gcse-common.h
19958 (compute_transp): Move function to gcse-common.c.
19959 (canon_list_insert): Similarly.
19960 (record_last_mem_set_info): Break out some code and put it into
19961 gcse-common.c. Call into the new common code.
19962 (compute_local_properties): Pass additional arguments to compute_transp.
19963 * postreload-gcse.c: Include gcse-common.h and df.h
19964 (modify_mem_list_set, blocks_with_calls): New variables.
19965 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
19966 (get_bb_avail_insn): Pass in the expression index too.
19967 (alloc_mem): Allocate memory for the new bitmaps and lists.
19968 (free_mem): Free memory for the new bitmaps and lists.
19969 (insert_expr_in_table): Record a bitmap index for each entry we
19971 (record_last_mem_set_info): Call into common code in gcse-common.c.
19972 (get_bb_avail_insn): If no available insn was found in the requested
19973 BB. If BB has a single predecessor, see if the expression is
19974 transparent in BB and available in that single predecessor.
19975 (compute_expr_transp): New wrapper for compute_transp.
19976 (eliminate_partially_redundant_load): Pass expression's bitmap_index
19977 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
19978 (gcse_after_reload_main): If there are elements in the hash table,
19979 then compute transparency for all the elements in the hash table.
19980 * gcse-common.h: New file.
19981 * gcse-common.c: New file.
19983 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
19985 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
19987 (System Headers): Likewise.
19989 (Traditional macros): Likewise.
19990 (Invocation): Likewise.
19991 (Option Index): Likewise.
19992 * doc/cppopts.texi (-M): Likewise.
19993 (-finput-charset): Likewise.
19994 (--help): Likewise.
19995 * doc.invoke.texi (AVR Options): Likewise.
19996 (V850 Options): Likewise.
19998 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
20001 * ipa-devirt.c: Include demangle.h
20002 (odr_type_d): Add field rtti_broken.
20003 (odr_subtypes_equivalent_p): Do not require name to match.
20004 (compare_virtual_tables): Fix typo; if type already has ODR violation,
20005 bypass the tests; be ready for function referneces in vtables that are
20006 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
20007 (warn_odr): Give up for nameless types.
20008 (warn_types_mismatch): Report mismatch in mangled names;
20009 report mismatch in anonymous namespaces; look into component types to
20010 give useful error; report when mismatch is dragged in from other ODR
20012 (odr_types_equivalent_p): Match types for being polymorphic; avoid
20013 duplicated diagnostics.
20014 (add_type_duplicate): Reorder checks so more informative ones come
20015 first; fix typo; do not output "the extra base is defined here" when
20017 (BINFO_N_BASE_BINFOS): Relax sanity check.
20019 2015-03-22 Martin Liska <mliska@suse.cz>
20020 Jakub Jelinek <jakub@redhat.com>
20022 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
20023 masks that can potentially include a builtin.
20024 (ix86_add_new_builtins): Introduce fast filter for isa values
20025 that cannot trigger builtin inclusion.
20027 2015-03-22 Martin Liska <mliska@suse.cz>
20029 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
20030 (sem_item::update_hash_by_local_refs): Likewise.
20031 (sem_variable::get_hash): Empty line is fixed.
20032 (sem_item_optimizer::execute): Include adding of hash references.
20033 (sem_item_optimizer::update_hash_by_addr_refs): New function.
20034 (sem_item_optimizer::build_hash_based_classes): Use local hash.
20035 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
20036 (sem_item::update_hash_by_local_refs): Likewise.
20038 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
20041 * ipa-comdats.c (enqueue_references): Walk through thunks.
20042 (ipa_comdats): Likewise.
20043 (set_comdat_group_1): New function.
20045 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
20048 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
20051 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
20052 Gerald Pfeifer <gerald@pfeifer.com>
20054 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
20056 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
20057 Sandra Loosemore <sandra@codesourcery.com>
20059 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
20060 function parameter declaration.
20061 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
20062 Update arguments to nios2_adjust_call_address().
20063 (sibcall_internal): Rename from *sibcall.
20064 (sibcall_value_internal): Rename from *sibcall_value.
20065 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
20066 (nios2_large_got_address): Add target temp reg parameter.
20067 (nios2_got_address): Adjust call to nios2_large_got_address, add
20068 force_reg around it.
20069 (nios2_load_pic_address): Add target temp reg parameter, replace call
20070 to nios2_got_address with corresponding code.
20071 (nios2_legitimize_constant_address): Update call to
20072 nios2_load_pic_address.
20073 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
20074 to use temp reg for PIC loading purposes.
20075 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
20076 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
20077 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
20079 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
20081 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
20082 usage of "the @option{...}".
20083 (-Wopenmp-simd): Likewise.
20084 (-fsanitize-recover): Likewise.
20085 (-fsanitize-undefined-trap-on-error): Likewise.
20087 (tracer-dynamic-coverage-feedback): Likewise.
20088 (reorder-block-duplicate-feedback): Likewise.
20089 (loop-unroll-jam-size): Likewise.
20092 (-mabs=legacy): Likewise.
20093 (-mupper-regs-df): Likewise.
20094 (-mupper-regs-sf): Likewise.
20095 (-mpointers-to-nested-functions): Likewise.
20097 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
20099 * doc/extend.texi (Cilk Plus Builtins): Add markup.
20101 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
20103 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
20104 additional index entries and cross-references.
20105 (-fchkp-check-incomplete-type): Likewise.
20106 (-fchkp-first-field-has-own-bounds): Likewise.
20107 (-fchkp-narrow-to-innermost-array): Likewise.
20108 (-fchkp-use-fast-string-functions): Likewise.
20109 (-fchkp-use-nochk-string-functions): Likewise.
20110 (-fchkp-use-static-const-bounds): Likewise.
20111 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
20112 (-fchkp-instrument-marked-only): Likewise.
20113 (-fchkp-use-wrappers): Likewise.
20114 (-static-libmpx): Likewise.
20115 (-static-libmpxwrappers): Likewise.
20116 * doc/extend.texi (bnd_legacy): Likewise.
20117 (bnd_instrument): Likewise.
20118 (bnd_variable_size): Likewise.
20119 (Pointer Bounds Checker builtins): Likewise.
20121 2015-03-21 Tom de Vries <tom@codesourcery.com>
20123 PR tree-optimization/65458
20124 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
20125 * cgraph.h (cgraph_node): Add parallelized_function field.
20126 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
20127 (input_overwrite_node): Read parallelized_function field.
20128 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
20129 parallelized_function on cgraph_node for child_fn.
20130 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
20131 Remove include of gt-tree-parloops.h.
20132 (parallelized_functions): Remove static variable.
20133 (parallelized_function_p): Rewrite using parallelized_function field of
20135 (create_loop_fn): Remove adding to parallelized_functions.
20136 * Makefile.in (GTFILES): Remove tree-parloops.c
20138 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
20140 PR rtl-optimization/64366
20141 * lra.c (lra_update_insn_regno_info): Consider regs in
20142 CALL_INSN_FUNCTION_USAGE memory.
20144 2015-03-20 Richard Biener <rguenther@suse.de>
20146 PR middle-end/64715
20147 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
20148 for type comparison and gcc_checking_assert.
20149 (chrec_fold_plus_poly_poly): Likewise.
20150 (chrec_fold_multiply_poly_poly): Likewise.
20151 (chrec_convert_1): Likewise.
20152 * gimplify.c (gimplify_expr): Remove premature folding of
20153 &X + CST to &MEM[&X, CST].
20155 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
20157 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
20159 (ipa_inline): Recompute inline_failed codes.
20160 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
20161 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
20164 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
20166 PR rtl-optimization/60851
20167 * recog.c (constrain_operands): Accept a pseudo register before reload
20168 for LRA enabled targets.
20170 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
20173 * config/rs6000/predicates.md (easy_fp_constant): Remove special
20174 -ffast-math handling that kept non-0 constants live in the RTL
20175 until reload. Remove logic testing the number of instructions it
20176 took to create a constant in a GPR that was never used, due to a
20177 test for soft-float earlier.
20178 (memory_fp_constant): Delete, no longer used.
20180 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
20181 alternatives for loading non-0 constants into GPRs for hard
20182 floating point that is no longer needed due to changes in
20183 easy_fp_constant. Add support for loading 0.0 into GPRs.
20184 (mov<mode>_hardfloat32): Likewise.
20185 (mov<mode>_hardfloat64): Likewise.
20186 (mov<mode>_64bit_dm): Likewise.
20187 (movtd_64bit_nodm): Likewise.
20188 (pre-reload move FP constant define_split): Delete define_split,
20189 since it is no longer used.
20190 (extenddftf2_internal): Remove GHF constraints that are not valid
20193 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
20195 PR rtl-optimization/63491
20196 * lra-constraints.c (check_and_process_move): Use src instead of
20197 sreg. Remove some dead code.
20199 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
20202 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
20203 (sem_variable::merge): Likewise.
20205 2015-03-19 Martin Liska <mliska@suse.cz>
20208 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
20209 all fields of cgraph_thunk_info.
20211 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
20213 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
20214 clone instrumented thunks.
20216 2015-03-19 Richard Biener <rguenther@suse.de>
20219 2015-03-10 Richard Biener <rguenther@suse.de>
20221 PR middle-end/63155
20222 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
20223 * tree-ssa-coalesce.c: Include timevar.h.
20224 (attempt_coalesce): Handle graph being NULL.
20225 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
20226 Split out abnormal coalescing to ...
20227 (perform_abnormal_coalescing): ... this function.
20228 (coalesce_ssa_name): Perform abnormal coalescing without computing
20230 (verify_ssa_coalescing_worker): New function.
20231 (verify_ssa_coalescing): Likewise.
20233 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
20234 Jakub Jelinek <jakub@redhat.com>
20237 * tsan.c (instrument_gimple): Clear tail call flag on
20240 2015-03-19 Jakub Jelinek <jakub@redhat.com>
20243 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
20244 call in the return bb.
20245 (find_split_points): Add RETURN_BB argument, don't call
20247 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
20248 if true append TSAN_FUNC_EXIT internal call after the call to
20249 the split off function.
20250 (execute_split_functions): Call find_return_bb here.
20251 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
20252 Adjust find_split_points and split_function calls.
20254 2015-03-18 DJ Delorie <dj@redhat.com>
20256 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
20257 (iorqi3_virt): Likewise.
20259 2015-03-18 Tom de Vries <tom@codesourcery.com>
20261 * tree-parloops.c (parallelize_loops): Make static.
20262 * tree-parloops.h (parallelize_loops): Remove extern declaration.
20264 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
20266 PR middle-end/64491
20268 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
20270 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
20271 condition would be removed due to undefined behaviour.
20273 2015-03-18 Martin Liska <mliska@suse.cz>
20276 * cgraph.c (cgraph_node::get_create): Remove unnecessary
20277 xstrdup_for_dump wrapper.
20278 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
20280 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
20281 with xstrdup_for_dump.
20282 (sem_variable::equals): Likewise.
20283 (sem_item_optimizer::read_section): Use symtab_node::name instead of
20285 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
20286 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
20287 symtab_node::asm_name with xstrdup_for_dump.
20288 (congruence_class::dump): Use symtab_node::name instead of
20290 * ipa-icf.h (symtab_node::name): Remove.
20291 (symtab_node::asm_name): Likewise.
20293 2015-03-18 Jakub Jelinek <jakub@redhat.com>
20295 PR tree-optimization/65450
20296 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
20298 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
20299 it instead of duplicate_ssa_name_ptr_info.
20302 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
20304 2015-03-18 Richard Biener <rguenther@suse.de>
20306 * tree-data-ref.h (struct access_matrix): Remove.
20307 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
20308 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
20309 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
20310 (am_vector_index_for_loop): Likewise.
20311 (struct data_reference): Remove access_matrix member.
20312 (DR_ACCESS_MATRIX): Remove.
20313 (lambda_vector_new): Add comment.
20314 (lambda_matrix_new): Use XOBNEWVEC.
20316 2015-03-18 Richard Biener <rguenther@suse.de>
20318 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
20319 (pass_ch::execute): Cleanup the CFG only if we did sth.
20320 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
20322 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20324 * expmed.c (synth_mult): Use std::swap instead of manually
20325 swapping algorithms.
20327 2015-03-18 Jakub Jelinek <jakub@redhat.com>
20330 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
20332 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
20335 * config/avr/avr.opt (-nodevicelib): New option.
20336 * doc/invoke.texi (AVR Options): Document it.
20337 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
20338 libgcc.a, libc.a, libm.a.
20339 * config/avr/specs.h: Same.
20340 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
20341 which don't (directly) depend on the device. Print more help.
20342 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
20343 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
20344 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
20346 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
20347 for specs file name.
20348 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
20349 * config/avr/avr-mcus.def: Adjust initializers and comments.
20351 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
20353 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
20354 DECL_ONE_ONLY to check if decl is one only.
20355 * ipa-split.c (consider_split): Limit splitt of one only functions.
20357 2015-03-16 Jakub Jelinek <jakub@redhat.com>
20359 PR tree-optimization/65427
20360 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
20362 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
20364 2015-03-16 Marek Polacek <polacek@redhat.com>
20366 * cgraph.h (add_new_static_var): Remove declaration.
20367 * varpool.c (add_new_static_var): Remove function.
20369 2015-03-16 Jakub Jelinek <jakub@redhat.com>
20371 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
20372 instead of vec<tree> * with vec_alloc and release for args.
20375 PR middle-end/65431
20376 * omp-low.c (delete_omp_context): Only splay_tree_delete
20377 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
20378 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
20380 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
20383 * cfgexpand.c (align_base): New function.
20384 (alloc_stack_frame_space): Call it.
20385 (expand_stack_vars): Align prev_frame to be sure
20386 data->asan_vec elements aligned properly.
20388 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
20390 PR middle-end/65409
20391 * expr.c (store_field): Do not do a direct block copy if the source is
20392 a PARALLEL with BLKmode.
20394 2015-03-16 Tom de Vries <tom@codesourcery.com>
20396 PR middle-end/65414
20398 2015-03-12 Tom de Vries <tom@codesourcery.com>
20400 PR rtl-optimization/64895
20401 * lra-lives.c (check_pseudos_live_through_calls): Use
20402 actual_call_used_reg_set instead of call_used_reg_set, if available.
20404 2015-03-16 Alan Modra <amodra@gmail.com>
20407 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
20408 Modify Z->r bswapdi splitter to use dest in place of scratch.
20409 In r->Z and Z->r bswapdi splitter rename word_high, word_low
20410 to word1, word2 and rearrange logic to suit.
20411 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
20412 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
20413 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
20414 Add one '?' on r->r. Modify Z->r splitter to avoid need for
20417 2015-03-14 Jakub Jelinek <jakub@redhat.com>
20419 PR tree-optimization/65369
20420 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
20421 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
20422 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
20424 PR tree-optimization/65418
20425 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
20426 are casts in the first PLUS_EXPR operand, ensure tbias and
20427 *totallowp are in the inner type.
20429 PR rtl-optimization/65401
20430 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
20431 argument. If true, adjust_address_nv of x with big-endian
20432 correction for the mode widening to GET_MODE (y).
20433 (make_field_assignment): Don't do MEM mode widening here.
20434 Use MEM_P instead of GET_CODE == MEM.
20436 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
20438 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
20439 the external decls.
20441 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20444 * config/arm/arm.c (arm_gen_constant, AND case): Use
20445 ARM_SIGN_EXTEND when constructing AND mask.
20447 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
20449 * graph.c (print_graph_cfg): Make function names visible and append
20450 parenthesis to it. Also make groups of basic blocks belonging to the
20451 same function visible.
20453 2015-03-12 Richard Biener <rguenther@suse.de>
20455 PR middle-end/44563
20456 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
20457 to avoid quadratic behavior with inline expansion splitting blocks.
20458 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
20459 with the successor if the predecessor will be merged with it.
20460 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
20461 entry block with its successor.
20463 2015-03-13 Richard Biener <rguenther@suse.de>
20465 PR middle-end/44563
20466 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
20467 (cleanup_tree_cfg_1): Do not call it.
20468 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
20469 (fixup_noreturn_call): Mark the stmt as control altering.
20470 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
20472 (pass_data_fixup_cfg): Produce a dump file.
20473 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
20474 (need_noreturn_fixup): New global.
20475 (pass_dominator::execute): Fixup queued noreturn calls.
20476 (optimize_stmt): Queue calls that became noreturn for fixup.
20477 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
20478 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
20479 (el_to_fixup): New global.
20480 (eliminate_dom_walker::before_dom_childre): Queue calls that
20481 became noreturn for fixup.
20482 (eliminate): Fixup queued noreturn calls.
20483 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
20484 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
20485 (substitute_and_fold_dom_walker::before_dom_children): Queue
20486 alls that became noreturn for fixup.
20487 (substitute_and_fold): Fixup queued noreturn calls.
20489 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
20491 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
20492 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
20493 are building; for methods check ODR type of class they belong to if
20494 they may lead to a polymorphic call.
20495 (sem_function::compare_polymorphic_p): Be bit smarter about testing
20496 when function may lead to a polymorphic call.
20497 (sem_function::compare_type_list): Remove.
20498 (sem_variable::equals): Update use of compatible_types_p.
20499 (sem_variable::parse_tree_refs): Remove.
20500 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
20502 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
20504 (func_checker::compatible_polymorphic_types_p): Break out from ...
20505 (unc_checker::compatible_types_p): ... here.
20506 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
20508 (unc_checker::compatible_types_p): Update.
20509 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
20512 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20514 PR rtl-optimization/65235
20515 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
20516 When first element of vec_concat is const_int, calculate its size
20517 using second element.
20519 2015-03-12 Richard Biener <rguenther@suse.de>
20521 PR middle-end/65270
20522 * fold-const.c (operand_equal_p): Fix ordering of resetting
20523 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
20525 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
20527 * config/s390/s390.c (s390_reorg): Move code to output nops after label
20529 (s390_asm_output_function_label): Likewise.
20530 * config/s390/s390.c (s390_asm_output_function_label):
20531 Fix function label alignment with -mhtopatch.
20532 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
20533 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
20534 ("nop_2_byte"): New define_insn.
20535 ("nop_4_byte"): Likewise.
20536 ("nop_6_byte"): Likewise.
20537 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
20538 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
20540 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
20543 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
20546 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
20549 * toplev.c (process_options): Restrict Pointer Bounds Checker
20550 usage with Address Sanitizer.
20552 2015-03-12 Richard Biener <rguenther@suse.de>
20554 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
20556 * omp-low.c (expand_omp_taskreg): Split block before removing
20558 (expand_omp_target): Likewise.
20559 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
20560 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
20561 stmt to split_block.
20563 2015-03-12 Tom de Vries <tom@codesourcery.com>
20565 PR rtl-optimization/64895
20566 * lra-lives.c (check_pseudos_live_through_calls): Use
20567 actual_call_used_reg_set instead of call_used_reg_set, if available.
20569 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
20571 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
20572 (cgraph_node::remove): Likewise.
20573 (cgraph_node::get_untransformed_body): Likewise.
20574 * varpool.c (varpool_node::remove): Likewise.
20575 (varpool_node::get_constructor): Add sanity check.
20577 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
20579 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
20581 (-fabi-compat-version): Likewise.
20582 (-ffriend-injection): Likewise.
20583 (-Wdeclaration-after-statement): Likewise.
20584 (-fomit-frame-pointer): Likewise.
20585 (-ftree-coalesce-inlined-vars): Likewise.
20586 (-fvisibility=): Likewise.
20587 * doc/extend.texi (Typeof): Likewise.
20588 (Zero Length): Likewise.
20589 (Escaped Newlines): Likewise.
20590 (Compound Literals): Likewise.
20591 (Function Attributes): Likewise.
20592 (Label Attributes): Likewise.
20593 (Type Attributes): Likewise.
20594 (Function Names): Likewise.
20595 (Other Builtins): Likewise.
20596 (Function Specific Option Pragmas): Likewise.
20597 (C++ Interface): Likewise.
20599 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
20601 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
20603 2015-03-11 Marek Polacek <polacek@redhat.com>
20605 PR tree-optimization/65388
20606 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
20608 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
20611 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
20612 * configure: Regenerate.
20613 * config.in: Regenerate.
20614 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
20615 [-mn-flash]: Document it.
20616 [__AVR_ARCH__]: Document avrtiny.
20618 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
20619 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
20620 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
20622 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20624 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
20626 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
20629 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
20630 allow reloads of PLUS in floating point/VSX registers.
20632 2015-03-11 Junmo Park <junmoz.park@samsung.com>
20634 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
20635 crypto_sha256_fast.
20636 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
20638 2015-03-11 Richard Biener <rguenther@suse.de>
20640 PR tree-optimization/65310
20641 * tree-sra.c (build_ref_for_offset): Also preserve larger
20644 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
20646 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
20648 2015-03-10 Jakub Jelinek <jakub@redhat.com>
20651 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
20653 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
20655 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
20657 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
20658 (sem_function::equals_wpa): ... here.
20660 2015-03-10 Marek Polacek <polacek@redhat.com>
20661 Jakub Jelinek <jakub@redhat.com>
20664 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
20665 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
20668 2015-03-10 Jakub Jelinek <jakub@redhat.com>
20671 * config/rs6000/t-linux: For powerpc64* target set
20672 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
20674 2015-03-10 Richard Biener <rguenther@suse.de>
20676 PR middle-end/44563
20677 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
20678 for redirect_all_calls.
20680 2015-03-10 Marek Polacek <polacek@redhat.com>
20682 * gdbinit.in (pcfun): Define and document.
20684 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
20686 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
20687 of libgomp-plugin.h.
20688 (find_target_compiler): Support a case when the path to gcc is
20689 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
20690 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
20691 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
20693 (main): Use GCC_INSTALL_NAME as target_driver_name.
20694 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
20696 (mkoffload.o): Remove obsolete include path and defines.
20697 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
20699 2015-03-10 Richard Biener <rguenther@suse.de>
20701 PR middle-end/63155
20702 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
20703 * tree-ssa-coalesce.c: Include timevar.h.
20704 (attempt_coalesce): Handle graph being NULL.
20705 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
20706 Split out abnormal coalescing to ...
20707 (perform_abnormal_coalescing): ... this function.
20708 (coalesce_ssa_name): Perform abnormal coalescing without computing
20710 (verify_ssa_coalescing_worker): New function.
20711 (verify_ssa_coalescing): Likewise.
20713 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
20716 * config.gcc (extra_options) [avr]: Remove.
20717 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
20718 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
20719 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
20721 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
20722 (-mmcu=): Add Var and MissingArgError properties.
20724 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
20725 * config/avr/t-multilib: Regenerate.
20726 * config/avr/specs.h: New file.
20727 * config/avr/driver-avr.c: New file.
20728 * config/avr/genopt.sh: Remove file.
20729 * config/avr/avr-tables.opt: Remove file.
20730 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
20731 * config/avr/avr-c.c: Same.
20732 * avr-arch.h: Same.
20733 (avr_current_device): Remove proto.
20734 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
20735 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
20736 (EXTRA_SPEC_FUNCTIONS): Define.
20737 (avr_devicespecs_file): New specs function proto.
20738 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
20739 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
20740 (avr_current_device): Remove definition and usage.
20741 (avr_set_core_architecture): New static function.
20742 (avr_option_override): Use it.
20743 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
20744 (mcu_name): New static array.
20745 (comparator, avr_archs_str, avr_mcus_str): New static functions.
20746 (avr_inform_devices, avr_inform_core_architectures): New functions.
20747 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
20748 (avrlibc.h) [WITH_AVRLIBC]: Include.
20749 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
20750 (print_mcu): Rewrite from scratch.
20751 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
20752 Forward to avr-specific specs defined in device-specs file.
20753 * config/avr/t-avr (driver-avr.o): New rule.
20754 (avr-devices.o): Depend on avr-arch.h.
20755 (avr-mcus): No more depend on avr-tables.opt.
20756 (avr-tables.opt): Remove rule.
20757 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
20759 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
20761 * c-family/c.opt (fchkp-use-wrappers): New.
20762 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
20763 (chkp_wrap_function): New.
20764 (chkp_build_instrumented_fndecl): Support wrapped
20766 * doc/invoke.texi (-fcheck-pointer-bounds): New.
20767 (-fchkp-check-incomplete-type): New.
20768 (-fchkp-first-field-has-own-bounds): New.
20769 (-fchkp-narrow-bounds): New.
20770 (-fchkp-narrow-to-innermost-array): New.
20771 (-fchkp-optimize): New.
20772 (-fchkp-use-fast-string-functions): New.
20773 (-fchkp-use-nochk-string-functions): New.
20774 (-fchkp-use-static-bounds): New.
20775 (-fchkp-use-static-const-bounds): New.
20776 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
20777 (-fchkp-check-read): New.
20778 (-fchkp-check-write): New.
20779 (-fchkp-store-bounds): New.
20780 (-fchkp-instrument-calls): New.
20781 (-fchkp-instrument-marked-only): New.
20782 (-fchkp-use-wrappers): New.
20783 (-static-libmpx): New.
20784 (-static-libmpxwrappers): New.
20786 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
20788 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
20789 (CHKP_SPEC): Add wrappers library.
20790 * c-family/c.opt (static-libmpxwrappers): New.
20792 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
20794 * config/i386/linux-common.h (LIBMPX_LIBS): New.
20795 (LIBMPX_SPEC): New.
20797 * gcc.c (CHKP_SPEC): New.
20798 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
20799 * c-family/c.opt (static-libmpx): New.
20801 2015-03-10 Richard Biener <rguenther@suse.de>
20803 PR middle-end/44563
20804 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
20806 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
20807 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
20808 (cgraph_add_edge_to_call_site_hash): Likewise.
20809 (cgraph_node::get_edge): Likewise.
20810 (cgraph_edge::set_call_stmt): Likewise.
20811 (cgraph_edge::remove_caller): Likewise.
20813 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
20815 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
20816 (callee_saved_gpr_regs_size): ... this.
20817 (callee_saved_regs_first_regno): Rename to ...
20818 (callee_saved_first_gpr_regno): ... this.
20819 (callee_saved_regs_last_regno) Rename to ...
20820 (callee_saved_last_gpr_regno): ... this.
20821 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
20823 (nds32_initial_elimination_offset): Likewise.
20824 (nds32_expand_prologue): Likewise.
20825 (nds32_expand_epilogue): Likewise.
20826 (nds32_expand_prologue_v3push): Likewise.
20827 (nds32_expand_epilogue_v3pop): Likewise.
20828 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
20829 Adjust renamed variables.
20830 (nds32_output_stack_pop): Likewise.
20832 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
20834 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
20837 2015-03-10 Jakub Jelinek <jakub@redhat.com>
20839 PR rtl-optimization/65321
20840 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
20842 * var-tracking.c (use_narrower_mode): Likewise.
20844 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
20846 PR tree-optimization/65355
20847 * varasm.c (notice_global_symbol): Do not produce RTL.
20848 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
20850 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
20851 check for section anchors.
20853 2015-03-10 Alan Modra <amodra@gmail.com>
20856 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
20857 to be single-arch by default. Set cpu_is_64bit for powerpc64
20858 given --with-cpu=native.
20859 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
20860 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
20862 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
20863 rs6000_isa_flags rather than TARGET_64BIT.
20865 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
20866 Kaz Kojima <kkojima@gcc.gnu.org>
20868 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
20870 2015-03-09 Jakub Jelinek <jakub@redhat.com>
20873 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
20874 on a TREE_BINFO, instead use BINFO_TYPE.
20876 2015-03-09 Richard Biener <rguenther@suse.de>
20878 PR middle-end/65270
20879 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
20880 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
20881 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
20882 of that. When comparing dereferences compare alignment.
20883 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
20885 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
20887 * ipa-inline-analysis.c (check_callers): Check
20888 node->can_remove_if_no_direct_calls_and_refs_p.
20889 (growth_likely_positive): Reorganize to call
20890 can_remove_if_no_direct_calls_p later.
20891 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
20892 will_be_removed_from_program_if_no_direct_calls_p): Add
20893 will_inline parameter.
20894 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
20895 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
20896 Handle inliner case correctly.
20898 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
20900 PR tree-optimization/63743
20901 * cfgexpand.c (reorder_operands): Also reorder if only second operand
20902 had its definition forwarded by TER.
20904 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
20907 * ipa-utils.h (types_odr_comparable): Add strict argument.
20908 * ipa-devirt.c: Fix whitespace;
20909 (odr_hasher): Remove.
20910 (odr_name_hasher, odr_vtable_hasher): New hashers.
20911 (can_be_name_hashed_p): New predicate.
20912 (hash_type_name): remove.
20913 (hash_odr_name): New.
20914 (odr_name_hasher::hash): new.
20915 (can_be_vtable_hashed_p): New.
20916 (hash_odr_vtable): New.
20917 (odr_vtable_hasher::hash): New.
20918 (types_same_for_odr): Add strict parameter.
20919 (types_odr_comparable): Likewise.
20920 (odr_name_hasher::equal): New.
20921 (odr_vtable_hasher::equal): New.
20922 (odr_name_hasher::remove): New.
20923 (odr_hash_type): Change to hash_table<odr_name_hasher>.
20924 (odr_vtable_hash_type): New.
20925 (odr_vtable_hash): New.
20926 (odr_subtypes_equivalent_p): Do strict comparsion.
20927 (add_type_duplicate): Merge type names; cleanup; avoid type
20929 (register_odr_type): Initialize vtable hash.
20930 (build_type_inheritance_graph): Likewise
20931 (get_odr_type): Reorg to use two hashes.
20932 (dump_possible_polymorphic_call_targets): Move sanity check after debug
20934 (ipa_devirt): Dump type_inheritance_graph.
20935 (types_same_for_odr): Add strict mode.
20937 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
20940 * cgraph.h (symtab_node): Add definition_alignment,
20941 can_increase_alignment_p and increase_alignment.
20942 * symtab.c (symtab_node::can_increase_alignment_p,
20943 increase_alignment_1, symtab_node::increase_alignment,
20944 symtab_node::definition_alignment): New.
20945 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
20946 can_increase_alignment_p.
20947 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
20948 * tree-vect-stmts.c (ensure_base_align): Likewise.
20949 * varasm.c (function_section_1): Use definition_alignment.
20950 (assemble_start_function): Likewise.
20951 (emit_local): likewise.
20952 (build_constant_desc): Likewsie.
20953 (output_constant_def_contents): Likewise.
20954 (place_block_symbol): Likewise.
20955 (output_object_block): Likewise.
20957 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
20960 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
20961 when outputting debug.
20963 2015-03-07 Marek Polacek <polacek@redhat.com>
20964 Martin Uecker <uecker@eecs.berkeley.edu>
20967 * doc/invoke.texi: Update description of -fsanitize=bounds.
20969 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
20971 * tree-ssa-phiopt.c (neg_replacement): Remove.
20972 (tree_ssa_phiopt_worker): Remove negate optimization.
20974 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
20977 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
20979 2015-03-06 Richard Biener <rguenther@suse.de>
20981 PR middle-end/64928
20982 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
20983 and liveout_obstack members.
20984 (calculate_live_on_exit): Remove.
20985 (calculate_live_ranges): Change declaration.
20986 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
20987 (new_tree_live_info): Adjust.
20988 (calculate_live_ranges): Delete livein when not wanted.
20989 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
20990 Deal with partly deleted live info.
20991 (loe_visit_block): Remove temporary bitmap by using
20992 bitmap_ior_and_compl_into.
20993 (live_worklist): Adjust accordingly.
20994 (calculate_live_on_exit): Make static.
20995 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
20996 we do not need livein.
20998 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
21000 * real.c (real_from_string): Fix typo in assertion.
21002 2015-03-06 Alex Velenko <alex.velenko@arm.com>
21004 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
21007 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
21009 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
21011 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
21014 * lra-assigns.c (find_hard_regno_for): Rename to
21015 find_hard_regno_for_1. Add a new parameter.
21016 (find_hard_regno_for): New function using find_hard_regno_for_1.
21018 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
21020 PR rtl-optimization/65067
21021 * expmed.c (store_bit_field, extract_bit_field): Reworked the
21022 strict volatile bitfield handling.
21024 2015-03-05 Martin Liska <mliska@suse.cz>
21027 * ipa-icf.c (sem_variable::equals): Compare variables types.
21029 2015-03-05 Richard Henderson <rth@redhat.com>
21032 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
21033 correctly check weak symbol binding.
21035 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
21037 PR middle-end/65315
21038 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
21041 2015-03-05 Martin Liska <mliska@suse.cz>
21043 * ipa-inline.c (inline_small_functions): Set default value to
21044 prevent warning during bootstrap.
21045 * tree.h: Add pragma guard that ignores false positives during
21048 2015-03-05 Richard Biener <rguenther@suse.de>
21050 PR tree-optimization/65310
21051 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
21052 Properly preserve alignment of the base of the access.
21054 2015-03-05 Richard Biener <rguenther@suse.de>
21057 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
21058 Compare dependence info.
21060 2015-03-05 Richard Biener <rguenther@suse.de>
21062 PR middle-end/65233
21063 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
21065 (walk_ssa_copies): Revert last chage. Instead do not walk
21066 SSA names registered for SSA update.
21068 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
21071 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
21072 vtable references for their containing type.
21073 (sem_function::equals_wpa): Compare TYPE_RESTRICT
21074 and type attributes.
21076 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
21078 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
21079 before negating it.
21080 * stor-layout.c (finalize_record_size): Revert latest change.
21082 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
21084 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
21086 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
21088 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
21089 for correct comdat handling.
21090 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
21092 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
21093 (used_from_object_file_p_worker): Remove.
21094 (cgraph_node::only_called_directly_or_alised): Add
21095 used_from_object_file_p.
21096 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
21097 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
21098 can_remove_if_no_direct_calls_and_refs_p.
21100 2015-03-04 Nick Clifton <nickc@redhat.com>
21102 * config/rl78/rl78.h (enum reg_class): Remove real registers from
21103 General register class.
21104 * config/rl78/rl78-real.md: Replace general register constraints
21105 with real+virtual register constraints.
21107 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21109 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
21110 from checking for -mhtm option.
21112 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
21114 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
21115 (struct ipa_sra_check_caller_data): Add has_thunk field.
21116 (ipa_sra_check_caller): Check for thunk.
21117 (ipa_sra_preliminary_function_checks): Give up on function with
21119 (ipa_early_sra): Use call_for_symbol_and_aliases.
21121 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
21124 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
21125 called for __stack_chk_guard symbol.
21127 2015-03-03 DJ Delorie <dj@redhat.com>
21129 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
21131 (*addhi3_real): Likewise.
21132 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
21133 pattern to match incrementing memory.
21134 * config/rl78/predicates.md (rl78_1_2_operand): New.
21135 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
21136 it's the same and only mem.
21137 (rl78_alloc_physical_registers_op2): If there's effectively only
21138 one MEM, transcode it into HL.
21139 (rl78_far_p): Reject addresses that aren't legitimate.
21141 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
21143 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
21146 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
21148 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
21150 Implement call0 ABI for xtensa
21151 * config/xtensa/constraints.md ("a" constraint): Include stack
21152 pointer in case of call0 ABI.
21153 ("q" constraint): Make empty in case of call0 ABI.
21154 ("D" constraint): Include stack pointer in case of call0 ABI.
21155 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
21156 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
21158 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
21160 (xtensa_regno_to_class): Make it a local variable in the
21161 function xtensa_regno_to_class.
21162 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
21163 macro, function prototype and implementation.
21164 (reg_nonleaf_alloc_order): Make it a local variable in the
21165 function order_regs_for_local_alloc.
21166 (xtensa_conditional_register_usage): New function.
21167 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
21168 (xtensa_valid_move): Allow direct moves to stack pointer
21169 register in call0 ABI.
21170 (xtensa_setup_frame_addresses): Only spill register windows in
21172 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
21173 call0 ABI respectively.
21174 (xtensa_function_arg_1): Only mark a7 register for copying in
21176 (xtensa_call_save_reg): New function.
21177 (compute_frame_size): Add space for callee saved register
21178 storage to the frame size in call0 ABI.
21179 (xtensa_expand_prologue): Generate code to set up stack frame
21180 and save callee-saved registers in call0 ABI.
21181 (xtensa_expand_epilogue): New function.
21182 (xtensa_set_return_address): New function.
21183 (xtensa_return_addr): Calculate return address in call0 ABI.
21184 (xtensa_builtin_saveregs): Only mark a7 register for copying and
21185 emit copying code in windowed ABI.
21186 (order_regs_for_local_alloc): Add preferred register allocation
21187 order for non-leaf function in call0 ABI.
21188 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
21189 (xtensa_asm_trampoline_template): Add trampoline generation for
21191 (xtensa_trampoline_init): Add trampoline initialization for
21193 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
21195 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
21196 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
21197 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
21198 ABI call-used registers.
21199 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
21200 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
21202 (REG_CLASS_CONTENTS): Include all registers into the preferred
21203 reload registers set, adjust the set in the
21204 xtensa_conditional_register_usage.
21205 (xtensa_regno_to_class): Drop variable declaration.
21206 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
21208 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
21210 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
21211 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
21212 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
21213 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
21214 location in call0 ABI.
21215 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
21216 stack adjustment size when handling exception.
21217 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
21218 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
21220 ("return" pattern): Generate ret.n/ret in call0 ABI.
21221 ("epilogue" pattern): Expand epilogue.
21222 ("nonlocal_goto" pattern): Use default in call0 ABI.
21223 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
21224 emit eh_set_a0_* depending on ABI.
21225 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
21226 ("eh_set_a0_call0", "blockage"): New patterns.
21228 2015-03-03 Martin Liska <mliska@suse.cz>
21231 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
21233 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
21236 * config/rs6000/rs6000-tables.opt: Regenerate table.
21238 2015-03-03 Renlin Li <renlin.li@arm.com>
21240 * doc/md.texi (@item ^): Change ? into ^.
21242 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
21244 * doc/tm.texi: Regenerated.
21246 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
21248 * builtins.c (expand_builtin_return_addr): Add
21249 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
21250 surrounding #ifdef.
21251 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
21253 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
21255 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
21257 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
21260 2015-03-03 Martin Jambor <mjambor@suse.cz>
21261 Eric Botcazou <ebotcazou@adacore.com>
21263 * tree-sra.c (ipa_sra_check_caller_data): New type.
21264 (has_caller_p): Removed.
21265 (ipa_sra_check_caller): New function.
21266 (ipa_sra_preliminary_function_checks): Use it.
21268 2015-03-03 Martin Liska <mliska@suse.cz>
21270 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
21271 instead of if branch.
21273 2015-03-03 Martin Liska <mliska@suse.cz>
21276 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
21278 2015-03-23 Jeff Law <law@redhat.com>
21280 PR tree-optimization/65241
21281 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
21282 hash table if INSERT is true.
21284 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
21287 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
21289 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
21292 * config/avr/avr.c (context.h, tree-pass.h): Include them.
21293 (avr_pass_data_recompute_notes): New static variable.
21294 (avr_pass_recompute_notes): New class.
21295 (avr_register_passes): New static function.
21296 (avr_option_override): Call it.
21298 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
21300 Fix various problems with specs file generation.
21303 * config.gcc (extra_gcc_objs) [avr]: Remove.
21304 * config/avr/driver-avr.c: Remove file.
21305 * config/avr/t-avr (driver-avr.o): Remove rule.
21306 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
21307 INCLUDES to build. Depend on TM_H.
21308 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
21309 build warnings. Fix non-matching types and non-existing %-codes.
21311 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
21312 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
21313 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
21314 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
21315 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
21316 (LIBGCC_SPEC): Remove definitions.
21318 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
21320 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
21321 to create a register in testing mode.
21323 2015-03-03 Martin Liska <mliska@suse.cz>
21324 Jan Hubicka <hubicka@ucw.cz>
21327 * cgraph.c (cgraph_node::has_thunk_p): New function.
21328 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
21329 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
21330 (sem_function::merge): Assert is changed.
21332 2015-03-03 Martin Liska <mliska@suse.cz>
21333 Martin Jambor <mjambor@suse.cz>
21336 * ipa-icf.c (sem_item_optimizer::execute): Change function
21337 return value to boolean.
21338 (sem_item_optimizer::merge_classes): Likewise.
21339 (ipa_icf_driver): Return TODO_remove_functions in case there's
21340 a merge operation processed.
21341 * ipa-icf.h: Change function return value to boolean.
21343 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21346 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
21347 processor type for 64-bit little endian PowerPC.
21349 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21350 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
21351 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
21352 printing built-in mask so it does not pass NULL pointers.
21354 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
21357 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
21360 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
21361 !ISA_HAS_FP_CONDMOVE.
21363 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
21365 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
21368 2015-03-02 Ulrich Drepper <drepper@gmail.com>
21370 * doc/invoke.texi (Options for Code Generation Conventions):
21371 Fix URL of DSO paper.
21373 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
21376 * ipa-inline.c (check_callers): Looks for recursion.
21377 (inline_to_all_callers): Give up on uninlinable or recursive edges.
21378 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
21379 summary of inline clones.
21380 (do_estimate_growth_1): Fix recursion check.
21382 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
21385 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
21388 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
21389 Aldy Hernandez <aldyh@redhat.com>
21392 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
21393 when checking TYPE_BINFO.
21395 2015-03-02 Richard Biener <rguenther@suse.de>
21398 * ipa-icf-gimple.c: Include builtins.h.
21399 (func_checker::compare_memory_operand): Compare base alignment.
21401 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
21404 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
21405 are never passed by reference.
21407 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
21410 * tree-chkp.c (chkp_check_lower): Don't check against
21411 zero bounds for already instrumented functions.
21412 (chkp_check_upper): Likewise.
21413 (chkp_fini): Clean pass local data to avoid wrong reusage.
21415 2015-02-28 Martin Liska <mliska@suse.cz>
21416 Jan Hubicka <hubicka@ucw.cz>
21418 * ipa-icf.c (sem_variable::equals): Improve debug output;
21419 get variable constructor.
21420 (sem_variable::parse): Do not filter out too early; give up on
21421 volatile and register vars.
21422 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
21424 * ipa-icf.h (sem_variable::init): Do not set ctor.
21425 (sem_variable::ctor): Remove.
21427 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
21429 PR middle-end/65233
21430 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
21432 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21434 * ipa-icf.c: Include stor-layout.h
21435 (sem_function::compare_cgraph_references): Rename to ...
21436 (sem_item::compare_cgraph_references): ... this one.
21437 (sem_variable::equals_wpa): New function
21438 (sem_variable::equals): Do not check stuff already verified by
21440 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
21441 * ipa-icf.h (sem_item): Add compare_cgraph_references.
21442 (sem_function): Remove compare_cgraph_references.
21443 (sem_variable): Turns equals_wpa into non-inline.
21445 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21447 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
21448 (sem_item::add_expr): New function.
21449 (sem_function::hash_stmt): Handle operands of most statements.
21450 (sem_variable::get_hash): Hash the actual constructor.
21451 * ipa-icf.h (sem_item): Add add_expr.
21452 (sem_function): Update prototype of hash_stmt
21454 2015-02-28 Martin Liska <mliska@suse.cz>
21455 Jan Hubicka <hubicka@ucw.cz>
21458 * ipa-icf-gimple.c (func_checker::compare_function_decl):
21460 (func_checker::compare_variable_decl): Skip symtab vars.
21461 (func_checker::compare_cst_or_decl): Update.
21462 * ipa-icf.c (sem_function::parse): Do not consider aliases.
21463 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
21464 use correct symtab predicates.
21465 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
21466 (sem_variable::parse): Update comment.
21467 (sem_item_optimizer::build_graph): Consider ultimate aliases
21470 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21472 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
21475 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21477 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
21478 (sem_variable::merge) Likewise.
21480 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21482 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
21483 target; also match flag_ipa_devirt.
21485 2015-03-01 Martin Liska <mliska@suse.cz>
21486 Jan Hubicka <hubicka@ucw.cz>
21488 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
21489 Validate variable alignment.
21490 * ipa-icf.c (sem_function::equals_private): Be more precise
21491 about non-common function attributes.
21492 (sem_variable::equals): Likewise.
21494 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21497 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
21498 across COMDAT group boundary.
21500 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21503 * ipa-icf.c (clear_decl_rtl): New function.
21504 (sem_function::merge): Clear RTL before forming alias.
21505 (sem_variable::merge): Clear RTL before forming alias.
21507 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21510 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
21512 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
21514 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
21517 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
21519 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
21520 a typo in the description.
21522 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
21525 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
21526 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
21527 * lra-constraints.c: Include "params.h".
21528 (EBB_PROBABILITY_CUTOFF): Use
21529 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
21530 (lra_inheritance): Use '<' instead of '<=' for
21531 EBB_PROBABILITY_CUTOFF.
21532 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
21535 2015-02-27 Martin Liska <mliska@suse.cz>
21537 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
21538 vector length condition.
21540 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
21542 * doc/extend.texi (x86 transactional memory intrinsics):
21543 Reorganize discussion of _xbegin. Clarify that the return
21544 value is a bit mask. Expand example and move to end of section.
21546 2015-02-26 Jakub Jelinek <jakub@redhat.com>
21547 Aldy Hernandez <aldyh@redhat.com>
21549 PR rtl-optimization/65220
21550 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
21552 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
21555 * lra-remat.c (update_scratch_ops): New.
21556 (do_remat): Call it.
21557 * lra.c (lra_register_new_scratch_op): New. Take code from ...
21558 (remove_scratches): ... here.
21559 * lra-int.h (lra_register_new_scratch_op): New prototype.
21561 2015-02-27 Marek Polacek <polacek@redhat.com>
21564 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
21565 -Wformat-signedness anymore.
21567 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21569 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
21571 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
21573 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21575 * config/s390/s390.c (enum s390_builtin):
21576 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
21577 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
21578 (s390_init_builtins): Generate new builtin functions.
21579 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
21580 (s390_sfpc, s390_efpc): New pattern definitions.
21582 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21584 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
21585 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
21586 (s390_builtin_decls): New array.
21587 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
21588 (s390_builtin_decl): New function.
21589 (TARGET_BUILTIN_DECL): Define macro.
21591 2015-02-27 Richard Biener <rguenther@suse.de>
21593 PR middle-end/63175
21594 * builtins.c (get_object_alignment_2): Make sure to re-apply
21595 the ANDed mask after recursing to its operand gets us a new
21596 misalignment bit position.
21598 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
21599 Martin Liska <mliska@suse.cz>
21602 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
21603 Use address_matters_p.
21604 (redirect_all_callers, set_addressable): New functions.
21605 (sem_function::merge): Reorganize and fix merging issues.
21606 (sem_variable::merge): Likewise.
21607 (sem_variable::compare_sections): Remove.
21608 * common.opt (fmerge-all-constants, fmerge-constants): Remove
21610 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
21612 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
21614 (address_matters_1): New function.
21615 (symtab_node::address_matters_p): New function.
21616 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
21617 check for merged flag.
21618 * cgraph.h (address_matters_p): Declare.
21619 (symtab_node::address_taken_from_non_vtable_p): Remove.
21620 (symtab_node::address_can_be_compared_p): New method.
21621 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
21622 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
21624 (comdat_can_be_unshared_p_1) Use address_matters_p.
21625 (update_vtable_references): Fix formating.
21626 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
21627 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
21628 * cgraphclones.c: Preserve merged and icf_merged flags.
21630 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
21632 * doc/extend.texi (Function Attributes): Fix spelling and typos.
21633 (Label Attributes): Likewise.
21634 (Cilk Plus Builtins): Likewise.
21635 (ARC SIMD Built-in Functions): Likewise.
21636 (ARM C Language Extensions (ACLE)): Likewise.
21637 (PowerPC Built-in Functions): Likewise.
21638 (PowerPC Hardware Transactional Memory Built-in Functions):
21641 2015-02-26 Jakub Jelinek <jakub@redhat.com>
21643 PR tree-optimization/65216
21644 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
21645 new stmt and new SSA_NAME for lhs whenever the arguments have
21646 changed and weren't just swapped. Fix comment typo.
21648 PR tree-optimization/65215
21649 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
21650 for PDP endian targets.
21651 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
21652 Fix up formatting issues.
21653 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
21654 size is smaller than the original, adjust MEM_REF offset by the
21655 difference of sizes. Use is_gimple_mem_ref_addr instead of
21656 is_gimple_min_invariant test to avoid adding address temporaries.
21658 2015-02-26 Martin Liska <mliska@suse.cz>
21659 Jan Hubicka <hubicka@ucw.cz>
21662 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
21663 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
21664 (sem_item_optimizer::process_cong_reduction): Include division by
21665 sensitive references.
21666 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
21667 * ipa-ref.c (ipa_ref::address_matters_p): New function.
21668 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
21670 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
21673 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
21675 * config/avr/avr.c: Same.
21676 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
21677 Refuse any constant address not in 0..0xbf.
21678 * config/avr/avr.md (*mov<mode>, *movsf): Remove
21679 tiny_valid_direct_memory_access_range from insn conditions.
21680 (mov<mode>): Don't special-case expansion of avrtiny addresses.
21682 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
21685 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
21686 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
21687 * config/sh/predicates.md (const_logical_operand): New predicate.
21688 * config/sh/sh.md: Add new peephole2 patterns.
21690 2015-02-26 Marek Polacek <polacek@redhat.com>
21693 * ipa-inline.c (early_inliner): Recompute inline parameters.
21695 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21698 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
21699 instructions with TImode operands are included in the analysis.
21701 2015-02-26 Sebastian Pop <s.pop@samsung.com>
21703 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
21704 of an EDGE_FSM_THREAD.
21706 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
21708 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
21710 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
21713 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
21715 2015-02-26 Sebastian Pop <s.pop@samsung.com>
21717 PR tree-optimization/65048
21718 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
21719 (thread_through_all_blocks): Call valid_jump_thread_path.
21720 Remove invalid FSM jump-thread paths.
21722 2015-02-26 Jakub Jelinek <jakub@redhat.com>
21724 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
21725 (ipa_write_optimization_summaries): Likewise.
21726 * tree-streamer.h: Include data-streamer.h.
21727 (streamer_mode_table): Declare extern variable.
21728 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
21729 * lto-streamer-out.c (lto_output_init_mode_table,
21730 lto_write_mode_table): New functions.
21731 (produce_asm_for_decls): Call lto_write_mode_table when streaming
21733 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
21734 (lto_create_simple_input_block): Add mode_table argument to the
21735 lto_input_block constructors.
21736 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
21738 * data-streamer-in.c (string_for_index): Likewise.
21739 * ipa-inline-analysis.c (inline_read_section): Likewise.
21740 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
21741 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
21742 * lto-streamer-in.c (lto_read_body_or_constructor,
21743 lto_input_toplevel_asms): Likewise.
21744 (lto_input_mode_table): New function.
21745 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
21746 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
21747 Use bp_pack_machine_mode.
21748 * real.h (struct real_format): Add name field.
21749 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
21750 (class lto_input_block): Add mode_table member.
21751 (lto_input_block::lto_input_block): Add mode_table_ argument,
21752 initialize mode_table.
21753 (struct lto_file_decl_data): Add mode_table field.
21754 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
21755 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
21756 unpack_ts_decl_common_value_fields,
21757 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
21758 * tree-streamer.c (streamer_mode_table): New variable.
21759 * real.c (ieee_single_format, mips_single_format,
21760 motorola_single_format, spu_single_format, ieee_double_format,
21761 mips_double_format, motorola_double_format,
21762 ieee_extended_motorola_format, ieee_extended_intel_96_format,
21763 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
21764 ibm_extended_format, mips_extended_format, ieee_quad_format,
21765 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
21766 decimal_single_format, decimal_double_format, decimal_quad_format,
21767 ieee_half_format, arm_half_format, real_internal_format): Add name
21769 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
21771 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
21774 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
21775 reordering for selective scheduling.
21777 2015-02-26 Terry Guo <terry.guo@arm.com>
21779 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
21780 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
21781 (arm_arch_no_volatile_ce): Declare new global variable.
21782 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
21783 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
21784 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
21785 (TARGET_NO_VOLATILE_CE): New macro.
21786 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
21787 volatile memory access in IT block
21789 2015-02-25 Kai Tietz <ktietz@redhat.com>
21791 PR tree-optimization/61917
21792 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
21793 that reduc_def_stmt is null.
21795 2015-02-25 Martin Liska <mliska@suse.cz>
21797 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
21798 hard register variables.
21800 2015-02-25 Kai Tietz <ktietz@redhat.com>
21803 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
21804 (symtab::noninterposable_alias): Likewise.
21806 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
21809 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
21811 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
21813 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
21816 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
21817 as split condition; force split via '#' in output pattern.
21819 2015-02-25 Richard Biener <rguenther@suse.de>
21820 Kai Tietz <ktietz@redhat.com>
21822 PR tree-optimization/61917
21823 * tree-vect-loop.c (vectorizable_reduction): Allow
21824 vect_internal_def without reduction to exit graceful.
21826 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
21829 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
21830 only with NONDEBUG_INSN_P.
21832 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
21834 Use variadic macros with avr-log.c.
21836 * config/avr/avr-protos.h (avr_vdump): New prototype.
21837 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
21838 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
21839 * config/avr/avr-log.c: Adjust comments.
21840 (avr_vdump): New function.
21841 (avr_vadump): Pass caller as 2nd argument instead of format string.
21842 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
21843 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
21845 2015-02-25 Jakub Jelinek <jakub@redhat.com>
21848 * target.def (target_option_stream_in): New target hook.
21849 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
21850 targetm.target_option.post_stream_in if non-NULL.
21851 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
21852 * doc/tm.texi: Updated.
21853 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
21855 (TARGET_OPTION_POST_STREAM_IN): Redefine.
21857 2015-02-24 Jeff Law <law@redhat.com>
21860 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
21861 of operand 0 and operand 2.
21862 (zero_cost_loop_end, loop_end): Similarly.
21864 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
21866 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
21869 2015-02-24 DJ Delorie <dj@redhat.com>
21871 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
21872 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
21873 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
21874 instead of hardcoding SImode.
21876 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
21878 * omp-low.c (create_omp_child_function): Tag entrypoint
21879 functions with a special attribute.
21881 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
21884 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
21886 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
21888 PR rtl-optimization/65123
21889 * lra-remat.c (operand_to_remat): Check hard regs in insn
21892 2015-02-24 Nick Clifton <nickc@redhat.com>
21894 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
21897 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
21900 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
21901 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
21902 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
21903 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
21904 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
21905 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
21906 (BUILT_IN_GOACC_PARALLEL): Specify as
21907 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
21908 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
21909 * builtin-types.def
21910 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21911 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21912 Remove function types.
21913 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
21914 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21915 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21916 New function types.
21918 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
21920 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
21922 2015-02-24 Jakub Jelinek <jakub@redhat.com>
21924 PR tree-optimization/65170
21925 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
21926 if val[1] < 0, clear also val[2] and return 3.
21928 2015-02-24 Alan Modra <amodra@gmail.com>
21931 * config/rs6000/rs6000.c (get_memref_parts): Only return true
21932 when *base is a reg. Handle nested plus addresses. Simplify
21935 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
21937 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
21938 use natural alignment when optimizing for size.
21940 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
21943 * config/sh/sh.md (movsicc_true+3): Remove peephole.
21944 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
21945 * config/sh/sh.c (replace_n_hard_rtx): Remove.
21947 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
21950 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
21951 too big for a wide_int. Implement missing wrapping operation.
21953 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
21956 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
21957 instead of const_int 4294901760.
21959 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
21961 * config/avr/t-avr: Fix typo in comment.
21963 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
21965 * doc/rtl.texi (fma): Clarify documentation.
21967 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
21970 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
21971 over input_location.
21973 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
21975 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
21976 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
21977 restrict alignments to absolute_biggest_alignment.
21978 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
21980 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
21981 * doc/tm.texi: Regenerate.
21982 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
21984 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
21987 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
21989 2015-02-20 Richard Biener <rguenther@suse.de>
21991 PR tree-optimization/65136
21992 * tree-ssa-propagate.c: Include cfgloop.h.
21993 (replace_phi_args_in): Avoid replacing loop latch edge PHI
21994 arguments with constants.
21996 2015-02-20 Jakub Jelinek <jakub@redhat.com>
21997 Martin Liska <mliska@suse.cz>
22000 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
22001 don't try to create_thunk if stdarg_p. If
22002 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
22003 redirect_callers if possible.
22004 (sem_item_optimizer::execute): Call unregister_hooks here...
22005 (ipa_icf_driver): ... instead of here.
22007 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22009 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
22010 Mark operand 0 as earlyclobber in 2nd alternative.
22011 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
22012 Write negated shift amount into QI lowpart operand 0 and use it
22014 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
22016 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
22018 * cgraph.h (clone_function_name_1): Declare.
22019 * cgraphclones.c (clone_function_name_1): New function.
22020 (clone_function_name): Use it.
22021 * lto-partition.c: Include "stringpool.h".
22022 (must_not_rename, maybe_rewrite_identifier)
22023 (validize_symbol_for_target): New static functions.
22024 (privatize_symbol_name): Use must_not_rename.
22025 (promote_symbol): Call validize_symbol_for_target.
22026 (lto_promote_cross_file_statics): Likewise.
22027 (lto_promote_statics_nonwpa): Likewise.
22029 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
22032 * config/avr/avr.md (pushhi_insn): New insn.
22033 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
22035 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
22036 Jakub Jelinek <jakub@redhat.com>
22038 * tree-streamer.c (preload_common_nodes): Don't preload
22039 TI_VA_LIST* for offloading.
22040 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
22043 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
22045 * config/pa/pa.c (pa_emit_move_sequence): Always force
22046 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
22049 * config/pa/pa.c (pa_reloc_rw_mask): New function.
22050 (TARGET_ASM_RELOC_RW_MASK): Define.
22051 (pa_cannot_force_const_mem): Revert previous change.
22053 2015-02-19 Martin Jambor <mjmabor@suse.cz>
22054 Jan Hubicka <hubicka@ucw.cz>
22057 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
22058 across jump functions.
22060 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
22062 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
22064 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
22066 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
22068 2015-02-19 Richard Henderson <rth@redhat.com>
22070 PR middle-end/65074
22071 * varasm.c (default_binds_local_p_2): Don't test node->definition;
22072 test DECL_EXTERNAL independent of symtab_node.
22074 2015-02-19 Jakub Jelinek <jakub@redhat.com>
22077 * varpool.c (varpool_node::get_constructor): Return early
22078 if this->lto_file_data is NULL.
22080 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22082 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
22083 (rank_for_schedule_debug): Update.
22084 (ready_sort): Make static. Move sorting logic to ...
22085 (ready_sort_debug, ready_sort_real): New static functions.
22086 (schedule_block): Sort both debug insns and real insns in preparation
22087 for ready list trimming. Improve debug output.
22088 * sched-int.h (ready_sort): Remove global declaration.
22090 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
22092 * ipa-icf.c (sem_function::equals_private): Adjust.
22093 (sem_function::bb_dict_test): Take a vec<int> * instead of
22095 * ipa-icf.h (bb_dict_test): Likewise.
22097 2015-02-18 Jakub Jelinek <jakub@redhat.com>
22099 PR gcov-profile/64634
22100 * tree-eh.c (frob_into_branch_around): Fix up typos
22101 in function comment.
22102 (lower_catch): Put eh_seq resulting from EH lowering of
22103 the cleanup sequence after the cleanup rather than before it.
22105 2015-02-18 Tom de Vries <tom@codesourcery.com>
22107 * common.opt (fstdarg-opt): New option.
22108 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
22109 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
22110 (@item -fstdarg-opt): New item.
22112 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
22115 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
22116 for common symbols.
22118 2015-02-18 Jakub Jelinek <jakub@redhat.com>
22120 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
22122 (ALL_HOST_OBJS): Add mkoffload.o.
22123 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
22125 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
22127 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
22128 (compare_virtual_tables): Be smarter about skipping typeinfos;
22129 do sane output on virtual table table mismatch.
22130 (warn_odr): Be ready for forward declarations of enums;
22131 output sane info on base mismatch and virtual table mismatch.
22132 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
22133 when only one type is polymorphic.
22134 (get_odr_type): Fix hashtable corruption.
22135 (dump_odr_type): Dump mangled names.
22137 2015-02-18 Richard Biener <rguenther@suse.de>
22139 PR tree-optimization/65063
22140 * tree-predcom.c (determine_unroll_factor): Return 1 if we
22141 have replaced looparound PHIs.
22143 2015-02-18 Martin Liska <mliska@suse.cz>
22145 * lto-streamer.c (lto_streamer_init): Encapsulate
22146 streamer_check_handled_ts_structures with checking macro.
22148 2015-02-18 Jakub Jelinek <jakub@redhat.com>
22151 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
22152 section if !implicit_section.
22153 (cgraph_node::create_version_clone_with_body): Likewise.
22154 * trans-mem.c (ipa_tm_create_version): Likewise.
22156 2015-02-18 Richard Biener <rguenther@suse.de>
22158 PR tree-optimization/62217
22159 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
22162 2015-02-18 Marek Polacek <polacek@redhat.com>
22165 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
22166 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
22167 is in range [-16K, -1]. Don't issue run-time error if
22168 (ptr > ptr + offset).
22170 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
22172 * doc/install.texi (nvptx-*-none): New section.
22173 * doc/invoke.texi (Nvidia PTX Options): Likewise.
22174 * config/nvptx/nvptx.opt: Update.
22176 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
22177 (access_check): New functions, copied from
22178 config/i386/intelmic-mkoffload.c.
22179 (main): For non-installed testing, look in all COMPILER_PATHs for
22182 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
22184 2015-02-18 Andrew Pinski <apinski@cavium.com>
22185 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
22187 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
22188 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
22190 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
22192 * ipa-visibility.c (function_and_variable_visibility): Only
22193 check locality if node is not already local.
22194 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
22195 call_for_symbol_and_aliases instead of
22196 call_for_symbol_thunks_and_aliases.
22197 (ipa_inline): Likewise.
22198 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
22199 first walk aliases.
22200 * ipa.c (symbol_table::remove_unreachable_nodes): Use
22201 call_for_symbol_and_aliases.
22202 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
22203 (ipa_propagate_frequency_1): Use it; use opt_for_fn
22204 (ipa_propagate_frequency): Update.
22205 (ipa_profile): Add opt_for_fn gueards.
22207 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
22209 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
22210 * doc/invoke.texi (SH options): Document it.
22211 * config/sh/sh.c (sh_insn_length_adjustment): Check
22212 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
22214 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
22216 * common.opt (fipa-cp-alignment): New.
22217 * ipa-cp.c (ipcp_store_alignment_results): Check
22218 flag_ipa_cp_alignment.
22219 * opts.c (default_options_table): Enable -fipa-cp-alignment for
22221 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
22222 * doc/invoke.texi: Document -fipa-cp-alignment.
22224 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
22227 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
22228 to nil. Adjust comments.
22230 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
22232 * ipa-visibility.c (function_and_variable_visibility): Only
22233 check locality if node is not already local.
22234 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
22235 call_for_symbol_and_aliases instead of
22236 call_for_symbol_thunks_and_aliases.
22237 (ipa_inline): Likewise.
22238 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
22239 first walk aliases.
22240 * ipa.c (symbol_table::remove_unreachable_nodes): Use
22241 call_for_symbol_and_aliases.
22242 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
22243 (ipa_propagate_frequency_1): Use it; use opt_for_fn
22244 (ipa_propagate_frequency): Update.
22245 (ipa_profile): Add opt_for_fn guards.
22247 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
22249 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
22250 skipping of "strange" tokens.
22252 2015-02-17 Jeff Law <law@redhat.com>
22254 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
22257 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
22259 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
22260 as forcing a HARD_DEP between instructions, thereby
22261 disallowing rewriting to break dependencies.
22263 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
22265 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
22266 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
22267 variables in boundary that have no inlitalizer encoded and are
22269 * varasm.c (default_binds_local_p_2): External definitions do not
22270 count as definitions here.
22272 2015-02-16 Jeff Law <law@redhat.com>
22274 PR tree-optimization/64823
22275 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
22277 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
22278 threading through blocks with PHIs, but no statements.
22279 (thread_through_normal_block): Distinguish between blocks where
22280 we did not process all the statements and blocks with no statements.
22282 2015-02-16 Jakub Jelinek <jakub@redhat.com>
22283 James Greenhalgh <james.greenhalgh@arm.com>
22286 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
22287 section if not linkonce. Fix up formatting.
22288 (cgraph_node::create_version_clone_with_body): Copy section.
22289 * trans-mem.c (ipa_tm_create_version): Likewise.
22291 2015-02-16 Richard Biener <rguenther@suse.de>
22293 PR tree-optimization/65077
22294 * tree-ssa-structalias.c (get_constraint_for_1): Handle
22295 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
22296 (find_func_aliases): Allow float values to carry pointers again.
22298 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22300 * doc/install.texi (Specific): Reorder targets list to put
22301 aarch64 in alphabetical order. Add a link to aarch64*-*-*
22304 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
22305 David Edelsohn <dje.gcc@gmail.com>
22308 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
22309 mapping class to external variable or function reference.
22310 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
22313 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
22316 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
22317 ASM_WEAKEN_DECL if defined.
22319 2015-02-16 Richard Biener <rguenther@suse.de>
22322 * varasm.c (default_file_start): For LTO produced units
22323 emit <artificial> as file directive.
22325 2015-02-16 Richard Biener <rguenther@suse.de>
22327 PR tree-optimization/63593
22328 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
22329 stmts and releasing SSA names until...
22330 (execute_pred_commoning): ... after processing all chains.
22332 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
22335 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
22336 external functions.
22338 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
22340 * doc/bugreport.texi: Adjust section titles throughout the file
22341 to use "Title Case".
22342 * doc/extend.texi: Likewise.
22343 * doc/gcov.texi: Likewise.
22344 * doc/implement-c.texi: Likewise.
22345 * doc/implement-cxx.texi: Likewise.
22346 * doc/invoke.texi: Likewise.
22347 * doc/objc.texi: Likewise.
22348 * doc/standards.texi: Likewise.
22349 * doc/trouble.texi: Likewise.
22351 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
22353 * cgraph.h (symtab_node::has_aliases_p): Simplify.
22354 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
22355 * tree.c (lookup_binfo_at_offset): Make static.
22356 (get_binfo_at_offset): Do not shadow offset; add explanatory
22359 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
22361 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
22362 for all floading point loads and stores except those using a register
22364 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
22367 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
22369 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
22370 (do_estimate_growth_1): Record if any uninlinable edge was seen.
22371 (estimate_growth): Handle uninlinable edges correctly.
22372 (check_callers): New.
22373 (growth_likely_positive): Handle aliases correctly.
22375 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
22377 * ipa-chkp.c: Use iterate_direct_aliases.
22378 * symtab.c (resolution_used_from_other_file_p): Move inline.
22379 (symtab_node::create_reference): Fix formating.
22380 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
22381 (symtab_node::iterate_reference): Move inline.
22382 (symtab_node::iterate_referring): Move inline.
22383 (symtab_node::iterate_direct_aliases): Move inline.
22384 (symtab_node::used_from_object_file_p_worker): Inline into ...
22385 (symtab_node::used_from_object_file_p): ... this one; move inline.
22386 (symtab_node::call_for_symbol_and_aliases): Move inline;
22387 use iterate_direct_aliases.
22388 (symtab_node::call_for_symbol_and_aliases_1): New method.
22389 (cgraph_node::call_for_symbol_and_aliases): Move inline;
22390 use iterate_direct_aliases.
22391 (cgraph_node::call_for_symbol_and_aliases_1): New method.
22392 (varpool_node::call_for_node_and_aliases): Rename to ...
22393 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
22394 use iterate_direct_aliases.
22395 (varpool_node::call_for_symbol_and_aliases_1): New method.
22396 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
22397 (ipa_discover_readonly_nonaddressable_var): Update.
22398 * ipa-devirt.c: Fix formating.
22399 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
22401 (cgraph_node::call_for_symbol_and_aliases): Move inline.
22402 (cgraph_node::call_for_symbol_and_aliases_1): New function..
22403 * cgraph.h (used_from_object_file_p_worker): Remove.
22404 (resolution_used_from_other_file_p): Move inline.
22405 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
22406 (symtab_node::iterate_reference): Move inline.
22407 (symtab_node::iterate_referring): Move inline.
22408 (symtab_node::iterate_direct_aliases): Move inline.
22409 (symtab_node::used_from_object_file_p_worker): Inline into ...
22410 (symtab_node::used_from_object_file_p): Move inline.
22411 * tree-emutls.c (ipa_lower_emutls): Update.
22412 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
22413 (varpool_node::call_for_node_and_aliases): Remove.
22415 2015-02-14 Jakub Jelinek <jakub@redhat.com>
22417 PR tree-optimization/62209
22418 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
22419 op == range->exp, insert seq and gimplified code after labels
22420 instead of after the phi.
22422 2015-02-13 Jeff Law <law@redhat.com>
22425 Revert my change for tree-optimization/64823.
22427 2015-02-13 Jakub Jelinek <jakub@redhat.com>
22429 PR tree-optimization/65053
22430 * tree-ssa-phiopt.c (value_replacement): When moving assign before
22431 cond, either reset VR on lhs or set it to phi result VR.
22433 2015-02-13 Jeff Law <law@redhat.com>
22435 PR tree-optimization/64823
22436 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
22437 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
22438 threading through blocks with PHIs, but no statements.
22439 (thread_through_normal_block): Distinguish between blocks where
22440 we did not process all the statements and blocks with no statements.
22442 PR rtl-optimization/47477
22443 * match.pd (convert (plus/minus (convert @0) (convert @1): New
22444 simplifier to narrow arithmetic.
22446 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
22449 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
22450 polymorphic call info when type is not known to be preserved.
22452 2015-02-13 Maritn Jambor <mjambor@suse.cz>
22455 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
22456 (inline_call): Use it.
22458 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
22460 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
22461 GOMP_DEVICE_NVIDIA_PTX.
22463 2015-02-13 Jakub Jelinek <jakub@redhat.com>
22466 * stmt.c (emit_case_nodes): Use void_type_node instead of
22467 NULL_TREE as LABEL_DECL type.
22469 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
22471 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
22473 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
22474 symbolic references to data to be forced to constant memory on the
22477 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
22479 PR tree-optimization/65002
22480 * tree-cfg.c (pass_data_fixup_cfg): Don't update
22482 * tree-sra.c (some_callers_have_no_vuse_p): New.
22483 (ipa_early_sra): Reject functions whose callers
22484 assume function is read only.
22486 2015-02-13 Richard Biener <rguenther@suse.de>
22489 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
22490 for LTO produced CUs.
22492 2015-02-13 Bin Cheng <bin.cheng@arm.com>
22494 PR tree-optimization/64705
22495 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
22496 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
22497 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
22498 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
22499 expand_simple_operations.
22501 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
22502 Richard Henderson <rth@redhat.com>
22505 * cgraphunit.c (cgraph_node::finalize_function): Set definition
22506 before notice_global_symbol.
22507 (varpool_node::finalize_decl): Likewise.
22508 * varasm.c (default_binds_local_p_2): Rename from
22509 default_binds_local_p_1, add weak_dominate argument. Use direct
22510 returns instead of assigning to local variable. Unify varpool and
22511 cgraph paths via symtab_node. Reject undef weak variables before
22512 testing visibility. Reorder tests for simplicity.
22513 (default_binds_local_p): Use default_binds_local_p_2.
22514 (default_binds_local_p_1): Likewise.
22515 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
22517 (default_elf_asm_output_external): Emit visibility when specified.
22519 2015-02-13 Alan Modra <amodra@gmail.com>
22521 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
22522 code setting up r11 for out-of-line fp restore.
22524 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
22526 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
22527 (muser-mode): Likewise.
22529 2015-02-13 Alan Modra <amodra@gmail.com>
22531 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
22532 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
22534 2015-02-12 David Howells <dhowells@redhat.com>
22536 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
22538 * tree-ssa-uninit.c (dump_predicates): Likewise.
22539 * opts.c (print_filtered_help): Likewise.
22541 2015-02-12 Jakub Jelinek <jakub@redhat.com>
22543 * dwarf2out.c (output_die): Use "%s", name instead of name to
22544 avoid -Wformat-security warning.
22546 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
22547 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
22548 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
22549 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
22551 2015-02-12 Jason Merrill <jason@redhat.com>
22553 * common.opt (-flifetime-dse): New.
22555 2015-02-12 Jakub Jelinek <jakub@redhat.com>
22558 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
22560 PR tree-optimization/65014
22561 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
22562 use original second operand of arg0 or arg1 instead of
22563 that adjusted by STRIP_NOPS.
22565 2015-02-11 Jeff Law <law@redhat.com>
22568 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
22569 that needs to be queued, just queue it for a single cycle.
22571 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
22573 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
22574 bodies of thunks; comment on why.
22575 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
22576 symbols are extern.
22578 2015-02-11 Richard Henderson <rth@redhat.com>
22581 * tree-eh.c (mark_reachable_handlers): Mark source and destination
22582 regions of __builtin_eh_copy_values.
22584 2015-02-11 Jakub Jelinek <jakub@redhat.com>
22586 PR middle-end/65003
22587 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
22588 ultimate alias is MEM with SYMBOL_REF satisfying
22589 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
22590 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
22592 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
22594 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
22595 "diagnostic-core.h".
22596 (main): Initialize progname, and call diagnostic_initialize.
22598 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
22599 instead of __OPENMP_TARGET__.
22601 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
22602 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
22603 hard-coding PTX_ID.
22605 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
22607 * doc/sourcebuild.texi (pie_enabled): Document.
22609 2015-02-11 Martin Liska <mliska@suse.cz>
22612 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
22613 a return value for call to a function that is noreturn.
22615 2015-02-11 Richard Biener <rguenther@suse.de>
22618 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
22621 2015-02-11 Andrew Pinski <apinski@cavium.com>
22624 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
22625 Change the first argument type to size_type_node and add another
22627 (aarch64_simd_expand_builtin): Handle the new argument to
22628 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
22629 print an out when the first two arguments are not
22630 nonzero integer constants.
22631 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
22632 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
22634 2015-02-11 Jakub Jelinek <jakub@redhat.com>
22637 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
22638 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
22639 (ix86_set_current_function): Rewritten.
22640 (ix86_add_new_builtins): Temporarily clear current_target_pragma
22641 when creating builtin fndecls.
22643 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
22646 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
22648 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
22649 have no comdat group.
22650 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
22651 (lto_output_varpool_node): Always output alias info.
22652 (output_refs): Output refs of boundary aliases, too.
22653 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
22654 (output_symtab): Output call eges in thunks in boundary.
22655 (get_alias_symbol): Remove.
22656 (input_node, input_varpool_node): Do not special case weakrefs.
22657 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
22658 alias and thunks targets in the boundary; do not take removed symbols
22659 from their comdat groups.
22660 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
22661 (cgraph_node::global_info): Remove.
22662 (cgraph_node::rtl_info): Look through aliases and thunks.
22663 * cgrpah.h (global_info): Remove.
22664 (non_local_p): Remove.
22666 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
22667 Sandra Loosemore <sandra@codesourcery.com>
22669 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
22670 to inline asm. List dialects in proper order.
22672 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
22673 Sandra Loosemore <sandra@codesourcery.com>
22675 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
22677 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
22679 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
22680 modified) reference to Solaris.
22682 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
22684 * doc/extend.texi (Extended Asm): Fix typos.
22686 2015-02-10 Jakub Jelinek <jakub@redhat.com>
22689 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
22691 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
22694 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
22695 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
22696 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
22697 * config/sh/constraints.md (Ara, Add): New constraints.
22698 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
22700 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
22701 atomic_mem_operand_0. Don't use force_reg on the memory address.
22702 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
22703 Sra constraint. Convert to insn_and_split. Add workaround for
22705 (atomic_compare_and_swap<mode>_hard): Copy to
22706 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
22707 Use atomic_mem_operand_0 predicate.
22708 (atomic_compare_and_swap<mode>_soft_gusa,
22709 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
22710 AraAdd constraints.
22711 (atomic_compare_and_swap<mode>_soft_tcb,
22712 atomic_compare_and_swap<mode>_soft_imask,
22713 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
22714 atomic_mem_operand_0 predicate and SraSdd constraints.
22715 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
22717 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
22718 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
22719 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
22720 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
22721 force_reg on the memory address.
22722 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
22723 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
22724 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
22725 atomic_mem_operand_1 predicate and Sra constraint.
22726 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
22727 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
22728 Use atomic_mem_operand_1 predicate.
22729 (atomic_<fetchop_name><mode>_hard): Copy to
22730 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
22731 Use atomic_mem_operand_1 predicate.
22732 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
22733 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
22734 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
22735 insn_and_split. Use atomic_mem_operand_1 predicate.
22736 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
22737 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
22738 Use atomic_mem_operand_1 predicate.
22739 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
22740 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
22741 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
22742 in generated insn with original mem operand before emitting the insn.
22743 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
22744 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
22745 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
22746 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
22747 Use atomic_mem_operand_1 predicate and AraAdd constraints.
22748 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
22749 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
22750 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
22751 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
22752 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
22753 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
22754 atomic_not_fetch<mode>_soft_tcb,
22755 atomic_<fetchop_name>_fetch<mode>_soft_imask,
22756 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
22757 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
22758 Use atomic_mem_operand_1 predicate and SraSdd constraints.
22760 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
22762 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
22763 and 3 earlyclobber operands.
22765 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
22767 * common.opt (fstack-reuse): Mark as optimization.
22769 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
22772 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
22774 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
22776 PR tree-optimization/64326
22777 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
22779 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
22781 PR gcov-profile/61889
22782 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
22784 2015-02-10 Richard Biener <rguenther@suse.de>
22786 PR tree-optimization/64995
22787 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
22788 value we use is final.
22789 (visit_reference_op_store): Always valueize op.
22790 (visit_use): Properly valueize vuses.
22792 2015-02-10 Richard Biener <rguenther@suse.de>
22794 PR tree-optimization/64909
22795 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
22796 pass a scalar-stmt count estimate to the cost model.
22797 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
22799 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
22801 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
22802 enabled by default together with var-tracking.
22804 2015-02-10 Nick Clifton <nickc@redhat.com>
22806 * config/rl78/rl78.c: Remove DIV attribute code accidentally
22807 included in previous rl78 commit.
22809 2015-02-10 Richard Biener <rguenther@suse.de>
22811 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
22812 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
22813 return the bitpack.
22815 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
22817 PR gcov-profile/61889
22818 * config.in: regenerate.
22819 * configure.in: Likewise.
22820 * configure.ac: Check for ftw.h.
22821 * gcov-tool.c: Check for ftw.h before using nftw.
22823 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
22826 * ipa-visibility.c (update_visibility_by_resolution_info): Only
22827 assert when not in lto mode.
22829 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
22831 * ira-color.c (setup_left_conflict_sizes_p): Simplify
22832 initialization/assignment of conflict_size.
22834 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
22837 * ipa-cp.c (gather_caller_stats): Skip thunks.
22838 (propagate_constants_topo): Skip aliases.
22840 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
22843 * config/sh/sh.c (sh_option_override): Don't change
22844 -freorder-blocks-and-partition to -freorder-blocks even when
22845 unwinding is enabled.
22846 (sh_can_follow_jump): Return false if the followee jump is
22847 a crossing jump when -freorder-blocks-and-partition is specified.
22848 * config/sh/sh.md (*jump_compact_crossing): New insn.
22850 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
22851 Kaz Kojima <kkojima@gcc.gnu.org>
22854 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
22855 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
22856 (sh_can_redirect_branch): Rename to ...
22857 (sh_can_follow_jump): ... this. Constify argument types.
22858 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
22859 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
22860 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
22861 * doc/tm.texi: Regenerate.
22863 2015-02-09 Jakub Jelinek <jakub@redhat.com>
22866 * builtins.c (expand_builtin): Call targetm.expand_builtin
22867 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
22869 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22872 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
22874 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22877 * ipa-icf.c (set_local): New function.
22878 (sem_function::merge): Use it.
22880 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22882 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
22883 (add_type_duplicate): Fix comparison of BINFOs.
22885 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22887 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
22888 on getting VOID pointer.
22890 2015-02-09 Jakub Jelinek <jakub@redhat.com>
22893 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
22896 2015-02-09 Richard Biener <rguenther@suse.de>
22898 * genmatch.c (replace_id): Copy expr_type.
22900 2015-02-09 Richard Biener <rguenther@suse.de>
22902 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
22903 (streamer_write_tree_bitfields): Declare.
22904 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
22905 properly unpack padding.
22906 (unpack_value_fields): Inline ...
22907 (streamer_read_tree_bitfields): ... here.
22908 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
22909 and properly add padding bits.
22910 (streamer_pack_tree_bitfields): Fold into ...
22911 (streamer_write_tree_bitfields): ... this new function,
22912 exposing the bitpack object.
22913 * lto-streamer-out.c (lto_write_tree_1): Call
22914 streamer_write_tree_bitfields.
22916 2015-02-09 Richard Biener <rguenther@suse.de>
22918 PR tree-optimization/54000
22919 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
22920 (struct ivopts_data): Add loop_loc member.
22921 (tree_ssa_iv_optimize_loop): Dump loop location.
22922 (create_new_ivs): Likewise, also dump number of IVs generated.
22924 2015-02-09 Martin Liska <mliska@suse.cz>
22926 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
22927 just if not yet registered.
22928 (ipa_icf_generate_summary): Register callgraph hooks.
22930 2015-02-08 Andrew Pinski <apinski@cavium.com>
22932 * config/aarch64/aarch64.c (gty_dummy): Delete.
22934 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22937 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
22938 (cgraph_node::local_p): Remove thunk related FIXME.
22940 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22943 * i386.c (ix86_function_regparm): Look through aliases to see if callee
22944 is local and optimized.
22945 (ix86_function_sseregparm): Likewise; also use target's SSE math
22946 settings; error out instead of silently generating wrong code
22948 (init_cumulative_args): Look through aliases.
22950 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22953 * ipa-split.c (execute_split_functions): Split if function has aliases.
22955 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22958 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
22959 aliases before trying to expand it.
22960 (cgraph_node::expand_thunk): Fix formating.
22962 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
22964 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
22965 (Using Assembly Language with C): Expand introduction.
22966 (Basic Asm): Copy-edit. Add more information about uses of
22968 (Extended Asm): Copy-edit. Document new escape syntax and
22970 (Global Reg Vars): Copy-edit.
22971 (Local Reg Vars): Likewise.
22973 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
22977 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
22978 (DBX_CONTIN_CHAR): Define.
22980 2015-02-06 Sebastian Pop <s.pop@samsung.com>
22981 Brian Rzycki <b.rzycki@samsung.com>
22983 PR tree-optimization/64878
22984 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
22985 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
22986 Stop recursion at loop phi nodes after having visited a loop phi node.
22988 2015-02-06 Jakub Jelinek <jakub@redhat.com>
22990 * toplev.c (process_options): Change flag_ipa_ra before creating
22991 optimization_{default,current}_node.
22994 * cgraphunit.c (cgraph_node::expand_thunk): If
22995 restype is not is_gimple_reg_type nor the thunk_fndecl
22996 returns aggregate_value_p, set restmp to a temporary variable
22997 instead of resdecl.
22999 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
23001 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
23003 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
23006 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
23007 add a general secondary reload handler for SDmode, unless we have
23008 both read/write support for SDmode.
23010 2015-02-06 Jakub Jelinek <jakub@redhat.com>
23012 PR middle-end/64937
23013 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
23014 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
23015 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
23016 1 before, push it to abstract_vec.
23017 (dwarf2out_abstract_function): Adjust caller. Don't call
23018 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
23019 DECL_ABSTRACT_P flags for all abstract_vec elts.
23021 2015-02-06 Renlin Li <renlin.li@arm.com>
23023 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
23025 * tree-ssa.c (execute_update_addresses_taken): Likewise.
23027 2015-02-06 Jeff Law <law@redhat.com>
23030 * config/h8300/h8300.c (push): New argument "in_prologue".
23031 Pass "in_prologue" along to "F".
23032 (h8300_push_pop): Corresponding changes.
23033 (h8300_expand_prologue): Likewise.
23034 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
23036 2015-02-06 Jakub Jelinek <jakub@redhat.com>
23038 PR rtl-optimization/64957
23040 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
23041 IOR rather than for AND.
23043 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
23046 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
23047 of shift-add and (add + shift) operations. Rename local variable.
23049 2015-02-05 Jeff Law <law@redhat.com>
23052 * config/h8300/constraints.md (U): Correctly dectect
23053 "eightbit_data" memory addresses.
23054 * config/h8300/h8300.c (eightbit_constant_address_p): Also
23055 handle (const (plus (symbol_ref (x)))) where x is declared
23056 as an 8-bit data memory address.
23057 * config/h8300/h8300.md (call, call_value): Correctly detect
23058 "funcvec" functions.
23061 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
23062 24 to 28 bits for the H8/300.
23064 2015-02-06 Alan Modra <amodra@gmail.com>
23067 * config/rs6000/rs6000.c (chain_already_loaded): New function.
23068 (rs6000_call_aix): Use it.
23070 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
23072 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
23075 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
23077 * config/h8300/constraints.md ("U" constraint): Use strict
23078 variant of REG_OK_FOR_BASE_P after reload has started.
23080 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
23082 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
23083 define to zero if !TARGET_NEON.
23084 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
23086 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23087 Trevor Saunders <tsaunders@mozilla.com>
23090 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
23092 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23095 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
23096 when removing varpool nodes.
23098 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23101 * varpool.c (varpool_node::remove): Fix order of variables.
23103 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23106 * ipa-inline.c (inline_small_functions): Fix ordering issue between
23107 speculation resolution and key updates.
23109 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23111 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
23112 about not letting any speculative edges unupdated.
23114 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23117 * gcov-io.c (gcov_var): Export.
23119 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23121 PR middle-end/64922
23122 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
23123 edges that become speculative.
23125 2015-02-04 Jakub Jelinek <jakub@redhat.com>
23127 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
23128 or DW_LANG_Fortran08.
23129 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
23131 (gen_compile_unit_die): Handle "GNU Fortran2003" and
23132 "GNU Fortran2008" language strings.
23133 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
23134 * langhooks.h (lang_GNU_Fortran): New prototype.
23135 * langhooks.c (lang_GNU_Fortran): New function.
23136 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
23139 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
23141 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
23142 (RTX_OK_FOR_OLO10_P): Likewise.
23144 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
23146 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
23148 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23150 PR middle-end/64922
23151 * gimple.c: Include gimple-ssa.h.
23152 (maybe_remove_unused_call_args): New function.
23153 * gimple.h (maybe_remove_unused_call_args): Declare.
23154 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
23155 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
23156 * gimple-fold.c (gimple_fold_call): Likewise.
23158 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
23160 PR rtl-optimization/64905
23161 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
23162 pointer alignment if it isn't needed.
23164 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
23166 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
23167 cortex-a72.cortex-a53.
23168 * config/aarch64/aarch64-tune.md: Regenerate.
23169 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
23171 2015-02-04 Nick Clifton <nickc@redhat.com>
23173 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
23176 2015-02-04 Jakub Jelinek <jakub@redhat.com>
23178 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
23179 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
23180 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
23182 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
23183 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
23184 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
23185 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
23186 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
23187 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
23188 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
23189 * tree-core.h (enum built_in_function): In between
23190 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
23191 for builtins that use DEF_BUILTIN_CHKP macro.
23193 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
23196 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
23197 operands for tcc_comparison exprs. Fix typos.
23200 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
23201 of two XORs that have an intervening AND or IOR.
23204 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
23205 simplification of XOR of AND to not allocate new rtx before
23206 committing to a simplification.
23208 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23210 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
23211 manual swaps in all peepholes.
23213 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23215 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
23216 of manual swapping implementation.
23217 (aarch64_expand_vec_perm_const_1): Likewise.
23219 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
23221 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
23222 (generic_addrcost_table): Remove NAMED_PARAM.
23223 (cortexa57_addrcost_table): Likewise.
23224 (xgene1_addrcost_table): Likewise.
23225 (generic_regmove_table): Likewise.
23226 (cortexa53_regmove_table): Likewise.
23227 (xgene1_regmove_table): Likewise.
23228 (generic_vector_table): Likewise.
23229 (cortexa57_vector_table): Likewise.
23230 (xgene1_vector_table): Likewise.
23231 (generic_tunings): Likewise.
23232 (cortexa53_tunings): Likewise.
23233 (cortexa57_tunings): Likewise.
23234 (xgene1_tunings): Likewise.
23236 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
23238 * config/arm/arm-cores.def: Add cortex-a72 and
23239 cortex-a72.cortex-a53.
23240 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
23241 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
23242 * config/arm/arm-tune.md: Regenerate.
23243 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
23244 "cortex-a72.cortex-a53".
23245 * doc/invoke.texi (ARM Options/-mtune): Likewise.
23247 2015-02-04 Nick Clifton <nickc@redhat.com>
23250 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
23252 (nonimmediate_di_operand): Likewise.
23254 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
23255 prefixes of known F5 using MSP430 MCUs.
23257 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23259 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
23260 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
23261 instead of __builtin_sqrt.
23263 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
23265 * varasm.c (do_assemble_alias): Follow transparent alias
23267 (default_assemble_visibility): Follow transparent alias
23268 chain for decl name.
23270 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
23272 PR middle-end/62103
23273 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
23274 to compute size of referenced value in the constant case.
23276 2015-02-03 Jakub Jelinek <jakub@redhat.com>
23278 PR rtl-optimization/64756
23279 * cse.c (invalidate_dest): New function.
23280 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
23281 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
23282 invalidate and do not record it.
23284 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
23287 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
23288 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
23289 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
23290 atomic_nand<mode>_soft_tcb): New insns.
23291 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
23292 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
23293 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
23294 Split into atomic_not_fetchsi_hard if operands[0] is unused.
23295 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
23296 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
23297 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
23298 atomic_not<mode>_hard if operands[0] is unused.
23299 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
23300 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
23301 if operands[0] is unused.
23302 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
23303 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
23304 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
23305 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
23307 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
23308 into atomic_not<mode>_soft_tcb if operands[0] is unused.
23309 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
23310 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
23311 if operands[0] is unused.
23312 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
23313 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
23314 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
23315 atomic_nand_fetchsi_hard if operands[0] is unused.
23316 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
23317 atomic_nand<mode>_hard if operands[0] is unused.
23318 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
23319 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
23320 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
23321 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
23322 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
23323 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
23324 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
23325 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
23326 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
23327 atomic_not<mode>_hard if operands[0] is unused.
23328 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
23329 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
23331 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
23332 into atomic_not<mode>_soft_tcb if operands[0] is unused.
23333 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
23334 atomic_nand<mode>_hard if operands[0] is unused.
23335 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
23336 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
23338 2015-02-03 David Malcolm <dmalcolm@redhat.com>
23341 * Makefile.in (GCC_OBJS): Add gcc-main.o.
23342 * gcc-main.c: New file, containing "main" taken from gcc.c.
23343 * gcc.c (do_self_spec): Free decoded_options.
23344 (class driver): Move declaration to gcc.h.
23345 (main): Move declaration and implementation to new file
23347 (driver_get_configure_time_options): New function.
23348 * gcc.h (class driver): Move this declaration here, from
23350 (driver_get_configure_time_options): New declaration.
23352 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
23354 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
23355 cross-module inlining.
23356 * cgraph.h (cgraph_node): Add flag merged.
23357 * ipa-icf.c (sem_function::merge): Maintain it.
23359 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
23361 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
23362 instead of OBJECT_P.
23364 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
23367 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
23368 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
23369 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
23370 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
23372 2015-02-03 Jakub Jelinek <jakub@redhat.com>
23375 * combine.c (reg_n_sets_max): New variable.
23376 (can_change_dest_mode, reg_nonzero_bits_for_combine,
23377 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
23378 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
23379 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
23380 (rest_of_handle_combine): Initialize reg_n_sets_max.
23382 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
23384 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
23385 if some always_inline was inlined, apply changes before inlining
23388 2015-02-02 David Malcolm <dmalcolm@redhat.com>
23391 * config/arm/arm.c (arm_option_override): Set
23392 arm_selected_arch/cpu/tune to NULL on entry.
23394 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
23395 Andrew Pinski <pinskia@gcc.gnu.org>
23396 Jakub Jelinek <jakub@gcc.gnu.org>
23399 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
23400 integer typing for small model. Use IN_RANGE.
23402 2015-02-02 Richard Biener <rguenther@suse.de>
23404 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
23405 * tree-vrp.c (vrp_valueize_1): Likewise.
23407 2015-02-02 Alan Modra <amodra@gmail.com>
23409 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
23410 than mem for toc_restore.
23411 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
23412 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
23413 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
23415 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
23418 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
23419 explicit default options.
23421 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
23424 * ipa-utils.c (ipa_merge_profiles): Add release argument.
23425 * ipa-icf.c (sem_function::merge): Do not release body when merging.
23426 * ipa-utils.h (ipa_merge_profiles): Update prototype.
23428 2015-02-01 Jakub Jelinek <jakub@redhat.com>
23431 * cfgexpand.c (deep_ter_debug_map): New variable.
23432 (avoid_deep_ter_for_debug): New function.
23433 (expand_debug_expr): If TERed SSA_NAME is in
23434 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
23435 instead of trying to expand SSA_NAME's def stmt.
23436 (expand_debug_locations): When expanding debug bind
23437 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
23438 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
23440 (pass_expand::execute): Call avoid_deep_ter_for_debug on
23441 all debug bind stmts. Delete deep_ter_debug_map after
23442 expand_debug_location if non-NULL and clear it.
23444 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
23447 * config/sh/sync.md (atomic_fetch_notsi_hard,
23448 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
23449 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
23450 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
23451 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
23452 atomic_not_fetch<mode>_soft_imask): New insns.
23454 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23456 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
23457 (rank_for_schedule_debug): Split from ...
23458 (rank_for_schedule): ... this.
23459 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
23460 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
23462 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
23464 * doc/md.texi (Machine Constraints): Alphabetize table by target.
23465 * doc/extend.texi (x86 Variable Attributes): Move section to
23466 correct alphabetization after renaming.
23467 (x86 Type Attributes): Likewise.
23468 (Target Builtins): Re-alphabetize menu.
23469 (x86 Built-in Functions): Move section to correct alphabetization
23471 (x86 transactional memory intrinsics): Likewise.
23472 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
23473 and x86 Windows Options in table and menu.
23474 (x86 Options): Move section to correct alphabetization after
23476 (x86 Windows Options): Likewise.
23478 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
23480 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
23481 preferred names of the architecture and its 32- and 64-bit
23483 * doc/invoke.texi: Likewise.
23484 * doc/md.texi: Likewise.
23486 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
23489 * config/i386/predicates.md (address_no_seg_operand): Reject
23490 non-CONST_INT_P operands in invalid mode.
23492 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
23494 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
23495 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
23496 * config/i386/predicates.md (address_no_seg_operand): Call
23497 address_operand with VOIDmode.
23498 (vsib_address_operand): Ditto.
23499 (address_mpx_no_base_operand): Ditto.
23500 (address_mpx_no_index_operand): Ditto.
23502 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
23505 * lra-constraints.c (original_subreg_reg_mode): New.
23506 (simplify_operand_subreg): Try to simplify subreg of const. Use
23507 original_subreg_reg_mode for it.
23508 (swap_operands): Update original_subreg_reg_mode.
23509 (curr_insn_transform): Set up original_subreg_reg_mode.
23511 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
23514 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
23516 (process_alt_operands): Use it.
23517 (curr_insn_transform): Check the optional reload pseudo class is
23520 2015-01-30 Joseph Myers <joseph@codesourcery.com>
23522 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
23523 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
23525 * toplev.h (init_asm_output): Update comment on use of
23526 UNKNOWN_LOCATION with fatal_error.
23527 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
23528 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
23529 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
23530 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
23531 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
23532 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
23533 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
23534 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
23535 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
23536 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
23537 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
23538 fatal_error changed to pass input_location as first argument.
23540 2015-01-30 Martin Liska <mliska@suse.cz>
23542 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
23543 in #pragma GCC diagnostic guards.
23545 2015-01-30 Richard Biener <rguenther@suse.de>
23547 PR tree-optimization/64829
23548 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
23549 not add a widening conversion pattern but hand off extra
23550 widenings to callers.
23551 (vect_recog_widen_mult_pattern): Handle extra widening produced
23552 by vect_handle_widen_op_by_const.
23553 (vect_recog_widen_shift_pattern): Likewise.
23554 (vect_pattern_recog_1): Remove excess vertical space in dumping.
23555 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
23556 (vect_init_vector_1): Likewise.
23557 (vect_get_vec_def_for_operand): Likewise.
23558 (vect_finish_stmt_generation): Likewise.
23559 (vectorizable_load): Likewise.
23560 (vect_analyze_stmt): Likewise.
23561 (vect_is_simple_use): Likewise.
23563 2015-01-29 Jeff Law <law@redhat.com>
23565 * combine.c (try_combine): Fix typo in comment.
23567 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
23570 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
23571 (rs6000_stack_info): Add assert.
23572 (rs6000_output_savres_externs): New function, split off from...
23573 (rs6000_output_function_prologue): ... here. Do not call it for
23576 2015-01-29 Jeff Law <law@redhat.com>
23579 * combine.c (try_combine): If I0 is a memory load and I3 a store
23580 to a related address, increase the "goodness" of doing a 4-insn
23581 combination with I0-I3.
23582 (make_field_assignment): Handle SUBREGs in the ior+and case.
23584 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
23586 PR tree-optimization/64746
23587 * tree-if-conv.c (mask_exists): New function.
23588 (predicate_mem_writes): Save created mask with given size for further
23590 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
23591 (ifcvt_repair_bool_pattern): Collect all statements that are root
23592 of bool pattern and use iterative algorithm to remove multiple uses
23593 of predicates, display number of required iterations.
23595 2015-01-29 Richard Biener <rguenther@suse.de>
23597 PR tree-optimization/64853
23598 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
23599 stmt will get simulated again.
23600 * tree-ssa-ccp.c (valueize_op_1): Likewise.
23602 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23604 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
23605 return_in_pc. Remove redundant assignments.
23606 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
23607 (arm_expand_epilogue): Don't compare boolean with true in if condition.
23609 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
23611 * config/i386/i386.c (ix86_mode_after): Make static.
23613 2015-01-29 Richard Biener <rguenther@suse.de>
23615 PR tree-optimization/64844
23616 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
23617 dump cost model analysis.
23618 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
23619 Do not register adjusted load/store costs here.
23621 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
23622 Uros Bizjak <ubizjak@gmail.com>
23624 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
23625 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
23626 using x86_use_pseudo_pic_reg.
23627 * config/i386/i386.c (ix86_conditional_register_usage): Remove
23628 support for fixed PIC register.
23629 (ix86_use_pseudo_pic_reg): Not static any more.
23631 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
23633 PR middle-end/64805
23634 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
23635 to avoid error in cgraph node verification.
23637 2015-01-29 Marek Polacek <polacek@redhat.com>
23639 * doc/standards.texi: Reflect that the default for C is gnu11.
23641 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
23644 * reorg.c (switch_text_sections_between_p): New function.
23645 (relax_delay_slots): Call it when testing if the jump insn
23646 is removable. Use targetm.can_follow_jump when testing if
23647 the conditional branch can follow an unconditional jump.
23649 2015-01-27 Caroline Tice <cmtice@google.com>
23651 Committing VTV Cywin/Ming patch for Patrick Wollgast
23652 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
23653 if -fvtable-verify=preinit/std is used.
23654 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
23655 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
23656 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
23657 if -fvtable-verify=preinit/std is used.
23658 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23659 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
23660 if -fvtable-verify=preinit/std is used.
23661 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
23662 * config/i386/mingw32.h (LIB_SPEC): Likewise.
23663 * varasm.c (assemble_variable): Add code to properly set the comdat
23664 section and name for the .vtable_map_vars section in case the
23665 target is PE or COFF.
23667 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
23670 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
23671 make sane BB profile.
23672 (cgraph_node::expand_thunk): Make sane BB profile.
23673 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
23674 * cgraph.h (init_lowered_empty_function): Update prototype.
23675 * config/i386/i386.c (make_resolver_func): Update call.
23676 * predict.c (gate): Disable branch prediction pass if
23677 profile is already there.
23679 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
23681 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
23682 * opth-gen.awk: Likewise.
23683 * common.opt: Mark flag_fp_contract_mode as Optimization.
23685 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
23687 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
23688 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
23690 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
23693 * config/sh/predicates.md (atomic_arith_operand,
23694 atomic_logical_operand): Remove.
23695 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
23696 (atomic_arith_operand_0): New predicate.
23697 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
23698 Use atomic_arith_operand_0 for input values.
23699 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
23700 atomic_compare_and_swap<mode>_soft_gusa,
23701 atomic_compare_and_swap<mode>_soft_tcb,
23702 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
23703 arith_reg_operand instead of register_operand.
23704 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
23705 atomic_arith_operand_0 for newval input.
23706 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
23707 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
23708 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
23709 arith_reg_operand instead of register_operand.
23710 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
23711 fetchop_predicate_1, fetchop_constraint_1_llcs,
23712 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
23713 fetchop_constraint_1_imask): New code iterator attributes.
23714 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
23715 register_operand. Use fetchop_predicate_1.
23716 (atomic_fetch_<fetchop_name>si_hard,
23717 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
23718 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
23719 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
23720 and arith_reg_operand instead of register_operand. Use
23721 fetchop_predicate_1, fetchop_constraint_1_gusa.
23722 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
23723 and arith_reg_operand instead of register_operand. Use
23724 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
23726 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
23727 and arith_reg_operand instead of register_operand. Use
23728 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
23730 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
23731 register_operand. Use atomic_logical_operand_1.
23732 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
23733 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
23734 arith_reg_operand instead of register_operand.
23735 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
23736 Use arith_reg_dest and arith_reg_operand instead of register_operand.
23737 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
23738 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
23739 register_operand. Use fetchop_predicate_1.
23740 (atomic_<fetchop_name>_fetchsi_hard,
23741 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
23742 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
23743 fetchop_constraint_1_llcs.
23744 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
23745 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
23746 fetchop_constraint_1_gusa.
23747 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
23748 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
23749 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
23750 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
23751 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
23752 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
23753 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
23754 register_operand. Use atomic_logical_operand_1.
23755 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
23756 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
23757 arith_reg_operand instead of register_operand.
23758 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
23759 arith_reg_operand instead of register_operand. Use logical_operand
23760 and K08. Adjust asm sequence to allow R0 usage.
23761 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
23762 arith_reg_operand instead of register_operand. Use logical_operand
23765 2015-01-28 Jakub Jelinek <jakub@redhat.com>
23768 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
23769 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
23770 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
23771 only get_full_len HOST_WIDE_INTs from get_val () array rather than
23772 all bits in *val_wide.
23774 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
23776 * varpool.c (tls_model_names): Fix names.
23777 (varpool_node::dump): Dump tls- prefix for tls models.
23779 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
23780 Bernd Schmidt <bernds@codesourcery.com>
23781 Nathan Sidwell <nathan@codesourcery.com>
23783 * config/nvptx/mkoffload.c: New file.
23784 * config/nvptx/t-nvptx: Add build rules for it.
23785 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
23786 (extra_programs): Add mkoffload.
23787 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
23789 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
23791 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
23793 PR middle-end/64809
23794 * cfgexpand.c (reorder_operands): Skip debug gimples.
23796 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
23798 PR tree-optimization/64277
23799 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
23800 range info when possible to refine estimation.
23802 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
23804 PR tree-optimization/64718
23805 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
23806 be a 16bit unsigned integer when n->range is 16.
23807 (bswap_replace): Convert src to that type if necessary for all bswap
23808 sizes. Fix rotation right notation in nearby comment. Use bswap_type
23809 set in pass_optimize_bswap::execute ().
23811 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
23813 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
23814 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
23815 integer and floating point variants.
23816 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
23818 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
23820 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
23821 for all vector modes.
23823 2015-01-28 Jakub Jelinek <jakub@redhat.com>
23826 * doc/sourcebuild.texi (comdat_group): Document.
23828 2015-01-28 Terry Guo <terry.guo@arm.com>
23830 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
23832 2015-01-27 David Malcolm <dmalcolm@redhat.com>
23834 * toplev.c (print_version): Add param "show_global_state", and
23835 only print GGC and plugin information if it is true.
23836 (init_asm_output): Pass in "true" for the new param when calling
23838 (process_options): Likewise.
23839 (toplev::main): Likewise.
23840 * toplev.h (print_version): Add new param to decl.
23842 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
23846 * tree.c (lookup_binfo_at_offset): New function.
23847 (get_binfo_at_offset): Use it.
23849 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
23852 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
23853 on vtable being vtable.
23855 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
23857 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
23858 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
23859 -mhotpatch= option.
23860 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
23861 -mno-hotpatch options. Change syntax of -mhotpatch= option.
23862 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
23864 (s390_hotpatch_trampoline_halfwords_max): Renamed.
23865 (s390_hotpatch_hw_max): New name.
23866 (s390_hotpatch_trampoline_halfwords): Renamed.
23867 (s390_hotpatch_hw_before_label): New name.
23868 (get_hotpatch_attribute): Removed.
23869 (s390_hotpatch_hw_after_label): New name.
23870 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
23872 (s390_attribute_table): Ditto.
23873 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
23874 (s390_function_num_hotpatch_hw): New name.
23875 Remove special handling of inline functions and hotpatching.
23876 Return number of nops before and after the function label.
23877 (s390_can_inline_p): Removed.
23878 (s390_asm_output_function_label): Emit a configurable number of nops
23879 after the function label.
23880 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
23881 (TARGET_CAN_INLINE_P) Removed.
23882 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
23884 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23885 Jiong Wang <jiong.wang@arm.com>
23887 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
23889 (cb<optab><mode>1): Likewise.
23890 * config/aarch64/iterators.md (bcond): New define_code_attr.
23892 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23894 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
23897 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23899 * config/s390/s390.c (s390_register_move_cost): Increase costs for
23902 2015-01-27 Richard Biener <rguenther@suse.de>
23904 * tree-vrp.c (update_value_range): Intersect the range with
23905 old recorded SSA name range information.
23907 2015-01-27 Nick Clifton <nickc@redhat.com>
23909 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
23910 BC, DE and HL registers directly, not via AX.
23911 When decrementing the stack pointer by a large amount, transfer SP
23912 into AX and perform the subtraction there.
23913 (rl78_expand_epilogue): Perform the inverse of the above
23916 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23918 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
23920 2015-01-27 Jakub Jelinek <jakub@redhat.com>
23921 Yury Gribov <y.gribov@samsung.com>
23924 * ubsan.c (ubsan_source_location): Refactor code.
23925 (ubsan_type_descriptor): Update type size. Refactor code.
23927 2015-01-27 Richard Biener <rguenther@suse.de>
23929 PR tree-optimization/56273
23930 PR tree-optimization/59124
23931 PR tree-optimization/64277
23932 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
23933 from the first VRP pass.
23935 2015-01-27 Jakub Jelinek <jakub@redhat.com>
23938 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
23939 handle the first argument in the same loop as all the other arguments.
23941 PR rtl-optimization/61058
23942 * jump.c (cleanup_barriers): Update basic block boundaries
23943 if BLOCK_FOR_INSN is non-NULL on PREV.
23945 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
23947 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
23948 bounds narrowing, already instrumented calls and calls to
23949 not instrumentable functions.
23951 2015-01-27 Jakub Jelinek <jakub@redhat.com>
23953 PR tree-optimization/64807
23954 * wide-int.cc (wi::divmod_internal): Clear
23955 b_dividend[dividend_blocks_needed].
23957 2015-01-26 DJ Delorie <dj@redhat.com>
23959 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
23960 volatile memory references.
23962 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
23965 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
23967 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
23968 shifts if it already fits into K08.
23970 2015-01-26 Jakub Jelinek <jakub@redhat.com>
23973 * ipa-inline.c (inline_small_functions): Print "unknown" even
23974 if edge->call_stmt is non-NULL, but has builtins or unknown
23977 PR middle-end/64421
23978 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
23979 with asterisk, skip the first character.
23981 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
23984 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
23987 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
23990 * config/i386/i386.md (*movdi_internal): Also check operand 0
23991 to determine TYPE_LEA operand.
23992 (*movsi_internal): Ditto.
23994 2015-01-26 Jakub Jelinek <jakub@redhat.com>
23996 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
23997 OPTION_MASK_QUAD_MEMORY_ATOMIC.
23999 2015-01-26 Renlin Li <renlin.li@arm.com>
24001 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
24003 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
24006 2015-01-26 Richard Biener <rguenther@suse.de>
24008 PR middle-end/64764
24009 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
24010 combining two BIT_AND_EXPR predicates.
24012 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
24015 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
24017 2015-01-26 Terry Guo <terry.guo@arm.com>
24019 * config/arm/arm.c (arm_file_start): Update the assignment of
24020 Tag_ABI_HardFP_use.
24022 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
24024 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
24026 config/arm/arm.md: Include the new Cortex-A57 model.
24027 (generic_sched): Don't use generic_sched when tuning for
24030 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
24031 Uros Bizjak <ubizjak@gmail.com>
24033 * config/i386/i386.c (get_builtin_code_for_version): Add
24034 support for BMI and BMI2 multiversion functions.
24036 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24038 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
24039 (extract_bit_field): Likewise.
24040 (extract_low_bits): Likewise.
24041 (expand_mult): Likewise.
24042 (expand_mult_highpart_adjust): Likewise.
24044 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
24046 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
24047 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
24048 * config/i386/i386.c (processor_model): Add
24049 M_INTEL_COREI7_BROADWELL.
24050 (arch_names_table): Add "broadwell".
24052 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
24061 * config/sh/sh-protos.h
24062 (sh_extending_set_of_reg::can_use_as_unextended_reg,
24063 sh_extending_set_of_reg::use_as_unextended_reg,
24064 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
24065 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
24066 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
24067 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
24068 (sh_treg_insns): New class.
24069 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
24070 (scope_counter): New class.
24071 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
24072 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
24073 sh_extending_set_of_reg::can_use_as_unextended_reg,
24074 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
24075 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
24076 sh_split_treg_set_expr): New functions.
24077 (addsubcosts): Handle treg_set_expr.
24078 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
24079 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
24080 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
24081 (sh_insn_operands_modified_between_p): Make non-static.
24082 * config/sh/predicates.md (zero_extend_movu_operand): Allow
24083 simple_mem_operand in addition to displacement_mem_operand.
24084 (zero_extend_operand): Don't allow zero_extend_movu_operand.
24085 (treg_set_expr, treg_set_expr_not_const01,
24086 arith_reg_or_treg_set_expr): New predicates.
24087 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
24088 arith_or_int_operand instead of logical_operand. Convert to
24089 insn_and_split. Try to optimize constant operand in splitter.
24090 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
24091 (*tstqi_t_zero): Delete.
24092 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
24093 (tstsi_t_and_not): Delete.
24094 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
24095 Convert to insn_and_split.
24096 (unnamed split, tstsi_t_zero_extract_xor,
24097 tstsi_t_zero_extract_subreg_xor_little,
24098 tstsi_t_zero_extract_subreg_xor_big): Delete.
24099 (*tstsi_t_shift_mask): New insn_and_split.
24100 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
24101 to recombine with surrounding insns when splitting.
24102 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
24103 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
24104 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
24105 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
24106 (*cbranch_div0s: Delete.
24107 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
24108 Try to recombine with surrounding insns when splitting. Add operand
24110 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
24111 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
24112 *addc_r_r_msb, *addc_2r_msb): Delete.
24113 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
24115 (*addc_negreg_t): New insn_and_split.
24116 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
24117 Try to recombine with surrounding insns when splitting.
24118 Add operand order variants.
24119 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
24120 insn_and_split patterns.
24121 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
24122 surrounding insns when splitting.
24123 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
24124 (*rotcl): Likewise. Add zero_extract variant.
24125 (*ashrsi2_31): New insn_and_split.
24126 (*negc): Convert to insn_and_split. Use treg_set_expr.
24127 (*zero_extend<mode>si2_disp_mem): Update comment.
24128 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
24130 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
24131 with surrounding insns when splitting.
24132 (any_treg_expr_to_reg): New insn_and_split.
24133 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
24134 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
24135 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
24136 *zero_extract_2): New single bit zero extract patterns.
24137 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
24138 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
24139 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
24140 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
24142 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
24143 register_operand for set source.
24145 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
24147 * i386.opt (prefetch_sse): New targetsave.
24148 * i386.c (ix86_function_specific_save): Save prefetch_sse.
24149 (ix86_function_specific_restore): Restore prefetch_sse and initialize
24150 ix86_cost/ix86_tune_cost.
24152 2015-01-23 David Malcolm <dmalcolm@redhat.com>
24154 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
24155 Support the JIT by using 0 as the language type.
24157 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
24160 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
24161 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
24162 (mark_regno_live, process_bb_lives): Pass new parameter value to
24163 make_hard_regno_born.
24165 2015-01-23 Jakub Jelinek <jakub@redhat.com>
24167 PR rtl-optimization/63637
24168 PR rtl-optimization/60663
24169 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
24170 if elt->cost is MAX_COST for ASM_OPERANDS.
24171 (find_sets_in_insn): Fix up comment typo.
24172 (cse_insn): Don't set src_volatile for all non-volatile
24173 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
24174 or with "memory" clobber. Set elt->cost to MAX_COST
24175 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
24176 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
24178 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
24180 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
24183 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
24185 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
24186 libgcc/config/i386/elf-lib.h.
24188 2015-01-23 Jakub Jelinek <jakub@redhat.com>
24191 * gcc.c (print_configuration): Don't print a blank line at the end
24193 (run_attempt): ... but here unstead.
24195 PR middle-end/64734
24196 * omp-low.c (scan_sharing_clauses): Don't ignore
24197 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
24198 on target data/update constructs.
24200 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
24203 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
24204 (DEBUG_RELOAD): Removed define.
24205 (m32c_limit_reload_class): Enable traces with if DEBUG0.
24206 (m32c_function_arg): Added a type cast.
24207 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
24208 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
24209 * config/m32c/bitops.md (andqi3_16): Likewise.
24210 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
24211 (push_a01_l): Likewise.
24213 2015-01-23 David Malcolm <dmalcolm@redhat.com>
24216 * main.c (main): Construct toplev instances with init_signals=true.
24217 * toplev.c (general_init): Add param "init_signals", and use it to
24218 conditionalize the calls to signal and host_hooks.extra_signals.
24219 (toplev::toplev): Add param "init_signals".
24220 (toplev::main): When invoking general_init, pass m_init_signals
24221 to control whether signal-handlers are installed.
24222 * toplev.h (toplev::toplev): Add param "init_signals".
24223 (toplev::m_init_signals): New field.
24225 2015-01-23 David Malcolm <dmalcolm@redhat.com>
24228 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
24229 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
24230 latter may be affected by the former (e.g. on i686).
24232 2015-01-23 Martin Liska <mliska@suse.cz>
24234 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
24235 false positive during profiledbootstrap.
24237 2015-01-23 Tom de Vries <tom@codesourcery.com>
24240 * lto-opts.c (lto_write_options): Output non-explicit conservative
24242 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
24243 (append_compiler_options): Pass -fopenacc through.
24245 2015-01-23 Tom de Vries <tom@codesourcery.com>
24248 * lto-opts.c (lto_write_options): Output non-explicit conservative
24250 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
24251 (append_compiler_options): Pass -fopenmp through.
24253 2015-01-23 Jakub Jelinek <jakub@redhat.com>
24256 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
24259 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
24260 * diagnostic.def (DK_ICE_NOBT): New kind.
24261 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
24262 like DK_ICE, but never print backtrace.
24263 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
24264 (internal_error_no_backtrace): New function.
24265 * gcc.c (execute): Use internal_error_no_backtrace instead of
24268 2015-01-22 Jeff Law <law@redhat.com>
24271 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
24272 improve code density for small immediate to memory case.
24273 (insv): Better handle bitfield assignments when the field is
24274 being set to all ones.
24275 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
24278 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24279 Jakub Jelinek <jakub@redhat.com>
24281 PR middle-end/64729
24282 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
24283 for !TARGET_LIBC_PROVIDES_SSP version and
24284 -fstack-protector-{all,strong,explicit} otherwise.
24285 * config/freebsd.h (LINK_SSP_SPEC): Handle
24286 -fstack-protector-{strong,explicit}.
24288 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
24289 H.J. Lu <hongjiu.lu@intel.com>
24292 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
24295 2015-01-22 Wei Mi <wmi@google.com>
24297 PR rtl-optimization/64557
24298 * dse.c (record_store): Call get_addr for mem_addr.
24299 (check_mem_read_rtx): Likewise.
24301 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
24303 * fold-const.c (const_binop): Add early return for non-tcc_binary.
24305 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
24307 * toplev.c (init_local_tick): Process the failure when read
24308 fails for random_seed.
24310 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
24311 'pretty_name' to avoid memory overflow.
24313 2015-01-22 Richard Biener <rguenther@suse.de>
24315 PR middle-end/64728
24316 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
24317 abnormal coalescing on undefined SSA names.
24319 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
24323 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
24325 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
24327 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
24329 PR middle-end/63325
24330 * fold-const.c (fold_checksum_tree): Don't include value of
24331 expr->decl_with_vis.symtab_node in the checksum.
24333 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24335 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
24337 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
24340 * gcc.c (insert_comments): New function.
24341 (try_generate_repro): Call it.
24342 (append_text): Removed.
24344 2015-01-22 Richard Biener <rguenther@suse.de>
24346 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
24347 with IL incompatible options. Properly honor user optimize
24350 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
24352 PR rtl-optimization/64682
24353 * combine.c (distribute_notes): When moving a death note for
24354 a register that is set in the new I2, make sure to put it
24355 before that new I2.
24357 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
24359 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
24360 not TARGET_DEFAULT.
24362 2015-01-21 Jakub Jelinek <jakub@redhat.com>
24365 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
24366 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
24367 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
24370 * doc/invoke.texi (-fsanitize=vptr): Document.
24372 PR rtl-optimization/62078
24373 * dse.c: Include cfgcleanup.h.
24374 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
24375 anything call purge_all_dead_edges and cleanup_cfg at the end
24378 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
24380 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
24383 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24385 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
24388 2015-01-21 David Sherwood <david.sherwood@arm.com>
24389 Tejas Belagod <Tejas.Belagod@arm.com>
24391 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
24392 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
24393 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
24396 2015-01-21 David Sherwood <david.sherwood@arm.com>
24397 Tejas Belagod <Tejas.Belagod@arm.com>
24399 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
24400 (aarch64_reverse_mask): New decls.
24401 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
24402 (insn_count): New mode_attr.
24403 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
24404 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
24405 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
24406 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
24407 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
24408 (aarch64_simd_st4): New patterns.
24409 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
24410 (aarch64_reverse_mask): New functions.
24412 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
24414 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
24416 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
24417 addressing modes for BE.
24418 (aarch64_print_operand): Add 'R' specifier.
24419 (aarch64_simd_disambiguate_copy): Delete.
24420 (aarch64_simd_emit_reg_reg_move): New function.
24421 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
24422 in define_splits for structural moves.
24423 (mov<mode>): Use less restrictive predicates.
24424 (*aarch64_mov<mode>): Simplify and only allow for LE.
24425 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
24427 2015-01-21 Alan Hayward <alan.hayward@arm.com>
24429 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
24431 2015-01-21 Richard Henderson <rth@redhat.com>
24434 * ccmp.c (used_in_cond_stmt_p): Remove.
24435 (expand_ccmp_expr): Don't use it.
24437 2015-01-21 Nick Clifton <nickc@redhat.com>
24439 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
24442 2015-01-21 Richard Biener <rguenther@suse.de>
24444 PR middle-end/64313
24445 * tree-core.h (builtin_info, builtin_info_type): Turn from
24446 an object with two arrays into an array of an object with
24447 decl and two flags, implicit_p and declared_p.
24448 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
24449 set_builtin_decl, set_builtin_decl_implicit_p,
24450 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
24451 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
24452 * builtins.c (builtin_info): Adjust.
24453 * gimplify.c (gimplify_addr_expr): References to builtins
24454 that have been declared by the user makes them eligible for
24455 use by the compiler. Call set_builtin_decl_implicit_p on them.
24457 2015-01-20 Jeff Law <law@redhat.com>
24460 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
24461 allow pc-relative addresses in operand predicates or constraints.
24463 2015-01-21 Bin Cheng <bin.cheng@arm.com>
24465 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
24466 neon on aarch32 processors for stringops.
24468 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24471 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
24473 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24476 * ipa-inline.c: Include lto-streamer.h
24477 (report_inline_failed_reason): Output source file differences and
24478 flags on optimization/target node mismatch.
24479 (can_inline_edge_p): Consider caller to be the outer inline function;
24480 be less restrictive about matching opimize and optimize_size attributes.
24481 (inline_account_function_p): Break out from ...
24482 (inline_small_functions): ... here.
24483 * ipa-inline-transform.c (clone_inlined_nodes): Use
24484 inline_account_function_p.
24485 (inline_call): Use optimize attribution; use inline_account_function_p.
24486 (inline_transform): Use opt_for_fn.
24487 * ipa-inline.h (inline_account_function_p): Declare.
24489 2015-01-20 Jakub Jelinek <jakub@redhat.com>
24492 * dwarf2out.c (decl_piece_node): Don't put bitsize into
24493 mode if bitsize <= 0.
24494 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
24495 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
24496 sizes and positions.
24498 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
24500 * config/nios2/nios2.c (nios2_asm_file_end): Implement
24501 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
24503 (TARGET_ASM_FILE_END): Define.
24505 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24507 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
24508 (struct tune_params): Use the enum.
24509 * arm.c (arm_*_tune): Update.
24510 (arm_option_override): Update.
24512 2015-01-20 Richard Biener <rguenther@suse.de>
24515 * ipa-reference.c (add_static_var): Inline ...
24516 (analyze_function): ... here after splitting out from ...
24517 (is_proper_for_analysis): ... this.
24519 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
24522 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
24523 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
24524 replace the conditional with it's true branch.
24525 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
24526 (arm_lra_p): Remove.
24528 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
24530 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
24532 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24534 * config/tilegx/mul-tables.c: Move symtab.h include after
24535 coretypes.h include.
24536 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
24537 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
24538 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
24539 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
24540 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
24542 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
24546 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
24548 PR rtl-optimization/64081
24549 * loop-iv.c (def_pred_latch_p): New function.
24550 (latch_dominating_def): Allow specific cases with non-single
24552 (iv_get_reaching_def): Likewise.
24553 (check_complex_exit_p): New function.
24554 (check_simple_exit): Use check_complex_exit_p to allow certain cases
24555 with exits not executing on any iteration.
24557 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24560 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
24561 to set branch cost.
24563 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24566 * i386.c (gate): Check flag_expensive_optimizations and
24568 (ix86_option_override_internal): Drop optimize_size condition
24569 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
24570 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
24571 MASK_PREFER_AVX128.
24572 (ix86_avx256_split_vector_move_misalign,
24573 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
24574 * sse.md (all uses of TARGET_PREFER_AVX128): Add
24575 optimize_insn_for_speed_p check.
24577 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
24579 * config/mips/mips.h (FP_ASM_SPEC): New define.
24580 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
24583 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
24586 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
24587 nullptr for insn when reaching the first insn.
24588 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
24589 (sh_insn_operands_modified_between_p): Add nullptr check.
24590 (sh_find_extending_set_of_reg): Fix log message. Don't accept
24591 sign extending mem load if the insn contains any UNSPEC or
24594 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24596 * params.def (inline-unit-growth): Drop to 15%.
24597 * invoke.texi (inline-unit-growth): Document change.
24599 2015-01-19 Martin Liska <mliska@suse.cz>
24602 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
24603 function for second argument of OBJ_TYPE_REF.
24605 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24608 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
24609 whether function is an alias.
24611 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24613 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
24616 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
24618 PR rtl-optimization/64671
24619 * lra-remat.c (operand_to_remat): Don't consider jump and call
24622 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
24625 * config/rs6000/default64.h: Include rs6000-cpus.def.
24626 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
24627 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
24628 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
24630 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
24632 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
24633 pseudo-op to specify assembler dialect.
24635 2015-01-19 Martin Liska <mliska@suse.cz>
24638 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
24639 Handle safe potentially removed nodes during filtering.
24641 2015-01-19 Martin Liska <mliska@suse.cz>
24643 * doc/extend.texi (no_icf): Add new attribute description.
24644 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
24645 where the pass attempts to merge a function with no_icf attribute.
24647 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24650 * doc/md.texi (ARM Options): Document register constraints.
24652 2015-01-19 Jiong Wang <jiong.wang@arm.com>
24653 Andrew Pinski <apinski@cavium.com>
24656 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
24657 (ashl<mode>3): Don't expand if operands[2] is not constant.
24659 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24662 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
24663 Match xor-and-xor RTL pattern.
24665 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
24667 PR rtl-optimization/64081
24668 * loop-iv.c (def_pred_latch_p): New function.
24669 (latch_dominating_def): Allow specific cases with non-single
24671 (iv_get_reaching_def): Likewise.
24672 (check_complex_exit_p): New function.
24673 (check_simple_exit): Use check_complex_exit_p to allow certain cases
24674 with exits not executing on any iteration.
24676 2015-01-19 Jakub Jelinek <jakub@redhat.com>
24678 * common.opt (fgraphite): Fix a typo.
24680 2015-01-19 Felix Yang <felix.yang@huawei.com>
24682 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
24684 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
24685 uminp, smax_nanp, smin_nanp): New builtins.
24686 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
24687 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
24688 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
24689 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
24690 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
24691 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
24692 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
24693 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
24694 vpminnms_f32): Rewrite using builtin functions.
24696 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
24699 * omp-low.c (offload_symbol_decl): Remove variable.
24700 (get_offload_symbol_decl): Remove function.
24701 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
24702 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
24703 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
24704 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
24705 BUILT_IN_GOACC_UPDATE don't pass it at all.
24707 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
24709 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
24712 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
24714 * ipa-chkp.c (chkp_produce_thunks): Add early param
24715 to split thunks production into two passes. Keep
24716 'always_inline' function bodies after the first pass.
24717 (pass_data_ipa_chkp_early_produce_thunks): New.
24718 (pass_ipa_chkp_early_produce_thunks): New.
24719 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
24720 chkp_produce_thunks signature.
24721 (make_pass_ipa_chkp_early_produce_thunks): New.
24722 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
24723 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
24724 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
24726 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
24728 * cgraph.c (cgraph_node::dump): Dump profile flags.
24730 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
24733 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
24734 reg appear first in the parallel.
24736 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
24738 * ipa-reference.c (set_reference_optimization_summary,
24739 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
24741 (ignore_module_statics): New static var.
24742 (propagate_bits): If ipa-reference is disabled, do not look into local
24744 (analyze_function): Disable analysis when ipa_reference is disabled.
24745 (generate_summary): Do not dump when reference is disabled;
24746 collect vars accessed from functions with ipa-reference disabled.
24747 (get_read_write_all_from_node): When ipa-reference is disabled, use the
24749 (gate): Enable for LTO.
24750 (ignore_edge_p): New function.
24751 (propagate): Skip functions w/o ipa-reference analysis.
24752 * optc-save-gen.awk: Handle optimize_debug correctly.
24753 * opth-gen.awk: Likewise.
24754 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
24755 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
24756 fira-share-save-slots, fira-share-spill-slots,
24757 fmodulo-sched-allow-regmoves, fpartial-inlining,
24758 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
24759 ftracer, ftree-parallelize-loops, fassociative-math,
24760 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
24762 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
24763 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
24765 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
24768 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
24771 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
24773 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
24775 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
24777 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
24778 Remove duplicate option listings.
24780 2015-01-18 Felix Yang <felix.yang@huawei.com>
24782 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
24783 (autofdo_source_profile::get_callsite_total_count,
24784 function_instance::get_function_instance_by_decl,
24785 string_table::get_index, string_table::get_index_by_decl,
24786 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
24787 Fix comment typos. Reformatting and minor code rearrangement.
24789 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
24791 * config/rs6000/rs6000.md (probe_stack): Delete.
24792 (probe_stack_address): New.
24794 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
24796 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
24797 to test for 32-bit ABIs, not !TARGET_POWERPC64.
24799 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
24801 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
24802 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
24803 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
24805 (rs6000_libcall_value): Use the new function.
24807 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
24809 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
24811 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
24813 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
24814 implement a more precise life analysis for it during backward scan.
24816 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
24818 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
24820 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
24822 PR rtl-optimization/52773
24823 * calls.c (emit_library_call_value): When pushing arguments use
24824 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
24825 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
24826 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
24828 2015-01-17 Jeff Law <law@redhat.com>
24830 PR rtl-optimization/32790
24831 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
24832 not ZERO_EXTEND in SET_DESTs.
24834 2015-01-17 Alan Modra <amodra@gmail.com>
24836 * cprop.c (do_local_cprop): Revert last change.
24838 2015-01-16 DJ Delorie <dj@redhat.com>
24839 Nick Clifton <nickc@redhat.com>
24841 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
24842 (addhi3_real): Likewise. Fix [HL+0] syntax.
24843 (subqi3_real): Likewise.
24844 (subhi3_real): Likewise.
24845 (cbranchqi4_real): Likewise. Allow saddr,#imm.
24846 (cbranchhi4_real): Likewise.
24847 (cbranchhi4_real_inverted): Likewise.
24848 (cbranchsi4_real_lt): Likewise.
24849 (cbranchsi4_real_ge): Likewise.
24850 (cbranchsi4_real_ge): Likewise.
24851 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
24852 (sub<mode>3_virt): Likewise.
24853 (cbranchqi4_virt): Likewise.
24854 (cbranchhi4_virt): Likewise.
24855 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
24856 always use '[reg+imm]' even when imm is zero.
24857 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
24858 (rl78_general_operand): New.
24859 (rl78_nonimmediate_operand): New.
24860 (rl78_nonfar_operand): Use them.
24861 (rl78_nonfar_nonimm_operand): Likewise.
24862 (rl78_stack_based_mem): Fix.
24863 * config/rl78/constraints.md (Ibqi): New.
24868 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
24869 (iorqi3): Likewise.
24870 (xorqi3): Likewise.
24871 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
24873 * config/rl78/constrains (Qs8): New constraint.
24874 * config/rl78/rl78.c (rl78_flags_already_set): New function.
24875 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
24876 * config/rl78/rl78-real.md (update_Z): New attribute.
24877 Update patterns to set it.
24878 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
24879 shorter compare and branch sequence can be used.
24880 (cbranchhi4_real): Likewise.
24881 (cbranchhi4_real_inverted): Likewise.
24883 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
24884 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
24886 * config/rl78/rl78.c (rl78_get_name_encoding): New.
24887 (rl78_option_override): Allow -mes0 only if C.
24888 (characterize_address): Support subregs of symbol_refs.
24889 (rl78_addr_space_address_mode): Move. Add __near.
24890 (rl78_far_p): Likewise.
24891 (rl78_addr_space_pointer_mode): Likewise.
24892 (rl78_as_legitimate_address): Likewise.
24893 (rl78_addr_space_subset_p): Likewise.
24894 (rl78_addr_space_convert): Likewise.
24895 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
24896 symbols with -mes0.
24897 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
24899 (rl78_alloc_physical_registers_op1): Change logic to prefer
24900 symbol[BC] addressing.
24901 (frodata_section): New.
24902 (rl78_asm_init_sections): Initialize it.
24903 (rl78_select_section): Put __far readonly symbols in .frodata.
24904 (rl78_make_type_far): New.
24905 (rl78_insert_attributes): Force all readonly symbols to be
24907 (rl78_asm_out_integer): New.
24908 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
24909 * config/rl78/rl78.opt (-mes0): New.
24911 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
24912 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
24913 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
24914 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
24915 (rl78_saddr_p): New.
24916 (rl78_output_aligned_common): New.
24917 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
24918 (rl78_handle_saddr_attribute): New.
24919 (rl78_handle_naked_attribute): New.
24920 (rl78_attribute_table): Add saddr.
24921 (rl78_print_operand_1): Don't print '!' on saddr operands.
24922 (rl78_print_operand_1): Strip encodings.
24924 (rl78_strip_name_encoding): New.
24925 (rl78_attrlist_to_encoding): New.
24926 (rl78_encode_section_info): New.
24927 (rl78_asm_init_sections): New.
24928 (rl78_select_section): New.
24929 (rl78_output_labelref): New.
24930 (rl78_output_aligned_common): New.
24931 (rl78_asm_out_integer): New.
24932 (rl78_asm_ctor_dtor): New.
24933 (rl78_asm_constructor): New.
24934 (rl78_asm_destructor): New.
24936 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
24937 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
24938 (transcode_memory_rtx): Update.
24939 (rl78_expand_epilogue): Use A_REG instead of 0.
24941 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24943 * config/arm/arm-protos.h (struct tune_params): New field
24944 sched_autopref_queue_depth.
24945 * config/arm/arm.c (sched-int.h): Include header.
24946 (arm_first_cycle_multipass_dfa_lookahead_guard,)
24947 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
24948 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
24949 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
24950 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
24951 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
24952 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
24953 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
24954 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
24955 * config/arm/t-arm (arm.o): Update.
24956 * haifa-sched.c (update_insn_after_change): Update.
24957 (rank_for_schedule): Use auto-prefetcher model, if requested.
24958 (autopref_multipass_init): New static function.
24959 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
24960 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
24961 variable for debug dumps.
24962 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
24963 (autopref_multipass_dfa_lookahead_guard): New global function that
24964 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
24965 (init_h_i_d): Update.
24966 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
24967 * sched-int.h (enum autopref_multipass_data_status): New const enum.
24968 (autopref_multipass_data_): Structure for auto-prefetcher data.
24969 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
24970 (struct _haifa_insn_data:autopref_multipass_data): New field.
24971 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
24972 (autopref_multipass_dfa_lookahead_guard): Declare.
24974 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24976 * rtlanal.c (get_base_term): Handle SCRATCH.
24978 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24980 * config/aarch64/aarch64.c
24981 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
24982 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
24984 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
24985 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
24987 2015-01-17 Alan Modra <amodra@gmail.com>
24989 * cprop.c (do_local_cprop): Disallow replacement of fixed
24992 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24995 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
24998 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
25000 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
25001 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
25003 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25005 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
25006 * config/arm/thumb1.md: ... Here.
25008 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
25010 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
25011 TImode for TARGET_32BIT.
25013 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
25015 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
25016 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
25018 (rs6000_abi_word_mode): New function.
25020 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
25022 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
25023 instead of UNITS_PER_WORD to describe the size of stack slots.
25025 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
25027 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
25028 as rs6000_promote_function_mode. Move comment to there.
25029 (rs6000_promote_function_mode): New function.
25031 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
25033 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
25034 -mpowerpc64 is active.
25036 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25038 PR middle-end/64353
25039 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
25042 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
25044 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
25045 introduced in revision 219724.
25047 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25048 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25051 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
25052 destination is not a GP reg.
25053 (*movdi_aarch64): Likewise.
25055 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
25058 * config/rs6000/default64.h: Revert ISA change.
25060 2015-01-16 Richard Biener <rguenther@suse.de>
25062 PR middle-end/64614
25063 * tree-ssa-uninit.c: Include tree-cfg.h.
25064 (MAX_SWITCH_CASES): New define.
25065 (convert_control_dep_chain_into_preds): Handle switch statements.
25066 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
25067 (normalize_one_pred_1): Do not split bit-manipulations.
25070 2015-01-16 Richard Biener <rguenther@suse.de>
25072 PR tree-optimization/64568
25073 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
25074 complex load rewriting for TARGET_MEM_REFs.
25076 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
25078 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
25080 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
25083 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
25085 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
25086 (aarch64_lra_p): Remove.
25088 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25091 * ipa-chkp.h (chkp_instrumentable_p): New.
25092 * ipa-chkp.c: Include tree-inline.h.
25093 (chkp_instrumentable_p): New.
25094 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
25095 Fix processing of not instrumentable functions.
25096 (chkp_versioning): Use chkp_instrumentable_p. Warn about
25097 not instrumentable functions.
25098 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
25099 chkp_instrumentable_p.
25100 * tree-inline.h (copy_forbidden): New.
25101 * tree-inline.c (copy_forbidden): Not static anymore.
25103 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25105 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
25108 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
25110 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
25111 type OP_OUT to OP_INOUT.
25113 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
25115 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
25116 (high x) y) to y if x and y have the same base.
25118 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
25120 * config/arm/cortex-a57.md: New.
25121 * config/aarch64/aarch64.md: Include it.
25122 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
25123 * config/aarch64/aarch64-tune.md: Regenerate.
25125 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
25128 * ccmp.c (expand_ccmp_next): New function.
25129 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
25130 and compare insn sequence.
25131 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
25132 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
25133 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
25134 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
25135 (*ccmp_ior): Changed to ccmp_ior<mode>.
25136 (cmp<mode>): New pattern.
25137 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
25139 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
25141 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
25143 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
25144 _mm256_bsrli_epi128): New.
25145 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
25147 2015-01-15 Jiong Wang <jiong.wang@arm.com>
25149 * expmed.c (store_bit_field_using_insv): Improve warning message.
25150 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
25152 2015-01-15 Jiong Wang <jiong.wang@arm.com>
25154 PR rtl-optimization/64011
25155 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
25156 there is partial overflow.
25158 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
25160 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
25162 (nds32_expand_epilogue_v3pop): Likewise.
25163 * config/nds32/nds32.md (sibcall): Define this for sibling call
25165 (sibcall_register): Likewise.
25166 (sibcall_immediate): Likewise.
25167 (sibcall_value): Likewise.
25168 (sibcall_value_register): Likewise.
25169 (sibcall_value_immediate): Likewise.
25170 (sibcall_epilogue): Likewise.
25171 (epilogue): Pass false to indicate this is not a sibcall epilogue.
25172 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
25173 (nds32_expand_epilogue_v3pop): Likewise.
25175 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
25177 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
25178 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
25179 (return_internal): New.
25180 (return): Define this named pattern.
25181 (simple_return): Define this named pattern.
25182 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
25183 pattern instead of unspec_volatile_func_return.
25184 (nds32_expand_epilogue_v3pop): Likewise.
25185 (nds32_can_use_return_insn): New function.
25187 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
25189 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
25190 * config/nds32/nds32.md (pop25return): New.
25191 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
25192 pop25return pattern.
25194 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
25196 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
25197 -mforbid-fp-as-gp, and -mex9 options.
25199 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
25201 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
25202 remove -mgp-direct option.
25204 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
25206 * doc/invoke.texi (--param early-inlining-insns): Update default value.
25207 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
25209 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
25211 * ipa-inline.c (inline_small_functions): Work around hints
25214 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
25217 * doc/invoke.texi (Option Summary): Document new Nios II
25219 (Nios II Options): Likewise.
25220 * config/nios2/nios2.opt: Add -mgpopt= option support.
25221 Modify existing -mgpopt and -mno-gpopt options to be aliases.
25222 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
25223 * config/nios2/nios2.c (nios2_option_override): Adjust
25224 -mgpopt defaulting.
25225 (nios2_in_small_data_p): Return true for explicit small data
25226 sections even with -G0.
25227 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
25230 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
25233 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
25235 (inline_call): Fix removal of aliases.
25237 2015-01-15 Jakub Jelinek <jakub@redhat.com>
25239 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
25240 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
25241 * opts.c (common_handle_option): Add -fsanitize=vptr.
25242 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
25243 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
25244 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
25245 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
25246 (ubsan_expand_vptr_ifn): New prototype.
25247 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
25248 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
25249 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
25250 expand_LOOP_VECTORIZED): Make argument nameless, remove
25252 (expand_UBSAN_VPTR): New function.
25253 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
25255 (UBSAN_VPTR): New internal function.
25256 * sanopt.c (tree_map_traits): Renamed to ...
25257 (sanopt_tree_map_traits): ... this.
25258 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
25259 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
25260 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
25261 (maybe_optimize_ubsan_vptr_ifn): New function.
25262 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
25263 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
25265 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
25266 internal calls like pure functions for aliasing, even when they
25267 have other side-effects that prevent making them ECF_PURE.
25268 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
25269 (ubsan_expand_vptr_ifn): New function.
25271 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
25273 PR rtl-optimization/64110
25274 * stmt.c (parse_output_constraint): Process '^' and '$'.
25275 (parse_input_constraint): Ditto.
25276 * lra-constraints.c (process_alt_operands): Process the new
25278 * ira-costs.c (record_reg_classes): Process the new constraint
25280 * genoutput.c (indep_constraints): Add '^' and '$'.
25281 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
25282 * doc/md.texi: Add description of the new constraints.
25284 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
25285 Bernd Schmidt <bernds@codesourcery.com>
25286 Cesar Philippidis <cesar@codesourcery.com>
25287 James Norris <jnorris@codesourcery.com>
25288 Tom de Vries <tom@codesourcery.com>
25289 Ilmir Usmanov <i.usmanov@samsung.com>
25290 Dmitry Bocharnikov <dmitry.b@samsung.com>
25291 Evgeny Gavrin <e.gavrin@samsung.com>
25292 Jakub Jelinek <jakub@redhat.com>
25294 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
25295 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
25296 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
25297 New function types.
25298 * builtins.c: Include "gomp-constants.h".
25299 (expand_builtin_acc_on_device): New function.
25300 (expand_builtin, is_inexpensive_builtin): Handle
25301 BUILT_IN_ACC_ON_DEVICE.
25302 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
25304 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
25306 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
25307 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
25308 i386/intelmic-offload.h.
25309 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
25310 to libgomp and its dependencies.
25311 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
25312 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
25313 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
25314 * config/ia64/hpux.h (LIB_SPEC): Likewise.
25315 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25316 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
25317 * doc/generic.texi: Update for OpenACC changes.
25318 * doc/gimple.texi: Likewise.
25319 * doc/invoke.texi: Likewise.
25320 * doc/sourcebuild.texi: Likewise.
25321 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
25322 GF_OMP_FOR_KIND_OACC_LOOP.
25323 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
25324 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
25325 GF_OMP_TARGET_KIND_OACC_UPDATE,
25326 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
25328 * gimple.c: Update comments for OpenACC changes.
25329 * gimple.def: Likewise.
25330 * gimple.h: Likewise.
25331 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
25332 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
25333 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
25334 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
25335 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
25337 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
25338 * gimplify.c: Include "gomp-constants.h".
25339 Update comments for OpenACC changes.
25340 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
25341 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
25342 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
25343 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
25344 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
25345 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
25346 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
25347 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
25348 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
25350 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
25351 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
25352 OMP_CLAUSE_SET_MAP_KIND.
25353 (gimplify_oacc_cache): New function.
25354 (gimplify_omp_for): Handle OACC_LOOP.
25355 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
25357 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
25358 OACC_EXIT_DATA, OACC_UPDATE.
25359 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
25360 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
25361 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
25362 (gimplify_body): Consider flag_openacc next to flag_openmp.
25363 * lto-streamer-out.c: Include "gomp-constants.h".
25364 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
25365 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
25366 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
25367 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
25368 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
25369 (BUILT_IN_ACC_ON_DEVICE): New builtins.
25370 * omp-low.c: Include "gomp-constants.h".
25371 Update comments for OpenACC changes.
25372 (struct omp_context): Add reduction_map, gwv_below, gwv_this
25374 (extract_omp_for_data, use_pointer_for_field, install_var_field)
25375 (new_omp_context, delete_omp_context, scan_sharing_clauses)
25376 (create_omp_child_function, scan_omp_for, scan_omp_target)
25377 (check_omp_nesting_restrictions, lower_reduction_clauses)
25378 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
25379 Update for OpenACC changes.
25380 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
25381 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
25382 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
25383 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
25384 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
25385 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
25387 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
25388 Handle GF_OMP_FOR_KIND_OACC_LOOP.
25389 (expand_omp_target, lower_omp_target): Handle
25390 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
25391 GF_OMP_TARGET_KIND_OACC_UPDATE,
25392 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
25393 GF_OMP_TARGET_KIND_OACC_DATA.
25394 (pass_expand_omp::execute, execute_lower_omp)
25395 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
25397 (offload_symbol_decl): New variable.
25398 (oacc_get_reduction_array_id, oacc_max_threads)
25399 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
25400 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
25401 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
25402 (oacc_gimple_assign, oacc_initialize_reduction_data)
25403 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
25405 (is_targetreg_ctx): Remove function.
25406 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
25407 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
25408 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
25409 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
25410 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
25411 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
25412 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
25413 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
25414 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
25415 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
25416 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
25417 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
25418 * tree-core.h: Update comments for OpenACC changes.
25419 (enum omp_clause_map_kind): Remove.
25420 (struct tree_omp_clause): Change type of map_kind member from enum
25421 omp_clause_map_kind to unsigned char.
25422 * tree-inline.c: Update comments for OpenACC changes.
25423 * tree-nested.c: Likewise. Include "gomp-constants.h".
25424 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
25425 (convert_tramp_reference_stmt, convert_gimple_call): Update for
25426 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
25427 OMP_CLAUSE_SET_MAP_KIND.
25428 * tree-pretty-print.c: Include "gomp-constants.h".
25429 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
25430 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
25431 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
25432 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
25433 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
25434 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
25435 instead of OMP_CLAUSE_MAP_*.
25436 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
25437 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
25438 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
25439 * tree-streamer-in.c: Include "gomp-constants.h".
25440 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
25441 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
25442 * tree-streamer-out.c: Include "gomp-constants.h".
25443 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
25445 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
25446 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
25447 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
25448 * tree.c (omp_clause_num_ops): Update accordingly.
25449 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
25451 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
25452 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
25453 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
25454 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
25455 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
25456 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
25457 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
25458 (OMP_CLAUSE_SET_MAP_KIND): New macro.
25459 * varpool.c (varpool_node::get_create): Consider flag_openacc next
25461 * config/i386/intelmic-offload.h: New file.
25462 * config/nvptx/offload.h: Likewise.
25464 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25466 * explow.h: Remove duplicate contents.
25467 * dojump.h: Likewise.
25469 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
25471 * arm.c (arm_xgene_tune): Add default initializer for instruction
25474 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
25478 * ipa.c (symbol_table::remove_unreachable_nodes):
25479 Do not put abstract origins into boundary.
25481 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
25483 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
25484 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
25486 2015-01-15 Steve Ellcey <sellcey@mips.com>
25488 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
25489 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
25490 builtins.def, and chkp-builtins.def.
25492 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
25494 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
25497 2015-01-15 Richard Biener <rguenther@suse.de>
25499 PR tree-optimization/61743
25500 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
25501 information on PHIs for some simple cases.
25503 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25505 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
25507 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
25508 * config/arm/arm-cores.def (xgene1): New entry.
25509 * config/arm/arm-tables.opt: Regenerate.
25510 * config/arm/arm-tune.md: Regenerate.
25511 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
25513 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
25515 * tree-if-conv.c: Include hash-map.h.
25516 (aggressive_if_conv): New variable.
25517 (fold_build_cond_expr): Add simplification of non-zero condition.
25518 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
25519 destination block is not always executed.
25520 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
25521 than two predecessors if AGGRESSIVE_IF_CONV is true.
25522 (if_convertible_stmt_p): Fix commentary.
25523 (all_preds_critical_p): New function.
25524 (has_pred_critical_p): New function.
25525 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
25526 BB can have more than two predecessors and all incoming edges can be
25528 (predicate_bbs): Skip predication for loop exit block, use build2_loc
25529 to compute predicate for true edge.
25530 (find_phi_replacement_condition): Delete this function.
25531 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
25532 Allow interchange PHI arguments if EXTENDED is false.
25533 Change check that block containing reduction statement candidate
25534 is predecessor of phi-block since phi may have more than two arguments.
25535 (phi_args_hash_traits): New helper structure.
25536 (struct phi_args_hash_traits): New type.
25537 (phi_args_hash_traits::hash): New function.
25538 (phi_args_hash_traits::equal_keys): New function.
25539 (gen_phi_arg_condition): New function.
25540 (predicate_scalar_phi): Add handling of phi nodes with more than two
25541 arguments, delete COND and TRUE_BB arguments, insert body of
25542 find_phi_replacement_condition to predicate ordinary phi nodes.
25543 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
25544 delete call of find_phi_replacement_condition and invoke
25545 predicate_scalar_phi with two arguments.
25546 (insert_gimplified_predicates): Add assert that non-predicated block
25547 don't have statements to insert.
25548 (ifcvt_split_critical_edges): New function.
25549 (ifcvt_split_def_stmt): Likewise.
25550 (ifcvt_walk_pattern_tree): Likewise.
25551 (stmt_is_root_of_bool_pattern): Likewise.
25552 (ifcvt_repair_bool_pattern): Likewise.
25553 (ifcvt_local_dce): Likewise.
25554 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
25555 is copy of inner or outer loop force_vectorize field, invoke
25556 ifcvt_split_critical_edges, ifcvt_local_dce and
25557 ifcvt_repair_bool_pattern for aggressive if-conversion.
25559 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
25561 * config/aarch64/aarch64.md: Include xgene1.md.
25562 * config/aarch64/xgene1.md: New file.
25564 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25566 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
25567 xgene1 (APM XGene-1) core definition.
25568 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
25569 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
25570 * doc/invoke.texi: Document -mcpu=xgene1.
25572 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25574 * dojump.h: New header file.
25575 * explow.h: Likewise.
25576 * expr.h: Remove includes.
25577 Move expmed.c prototypes to expmed.h.
25578 Move dojump.c prototypes to dojump.h.
25579 Move alias.c prototypes to alias.h.
25580 Move explow.c prototypes to explow.h.
25581 Move calls.c prototypes to calls.h.
25582 Move emit-rtl.c prototypes to emit-rtl.h.
25583 Move varasm.c prototypes to varasm.h.
25584 Move stmt.c prototypes to stmt.h.
25585 (saved_pending_stack_adjust): Move to dojump.h.
25586 (adjust_address): Move to explow.h.
25587 (adjust_address_nv): Move to emit-rtl.h.
25588 (adjust_bitfield_address): Likewise.
25589 (adjust_bitfield_address_size): Likewise.
25590 (adjust_bitfield_address_nv): Likewise.
25591 (adjust_automodify_address_nv): Likewise.
25592 * explow.c (expr_size): Move to expr.c.
25593 (int_expr_size): Likewise.
25594 (tree_expr_size): Likewise.
25595 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25596 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
25597 * genemit.c (main): Generate includes statistics.h, real.h,
25598 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
25600 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
25601 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
25602 explow.h, emit-rtl.h, stmt.h.
25603 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
25604 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
25605 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
25606 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
25607 emit-rtl.h, varasm.h, stmt.h.
25608 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
25609 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
25610 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
25611 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
25612 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
25613 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
25614 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
25615 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
25616 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
25617 tm.h tree.h varasm.h vec.h wide-int.h.
25618 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25619 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
25620 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
25621 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
25622 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
25623 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
25624 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
25625 * loop-iv.c: Likewise.
25626 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
25627 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
25628 statistics.h stmt.h tree.h varasm.h wide-int.h.
25629 * lra-constraints.c: Likewise.
25630 * lra-eliminations.c: Likewise.
25631 * lra-lives.c: Likewise.
25632 * lra-remat.c: Likewise.
25633 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25634 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
25635 statistics.h stmt.h tree.h varasm.h wide-int.h.
25636 * hw-doloop.c: Likewise.
25637 * ira-color.c: Likewise.
25638 * ira-emit.c: Likewise.
25639 * loop-doloop.c: Likewise.
25640 * loop-invariant.c: Likewise.
25641 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25642 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
25643 statistics.h stmt.h tree.h varasm.h wide-int.h.
25644 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
25645 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
25646 statistics.h stmt.h tree.h varasm.h wide-int.h.
25647 * combine-stack-adj.c: Likewise.
25650 * ifcvt.c: Likewise.
25651 * ira-costs.c: Likewise.
25652 * jump.c: Likewise.
25653 * lra-coalesce.c: Likewise.
25654 * lra-spills.c: Likewise.
25655 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25656 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
25657 stmt.h varasm.h wide-int.h.
25658 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25659 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
25661 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
25662 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
25663 statistics.h stmt.h varasm.h wide-int.h.
25664 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
25665 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
25666 varasm.h wide-int.h.
25667 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
25668 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25669 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
25670 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
25671 statistics.h stmt.h.
25672 * config/tilepro/tilepro.c: Likewise.
25673 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
25674 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
25675 * config/pdp11/pdp11.c: Likewise.
25676 * config/xtensa/xtensa.c: Likewise.
25677 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
25678 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
25680 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25681 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
25682 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
25683 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25684 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
25685 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
25686 * rtl-chkp.c: Likewise.
25687 * tree-chkp-opt.c: Likewise.
25688 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
25689 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
25690 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
25691 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25692 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
25693 statistics.h stmt.h.
25694 * tree-vect-data-refs.c: Likewise.
25695 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
25696 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25697 rtl.h statistics.h stmt.h varasm.h.
25698 * internal-fn.c: Likewise.
25699 * ipa-icf-gimple.c: Likewise.
25700 * lto-section-out.c: Likewise.
25701 * tree-data-ref.c: Likewise.
25702 * tree-nested.c: Likewise.
25703 * tree-outof-ssa.c: Likewise.
25704 * tree-predcom.c: Likewise.
25705 * tree-pretty-print.c: Likewise.
25706 * tree-scalar-evolution.c: Likewise.
25707 * tree-ssa-strlen.c: Likewise.
25708 * tree-vect-loop.c: Likewise.
25709 * tree-vect-patterns.c: Likewise.
25710 * tree-vect-slp.c: Likewise.
25711 * tree-vect-stmts.c: Likewise.
25712 * tsan.c: Likewise.
25713 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25714 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
25716 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
25717 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25718 statistics.h stmt.h varasm.h.
25719 * loop-unroll.c: Likewise.
25720 * ubsan.c: Likewise.
25721 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
25722 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
25724 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25725 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
25726 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
25727 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
25728 statistics.h stmt.h.
25729 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
25730 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
25731 statistics.h stmt.h varasm.h.
25732 * gimple-match-head.c: Likewise.
25733 * lto-cgraph.c: Likewise.
25734 * lto-section-in.c: Likewise.
25735 * lto-streamer-in.c: Likewise.
25736 * lto-streamer-out.c: Likewise.
25737 * tree-affine.c: Likewise.
25738 * tree-cfg.c: Likewise.
25739 * tree-cfgcleanup.c: Likewise.
25740 * tree-if-conv.c: Likewise.
25741 * tree-into-ssa.c: Likewise.
25742 * tree-ssa-alias.c: Likewise.
25743 * tree-ssa-copyrename.c: Likewise.
25744 * tree-ssa-dse.c: Likewise.
25745 * tree-ssa-forwprop.c: Likewise.
25746 * tree-ssa-live.c: Likewise.
25747 * tree-ssa-math-opts.c: Likewise.
25748 * tree-ssa-pre.c: Likewise.
25749 * tree-ssa-sccvn.c: Likewise.
25750 * tree-tailcall.c: Likewise.
25751 * tree-vect-generic.c: Likewise.
25752 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25753 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
25754 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25755 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
25756 * varasm.c: Likewise.
25757 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25758 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
25760 * init-regs.c: Likewise.
25762 * omp-low.c: Likewise.
25763 * stack-ptr-mod.c: Likewise.
25764 * tree-ssa-reassoc.c: Likewise.
25765 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25766 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
25768 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25769 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
25770 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25771 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
25772 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25773 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
25774 * tree-ssa-phiopt.c: Likewise.
25775 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25776 fixed-value.h hashtab.h real.h statistics.h stmt.h.
25777 * config/fr30/fr30.c: Likewise.
25778 * config/frv/frv.c: Likewise.
25779 * expr.c: Likewise.
25780 * final.c: Likewise.
25781 * optabs.c: Likewise.
25782 * passes.c: Likewise.
25783 * simplify-rtx.c: Likewise.
25784 * stmt.c: Likewise.
25785 * toplev.c: Likewise.
25786 * var-tracking.c: Likewise.
25787 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25788 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25789 * lower-subreg.c: Likewise.
25790 * postreload-gcse.c: Likewise.
25792 * reginfo.c: Likewise.
25793 * store-motion.c: Likewise.
25794 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25795 fixed-value.h hashtab.h real.h stmt.h varasm.h.
25796 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25797 fixed-value.h hashtab.h statistics.h stmt.h.
25798 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25799 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
25800 * except.c: Likewise.
25801 * explow.c: Likewise.
25802 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25803 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
25805 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25806 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
25807 * tree-ssa-structalias.c: Likewise.
25808 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25809 fixed-value.h insn-config.h real.h statistics.h.
25810 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25811 fixed-value.h insn-config.h real.h statistics.h stmt.h.
25812 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25813 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
25814 * cfgbuild.c: Likewise.
25815 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25816 fixed-value.h real.h rtl.h statistics.h stmt.h.
25817 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25818 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25819 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25820 fixed-value.h real.h statistics.h stmt.h.
25821 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25822 fixed-value.h real.h statistics.h stmt.h varasm.h.
25823 * cprop.c: Likewise.
25824 * modulo-sched.c: Likewise.
25825 * postreload.c: Likewise.
25826 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
25827 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
25828 statistics.h stmt.h varasm.h.
25829 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
25830 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25831 rtl.h statistics.h stmt.h varasm.h.
25832 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
25833 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
25835 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
25836 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
25838 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
25839 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
25841 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
25842 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25843 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25844 function.h real.h statistics.h stmt.h varasm.h.
25845 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25846 insn-config.h real.h statistics.h stmt.h.
25847 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25848 statistics.h stmt.h.
25849 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
25850 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
25851 statistics.h stmt.h varasm.h.
25852 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
25853 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
25854 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25855 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
25856 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
25857 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
25858 statistics.h stmt.h varasm.h.
25859 * ipa-polymorphic-call.c: Likewise.
25860 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
25861 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25862 statistics.h stmt.h.
25863 * config/c6x/c6x.c: Likewise.
25864 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
25865 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25866 statistics.h stmt.h varasm.h.
25867 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
25868 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
25870 * ipa-split.c: Likewise.
25871 * tree-eh.c: Likewise.
25872 * tree-ssa-dce.c: Likewise.
25873 * tree-ssa-loop-niter.c: Likewise.
25874 * tree-vrp.c: Likewise.
25875 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
25876 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
25878 * config/nds32/nds32-fp-as-gp.c: Likewise.
25879 * config/nds32/nds32-intrinsic.c: Likewise.
25880 * config/nds32/nds32-isr.c: Likewise.
25881 * config/nds32/nds32-md-auxiliary.c: Likewise.
25882 * config/nds32/nds32-memory-manipulation.c: Likewise.
25883 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25884 * config/nds32/nds32-predicates.c: Likewise.
25885 * config/nds32/nds32.c: Likewise.
25886 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
25887 fixed-value.h hashtab.h real.h statistics.h.
25888 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
25889 fixed-value.h hashtab.h real.h statistics.h stmt.h.
25890 * config/arm/arm.c: Likewise.
25891 * config/avr/avr.c: Likewise.
25892 * config/bfin/bfin.c: Likewise.
25893 * config/h8300/h8300.c: Likewise.
25894 * config/i386/i386.c: Likewise.
25895 * config/ia64/ia64.c: Likewise.
25896 * config/iq2000/iq2000.c: Likewise.
25897 * config/m32c/m32c.c: Likewise.
25898 * config/m32r/m32r.c: Likewise.
25899 * config/m68k/m68k.c: Likewise.
25900 * config/mcore/mcore.c: Likewise.
25901 * config/mep/mep.c: Likewise.
25902 * config/mips/mips.c: Likewise.
25903 * config/mn10300/mn10300.c: Likewise.
25904 * config/moxie/moxie.c: Likewise.
25905 * config/pa/pa.c: Likewise.
25906 * config/rl78/rl78.c: Likewise.
25907 * config/rx/rx.c: Likewise.
25908 * config/s390/s390.c: Likewise.
25909 * config/sh/sh.c: Likewise.
25910 * config/sparc/sparc.c: Likewise.
25911 * config/spu/spu.c: Likewise.
25912 * config/stormy16/stormy16.c: Likewise.
25913 * config/v850/v850.c: Likewise.
25914 * config/vax/vax.c: Likewise.
25915 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
25916 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25917 * config/msp430/msp430.c: Likewise.
25918 * predict.c: Likewise.
25919 * value-prof.c: Likewise.
25920 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
25921 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
25922 * config/microblaze/microblaze.c: Likewise.
25923 * config/nios2/nios2.c: Likewise.
25924 * config/rs6000/rs6000.c: Likewise.
25925 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25926 insn-config.h real.h rtl.h statistics.h stmt.h.
25927 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25928 insn-config.h real.h statistics.h stmt.h.
25929 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
25930 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
25931 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
25932 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25933 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
25934 fixed-value.h real.h statistics.h stmt.h.
25935 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
25936 fixed-value.h statistics.h stmt.h.
25937 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
25940 2015-01-15 Jakub Jelinek <jakub@redhat.com>
25942 * gengtype.c (create_user_defined_type): Workaround
25943 -Wmaybe-uninitialized false positives.
25944 * cse.c (fold_rtx): Likewise.
25945 * loop-invariant.c (gain_for_invariant): Likewise.
25947 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
25949 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
25950 set the memory attributes in all cases but clear MEM_EXPR if need be.
25952 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
25954 PR tree-optimization/64434
25955 * cfgexpand.c (reorder_operands): New function.
25956 (expand_gimple_basic_block): Insert call of reorder_operands if
25959 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
25961 * config/mips/micromips.md (*swp): Remove explicit parallel.
25962 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
25963 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
25964 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
25965 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
25966 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
25967 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
25968 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
25969 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
25970 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
25971 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
25972 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
25973 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
25974 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
25975 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
25976 (mips_wrdsp): Likewise.
25977 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
25979 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
25980 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
25981 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
25982 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
25983 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
25984 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
25985 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
25986 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
25987 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
25989 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
25991 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
25992 (mips_print_operand): Support 'y' to print exact log2 in decimal
25994 * config/mips/mips.h (ISA_HAS_LSA): New define.
25995 (ISA_HAS_DLSA): Likewise.
25996 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
25997 * config/mips/predicates.md (const_immlsa_operand): New predicate.
25999 2015-01-15 Martin Liska <mliska@suse.cz>
26002 * optc-save-gen.awk: Add support for array types.
26004 2015-01-15 Richard Biener <rguenther@suse.de>
26006 PR middle-end/64365
26007 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
26008 for MEM_REF access functions with the same base can never partially
26011 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
26013 * common.opt: New option -fstack-protector-explicit.
26014 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
26015 (stack_protect_decl_phase): Handle stack_protect attribute for
26016 explicit stack protection requests.
26017 (expand_used_vars): Similarly.
26018 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
26019 * doc/extend.texi: Add documentation for "stack_protect" attribute.
26020 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
26022 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
26025 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
26027 (sh_extending_set_of_reg): New struct.
26028 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
26029 sh_remove_reg_dead_or_unused_notes): New Declarations.
26030 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
26031 sh_find_extending_set_of_reg, sh_split_tst_subregs,
26032 sh_extending_set_of_reg::use_as_extended_reg): New functions.
26033 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
26034 convert to insn_and_split and use new function sh_split_tst_subregs.
26036 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
26038 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
26040 (Optimization Options): Move -fuse-ld documentation to...
26041 (Link Options): ...here.
26043 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
26045 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
26047 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
26048 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
26049 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
26050 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
26051 instead of ZR for the memory operand of LL/SC.
26052 (compare_and_swap_12, sync_add<mode>): Likewise.
26053 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
26054 (sync_new_<optab>_12, sync_nand_12): Likewise.
26055 (sync_old_nand_12, sync_new_nand_12): Likewise.
26056 (sync_sub<mode>, sync_old_add<mode>): Likewise.
26057 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
26058 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
26059 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
26060 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
26061 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
26062 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
26063 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
26064 * doc/md.texi (ZC): Update description.
26066 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
26068 * builtins.c (expand_builtin_atomic_exchange): Remove error when
26069 memory model is CONSUME.
26070 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
26071 expand_builtin_atomic_store): Change invalid memory model errors to
26073 (expand_builtin_atomic_clear): Change invalid model errors to warnings
26074 and issue warning for CONSUME.
26076 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
26078 * lto-cgraph: Update function comments for
26079 lto_symtab_encoder_encode_*.
26081 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
26083 * Makefile.in (site.exp): Do not set ENABLE_LTO.
26085 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
26087 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
26088 * lto-cgraph.c (select_what_to_stream): Remove argument, use
26089 lto_stream_offload_p instead.
26090 * lto-streamer.h (select_what_to_stream): Remove argument.
26091 * passes.c (ipa_write_summaries): Likewise.
26092 * tree-pass.h (ipa_write_summaries): Likewise.
26094 2015-01-14 Richard Biener <rguenther@suse.de>
26096 PR tree-optimization/59354
26097 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
26098 groups larger than the slp group size as having gaps.
26100 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
26102 PR middle-end/59448
26103 * builtins.c (get_memmodel): Promote consume to acquire always.
26105 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
26108 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
26111 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
26114 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
26116 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
26117 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
26118 AVX512VBMI, as it implies AVX512BW.
26120 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
26123 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
26124 (vec_unpacks_hi_v16sf): Ditto.
26126 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26128 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
26131 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26133 * doc/invoke.texi (mapcs): Mention deprecation.
26134 (mapcs-frame): Likewise.
26136 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
26139 * config/arm/arm.c (callee_saved_reg_p): Define.
26140 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
26141 register is callee saved instead of !call_used_regs[reg].
26142 (thumb1_compute_save_reg_mask): Likewise.
26144 2015-01-14 Hale Wang <hale.wang@arm.com>
26146 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
26149 2015-01-14 Richard Biener <rguenther@suse.de>
26152 * tree-inline.c (insert_debug_decl_map): Check destination
26153 function MAY_HAVE_DEBUG_STMTS.
26154 (insert_init_debug_bind): Likewise.
26155 (insert_init_stmt): Remove redundant check.
26156 (remap_gimple_stmt): Drop debug stmts if the destination
26157 function has var-tracking assignments disabled.
26159 2015-01-14 Martin Liska <mliska@suse.cz>
26161 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
26162 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
26164 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26167 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
26168 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
26170 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
26172 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
26173 level from an ARCH; do not inject the default.
26174 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
26175 MIPS_ISA_LEVEL_SPEC.
26176 (MIPS_ISA_NAN2008_SPEC): Update comment.
26177 (BASE_DRIVER_SELF_SPECS): Likewise.
26178 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
26179 MIPS_DEFAULT_ISA_LEVEL_SPEC.
26180 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
26181 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
26182 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
26184 2015-01-14 Richard Biener <rguenther@suse.de>
26186 PR tree-optimization/64493
26187 PR tree-optimization/64495
26188 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
26189 assign the proper vectorized PHI to the inner loop exit PHIs.
26191 2015-01-14 Joey Ye <joey.ye@arm.com>
26193 * config/arm/arm.c (arm_compute_save_reg_mask):
26194 Do not save lr in case of tail call.
26195 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
26197 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
26199 * tree-vrp.c (check_array_ref): Emit more warnings
26200 for warn_array_bounds >= 2.
26201 * common.opt: New option -Warray-bounds=.
26202 * doc/invoke.texi: Document -Warray-bounds=.
26204 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
26206 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
26207 (mforbid-fp-as-gp): Remove.
26209 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
26210 (nds32_symbol_load_store_p): Remove.
26211 (nds32_fp_as_gp_check_available): Clean up implementation.
26212 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
26214 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
26215 fp-as-gp and ex9 cases.
26217 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
26219 * tree-profile.c (init_ic_make_global_vars): Drop workaround
26220 for bintuils bug 14342.
26221 (init_ic_make_global_vars): Likewise.
26222 (gimple_init_edge_profiler): Likewise.
26223 (gimple_gen_ic_func_profiler): Likewise.
26225 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26227 * ipa-inline.c (inline_small_functions): Swap the operands in
26230 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
26233 * ipa-inline-analysis.c (node_growth_cache): Remove.
26234 (initialize_growth_caches): Do not initialize it.
26235 (free_growth_caches): Do not free it.
26236 (do_estimate_growth): Rename to ...
26237 (estimate_growth): ... this one; drop growth cache code.
26238 (growth_likely_positive): Always go the heuristics way.
26239 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
26240 (reset_edge_caches): Do not reset node growth.
26241 (heap_edge_removal_hook): Do not maintain cache.
26242 (inline_small_functions): Likewise; strenghten sanity check.
26243 (ipa_inline): Do not maintain caches.
26244 * ipa-inline.h (node_growth_cache): Remove.
26245 (do_estimate_growth): Remove to ...
26246 (estimate_growth): this one; remove inline version.
26247 (reset_node_growth_cache): Remove.
26249 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
26252 * ipa-inline.c (inline_small_functions): Update callee keys after
26253 resolving speculation
26254 (inline_small_functions): Always check monotonicity of the queue.
26256 2015-01-13 Marek Polacek <polacek@redhat.com>
26258 PR middle-end/64391
26259 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
26261 2015-01-13 Jakub Jelinek <jakub@redhat.com>
26263 PR rtl-optimization/64286
26264 * ree.c (combine_reaching_defs): Move part of comment earlier,
26265 remove !SCALAR_INT_MODE_P check.
26266 (add_removable_extension): Don't add vector mode
26267 extensions if all uses of the source register aren't the same
26270 2015-01-13 Renlin Li <renlin.li@arm.com>
26272 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
26273 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
26275 2015-01-13 Martin Liska <mliska@suse.cz>
26277 * ipa-icf.c (sem_function::equals_private): Call new functions
26278 cl_target_option_print_diff and cl_optimization_print_diff.
26279 * optc-save-gen.awk (cl_target_option_print_diff): New function.
26280 (cl_optimization_print_diff): Likewise.
26281 * opth-gen.awk: Likewise.
26283 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
26285 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
26286 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
26287 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
26288 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
26289 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
26290 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
26292 2015-01-13 Andrew Pinski <apinski@cavium.com>
26294 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
26295 instead of src mode.
26297 2015-01-13 Richard Biener <rguenther@suse.de>
26300 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
26303 2015-01-13 Andrew Pinski <apinski@cavium.com>
26305 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
26307 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
26309 2015-01-13 Jakub Jelinek <jakub@redhat.com>
26311 PR middle-end/63974
26312 * cfgexpand.c (expand_computed_goto): Don't call
26313 convert_memory_address here.
26315 2015-01-13 Richard Biener <rguenther@suse.de>
26317 PR tree-optimization/64406
26318 * tree-loop-distibution.c (pass_loop_distribution::execute):
26319 Reset the SCEV hashtable if we distributed anything.
26321 2015-01-13 Richard Biener <rguenther@suse.de>
26323 PR tree-optimization/64404
26324 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
26325 SLP types for CSEd loads.
26327 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
26329 PR tree-optimization/64436
26330 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
26331 merge of two symbolic numbers for a bitwise OR to ...
26332 (perform_symbolic_merge): This. Also fix computation of the range and
26333 end of the symbolic number corresponding to the result of a bitwise OR.
26335 2015-01-13 Richard Biener <rguenther@suse.de>
26337 PR tree-optimization/64568
26338 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
26339 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
26341 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
26343 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
26344 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
26346 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
26348 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
26349 target-specific symbol_ref flag.
26350 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
26351 resides in rodata section.
26352 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
26353 (nds32_encode_section_info): New function.
26355 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
26357 * config/nds32/nds32.md (call): Use pseudo instruction bal which
26358 clobbers TA_REGNUM if large code model is specified.
26359 (call_register): Likewise.
26360 (call_immediate): Likewise.
26361 (call_value): Likewise.
26362 (call_value_register): Likewise.
26363 (call_value_immediate): Likewise.
26365 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
26367 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
26368 (TARGET_CMODEL_MEDIUM): New macro.
26369 (TARGET_CMODEL_LARGE): New macro.
26370 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
26371 code model setting in assembly code.
26373 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
26375 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
26376 Remove MASK_GP_DIRECT flag.
26377 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
26378 one of the multilib default options.
26379 * config/nds32/nds32.opt (mgp-direct): Remove.
26380 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
26381 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
26383 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
26385 * config/nds32/nds32.opt (mcmodel): Add new option.
26386 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
26387 to describe code model.
26389 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
26392 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
26394 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
26396 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
26397 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
26398 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
26399 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
26400 __builtin_sh_set_fpscr.
26402 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
26404 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
26405 after a funtion name just to indicate it is a function.
26406 ([-fsanitize-undefined-trap-on-error]): Likewise.
26407 ([-fdbg-cnt=]): Likewise.
26408 ([-mmemcpy]): Likewise.
26409 ([-mflush-func]): Likewise.
26410 ([-msynci]): Likewise.
26412 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
26414 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
26417 2015-01-12 Jakub Jelinek <jakub@redhat.com>
26419 PR tree-optimization/64563
26420 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
26421 instead of != VR_VARYING.
26424 * config/i386/i386.c (ix86_expand_prologue): Add
26425 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
26427 PR tree-optimization/64454
26428 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
26429 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
26430 for signed or [0, op1 - 1] for unsigned modulo.
26431 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
26432 even if op1 does not satisfy integer_pow2p.
26435 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
26437 2015-01-12 Jeff Law <law@redhat.com>
26440 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
26441 (trunchiqi2, truncsihi2): Similarly.
26443 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
26444 rather than calling F.
26446 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
26448 * tsan.c (instrument_expr): Use force_gimple_operand.
26449 Use may_be_nonaddressable_p instead of is_gimple_addressable.
26451 2015-01-12 Richard Biener <rguenther@suse.de>
26453 PR tree-optimization/64530
26454 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
26457 2015-01-12 Richard Biener <rguenther@suse.de>
26459 PR middle-end/64357
26460 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
26463 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26465 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
26466 Cortex-A17 tuning parameters.
26467 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
26469 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26471 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
26472 * config/arm/arm.c (arm_macro_fusion_p): New function.
26473 (arm_macro_fusion_pair_p): Likewise.
26474 (TARGET_SCHED_MACRO_FUSION_P): Define.
26475 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
26476 (ARM_FUSE_NOTHING): Likewise.
26477 (ARM_FUSE_MOVW_MOVT): Likewise.
26478 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
26479 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
26480 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
26481 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
26482 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
26483 arm_cortex_a5_tune): Specify fuseable_ops value.
26485 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
26488 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
26489 test for PIE with copy reloc.
26490 * configure: Regenerated.
26492 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26494 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
26496 (arm_tls_descseq_addr): Likewise.
26497 (arm_gen_movmemqi): Likewise.
26498 (arm_expand_epilogue_apcs_frame): Likewise.
26499 (arm_expand_epilogue): Likewise.
26500 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
26503 2015-01-12 Martin Liska <mliska@suse.cz>
26506 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
26507 volatility for correct operands.
26509 2015-01-12 Martin Liska <mliska@suse.cz>
26511 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
26512 indication that a function is not leaf.
26513 (sem_function::compare_polymorphic_p): Likewise.
26515 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26517 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
26518 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
26519 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
26520 fold-const.h, tree-check.h.
26522 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
26526 * ipa-inline.c (compute_uninlined_call_time,
26527 compute_inlined_call_time): Use counts for extra precision when
26529 (big_speedup_p): Fix formating.
26530 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
26531 (relative_time_benefit): Remove.
26532 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
26533 merge guessed and read profile paths.
26534 (inline_small_functions): Count only !optimize_size functions into
26535 initial size; be more lax about sanity check when profile is used;
26536 be sure to update inlined function profile when profile is read.
26538 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
26541 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
26542 cost when edge becomes direct.
26543 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
26544 is resolved or when introducing new speculation.
26546 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
26550 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
26551 '||' to fix typo issue.
26553 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
26554 accept and return NULL.
26556 2015-01-12 Martin Liska <mliska@suse.cz>
26558 * cgraph.c (cgraph_edge::remove_callee): Move function to header
26559 file for being inlined.
26560 (cgraph_set_edge_callee): Delete.
26561 (cgraph_edge::redirect_callee): Move function to header file
26563 (cgraph_edge::make_direct): Use new function.
26564 (cgraph_edge::dump_edge_flags): New function created from
26565 static dump_edge_flags function.
26566 (cgraph_node::dump): Use new function.
26567 (cgraph_edge::verify_count_and_frequency): New function created
26568 from verify_edge_count_and_frequency.
26569 (cgraph_edge::verify_corresponds_to_fndecl): New function created
26570 from verify_edge_corresponds_to_fndecl.
26571 (verify_edge_corresponds_to_fndecl): Delete.
26572 (cgraph_node::verify_node): Use new function.
26573 * cgraph.h (cgraph_edge::set_callee): New function.
26574 (cgraph_edge::dump_edge_flags): Likewise.
26575 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
26577 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
26579 * ipa-utils.c (estimate_function_body_sizes): Do not
26580 free node params when called late with early=true.
26582 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
26584 * doc/md.texi (Instruction Patterns): Rewrite text for
26586 (Example): Likewise.
26588 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
26590 * doc/invoke.texi (Option Summary): Break long lines.
26591 [(-fdiagnostics-color)]: Put long literal in @smallexample
26593 [(-fsanitize-recover)]: Likewise.
26594 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
26595 [(-ffast-math)]: Likewise.
26596 [(--param max-inline-insns-recursive)]: Likewise.
26597 [(--param max-inline-recursive-depth)]: Likewise.
26598 [(-mno-text-section-literals)]: Likewise.
26600 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
26602 * doc/install.texi: Update for libgomp being renamed from "GNU
26603 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
26605 * doc/sourcebuild.texi: Likewise.
26607 2015-01-10 Anthony Green <green@moxielogic.com>
26609 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
26610 mul.x availability for moxiebox configuration.
26612 2015-01-09 Anthony Green <green@moxielogic.com>
26614 * config/moxie/moxie.md: Tabify assembly output.
26616 2015-01-09 Anthony Green <green@moxielogic.com>
26618 * config/moxie/moxie.md (CC_REG): Correct register definition.
26620 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
26622 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
26623 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
26626 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
26628 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
26630 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
26631 Jakub Jelinek <jakub@redhat.com>
26633 PR middle-end/64412
26634 * lto-streamer.h (lto_stream_offload_p): New declaration.
26635 * lto-streamer.c (lto_stream_offload_p): New variable.
26636 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
26637 at the same time as section_name_prefix.
26638 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
26639 if lto_stream_offload_p.
26640 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
26641 stream TREE_TARGET_OPTION if lto_stream_offload_p.
26642 (write_ts_function_decl_tree_pointers): Don't
26643 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
26644 * tree-streamer-in.c (unpack_value_fields): Don't stream
26645 TREE_TARGET_OPTION in if ACCEL_COMPILER.
26646 (lto_input_ts_function_decl_tree_pointers): Don't stream
26647 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
26648 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
26649 instead of section_name_prefix string comparisons.
26651 2015-01-09 Jakub Jelinek <jakub@redhat.com>
26653 PR rtl-optimization/64536
26654 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
26657 2015-01-09 Michael Collison <michael.collison@linaro.org>
26659 PR tree-optimization/64322
26660 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
26661 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
26663 2015-01-09 Tom de Vries <tom@codesourcery.com>
26665 PR rtl-optimization/64539
26666 * regcprop.c (kill_clobbered_values): Factor out of ...
26667 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
26668 instead of note_stores with kill_clobbered_value.
26670 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
26672 * ginclude/unwind-arm-common.h: Revert previous commit.
26674 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
26676 * config.gcc (arm*-*-freebsd*): New configuration.
26677 * config/arm/freebsd.h: New file.
26678 * config.host: Add extra components for arm*-*-freebsd*.
26679 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
26680 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
26682 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
26684 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
26686 * config/rs6000/t-rtems: Add e6500 multilibs.
26688 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
26690 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
26693 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
26695 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
26696 MULTILIB_EXCEPTIONS.
26698 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
26700 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
26701 MULTILIB_EXCEPTIONS.
26703 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
26705 * config/arm/t-rtems-eabi: Rename to...
26706 * config/arm/t-rtems: ...this.
26707 * config/arm/rtems-eabi.h: Rename to...
26708 * config/arm/rtems.h: ...this.
26709 * config.gcc (arm*-*-rtems*): Reflect changes above.
26711 2015-01-09 Richard Biener <rguenther@suse.de>
26713 PR tree-optimization/64410
26714 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
26716 (execute_update_addresses_taken): Deal with that.
26717 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
26718 loads/stores for complex variables.
26720 2015-01-09 Martin Liska <mliska@suse.cz>
26722 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
26724 (func_checker::compare_memory_operand): New function.
26725 (func_checker::compare_operand): Split case to newly
26727 (func_checker::compare_cst_or_decl): New function.
26728 (func_checker::compare_gimple_call): Identify
26730 (func_checker::compare_gimple_assign): Likewise.
26731 * ipa-icf-gimple.h: New function.
26733 2015-01-09 Martin Liska <mliska@suse.cz>
26736 * sreal.c (sreal::dump): Change unsigned format to signed for
26738 (sreal::to_double): Replace exp2 with scalbln.
26740 2015-01-09 Martin Liska <mliska@suse.cz>
26742 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
26743 * ipa-icf.c (sem_function::equals_private): Add support for target and
26744 (sem_item_optimizer::merge_classes): Remove redundant function
26745 optimization flags comparison.
26746 * tree.h (target_opts_for_fn): New function.
26748 2015-01-09 Tom de Vries <tom@codesourcery.com>
26750 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
26752 2015-01-09 Kito Cheng <kito@0xlab.org>
26754 PR rtl-optimization/64348
26755 * lra-constraints.c (split_reg): Fix caller-save store/restore
26756 instruction generation.
26758 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
26760 PR gcov-profile/61790
26761 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
26762 long long. Fallback to int64_t if host doesn't have long long and
26763 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
26765 2015-01-08 Jakub Jelinek <jakub@redhat.com>
26767 PR tree-optimization/63989
26768 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
26769 from 1000 to 10000.
26770 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
26771 (get_stridx): If we don't have a record for certain SSA_NAME,
26772 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
26773 constant offset, call get_stridx_plus_constant.
26774 (get_stridx_plus_constant): New function.
26775 (zero_length_string): Don't use get_stridx here.
26778 PR middle-end/64388
26779 * dse.c (struct insn_info): Mention frame_read set also
26780 before reload for tail calls on some targets.
26781 (scan_insn): Revert 2014-12-22 change. Set frame_read
26782 also before reload for tail calls if
26783 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
26784 instead of add_non_frame_wild_read for non-const/memset
26785 tail calls after reload.
26787 2015-01-08 Jason Merrill <jason@redhat.com>
26789 * ubsan.c (do_ubsan_in_current_function): New.
26790 (pass_ubsan::gate): Use it.
26791 * ubsan.h: Declare it.
26792 * convert.c (convert_to_integer): Use it.
26794 2015-01-08 Jakub Jelinek <jakub@redhat.com>
26797 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
26798 compare_code when it is unconditionally overwritten afterwards.
26799 Use ix86_reverse_condition instead of reverse_condition. Don't
26800 change code if *reverse_condition* returned UNKNOWN and don't
26801 swap ct/cf and negate diff in that case.
26803 2015-01-08 Mike Stump <mikestump@comcast.net>
26805 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
26806 (pass_tsan_O0::gate): Likewise.
26807 * extend.texi (Function Attributes): Add no_sanitize_thread
26810 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
26812 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
26813 for registering builtins.
26814 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
26815 add -fopenmp to the argv_obstack used when invoking
26816 compile_for_target.
26818 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
26819 add "-m32" or "-m64" to argv_obstack.
26820 (generate_host_descr_file): Likewise, when invoking host_compiler.
26821 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
26824 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
26826 * config/sh/sh-mem.cc: Use constant as second operand when emitting
26829 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
26832 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
26833 constant load if constant operand fits into I08.
26835 2015-01-08 Jakub Jelinek <jakub@redhat.com>
26838 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
26839 and TREE_THIS_VOLATILE for MEM_REFs.
26840 (build5_stat): Fix up initialization of TREE_READONLY and
26841 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
26843 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
26846 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
26847 of r for the second alternative of the destination operand.
26849 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
26852 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
26854 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
26856 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
26858 ([-fivar-visibility], [-fvisibility]): Likewise.
26860 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
26862 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
26863 the file where @code, @command, etc is more appropriate.
26865 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
26867 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
26868 of -mrecip= documentation.
26870 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26873 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
26874 correct reload handler if -m32 -mpowerpc64 is used.
26876 2015-01-06 Tom de Vries <tom@codesourcery.com>
26878 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
26880 2015-01-08 Christian Bruel <christian.bruel@st.com>
26883 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
26885 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
26887 PR tree-optimization/63259
26888 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
26889 if optab exists for 16bit byteswap.
26891 2015-01-06 Jakub Jelinek <jakub@redhat.com>
26893 * opts.c (common_handle_option): Add support for
26894 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
26895 * doc/invoke.texi: Document -fno-sanitize=all,
26896 -f{,no-}sanitize-recover=all. Document that
26897 -fsanitize=float-cast-overflow is not enabled
26898 by -fsanitize=undefined. Fix up documentation
26899 of -f{,no-}sanitize-recover.
26901 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
26903 * config.gcc: Add Visium support.
26904 * configure.ac: Likewise.
26905 * configure: Regenerate.
26906 * doc/extend.texi (interrupt attribute): Add Visium.
26907 * doc/invoke.texi: Document Visium options.
26908 * doc/install.texi: Document Visium target.
26909 * doc/md.texi: Document Visium constraints.
26910 * common/config/visium: New directory.
26911 * config/visium: Likewise.
26913 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
26915 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
26916 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
26918 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
26920 * combine.c (combine_validate_cost): Do not count the cost of a
26921 split I2 twice. Do not display it twice in the dump, either.
26923 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
26925 Revert parts of r219199.
26926 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
26928 ([-Wtraditional]): Restore markup on <limits.h>.
26930 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
26933 * doc/invoke.texi: Document -Wsuggest-override.
26935 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
26937 PR rtl-optimization/64287
26938 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
26939 (process_options): Disable flag_ipa_ra if profiling.
26941 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
26943 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
26945 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
26947 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
26948 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
26949 put under #if TARGET_LOOPS guard.
26951 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
26953 * config/i386/i386.c (output_387_binary_op): Use std::swap.
26955 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
26957 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
26958 * rtl.h (refers_to_regno_p): Add overload.
26960 * bt-load.c: Likewise.
26961 * combine.c: Likewise.
26962 * df-scan.c: Likewise.
26963 * sched-deps.c: Likewise.
26964 * config/s390/s390.c: Likewise.
26965 * config/m32r/m32r.c: Likewise.
26966 * config/rs6000/spe.md: Likewise.
26967 * config/rs6000/rs6000.c: Likewise.
26968 * config/pa/pa.c: Likewise.
26969 * config/stormy16/stormy16.c: Likewise.
26970 * config/cris/cris.c: Likewise.
26971 * config/arc/arc.md: Likewise.
26972 * config/arc/arc.c: Likewise.
26973 * config/sh/sh.md: Likewise.
26974 * config/sh/sh.c: Likewise.
26975 * config/frv/frv.c: Likewise.
26977 2015-01-05 Jakub Jelinek <jakub@redhat.com>
26980 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
26981 call as cleanup of the whole body.
26982 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
26983 * tsan.c (replace_func_exit): New function.
26984 (instrument_func_exit): Moved earlier.
26985 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
26986 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
26988 (tsan_pass): Don't call instrument_func_exit.
26989 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
26990 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
26994 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
26995 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
26996 it to libubsan handler instead of EXPR. Fold comparisons earlier,
26997 if the result is integer_zerop, return NULL_TREE.
26998 * convert.c (convert_to_integer): Pass expr as ARG.
27000 PR tree-optimization/64465
27001 * tree-inline.c (redirect_all_calls): During inlining
27002 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
27003 changed the stmt to a non-throwing call.
27005 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
27007 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
27008 etc markup throughout the file.
27010 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
27012 Enable experimental TSAN support for Ada.
27013 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
27015 2015-01-05 Jakub Jelinek <jakub@redhat.com>
27017 PR tree-optimization/64494
27018 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
27019 clear SSA_NAME_ANTI_RANGE_P flag.
27021 2015-01-05 Marek Polacek <polacek@redhat.com>
27023 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
27025 2015-01-05 Jakub Jelinek <jakub@redhat.com>
27027 Update copyright years.
27029 * gcc.c (process_command): Update copyright notice dates.
27030 * gcov-dump.c: Ditto.
27032 * doc/cpp.texi: Bump @copying's copyright year.
27033 * doc/cppinternals.texi: Ditto.
27034 * doc/gcc.texi: Ditto.
27035 * doc/gccint.texi: Ditto.
27036 * doc/gcov.texi: Ditto.
27037 * doc/install.texi: Ditto.
27038 * doc/invoke.texi: Ditto.
27040 * auto-profile.c, auto-profile.h: Fix up Copyright line.
27042 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
27044 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
27046 ([-fvtable-verify], [-fvtv-debug]): Likewise.
27047 ([-Wabi]): Likewise.
27048 ([-fmessage-length]): Likewise.
27049 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
27050 ([-Wno-discarded-qualifiers]): Likewise.
27051 ([-Wnodiscarded-array-qualifiers]): Likewise.
27052 ([-Wno-virtual-move-assign]): Likewise.
27053 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
27054 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
27055 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
27056 ([-fsanitize-undefined-trap-on-error]): Likewise.
27057 ([-floop-interchange]): Likewise.
27058 ([-ftree-coalesce-inlined-vars]): Likewise.
27059 ([-fvect-cost-model]): Likewise.
27060 ([-flto]): Likewise.
27061 ([--param]): Likewise.
27062 (Spec Files): Likewise.
27063 ([-mstrict-align]): Likewise.
27064 ([-mfix-cortex-a53-835769]): Likewise.
27065 ([-march], [-mtune]): Likewise.
27066 ([-mpic-register]): Likewise.
27067 ([-munaligned-access]): Likewise.
27068 ([-msp8]): Likewise.
27069 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
27070 (AVR Built-in Macros): Likewise.
27071 ([-mpreferred-stack-boundary]): Likewise.
27072 ([-mtune-crtl]): Likewise.
27073 ([-mashf]): Likewise.
27074 ([-mmcu=]): Likewise.
27075 ([-minrt]): Likewise.
27076 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
27077 ([-mupper-regs]): Likewise.
27078 ([-matomic-model]): Likewise.
27079 ([-mdiv]): Likewise.
27080 ([-mzdcbranch]): Likewise.
27081 ([-mdisable-callt]): Likewise.
27082 ([-msoft-float]): Likewise.
27083 ([-m8byte-align]): Likewise.
27084 ([-fstack-reuse]): Likewise.
27086 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
27088 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
27089 Fix markup, light copy-editing.
27090 ([-fauto-profile]): Rewrite to fix formatting and content
27093 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
27095 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
27096 Copy-edit description.
27097 ([-fisolate-erroneous-paths-attribute]): Likewise.
27098 * common.opt (fisolate-erroneous-paths-dereference):
27099 Copy-edit description.
27100 (fisolate-erroneous-paths-attribute): Likewise.
27102 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
27104 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
27107 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
27109 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
27110 ([-fvtv-debug]): Likewise.
27111 ([-Wc++-compat]): Likewise.
27112 ([-Wc++11-compat]): Likewise.
27113 ([-Wc++14-compat]): Likewise.
27114 ([-Wno-sized-deallocation]): Likewise.
27115 ([-femit-class-debug-always]): Likewise.
27116 ([-femit-struct-debug-detailed]): Likewise.
27117 ([-fno-keep-inline-dllexport]): Likewise.
27118 ([-fira-algorithm]): Likewise.
27119 ([-fira-region]): Likewise.
27120 ([-flra-remat]): Likewise.
27121 ([-fipa-ra]): Likewise.
27122 ([-fhoist-adjacent-loads]): Likewise.
27123 ([-fisolate-erroneous-paths-dereference]): Likewise.
27124 ([-fisolate-erroneous-paths-attribute]): Likewise.
27125 ([-ftree-switch-conversion]): Likewise.
27126 ([-ftree-tail-merge]): Likewise.
27127 ([-ftree-loop-if-convert]): Likewise.
27128 ([-ftree-loop-if-convert-stores]): Likewise.
27129 ([-ftree-loop-distribution]): Likewise.
27130 ([-ftree-loop-distribute-patterns]): Likewise.
27131 ([-flto-compression-level]): Likewise.
27132 ([-flto-report]): Likewise.
27133 ([-flto-report-wpa]): Likewise.
27134 ([-fuse-linker-plugin]): Likewise.
27135 ([-mfix-cortex-a53-835769]): Likewise.
27136 ([-mno-fix-cortex-a53-835769]): Likewise.
27137 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
27138 explicit listing; add a note to the discussion indicating they
27139 exist. Reorder table to group similar options. Add missing
27140 @opindex entries. Add @need commands throughout the table to
27141 allow it to be split across multiple pages.
27142 ([-m8bit-idiv]): Fix @opindex.
27143 ([-mavx256-split-unaligned-load]): Likewise.
27144 ([-mavx256-split-unaligned-store]): Likewise.
27145 ([-mstack-protector-guard]): Likewise.
27146 ([-mcpu=]): Likewise.
27147 ([-mcpu]): Likewise.
27148 ([-mpointer-size=]): Likewise.
27150 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
27152 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
27153 instead of `m' constraint. Likewise for unnamed movb comparison
27154 patterns using reg_before_reload_operand predicate.
27155 * config/pa/predicates.md (reg_before_reload_operand): Tighten
27156 predicate to reject register index and LO_SUM DLT memory forms
27159 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
27161 * doc/invoke.texi (Option Summary): Fix spelling of
27162 -fdevirtualize-at-ltrans.
27163 ([-fdevirtualize]): Fix markup.
27164 ([-fdevirtualize-speculatively]): Fix typo.
27165 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
27166 implementor-speaky.
27167 * common.opt (fdevirtualize-at-ltrans): Likewise.
27168 * ipa-devirt.c: Fix typos in comments throughout the file.
27169 (ipa_devirt): Fix typos in format strings for dump output.
27171 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
27173 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
27174 discussion of defaults, light copy-editing.
27176 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
27178 * tsan.c (instrument_expr): corrected previous checkin.
27180 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
27182 Instrument bit field and unaligned accesses for TSAN.
27183 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
27184 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
27185 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
27186 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
27187 unaligned memory regions.
27189 2015-01-01 Anthony Green <green@moxielogic.com>
27191 * config/moxie/predicates.md (moxie_general_movsrc_operand):
27192 Restrict move source register offsets to 16 bits.
27194 Copyright (C) 2015 Free Software Foundation, Inc.
27196 Copying and distribution of this file, with or without modification,
27197 are permitted in any medium without royalty provided the copyright
27198 notice and this notice are preserved.