1 2015-09-04 Tom de Vries <tom@codesourcery.com>
3 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
5 2015-09-04 Jeff Law <law@redhat.com>
7 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
8 unnecessary constructor. It's now trivial and implemented inside...
9 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
10 constructor. Add comments to various methods. Remove unused
12 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
13 * tree-vrp.c (identify_jump_threads): Likewise.
14 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
16 (thread_across_edge): Similarly.
17 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
18 arguments in constructor call.
20 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
22 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
23 temp path contains a '-'.
25 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
26 Petr Murzin <petr.murzin@intel.com>
27 Kirill Yukhin <kirill.yukhin@intel.com>
29 * config/i386/i386-builtin-types.def
30 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
31 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
32 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
33 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
35 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
36 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
37 IX86_BUILTIN_SCATTERALTDIV16SI.
38 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
39 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
40 __builtin_ia32_scatteraltdiv8si.
41 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
42 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
43 IX86_BUILTIN_SCATTERALTDIV16SI.
44 (ix86_vectorize_builtin_scatter): New.
45 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
46 ix86_vectorize_builtin_scatter.
48 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
49 Petr Murzin <petr.murzin@intel.com>
50 Kirill Yukhin <kirill.yukhin@intel.com>
52 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
53 * doc/tm.texi: Regenerate.
54 * target.def: Add scatter builtin.
55 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
56 for loads/stores in case of gather/scatter accordingly.
57 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
58 (vect_check_gather): Rename to ...
59 (vect_check_gather_scatter): this.
60 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
61 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
62 (vect_check_gather_scatter): Use it instead of vect_check_gather.
63 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter variable
64 and new checkings for it accordingly.
66 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
67 (vect_check_gather_scatter): Use it instead of vect_check_gather.
68 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
70 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
72 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
74 (mulv16qi3): New define_expand.
76 2015-09-03 Martin Sebor <msebor@redhat.com>
79 * doc/extend.texi (Other Builtins): Document when the address
80 of a built-in function can be taken.
82 2015-09-03 Richard Biener <rguenther@suse.de>
84 * dwarf2out.c (flush_limbo_die_list): Split out from ...
85 (dwarf2out_early_finish): ... here.
86 (dwarf2out_finish): Do not call dwarf2out_early_finish but
87 flush_limbo_die_list. Assert we have no deferred asm names.
89 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
91 * optabs.c (expand_binop): Don't create a broadcast vector with a
92 source element wider than the inner mode.
94 2015-09-03 Richard Biener <rguenther@suse.de>
96 * varasm.c (output_constant): Use fold_convert instead of
99 2015-09-03 Tom de Vries <tom@codesourcery.com>
101 PR tree-optimization/65637
102 * omp-low.c (expand_omp_for_static_chunk): Handle case that fin_bb has 2
105 2015-09-03 Tom de Vries <tom@codesourcery.com>
107 PR tree-optimization/65637
108 * omp-low.c (find_phi_with_arg_on_edge): New function.
109 (expand_omp_for_static_chunk): Fix inner loop phi.
111 2015-09-03 Tom de Vries <tom@codesourcery.com>
113 PR tree-optimization/65637
114 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
117 2015-09-03 Tom de Vries <tom@codesourcery.com>
119 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
121 2015-09-03 Tom de Vries <tom@codesourcery.com>
123 * doc/invoke.texi (parloops-chunk-size): Add item.
124 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
125 * tree-parloops.c: Include params.h.
126 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
127 param parloops-chunk-size is used.
129 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
132 * fold-const.c (fold_binary_loc) : Move
133 Transform (x >> c) << c into x & (-1<<c) or
134 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
135 types using simplify and match.
136 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
137 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
139 2015-09-03 Richard Biener <rguenther@suse.de>
142 * tree-ssa-structalias.c (ctor_for_analysis): New function.
143 (create_variable_info_for_1): Use ctor_for_analysis instead
145 (create_variable_info_for): Likewise.
147 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
149 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
150 in new callgraph edge.
152 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
157 * config/aarch64/aarch64-simd.md
158 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
159 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
160 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
161 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
163 2015-09-02 Alan Modra <amodra@gmail.com>
165 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
166 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
167 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
169 2015-09-02 Alan Modra <amodra@gmail.com>
172 * config/rs6000/predicates.md (current_file_function_operand): Don't
173 return true for weak symbols.
174 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
176 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
177 Andrew Bennett <andrew.bennett@imgtec.com>
179 * config/mips/mips-opts.h (mips_cb_setting): New enum.
180 * config/mips/mips-protos.h: Add definitions for
181 mips_output_jump and mips_output_equal_conditional_branch
182 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
184 (mips_emit_compare): Add support for the MIPS R6 conditional
186 (mips_process_sync_loop): Likewise.
187 (mips_output_order_conditional_branch): Likewise.
188 (mips16_build_call_stub): Change MIPS_CALL to
190 (mips_print_operand_punctuation): Update 's' case to only
191 apply to micromips r2.
192 (mips_adjust_insn_length): Add support for forbidden slot
194 (mips_avoid_hazard): Likewise.
195 (mips_reorg_process_insns): Likewise.
196 (mips_output_jump): New function.
197 (mips_output_equal_conditional_branch): Likewise.
198 (mips_output_conditional_branch): Use jrc/bc if compact
199 branch support is enabled. Ensure the forbidden slots
200 between the two branch instructions is filled with a nop.
201 (mips_option_override): Add support to process the compact
202 branch option and set the correct defaults. Prevent
203 non-explict relocs being using for MIPS R6.
204 (mips_trampoline_init): Add compact branch support.
205 (mips_mult_zero_zero_cost): Allow zero initialisation of
206 accumulators with TARGET_DSP.
207 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
208 (TARGET_CB_MAYBE): New define.
209 (TARGET_CB_ALWAYS): New define.
210 (ISA_HAS_DELAY_SLOTS): New define.
211 (ISA_HAS_COMPACT_BRANCHES): New define.
212 (ISA_HAS_JRC): New define.
213 (MIPS_BRANCH_C): New define.
214 (MIPS_CALL): Removed.
215 (MICROMIPS_J): Removed.
216 * config/mips/mips.md (compact_form): New attr.
217 (hazard): Add support for forbidden slots.
218 (define_delay): Add support for compact branches.
219 (*branch_order<mode>): Likewise.
220 (*branch_order<mode>_inverted): Likewise.
221 (*branch_equality<mode>): Likewise.
222 (*branch_equality<mode>_inverted): Likewise.
223 (*jump_absolute): Likewise.
224 (*jump_pic): Likewise.
225 (indirect_jump): Use mips_output_jump to produce assembly output.
226 (tablejump_<mode>"): Likewise.
227 (*<optab>"): Likewise.
228 (<optab>_internal): Likewise.
229 (sibcall_internal): Likewise.
230 (sibcall_value_internal): Likewise.
231 (sibcall_value_multiple_internal): Likewise.
232 (call_internal): Likewise.
233 (call_split): Likewise.
234 (call_internal_direct): Likewise.
235 (call_direct_split): Likewise.
236 (call_value_internal): Likewise.
237 (call_value_split): Likewise.
238 (call_value_internal_direct): Likewise.
239 (call_value_direct_split): Likewise.
240 (call_value_multiple_internal): Likewise.
241 (call_value_multiple_split): Likewise.
242 (mips_get_fcsr_mips16_<mode>): Likewise.
243 (mips_set_fcsr_mips16_<mode>): Likewise.
244 (tls_get_tp_mips16_<mode>): Likewise.
245 * config/mips/mips.opt: Add -mcompact-branches option.
246 * config/mips/predicates.md (order_operator): Ensure the
247 conditional compact branches are only used if the ISA them.
248 * doc/invoke.texi: Document -mcompact-branches option.
250 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
253 * lra-lives.c (process_bb_lives): Process move pseudos with the
254 same value for copies and preferences
255 * lra-constraints.c (match_reload): Create match reload pseudo
256 with the same value from single dying input pseudo.
258 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
261 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
263 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
265 * trans-mem.c: Add contributed-by.
268 2015-09-01 Richard Biener <rguenther@suse.de>
270 * expr.c (expand_expr_real_1): For expanding TERed defs
271 set the current location to that of the def if not UNKNOWN.
273 2015-09-01 David Sherwood <david.sherwood@arm.com>
275 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
277 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
279 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
280 then_cost, else_cost fields. Change branch_cost field to unsigned
282 (end_ifcvt_sequence): Call set_used_flags on each insn in the
285 (noce_simple_bbs): New function.
286 (noce_try_move): Bail if basic blocks are not simple.
287 (noce_try_store_flag): Likewise.
288 (noce_try_store_flag_constants): Likewise.
289 (noce_try_addcc): Likewise.
290 (noce_try_store_flag_mask): Likewise.
291 (noce_try_cmove): Likewise.
292 (noce_try_minmax): Likewise.
293 (noce_try_abs): Likewise.
294 (noce_try_sign_mask): Likewise.
295 (noce_try_bitop): Likewise.
296 (bbs_ok_for_cmove_arith): New function.
297 (noce_emit_all_but_last): Likewise.
298 (noce_emit_insn): Likewise.
299 (noce_emit_bb): Likewise.
300 (noce_try_cmove_arith): Handle non-simple basic blocks.
301 (insn_valid_noce_process_p): New function.
302 (contains_mem_rtx_p): Likewise.
303 (bb_valid_for_noce_process_p): Likewise.
304 (noce_process_if_block): Allow non-simple basic blocks
307 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
309 * tree-ssa-dom.c (record_equivalences_from_phis,
310 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
311 (lookup_avail_expr): Likewise, and remove comment and unused temp.
313 2015-09-01 Nick Clifton <nickc@redhat.com>
315 * config/msp430/msp430.opt (mcpu): Fix typo.
317 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
319 * config/aarch64/aarch64.c (aarch64_set_current_function):
320 Re-layout any vector parameters have non-simd layout.
321 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
323 (aarch64_simd_expand_args): Delete call to the above.
325 2015-08-31 Mike Frysinger <vapier@gentoo.org>
327 * doc/invoke.texi (asan-stack): Add space before option.
329 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
331 * tree.h (zerop): New function.
332 * tree.c (zerop): Likewise.
333 (element_precision): Handle expressions.
334 * match.pd (define_predicates): Add zerop.
335 (x <= +Inf): Fix comment.
336 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
337 * fold-const.c (fold_binary_loc): ... here. Remove.
339 2015-08-31 Richard Biener <rguenther@suse.de>
342 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
344 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
346 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
347 (CEXPI): New operator list.
348 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
349 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
351 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
353 2015-08-31 Tom de Vries <tom@codesourcery.com>
355 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
356 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
358 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
359 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
360 (rewrite_into_loop_closed_ssa): ... here.
361 (replace_uses_in_dominated_bbs): Remove function.
362 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
363 rewrite_into_loop_closed_ssa_1.
365 2015-08-31 Michael Matz <matz@suse.de>
367 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
368 enter entry and exit blocks for reverse post order.
370 2015-08-31 Richard Biener <rguenther@suse.de>
372 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
373 (lto_location_cache::current_sysp): Likewise.
374 (output_block::current_sysp): Likewise.
375 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
376 (lto_location_cache::apply_location_cache): Properly record
377 system header locations.
378 (lto_location_cache::input_location): Input whether a file
380 * lto-streamer-out.c (lto_output_location): Stream whether a file
383 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
386 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
388 2015-08-31 Tom de Vries <tom@codesourcery.com>
390 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
391 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
392 Improve function header comments.
394 2015-08-30 Michael Collison <michael.collison@linaro.org>
397 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
400 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
402 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
403 special_handling bitfield.
404 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
405 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
406 that represents a general xxpermdi.
407 (insn_is_swappable_p): Add handling for vec_concat of two
408 doublewords, which maps to a specific xxpermdi.
409 (adjust_xxpermdi): New function.
410 (adjust_concat): Likewise.
411 (handle_special_swappables): Call adjust_xxpermdi and
413 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
415 2015-08-30 Rich Felker <dalias@libc.org>
417 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
418 case instead of sh[123456ble]-*-*.
420 2015-08-29 Anatoly Sokolov <aesok@post.ru>
422 * ira.c (print_unform_and_important_classes,
423 print_translated_classes): Remove reg_class_names static array.
424 (print_unform_and_important_classes): Rename to ...
425 (print_uniform_and_important_classes): ... this.
426 (ira_debug_allocno_classes): Update accordingly.
428 2015-08-29 Tom de Vries <tom@codesourcery.com>
430 PR tree-optimization/46193
431 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
434 2015-08-28 Jeff Law <law@redhat.com>
437 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
438 unable to find X NE 0 in the tables, return X as the simplified
440 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
441 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
443 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
444 after removing the control flow statement and unnecessary edges.
446 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
449 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
450 PR tree-optimization/67283
451 * tree-sra.c (type_consists_of_records_p): Rename to...
452 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
454 (completely_scalarize_record): Rename to...
455 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
457 (scalarize_elem): New.
459 2015-08-28 Jiong Wang <jiong.wang@arm.com>
461 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
462 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
463 (aarch64_symbol_type): Likewise.
464 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
466 (aarch64_expand_mov_immediate): Likewise.
467 (aarch64_print_operand): Likewise.
468 (aarch64_classify_tls_symbol): Likewise.
470 2015-08-28 Richard Biener <rguenther@suse.de>
472 * cgraphunit.c (symbol_table::compile): Move early debug generation
474 (symbol_table::finalize_compilation_unit): ... back here and
475 add a !seen_error () guard.
477 2015-08-27 Sebastian Pop <s.pop@samsung.com>
479 * toplev.c (process_options): Do not use flag_loop_block,
480 flag_loop_interchange, and flag_loop_strip_mine. Add check for
481 flag_loop_optimize_isl.
483 2015-08-27 Sebastian Pop <s.pop@samsung.com>
485 * Makefile.in (OBJS): Remove graphite-blocking.o and
486 graphite-interchange.o.
487 * common.opt (floop-strip-mine, floop-interchange, floop-block):
488 Alias of floop-nest-optimize.
489 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
490 Document as alias of -floop-nest-optimize.
491 * graphite-blocking.c: Remove.
492 * graphite-interchange.c: Remove.
493 * graphite-optimize-isl.c: Include dumpfile.h.
494 (getScheduleForBand): Add dump for tiled loops. Use
495 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
496 * graphite-poly.c (scop_max_loop_depth): Remove.
497 (print_scattering_function_1): Remove.
498 (print_scattering_function): Remove.
499 (print_scattering_functions): Remove.
500 (debug_scattering_function): Remove.
501 (debug_scattering_functions): Remove.
502 (apply_poly_transforms): Remove use of flag_loop_block,
503 flag_loop_strip_mine, and flag_loop_interchange.
504 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
506 (print_pdr_access_layout): Remove.
507 (print_pdr): Print ISL representation.
508 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
509 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
511 (openscop_print_pbb_domain): Remove.
512 (print_pbb): Remove call to print_scattering_function.
513 (openscop_print_scop_context): Remove.
514 (print_scop_context): Do not print matrices anymore.
515 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
516 SCOP_TRANSFORMED_SCHEDULE.
517 (print_isl_set): Add printing of a new line.
518 (print_isl_map): Same.
519 (print_isl_aff): Same.
520 (print_isl_constraint): Same.
521 (loop_to_lst): Remove.
522 (scop_to_lst): Remove.
523 (lst_indent_to): Remove.
528 (reverse_loop_at_level): Remove.
529 (reverse_loop_for_pbbs): Remove.
530 * graphite-poly.h (pdr_dim_iter_domain): Remove.
531 (pdr_nb_params): Remove.
532 (pdr_alias_set_dim): Remove.
533 (pdr_subscript_dim): Remove.
534 (pdr_iterator_dim): Remove.
535 (pdr_parameter_dim): Remove.
536 (same_pdr_p): Remove.
537 (struct poly_scattering): Remove.
538 (struct poly_bb): Remove _original, _transformed, _saved.
539 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
540 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
541 (PBB_NB_LOCAL_VARIABLES): Remove.
542 (PBB_NB_SCATTERING_TRANSFORM): Remove.
543 (schedule_to_scattering): Remove.
544 (number_of_write_pdrs): Remove.
545 (pbb_dim_iter_domain): Remove.
546 (pbb_nb_params): Remove.
547 (pbb_nb_scattering_orig): Remove.
548 (pbb_nb_scattering_transform): Remove.
549 (pbb_nb_dynamic_scattering_transform): Remove.
550 (pbb_nb_local_vars): Remove.
551 (pbb_iterator_dim): Remove.
552 (pbb_parameter_dim): Remove.
553 (psco_scattering_dim): Remove.
554 (psct_scattering_dim): Remove.
555 (psct_local_var_dim): Remove.
556 (psco_iterator_dim): Remove.
557 (psct_iterator_dim): Remove.
558 (psco_parameter_dim): Remove.
559 (psct_parameter_dim): Remove.
560 (psct_dynamic_dim): Remove.
561 (psct_static_dim): Remove.
562 (psct_add_local_variable): Remove.
563 (new_lst_loop): Remove.
564 (new_lst_stmt): Remove.
567 (lst_add_loop_under_loop): Remove.
569 (lst_dewey_number): Remove.
570 (lst_dewey_number_at_depth): Remove.
573 (lst_find_pbb): Remove.
574 (find_lst_loop): Remove.
575 (lst_find_first_pbb): Remove.
576 (lst_empty_p): Remove.
577 (lst_find_last_pbb): Remove.
578 (lst_contains_p): Remove.
579 (lst_contains_pbb): Remove.
580 (lst_create_nest): Remove.
581 (lst_remove_from_sequence): Remove.
582 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
583 (lst_niter_for_loop): Remove.
584 (pbb_update_scattering): Remove.
585 (lst_update_scattering_under): Remove.
586 (lst_update_scattering): Remove.
587 (lst_insert_in_sequence): Remove.
588 (lst_replace): Remove.
589 (lst_substitute_3): Remove.
590 (lst_distribute_lst): Remove.
591 (lst_remove_all_before_including_pbb): Remove.
592 (lst_remove_all_before_excluding_pbb): Remove.
593 (struct scop): Remove original_schedule, transformed_schedule, and
595 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
596 (SCOP_SAVED_SCHEDULE): Remove.
597 (poly_scattering_new): Remove.
598 (poly_scattering_free): Remove.
599 (poly_scattering_copy): Remove.
600 (store_scattering_pbb): Remove.
601 (store_lst_schedule): Remove.
602 (restore_lst_schedule): Remove.
603 (store_scattering): Remove.
604 (restore_scattering_pbb): Remove.
605 (restore_scattering): Remove.
606 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
607 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
608 compute the scattering polyhedron dimension from the dimension of
610 (build_scop_scattering): Update call to
611 build_pbb_scattering_polyhedrons.
612 (build_poly_scop): Remove call to scop_to_lst.
613 * graphite.c (graphite_transform_loops): Add call to print_scop.
614 (gate_graphite_transforms): Remove use of flag_loop_block,
615 flag_loop_interchange, and flag_loop_strip_mine.
617 2015-08-27 Sebastian Pop <s.pop@samsung.com>
619 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
620 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
621 -floop-nest-optimize.
622 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
623 (generate_luj_sepclass): Remove.
624 (generate_luj_options): Remove.
625 (set_options): Remove opt_luj.
626 (scop_to_isl_ast): Remove opt_luj.
627 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
628 flag_loop_unroll_jam.
629 (getPrevectorMap_full): Remove.
630 (getScheduleForBandList): Remove map_sepcl.
631 (getScheduleMap): Same.
632 (apply_schedule_map_to_scop): Remove sepcl.
633 (optimize_isl): Same.
634 * graphite-poly.c (apply_poly_transforms): Remove check for
635 flag_loop_unroll_jam.
636 (new_poly_bb): Remove map_sepclass.
637 * graphite-poly.h (struct poly_bb): Same.
638 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
639 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
640 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
641 * toplev.c (process_options): Remove flag_loop_unroll_jam.
643 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
646 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
648 (UNSPEC_ADD_CARRY): Remove.
649 (addqi3_cconly_overflow): New expander.
650 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
651 Adjust for changed add<mode>3_carry.
652 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
653 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
654 (<plusminus_insn><mode>3_carry): Remove expander.
655 (*<plusminus_insn><mode>3_carry): Split insn pattern to
656 add<mode>3_carry and sub<mode>3_carry.
657 (plusminus_carry_mnemonic): Remove code attribute.
658 (add<mode>3_carry): Canonicalize insn pattern.
659 (*addsi3_carry_zext): Ditto.
660 (sub<mode>3_carry): Ditto.
661 (*subsi3_carry_zext): Ditto.
662 (adcx<mode>3): Remove insn pattern.
663 (addcarry<mode>): New insn pattern.
664 (subborrow<mode>): Ditto.
665 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
666 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
667 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
668 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
669 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
670 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
671 Rewrite expander to not clobber carry flag chains.
673 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
675 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
678 2015-08-27 Marek Polacek <polacek@redhat.com>
681 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
682 an entry into an irreducible region.
684 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
686 * configure: Regenerate.
688 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
690 PR tree-optimization/67283
691 * tree-sra.c (type_consists_of_records_p): Rename to...
692 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
694 (completely_scalarize_record): Rename to...
695 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
696 (scalarize_elem): New.
698 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
700 * tree-sra.c (completely_scalarize_var): Rename to...
701 (create_total_scalarization_access): ... Here. Drop call to
702 completely_scalarize_record.
704 (analyze_all_variable_accesses): Replace completely_scalarize_var
705 with create_total_scalarization_access and completely_scalarize_record.
707 2015-08-27 Alan Modra <amodra@gmail.com>
710 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
713 2015-08-27 Richard Biener <rguenther@suse.de>
715 * passes.c (rest_of_decl_compilation): Guard early_global_decl
716 call with !seen_error ().
717 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
718 early debug generation and finish...
719 (symbol_table::compile): ... here to put it after a !seen_error ()
722 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
724 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
727 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
728 Andre Vieira <andre.simoesdiasvieira@arm.com>
730 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
731 (*cb<optab><mode>1): Likewise.
732 (*tb<optab><mode>1): Likewise.
733 (*cb<optab><mode>1): Likewise.
734 * config/aarch64/iterators.md (inv_cb): New code attribute.
736 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
737 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
739 2015-08-27 Richard Biener <rguenther@suse.de>
741 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
743 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
745 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
748 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
750 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
753 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
755 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
756 floating point in VSX registers.
757 (rs6000_output_move_128bit): Always print out the set insn if we
758 can't generate an appropriate 128-bit move.
759 (rs6000_generate_compare): Add support for IEEE 128-bit floating
760 point in VSX registers comparisons.
761 (rs6000_expand_float128_convert): Likewise.
763 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
764 predicate for only GPR hard registers.
766 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
767 modes to iterators. Add new iterators for moving 128-bit values in
768 scalar FPR registers and VSX registers.
769 (FMOVE128): Likewise.
770 (FMOVE128_FPR): Likewise.
771 (FMOVE128_GPR): Likewise.
772 (FMOVE128_VSX): Likewise.
773 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
778 (RELOAD): Add IEEE 128-bit floating point modes.
779 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
780 floating point in VSX registers modes.
781 (signbit<mode>2, IBM128 iterator): Likewise.
782 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
783 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
785 (neg<mode>2, TFIFKF iterator): Likewise.
786 (negtf2_internal): Likewise.
788 (abs<mode>2, TFIFKF iterator): Likewise.
789 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
790 VSX insn support for negate, absolute value, and negative absolute
792 (ieee_128bit_vsx_neg<mode>2): Likewise.
793 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
794 (ieee_128bit_vsx_abs<mode>2): Likewise.
795 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
796 (ieee_128bit_vsx_nabs<mode>2): Likewise.
797 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
798 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
799 floating point in VSX registers.
800 (unpack<mode>_dm): Likewise.
801 (unpack<mode>_nodm): Likewise.
802 (pack<mode>): Likewise.
803 (unpackv1ti): Likewise.
804 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
805 (packv1ti): Likewise.
806 (pack<mode>, FMOVE128_VSX iterator): Likewise.
807 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
809 (extenddftf2_internal): Likewise.
810 (trunctfdf2): Likewise.
811 (trunctfdf2_internal2): Likewise.
812 (fix_trunc_helper): Likewise.
813 (fix_trunctfdi2"): Likewise.
814 (floatditf2): Likewise.
815 (floatuns<mode>tf2): Likewise.
816 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
817 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
818 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
819 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
820 (float<SDI:mode><IFKF:mode>2): Likewise.
821 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
823 2015-08-26 Renlin Li <renlin.li@arm.com>
825 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
827 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
828 Jiong Wang <jiong.wang@arm.com>
830 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
831 (tlsie_tiny_<mode>): New define_insn.
832 (tlsie_tiny_sidi): Likewise.
833 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
835 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
836 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
838 (aarch64_expand_mov_immediate): Likewise.
839 (aarch64_print_operand): Likewise.
840 (arch64_classify_tls_symbol): Likewise.
842 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
844 * config/arm/arm-arches.def: Replace single value flags with
845 an initializer built from ARM_FSET_MAKE_CPU1.
846 * config/arm/arm-cores.def: Likewise.
847 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
848 derivation from the ARM_CORE macro definition, use the given value
850 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
851 ARM_ARCH macro definition, use the given value instead.
853 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
855 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
857 (struct builtin_description): Replace field mask with field
859 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
860 (IWMMXT2_BUILTIN): Likewise.
861 (IWMMXT2_BUILTIN2): Likewise.
862 (FP_BUILTIN): Likewise.
863 (CRC32_BUILTIN): Likewise.
864 (CRYPTO_BUILTIN): Likewise.
865 (iwmmx_mbuiltin): Likewise.
866 (iwmmx2_mbuiltin): Likewise.
867 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
868 struct builtin_description.
870 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
872 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
873 (struct builtin_description): Change type of mask to unsigned
875 * config/arm/arm-protos.h (insn_flags): Declare as type
877 (tune_flags): Likewise.
878 * config/arm/arm.c (feature_count): New.
879 (insn_flags): Define as type arm_feature_set.
880 (tune_flags): Likewise.
881 (struct processors): Define field flags as type arm_feature_set.
882 (all_cores): Update for change to struct processors.
883 (all_architectures): Likewise.
884 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
886 (arm_option_override_internal): Likewise.
887 (arm_option_override): Likewise.
889 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
890 Jiong Wang <jiong.wang@arm.com>
892 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
893 tls size for tiny, small, large memory model.
894 (aarch64_load_symref_appropriately): Support new symbol types.
895 (aarch64_expand_mov_immediate): Likewise.
896 (aarch64_print_operand): Likewise.
897 (aarch64_classify_tls_symbol): Likewise.
898 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
899 (aarch64_symbol_type): Likewise.
900 * config/aarch64/aarch64.md (tlsle): Deleted.
901 (tlsle12_<mode>): New define_insn.
902 (tlsle24_<mode>): Likewise.
903 (tlsle32_<mode>): Likewise.
904 (tlsle48_<mode>): Likewise.
905 * doc/sourcebuild.texi (AArch64-specific attributes): Document
908 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
910 * config/arm/arm-protos.h (FL_NONE): New.
912 (arm_feature_set): New.
913 (ARM_FSET_MAKE): New.
914 (ARM_FSET_MAKE_CPU1): New.
915 (ARM_FSET_MAKE_CPU2): New.
916 (ARM_FSET_CPU1): New.
917 (ARM_FSET_CPU2): New.
918 (ARM_FSET_EMPTY): New.
920 (ARM_FSET_HAS_CPU1): New.
921 (ARM_FSET_HAS_CPU2): New.
922 (ARM_FSET_HAS_CPU): New.
923 (ARM_FSET_ADD_CPU1): New.
924 (ARM_FSET_ADD_CPU2): New.
925 (ARM_FSET_DEL_CPU1): New.
926 (ARM_FSET_DEL_CPU2): New.
927 (ARM_FSET_UNION): New.
928 (ARM_FSET_INTER): New.
930 (ARM_FSET_EXCLUDE): New.
931 (AFM_FSET_IS_EMPTY): New.
932 (ARM_FSET_CPU_SUBSET): New.
934 2015-08-26 Jiong Wang <jiong.wang@arm.com>
936 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
937 SYMBOL_TLSLE to SYMBOL_TLSLE24.
938 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
940 (aarch64_expand_mov_immediate): Likewise.
941 (aarch64_print_operand): Likewise.
942 (aarch64_classify_symbol): Likewise.
944 2015-08-26 Jiong Wang <jiong.wang@arm.com>
946 * config/aarch64/aarch64.opt (mtls-size): New entry.
947 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
948 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
949 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
951 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
953 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
954 ARM_CORE entry. Fix some white-space.
955 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
958 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
960 * fold-const.c (fold_binary_loc) : Move Optimize
961 root(x)*root(y) as root(x*y) to match.pd.
962 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
963 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
964 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
965 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
966 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
967 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
968 (mult (exps:s @0) (exps:s @1)) : New simplifier.
969 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
970 (rdiv @0 (exps:s @1)) : New simplifier.
972 2015-08-25 Joseph Myers <joseph@codesourcery.com>
974 * gcc.c (driver::finalize): Only assign to extra_specs if
977 2015-08-25 Marek Polacek <polacek@redhat.com>
980 * varasm.c (declare_weak): Return after giving an error.
982 2015-08-25 David Malcolm <dmalcolm@redhat.com>
984 * gcc-main.c (main): Add params to driver ctor.
985 * gcc.c (class env_manager): New.
987 (env_manager::init): New.
988 (env_manager::get): New.
989 (env_manager::xput): New.
990 (env_manager::restore): New.
991 Poison getenv and putenv.
992 (DEFAULT_TARGET_SYSTEM_ROOT): New.
993 (target_system_root): Update initialization to use
994 DEFAULT_TARGET_SYSTEM_ROOT.
995 (struct spec_list): Add field "default_ptr".
996 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
997 (init_spec): Likewise.
998 (set_spec): Clear field "default_ptr".
999 (read_specs): Free "spec" and "buffer".
1000 (xputenv): Reimplement in terms of env_manager.
1001 (process_command): Replace ::getenv calls with calls to the
1002 env_manager singleton.
1003 (process_brace_body): Free string in three places.
1004 (driver::driver): New.
1005 (driver::~driver): New.
1006 (used_arg): Convert from a function to...
1007 (class used_arg_t): ...this class, and...
1008 (used_arg): ...this new global instance.
1009 (used_arg_t::finalize): New function.
1010 (getenv_spec_function): Add "const" to local "value". Replace
1011 ::getenv call with call to the env_manager singleton.
1012 (path_prefix_reset): New function.
1013 (driver::finalize): New function.
1014 * gcc.h (driver::driver): New.
1015 (driver::~driver): New.
1016 (driver::finalize): New.
1018 2015-08-25 Nathan Sidwell <nathan@acm.org>
1020 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
1021 target doesn't have one.
1023 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
1026 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
1028 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
1031 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
1032 a define_insn, remove second alternative.
1034 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
1035 Joseph Myers <joseph@codesourcery.com>
1037 * gcc.c (struct switchstr): Expand comment.
1039 2015-08-25 Nathan Sidwell <nathan@acm.org>
1041 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
1042 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
1044 2015-08-25 Richard Biener <rguenther@suse.de>
1047 * genmatch.c (expr::gen_transform): Verify the result of
1048 builtin_decl_implicit.
1049 (dt_simplify::gen_1): Likewise.
1051 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
1053 * config/arm/constraints.md: Also list Cs and US ARM-specific
1054 constraints as used.
1056 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
1059 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
1061 (nonpic_symbol_mentioned_p): Likewise.
1062 (sh_delegitimize_address): Likewise.
1063 (sh_function_ok_for_sibcall): Take into account weak symbols.
1064 (sh_expand_sym_label2reg): New.
1065 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
1066 * config/sh/sh.md (UNSPEC_PCREL): New enum.
1067 (call_pcrel): Use sh_expand_sym_label2reg.
1068 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
1069 (symPCREL_label2reg) New expand.
1071 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
1073 * graphite-poly.c: Change type of region from void* to sese.
1074 * graphite-poly.h (struct scop): Changing the type of scop::region
1075 from void* to sese. Change accessor macro accordingly.
1076 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
1078 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
1080 * graphite-scop-detection.c (stmt_simple_for_scop_p):
1081 Constrain only on INTEGER_TYPE.
1083 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1086 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
1087 -mefficient-unaligned-vsx on ISA 2.7.
1089 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
1090 option to a masked option.
1092 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
1093 logic for -mefficient-unaligned-vsx so that it is set via an arch
1094 ISA option, instead of being set if -mtune=power8 is set. Move
1095 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
1096 near other default option handling.
1098 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
1100 * genflags.c (gen_macro): Delete.
1101 (gen_proto): Don't create GEN.*CALL.* macros.
1102 * gensupport.h (get_file_location): Declare.
1103 * gensupport.c (rtx_locs): New variable.
1104 (read_md_rtx): Record rtx locations.
1105 (get_file_location): New function.
1106 * target-insns.def (call, call_pop, call_value, call_value_pop)
1107 (sibcall, sibcall_value): New patterns.
1108 * gentarget-def.c (parse_argument): New function.
1109 (def_target_insn): Use it. Handle optional operands. Raise an
1110 error if an .md pattern has the wrong number of operands for the
1111 pattern name. Remove the names of unused operands from the prototype.
1112 * builtins.c (expand_builtin_apply): Use targetm functions
1113 instead of HAVE_call_value and GEN_CALL_VALUE.
1114 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
1115 and sibcall_value_pop.
1116 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
1118 * config/alpha/alpha.md (untyped_call): Likewise.
1119 * config/iq2000/iq2000.md (untyped_call): Likewise.
1120 * config/m68k/m68k.md (untyped_call): Likewise.
1121 * config/mips/mips.md (untyped_call): Likewise.
1122 * config/pa/pa.md (untyped_call): Likewise.
1123 * config/rs6000/rs6000.md (untyped_call): Likewise.
1124 * config/sparc/sparc.md (untyped_call): Likewise.
1125 * config/tilegx/tilegx.md (untyped_call): Likewise.
1126 * config/tilepro/tilepro.md (untyped_call): Likewise.
1127 * config/visium/visium.md (untyped_call): Likewise.
1128 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
1129 gen_call_value instead of GEN_CALL_VALUE.
1130 * config/arm/arm.md (untyped_call): Likewise.
1131 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
1134 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
1136 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
1137 (have_cbranchcc4): New variable.
1138 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
1139 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
1140 (if_convert): Initialize have_cbranchcc4.
1142 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
1144 * builtins.c (expand_cmpstrn): Rename to...
1145 (expand_cmpstrn_or_cmpmem): ...this.
1146 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
1147 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
1148 Remove mode argument.
1149 (expand_builtin): Update accordingly.
1151 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
1153 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
1154 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
1155 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
1156 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
1157 Add predicates for operands 0 and 3.
1158 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
1160 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
1161 immediate_operand to nonmemory_operand.
1163 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
1165 * df-scan.c (df_insn_info_init_fields): New function, split out
1167 (df_insn_create_insn_record): ...here.
1168 (df_insn_info_free_fields): New function, split out from...
1169 (df_insn_info_delete): ...here.
1170 (df_insn_rescan): Use the new functions instead of freeing and
1171 reallocating the df_insn_info.
1173 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1175 * doc/install.texi (Binaries): Remove links no longer valid.
1177 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
1179 * config/nvptx/mkoffload.c (process): Replace
1180 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
1182 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
1185 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
1187 2015-08-24 Renlin Li <renlin.li@arm.com>
1189 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
1190 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
1191 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
1192 * config/arm/constraints.md ("j"): Add check for high code.
1194 2015-08-24 Tom de Vries <tom@codesourcery.com>
1196 PR tree-optimization/65468
1197 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
1200 2015-08-24 Nathan Sidwell <nathan@acm.org>
1202 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
1203 change to nvptx_type_from_mode call. Use arg_promotion for both
1204 split and non-split args.
1206 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
1208 * target-insns.def (movstr): New pattern.
1209 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
1210 (expand_movstr): Use targetm rather than HAVE_movstr/
1213 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
1215 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
1218 2015-08-24 Andrew Pinski <apinski@cavium.com>
1220 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
1221 AARCH64_EXTRA_TUNING_OPTION.
1222 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index): New enum.
1223 (aarch64_extra_tuning_flags): Base the shifted value on the index instead
1224 of the argument to AARCH64_EXTRA_TUNING_OPTION.
1225 * config/aarch64/aarch64.c: Remove the last argument to
1226 AARCH64_EXTRA_TUNING_OPTION.
1228 2015-08-23 Nathan Sidwell <nathan@acm.org>
1230 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
1232 (nvptx_declare_function_name): Insert formatting tabs for
1235 2015-08-23 Tom de Vries <tom@codesourcery.com>
1237 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
1238 parm_decl, rather than generating a dummy default def in cfun.
1239 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
1240 ssa_name from cfun and child_fn do not share a stmt as def stmt.
1241 (move_stmt_op): Handle PARM_DECl.
1242 (gather_ssa_name_hash_map_from): New function.
1243 (move_sese_region_to_fn): Add default defs for function params, and add
1244 them to vars_map. Release copied ssa names.
1245 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
1247 2015-08-23 Tom de Vries <tom@codesourcery.com>
1249 * doc/sourcebuild.texi: Rename vect_no_int_max with
1250 vect_no_int_min_max. Update description.
1252 2015-08-22 Andrew Pinski <apinski@cavium.com>
1254 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
1255 * config/aarch64/aarch64-protos.h
1256 (aarch64_fusion_pairs_index): New enum.
1257 (aarch64_fusion_pairs): Base the shifted value on the index instead
1258 Rewrite AARCH64_FUSE_ALL to be based on the end index.
1259 of the argument to AARCH64_FUSION_PAIR.
1260 * config/aarch64/aarch64.c: Remove the last argument to
1261 AARCH64_FUSION_PAIR.
1263 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
1265 * dominance.c (new_zero_array): Define.
1266 (dom_info): Redefine as class with proper encapsulation.
1267 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
1269 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
1270 allocations/deallocations. Pass function as parameter (instead of
1272 (dom_info::get_idom): Define accessor method.
1273 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
1274 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
1275 (calculate_dominance_info): Adjust to use dom_info class.
1276 (verify_dominators): Likewise.
1278 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
1280 * print-rtl.c (print_rtx): Check the correct range for
1281 flag_dump_unnumbered_links to behave as documented.
1283 PR rtl-optimization/67227
1284 PR rtl-optimization/64164
1285 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
1286 (nonoverlapping_memrefs_p): Test offsets and sizes when given
1287 identical gimple_reg exprs.
1289 2015-08-21 Nathan Sidwell <nathan@acm.org>
1291 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
1293 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
1294 crtl->stack_alignment_needed to determine alignment.
1295 (nvptx_get_drap_rtx): New.
1296 (TARGET_GET_DRAP_RTX): Override.
1297 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
1299 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1301 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
1303 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1305 * configure.ac: Remove uwin* cases.
1306 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
1307 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
1308 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
1309 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
1310 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
1311 i[34567]86-*-uwin*, powerpc-*-beos*.
1313 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
1315 * gencodes.c (gencodes): Print the comma for the preceding
1316 enum value rather than the current one. Use aliased enum values
1317 rather than #defines for compiled-out patterns.
1318 (main): Update accordingly. Replace LAST_INSN_CODE with
1320 * lra.c (insn_code_data): Update accordingly.
1321 (finish_insn_code_data_once, get_static_insn_data): Likewise.
1322 * recog.h (target_recog): Likewise.
1323 (preprocess_insn_constraints): Change parameter to unsigned int.
1324 * recog.c (preprocess_insn_constraints): Likewise.
1325 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
1326 * tree-vect-stmts.c (vectorizable_operation): Simplify.
1328 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
1330 PR rtl-optimization/61657
1331 * loop-iv.c (iv_number_of_iterations): Declare up and down as
1332 unsigned. Remove superflous uint64_t cast.
1334 2014-08-21 Felix Yang <felix.yang@huawei.com>
1335 Jiji Jiang <jiangjiji@huawei.com>
1337 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL argument
1338 and get builtin function code directly from CALL.
1339 (gimple_stringop_fixed_value): Modified accordingly.
1340 (gimple_stringops_transform, gimple_stringops_values_to_profile): Modified
1341 accordingly and only accept BUILT_IN_NORMAL string operations.
1343 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
1345 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
1347 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1349 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
1351 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
1352 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
1353 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
1354 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
1355 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
1356 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
1357 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
1358 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
1359 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
1360 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
1362 * match.pd (SIN ) : New Operator.
1363 (TAN) : New Operator.
1364 (mult (SQRT@1 @0) @1) : New simplifier.
1365 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
1366 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
1367 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
1368 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
1369 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
1370 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
1371 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
1372 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
1373 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
1374 (rdiv @0 (POW:s @1 @2)) : New simplifier.
1376 2015-08-21 Bin Cheng <bin.cheng@arm.com>
1378 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
1379 loop if EXPR is simplified to const value.
1381 2015-08-21 Yury Gribov <y.gribov@samsung.com>
1383 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
1384 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
1386 2015-08-21 Richard Biener <rguenther@suse.de>
1389 * gimple-fold.c (replace_stmt_with_simplification): Assert
1390 seq is empty when replacing a call with itself but different
1392 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
1393 a call require that it is const.
1395 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1397 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
1398 * builtins.c (get_object_alignment_2): Adjust.
1399 * varasm.c (align_variable): Likewise.
1400 (get_variable_align): Likewise.
1401 (build_constant_desc): Likewise.
1402 (force_const_mem): Likewise.
1403 * doc/tm.texi.in: Likewise.
1404 * doc/tm.texi: Regenerate.
1406 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1408 * genconfig.c (main): Always define HAVE_cc0.
1409 * recog.c (rest_of_handle_peephole2): Adjust.
1411 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1413 * reorg.c (relax_delay_slots): Don't use #if to check value of
1416 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1418 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
1419 * targhooks.c (default_have_conditional_execution): Adjust.
1421 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
1423 * rtl.h (rtvec_all_equal_p): Declare.
1424 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
1425 * rtl.c (rtvec_all_equal_p): New function.
1426 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
1427 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
1428 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
1429 * config/arm/arm.c (neon_vdup_constant): Likewise.
1430 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
1431 * config/tilegx/constraints.md (W, Y): Likewise.
1432 * config/tilepro/constraints.md (W, Y): Likewise.
1433 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
1434 (classify_immediate): Use unwrap_const_vec_duplicate.
1435 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
1436 (reg_or_v2s8bit_operand): Likewise.
1437 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
1438 (reg_or_v4s8bit_operand): Likewise.
1440 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1442 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
1443 (vec_shasigma_be): New #define.
1444 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
1445 (VPMSUMH): Likewise.
1446 (VPMSUMW): Likewise.
1447 (VPMSUMD): Likewise.
1448 (VPMSUM): New BU_P8V_OVERLOAD_2.
1449 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
1450 entries for VEC_MADD and VEC_VPMSUM.
1452 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
1454 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
1455 Multiply argument avr_n_flash by 64 to match unit of "KiB".
1456 (avr_pgm_check_var_decl): Same.
1458 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
1460 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
1461 initialization of HFmode scalar type (float16_t) to...
1462 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
1465 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
1467 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
1468 having an -mfp16-format.
1470 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
1472 * config/i386/predicates.md (vector_all_ones_operand): Use
1473 CONSTM1_RTX to simplify definition.
1475 2015-08-20 Richard Biener <rguenther@suse.de>
1477 * toplev.c (compile_file): Remove loop calling late_global_decl
1479 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
1480 on decls we assembled.
1482 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
1484 * common/config/aarch64/aarch64-common.c
1485 (AARCH64_CPU_NAME_LENGTH): Delete.
1486 (aarch64_option_extension): New.
1487 (all_extensions): Likewise.
1488 (processor_name_to_arch): Likewise.
1489 (arch_to_arch_name): Likewise.
1491 (all_architectures): Likewise.
1492 (aarch64_get_extension_string_for_isa_flags): Likewise.
1493 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
1495 * config/aarch64/aarch64-protos.h
1496 (aarch64_get_extension_string_for_isa_flags): New.
1497 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
1498 (aarch64_option_print): Get the string to print from
1499 aarch64_get_extension_string_for_isa_flags.
1500 (aarch64_declare_function_name): Likewise.
1501 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
1502 (MCPU_TO_MARCH_SPEC): This.
1503 (ASM_CPU_SPEC): Use it.
1504 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
1505 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
1506 (EXTRA_SPEC_FUNCTIONS): Use it.
1508 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
1510 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
1511 expansion when !ISA_HAS_LWL_LWR.
1512 (mips_block_move_straight): Update the size of elements copied to
1513 account for alignment when !ISA_HAS_LWL_LWR.
1514 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
1516 2015-08-19 Jiong Wang <jiong.wang@arm.com>
1518 * expr.c (expand_expr_real_2): Check gimple statement during
1521 2015-08-19 Magnus Granberg <zorry@gentoo.org>
1523 * common.opt (fstack-protector): Initialize to -1.
1524 (fstack-protector-all): Likewise.
1525 (fstack-protector-strong): Likewise.
1526 (fstack-protector-explicit): Likewise.
1527 * configure.ac: Add --enable-default-ssp.
1528 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
1529 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
1531 * doc/install.texi: Document --enable-default-ssp.
1532 * config.in: Regenerated.
1533 * configure: Likewise.
1535 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
1537 PR rtl-optimization/64164
1538 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
1539 (parm_in_stack_slot_p): ... this. Disregard mode, what
1540 matters is whether the parm will live in a pseudo or a stack
1542 (expand_one_ssa_partition): Deal with params without a default
1543 def. Disregard mode.
1544 * cfgexpand.h: Renamed function declaration.
1545 * tree-ssa-coalesce.c: Adjust.
1546 * function.c (split_complex_args): Allocate stack slot for
1547 unassigned parms before splitting.
1548 (parm_in_unassigned_mem_p): New. Use it instead of
1549 parm_maybe_byref_p throughout this file.
1550 (assign_parm_setup_block): Use it. Accept pseudos in the
1551 expand-assigned rtl.
1552 (assign_parm_setup_reg): Drop BLKmode requirement.
1553 (assign_parm_setup_stack): Allocate and fill in the address of
1554 unassigned MEM parms.
1556 2015-08-19 David Sherwood <david.sherwood@arm.com>
1558 * genmodes.c (emit_mode_unit_size_inline): New function.
1559 (emit_mode_unit_precision_inline): New function.
1560 (emit_insn_modes_h): Emit new #define. Emit new functions.
1561 (emit_mode_unit_size): New function.
1562 (emit_mode_unit_precision): New function.
1563 (emit_mode_adjustments): Add mode_unit_size adjustments.
1564 (emit_insn_modes_c): Emit new arrays.
1565 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
1566 use new inline methods.
1568 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1570 * config/aarch64/aarch64.c (bit_count): Delete prototype
1572 (aarch64_print_operand): Use popcount_hwi instead of the above.
1574 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1576 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
1579 2015-08-19 Marek Polacek <polacek@redhat.com>
1582 * gimple-ssa-isolate-paths.c
1583 (insert_trap_and_remove_trailing_statements): Rename to ...
1584 (insert_trap): ... this. Don't remove trailing statements; split
1586 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
1588 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
1591 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
1592 conditionalize the whole on __GNUC__. Add fallback code
1593 depending neither on undefined nor implementation-defined behaviour.
1595 2015-08-19 Jiong Wang <jiong.wang@arm.com>
1597 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
1598 whitespaces with tab.
1600 2015-08-19 Florian Weimer <fweimer@redhat.com>
1602 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
1603 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
1604 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
1605 Move Name_Ids instantiation to the Prj.Proc package, to avoid
1608 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1610 * config/arm/arm.c (bounds_check): Use %wd print format
1611 for HOST_WIDE_INT arguments.
1613 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1615 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
1616 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
1617 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
1618 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
1619 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
1620 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
1621 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
1622 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
1623 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
1626 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
1628 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
1629 function.c, graphite-scop-detection.c, haifa-sched.c,
1630 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
1631 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
1632 varasm.c: Remove typedefs of structs.
1634 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
1636 * config/rs6000/altivec.h (vec_adde): New define.
1637 (vec_addec): Likewise.
1638 (vec_double): Likewise.
1639 (vec_bperm): Likewise.
1641 * config/rs6000/rs6000-builtin.def (ADDE): New
1642 BU_ALTIVEC_OVERLOAD_3.
1644 (DOUBLE): New BU_VSX_OVERLOAD_1.
1645 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
1646 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
1647 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
1648 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
1649 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
1650 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
1651 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
1652 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
1653 and P8V_BUILTIN_VEC_VBPERMQ.
1655 2015-08-18 Jason Merrill <jason@redhat.com>
1657 * print-tree.c (print_node): Handle TREE_BINFO.
1659 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1662 * builtins.c (expand_builtin_signbit): Add asserts to make sure
1663 we can expand BUILT_IN_SIGNBIT inline.
1664 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
1665 * doc/extend.texi: Document the type-generic __builtin_signbit.
1667 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
1669 PR rtl-optimization/67218
1670 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
1671 (simplify_unary_operation_1): Use it.
1673 2015-08-18 Marek Polacek <polacek@redhat.com>
1676 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
1677 if the call isn't valid.
1678 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
1679 gimple_call_builtin_p.
1680 (call_may_clobber_ref_p_1): Likewise.
1681 (stmt_kills_ref_p): Likewise.
1683 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
1685 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
1686 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
1687 (mips_hard_regno_scratch_ok): Likewise.
1688 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
1689 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
1691 2015-08-18 Bin Cheng <bin.cheng@arm.com>
1693 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
1694 (determine_value_range): Call refine_value_range_using_guard for
1695 each loop initial condition to improve value range.
1697 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
1699 * config/i386/i386.c: Remove include of fibheap.h.
1701 2015-08-17 Richard Biener <rguenther@suse.de>
1703 PR tree-optimization/67221
1704 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
1705 (sccvn_dom_walker::before_dom_children): Mark backedges of
1706 non-executable blocks as not executable.
1708 2015-08-17 David Sherwood <david.sherwood@arm.com>
1710 * config/arm/arm.c (neon_element_bits): Replace call to
1711 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
1712 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
1713 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
1714 (neon_vdup_lane<mode>): Likewise.
1715 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
1716 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
1717 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
1718 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
1719 * config/spu/spu.c (arith_immediate_p): Likewise.
1720 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
1721 * expr.c (expand_expr_real_2): Likewise.
1722 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
1723 * simplify-rtx.c (simplify_immed_subreg): Likewise.
1724 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
1725 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
1727 * fold-const.c (fold_binary_loc): Replace call to
1728 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
1729 GET_MODE_UNIT_PRECISION (m).
1731 2015-08-17 Mike Stump <mikestump@comcast.net>
1733 * config/arm/arm.c (arm_block_move_unaligned_straight):
1734 Emit normal move instead of unaligned load when source or destination
1735 are appropriately aligned.
1737 2015-08-17 Richard Biener <rguenther@suse.de>
1738 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1741 * match.pd (div (coss (op @0) : New simplifier.
1743 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
1745 PR rtl-optimization/64164
1748 PR rtl-optimization/67000
1751 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1752 * tree-ssa-copyrename.c: Removed.
1753 * opts.c (default_options_table): Drop -ftree-copyrename. Add
1754 -ftree-coalesce-vars.
1755 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1756 * common.opt (ftree-copyrename): Ignore.
1757 (ftree-coalesce-inlined-vars): Likewise.
1758 * doc/invoke.texi: Remove the ignored options above.
1759 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1760 * tree-ssa-coalesce.h: ... here.
1761 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1762 headers required by it.
1763 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1764 across variables when flag_tree_coalesce_vars. Check register
1765 use and promoted modes to allow coalescing. Do not coalesce
1766 maybe-byref parms with SSA_NAMEs of other variables, or
1767 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
1768 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1769 with its member functions to tree-ssa-coalesce.c.
1770 (var_map_base_init): Likewise. Renamed to
1771 compute_samebase_partition_bases.
1772 (partition_view_normal): Drop want_bases parameter.
1773 (partition_view_bitmap): Likewise.
1774 * tree-ssa-live.h: Adjust declarations.
1775 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
1776 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1777 default defs at the entry point.
1778 (dump_part_var_map): New.
1779 (compute_optimized_partition_bases): New, called by...
1780 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1781 of compute_samebase_partition_bases. Adjust.
1782 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1783 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
1784 (ssa_default_def_partition): New.
1785 (get_rtl_for_parm_ssa_default_def): New.
1786 (align_local_variable, add_stack_var): Support anonymous SSA
1788 (defer_stack_allocation): Likewise. Declare earlier.
1789 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1790 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1791 Do no record deferred-allocation marker in
1792 SA.partition_to_pseudo.
1793 (expand_stack_vars): Adjust check for the marker in it.
1794 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
1795 redundant MEM attr setting.
1796 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
1798 (expand_one_stack_var): ... this. New wrapper to check and
1799 skip already expanded SSA partitions.
1800 (record_alignment_for_reg_var): New, factored out of...
1801 (expand_one_var): ... this.
1802 (expand_one_ssa_partition): New.
1803 (adjust_one_expanded_partition_var): New.
1804 (expand_one_register_var): Check and skip already expanded SSA
1806 (expand_used_vars): Don't create DECLs for anonymous SSA
1807 names. Expand all SSA partitions, then adjust all SSA names.
1808 (pass::execute): Replace the loops that set
1809 SA.partition_to_pseudo from partition leaders and cleared
1810 DECL_RTL for multi-location variables, and that which used to
1811 rename vars and set attrs, with one that clears DECL_RTL and
1812 checks that PARMs and RESULTs default_defs match DECL_RTL.
1813 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1814 * emit-rtl.c: Include stor-layout.h.
1815 (set_reg_attrs_for_parm): Handle NULL decl.
1816 (set_reg_attrs_for_decl_rtl): Take mode from expression if
1818 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
1819 rather than its possibly-NULL DECL.
1820 * explow.c (promote_ssa_mode): New.
1821 * explow.h (promote_ssa_mode): Declare.
1822 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1823 (read_complex_part): Export.
1824 * expr.h (read_complex_part): Declare.
1825 * cfgexpand.h (parm_maybe_byref_p): Declare.
1826 * function.c: Include cfgexpand.h.
1827 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1828 (use_register_for_parm_decl): Wrapper for the above to
1829 special-case the result_ptr.
1830 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1831 (split_complex_args): Take assign_parm_data_all argument.
1832 Pass it to rtl_for_parm. Set up rtl and context for split
1833 args. Reset complex parm before fetching its default decl
1835 (assign_parms_unsplit_complex): Use the default-def complex
1836 parm rtl if it matches the components.
1837 (assign_parms_augmented_arg_list): Adjust.
1838 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1839 multiple locations. Recognize split complex args.
1840 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1841 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
1842 (assign_parm_setup_block): Prefer SSA-assigned location, and
1843 fill in its address if the memory location of a maybe-byref
1844 parm was not assigned by cfgexpand.
1845 (assign_parm_setup_reg): Likewise. Adjust its mode as
1846 needed. Use entry_parm for equiv if stack_parm is NULL. Make
1847 sure passed_pointer parms don't need conversion. Copy address
1849 (assign_parm_setup_stack): Prefer SSA-assigned location.
1850 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
1851 rtl before testing for pointer bounds. Special-case result_ptr.
1852 (expand_function_start): Maybe reset DECL_RTL of result.
1853 Prefer SSA-assigned location for result and static chain.
1854 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
1855 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
1856 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1857 anonymous SSA names. Use promote_ssa_mode.
1858 (get_temp_reg): Likewise.
1859 (remove_ssa_form): Adjust.
1860 * stor-layout.c (layout_decl): Don't set mem attributes of
1862 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1863 and get its reg_usage for reg invalidation.
1864 (compute_bb_dataflow): Pass it insn.
1865 (emit_notes_in_bb): Likewise.
1867 2015-08-14 Marek Polacek <polacek@redhat.com>
1869 * tree-core.h (tree_base): Fix typo.
1871 2015-08-14 Marek Polacek <polacek@redhat.com>
1874 * gimple.c (infer_nonnull_range_by_attribute): Check that the
1875 nonnull argument position is not outside function arguments.
1877 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
1880 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
1881 'lconst_atomic' with 'const_atomic'.
1882 (atomic_fetch_<optab><mode>): Likewise.
1883 (atomic_<optab>_fetch<mode>): Likewise.
1884 * config/aarch64/iterators.md (lconst-atomic): Move below
1886 (const_atomic): New.
1888 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
1889 Bernd Schmidt <bernds@codesourcery.com>
1891 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
1893 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
1894 (DWARF2_DEBUGGING_INFO): Don't define.
1895 * debug.h (dwarf2_lineno_debug_hooks): Declare.
1896 * toplev.c (process_options): Add a case for it.
1897 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
1898 (dwarf2out_init): Skip most initializations if
1899 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
1901 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
1902 DWARF2_LINENO_DEBUGGING_INFO.
1903 * opts.c (set_debug_level): Likewise.
1905 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
1907 * config/arm/types.md (is_neon_type): Add missing types.
1909 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
1911 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
1913 * config/i386/i386.c (PTA_SKYLAKE): New macros.
1914 (processor_alias_table): Add skylake description.
1915 (enum processor_model): Add skylake processor.
1916 (arch_names_table): Add skylake record.
1917 * doc/invoke.texi: Add skylake item.
1919 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
1921 * ira-int.h: Include recog.h.
1922 * ira-build.c: Don't include recog.h.
1923 * ira-color.c: Likewise.
1924 * ira-conflicts.c: Likewise.
1925 * ira-costs.c: Likewise.
1926 * ira-emit.c: Likewise.
1927 * ira-lives.c: Likewise.
1929 * sched-deps.c: Likewise.
1930 * sel-sched.c: Likewise.
1931 * target-globals.c: Likewise.
1933 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
1936 * reload1.c (elimination_costs_in_insn): Make it obvious to the
1937 compiler that the n_dups and n_operands loop bounds are invariant.
1939 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1941 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
1942 expressions in A and B.
1944 2015-08-13 Richard Biener <rguenther@suse.de>
1946 * tree.c (nonnull_arg_p): Move from ...
1947 * tree-vrp.c (nonnull_arg_p): ... here.
1948 * tree.h (nonnull_arg_p): Declare.
1949 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
1950 here, register ptr != 0 for nonnull_arg_p pointer arguments.
1951 Properly initialize static chain and by-reference result pointer.
1952 (run_scc_vn): Adjust.
1954 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
1956 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
1959 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
1961 * config/aarch64/aarch64-protos.h
1962 (aarch64_gen_atomic_cas): Declare.
1963 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
1964 Choose appropriate instruction pattern for the target.
1965 (aarch64_gen_atomic_cas): New.
1966 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
1967 (atomic_compare_and_swap<mode>_1): Rename to
1968 aarch64_compare_and_swap<mode>. Fix some indentation.
1969 (aarch64_compare_and_swap<mode>_lse): New.
1970 (aarch64_atomic_cas<mode>): New.
1972 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
1974 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
1977 2015-08-13 Richard Biener <rguenther@suse.de>
1979 PR tree-optimization/67191
1980 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
1981 assert we value-numbered last stmts operand because it can validly
1982 trigger for unreachable code.
1984 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1986 PR rtl-optimization/67103
1987 * ifcvt.c (noce_try_store_flag_constants): Move
1988 x = (-(test != 0) & (b - a)) + a transformation to...
1989 (noce_try_cmove): ... Here. Try it if normal conditional
1992 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
1994 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
1996 * config/mips/mips.md (processor): Remove w32 and w64.
1998 2015-08-13 Richard Biener <rguenther@suse.de>
2000 PR tree-optimization/66502
2001 PR tree-optimization/67167
2002 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
2004 (vn_phi_lookup): Adjust.
2005 (vn_phi_insert): Likewise.
2006 (visit_phi): Prefer to value-number to another PHI node
2007 over value-numbering to a PHI argument.
2008 (init_scc_vn): Mark DFS back edges.
2010 2015-08-13 Richard Biener <rguenther@suse.de>
2012 * gimple.h (gcall::code_): New constant static member.
2013 (gcond::code_): Likewise.
2014 * gimple.c (gcall::code_): Define.
2015 (gcond::code_): Likewise.
2016 (is_a_helper <const gcond *>): Add.
2017 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
2018 and forward to a new gcall overload with less checking and a
2019 cheaper way to access the operand.
2020 (gimple_call_lhs_ptr): Likewise.
2021 (gimple_call_set_lhs): Likewise.
2022 (gimple_call_internal_p): Likewise.
2023 (gimple_call_with_bounds_p): Likewise.
2024 (gimple_call_set_with_bounds): Likewise.
2025 (gimple_call_internal_fn): Likewise.
2026 (gimple_call_set_ctrl_altering): Likewise.
2027 (gimple_call_ctrl_altering_p): Likewise.
2028 (gimple_call_fntype): Likewise.
2029 (gimple_call_fn): Likewise.
2030 (gimple_call_fn_ptr): Likewise.
2031 (gimple_call_set_fndecl): Likewise.
2032 (gimple_call_fndecl): Likewise.
2033 (gimple_call_chain): Likewise.
2034 (gimple_call_num_args): Likewise.
2035 (gimple_call_arg): Likewise.
2036 (gimple_call_arg_ptr): Likewise.
2037 (gimple_call_set_arg): Likewise.
2038 (gimple_call_noreturn_p): Likewise.
2039 (gimple_cond_code): Likewise.
2040 (gimple_cond_lhs): Likewise.
2041 (gimple_cond_rhs): Likewise.
2042 (gimple_has_lhs): Reduce checking.
2044 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2047 * match.pd (div (mult @0 @1) @1) : New simplifier.
2049 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2052 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
2053 predicate to allow construction of vector constants using the
2054 VSLDOI vector shift instruction.
2056 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
2059 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
2060 the number of bytes to be shifted left and filled in with either
2061 all zero or all one bits.
2062 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
2064 (output_vec_const_move): On power8, generate XXLORC to generate
2065 a vector constant with all 1's. Do a split if we need to use a
2068 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
2069 properly test for the MSB.
2071 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
2072 vector constants that can be created with VSLDOI.
2074 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
2077 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
2078 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
2079 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
2080 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
2081 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
2082 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
2083 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
2084 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
2085 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
2087 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
2089 * config/xtensa/constraints.md (define_constraint "Y"): New
2091 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
2092 * config/xtensa/linux.h (ASM_SPEC): Likewise.
2093 * config/xtensa/predicates.md (move_operand): Match constants
2094 and symbols in the presence of TARGET_AUTO_LITPOOLS.
2095 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
2096 immediate references to TLS data.
2097 (xtensa_emit_move_sequence): Don't force constants to memory in
2098 the presence of TARGET_AUTO_LITPOOLS.
2099 (print_operand): Add 'y' format, same as default, but capable of
2100 printing SF mode constants as well.
2101 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
2102 (movsf_internal): Add movi pattern that loads literal.
2103 (movsf, movdf): Don't force constants to memory in the presence
2104 of TARGET_AUTO_LITPOOLS.
2105 (movdf_internal): Add 'Y' constraint.
2106 * config/xtensa/xtensa.opt (mauto-litpools): New option.
2107 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
2109 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
2111 * config/arm/arm-fpus.def: Replace booleans with feature flags.
2113 * config/arm/arm.c (ARM_FPU): Update macro.
2114 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
2115 (TARGET_FP16): Likewise.
2116 (TARGET_CRYPTO): Likewise.
2117 (TARGET_NEON): Likewise.
2118 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
2121 2015-08-12 Tom de Vries <tom@codesourcery.com>
2125 * doc/install.texi: Remove --with_host_libstdcxx item. Update
2126 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
2127 accordingly. Mention default for --with-stage1-ldflags.
2129 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
2131 * config/arm/arm.h (arm_fpu_feature_set): New.
2132 (ARM_FPU_FSET_HAS): New.
2136 (FPU_FL_CRYPTO): New.
2138 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2140 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
2141 after -mcmodel=large -fPIC sorry.
2143 2015-08-12 Richard Biener <rguenther@suse.de>
2145 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
2146 comparison operand order and commutative ternary op operand order.
2147 (sccvn_dom_walker::cond_stack): New state to track temporary
2149 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
2151 (sccvn_dom_walker::record_cond): Add a single temporary conditional
2153 (sccvn_dom_walker::record_conds): Add a temporary conditional
2154 expressions and all related expressions also true/false.
2155 (sccvn_dom_walker::before_dom_children): Record temporary
2156 expressions based on the controlling condition of a single
2157 predecessor. When trying to simplify a conditional statement
2158 lookup expressions we might have inserted earlier.
2160 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
2163 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
2164 to ARM core registers.
2166 2015-08-12 Nathan Sidwell <nathan@acm.org>
2168 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
2169 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
2171 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
2173 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
2175 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
2177 2015-08-12 Richard Biener <rguenther@suse.de>
2179 * gimple.h (remove_pointer): New trait.
2180 (GIMPLE_CHECK2): New inline template function.
2181 (gassign::code_): New constant static member.
2182 (is_a_helper<const gassign *>): Add.
2183 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
2184 and forward to a new gassign overload with less checking and a
2185 cheaper way to access the operand.
2186 (gimple_assign_lhs_ptr): Likewise.
2187 (gimple_assign_set_lhs): Likewise.
2188 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
2190 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
2192 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
2194 (gimple_assign_rhs_code): Likewise.
2195 * gimple.c (gassign::code_): Define.
2197 2015-08-12 Richard Biener <rguenther@suse.de>
2199 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2200 Eliminate edges marked as not executable by SCCVN.
2201 * tree-ssa-sccvn.c: Include gimple-iterator.h.
2202 (cond_dom_walker): Rename to sccvn_dom_walker.
2203 (sccvn_dom_walker::before_dom_children): Value-number defs
2205 (run_scc_vn): Remove loop value-numbering all SSA names.
2206 Drop not visited SSA names to varying.
2208 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
2210 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
2211 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
2212 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
2213 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
2214 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
2215 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
2216 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
2217 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
2218 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
2220 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
2223 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
2224 to enum feature_priority and feature_list.
2225 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
2226 and isa_names_table.
2228 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
2230 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
2233 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2237 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
2238 account when deciding what was the command-line status.
2240 2015-08-11 Nathan Sidwell <nathan@acm.org>
2242 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
2244 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
2245 we're not the only contributor to target phi.
2247 2015-08-11 Jiong Wang <jiong.wang@arm.com>
2249 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
2252 2015-08-11 Tom de Vries <tom@codesourcery.com>
2254 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
2256 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
2258 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
2260 * config/i386/i386.md (cpu): Remove knl.
2262 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
2266 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
2267 open-coded sequence.
2268 * omp-low.c (oacc_process_reduction_data): Remove handline of
2269 GOMP_DEVICE_HOST_NONSHM.
2271 * lto-streamer-in.c (lto_input_mode_table): Adjust to
2272 GET_MODE_INNER changes.
2274 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
2275 Ilya Verbin <ilya.verbin@intel.com>
2277 * lto-streamer-in.c (lto_input_mode_table): Correctly advance
2280 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2282 * doc/options.texi (EnabledBy): Document that the argument must be
2284 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
2285 Not enabled by -Wall.
2286 * optc-gen.awk: Give nicer error messages. Detect if the argument
2287 of EnabledBy is not a Common option.
2288 * common.opt (Wnull-dereference): Not enabled by -Wall.
2289 * opt-functions.awk (lang_enabled_by): Nicer error messages.
2291 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
2293 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
2294 model == 0x4f as Broadwell.
2296 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2298 PR rtl-optimization/67028
2299 * combine.c (simplify_comparison): Fix comment. Rearrange code.
2300 Add test to see if a const_int fits in the new mode.
2302 2015-08-07 DJ Delorie <dj@redhat.com>
2304 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
2306 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
2308 PR rtl-optimization/67029
2309 * ira-color.c: Include "recog.h" before including "ira-int.h".
2310 * target-globals.c: Likewise.
2311 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
2312 adds an alternative_mask argument and use it instead of
2313 preferred_alternatives.
2314 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
2315 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
2316 * sched-deps.c: Include "ira-int.h" after including "ira.h".
2317 (sched_analyze_insn): Update call to
2318 ira_implicitly_set_insn_hard_regs.
2319 * sel-sched.c: Include "ira-int.h" after including "ira.h".
2320 (implicit_clobber_conflict_p): Update call to
2321 ira_implicitly_set_insn_hard_regs.
2323 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
2325 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
2327 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
2330 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
2331 currently_expanding_to_rtl is set.
2333 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
2335 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
2336 * configure: Regenerate.
2338 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2339 Jiong Wang <jiong.wang@arm.com>
2341 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
2342 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
2343 (REG_CLASS_NAMES): Likewise.
2344 (REG_CLASS_CONTENTS): Likewise.
2345 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
2346 (aarch64_register_move_cost): Likewise.
2347 (aarch64_load_symref_appropriately): Invoke the new added pattern if
2349 * config/aarch64/constraints.md (Uc0): New constraint.
2351 2015-08-06 Jiong Wang <jiong.wang@arm.com>
2353 * config/aarch64/constraints.md (Usf): Add the test of
2354 aarch64_is_noplt_call_p.
2356 2015-08-06 Jiong Wang <jiong.wang@arm.com>
2358 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
2360 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
2361 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
2362 (call_symbol): Likewise.
2364 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
2366 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
2367 for vectorizing multiplication patterns.
2368 * tree-vectorizer.h: Adjust the number of patterns.
2370 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
2372 * config/i386/sse.md (*vec_concatv2df): Declare added
2373 alternatives as sselog type.
2375 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2377 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
2380 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2382 * config/s390/s390.c (s390_expand_tbegin): Expand either
2383 tbegin_1_z13 or tbegin_1 depending on VX flag.
2384 * config/s390/s390.md ("tbegin_1_z13"): New expander.
2386 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2388 * config/s390/s390.opt: Clarify description for -mzvector
2389 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
2392 2015-08-06 Richard Biener <rguenther@suse.de>
2394 * gimple.h (gimple_call_set_fn): Access op member directly.
2395 (gimple_call_chain_ptr): Likewise.
2396 (gimple_call_set_chain): Likewise.
2397 (gimple_cond_lhs_ptr): Likewise.
2398 (gimple_cond_set_lhs): Likewise.
2399 (gimple_cond_rhs_ptr): Likewise.
2400 (gimple_cond_set_rhs): Likewise.
2401 (gimple_cond_true_label): Likewise.
2402 (gimple_cond_set_true_label): Likewise.
2403 (gimple_cond_set_false_label): Likewise.
2404 (gimple_cond_false_label): Likewise.
2405 (gimple_label_label): Likewise.
2406 (gimple_label_set_label): Likewise.
2407 (gimple_goto_set_dest): Likewise.
2408 (gimple_asm_input_op): Likewise.
2409 (gimple_asm_input_op_ptr): Likewise.
2410 (gimple_asm_set_input_op): Likewise.
2411 (gimple_asm_output_op): Likewise.
2412 (gimple_asm_output_op_ptr): Likewise.
2413 (gimple_asm_set_output_op): Likewise.
2414 (gimple_asm_clobber_op): Likewise.
2415 (gimple_asm_set_clobber_op): Likewise.
2416 (gimple_asm_label_op): Likewise.
2417 (gimple_asm_set_label_op): Likewise.
2418 (gimple_switch_index): Likewise.
2419 (gimple_switch_index_ptr): Likewise.
2420 (gimple_return_retval_ptr): Likewise.
2421 (gimple_return_retval): Likewise.
2422 (gimple_return_set_retval): Likewise.
2423 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
2424 (gimple_switch_label): Likewise.
2425 (gimple_switch_set_label): Likewise.
2427 2015-08-06 Richard Biener <rguenther@suse.de>
2429 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
2430 bool comparison canonicalization and restrict to integers.
2432 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
2434 * coretypes.h (enum symbol_visibility): Relocate here.
2435 * flag-types.h (enum symbol_visibility): Remove.
2436 * tree-core.h (enum symbol_visibility): Remove.
2438 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
2441 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
2442 for no_split_stack function attribute along with
2444 (rs6000_expand_split_stack_prologue): Likewise.
2446 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2447 Jeff Law <law@redhat.com>
2450 * doc/invoke.texi (Wnull-dereference): New.
2451 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
2452 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
2453 Warn for potential NULL dereferences.
2454 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
2455 * ubsan.c (instrument_nonnull_arg): Call
2456 infer_nonnull_range_by_attribute.
2457 (instrument_nonnull_return): Likewise.
2458 * common.opt (Wnull-dereference); New.
2459 * gimple.c (infer_nonnull_range): Remove bool arguments.
2460 (infer_nonnull_range_by_dereference): New.
2461 (infer_nonnull_range_by_attribute): New.
2462 * gimple.h: Update declarations.
2464 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
2466 * gensupport.c (sequence_num): Replace with...
2467 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
2468 ...these new variables.
2469 (init_rtx_reader_args_cb): Update accordingly.
2470 (get_num_code_insns): Likewise.
2471 (read_md_rtx): Rework to use a while loop and get_c_test.
2472 Use the new counters. Remove redundant DEFINE_SUBST case.
2473 * genoutput.c (gen_split): Delete.
2474 (main): Don't call it.
2476 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
2478 * gensupport.h (get_c_test): Declare.
2479 * gensupport.c (get_c_test): New function.
2480 * genconditions.c (main): Use it.
2481 * genrecog.c (validate_pattern): Likewise.
2482 (match_pattern_1): Likewise. Remove c_test argument.
2483 (match_pattern): Update accordingly and remove c_test argument.
2484 (main): Update accordingly.
2486 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
2488 * gensupport.h (get_num_insn_codes): Declare.
2489 * gensupport.c (get_num_insn_codes): New function.
2490 * genattrtab.c (optimize_attrs): Rename max_insn_code to
2492 (main): Likewise. Use get_num_insn_codes.
2493 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
2495 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
2498 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
2499 is zero- rather than sign-extended.
2501 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
2503 * target-insns.def (can_extend): Delete.
2505 2015-08-05 Richard Biener <rguenther@suse.de>
2507 PR tree-optimization/67121
2508 * tree-if-conv.c (combine_blocks): Clear range-info produced
2509 by stmts no longer executed conditionally.
2511 2015-08-05 Nick Clifton <nickc@redhat.com>
2513 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
2514 to allow identical far pointers to remain.
2516 2015-08-05 Richard Biener <rguenther@suse.de>
2519 * match.pd: Compare address bases with == if they are decls
2520 or SSA names, not operand_equal_p. Otherwise fail.
2522 2015-08-05 Richard Biener <rguenther@suse.de>
2524 PR tree-optimization/67055
2525 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
2528 * g++.dg/torture/pr67055.C: New testcase.
2530 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
2532 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
2534 (define_attr "enabled"): Handle avx521vl and noavx512vl.
2535 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
2536 AVX-512 alternative out of SSE.
2537 (define_insn "*vec_concatv2df"): Ditto.
2539 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
2541 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
2542 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
2543 CODE_FOR_avx_ptestv4di.
2544 * config/i386/sse.md (define_mode_iterator V_AVX): New.
2545 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
2546 (define_insn "avx_ptest256"): Merge this ...
2547 (define_insn "sse4_1_ptest"): And this ...
2548 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
2550 2015-08-05 Richard Biener <rguenther@suse.de>
2552 PR tree-optimization/67109
2553 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
2554 against too big groups. Print whether this is a load or store
2555 group. Rename from ...
2556 (vect_analyze_group_access): ... this which is now a wrapper
2557 dissolving an invalid group.
2558 (vect_analyze_data_ref_accesses): Print whether this is a load
2561 2015-08-05 Richard Biener <rguenther@suse.de>
2564 * match.pd: Guard const_binop result checking against NULL_TREE
2567 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
2569 * cse.c (cse_insn): Restoring old behaviour for src_eqv
2570 when dest and value in the REG_EQUAL are same and dest
2573 2015-08-04 Anatoly Sokolov <aesok@post.ru>
2575 * config/moxie/moxie.h (PRINT_OPERAND,
2576 PRINT_OPERAND_ADDRESS): Remove macros.
2577 * config/moxie/moxie-protos.h (moxie_print_operand,
2578 moxie_print_operand_address): Remove declaration.
2579 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
2580 TARGET_PRINT_OPERAND_ADDRESS): Define.
2581 (moxie_print_operand, moxie_print_operand_address): Make static.
2583 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2586 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
2587 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
2589 2015-08-04 Richard Biener <rguenther@suse.de>
2591 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
2593 (dt_operand::gen_gimple_expr): Adjust.
2595 2015-08-04 Richard Biener <rguenther@suse.de>
2597 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
2598 bool compares on RHS.
2599 * match.pd: Add X ==/!= !X is false/true pattern.
2601 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
2603 * config/aarch64/aarch64.c: Change inner loop statement cost
2604 to be consistent with other targets.
2606 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
2608 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
2611 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
2613 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
2614 (machine_function): Remove pseudos field.
2616 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2618 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
2619 Exit early and use target_option_current_node if processing current
2622 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2624 * doc/extend.texi (AArch64 Function Attributes): New node.
2625 (AArch64 Pragmas): Likewise.
2627 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2629 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
2630 Initialize simd builtins if TARGET_SIMD.
2631 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
2632 Make sure that the builtins are initialized only once no matter how
2633 many times the function is called.
2634 (aarch64_init_builtins): Unconditionally initialize crc builtins.
2635 (aarch64_relayout_simd_param): New function.
2636 (aarch64_simd_expand_args): Use above during argument expansion.
2637 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
2638 simd builtins if TARGET_SIMD.
2639 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
2641 (aarch64_relayout_simd_types): Likewise.
2643 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2645 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
2646 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
2647 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
2648 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
2650 (aarch64_reset_previous_fndecl): New function.
2651 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
2653 * config/aarch64/aarch64-c.c: New file.
2654 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
2655 Push and pop options at beginning and end. Remove ifdef
2656 __ARM_FEATURE_CRC32.
2657 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
2658 Add pragma +nothing+simd and +nothing+crypto where appropriate.
2659 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
2660 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
2662 (aarch64_register_pragmas): Likewise.
2663 (aarch64_reset_previous_fndecl): Likewise.
2664 (aarch64_process_target_attr): Likewise.
2665 (aarch64_override_options_internal): Likewise.
2667 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2669 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
2671 (aarch64_can_inline_p): Likewise.
2672 (TARGET_CAN_INLINE_P): Define.
2674 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2676 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
2677 Remove static. Handle OPT_mgeneral_regs_only,
2678 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
2679 OPT_momit_leaf_frame_pointer.
2680 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
2681 (aarch64_attr_opt_type): New enum.
2682 (aarch64_attribute_info): New struct.
2683 (aarch64_handle_attr_arch): New function.
2684 (aarch64_handle_attr_cpu): Likewise.
2685 (aarch64_handle_attr_tune): Likewise.
2686 (aarch64_handle_attr_isa_flags): Likewise.
2687 (aarch64_attributes): New table.
2688 (aarch64_process_one_target_attr): New function.
2689 (num_occurences_in_str): Likewise.
2690 (aarch64_process_target_attr): Likewise.
2691 (aarch64_option_valid_attribute_p): Likewise.
2692 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
2693 * config/aarch64/aarch64-protos.h: Include input.h
2694 (aarch64_handle_option): Declare prototype.
2696 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2698 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
2699 * config/aarch64/aarch64.c: Include target-globals.h
2700 (aarch64_previous_fndecl): New variable.
2701 (aarch64_set_current_function): New function.
2702 (TARGET_SET_CURRENT_FUNCTION): Define.
2704 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2706 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
2707 (explicit_arch): Likewise.
2708 (x_aarch64_isa_flags): Likewise.
2709 (mgeneral-regs-only): Mark as Save.
2710 (mfix-cortex-a53-835769): Likewise.
2711 (mcmodel=): Likewise.
2712 (mstrict-align): Likewise.
2713 (momit-leaf-frame-pointer): Likewise.
2714 (mtls-dialect): Likewise.
2715 (master=): Likewise.
2716 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
2717 (aarch64_isa_flags): Remove extern declaration.
2718 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
2719 to indicate success or failure.
2720 (aarch64_validate_march): Likewise.
2721 (aarch64_validate_mtune): Likewise.
2722 (aarch64_isa_flags): Delete.
2723 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
2724 instead of aarch64_isa_flags.
2725 (aarch64_get_tune_cpu): New function.
2726 (aarch64_get_arch): Likewise.
2727 (aarch64_override_options): Use above and set up explicit_tune_core
2729 (aarch64_print_extension): Move earlier in file. Add isa_flags
2730 argument and use that instead of the global aarch64_isa_flags.
2731 (aarch64_option_save): New function.
2732 (aarch64_option_restore): Likewise.
2733 (aarch64_option_print): Likewise.
2734 (aarch64_declare_function_name): Likewise.
2735 (aarch64_start_file): Delete.
2736 (TARGET_ASM_FILE_START): Do not define.
2737 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
2738 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
2741 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2743 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
2744 flag_omit_leaf_frame_pointer to 2.
2746 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2748 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
2750 (TARGET_FIX_ERR_A53_835769): New macro.
2751 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
2752 handling of opts->x_aarch64_fix_a53_err835769.
2753 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
2754 than aarch64_fix_a53_err835769.
2755 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
2756 * config/aarch64/aarch64-linux.h: Likewise.
2758 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
2760 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
2761 ix86_expand_int_movcc as boolean.
2763 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2765 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
2766 (aarch64_cpu_string): Likewise.
2767 (aarch64_tune_string): Likewise.
2768 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
2769 (aarch64_parse_extension): Return aarch64_parse_opt_result.
2770 Add extra argument to put result into.
2771 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
2772 (aarch64_parse_cpu): Add arguments to put results into. Return
2773 aarch64_parse_opt_result.
2774 (aarch64_parse_tune): Likewise.
2775 (aarch64_override_options_after_change_1): New function.
2776 (aarch64_override_options_internal): New function.
2777 (aarch64_validate_mcpu): Likewise.
2778 (aarch64_validate_march): Likewise.
2779 (aarch64_validate_mtune): Likewise.
2780 (aarch64_override_options): Update to reflect above changes.
2781 Move some logic into aarch64_override_options_internal.
2782 Initialize target_option_default_node and target_option_current_node.
2783 (aarch64_override_options_after_change): Move logic into
2784 aarch64_override_options_after_change_1 and call it with global_options.
2785 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
2786 flag values from that.
2788 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2790 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2791 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
2792 * config/aarch64/aarch64.c (struct processor): Add arch field.
2793 (all_architectures): Handle above, move above all_cores.
2794 (all_cores): Handle above.
2795 (aarch64_parse_arch): Handle above changes.
2796 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
2797 above. Update comments.
2798 (armv8.1-a): Likewise.
2799 * config/aarch64/aarch64-cores.def: Update according to above.
2800 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
2801 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
2802 aarch64_arch_driver_info.
2804 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2806 * config/aarch64/aarch64.c (struct processor): Add ident field.
2807 Rename core sched_core.
2808 (all_cores): Handle above changes.
2809 (all_architectures): Likewise.
2810 (aarch64_parse_arch): Likewise.
2811 (aarch64_override_options): Likewise.
2813 2015-08-04 Richard Biener <rguenther@suse.de>
2815 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
2816 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
2817 comparisons embedded in [VEC_]COND_EXPRs.
2819 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
2821 * tree-if-conv.c: Fix various typos in comments.
2822 * tree-vect-stmts.c: Likewise.
2824 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
2826 PR tree-optimization/67043
2827 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
2828 preheader after hoisting invariant in it.
2829 (find_defs): Force recomputation of all luids.
2831 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
2833 * config/rs6000/htm.md (tabort.): Restrict the source operand to
2834 using a base register.
2836 2015-08-03 David Malcolm <dmalcolm@redhat.com>
2838 * main.c (main): Pass in NULL for toplev's external_timer.
2839 * timevar.c: Include coretypes.h.
2840 (class timer::named_items): New.
2841 (timer::named_items::named_items): New.
2842 (timer::named_items::~named_items): New.
2843 (timer::named_items::push): New.
2844 (timer::named_items::pop): New.
2845 (timer::named_items::print): New.
2846 (timer::timer): Initialize field "m_jit_client_items".
2847 (timer::~timer): New.
2848 (timer::push): Move bulk of implementation to...
2849 (timer::push_internal): ...here. New function.
2850 (timer::pop): Move bulk of implementation to...
2851 (timer::pop_internal): ...here. New function.
2852 (timer::push_client_item): New.
2853 (timer::pop_client_item): New.
2854 (timer::print_row): New function, taken from timer::print.
2855 (timer::print): Print "GCC items" header if we also have client
2856 items. Move row-printing to timer::print_row. Print any client
2858 (timer::get_topmost_item_name): New method.
2859 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
2860 (TV_JIT_CLIENT_CODE): New.
2861 * timevar.h (timer::push_client_item): New declaration.
2862 (timer::pop_client_item): New declaration.
2863 (timer::get_topmost_item_name): New method.
2864 (timer::push_internal): New declaration.
2865 (timer::pop_internal): New declaration.
2866 (timer::print_row): New declaration.
2867 (timer::named_items): New declaration.
2868 (timer::m_jit_client_items): New field.
2869 (timer): Add friend class named_items.
2870 (auto_timevar::auto_timevar): Add timer param.
2871 (auto_timevar::~auto_timevar): Use field "m_timer".
2872 (auto_timevar::m_timer): New field.
2873 * toplev.c (initialize_rtl): Add g_timer as param when
2874 constructing auto_timevar instance.
2875 (toplev::toplev): Add "external_timer" param, and use it to
2876 initialize the "g_timer" global if non-NULL.
2877 (toplev::~toplev): If this created "g_timer", delete it.
2878 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
2879 with "external_timer" timer *.
2881 2015-08-03 Alexander Basov <coohpt@gmail.com>
2886 * cfgexpand.c (expand_one_var): Add check if stack is going to
2887 be used in naked function.
2888 * expr.c (expand_expr_addr_expr_1): Remove excess checking
2889 whether expression should not reside in MEM.
2890 * function.c (use_register_for_decl): Do not use registers for
2891 non-register things (volatile, float, BLKMode) in naked functions.
2893 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
2896 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
2897 Adjust splits to match new pattern.
2899 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2901 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
2904 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
2905 point in VSX registers.
2907 * config/rs6000/constraints.md (wb constraint): Document unused
2909 (we constraint): Likewise.
2910 (wo constraint): Likewise.
2911 (wp constraint): New constraint for IEEE 128-bit floating point in
2913 (wq constraint): Likewise.
2915 * config/rs6000/predicates.md (easy_fp_constant): Add support for
2916 IEEE 128-bit floating point in VSX registers.
2917 (easy_scalar_constant): Likewise.
2919 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
2920 constraints (wp, wq) for IEEE 128-bit floating point in VSX
2922 (rs6000_init_hard_regno_mode_ok): Likewise.
2924 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
2925 floating point in VSX registers.
2934 (vsx_le_permute_<mode>): Add support to properly swap bytes for
2935 IEEE 128-bit floating point in VSX registers on little endian.
2936 (vsx_le_undo_permute_<mode>): Likewise.
2937 (vsx_le_perm_load_<mode>): Likewise.
2938 (vsx_le_perm_store_<mode>): Likewise.
2939 (splitters for IEEE 128-bit fp moves): Likewise.
2941 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
2944 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
2945 floating point in VSX registers.
2948 * doc/md.text (Machine Constraints): Document wp and wq
2949 constraints on PowerPC.
2951 2015-08-03 Jeff Law <law@redhat.com>
2954 PR gcov-profile/66899
2955 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
2956 iterate over the jump threading paths when an element in the
2957 jump threading paths array is eliminated.
2959 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
2961 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
2963 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
2965 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
2966 is_use_properly_guarded the variable def_preds. Free its
2967 contents before returning.
2968 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
2969 (is_use_properly_guarded): Replace local variable def_preds with
2970 a parameter. Adjust accordingly. Only update *def_preds if it's
2973 2015-08-03 Richard Biener <rguenther@suse.de>
2975 * genmatch.c (simplify::for_subst_vec): New member.
2976 (binary_ok): New helper for for lowering.
2977 (lower_for): Delay substituting operators into result expressions
2978 if we can merge the results eventually again.
2979 (capture_info::walk_result): Adjust for user_id appearing as
2980 result expression operator.
2981 (expr::gen_transform): Likewise.
2982 (dt_simplify::gen_1): Likewise.
2983 (dt_simplify::gen): Pass not substituted operators to tail
2984 functions or initialize local variable with it.
2985 (decision_tree::gen): Adjust function signature.
2986 * match.pd: Fix tests against global code and add default
2987 cases to switch stmts.
2989 2015-08-03 Richard Biener <rguenther@suse.de>
2991 * genmatch.c (dt_simplify::gen): Create captures array
2992 with an initializer.
2994 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2996 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
2997 the host compiler is affected by placement new aliasing bug.
2998 * configure: Regenerate.
2999 * Makefile.in (ALIASING_FLAGS): New variable.
3000 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
3002 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
3005 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
3006 (negmulsf3_vfp): Likewise.
3007 (muldf3negdf_vfp): Disable for -frounding-math.
3008 (mulsf3negsf_vfp): Likewise.
3009 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
3010 fix MULT cost with -frounding-math.
3012 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3014 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
3015 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
3016 explicit. Prefer to add the flag whenever possible.
3017 (noce_process_if_block): Try noce_try_store_flag_constants before
3020 2015-08-03 Richard Biener <rguenther@suse.de>
3022 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
3023 New hash-map to record equivalent transforms.
3024 (dt_node::analyze): Populate the equivalent transforms hash-map.
3025 (dt_simplify::info): Add reference to hash-map entry.
3026 (dt_simplify::gen): If we have split out a function for the
3027 transform, generate a call to it.
3028 (sinfo_hashmap_traits::hash): New function.
3029 (compare_op): New helper function for ...
3030 (sinfo_hashmap_traits::equal_keys): ... this new function.
3031 (decision_tree::gen): Split out common equivalent transforms
3034 2015-08-03 Richard Biener <rguenther@suse.de>
3036 * gimple-fold.c (fold_gimple_assign): Remove folding of
3037 the comparison in COND_EXPRs.
3039 2015-08-03 Richard Biener <rguenther@suse.de>
3041 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
3042 on the rhs of assignments first simplify the embedded
3045 2015-08-03 Richard Biener <rguenther@suse.de>
3047 PR tree-optimization/66917
3048 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
3050 (DR_VECT_AUX): New macro.
3051 (set_dr_misalignment): Adjust.
3052 (dr_misalignment): Likewise.
3053 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
3054 Compute whether the base is at least element aligned.
3055 * tree-vect-stmts.c (ensure_base_align): Adjust.
3056 (vectorizable_store): If the base is not element aligned
3057 preserve alignment of the original access if misalignment is unknown.
3058 (vectorizable_load): Likewise.
3060 2015-08-02 Martin Sebor <msebor@redhat.com>
3062 * c-family/c.opt (-Wframe-address): New warning option.
3063 * doc/invoke.texi (Wframe-address): Document it.
3064 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
3065 Clarify possible effects of calling the functions with non-zero
3066 arguments and mention -Wframe-address.
3067 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
3069 2015-08-01 Michael Collison <michael.collison@linaro.org
3070 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3072 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
3073 (*arm_umin_cmp): Likewise.
3075 2015-08-01 Caroline Tice <cmtice@google.com>
3078 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
3080 (vtbl_find_mangled_name): New function.
3081 (vtbl_register_mangled_name): New function.
3082 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
3083 mangled name in mangled name vectors.
3084 (find_or_create_vtbl_map_node): Ditto.
3085 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
3086 update recursion_depth on function entry; pass it to every recursive
3087 call; automatically exit if depth > 25 (give up looking at that point).
3088 (verify_bb_vtables): Initialize recursion_depth and pass it to
3089 var_is_used_for_virtual_call_p.
3090 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
3091 global variable decls.
3092 (vtbl_register_mangled_name): New extern function decl.
3094 2015-08-01 Tom de Vries <tom@codesourcery.com>
3096 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
3098 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
3100 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
3101 operation_no_trapping_overflow. Allow non-overflow operations.
3102 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
3105 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
3108 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
3110 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3112 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
3113 Enable for TARGET_32BIT.
3114 (*if_move_neg): Likewise.
3116 2015-07-31 Nick Clifton <nickc@redhat.com>
3118 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
3119 Returns true for __model__.
3120 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3122 2015-07-31 Alan Modra <amodra@gmail.com>
3125 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
3126 (rs6000_emit_prologue): Set it.
3127 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
3129 2015-07-31 Richard Biener <rguenther@suse.de>
3131 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
3132 -> X == (C1 ^ C2) which is already implemented in match.pd.
3133 Remove redundant dispatching to fold_relational_const.
3134 Move unordered self and NaN compares ...
3135 * match.pd: ... as patterns here. Remove some stray captures
3138 2015-07-31 Petr Murzin <petr.murzin@intel.com>
3140 * config/i386/i386.c
3141 (bdesc_special_args): Convert mask type from signed to unsigned for
3143 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
3144 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
3145 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
3146 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
3147 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
3148 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
3149 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
3150 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
3151 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
3152 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
3153 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
3154 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
3155 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
3156 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
3157 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
3158 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
3159 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
3160 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
3161 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
3162 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
3163 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
3164 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
3165 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
3166 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
3167 * config/i386/i386-builtin-types.def
3168 (V16QI_FTYPE_V16SI): Remove.
3169 (V8DF_FTYPE_V8SI): Ditto.
3170 (V8HI_FTYPE_V8DI): Ditto.
3171 (V8SI_FTYPE_V8DI): Ditto.
3172 (V8SF_FTYPE_V8DF): Ditto.
3173 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
3174 (V16HI_FTYPE_V16SI): Ditto.
3175 (V16SF_FTYPE_V16HI): Ditto.
3176 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
3177 (V16SF_FTYPE_V16SI): Ditto.
3178 (V4DI_FTYPE_V4DI): Ditto.
3179 (V16SI_FTYPE_V16SF): Ditto.
3180 (V16SF_FTYPE_FLOAT): Ditto.
3181 (V8DF_FTYPE_DOUBLE): Ditto.
3182 (V8DI_FTYPE_INT64): Ditto.
3183 (V8DI_FTYPE_V4DI): Ditto.
3184 (V16QI_FTYPE_V8DI): Ditto.
3185 (UINT_FTYPE_V4SF): Ditto.
3186 (UINT64_FTYPE_V4SF): Ditto.
3187 (UINT_FTYPE_V2DF): Ditto.
3188 (UINT64_FTYPE_V2DF): Ditto.
3189 (V16SI_FTYPE_V16SI): Ditto.
3190 (V8DI_FTYPE_V8DI): Ditto.
3191 (V16SI_FTYPE_PV4SI): Ditto.
3192 (V16SF_FTYPE_PV4SF): Ditto.
3193 (V8DI_FTYPE_PV2DI): Ditto.
3194 (V8DF_FTYPE_PV2DF): Ditto.
3195 (V4DI_FTYPE_PV2DI): Ditto.
3196 (V4DF_FTYPE_PV2DF): Ditto.
3197 (V16SI_FTYPE_PV2SI): Ditto.
3198 (V16SF_FTYPE_PV2SF): Ditto.
3199 (V8DI_FTYPE_PV4DI): Ditto.
3200 (V8DF_FTYPE_PV4DF): Ditto.
3201 (V8SF_FTYPE_FLOAT): Ditto.
3202 (V4SF_FTYPE_FLOAT): Ditto.
3203 (V4DF_FTYPE_DOUBLE): Ditto.
3204 (V8SF_FTYPE_PV4SF): Ditto.
3205 (V8SI_FTYPE_PV4SI): Ditto.
3206 (V4SI_FTYPE_PV2SI): Ditto.
3207 (V8SF_FTYPE_PV2SF): Ditto.
3208 (V8SI_FTYPE_PV2SI): Ditto.
3209 (V16SF_FTYPE_PV8SF): Ditto.
3210 (V16SI_FTYPE_PV8SI): Ditto.
3211 (V8DI_FTYPE_V8SF): Ditto.
3212 (V4DI_FTYPE_V4SF): Ditto.
3213 (V2DI_FTYPE_V4SF): Ditto.
3214 (V64QI_FTYPE_QI): Ditto.
3215 (V32HI_FTYPE_HI): Ditto.
3216 (V8UHI_FTYPE_V8UHI): Ditto.
3217 (V16UHI_FTYPE_V16UHI): Ditto.
3218 (V32UHI_FTYPE_V32UHI): Ditto.
3219 (V2UDI_FTYPE_V2UDI): Ditto.
3220 (V4UDI_FTYPE_V4UDI): Ditto.
3221 (V8UDI_FTYPE_V8UDI): Ditto.
3222 (V4USI_FTYPE_V4USI): Ditto.
3223 (V8USI_FTYPE_V8USI): Ditto.
3224 (V16USI_FTYPE_V16USI): Ditto.
3225 (V2DF_FTYPE_V2DF_UINT64): Ditto.
3226 (V2DI_FTYPE_V2DF_V2DF): Ditto.
3227 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
3228 (V8DF_FTYPE_V8DF_V8DI): Ditto.
3229 (V4SF_FTYPE_V4SF_UINT64): Ditto.
3230 (V4SI_FTYPE_V4SF_V4SF): Ditto.
3231 (V16SF_FTYPE_V16SF_V16SI): Ditto.
3232 (V64QI_FTYPE_V32HI_V32HI): Ditto.
3233 (V32HI_FTYPE_V16SI_V16SI): Ditto.
3234 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
3235 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
3236 (V32HI_FTYPE_V64QI_V64QI): Ditto.
3237 (V32HI_FTYPE_V32HI_V32HI): Ditto.
3238 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
3239 (V16SI_FTYPE_V16SI_V4SI): Ditto.
3240 (V16SI_FTYPE_V16SI_V16SI): Ditto.
3241 (V16SI_FTYPE_V32HI_V32HI): Ditto.
3242 (V16SI_FTYPE_V16SI_SI): Ditto.
3243 (V8DI_FTYPE_V8DI_V8DI): Ditto.
3244 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
3245 (V8DI_FTYPE_V16SI_V16SI): Ditto.
3246 (V8DI_FTYPE_V8DI_V2DI): Ditto.
3247 (QI_FTYPE_QI): Ditto.
3248 (SI_FTYPE_SI): Ditto.
3249 (DI_FTYPE_DI): Ditto.
3250 (QI_FTYPE_QI_QI): Ditto.
3251 (QI_FTYPE_QI_INT): Ditto.
3252 (HI_FTYPE_HI_INT): Ditto.
3253 (SI_FTYPE_SI_INT): Ditto.
3254 (DI_FTYPE_DI_INT): Ditto.
3255 (HI_FTYPE_V16QI_V16QI): Ditto.
3256 (SI_FTYPE_V32QI_V32QI): Ditto.
3257 (DI_FTYPE_V64QI_V64QI): Ditto.
3258 (QI_FTYPE_V8HI_V8HI): Ditto.
3259 (HI_FTYPE_V16HI_V16HI): Ditto.
3260 (SI_FTYPE_V32HI_V32HI): Ditto.
3261 (QI_FTYPE_V4SI_V4SI): Ditto.
3262 (QI_FTYPE_V8SI_V8SI): Ditto.
3263 (QI_FTYPE_V2DI_V2DI): Ditto.
3264 (QI_FTYPE_V4DI_V4DI): Ditto.
3265 (QI_FTYPE_V8DI_V8DI): Ditto.
3266 (HI_FTYPE_V16SI_V16SI): Ditto.
3267 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
3268 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
3269 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
3270 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
3271 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
3272 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
3273 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
3274 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
3275 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
3276 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
3277 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
3278 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
3279 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
3280 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
3281 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
3282 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
3283 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
3284 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
3285 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
3286 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
3287 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
3288 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
3289 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
3290 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
3291 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
3292 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
3293 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
3294 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
3295 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
3296 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
3297 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
3298 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
3299 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
3300 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
3301 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
3302 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
3303 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
3304 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
3305 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
3306 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
3307 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
3308 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
3309 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
3310 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
3311 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
3312 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
3313 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
3314 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
3315 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
3316 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
3317 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
3318 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
3319 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
3320 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
3321 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
3322 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
3323 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
3324 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
3325 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
3326 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
3327 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
3328 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
3329 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
3330 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
3331 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
3332 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
3333 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
3334 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
3335 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
3336 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
3337 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
3338 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
3339 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
3340 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
3341 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
3342 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
3343 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
3344 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
3345 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
3346 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
3347 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
3348 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
3349 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
3350 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
3351 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
3352 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
3353 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
3354 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
3355 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
3356 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
3357 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
3358 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
3359 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
3360 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
3361 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
3362 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
3363 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
3364 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
3365 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
3366 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
3367 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
3368 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
3369 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
3370 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
3371 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
3372 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
3373 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
3374 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
3375 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
3376 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
3377 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
3378 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
3379 (HI_FTYPE_HI): Ditto.
3380 (HI_FTYPE_V16QI): Ditto.
3381 (SI_FTYPE_V32QI): Ditto.
3382 (DI_FTYPE_V64QI): Ditto.
3383 (QI_FTYPE_V8HI): Ditto.
3384 (HI_FTYPE_V16HI): Ditto.
3385 (SI_FTYPE_V32HI): Ditto.
3386 (QI_FTYPE_V4SI): Ditto.
3387 (QI_FTYPE_V8SI): Ditto.
3388 (HI_FTYPE_V16SI): Ditto.
3389 (QI_FTYPE_V2DI): Ditto.
3390 (QI_FTYPE_V4DI): Ditto.
3391 (QI_FTYPE_V8DI): Ditto.
3392 (V16QI_FTYPE_HI): Ditto.
3393 (V32QI_FTYPE_SI): Ditto.
3394 (V64QI_FTYPE_DI): Ditto.
3395 (V8HI_FTYPE_QI): Ditto.
3396 (V16HI_FTYPE_HI): Ditto.
3397 (V32HI_FTYPE_SI): Ditto.
3398 (V4SI_FTYPE_QI): Ditto.
3399 (V4SI_FTYPE_HI): Ditto.
3400 (V8SI_FTYPE_QI): Ditto.
3401 (V8SI_FTYPE_HI): Ditto.
3402 (V2DI_FTYPE_QI): Ditto.
3403 (V4DI_FTYPE_QI): Ditto.
3404 (HI_FTYPE_HI_HI): Ditto.
3405 (SI_FTYPE_SI_SI): Ditto.
3406 (DI_FTYPE_DI_DI): Ditto.
3407 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
3408 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
3409 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
3410 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
3411 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
3412 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
3413 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
3414 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
3415 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
3416 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
3417 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
3418 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
3419 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
3420 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
3421 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
3422 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
3423 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
3424 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
3425 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
3426 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
3427 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
3428 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
3429 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
3430 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
3431 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
3432 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
3433 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
3434 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
3435 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
3436 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
3437 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
3438 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
3439 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
3440 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
3441 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
3442 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
3443 (V16SI_FTYPE_HI): Ditto.
3444 (V8DI_FTYPE_QI): Ditto.
3445 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
3446 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
3447 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
3448 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
3449 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
3450 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
3451 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
3452 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
3453 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
3454 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
3455 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
3456 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
3457 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
3458 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
3459 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
3460 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
3461 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
3462 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
3463 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
3464 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
3465 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
3466 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
3467 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
3468 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
3469 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
3470 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
3471 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
3472 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
3473 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
3474 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
3475 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
3476 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
3477 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
3478 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
3479 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
3480 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
3481 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
3482 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
3483 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
3484 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
3485 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
3486 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
3487 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
3488 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
3489 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
3490 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
3491 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
3492 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
3493 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
3494 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
3495 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
3496 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
3497 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
3498 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
3499 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
3500 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
3501 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
3502 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
3503 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
3504 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
3505 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
3506 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
3507 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
3508 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
3509 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
3510 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
3511 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
3512 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
3513 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
3514 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
3515 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
3516 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
3517 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
3518 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
3519 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
3520 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
3521 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
3522 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
3523 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
3524 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
3525 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
3526 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
3527 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
3528 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
3529 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
3530 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
3531 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
3532 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
3533 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
3534 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
3535 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
3536 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
3537 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
3538 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
3539 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
3540 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
3541 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
3542 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
3543 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
3544 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
3545 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
3546 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
3547 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
3548 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
3549 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
3550 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
3551 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
3552 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
3553 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
3554 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
3555 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
3556 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
3557 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
3558 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
3559 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
3560 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
3561 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
3562 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
3563 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
3564 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
3565 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
3566 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
3567 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
3568 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
3569 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
3570 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
3571 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
3572 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
3573 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
3574 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
3575 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
3576 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
3577 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
3578 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
3579 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
3580 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
3581 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
3582 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
3583 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
3584 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
3585 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
3586 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
3587 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
3588 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
3589 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
3590 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
3591 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
3592 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
3593 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
3594 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
3595 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
3596 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
3597 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
3598 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
3599 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
3600 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
3601 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
3602 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
3603 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
3604 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
3605 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
3606 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
3607 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
3608 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
3609 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
3610 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
3611 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
3612 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
3613 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
3614 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
3615 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
3616 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
3617 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
3618 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
3619 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
3620 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
3621 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
3622 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
3623 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
3624 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
3625 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
3626 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
3627 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
3628 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
3629 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
3630 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
3631 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
3632 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
3633 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
3634 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
3635 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
3636 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
3637 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
3638 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
3639 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
3640 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
3641 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
3642 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
3643 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
3644 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
3645 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
3646 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
3647 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
3648 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
3649 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
3650 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
3651 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
3652 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
3653 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
3654 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
3655 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
3656 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
3657 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
3658 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
3659 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
3660 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
3661 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
3662 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
3663 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
3664 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
3665 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
3666 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
3667 (QI_FTYPE_V8DF_INT_QI): Ditto.
3668 (QI_FTYPE_V4DF_INT_QI): Ditto.
3669 (QI_FTYPE_V2DF_INT_QI): Ditto.
3670 (HI_FTYPE_V16SF_INT_HI): Ditto.
3671 (QI_FTYPE_V8SF_INT_QI): Ditto.
3672 (QI_FTYPE_V4SF_INT_QI): Ditto.
3673 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
3675 2015-07-31 Richard Biener <rguenther@suse.de>
3677 * gimple-fold.c (fold_gimple_assign): Remove folding of
3680 2015-07-31 Tom de Vries <tom@codesourcery.com>
3682 PR tree-optimization/66846
3683 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
3684 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
3685 (expand_omp_target) [ENABLE_CHECKING]: Same.
3686 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
3687 cfun if !LOOPS_NEED_FIXUP.
3688 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
3689 that omp_for already has its own loop struct.
3690 * tree-parloops.c (create_phi_for_local_result)
3691 (create_call_for_reduction): Handle simple latch bb.
3692 (create_parallel_loop): Add simple latch bb to preserve
3693 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
3694 (gen_parallel_loop): Remove call to cancel_loop_tree.
3695 (parallelize_loops): Skip loops that are inner loops of parallelized
3697 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
3698 verify_loop_structure.
3700 2015-07-30 Anatoly Sokolov <aesok@post.ru>
3702 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
3703 * config/v850/v850.md (RV_REGNUM): New constants.
3704 * config/v850/v850.c (v850_libcall_value): New functions.
3705 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
3706 (TARGET_LIBCALL_VALUE): Define.
3708 2015-07-30 Anatoly Sokolov <aesok@post.ru>
3710 * rtl.h (lowpart_subreg): Move in file.
3711 * loop-iv.c (lowpart_subreg): Move to...
3712 * simplify-rtx.c (lowpart_subreg): ...here.
3713 (simplify_binary_operation_1): Use lowpart_subreg instead of
3714 simplify_gen_subreg.
3715 * expr.c (expand_expr_real_2): Ditto.
3716 * emit-rtl.c (gen_lowpart_common): Ditto.
3717 * combine.c (gen_lowpart_for_combine): Ditto.
3718 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
3719 expand_debug_source_expr): Ditto.
3721 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
3723 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
3724 (expand_builtin_atomic_clear): Remove support for atomic_clear
3727 2015-07-30 Richard Biener <rguenther@suse.de>
3729 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
3730 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
3731 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
3732 redundant operand canonicalization.
3734 2015-07-30 David Sherwood <david.sherwood@arm.com>
3736 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
3737 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
3738 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
3739 * config/arm/arm.c (neon_valid_immediate): Likewise.
3740 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
3741 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
3742 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
3743 (expand_vec_perm_vpshufb2_vpermq): Likewise.
3744 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
3745 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
3746 * config/i386/sse.md
3747 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
3748 (*ssse3_palignr<mode>_perm): Likewise.
3749 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
3750 * config/spu/spu.c (arith_immediate_p): Likewise.
3751 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3752 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
3754 2015-07-30 Richard Biener <rguenther@suse.de>
3756 * genmatch.c (decision_tree::gen_gimple): Merge with ...
3757 (decision_tree::gen_generic): ... this into ...
3758 (decision_tree::gen): ... this.
3759 (main): Adjust callers.
3761 2015-07-30 Richard Biener <rguenther@suse.de>
3763 * genmatch.c (verbose): New global.
3764 (warning_at): Add overload with source_location.
3765 (capture_info::capture_info): Add bool whether generating gimple
3766 or generic. Add gimple member.
3767 (capture_info::cinfo): Add capture member.
3768 (capture_info::walk_match): Record capture. Warn on
3770 (capture_info::walk_c_expr): Add more fragments captures cannot
3771 escape through. Warn on escaped captures.
3772 (dt_simplify::gen_1): Warn on operands we force to have no
3774 (main): Initialize verbose.
3775 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
3777 2015-07-30 Richard Biener <rguenther@suse.de>
3780 * match.pd: Allow both operands to independently have conversion
3781 when simplifying compares of addresses.
3783 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
3787 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
3788 around those cases that need one.
3790 2015-07-29 Aditya Kumar <hiraditya@msn.com>
3792 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
3794 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
3796 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
3797 New. Copied from config/i386/gnu-user.h.
3798 (ASM_COMMENT_START): Likewise.
3799 (DBX_REGISTER_NUMBER): Likewise.
3801 2015-07-29 Richard Biener <rguenther@suse.de>
3803 * gimple-fold.c (fold_gimple_cond): Remove.
3804 (fold_stmt_1): Do not call it.
3806 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
3808 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
3809 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
3811 * config/aarch64/aarch64-modes.def: Add HFmode.
3813 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
3814 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
3816 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
3817 aarch64_promoted_type): New.
3819 (aarch64_float_const_representable_p): Disable HFmode.
3820 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
3821 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
3822 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
3824 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
3825 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
3827 * config/aarch64/iterators.md (GPF_F16): New.
3829 2015-07-29 Richard Biener <rguenther@suse.de>
3831 * match.pd: Merge address comparison patterns and make them
3832 handle some more cases.
3834 2015-07-29 Richard Biener <rguenther@suse.de>
3836 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
3837 (parser::parse_capture): Add bool argument on whether to reject
3839 (parser::parse_expr): Adjust.
3840 (parser::parse_op): Likewise.
3841 (parser::parse_pattern): Likewise.
3843 2015-07-29 Richard Biener <rguenther@suse.de>
3845 * gimple-fold.c (has_use_on_stmt): New function.
3846 (replace_stmt_with_simplification): Use it to allow
3847 abnormals originally referenced in the stmt.
3848 (fold_stmt_1): Canonicalize operand order.
3850 2015-07-28 David Sherwood <david.sherwood@arm.com>
3852 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
3853 GET_MODE_INNER unconditionally.
3854 * config/spu/spu.c (arith_immediate_p): Likewise.
3855 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
3856 * expmed.c (synth_mult): Remove check for VOIDmode result from
3858 (expand_mult_const): Likewise.
3859 * fold-const.c (fold_binary_loc): Replace call to element_precision
3860 with call to GET_MODE_PRECISION.
3861 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
3863 (emit_mode_inner): Likewise.
3864 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
3866 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
3867 (GET_MODE_UNIT_PRECISION): Likewise.
3868 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
3869 * simplify-rtx.c (simplify_immed_subreg): Likewise.
3870 * stor-layout.c (bitwise_type_for_mode): Update assert.
3871 (element_precision): Remove.
3873 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
3875 * target-insns.def (reload_load_address): New targetm instruction
3877 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
3879 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
3881 * target-insns.def (atomic_test_and_set): New targetm instruction
3883 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
3884 HAVE_*/gen_* interface.
3886 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
3888 * target-insns.def (can_extend, ptr_extend): New targetm instruction
3890 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
3891 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3892 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
3893 * rtlanal.c (nonzero_bits1): Likewise.
3894 (num_sign_bit_copies1): Likewise.
3896 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
3898 * target-insns.def (eh_return): New targetm instruction pattern.
3899 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
3901 * function.c (thread_prologue_and_epilogue_insns): Remove
3902 preprocessor condition.
3904 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
3906 * target-insns.def (indirect_jump): New targetm instruction pattern.
3907 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
3910 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
3912 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
3913 instead of nonimmediate_operand. Remove C condiition.
3915 2015-07-28 Richard Biener <rguenther@suse.de>
3917 * match.pd: Add more simplification of address comparisons.
3919 2015-07-28 Richard Biener <rguenther@suse.de>
3921 * match.pd: Re-order two cases in comparison with max/min
3922 value simplification to make it apply for bools.
3924 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3926 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
3927 Handle simple SIGN_EXTEND or ZERO_EXTEND.
3928 (aarch64_rtx_costs): Properly strip extend or extract before
3929 passing down to rtx costs again.
3931 2015-07-28 Nick Clifton <nickc@redhat.com>
3933 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
3934 Optimizes the case where -mes0 is active and a constant symbolic
3936 * config/rl78/rl78-protos.h: Prototype the new function.
3937 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
3939 2015-07-28 Tom de Vries <tom@codesourcery.com>
3941 * tree-parloops.c (reduc_stmt_res): New function.
3942 (initialize_reductions, add_field_for_reduction)
3943 (create_phi_for_local_result, create_loads_for_reductions)
3944 (create_stores_for_reduction, build_new_reduction): Handle case that
3945 reduc_stmt is a phi.
3946 (gather_scalar_reductions): Allow double_reduc reductions.
3948 2015-07-28 Richard Biener <rguenther@suse.de>
3950 * fold-const.c (fold_comparison): Remove equality folding
3951 of decl addresses ...
3952 * match.pd: ... here and merge with existing pattern.
3954 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
3956 PR tree-optimization/66828
3957 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
3958 from int64_t to uint64_t.
3960 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
3962 * opts-common.c (read_cmdline_option): List DriverOnly enum values
3963 as valid only in the error message of the driver, not in the
3964 messages of the language compilers.
3966 2015-07-27 Tom de Vries <tom@codesourcery.com>
3968 * tree-parloops.c (gather_scalar_reductions): Simplify function
3971 2015-07-27 Marek Polacek <polacek@redhat.com>
3973 * ipa-devirt.c (types_same_for_odr): Fix typo.
3975 2015-07-27 Jason Merrill <jason@redhat.com>
3978 * dwarf2out.c (gen_inlined_subroutine_die): Check
3979 cgraph_function_possibly_inlined_p.
3981 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
3983 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
3984 Place integer variant first.
3985 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
3987 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
3990 * config/arm/arm-builtins.c (enum arm_builtins):
3991 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
3992 (ARM_BUILTIN_NEON_BASE): Rename macro to....
3993 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
3994 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
3995 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
3997 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
4000 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
4001 Add qualifier_lane_index.
4002 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
4003 (arm_getlane_qualifiers): Use qualifier_lane_index.
4004 (arm_lanemac_qualifiers): Rename to...
4005 (arm_mac_n_qualifiers): ...this.
4006 (LANEMAC_QUALIFIERS): Rename to...
4007 (MAC_N_QUALIFIERS): ...this.
4008 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
4009 (arm_setlane_qualifiers): Use qualifier_lane_index.
4010 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
4011 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
4012 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
4013 (arm_expand_neon_builtin): Handle qualifier_lane_index.
4015 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
4016 * config/arm/arm.c (bounds_check): Likewise, improve error message.
4017 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
4018 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
4019 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
4020 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
4021 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
4022 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
4023 qualifiers to TERNOP_IMM.
4024 (vdup_lane): Change qualifiers to GETLANE.
4025 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
4026 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
4027 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
4028 vqdmlsl_n): Change qualifiers to MAC_N.
4030 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
4031 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
4032 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
4033 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
4034 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
4035 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
4036 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
4037 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
4038 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
4039 Remove call to neon_lane_bounds.
4041 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
4043 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
4044 Place integer variant first.
4046 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
4048 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
4049 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
4050 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
4051 for armv6kz targets.
4052 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
4053 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
4054 (FL_FOR_ARCH6ZK): Remove.
4055 (FL_FOR_ARCH6KZ): New.
4056 (arm_arch6zk): New declaration.
4057 * config/arm/arm-tables.opt: Regenerate.
4058 * config/arm/arm.c (arm_arch6kz): New.
4059 (arm_option_override): Set arm_arch6kz.
4060 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
4061 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
4062 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
4064 2015-07-27 Marek Polacek <polacek@redhat.com>
4068 * doc/invoke.texi: Document -Wtautological-compare.
4070 2015-07-27 Richard Biener <rguenther@suse.de>
4072 * genmatch.c (decision_tree::gen_gimple): Split out large
4073 subtrees into separate functions.
4074 (decision_tree::gen_generic): Likewise.
4076 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
4078 * config/alpha/alpha.c: Use SUBREG_P predicate.
4079 * config/alpha/predicates.md: Ditto.
4081 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
4083 * config.host (s390*-*-*): Include driver-native.c only when
4084 building with s390* as host *and* target.
4086 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
4089 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
4090 T bit register modified_between_p check.
4092 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
4094 * config/i386/i386.c: Use SUBREG_P predicate.
4095 * config/i386/i386.md: Ditto.
4096 * config/i386/sse.md: Ditto.
4097 * config/i386/predicates.md: Ditto.
4099 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
4102 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
4103 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
4105 2015-07-25 Sebastian Pop <s.pop@samsung.com>
4107 * Makefile.in: Remove use of TREEBROWSER.
4108 * config.in: Regenerated.
4109 * configure: Regenerated.
4110 * configure.ac: Remove definition of TREEBROWSER.
4111 * tree-browser.c: Removed.
4112 * tree-browser.def: Removed.
4114 2015-07-25 Sebastian Pop <s.pop@samsung.com>
4116 * graphite-scop-detection.c: Include gimple-pretty-print.h.
4117 (stmt_simple_for_scop_p): Print when a stmt is not handled in
4119 (scopdet_basic_block_info): Print when a loop or bb cannot be
4120 represented in Graphite.
4122 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
4125 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
4126 execution guard when min_size is less than size_needed.
4128 2015-07-25 Sebastian Pop <s.pop@samsung.com>
4130 * doc/install.texi: Document supported versions of ISL.
4132 2015-07-25 Jeff Law <law@redhat.com>
4136 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
4137 unable to find X NE 0 in the tables, return X as the simplified
4139 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
4140 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
4142 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
4143 after removing the control flow statement and unnecessary edges.
4145 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
4148 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
4150 PR rtl-optimization/64164
4151 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4152 * tree-ssa-copyrename.c: Removed.
4153 * opts.c (default_options_table): Drop -ftree-copyrename. Add
4154 -ftree-coalesce-vars.
4155 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4156 * common.opt (ftree-copyrename): Ignore.
4157 (ftree-coalesce-inlined-vars): Likewise.
4158 * doc/invoke.texi: Remove the ignored options above.
4159 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4160 * tree-ssa-coalesce.h: ... here.
4161 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4162 headers required by it.
4163 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4164 across variables when flag_tree_coalesce_vars. Check register
4165 use and promoted modes to allow coalescing. Moved to
4166 tree-ssa-coalesce.c.
4167 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4168 with its member functions to tree-ssa-coalesce.c.
4169 (var_map_base_init): Likewise. Renamed to
4170 compute_samebase_partition_bases.
4171 (partition_view_normal): Drop want_bases parameter.
4172 (partition_view_bitmap): Likewise.
4173 * tree-ssa-live.h: Adjust declarations.
4174 * tree-ssa-coalesce.c: Include explow.h.
4175 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4176 default defs at the entry point.
4177 (dump_part_var_map): New.
4178 (compute_optimized_partition_bases): New, called by...
4179 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4180 of compute_samebase_partition_bases. Adjust.
4181 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4182 * cfgexpand.c (leader_merge): New.
4183 (get_rtl_for_parm_ssa_default_def): New.
4184 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4185 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4186 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4187 redundant MEM attr setting.
4188 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4190 (expand_one_stack_var): ... this. New wrapper to check and
4191 skip already expanded SSA partitions.
4192 (record_alignment_for_reg_var): New, factored out of...
4193 (expand_one_var): ... this.
4194 (expand_one_ssa_partition): New.
4195 (adjust_one_expanded_partition_var): New.
4196 (expand_one_register_var): Check and skip already expanded SSA
4198 (expand_used_vars): Don't create DECLs for anonymous SSA
4199 names. Expand all SSA partitions, then adjust all SSA names.
4200 (pass::execute): Replace the loops that set
4201 SA.partition_to_pseudo from partition leaders and cleared
4202 DECL_RTL for multi-location variables, and that which used to
4203 rename vars and set attrs, with one that clears DECL_RTL and
4204 checks that PARMs and RESULTs default_defs match DECL_RTL.
4205 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4206 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4207 * explow.c (promote_ssa_mode): New.
4208 * explow.h (promote_ssa_mode): Declare.
4209 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4210 * function.c: Include cfgexpand.h.
4211 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4212 (use_register_for_parm_decl): Wrapper for the above to
4213 special-case the result_ptr.
4214 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4215 (split_complex_args): Take assign_parm_data_all argument.
4216 Pass it to rtl_for_parm. Set up rtl and context for split
4218 (assign_parms_augmented_arg_list): Adjust.
4219 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4220 multiple locations. Recognize split complex args.
4221 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4222 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
4223 (assign_parm_setup_block): Prefer SSA-assigned location.
4224 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
4225 if stack_parm is NULL.
4226 (assign_parm_setup_stack): Prefer SSA-assigned location.
4227 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
4228 rtl before testing for pointer bounds. Special-case result_ptr.
4229 (expand_function_start): Maybe reset DECL_RTL of result.
4230 Prefer SSA-assigned location for result and static chain.
4231 Factor out DECL_RESULT and SET_DECL_RTL.
4232 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4233 anonymous SSA names. Use promote_ssa_mode.
4234 (get_temp_reg): Likewise.
4235 (remove_ssa_form): Adjust.
4236 * stor-layout.c (layout_decl): Don't set mem attributes of
4238 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4239 and get its reg_usage for reg invalidation.
4240 (compute_bb_dataflow): Pass it insn.
4241 (emit_notes_in_bb): Likewise.
4243 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
4245 * config/i386/i386.c (ix86_va_start): Remove
4246 unneeded !TARGET_64BIT check.
4247 (ix86_gimplify_va_arg): Ditto.
4249 2015-07-24 Tom de Vries <tom@codesourcery.com>
4251 * graphite-sese-to-poly.c (build_poly_scop): Always call
4252 rewrite_commutative_reductions_out_of_ssa.
4254 2015-07-24 Tom de Vries <tom@codesourcery.com>
4256 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
4257 flag_associative_math to FLOAT_TYPE_P. Honour
4258 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
4260 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
4263 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
4264 and "%qD" in warning_at instead of "%q+D" in warning.
4266 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
4268 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
4269 (ix86_function_abi): Cleanup.
4271 2015-07-24 Michael Darling <darlingm@gmail.com>
4274 * acinclude.m4: Reflects renaming of configure.in to configure.ac
4275 * configure: Likewise
4276 * configure.ac: Likewise
4277 * doc/install.texi: Likewise
4278 * doc/tm.texi: Likewise
4279 * doc/tm.texi.in: Likewise
4281 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4283 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
4284 manually swapping values.
4285 * cse.c (fold_rtx): Likewise.
4286 * lra-eliminations.c (form_sum): Likewise.
4288 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
4291 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
4292 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
4293 (*jcc_1, *jcc_2, jump, simple_return_internal)
4294 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
4295 Set length_nobnd attribute instead of length attribute.
4296 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
4297 (length_nobnd): Remove attribute.
4298 (length): Remove length_nobnd processing.
4300 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
4302 * gimplify.c (omp_default_clause): New function. Reorganize flow
4303 for clarity. Broken out of ...
4304 (omp_notice_variable): ... here.
4306 2015-07-24 Gary Funck <gary@intrepid.com>
4309 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
4310 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
4312 2015-07-24 Tom de Vries <tom@codesourcery.com>
4314 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
4315 exit-first loop transform.
4317 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
4320 * tree-cfg.c (struct replace_decls_d): New struct.
4321 (replace_block_vars_by_duplicates_1): New function.
4322 (replace_block_vars_by_duplicates): Use it to replace the decls
4323 in the value exprs by duplicates.
4325 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
4327 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
4328 -shared, -symbolic, -rdynamic.
4330 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
4333 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
4334 -dynamic-linker within %{!static %{!shared, and -rdynamic within
4337 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
4340 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
4341 edge summary is available.
4343 2015-07-24 Richard Biener <rguenther@suse.de>
4345 * genmatch.c (struct dt_node): Add statistic fields.
4346 (dt_node::analyze): New method.
4347 (decision_tree::gen_gimple): Call analyze on the root node
4348 and print statistics to stderr.
4349 (decision_tree::gen_generic): Likewise.
4351 2015-07-24 Richard Biener <rguenther@suse.de>
4353 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
4354 against the highest or lowest possible integer ...
4355 * match.pd: ... as patterns here.
4357 2015-07-24 Richard Biener <rguenther@suse.de>
4359 * genmatch.c (struct capture_info): Add same_as field.
4360 (capture_info::capture_info): Initialize same_as.
4361 (capture_info::walk_match): Compute same_as.
4362 (capture_info::walk_result): Compute stuff for the leader.
4363 (capture_info::walk_c_expr): Likewise.
4364 (dt_simplify::gen_1): Only look at leaders when deciding
4365 to force no side-effects or emit side-effects of omitted operands.
4367 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4369 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
4370 reg note to the GPR -> FPR save instructions.
4372 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4374 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
4376 (s390_expand_insv): Don't generate risbg pattern for constant zero
4378 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
4379 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
4382 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
4384 * config/s390/s390.c (s390_reorg): Clean up handling of processors
4387 (s390_issue_rate): Likewise.
4388 (s390_sched_reorder): Likewise.
4389 (s390_sched_variable_issue): Likewise.
4390 (s390_loop_unroll_adjust): Likewise.
4391 (s390_option_override): Likewise.
4393 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
4395 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
4396 processor capabilities with -march=native.
4397 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
4398 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
4399 (S390_TARGET_BITS_STRING): Macro to simplify specs.
4401 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
4403 * config/s390/s390.c (s390_issue_rate): Handle
4404 PROCESSOR_2094_Z9_EC.
4405 (s390_option_override): Likewise.
4406 (s390_adjust_priority): Likewise.
4408 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
4410 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
4411 when cross compiling.
4413 2015-07-24 Richard Biener <rguenther@suse.de>
4415 * fold-const.c (maybe_canonicalize_comparison_1): Move
4416 A code CST canonicalization ...
4417 * match.pd: ... to a pattern here.
4419 2015-07-24 Jiong Wang <jiong.wang@arm.com>
4422 2015-07-22 Jiong Wang <jiong.wang@arm.com>
4424 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
4425 (HONOR_REG_ALLOC_ORDER): Define.
4427 2015-07-24 Richard Biener <rguenther@suse.de>
4429 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
4430 * fold-const.c (fold_comparison): Move parameter does not
4431 alias &local simplification ...
4432 * match.pd: ... as a pattern here.
4434 2015-07-24 Richard Biener <rguenther@suse.de>
4436 * gimple-fold.c (replace_stmt_with_simplification): Special-case
4437 valueizing call operands.
4438 * gimple-match-head.c (maybe_push_res_to_seq): Take
4439 number of call arguments from ops array.
4440 (do_valueize): New function.
4441 (gimple_simplify): Return true if valueization changed
4442 any operand even if the result didn't simplify further.
4444 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4447 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
4449 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4452 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
4454 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
4456 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
4459 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
4461 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
4464 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
4466 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
4467 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
4469 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
4470 ms_va_list_type_node initialization.
4472 2015-07-23 Jeff Law <law@redhat.com>
4475 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
4476 unable to find X NE 0 in the tables, return X as the simplified
4478 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
4479 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
4481 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
4482 after removing the control flow statement and unnecessary edges.
4484 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
4486 * tree-pass.h (get_current_pass_name): Removed.
4488 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
4490 PR rtl-optimization/64164
4491 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4492 * tree-ssa-copyrename.c: Removed.
4493 * opts.c (default_options_table): Drop -ftree-copyrename. Add
4494 -ftree-coalesce-vars.
4495 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4496 * common.opt (ftree-copyrename): Ignore.
4497 (ftree-coalesce-inlined-vars): Likewise.
4498 * doc/invoke.texi: Remove the ignored options above.
4499 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4500 * tree-ssa-coalesce.h: ... here.
4501 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4502 headers required by it.
4503 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4504 across variables when flag_tree_coalesce_vars. Check register
4505 use and promoted modes to allow coalescing. Moved to
4506 tree-ssa-coalesce.c.
4507 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4508 with its member functions to tree-ssa-coalesce.c.
4509 (var_map_base_init): Likewise. Renamed to
4510 compute_samebase_partition_bases.
4511 (partition_view_normal): Drop want_bases parameter.
4512 (partition_view_bitmap): Likewise.
4513 * tree-ssa-live.h: Adjust declarations.
4514 * tree-ssa-coalesce.c: Include explow.h.
4515 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4516 default defs at the entry point.
4517 (dump_part_var_map): New.
4518 (compute_optimized_partition_bases): New, called by...
4519 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4520 of compute_samebase_partition_bases. Adjust.
4521 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4522 * cfgexpand.c (leader_merge): New.
4523 (get_rtl_for_parm_ssa_default_def): New.
4524 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4525 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4526 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4527 redundant MEM attr setting.
4528 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4530 (expand_one_stack_var): ... this. New wrapper to check and
4531 skip already expanded SSA partitions.
4532 (record_alignment_for_reg_var): New, factored out of...
4533 (expand_one_var): ... this.
4534 (expand_one_ssa_partition): New.
4535 (adjust_one_expanded_partition_var): New.
4536 (expand_one_register_var): Check and skip already expanded SSA
4538 (expand_used_vars): Don't create DECLs for anonymous SSA
4539 names. Expand all SSA partitions, then adjust all SSA names.
4540 (pass::execute): Replace the loops that set
4541 SA.partition_to_pseudo from partition leaders and cleared
4542 DECL_RTL for multi-location variables, and that which used to
4543 rename vars and set attrs, with one that clears DECL_RTL and
4544 checks that PARMs and RESULTs default_defs match DECL_RTL.
4545 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4546 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4547 * explow.c (promote_ssa_mode): New.
4548 * explow.h (promote_ssa_mode): Declare.
4549 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4550 * function.c: Include cfgexpand.h.
4551 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4552 (use_register_for_parm_decl): Wrapper for the above to
4553 special-case the result_ptr.
4554 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4555 (split_complex_args): Take assign_parm_data_all argument.
4556 Pass it to rtl_for_parm. Set up rtl and context for split
4558 (assign_parms_augmented_arg_list): Adjust.
4559 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4560 multiple locations. Recognize split complex args.
4561 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4562 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
4563 (assign_parm_setup_block): Prefer SSA-assigned location.
4564 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
4565 if stack_parm is NULL.
4566 (assign_parm_setup_stack): Prefer SSA-assigned location.
4567 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
4568 rtl before testing for pointer bounds. Special-case result_ptr.
4569 (expand_function_start): Maybe reset DECL_RTL of result.
4570 Prefer SSA-assigned location for result and static chain.
4571 Factor out DECL_RESULT and SET_DECL_RTL.
4572 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4573 anonymous SSA names. Use promote_ssa_mode.
4574 (get_temp_reg): Likewise.
4575 (remove_ssa_form): Adjust.
4576 * stor-layout.c (layout_decl): Don't set mem attributes of
4578 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4579 and get its reg_usage for reg invalidation.
4580 (compute_bb_dataflow): Pass it insn.
4581 (emit_notes_in_bb): Likewise.
4583 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
4586 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
4588 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
4589 (rs6000_emit_2insn_and): Handle dot forms.
4590 * config/rs6000/rs6000.md (and<mode>3): Adjust.
4591 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
4592 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
4594 2015-07-23 Richard Biener <rguenther@suse.de>
4596 * generic-match-head.c: Include cgraph.h.
4597 * gimple-match-head.c: Likewise.
4598 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
4600 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
4601 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
4604 2015-07-23 Richard Biener <rguenther@suse.de>
4606 * gimple-fold.c (fold_gimple_cond): Do not require folding
4607 results to pass valid_gimple_rhs_p.
4608 * tree-cfg.h (fold_cond_expr_cond): Remove.
4609 * tree-cfg.c (fold_cond_expr_cond): Likewise.
4610 (make_edges): Do not call it.
4611 * tree-inline.c (tree_function_versioning): Likewise.
4613 2015-07-23 Tom de Vries <tom@codesourcery.com>
4615 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
4616 vect_force_simple_reduction.
4617 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
4618 (vect_is_simple_reduction_1): Add and handle
4619 need_wrapping_integral_overflow parameter.
4620 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
4621 need_wrapping_integral_overflow parameter.
4622 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
4623 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
4626 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
4628 PR tree-optimization/66926,66951
4629 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
4630 INNER_LOOP and fix up condition for renaming virtual operands.
4632 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4634 * combine.c (try_combine): Use std::swap instead of manually
4637 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
4639 * config/mips/i6400.md: New file.
4640 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
4641 (mips64r6): Likewise.
4643 * config/mips/mips-tables.opt: Regenerate.
4644 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
4645 (mips_issue_rate): Add support for i6400.
4646 (mips_multipass_dfa_lookahead): Likewise.
4647 * config/mips/mips.h (TUNE_I6400): Define.
4648 * config/mips/mips.md: Include i6400.md.
4649 (processor): Add i6400.
4650 * doc/invoke.texi (-march=@var{arch}): Add i6400.
4652 2015-07-23 Richard Biener <rguenther@suse.de>
4655 * match.pd: Guard widen and sign-change comparison simplification
4658 2015-07-23 Richard Biener <rguenther@suse.de>
4660 PR tree-optimization/66945
4661 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
4662 ::before_dom_children): Force the propagators idea of
4663 non-executable edges to materialize, not what the folder
4666 2015-07-23 Richard Biener <rguenther@suse.de>
4668 * gimple.h (gimple_cond_make_false): Use 0 != 0.
4669 (gimple_cond_make_true): Use 1 != 0.
4671 2015-07-22 DJ Delorie <dj@redhat.com>
4673 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
4676 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
4677 (ashrhi3): Likewise.
4678 (lshrhi3): Likewise.
4679 (movhi): Take advantage of zero-extend to load small constants.
4681 (and<mode>3): Likewise.
4682 (zero_extendqihi2): Likewise.
4683 (zero_extendqisi2): New.
4684 * config/msp430/constraints.md (N,O): New.
4685 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
4687 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
4690 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
4691 to enum feature_priority and feature_list.
4692 (fold_builtin_cpu): Add F_AES to enum processor_features
4693 and isa_names_table.
4695 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
4698 * config/i386/linux-common.h (MPX_SPEC): Use linker option
4699 for 64bit target only.
4701 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
4703 * config/nvptx/nvptx.c: Expand some comments.
4705 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
4707 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
4708 (cortex_a53_advsimd): ...This.
4710 2015-07-22 Richard Biener <rguenther@suse.de>
4712 * genmatch.c (expr::gen_transform): Clarify error message
4713 and display location.
4715 2015-07-22 Richard Biener <rguenther@suse.de>
4717 * genmatch.c (struct operand): Add location member.
4718 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
4720 (struct simplify): Remove match_location and result_location
4722 (elsehwere): Adjust.
4724 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
4726 * config/mips/m5100.md: New file.
4727 * config/mips/mips-cpus.def (m5100, m5101): Define.
4728 * config/mips/mips-tables.opt: Regenerate.
4729 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
4730 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
4731 -march=m5101 to -mips32r5.
4732 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
4733 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
4735 * config/mips/mips.md: Include m5100.md.
4736 (processor): Add m5100.
4737 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
4739 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
4741 * config/mips/mips-cpus.def (interaptiv): Define.
4742 * config/mips/mips-tables.opt: Regenerate.
4743 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
4745 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
4746 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
4748 2015-07-22 Jiong Wang <jiong.wang@arm.com>
4751 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
4752 (HONOR_REG_ALLOC_ORDER): Define.
4754 2015-07-22 Richard Biener <rguenther@suse.de>
4756 PR tree-optimization/66952
4757 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
4758 blocks we end up executing unconditionally reset all SSA
4759 info such as range and alignment.
4760 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
4761 * tree-ssanames.c (reset_flow_sensitive_info): New function.
4763 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
4765 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
4768 2015-07-22 Richard Biener <rguenther@suse.de>
4770 * genmatch.c (parser::parse_result): Properly handle
4771 match with result operands and conditions.
4773 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
4776 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
4777 Add qualifier_struct_load_store_lane_index.
4778 (aarch64_types_loadstruct_lane_qualifiers): Use
4779 qualifier_struct_load_store_lane_index for lane index argument for
4781 (aarch64_types_storestruct_lane_qualifiers): Ditto.
4782 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4783 (aarch64_simd_expand_args): Add new argument describing mode of
4784 builtin. Check lane bounds for arguments with
4785 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4786 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
4787 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4788 (aarch64_simd_expand_builtin): Handle arguments with
4789 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
4790 aarch64_simd_expand_args.
4791 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
4792 vst[234]_lane with BUILTIN_VALLDIF.
4793 * config/aarch64/aarch64-simd.md:
4794 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
4795 endianness reversal on lane index.
4796 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
4797 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
4798 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
4799 (vec_store_lanesci_lane<mode>): Ditto.
4800 (vec_store_lanesxi_lane<mode>): Ditto.
4801 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
4802 reversal of lane index.
4803 (aarch64_ld3_lane<mode>): Ditto.
4804 (aarch64_ld4_lane<mode>): Ditto.
4805 (aarch64_st2_lane<mode>): Ditto.
4806 (aarch64_st3_lane<mode>): Ditto.
4807 (aarch64_st4_lane<mode>): Ditto.
4808 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
4809 to qmode. Add new mode parameter. Update uses.
4810 (__LD3_LANE_FUNC): Ditto.
4811 (__LD4_LANE_FUNC): Ditto.
4812 (__ST2_LANE_FUNC): Ditto.
4813 (__ST3_LANE_FUNC): Ditto.
4814 (__ST4_LANE_FUNC): Ditto.
4816 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
4818 * doc/invoke.texi (Language Independent Options): Rename node to
4819 Diagnostic Message Formatting Options.
4821 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
4824 * lra-remat.c (operand_to_remat): Prevent using insns with input
4825 subregs processed separately by IRA.
4827 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
4829 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
4831 (single_imm_use): Check for iterator node.
4832 (num_imm_uses): Likewise.
4833 * tree-ssa-operands.c (has_zero_uses_1): Delete.
4834 (single_imm_use_1): Check for iterator node.
4836 2015-07-21 Mike Frysinger <vapier@gentoo.org>
4837 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4839 * configure.ac: Add check for new options in isl-0.15.
4840 * config.in, configure: Rebuilt.
4841 * graphite-blocking.c: Include <isl/constraint.h>
4842 * graphite-interchange.c, graphite-poly.c: Likewise.
4843 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
4844 * graphite.c: Likewise.
4845 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
4847 * graphite-dependences.c: Include <isl/constraint.h>.
4848 (max_number_of_out_dimensions): Returns isl_stat.
4849 (extend_schedule_1): Likewise
4850 (extend_schedule): Corresponding changes.
4851 * graphite-optimize-isl.c: Include <isl/constraint.h> and
4853 (getSingleMap): Change return type of isl_stat.
4854 (optimize_isl): Conditionally use
4855 isl_options_set_schedule_serialize_sccs.
4856 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
4857 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
4859 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
4862 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
4863 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
4865 2015-07-21 Richard Biener <rguenther@suse.de>
4867 PR tree-optimization/66948
4868 * genmatch.c (capture_info::walk_match): Also recurse to
4869 captures. Properly compute expr state from captures of
4871 * match.pd: Add single-use guards to
4872 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
4874 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
4876 * config/nvptx/mkoffload.c (process): Add static destructor call.
4878 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4881 * match.pd (A - B -> A + (-B)): Don't allow folding
4882 when type if a fixed-point type.
4884 2015-07-20 DJ Delorie <dj@redhat.com>
4886 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
4887 (iorqi3_real): Likewise for set1.
4889 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
4891 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
4894 2015-07-20 Aditya Kumar <hiraditya@msn.com>
4896 * graphite-isl-ast-to-gimple.c:
4897 Refactor so that each function can access 'region'. This will help
4898 maintain a parameter rename_map within a region.
4900 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4902 * config/rs6000/rs6000.md (*lt0_disi): New.
4904 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4907 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
4908 "available letters" comment.
4909 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
4910 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
4911 and_2rld_operand): Delete.
4912 (and_operand): Adjust.
4913 (rotate_mask_operator): New.
4914 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
4915 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
4916 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
4917 extract_ME): Delete.
4918 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
4919 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
4920 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
4921 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
4922 rs6000_emit_2insn_and): New.
4923 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
4924 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
4925 includes_rldic_lshift_p, includes_rldicr_lshift_p,
4926 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
4927 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
4928 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
4929 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
4930 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
4931 rs6000_emit_2insn_and): New.
4932 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
4933 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
4935 <NOT>: Don't fall through to next case.
4936 <AND>: Handle the various rotate-and-mask cases directly.
4937 <IOR>: Always cost as one insn.
4938 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
4939 (and<mode>3): Adjust expander for the new patterns.
4940 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
4941 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
4942 (*and<mode>3_imm_dot_shifted): New.
4943 (*and<mode>3_mask): Delete, rewrite as ...
4944 (and<mode>3_mask): ... New.
4945 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
4946 (andsi3_internal0_nomc): Delete.
4947 (*andsi3_internal6): Delete.
4948 (*and<mode>3_2insn): New.
4949 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
4950 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
4951 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
4952 *insvdi_internal3): Delete.
4953 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
4954 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
4955 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
4956 *ior<mode>_mask): New.
4957 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
4958 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
4959 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
4960 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
4962 (ashr<mode>3): Delete expander.
4963 (*ashr<mode>3): Rename to ...
4964 (ashr<mode>3): ... This.
4965 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
4966 (*rotldi3_internal4, *rotldi3_internal5 and split,
4967 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
4968 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
4969 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
4970 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
4971 (splitter for loading a mask): Adjust.
4972 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
4974 2015-07-20 Marek Polacek <polacek@redhat.com>
4976 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
4977 output_add_clobbers, output_added_clobbers_hard_reg_p,
4978 gen_rtx_scratch): Remove declarations.
4980 2015-07-20 Marek Polacek <polacek@redhat.com>
4983 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
4985 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4987 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
4988 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
4990 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4992 * combine.c (combine_simplify_rtx): Move simplification step
4993 before various transformations/substitutions.
4995 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
4997 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
4998 (struct int_traits): Likewise.
5000 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5002 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
5003 function to vmsdbgout_function_decl.
5005 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
5008 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
5009 from misaligned positions.
5010 (ix86_expand_pinsr): Reject insertions to misaligned positions.
5012 2015-07-18 Sebastian Pop <s.pop@samsung.com>
5016 * Makefile.in: Removed omega.o.
5017 * common.opt: Document flag fcheck-data-deps as deprecated.
5018 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
5019 its associated params: omega-max-vars, omega-max-geqs,
5020 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
5021 omega-max-keys, omega-eliminate-redundant-constraints.
5022 * doc/loop.texi: Remove all the section on Omega.
5023 * graphite-blocking.c: Include missing params.h: it used to be
5024 included through tree-data-ref.h and omega.h.
5025 * graphite-isl-ast-to-gimple.c: Same.
5026 * graphite-optimize-isl.c: Same.
5027 * graphite-sese-to-poly.c: Same.
5031 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
5032 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
5033 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
5034 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
5035 * passes.def: Remove pass_check_data_deps.
5036 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
5037 (dump_conflict_function): Same.
5038 (dump_subscript): Same.
5039 (print_direction_vector): Same.
5040 (print_dir_vectors): Same.
5041 (print_lambda_vector): Same.
5042 (print_dist_vectors): Same.
5043 (dump_data_dependence_relation): Same.
5044 (dump_data_dependence_relations): Same.
5045 (dump_dist_dir_vectors): Same.
5047 (init_omega_eq_with_af): Removed.
5048 (omega_extract_distance_vectors): Removed.
5049 (omega_setup_subscript): Removed.
5050 (init_omega_for_ddr_1): Removed.
5051 (init_omega_for_ddr): Removed.
5052 (ddr_consistent_p): Removed.
5053 (compute_affine_dependence): Do not use omega to check data
5055 (compute_data_dependences_for_bb): Removed.
5056 (analyze_all_data_dependences): Removed.
5057 (tree_check_data_deps): Removed.
5058 * tree-data-ref.h: Do not include omega.h.
5059 (compute_data_dependences_for_bb): Removed.
5060 (tree_check_data_deps): Removed.
5061 * tree-ssa-loop.c (pass_check_data_deps): Removed.
5062 (make_pass_check_data_deps): Removed.
5063 * tree-ssa-phiopt.c: Include params.h.
5064 * tree-vect-data-refs.c: Same.
5065 * tree-vect-slp.c: Same.
5067 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
5069 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
5070 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
5071 (mem->fpreg splitters): Ditto.
5072 (general_operand->nonimmediate_operand splitter): Use explicit modes.
5073 Disable DFmode for TARGET_64BIT.
5075 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
5078 * config/i386/i386.c (ix86_expand_prologue): Replicate static
5081 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
5083 * config/nvptx/mkoffload.c (process): Constify host data.
5084 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
5086 (generate_host_descr_file): Likewise.
5088 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
5089 Sebastian Pop <s.pop@samsung.com>
5092 * graphite-dependences.c (add_pdr_constraints): Renamed
5093 pdr->extent to pdr->subscript_sizes.
5094 * graphite-interchange.c (build_linearized_memory_access): Add
5095 back all gcc_assert's that the "isl_int to isl_val conversion"
5096 patch has removed. Refactored.
5097 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
5098 * graphite-poly.c (new_poly_dr): Same.
5099 (free_poly_dr): Same.
5100 * graphite-poly.h (struct poly_dr): Same.
5101 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
5102 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
5103 * graphite-scop-detection.h: Fix space.
5104 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
5105 back all gcc_assert's removed by a previous patch.
5106 (wrap): Remove the_isl_ctx global variable that the same patch has
5108 (build_loop_iteration_domains): Same.
5109 (add_param_constraints): Same.
5110 (pdr_add_data_dimensions): Same. Refactored.
5111 (build_poly_dr): Renamed extent to subscript_sizes.
5113 2015-07-17 Marek Polacek <polacek@redhat.com>
5115 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
5116 * match.pd: ... here.
5118 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
5120 * config/nvptx/mkoffload.c (process): Constify target data.
5121 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
5122 Constify target data.
5123 (generate_target_offloadend_file): Likewise.
5125 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
5127 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
5128 to allow renaming of PHI arguments on edges incoming from outer
5129 loop header, add corresponding check before start PHI iterator.
5130 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
5131 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
5132 with true force_vectorize. Set-up dominator for outer loop too.
5133 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
5134 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
5135 was marked with force_vectorize and has restricted cfg.
5136 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
5138 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
5139 do peeling for outer loops.
5141 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
5142 Matthias Klose <doko@ubuntu.com>
5144 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
5145 build-sysroot, sysroot from the `Miscenalleous configure options' to
5146 the `Directories' section and strip trailing `/' from with_sysroot.
5147 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
5148 * configure: Regenerated.
5150 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
5153 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
5154 (TARGET_HARD_DF_REGS): Ditto.
5155 (TARGET_HARD_XF_REGS): Ditto.
5156 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
5157 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
5158 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
5159 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
5160 (*movsf_internal): Add alternatives 16 and 17. Enable
5161 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
5163 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
5165 PR rtl-optimization/66891
5166 * calls.c (expand_call): Wrap precompute_register_parameters with
5167 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
5169 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
5171 * config/nvptx/mkoffload.c (process): Constify mapping variables.
5172 Define target data struct and initialize it.
5174 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
5176 PR rtl-optimization/66626
5177 * ira.h (emit-rtl.h): Include.
5178 (non_spilled_static_chain_regno_p): New.
5179 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
5180 unless it is non spilled static chain pseudo.
5181 (assign_hard_rego): Spill memory profitable allocno unless it is
5182 non spilled static chain pseudo.
5183 (allocno_spill_priority_compare): Put non spilled static chain
5184 pseudo at the end of sorted array.
5185 (improve_allocation): Do nothing if we have static chain and
5187 (allocno__priority_compare_func): Put non spilled static chain
5188 pseudo at the beginning of sorted array.
5189 (move_spill_restore): Ignore non spilled static chain pseudo.
5190 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
5191 to non spilled static chain pseudo.
5192 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
5193 pseudo at the beginning of sorted array.
5194 (spill_for): Spill non spilled static chain pseudo last.
5195 * lra-constraints.c (lra_constraints): Remove static chain pseudo
5196 check for equivalence.
5198 2015-07-16 Martin Liska <mliska@suse.cz>
5201 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
5202 dst_ctx if it does not exist.
5204 2015-07-16 Martin Liska <mliska@suse.cz>
5206 * hash-set.h (remove): New function.
5207 (iterator): New iteration class for hash_set.
5209 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
5211 * genattrtab.c (make_canonical): Add a file_location parameter.
5212 Use fatal_at rather than fatal.
5213 (get_attr_value): Likewise. Update call to make_canonical.
5214 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
5215 (make_internal_attr): Update calls accordingly.
5217 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
5219 * read-md.h (message_with_line, error_with_line): Delete.
5220 * read-md.c (message_with_line, error_with_line): Delete.
5221 * gensupport.h: Include read-md.h.
5222 (md_rtx_info): New structure.
5223 (read_md_rtx): Use it. Return a bool success value.
5224 * gensupport.c (read_md_rtx): Likewise.
5225 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
5226 (main): Update after interface changes.
5227 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
5228 (main): Update after interface changes.
5229 * genattrtab.c (insn_code_number): Delete.
5230 (optimize_attrs): Add a max_insn_code parameter and use it instead
5231 of insn_code_number.
5232 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
5233 Use *_at rather than *_with_line functions.
5234 (gen_insn): Likewise.
5235 (gen_delay): Likewise.
5236 (gen_insn_reserv): Likewise.
5237 (gen_bypass): Take an md_rtx_info rather than an rtx.
5238 (main): Update after interface changes. Use a local max_insn_code
5239 variable instead of insn_code_number.
5240 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
5241 an rtx. Use fatal_at rather than fatal.
5242 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
5243 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
5244 (gen_absence_set, gen_final_absence_set, gen_automaton)
5245 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
5246 (main): Update after interface changes.
5247 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
5249 (main): Update after interface changes.
5250 * genconditions.c (main): Use new read_md_rtx interface.
5251 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
5252 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
5253 (main): Update after interface changes.
5254 * genemit.c (insn_code_number, insn_index_number): Delete.
5255 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
5256 Use fatal_at rather than fatal.
5257 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
5259 (gen_split): Likewise.
5260 (main): Update after interface changes.
5261 * genextract.c (line_no): Delete.
5262 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
5263 Update call to walk_rtx.
5264 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
5265 rather than message_with_line.
5266 (walk_rtx): Add an md_rtx_info argument. Update call to
5267 VEC_safe_set_locstr.
5268 (main): Update after interface changes.
5269 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
5270 and lineno. Use error_at rather than separate message_with_line
5271 calls and have_error assignments.
5272 (main): Update after interface changes.
5273 * genmddump.c (main): Use new read_md_rtx interface.
5274 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
5275 (main): Update after interface changes.
5276 * genoutput.c (next_code_number): Delete.
5277 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
5278 (gen_peephole, gen_expand, gen_split): Likewise.
5279 (note_constraint): Likewise. Use *_at rather than *_with_line
5281 (main): Update after interface changes.
5282 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
5284 (main): Update after interface changes.
5285 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
5286 than an rtx and lineno.
5287 (process_define_constraint): Likewise.
5288 (process_define_register_constraint): Likewise.
5289 (main): Update after interface changes.
5290 * genrecog.c (next_insn_code, pattern_lineno): Delete.
5291 (validate_pattern): Replace top-level rtx with an md_rtx_info.
5292 Use *_at rather than *_with_line functions.
5293 (match_pattern_2): Likewise.
5294 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
5295 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
5296 Use *_at rather than *_with_line functions.
5297 * gentarget-def.c (add_insn): New function.
5298 (main): Use it. Use new read_md_rtx interface.
5300 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
5302 * gensupport.h (compute_test_codes): Take a file_location rather
5304 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
5305 rather than *_with_line functions.
5306 (process_define_predicate): Update call to compute_test_codes.
5307 * genpreds.c (validate_exp): Take a file_location rather than a
5308 line number. Use *_at functions rather than *_with_line functions.
5309 (process_define_predicate): Update call to validate_exp.
5310 (constraint_data): Replace lineno field with a file_location.
5311 (add_constraint): Take a file_location rather than a line number.
5312 Use *_at functions rather than *_with_line functions. Fix error
5313 message for address constraints. Update after changes to
5314 validate_exp, constraint_data and compute_test_codes.
5315 (process_define_constraint): Update accordingly.
5316 (process_define_register_constraint): Likewise.
5318 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
5320 * genoutput.c (data): Use a file_location to record the source
5323 (idata, idata_end): Remove initialization.
5324 (constraint_data): Replace lineno with a file_location.
5325 (output_insn_data): Update after changes to data.
5326 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
5327 (scan_operands): Likewise, using *_at rather than *_with_line
5329 (process_template): Likewise.
5330 (validate_insn_alternatives): Likewise.
5331 (validate_insn_operands): Likewise.
5332 (validate_optab_operands): Likewise.
5333 (init_insn_for_nothing): Initialize idata and idata_end.
5334 (note_constraint): Update after changes to constraint_data,
5335 using at rather than with_line functions.
5336 (mdep_constraint_len): Take a file_location rather than a
5337 line number. Use at rather than with_line functions.
5339 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
5341 * read-md.h (fatal_at): Declare.
5342 * read-md.c (fatal_at): New function.
5343 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
5344 to record the source position.
5345 (check_attr_test): Take a file_location instead of a line number.
5346 Use fatal_at instead of fatal.
5347 (check_attr_value): Update after above changes, using "at"
5348 rather than "with_line" reporting functions.
5349 (convert_set_attr_alternative): Likewise.
5350 (gen_attr): Likewise.
5351 (check_defs): Likewise. Don't assign to read_md_filename.
5352 (gen_insn): Update initialization after above changes.
5353 (gen_delay): Likewise.
5354 (write_insn_cases): Print the filename for a define_peephole.
5355 (gen_insn_reserv): Take a line number as argument and update
5356 the call to check_attr_test.
5357 (main): Pass a line number to gen_insn_reserv.
5359 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
5361 * read-md.h (file_location): New structure.
5362 (directive_handler_t): Take a file_location rather than a line number.
5363 (message_at, error_at): Declare.
5364 (read_skip_construct): Delete.
5365 * read-md.c (message_with_line_1): Replace with...
5366 (message_at_1): ...this new function.
5367 (message_at, error_at): New functions.
5368 (message_with_line, error_with_line): Update to use message_at_1.
5369 (handle_enum): Take a file_location rather than a line number
5370 and use error_at for error reporting.
5371 (handle_include): Likewise.
5372 (read_skip_construct): Likewise. Make static.
5373 (handle_file): Update after above changes. Pass a file_location
5374 rather than a line number to handle_directive.
5375 * gensupport.c (queue_elem): Replace separate filename and lineno
5376 with a file_location.
5377 (queue_pattern): Replace filename and lineno arguments with a
5378 file_location. Update after change to queue_elem.
5379 (process_define_predicate): Replace lineno argument with a
5380 file_location and use error_at for error reporting. Update
5381 after above changes.
5382 (process_rtx): Likewise.
5383 (subst_pattern_match): Likewise.
5384 (get_alternatives_number): Likewise.
5385 (alter_predicate_for_insn): Likewise.
5386 (rtx_handle_directive): Likewise.
5387 (is_predicable): Update after above changes, using error_at rather
5388 than error_with_line.
5389 (has_subst_attribute): Likewise.
5390 (identify_predicable_attribute): Likewise.
5391 (alter_attrs_for_subst_insn): Likewise.
5392 (process_one_cond_exec): Likewise.
5393 (process_substs_on_one_elem): Likewise.
5394 (process_define_subst): Likewise.
5395 (check_define_attr_duplicates): Likewise.
5396 (read_md_rtx): Update after change to queue_elem.
5398 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
5400 * genoutput.c (next_index_number): Delete.
5401 (data): Remove index_number.
5402 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
5403 (main): Remove manipulation of next_index_number.
5405 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
5407 * genattrtab.c (check_attr_value): Remove handling of null attrs.
5408 (make_canonical): Likewise.
5410 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
5412 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
5413 instead of adjust_address_nv.
5414 (restore_stack_nonlocal): Likewise.
5415 (nonlocal_goto): Likewise.
5417 2015-07-16 Tom de Vries <tom@codesourcery.com>
5419 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
5420 not have a corresponding loop header phi.
5422 2015-07-16 Tom de Vries <tom@codesourcery.com>
5424 * tree-parloops.c (create_loads_for_reductions): Handle case that
5425 reduction is unused.
5427 2015-07-16 Richard Biener <rguenther@suse.de>
5429 PR tree-optimization/66894
5430 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
5431 about deriving NE_EXPR from truncated values.
5433 2015-07-16 Martin Liska <mliska@suse.cz>
5436 (object_allocator): Add new class.
5437 (pool_allocator::initialize): Use the underlying class.
5438 (pool_allocator::allocate): Likewise.
5439 (pool_allocator::remove): Likewise.
5440 (operator new): A new generic allocator.
5441 * asan.c (struct asan_mem_ref): Remove unused members.
5442 (asan_mem_ref_new): Replace new operator with
5443 object_allocator::allocate.
5444 (free_mem_ref_resources): Change deallocation.
5445 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
5446 with object_allocator.
5447 * config/sh/sh.c (add_constant): Replace new operator with
5448 object_allocator::allocate.
5449 (sh_reorg): Change call to a release method.
5450 * cselib.c (struct elt_list): Remove unused members.
5451 (new_elt_list): Replace new operator with
5452 object_allocator::allocate.
5453 (new_elt_loc_list): Likewise.
5454 (new_cselib_val): Likewise.
5455 (unchain_one_elt_list): Change delete operator with remove method.
5456 (unchain_one_elt_loc_list): Likewise.
5457 (unchain_one_value): Likewise.
5458 (cselib_finish): Release newly added static allocators.
5459 * cselib.h (struct cselib_val): Remove unused members.
5460 (struct elt_loc_list): Likewise.
5461 * df-problems.c (df_chain_alloc): Replace pool_allocator with
5463 * df-scan.c (struct df_scan_problem_data): Likewise.
5464 (df_scan_alloc): Likewise.
5465 * df.h (struct dataflow): Likewise.
5466 * dse.c (struct read_info_type): Likewise.
5467 (struct insn_info_type): Likewise.
5468 (struct dse_bb_info_type): Likewise.
5469 (struct group_info): Likewise.
5470 (struct deferred_change): Likewise.
5471 (get_group_info): Likewise.
5472 (delete_dead_store_insn): Likewise.
5473 (free_read_records): Likewise.
5474 (replace_read): Likewise.
5475 (check_mem_read_rtx): Likewise.
5476 (scan_insn): Likewise.
5477 (dse_step1): Likewise.
5478 (dse_step7): Likewise.
5479 * et-forest.c (struct et_occ): Remove unused members.
5480 (et_new_occ): Use allocate instead of new operator.
5481 (et_new_tree): Likewise.
5482 (et_free_tree): Call release method explicitly.
5483 (et_free_tree_force): Likewise.
5484 (et_free_pools): Likewise.
5485 (et_split): Use remove instead of delete operator.
5486 * et-forest.h (struct et_node): Remove unused members.
5487 * ipa-cp.c: Change pool_allocator to object_allocator.
5488 * ipa-inline-analysis.c: Likewise.
5489 * ipa-profile.c: Likewise.
5490 * ipa-prop.c: Likewise.
5491 * ipa-prop.h: Likewise.
5492 * ira-build.c (initiate_cost_vectors): Cast return value.
5493 (ira_allocate_cost_vector): Likewise.
5494 * ira-color.c (struct update_cost_record): Remove unused members.
5495 * lra-int.h (struct lra_live_range): Likewise.
5496 (struct lra_copy): Likewise.
5497 (struct lra_insn_reg): Likewise.
5498 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
5499 * lra.c (new_insn_reg): Replace new operator with allocate method.
5500 (free_insn_regs): Same for operator delete.
5501 (finish_insn_regs): Release new static allocator.
5502 (finish_insn_recog_data): Likewise.
5503 (lra_free_copies): Replace delete operator with remove method.
5504 (lra_create_copy): Replace operator new with allocate method.
5505 (invalidate_insn_data_regno_info): Same for remove method.
5506 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
5507 (free_debug_insn_changes): Replace delete operator with remove method.
5508 (replace_oldest_value_reg): Replace operator new with allocate method.
5509 (pass_cprop_hardreg::execute): Release new static variable.
5510 * sched-deps.c (sched_deps_init): Change pool_allocator to
5512 * sel-sched-ir.c: Likewise.
5513 * sel-sched-ir.h: Likewise.
5514 * stmt.c (expand_case): Likewise.
5515 (expand_sjlj_dispatch_table): Likewise.
5516 * tree-sra.c (struct access): Remove unused members.
5517 (struct assign_link): Likewise.
5518 (sra_deinitialize): Release newly added static pools.
5519 (create_access_1):Replace operator new with allocate method.
5520 (build_accesses_from_assign): Likewise.
5521 (create_artificial_child_access): Likewise.
5522 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
5523 pool_allocator to object_allocator.
5524 * tree-ssa-pre.c: Likewise.
5525 * tree-ssa-reassoc.c: Likewise.
5526 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
5527 * tree-ssa-strlen.c: Likewise.
5528 * tree-ssa-structalias.c: Likewise.
5529 * var-tracking.c (onepart_pool_allocate): New function.
5530 (unshare_variable): Use the newly added function.
5531 (variable_merge_over_cur): Likewise.
5532 (variable_from_dropped): Likewise.
5533 (variable_was_changed): Likewise.
5534 (set_slot_part): Likewise.
5535 (emit_notes_for_differences_1): Likewise.
5536 (vt_finalize): Release newly added static pools.
5538 2015-07-16 Martin Jambor <mjambor@suse.cz>
5540 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
5541 all uses. Fix two typos in its general comment.
5542 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
5544 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
5546 * config/i386/linux-common.h (LINK_MPX): New.
5547 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
5548 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
5549 indicating '-z bndplt' support by linker.
5550 * configure: Regenerate.
5551 * config.in: Regenerate.
5553 2015-07-16 Richard Biener <rguenther@suse.de>
5555 * fold-const.c (fold_widened_comparison): Remove.
5556 (fold_sign_changed_comparison): Likewise.
5557 (fold_comparison): Move widened and sign-changed comparison
5559 * match.pd: ... to patterns here.
5560 * generic-match-head.c: Include target.h.
5561 * gimple-match-head.c: Likewise.
5563 2015-07-16 Richard Biener <rguenther@suse.de>
5565 * tree-ssa-dom.c (dom_valueize): New function.
5566 (record_temporary_equivalences): Also record equivalences
5567 for dominating stmts that have uses of equivalences we are
5570 2015-07-16 Bin Cheng <bin.cheng@arm.com>
5572 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
5573 add_autoinc_candidates.
5574 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
5575 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
5576 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
5577 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
5579 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
5580 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
5581 Remove parameter struct iv*. Call add_autoinc_candidates here.
5582 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
5583 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
5585 (find_iv_candidates): Call new functions.
5587 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
5589 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
5590 uninitialized-variable warning.
5592 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
5595 * config/sh/sh.md (movdi): Split simple reg move to two movsi
5596 when the destination is R0.
5598 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
5601 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
5602 * config/i386/i386.c (ix86_expand_pextr): New function.
5603 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
5604 for non-lowpart subregs.
5605 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
5606 (insv<mode>): Use SWI248 mode iterator.
5607 (insv<mode>_1): Ditto.
5609 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
5610 Sebastian Pop <s.pop@samsung.com>
5612 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
5613 iterator to use_stmt.
5615 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
5616 Sebastian Pop <s.pop@samsung.com>
5618 * graphite-scop-detection.c (build_scops_1): Discard scops for
5621 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
5622 Sebastian Pop <s.pop@samsung.com>
5624 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
5625 case of a return statement in scop.
5627 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
5628 Sebastian Pop <s.pop@samsung.com>
5630 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
5631 INTEGER_TYPE parameters.
5632 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
5633 VECTOR_CST in scan_tree_for_params.
5634 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
5636 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
5638 * gimple-pretty-print.h: Don't include pretty-print.h.
5639 * tree-streamer.h: Don't include lto-streamer.h.
5640 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
5641 * gimple-streamer-in.c: Remove redundant includes.
5642 * gimple-streamer-out.c: Likewise.
5643 * ipa-devirt.c: Likewise.
5644 * ipa-icf.c: Likewise.
5645 * ipa-inline-analysis.c: Likewise.
5646 * ipa-polymorphic-call.c: Likewise.
5647 * ipa-profile.c: Likewise.
5648 * ipa-prop.c: Likewise.
5649 * ipa-pure-const.c: Likewise.
5650 * lto-cgraph.c: Likewise.
5651 * lto-streamer-in.c: Likewise.
5652 * lto-streamer-out.c: Likewise.
5653 * lto-streamer.c: Likewise.
5654 * tree-streamer-in.c: Likewise.
5655 * tree-streamer-out.c: Likewise.
5656 * tree-streamer.c: Likewise.
5658 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
5660 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
5662 * opts.c: Remove multiline #include comment.
5664 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
5666 * config/nvptx/mkoffload.c (process): Add C++ protection to
5669 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5672 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
5673 null before IEEE 128-bit floating point support patch.
5675 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5677 * simplify-rtx.c (simplify_ternary_operation): Add simplification
5678 for (!c) != {0,...,0} ? a : b for vector modes.
5680 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
5681 Martin Jambor <mjambor@suse.cz>
5683 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
5684 struct func_body_info* instead of struct ipa_node_params*, expecting
5685 fbi->info to be filled in. Replace throughout. Adjust call to
5686 ipa_load_from_parm_agg.
5687 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
5688 instead of struct ipa_node_params*. Adjust calls to other functions
5689 so that they pass either fbi or fbi->info.
5690 (set_switch_stmt_execution_predicate): Likewise.
5691 (will_be_nonconstant_predicate): Likewise.
5692 (compute_bb_predicates): Likewise.
5693 (estimate_function_body_sizes): Move asserts earlier. Fill in
5694 struct func_body_info, replace parms_info with fbi.info. Adjust
5695 calls to functions that now accept struct func_body_info.
5696 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
5697 (struct func_body_info): Likewise.
5698 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
5699 remove static. Adjust callers.
5700 (ipa_load_from_parm_agg): Remove.
5701 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
5702 (func_body_info): Likewise.
5703 (ipa_load_from_parm_agg): Adjust prototype.
5705 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5707 * gensupport.c (rtx_handle_directive): Adjust.
5708 * read-rtl.c (apply_iterators): Take vector to add rtxs to
5709 instead of expr list rtx.
5710 (add_define_attr_for_define_subst): Likewise.
5711 (add_define_subst_attr): Likewise.
5712 (read_subst_mapping): Likewise.
5713 (read_rtx): Likewise.
5714 * rtl.h (read_rtx): Adjust.
5716 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5718 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
5720 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
5723 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
5724 (*tls_local_dynamic_base_64_<mode>): Ditto.
5725 (*tls_local_dynamic_base_64_largepic): Ditto.
5726 (tls_global_dynamic_64_<mode>): Update expander pattern.
5727 (tls_local_dynamic_base_64_<mode>): Ditto.
5729 2015-07-15 Richard Biener <rguenther@suse.de>
5731 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
5732 and bool_var == 1 -> bool_var simplifications ...
5733 * match.pd: ... to patterns here. Factor out negate_expr_p
5734 cases from the A - B -> A + (-B) patterns as negate_expr_p
5735 predicate and add a -(A + B) -> (-B) - A pattern.
5737 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
5739 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
5741 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
5742 Robert Suchanek <robert.suchanek@imgtec.com>
5744 * config/mips/mips.c (mips_int_mask): New enum.
5745 (mips_shadow_set): Likewise.
5746 (int_mask): New variable.
5747 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
5748 (machine_function): Add int_mask and use_shadow_register_set.
5749 (mips_attribute_table): Add attribute handlers for interrupt and
5750 use_shadow_register_set.
5751 (mips_interrupt_mask): New static function.
5752 (mips_handle_interrupt_attr): Likewise.
5753 (mips_handle_use_shadow_register_set_attr): Likewise.
5754 (mips_use_shadow_register_set): Change return type to enum
5755 mips_shadow_set. Add argument handling for use_shadow_register_set
5757 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
5758 compare with mips_shadow_set enum.
5759 (mips_compute_frame_info): Add interrupt mask and
5760 use_shadow_register_set to per-function information structure.
5761 Add a stack slot for EPC unconditionally.
5762 (mips_expand_prologue): Compare use_shadow_register_set value
5763 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
5764 masked interrupt register but in EIC mode use K0 and save Cause in K0.
5765 EPC saved and restored unconditionally. Use PMODE_INSN macro when
5766 copying the stack pointer from the shadow register set.
5767 * config/mips/mips.h (SR_IM0): New define.
5768 * config/mips/mips.md (mips_rdpgpr): Rename to...
5769 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
5770 * doc/extend.texi (Declaring Attributes of Functions): Document
5771 optional arguments for interrupt and use_shadow_register_set
5774 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
5776 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
5777 interrupt attribute.
5778 (mips_expand_prologue): Disable the floating point unit in an ISR.
5779 * config/mips/mips.h (SR_COP1): New define.
5781 2015-07-15 Richard Biener <rguenther@suse.de>
5783 * genmatch.c (parser::peek, parser::peek_ident): Add argument
5784 to tell how many tokens to peek ahead (default 1).
5785 (parser::eat_token, parser::eat_ident): Return token consumed.
5786 (parser::parse_result): Parse new switch statement.
5787 * match.pd: Use case statements where appropriate.
5789 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
5791 PR rtl-optimization/58066
5792 * calls.c (expand_call): Precompute register parameters before stack
5793 alignment is performed.
5795 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
5797 PR rtl-optimization/66838
5798 * postreload.c (reload_cse_move2add): Also process
5799 CALL_INSN_FUNCTION_USAGE when resetting information of
5800 call-clobbered registers.
5802 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5803 Cesar Philippidis <cesar@codesourcery.com>
5804 Chung-Lin Tang <cltang@codesourcery.com>
5806 * config/nios2/constraints.md (U, v): New constraints.
5807 * config/nios2/predicates.md (rdprs_dcache_operand): New.
5808 (ldstex_memory_operand): New.
5809 * config/nios2/sync.md: New file.
5810 * config/nios2/nios2.md (unspecv): Add new builtin function
5812 (rdprs, flushd, flushda, wrpie, eni): New patterns.
5813 (top-level): Include sync.md.
5814 * config/nios2/nios2.c (N2_FTYPES): Add function types for
5816 (N2_BUILTINS): Add arch field setting, add new builtins.
5817 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
5819 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
5820 Also handle ldex/stex/ldsex/stsex builtins.
5821 (nios2_expand_rdprs_builtin): New function.
5822 (nios2_expand_cache_builtin): New function.
5823 (nios2_expand_wrpie_builtin): New function.
5824 (nios2_expand_eni_builtin): New function.
5825 (nios2_expand_builtin): Add arch field handling and new builtin
5827 * doc/extend.texi (Altera Nios II Built-in Functions): Document
5829 * doc/md.texi (Machine Constraints): Document U and v constraints.
5831 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5832 Cesar Philippidis <cesar@codesourcery.com>
5833 Chung-Lin Tang <cltang@codesourcery.com>
5835 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
5836 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
5837 callee_save_reg_size and uses_anonymous_args fields.
5838 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
5839 (nios2_create_cfa_notes): New function.
5840 (nios2_adjust_stack): New function for adjusting stack.
5841 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
5842 Use nios2_adjust_stack.
5843 (nios2_expand_epilogue): Likewise.
5844 (nios2_expand_return): New function.
5845 (nios2_can_use_return_insn): Update for CDX pop.n usage.
5846 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
5847 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
5848 * config/nios2/nios2.md (return): Use nios2_expand_return.
5850 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5851 Cesar Philippidis <cesar@codesourcery.com>
5852 Chung-Lin Tang <cltang@codesourcery.com>
5854 * config/nios2/predicates.md (pop_operation): New.
5855 (ldwm_operation, stwm_operation): New.
5856 (nios2_hard_register_operand): New.
5857 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
5858 (ldstwm_operation_p): Declare.
5859 (gen_ldstwm_peep): Declare.
5860 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
5861 (base_reg_adjustment_p): New.
5862 (pop_operation_p): New.
5863 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
5864 (nios2_ldstwm_regset_p): New.
5865 (ldstwm_operation_p): New.
5867 (nios2_ldst_parallel): New.
5868 (struct ldswm_operand): Declare.
5869 (compare_ldstwm_operands): New.
5870 (can_use_cdx_ldstw): New.
5871 (gen_ldstwm_peep): New.
5872 * config/nios2/nios2-ldstwm.sml: New.
5873 * config/nios2/nios2.md: Include ldstwm.md.
5874 * config/nios2/ldstwm.md: Generated.
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 (LABEL_ALIGN): Define.
5881 (REG_ALLOC_ORDER): Define.
5882 (ADJUST_REG_ALLOC_ORDER): Define.
5883 (HONOR_REG_ALLOC_ORDER): Define.
5884 (CDX_REG_P): Define.
5885 (ANDCLEAR_INT): Define.
5886 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
5887 (nios2_label_align): Declare.
5888 (nios2_cdx_narrow_form_p): Declare.
5889 (nios2_adjust_reg_alloc_order): Declare.
5890 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
5892 (nios2_large_unspec_reloc_p): New function, split from...
5893 (nios2_legitimate_pic_operand_p): ...here.
5894 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
5895 (nios2_print_operand_punct_valid_p): New.
5896 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
5897 (split_mem_address): New.
5898 (split_alu_insn): New.
5900 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
5901 (enum nios2_add_insn_kind): New.
5902 (nios2_add_insn_names, nios2_add_insn_narrow): New.
5903 (nios2_add_insn_classify): New.
5904 (nios2_add_insn_asm): New.
5905 (nios2_cdx_narrow_form_p): New.
5906 (label_align, min_labelno, max_labelno): New.
5908 (nios2_label_align): New.
5909 (nios2_adjust_reg_alloc_order): New.
5910 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5911 (TARGET_MACHINE_DEPENDENT_REORG): Define.
5912 * config/nios2/constraints.md (P): New constraint.
5913 * config/nios2/predicates.md (const_and_operand): New.
5915 (stack_memory_operand): New.
5916 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
5917 (length): Update to use nios2_cdx_narrow_form_p().
5918 (type): Add new insn type values.
5919 (control, alu, st, ld, shift): Update insn reservations with
5920 new insn type values.
5921 (*high, *lo_sum): Define new insn patterns for constant generation.
5922 (movqi_internal, movhi_internal, movsi_internal): Reduce
5923 alternatives, update asm template to handle CDX variants, update
5925 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
5926 template, update type attributes.
5927 (extendhisi2, extendqi<mode>2): Likewise.
5928 (addsi3): Change to use function for asm string.
5929 (subsi3): Add CDX notation to asm template, update type attributes.
5930 (negsi3, one_cmplsi3): Likewise.
5931 (andsi3): New pattern, specialized from logical patterns.
5932 (<code>si3): Remove and case, combine alternatives, update asm
5934 (<shift_op>si3): Add CDX notation, update type attributes.
5935 (rotrsi3): Update type attribute.
5936 (*merge, extzv, insv): New insn patterns.
5937 (return): Change to define_expand.
5938 (simple_return): Add CDX notation, update type attributes.
5939 (indirect_jump): Add CDX notation.
5940 (jump): Update asm cases, update length attribute expression.
5941 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
5942 (nios2_cbranch): Update asm cases and length attribute expression
5943 to handle CDX variants.
5944 (nios2_cmp<code>): Update asm template.
5945 (nop): Add CDX notation, update type attributes.
5946 (trap): Add CDX notation.
5947 (ctrapsi4): Update asm cases and length attribute expression to
5949 * doc/md.texi (Machine Constraints): Document P constraint.
5951 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5952 Cesar Philippidis <cesar@codesourcery.com>
5953 Chung-Lin Tang <cltang@codesourcery.com>
5955 * config/nios2/nios2.h (SMALL_INT12): New macro.
5956 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
5957 (nios2_valid_addr_expr_p): Use it.
5958 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
5959 with implicit "io" instructions on R2.
5960 * config/nios2/constraints.md (w): New constraint.
5961 * config/nios2/predicates.md (ldstio_memory_operand): New.
5962 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
5963 operand predicate and constraint.
5964 (ld<bh>io_signed, st<bhw>io>): Likewise.
5965 * doc/md.texi (Machine Constraints): Document w constraint.
5967 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5968 Cesar Philippidis <cesar@codesourcery.com>
5969 Chung-Lin Tang <cltang@codesourcery.com>
5971 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
5972 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
5973 Nios II architecture level.
5974 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
5975 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
5976 (OPTION_DEFAULT_SPECS): Define.
5977 (ASM_SPEC): Add -march= spec strings.
5978 * config/nios2/nios2.c (nios2_option_override): Check for
5979 conflicts involving new options.
5980 * config.gcc (nios2*-*-*): Support --with-arch=.
5981 * doc/invoke.texi (Option Summary, Nios II Options): Document
5982 -march=, -mbmx, and -mcdx.
5984 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
5986 PR rtl-optimization/66626
5987 * lra-constraints.c (lra_constraints): Prevent equivalence
5988 substitution for static chain pseudo in functions with nonlocal
5991 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5993 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
5994 (nios2_emit_stack_limit_check): Add size parameter. Handle
5995 -fstack-limit-symbol as well as -fstack-limit-register.
5996 (nios2_expand_prologue): Emit only a single stack limit check,
5997 even if multiple stack adjustments are required.
5998 (nios2_option_override): Diagnose unsupported combination of -fpic
5999 and -stack-limit-symbol.
6001 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
6003 * Makefile.in (top_srcdir): New.
6004 * configure.ac: Use AM_ZLIB.
6005 * configure: Regeneated.
6007 2015-07-14 Matthias Klose <doko@ubuntu.com>
6010 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
6012 2015-07-14 Richard Biener <rguenther@suse.de>
6014 PR tree-optimization/66863
6015 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
6016 what we record for conversion use stmt lhs inequalities.
6018 2015-07-14 Richard Biener <rguenther@suse.de>
6020 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
6021 (decision_tree::gen_gimple): Likewise.
6023 2015-07-14 Tom de Vries <tom@codesourcery.com>
6025 * gcc.c (greater_than_spec_func): Declare forward.
6026 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
6027 -ftree-parallelize-loops={0,1}.
6028 (static_spec_functions): Add greater_than_spec_func function with name
6030 (greater_than_spec_func): New function.
6032 2015-07-14 Richard Biener <rguenther@suse.de>
6034 * tree-ssa-dom.c (record_temporary_equivalences): Merge
6035 wideing type conversion case from record_equivalences_from_incoming_edge
6036 and use record_equality to record equivalences.
6037 (record_equivalences_from_incoming_edge): Call
6038 record_temporary_equivalences.
6040 2015-07-14 Richard Biener <rguenther@suse.de>
6042 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
6043 (struct if_expr): New.
6044 (struct with_expr): Likewise.
6045 (is_a_helper): Add helpers for if_expr and with_expr.
6046 (struct simplify): Add simplify_kind enum and member. Remove
6048 (simplify::simplify): Adjust.
6049 (lower_commutative): Adjust.
6050 (lower_opt_convert): Likewise.
6051 (lower_cond): Likewise.
6052 (replace_id): Handle with_expr and if_expr.
6053 (lower_for): Adjust.
6054 (dt_simplify::gen_1): New recursive worker, split out from ...
6055 (dt_simplify::gen): ... here. Deal with if and with expansion
6057 (capture_info::capture_info): Take context argument
6058 (capture_info::walk_result): Only analyze specific result.
6059 (parser::parse_result): New function.
6060 (parser::parse_simplify): Adjust to parse ifs with then end
6062 (parser::parse_if): Simplify.
6063 (parser::parse_pattern): Pass down simplify kind.
6064 * match.pd: Convert if structure to new syntax.
6066 2015-07-13 Marek Polacek <polacek@redhat.com>
6068 * rtl.c (rtx_equal_p_cb): Fix typo.
6070 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
6072 * omega.h: Don't include config.h, don't include params.h again if
6073 omega.h has already been included.
6074 * graphite-poly.h: Include sese.h.
6075 * graphite.c: Don't include sese.h, remove needless includes and
6076 minimize includes outside #ifdef HAVE_isl block.
6077 * graphite-blocking.c: Don't include sese.h, remove needless includes,
6078 and wrap entire file in #ifdef HAVE_isl
6079 * graphite-dependences.c: Likewise.
6080 * graphite-interchange.c: Likewise.
6081 * graphite-isl-ast-to-gimple.c: Likewise.
6082 * graphite-optimize-isl.c: Likewise.
6083 * graphite-poly.c: Likewise.
6084 * graphite-scop-detection.c: Likewise.
6085 * graphite-sese-to-poly.c: Likewise.
6087 2015-07-13 Tom de Vries <tom@codesourcery.com>
6089 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
6091 2015-07-13 Renlin Li <renlin.li@arm.com>
6094 * simplify-rtx.c (simplify_const_relational_operation): Add
6095 side_effects_p checks.
6097 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
6099 * bitmap.h: Fix double word typos.
6102 * cfgloopmanip.c: Same.
6105 * cgraphclones.c: Same.
6107 * config/aarch64/aarch64-protos.h: Same.
6108 * config/aarch64/aarch64.c: Same.
6109 * config/aarch64/aarch64.md: Same.
6110 * config/arm/arm.md: Same.
6111 * config/arm/arm1020e.md: Same.
6112 * config/arm/arm1026ejs.md: Same.
6113 * config/arm/arm926ejs.md: Same.
6114 * config/arm/fa526.md: Same.
6115 * config/arm/fa606te.md: Same.
6116 * config/arm/fa626te.md: Same.
6117 * config/arm/fa726te.md: Same.
6118 * config/arm/fmp626.md: Same.
6119 * config/darwin.c: Same.
6120 * config/epiphany/epiphany.c: Same.
6121 * config/frv/frv.c: Same.
6122 * config/ft32/ft32.c: Same.
6123 * config/gnu-user.h: Same.
6124 * config/h8300/constraints.md: Same.
6125 * config/i386/i386.c: Same.
6126 * config/i386/i386.md: Same.
6127 * config/iq2000/iq2000.md: Same.
6128 * config/mips/mips.c: Same.
6129 * config/mmix/mmix.md: Same.
6130 * config/moxie/moxie.c: Same.
6131 * config/nds32/nds32.md: Same.
6132 * config/pa/pa.h: Same.
6133 * config/rs6000/aix.h: Same.
6134 * config/rs6000/rs6000.h: Same.
6135 * config/sh/sh.c: Same.
6136 * config/tilegx/tilegx.md: Same.
6137 * config/tilepro/gen-mul-tables.cc: Same.
6140 * doc/invoke.texi: Same.
6142 * dwarf2out.c: Same.
6147 * hash-table.h: Same.
6148 * internal-fn.c: Same.
6150 * ipa-devirt.c: Same.
6153 * ipa-profile.c: Same.
6158 * reg-stack.c: Same.
6164 * tree-inline.c: Same.
6166 * tree-ssa-dom.c: Same.
6167 * tree-ssa-loop-ivopts.c: Same.
6168 * tree-ssa-structalias.c: Same.
6169 * tree-ssa-tail-merge.c: Same.
6170 * tree-ssa-ter.c: Same.
6171 * tree-ssa-threadupdate.c: Same.
6172 * tree-ssa-uninit.c: Same.
6173 * tree-ssanames.c: Same.
6174 * tree-vect-loop-manip.c: Same.
6180 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
6183 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
6184 tree_ssa_phiopt_worker): Call it.
6186 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
6188 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
6189 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
6192 2015-07-11 Marek Polacek <polacek@redhat.com>
6195 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
6196 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
6197 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
6198 rather than bb_has_abnormal_call_pred.
6199 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
6200 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
6201 rather than bb_has_abnormal_call_pred.
6203 2015-07-10 Anatoly Sokolov <aesok@post.ru>
6205 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6206 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
6207 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6208 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
6209 v850_legitimate_address_p): New functions.
6210 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
6212 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
6215 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
6216 indirect sibcall with register arguments if register available
6217 for argument passing.
6218 (init_cumulative_args): Set cfun->machine->arg_reg_available
6219 to (cum->nregs > 0) or to true if function has a variable
6221 (function_arg_advance_32): Set cfun->machine->arg_reg_available
6222 to false if cum->nregs <= 0.
6223 * config/i386/i386.h (machine_function): Add arg_reg_available.
6225 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
6227 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
6228 and gen_higpart instead of gen_rtx_SUBREG.
6229 * config/i386/i386.md
6230 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
6231 (read-modify peephole2): Use gen_lowpart instead of
6232 gen_rtx_SUBREG for operand 5.
6234 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
6236 * config/tilepro/gen-mul-tables.cc (main): Change include list for
6238 * config/tilepro/mul-tables.c: Regenerate.
6239 * config/tilegx/mul-tables.c: Regenerate.
6241 2015-07-10 Richard Biener <rguenther@suse.de>
6243 * fold-const.c (distribute_bit_expr): Remove.
6244 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
6245 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
6246 to A & (B | C) and simplifying A << C1 << C2 to ...
6247 * match.pd: ... patterns here.
6249 2015-07-10 Jiong Wang <jiong.wang@arm.com>
6251 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6252 Mark mem as READONLY and NOTRAP for PIC symbol.
6254 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
6256 * gimple-predict.h: New file.
6257 (gimple_predict_predictor, gimple_predict_set_predictor,
6258 gimple_predict_outcome, gimple_predict_set_outcome,
6259 gimple_build_predict): Relocate here.
6260 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
6261 gimple_predict_outcome, gimple_predict_set_outcome): Move to
6263 * gimple.c (gimple_build_predict): Move to gimple-predict.h
6264 * basic-block.h: Don't include cfghooks.h.
6265 * backend.h: Don't include predict.h.
6266 * cfghooks.h: Include predict.h.
6267 * gimple-pretty-print.c: Include gimple-predict.h.
6268 * gimplify.c: Likwise.
6269 * predict.c: Adjust includes.
6270 * tree-inline.c: Likewise.
6272 * auto-inc-dec.c: Likewise.
6273 * auto-profile.c: Likewise.
6274 * bb-reorder.c: Likewise.
6275 * builtins.c: Likewise.
6276 * caller-save.c: Likewise.
6277 * calls.c: Likewise.
6278 * cfganal.c: Likewise.
6279 * cfgbuild.c: Likewise.
6281 * cfgcleanup.c: Likewise.
6282 * cfgexpand.c: Likewise.
6283 * cfghooks.c: Likewise.
6284 * cfgloopanal.c: Likewise.
6285 * cfgloop.c: Likewise.
6286 * cfgloopmanip.c: Likewise.
6287 * cfgrtl.c: Likewise.
6288 * cgraph.c: Likewise.
6289 * cgraphunit.c: Likewise.
6290 * combine.c: Likewise.
6291 * cprop.c: Likewise.
6294 * dojump.c: Likewise.
6296 * except.c: Likewise.
6297 * expmed.c: Likewise.
6299 * final.c: Likewise.
6300 * fold-const.c: Likewise.
6301 * function.c: Likewise.
6302 * fwprop.c: Likewise.
6303 * gcc-plugin.h: Likewise.
6305 * genattrtab.c: Likewise.
6306 * genemit.c: Likewise.
6307 * gengtype.c: Likewise.
6308 * genopinit.c: Likewise.
6309 * genoutput.c: Likewise.
6310 * genpreds.c: Likewise.
6311 * genrecog.c: Likewise.
6312 * gimple-fold.c: Likewise.
6313 * gimple-iterator.c: Likewise.
6314 * gimple-ssa-isolate-paths.c: Likewise.
6315 * gimple-ssa-strength-reduction.c: Likewise.
6316 * graph.c: Likewise.
6317 * graphite-blocking.c: Likewise.
6318 * graphite.c: Likewise.
6319 * graphite-dependences.c: Likewise.
6320 * graphite-interchange.c: Likewise.
6321 * graphite-isl-ast-to-gimple.c: Likewise.
6322 * graphite-optimize-isl.c: Likewise.
6323 * graphite-poly.c: Likewise.
6324 * graphite-scop-detection.c: Likewise.
6325 * graphite-sese-to-poly.c: Likewise.
6326 * haifa-sched.c: Likewise.
6327 * ifcvt.c: Likewise.
6328 * internal-fn.c: Likewise.
6329 * ipa-cp.c: Likewise.
6330 * ipa-profile.c: Likewise.
6331 * ipa-split.c: Likewise.
6332 * ipa-utils.c: Likewise.
6333 * ira-build.c: Likewise.
6334 * ira-color.c: Likewise.
6335 * ira-conflicts.c: Likewise.
6336 * ira-costs.c: Likewise.
6337 * ira-emit.c: Likewise.
6338 * ira-lives.c: Likewise.
6340 * loop-doloop.c: Likewise.
6341 * loop-init.c: Likewise.
6342 * loop-invariant.c: Likewise.
6343 * loop-unroll.c: Likewise.
6344 * lower-subreg.c: Likewise.
6345 * lra-assigns.c: Likewise.
6347 * lra-coalesce.c: Likewise.
6348 * lra-constraints.c: Likewise.
6349 * lra-lives.c: Likewise.
6350 * lto-cgraph.c: Likewise.
6351 * lto-streamer-in.c: Likewise.
6352 * mode-switching.c: Likewise.
6353 * modulo-sched.c: Likewise.
6354 * omp-low.c: Likewise.
6355 * optabs.c: Likewise.
6356 * passes.c: Likewise.
6357 * postreload.c: Likewise.
6358 * postreload-gcse.c: Likewise.
6359 * profile.c: Likewise.
6360 * recog.c: Likewise.
6361 * regstat.c: Likewise.
6362 * reload1.c: Likewise.
6363 * reorg.c: Likewise.
6364 * rtlanal.c: Likewise.
6365 * sched-ebb.c: Likewise.
6366 * sel-sched-ir.c: Likewise.
6368 * shrink-wrap.c: Likewise.
6369 * simplify-rtx.c: Likewise.
6371 * store-motion.c: Likewise.
6372 * tracer.c: Likewise.
6373 * trans-mem.c: Likewise.
6374 * tree-call-cdce.c: Likewise.
6375 * tree-cfg.c: Likewise.
6376 * tree-cfgcleanup.c: Likewise.
6377 * tree-chkp.c: Likewise.
6378 * tree-complex.c: Likewise.
6379 * tree-eh.c: Likewise.
6380 * tree-if-conv.c: Likewise.
6381 * tree-loop-distribution.c: Likewise.
6382 * tree-outof-ssa.c: Likewise.
6383 * tree-parloops.c: Likewise.
6384 * tree-predcom.c: Likewise.
6385 * tree-pretty-print.c: Likewise.
6386 * tree-profile.c: Likewise.
6387 * tree-sra.c: Likewise.
6388 * tree-ssa.c: Likewise.
6389 * tree-ssa-coalesce.c: Likewise.
6390 * tree-ssa-dce.c: Likewise.
6391 * tree-ssa-dom.c: Likewise.
6392 * tree-ssa-forwprop.c: Likewise.
6393 * tree-ssa-ifcombine.c: Likewise.
6394 * tree-ssa-loop-ch.c: Likewise.
6395 * tree-ssa-loop-im.c: Likewise.
6396 * tree-ssa-loop-ivcanon.c: Likewise.
6397 * tree-ssa-loop-ivopts.c: Likewise.
6398 * tree-ssa-loop-manip.c: Likewise.
6399 * tree-ssa-loop-prefetch.c: Likewise.
6400 * tree-ssa-loop-unswitch.c: Likewise.
6401 * tree-ssa-math-opts.c: Likewise.
6402 * tree-ssa-phiopt.c: Likewise.
6403 * tree-ssa-pre.c: Likewise.
6404 * tree-ssa-reassoc.c: Likewise.
6405 * tree-ssa-sink.c: Likewise.
6406 * tree-ssa-tail-merge.c: Likewise.
6407 * tree-ssa-threadedge.c: Likewise.
6408 * tree-ssa-threadupdate.c: Likewise.
6409 * tree-switch-conversion.c: Likewise.
6410 * tree-tailcall.c: Likewise.
6411 * tree-vect-data-refs.c: Likewise.
6412 * tree-vect-loop.c: Likewise.
6413 * tree-vect-loop-manip.c: Likewise.
6414 * tree-vectorizer.c: Likewise.
6415 * tree-vrp.c: Likewise.
6416 * ubsan.c: Likewise.
6417 * value-prof.c: Likewise.
6418 * varasm.c: Likewise.
6419 * var-tracking.c: Likewise.
6420 * config/aarch64/aarch64-builtins.c: Likewise.
6421 * config/aarch64/aarch64.c: Likewise.
6422 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
6423 * config/alpha/alpha.c: Likewise.
6424 * config/arc/arc.c: Likewise.
6425 * config/arm/arm.c: Likewise.
6426 * config/avr/avr.c: Likewise.
6427 * config/bfin/bfin.c: Likewise.
6428 * config/c6x/c6x.c: Likewise.
6429 * config/cr16/cr16.c: Likewise.
6430 * config/cris/cris.c: Likewise.
6431 * config/darwin.c: Likewise.
6432 * config/darwin-c.c: Likewise.
6433 * config/epiphany/epiphany.c: Likewise.
6434 * config/epiphany/mode-switch-use.c: Likewise.
6435 * config/epiphany/resolve-sw-modes.c: Likewise.
6436 * config/fr30/fr30.c: Likewise.
6437 * config/frv/frv.c: Likewise.
6438 * config/ft32/ft32.c: Likewise.
6439 * config/h8300/h8300.c: Likewise.
6440 * config/i386/i386.c: Likewise.
6441 * config/i386/winnt.c: Likewise.
6442 * config/ia64/ia64.c: Likewise.
6443 * config/iq2000/iq2000.c: Likewise.
6444 * config/lm32/lm32.c: Likewise.
6445 * config/m32c/m32c.c: Likewise.
6446 * config/m32r/m32r.c: Likewise.
6447 * config/m68k/m68k.c: Likewise.
6448 * config/mcore/mcore.c: Likewise.
6449 * config/mep/mep.c: Likewise.
6450 * config/microblaze/microblaze.c: Likewise.
6451 * config/mips/mips.c: Likewise.
6452 * config/mmix/mmix.c: Likewise.
6453 * config/mn10300/mn10300.c: Likewise.
6454 * config/moxie/moxie.c: Likewise.
6455 * config/msp430/msp430.c: Likewise.
6456 * config/nds32/nds32.c: Likewise.
6457 * config/nds32/nds32-cost.c: Likewise.
6458 * config/nds32/nds32-fp-as-gp.c: Likewise.
6459 * config/nds32/nds32-intrinsic.c: Likewise.
6460 * config/nds32/nds32-isr.c: Likewise.
6461 * config/nds32/nds32-md-auxiliary.c: Likewise.
6462 * config/nds32/nds32-memory-manipulation.c: Likewise.
6463 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6464 * config/nds32/nds32-predicates.c: Likewise.
6465 * config/nios2/nios2.c: Likewise.
6466 * config/nvptx/nvptx.c: Likewise.
6467 * config/pa/pa.c: Likewise.
6468 * config/pdp11/pdp11.c: Likewise.
6469 * config/rl78/rl78.c: Likewise.
6470 * config/rs6000/rs6000.c: Likewise.
6471 * config/rx/rx.c: Likewise.
6472 * config/s390/s390.c: Likewise.
6473 * config/sh/sh.c: Likewise.
6474 * config/sh/sh-mem.cc: Likewise.
6475 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
6476 * config/sh/sh_treg_combine.cc: Likewise.
6477 * config/sparc/sparc.c: Likewise.
6478 * config/spu/spu.c: Likewise.
6479 * config/stormy16/stormy16.c: Likewise.
6480 * config/tilegx/tilegx.c: Likewise.
6481 * config/tilepro/tilepro.c: Likewise.
6482 * config/v850/v850.c: Likewise.
6483 * config/vax/vax.c: Likewise.
6484 * config/visium/visium.c: Likewise.
6485 * config/xtensa/xtensa.c: Likewise.
6487 2015-07-10 Richard Biener <rguenther@suse.de>
6489 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
6490 (decision_tree::gen_gimple): Likewise.
6491 (decision_tree::gen_generic): Likewise.
6493 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
6496 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
6497 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
6499 2015-07-10 Jakub Jelinek <jakub@redhat.com>
6502 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
6503 or ORT_TASK contexts.
6504 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
6507 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6509 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
6512 2015-07-10 Tom de Vries <tom@codesourcery.com>
6514 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
6515 insert nit + 1 bound.
6517 2015-07-10 Richard Biener <rguenther@suse.de>
6519 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
6520 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
6521 (if_convertible_loop_p_1): For this always compute bb predicates.
6522 (if_convertible_loop_p): And free them.
6524 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6526 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
6529 2015-07-10 Richard Biener <rguenther@suse.de>
6531 PR tree-optimization/66823
6532 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
6535 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
6537 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
6538 to handle mips[32|64]r3 and mips[32|64]r5.
6540 2015-07-09 Jakub Jelinek <jakub@redhat.com>
6543 * tree-nested.c (get_static_chain): Or in a flag into
6544 info->static_chain_added.
6545 (get_frame_field, get_nonlocal_debug_decl): Likewise.
6546 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
6548 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
6549 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
6552 PR tree-optimization/66718
6553 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
6555 (vect_simd_lane_linear): New function.
6556 (vectorizable_simd_clone_call): Support using linear arguments for
6557 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
6559 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
6562 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
6564 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6566 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
6567 Use machine mode, not enum machine_mode in the prototype.
6569 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
6570 classify 128-bit floating point support.
6571 (FLOAT128_IBM_P): Likewise.
6572 (FLOAT128_VECTOR_P): Likewise.
6573 (FLOAT128_2REG_P): Likewise.
6574 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
6575 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
6576 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6577 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
6579 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
6580 tests against TFmode/TDmode, since those modes do not use VSX
6582 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
6584 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
6585 tests against TFmode, etc.
6586 (invalid_e500_subreg): Add tests against IFmode/KFmode.
6587 (reg_offset_addressing_ok_p): Likewise.
6588 (rs6000_legitimate_offset_address_p): Likewise.
6589 (rs6000_legitimize_address): Likewise.
6590 (rs6000_legitimize_reload_address): Likewise.
6591 (rs6000_legitimate_address_p): Clean up tests against TFmode and
6592 TDmode to use the new helper macros, which will include IFmode and
6594 (rs6000_emit_move): Likewise.
6595 (rs6000_darwin64_record_arg_recurse): Likewise.
6596 (print_operand): Likewise.
6597 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
6598 that uses a single vector register as a vector and not as a
6599 floating point register in terms of the calling sequence.
6600 (rs6000_discover_homogeneous_aggregate): Likewise.
6601 (rs6000_return_in_memory): Likewise.
6602 (init_cumulative_args): Likewise.
6603 (rs6000_function_arg_boundary): Likewise.
6604 (rs6000_function_arg_advance_1): Likewise.
6605 (rs6000_function_arg): Likewise.
6606 (rs6000_pass_by_reference): Likewise.
6607 (rs6000_gimplify_va_arg): Likewise.
6608 (rs6000_secondary_reload_memory): Use machine_mode not enum
6610 (rs6000_split_multireg_move): Use new helper macros.
6611 (spe_func_has_64bit_regs_p): Likewise.
6612 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
6613 (output_toc): Use new helper macros.
6614 (rs6000_register_move_cost): Likewise.
6615 (rs6000_function_value): Add IEEE 128-bit floating point calling
6617 (rs6000_libcall_value): Likewise.
6618 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
6619 floating point support.
6620 (rs6000_vector_mode_supported_p): Likewise.
6622 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
6624 PR rtl-optimization/66782
6625 * lra-int.h (struct lra_insn_recog_data): Add comment about
6626 clobbered hard regs for arg_hard_regs.
6627 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
6628 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
6629 Add condition for processing used hard regs.
6630 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
6631 Process clobbered hard regs.
6633 2015-07-09 Michael Matz <matz@suse.de>
6635 * genmatch.c (fprintf_indent): New function.
6636 (operand::gen_transform): Add indent parameter.
6637 (expr::gen_transform, c_expr::gen_transform,
6638 capture::gen_transform): Ditto and use fprintf_indent.
6639 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
6640 (dt_operand::gen, dt_operand::gen_predicate,
6641 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
6642 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
6643 (decision_tree::gen_gimple): Adjust calls and indent generated
6645 (decision_tree::gen_generic): Ditto.
6646 (write_predicate): Ditto.
6648 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
6651 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
6652 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
6653 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
6654 {GENERAL,SSE,MMX}_REG_P where appropriate.
6656 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
6658 * lto-streamer.h: Don't include target.h and alloc-pool.h.
6659 * builtins.c: Adjust includes.
6660 * gimple.c: Likewise.
6661 * ipa-icf.c: Likewise.
6662 * lto-opts.c: Likewise.
6663 * ipa-reference.c: Likewise.
6664 * lto-section-out.c: Likewise.
6665 * lto-streamer-in.c: Likewise.
6666 * lto-streamer-out.c: Likewise.
6667 * opts-global.c: Likewise.
6668 * symtab.c: Likewise.
6669 * tree-chkp.c: Likewise.
6670 * tree-ssa-live.c: Likewise.
6671 * tree-streamer-in.c: Likewise.
6672 * tree-streamer-out.c: Likewise.
6673 * config/darwin.c: Likewise.
6674 * config/i386/winnt.c: Likewise.
6676 2015-07-09 Richard Biener <rguenther@suse.de>
6678 * genmatch.c (struct expr): Add force_single_use flag.
6679 (expr::expr): Add copy constructor.
6680 (capture_info::walk_match): Gather force_single_use captures.
6681 (expr::gen_transform): Use possibly NULLified sequence.
6682 (dt_simplify::gen): Apply single-use restrictions by NULLifying
6683 seq if any constrained expr is not single-use.
6684 (parser::parse_expr): Refactor to allow multiple flags. Handle
6685 's' flag to force an expression have a single-use if the pattern
6686 simplifies to more than one statement.
6687 * match.pd: Convert most single_use conditionals to :s flags.
6689 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
6691 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
6692 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
6693 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
6695 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
6697 * flags.h: Don't include flag-types.h or options.h.
6698 * opts-common.c: Adjust includes.
6699 * opts-global.c: Likewise.
6700 * common/config/epiphany/epiphany-common.c: Likewise.
6702 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
6705 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
6708 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
6711 * config/i386/i386.c (ix86_return_in_memory): Return true
6712 if int_size_in_bytes returns negative for IA MCU.
6714 2015-07-09 Marek Polacek <polacek@redhat.com>
6716 PR tree-optimization/66718
6717 * Makefile.in (OBJS): Add gimple-laddress.o.
6718 * passes.def: Schedule pass_laddress.
6719 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
6720 * tree-pass.h (make_pass_laddress): Declare.
6721 * gimple-laddress.c: New file.
6723 2015-07-09 Richard Biener <rguenther@suse.de>
6725 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
6727 2015-07-09 Richard Biener <rguenther@suse.de>
6729 PR tree-optimization/66807
6730 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
6732 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
6734 * function.c (stack_protect_epilogue): Use if rather than switch for
6735 check targetm.have_stack_protect_test.
6737 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6739 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
6740 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
6741 * config/arc/arc.h: Likewise.
6742 * config/arm/arm.h: Likewise.
6743 * config/bfin/bfin.h: Likewise.
6744 * config/epiphany/epiphany.h: Likewise.
6745 * config/frv/frv.h: Likewise.
6746 * config/ia64/ia64.h: Likewise.
6747 * config/iq2000/iq2000.h: Likewise.
6748 * config/lm32/lm32.h: Likewise.
6749 * config/m32r/m32r.h: Likewise.
6750 * config/mcore/mcore.h: Likewise.
6751 * config/mep/mep.h: Likewise.
6752 * config/microblaze/microblaze.h: Likewise.
6753 * config/mips/mips.h: Likewise.
6754 * config/mmix/mmix.h: Likewise.
6755 * config/mn10300/mn10300.h: Likewise.
6756 * config/nds32/nds32.h: Likewise.
6757 * config/nios2/nios2.h: Likewise.
6758 * config/pa/pa.h: Likewise.
6759 * config/rl78/rl78.h: Likewise.
6760 * config/sh/sh.h: Likewise.
6761 * config/sparc/sparc.h: Likewise.
6762 * config/stormy16/stormy16.h: Likewise.
6763 * config/tilegx/tilegx.h: Likewise.
6764 * config/tilepro/tilepro.h: Likewise.
6765 * config/v850/v850.h: Likewise.
6766 * config/xtensa/xtensa.h: Likewise.
6767 * doc/tm.texi: Regenerate.
6768 * doc/tm.texi.in: Adjust.
6769 * combine.c (simplify_set): Likewise.
6770 (simplify_comparison): Likewise.
6771 * expr.c (store_constructor): Likewise.
6772 * internal-fn.c (expand_arith_overflow): Likewise.
6773 * reload.c (push_reload): Likewise.
6774 (find_reloads): Likewise.
6775 (find_reloads_subreg_address): Likewise.
6776 * reload1.c (eliminate_regs_1): Likewise.
6777 * rtlanal.c (nonzero_bits1): Likewise.
6778 (num_sign_bit_copies1): Likewise.
6779 * simplify-rtx.c (simplify_truncation): Likewise.
6781 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6783 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
6784 of AUTO_INC_DEC with the preprocessor.
6785 * combine.c (combine_instructions): Likewise.
6786 (can_combine_p): Likewise.
6787 (try_combine): Likewise.
6788 * emit-rtl.c (try_split): Likewise.
6789 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
6790 * lower-subreg.c (resolve_simple_move): Likewise.
6791 * lra.c (update_inc_notes): Likewise.
6792 * recog.c (asm_operand_ok): Likewise.
6793 (constrain_operands): Likewise.
6794 * regrename.c (scan_rtx_address): Likewise.
6795 * reload.c (update_auto_inc_notes): Likewise.
6796 (reg_inc_found_and_valid_p): Likewise.
6797 * reload1.c (reload): Likewise.
6798 (emit_input_reload_insns): Likewise.
6799 (delete_output_reload): Likewise.
6800 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
6801 * valtrack.c (cleanup_auto_inc_dec): Likewise.
6803 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6805 * rtl.h: Always define AUTO_INC_DEC.
6806 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
6807 * combine.c (combine_instructions): Likewise.
6808 (can_combine_p): Likewise.
6809 (try_combine): Likewise.
6810 * emit-rtl.c (try_split): Likewise.
6811 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
6812 * lower-subreg.c (resolve_simple_move): Likewise.
6813 * lra.c (update_inc_notes): Likewise.
6814 * recog.c (asm_operand_ok): Likewise.
6815 (constrain_operands): Likewise.
6816 * regrename.c (scan_rtx_address): Likewise.
6817 * reload.c (update_auto_inc_notes): Likewise.
6818 (find_equiv_reg): Likewise.
6819 * reload1.c (reload): Likewise.
6820 (reload_as_needed): Likewise.
6821 (choose_reload_regs): Likewise.
6822 (emit_input_reload_insns): Likewise.
6823 (delete_output_reload): Likewise.
6824 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
6825 * valtrack.c (cleanup_auto_inc_dec): Likewise.
6827 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6829 * combine.c (can_combine_def_p): Don't check the value of
6830 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
6831 (combinable_i3pat): Likewise.
6832 (mark_used_regs_combine): Likewise.
6833 * regrename.c (rename_chains): Likewise.
6834 * reload.c (find_reloads_address): Likewise.
6835 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6837 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6839 * combine.c (update_rsp_from_reg_equal): Don't check if
6840 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
6841 (reg_nonzero_bits_for_combine): Likewise.
6842 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
6844 * config/frv/frv.h: Likewise.
6845 * config/lm32/lm32.h: Likewise.
6846 * config/mep/mep.h: Likewise.
6847 * config/mips/mips.h: Likewise.
6848 * config/rs6000/rs6000.h: Likewise.
6849 * config/sh/sh.h: Likewise.
6850 * config/tilegx/tilegx.h (enum reg_class): Likewise.
6851 * config/tilepro/tilepro.h: Likewise.
6852 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
6853 * doc/tm.texi: Regenerate.
6854 * doc/tm.texi.in: Adjust.
6855 * rtlanal.c (nonzero_bits1): Likewise.
6857 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6859 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
6860 with the preprocessor.
6861 (combine_instructions): Likewise.
6862 (try_combine): Likewise.
6864 (distribute_notes): Likewise.
6866 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6868 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
6870 (simplify_set): Likewise.
6871 * cse.c (cse_insn): Likewise.
6872 * fold-const.c (fold_single_bit_test): Likewise.
6873 (fold_unary_loc): Likewise.
6874 * postreload.c (reload_cse_simplify_set): Likewise.
6875 (reload_cse_simplify_operands): Likewise.
6877 2015-07-08 Jiong Wang <jiong.wang@arm.com>
6879 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
6880 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
6882 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
6885 * config/i386/x86intrin.h: Include <adxintrin.h> even if
6886 __iamcu__ is defined.
6888 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
6890 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
6892 2015-07-08 Iain Sandoe <iain@codesourcery.com>
6895 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
6896 names from preservation.
6898 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
6901 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
6903 (function_arg_advance_32): Don't pass vectors in registers for
6905 (function_arg_32): Likewise.
6906 (ix86_return_in_memory): Don't return vectors in registers for
6909 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
6912 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
6913 hard regno live at the start of BB with incoming abnormal edges.
6914 * lra-lives.c (process_bb_lives): Ditto.
6916 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
6919 * config/nvptx/mkoffload.c (main): Create an offload image only in
6920 64-bit configurations.
6922 2015-07-08 Martin Liska <mliska@suse.cz>
6925 * tree-sra.c (create_access_1): Call ctor without brackets.
6926 (create_artificial_child_access): Likewise.
6928 2015-07-08 Richard Biener <rguenther@suse.de>
6930 PR tree-optimization/66793
6931 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
6932 Properly split the block after stmts ending it.
6934 2015-07-08 Richard Biener <rguenther@suse.de>
6936 PR tree-optimization/66794
6937 * passes.c (execute_function_todo): Assert that post-dominators
6939 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
6940 Free post-dominators.
6942 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6944 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
6947 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
6949 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
6950 more than or equal 8 and less than 32 when optimizing for size.
6952 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6954 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
6955 COSTS_N_INSNS (1) and increment it appropriately throughout the
6958 2015-07-08 Richard Biener <rguenther@suse.de>
6960 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
6962 2015-07-08 Alan Modra <amodra@gmail.com>
6964 * target.def (rtx_costs): Remove "code" param, add "mode".
6965 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
6966 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
6967 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
6968 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
6969 call. Track mode when given in rtx.
6970 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
6971 (default_address_cost): Pass Pmode to rtx_cost.
6972 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
6973 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
6975 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
6976 (notreg_cost): Add mode param. Use it.
6977 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
6978 mode param and pass to set_src_cost. Update all calls.
6979 (hash_scan_set): Formatting.
6980 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
6981 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
6983 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
6984 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
6985 emit_store_flag): Update set_src_cost and rtx_cost calls.
6986 * auto-inc-dec.c (attempt_change): Likewise.
6987 * calls.c (precompute_register_parameters): Likewise.
6988 * combine.c (expand_compound_operation, make_extraction,
6989 force_to_mode, distribute_and_simplify_rtx): Likewise.
6990 * dojump.c (prefer_and_bit_test): Likewise.
6991 * dse.c (find_shift_sequence): Likewise.
6992 * expr.c (compress_float_constant): Likewise.
6993 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
6994 * ifcvt.c (noce_try_sign_mask): Likewise.
6995 * loop-doloop.c (doloop_optimize): Likewise.
6996 * loop-invariant.c (create_new_invariant): Likewise.
6997 * lower-subreg.c (shift_cost, compute_costs): Likewise.
6998 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
6999 lshift_cheap_p): Likewise.
7000 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
7001 try_replace_in_use, reload_cse_move2add): Likewise.
7002 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
7004 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7005 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7006 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
7007 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
7008 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
7009 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
7011 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
7012 * config/arc/arc.c (arc_rtx_costs): Likewise.
7013 * config/arm/arm.c (arm_rtx_costs): Likewise.
7014 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
7015 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
7016 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
7017 * config/cris/cris.c (cris_rtx_costs): Likewise.
7018 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
7019 * config/frv/frv.c (frv_rtx_costs): Likewise.
7020 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
7021 * config/i386/i386.c (ix86_rtx_costs): Likewise.
7022 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
7023 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
7024 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
7025 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
7026 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
7027 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
7028 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
7029 * config/mep/mep.c (mep_rtx_cost): Likewise.
7030 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
7031 * config/mips/mips.c (mips_rtx_costs): Likewise.
7032 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
7033 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
7034 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
7035 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
7036 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
7037 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
7038 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
7039 * config/pa/pa.c (hppa_rtx_costs): Likewise.
7040 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
7041 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
7042 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
7043 * config/s390/s390.c (s390_rtx_costs): Likewise.
7044 * config/sh/sh.c (sh_rtx_costs): Likewise.
7045 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
7046 * config/spu/spu.c (spu_rtx_costs): Likewise.
7047 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
7048 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
7049 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
7050 * config/v850/v850.c (v850_rtx_costs): Likewise.
7051 * config/vax/vax.c (vax_rtx_costs): Likewise.
7052 * config/visium/visium.c (visium_rtx_costs): Likewise.
7053 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
7054 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
7055 "code" param, and pass as outer_code to first rtx_cost call. Pass
7056 mode to rtx_cost calls.
7057 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
7059 (aarch64_rtx_costs_wrapper): Update.
7060 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
7061 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
7063 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
7065 (avr_operand_rtx_cost): Similarly.
7066 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
7067 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
7068 * config/mips/mips.c (mips_stack_address_p): Comment typo.
7069 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
7070 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
7071 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
7073 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
7074 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
7075 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
7076 * doc/tm.texi: Regenerate.
7078 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
7080 * tree-core.h: Include symtab.h.
7081 * rtl.h: Include hard-reg-set.h but not flags.h.
7082 (HARD_CONST): Remove condition compilation involving HARD_CONST since
7083 hard-reg-set.h is always included.
7084 * regs.h: Don't include hard-reg-set.h or rtl.h.
7085 * cfg.h: Include dominance.h.
7086 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
7087 * backend.h: New. Aggregate commonly used backend header files.
7088 * gimple-ssa.h: Don't include tree-hasher.h.
7089 * ssa.h: New. Aggregate commonly used SSA header files.
7090 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
7091 * sel-sched-ir.h: Flatten includes.
7092 * lra-int.h: Flatten completely.
7093 * sel-sched-dump.h: Flatten includes.
7094 * ira-int.h: Flatten includes.
7095 * gimple-streamer.h: Remove all includes.
7096 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
7097 * resource.h: Flatten hard-reg-set.h and df.h.
7098 * sched-int.h: Flatten insn-arrt.h and df.h.
7099 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
7100 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
7101 * genattrtab.c (write_header): Adjust generated includes.
7102 * genautomata.c (main): Likewise.
7103 * genconditions.c (write-header): Likewise.
7104 * genemit.c (main): Likewise.
7105 * gengtype.c (open_base_files): Likewise.
7106 * genopinit.c (main): Likewise.
7107 * genoutput.c (output_prologue): Likewise.
7108 * genpeep.c (main): Likewise.
7109 * genpreds.c (write_insn_preds_c): Likewise.
7110 * genrecog.c (write_header): Likewise.
7111 * alias.c: Adjust includes.
7113 * attribs.c: Likewise.
7114 * auto-inc-dec.c: Likewise.
7115 * auto-profile.c: Likewise.
7116 * bb-reorder.c: Likewise.
7117 * bt-load.c: Likewise.
7118 * builtins.c: Likewise.
7119 * caller-save.c: Likewise.
7120 * calls.c: Likewise.
7123 * cfganal.c: Likewise.
7124 * cfgbuild.c: Likewise.
7125 * cfgcleanup.c: Likewise.
7126 * cfgexpand.c: Likewise.
7127 * cfghooks.c: Likewise.
7128 * cfgloop.c: Likewise.
7129 * cfgloopanal.c: Likewise.
7130 * cfgloopmanip.c: Likewise.
7131 * cfgrtl.c: Likewise.
7132 * cgraph.c: Likewise.
7133 * cgraphbuild.c: Likewise.
7134 * cgraphclones.c: Likewise.
7135 * cgraphunit.c: Likewise.
7136 * cilk-common.c: Likewise.
7137 * combine-stack-adj.c: Likewise.
7138 * combine.c: Likewise.
7139 * compare-elim.c: Likewise.
7140 * convert.c: Likewise.
7141 * coverage.c: Likewise.
7142 * cppbuiltin.c: Likewise.
7143 * cprop.c: Likewise.
7145 * cselib.c: Likewise.
7146 * data-streamer-in.c: Likewise.
7147 * data-streamer-out.c: Likewise.
7148 * data-streamer.c: Likewise.
7149 * dbxout.c: Likewise.
7152 * debug.c: Likewise.
7153 * df-core.c: Likewise.
7154 * df-problems.c: Likewise.
7155 * df-scan.c: Likewise.
7157 * dojump.c: Likewise.
7158 * dominance.c: Likewise.
7159 * domwalk.c: Likewise.
7160 * double-int.c: Likewise.
7162 * dumpfile.c: Likewise.
7163 * dwarf2asm.c: Likewise.
7164 * dwarf2cfi.c: Likewise.
7165 * dwarf2out.c: Likewise.
7166 * emit-rtl.c: Likewise.
7167 * et-forest.c: Likewise.
7168 * except.c: Likewise.
7169 * explow.c: Likewise.
7170 * expmed.c: Likewise.
7172 * final.c: Likewise.
7173 * fixed-value.c: Likewise.
7174 * fold-const.c: Likewise.
7175 * function.c: Likewise.
7176 * fwprop.c: Likewise.
7177 * gcc-plugin.h: Likewise.
7178 * gcse-common.c: Likewise.
7180 * generic-match-head.c: Likewise.
7181 * ggc-page.c: Likewise.
7182 * gimple-builder.c: Likewise.
7183 * gimple-expr.c: Likewise.
7184 * gimple-fold.c: Likewise.
7185 * gimple-iterator.c: Likewise.
7186 * gimple-low.c: Likewise.
7187 * gimple-match-head.c: Likewise.
7188 * gimple-pretty-print.c: Likewise.
7189 * gimple-ssa-isolate-paths.c: Likewise.
7190 * gimple-ssa-strength-reduction.c: Likewise.
7191 * gimple-streamer-in.c: Likewise.
7192 * gimple-streamer-out.c: Likewise.
7193 * gimple-walk.c: Likewise.
7194 * gimple.c: Likewise.
7195 * gimplify-me.c: Likewise.
7196 * gimplify.c: Likewise.
7197 * godump.c: Likewise.
7198 * graph.c: Likewise.
7199 * graphite-blocking.c: Likewise.
7200 * graphite-dependences.c: Likewise.
7201 * graphite-interchange.c: Likewise.
7202 * graphite-isl-ast-to-gimple.c: Likewise.
7203 * graphite-optimize-isl.c: Likewise.
7204 * graphite-poly.c: Likewise.
7205 * graphite-scop-detection.c: Likewise.
7206 * graphite-sese-to-poly.c: Likewise.
7207 * graphite.c: Likewise.
7208 * haifa-sched.c: Likewise.
7209 * hw-doloop.c: Likewise.
7210 * ifcvt.c: Likewise.
7211 * init-regs.c: Likewise.
7212 * internal-fn.c: Likewise.
7213 * ipa-chkp.c: Likewise.
7214 * ipa-comdats.c: Likewise.
7215 * ipa-cp.c: Likewise.
7216 * ipa-devirt.c: Likewise.
7217 * ipa-icf-gimple.c: Likewise.
7218 * ipa-icf.c: Likewise.
7219 * ipa-inline-analysis.c: Likewise.
7220 * ipa-inline-transform.c: Likewise.
7221 * ipa-inline.c: Likewise.
7222 * ipa-polymorphic-call.c: Likewise.
7223 * ipa-profile.c: Likewise.
7224 * ipa-prop.c: Likewise.
7225 * ipa-pure-const.c: Likewise.
7226 * ipa-ref.c: Likewise.
7227 * ipa-reference.c: Likewise.
7228 * ipa-split.c: Likewise.
7229 * ipa-utils.c: Likewise.
7230 * ipa-visibility.c: Likewise.
7232 * ira-build.c: Likewise.
7233 * ira-color.c: Likewise.
7234 * ira-conflicts.c: Likewise.
7235 * ira-costs.c: Likewise.
7236 * ira-emit.c: Likewise.
7237 * ira-lives.c: Likewise.
7240 * langhooks.c: Likewise.
7242 * loop-doloop.c: Likewise.
7243 * loop-init.c: Likewise.
7244 * loop-invariant.c: Likewise.
7245 * loop-iv.c: Likewise.
7246 * loop-unroll.c: Likewise.
7247 * lower-subreg.c: Likewise.
7248 * lra-assigns.c: Likewise.
7249 * lra-coalesce.c: Likewise.
7250 * lra-constraints.c: Likewise.
7251 * lra-eliminations.c: Likewise.
7252 * lra-lives.c: Likewise.
7253 * lra-remat.c: Likewise.
7254 * lra-spills.c: Likewise.
7256 * lto-cgraph.c: Likewise.
7257 * lto-compress.c: Likewise.
7258 * lto-opts.c: Likewise.
7259 * lto-section-in.c: Likewise.
7260 * lto-section-out.c: Likewise.
7261 * lto-streamer-in.c: Likewise.
7262 * lto-streamer-out.c: Likewise.
7263 * lto-streamer.c: Likewise.
7265 * mode-switching.c: Likewise.
7266 * modulo-sched.c: Likewise.
7267 * omega.c: Likewise.
7268 * omp-low.c: Likewise.
7269 * optabs.c: Likewise.
7270 * opts-global.c: Likewise.
7271 * passes.c: Likewise.
7272 * plugin.c: Likewise.
7273 * postreload-gcse.c: Likewise.
7274 * postreload.c: Likewise.
7275 * predict.c: Likewise.
7276 * print-rtl.c: Likewise.
7277 * print-tree.c: Likewise.
7278 * profile.c: Likewise.
7280 * realmpfr.c: Likewise.
7281 * recog.c: Likewise.
7283 * reg-stack.c: Likewise.
7284 * regcprop.c: Likewise.
7285 * reginfo.c: Likewise.
7286 * regrename.c: Likewise.
7287 * regstat.c: Likewise.
7288 * reload.c: Likewise.
7289 * reload1.c: Likewise.
7290 * reorg.c: Likewise.
7291 * resource.c: Likewise.
7292 * rtl-chkp.c: Likewise.
7293 * rtlanal.c: Likewise.
7294 * rtlhooks.c: Likewise.
7295 * sanopt.c: Likewise.
7296 * sched-deps.c: Likewise.
7297 * sched-ebb.c: Likewise.
7298 * sched-rgn.c: Likewise.
7299 * sched-vis.c: Likewise.
7300 * sdbout.c: Likewise.
7301 * sel-sched-dump.c: Likewise.
7302 * sel-sched-ir.c: Likewise.
7303 * sel-sched.c: Likewise.
7305 * shrink-wrap.c: Likewise.
7306 * simplify-rtx.c: Likewise.
7307 * stack-ptr-mod.c: Likewise.
7309 * stor-layout.c: Likewise.
7310 * store-motion.c: Likewise.
7311 * stringpool.c: Likewise.
7312 * symtab.c: Likewise.
7313 * target-globals.c: Likewise.
7314 * targhooks.c: Likewise.
7315 * toplev.c: Likewise.
7316 * tracer.c: Likewise.
7317 * trans-mem.c: Likewise.
7318 * tree-affine.c: Likewise.
7319 * tree-browser.c: Likewise.
7320 * tree-call-cdce.c: Likewise.
7321 * tree-cfg.c: Likewise.
7322 * tree-cfgcleanup.c: Likewise.
7323 * tree-chkp-opt.c: Likewise.
7324 * tree-chkp.c: Likewise.
7325 * tree-chrec.c: Likewise.
7326 * tree-complex.c: Likewise.
7327 * tree-data-ref.c: Likewise.
7328 * tree-dfa.c: Likewise.
7329 * tree-diagnostic.c: Likewise.
7330 * tree-dump.c: Likewise.
7331 * tree-eh.c: Likewise.
7332 * tree-emutls.c: Likewise.
7333 * tree-if-conv.c: Likewise.
7334 * tree-inline.c: Likewise.
7335 * tree-into-ssa.c: Likewise.
7336 * tree-iterator.c: Likewise.
7337 * tree-loop-distribution.c: Likewise.
7338 * tree-nested.c: Likewise.
7339 * tree-nrv.c: Likewise.
7340 * tree-object-size.c: Likewise.
7341 * tree-outof-ssa.c: Likewise.
7342 * tree-parloops.c: Likewise.
7343 * tree-phinodes.c: Likewise.
7344 * tree-predcom.c: Likewise.
7345 * tree-pretty-print.c: Likewise.
7346 * tree-profile.c: Likewise.
7347 * tree-scalar-evolution.c: Likewise.
7348 * tree-sra.c: Likewise.
7349 * tree-ssa-address.c: Likewise.
7350 * tree-ssa-alias.c: Likewise.
7351 * tree-ssa-ccp.c: Likewise.
7352 * tree-ssa-coalesce.c: Likewise.
7353 * tree-ssa-copy.c: Likewise.
7354 * tree-ssa-copyrename.c: Likewise.
7355 * tree-ssa-dce.c: Likewise.
7356 * tree-ssa-dom.c: Likewise.
7357 * tree-ssa-dse.c: Likewise.
7358 * tree-ssa-forwprop.c: Likewise.
7359 * tree-ssa-ifcombine.c: Likewise.
7360 * tree-ssa-live.c: Likewise.
7361 * tree-ssa-loop-ch.c: Likewise.
7362 * tree-ssa-loop-im.c: Likewise.
7363 * tree-ssa-loop-ivcanon.c: Likewise.
7364 * tree-ssa-loop-ivopts.c: Likewise.
7365 * tree-ssa-loop-manip.c: Likewise.
7366 * tree-ssa-loop-niter.c: Likewise.
7367 * tree-ssa-loop-prefetch.c: Likewise.
7368 * tree-ssa-loop-unswitch.c: Likewise.
7369 * tree-ssa-loop.c: Likewise.
7370 * tree-ssa-math-opts.c: Likewise.
7371 * tree-ssa-operands.c: Likewise.
7372 * tree-ssa-phiopt.c: Likewise.
7373 * tree-ssa-phiprop.c: Likewise.
7374 * tree-ssa-pre.c: Likewise.
7375 * tree-ssa-propagate.c: Likewise.
7376 * tree-ssa-reassoc.c: Likewise.
7377 * tree-ssa-sccvn.c: Likewise.
7378 * tree-ssa-scopedtables.c: Likewise.
7379 * tree-ssa-sink.c: Likewise.
7380 * tree-ssa-strlen.c: Likewise.
7381 * tree-ssa-structalias.c: Likewise.
7382 * tree-ssa-tail-merge.c: Likewise.
7383 * tree-ssa-ter.c: Likewise.
7384 * tree-ssa-threadedge.c: Likewise.
7385 * tree-ssa-threadupdate.c: Likewise.
7386 * tree-ssa-uncprop.c: Likewise.
7387 * tree-ssa-uninit.c: Likewise.
7388 * tree-ssa.c: Likewise.
7389 * tree-ssanames.c: Likewise.
7390 * tree-stdarg.c: Likewise.
7391 * tree-streamer-in.c: Likewise.
7392 * tree-streamer-out.c: Likewise.
7393 * tree-streamer.c: Likewise.
7394 * tree-switch-conversion.c: Likewise.
7395 * tree-tailcall.c: Likewise.
7396 * tree-vect-data-refs.c: Likewise.
7397 * tree-vect-generic.c: Likewise.
7398 * tree-vect-loop-manip.c: Likewise.
7399 * tree-vect-loop.c: Likewise.
7400 * tree-vect-patterns.c: Likewise.
7401 * tree-vect-slp.c: Likewise.
7402 * tree-vect-stmts.c: Likewise.
7403 * tree-vectorizer.c: Likewise.
7404 * tree-vrp.c: Likewise.
7407 * ubsan.c: Likewise.
7408 * valtrack.c: Likewise.
7409 * value-prof.c: Likewise.
7410 * var-tracking.c: Likewise.
7411 * varasm.c: Likewise.
7412 * varpool.c: Likewise.
7413 * vmsdbgout.c: Likewise.
7414 * vtable-verify.c: Likewise.
7416 * wide-int.cc: Likewise.
7417 * xcoffout.c: Likewise.
7418 * config/aarch64/aarch64-builtins.c: Likewise.
7419 * config/aarch64/aarch64.c: Likewise.
7420 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7421 * config/alpha/alpha.c: Likewise.
7422 * config/arc/arc.c: Likewise.
7423 * config/arm/aarch-common.c: Likewise.
7424 * config/arm/arm-builtins.c: Likewise.
7425 * config/arm/arm-c.c: Likewise.
7426 * config/arm/arm.c: Likewise.
7427 * config/avr/avr-c.c: Likewise.
7428 * config/avr/avr-log.c: Likewise.
7429 * config/avr/avr.c: Likewise.
7430 * config/bfin/bfin.c: Likewise.
7431 * config/c6x/c6x.c: Likewise.
7432 * config/cr16/cr16.c: Likewise.
7433 * config/cris/cris.c: Likewise.
7434 * config/darwin-c.c: Likewise.
7435 * config/darwin.c: Likewise.
7436 * config/epiphany/epiphany.c: Likewise.
7437 * config/epiphany/mode-switch-use.c: Likewise.
7438 * config/epiphany/resolve-sw-modes.c: Likewise.
7439 * config/fr30/fr30.c: Likewise.
7440 * config/frv/frv.c: Likewise.
7441 * config/ft32/ft32.c: Likewise.
7442 * config/h8300/h8300.c: Likewise.
7443 * config/i386/i386-c.c: Likewise.
7444 * config/i386/i386.c: Likewise.
7445 * config/i386/msformat-c.c: Likewise.
7446 * config/i386/winnt-cxx.c: Likewise.
7447 * config/i386/winnt-stubs.c: Likewise.
7448 * config/i386/winnt.c: Likewise.
7449 * config/ia64/ia64-c.c: Likewise.
7450 * config/ia64/ia64.c: Likewise.
7451 * config/iq2000/iq2000.c: Likewise.
7452 * config/lm32/lm32.c: Likewise.
7453 * config/m32c/m32c-pragma.c: Likewise.
7454 * config/m32c/m32c.c: Likewise.
7455 * config/m32r/m32r.c: Likewise.
7456 * config/m68k/m68k.c: Likewise.
7457 * config/mcore/mcore.c: Likewise.
7458 * config/mep/mep-pragma.c: Likewise.
7459 * config/mep/mep.c: Likewise.
7460 * config/microblaze/microblaze-c.c: Likewise.
7461 * config/microblaze/microblaze.c: Likewise.
7462 * config/mips/mips.c: Likewise.
7463 * config/mmix/mmix.c: Likewise.
7464 * config/mn10300/mn10300.c: Likewise.
7465 * config/moxie/moxie.c: Likewise.
7466 * config/msp430/msp430-c.c: Likewise.
7467 * config/msp430/msp430.c: Likewise.
7468 * config/nds32/nds32-cost.c: Likewise.
7469 * config/nds32/nds32-fp-as-gp.c: Likewise.
7470 * config/nds32/nds32-intrinsic.c: Likewise.
7471 * config/nds32/nds32-isr.c: Likewise.
7472 * config/nds32/nds32-md-auxiliary.c: Likewise.
7473 * config/nds32/nds32-memory-manipulation.c: Likewise.
7474 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7475 * config/nds32/nds32-predicates.c: Likewise.
7476 * config/nds32/nds32.c: Likewise.
7477 * config/nios2/nios2.c: Likewise.
7478 * config/nvptx/nvptx.c: Likewise.
7479 * config/pa/pa.c: Likewise.
7480 * config/pdp11/pdp11.c: Likewise.
7481 * config/rl78/rl78-c.c: Likewise.
7482 * config/rl78/rl78.c: Likewise.
7483 * config/rs6000/rs6000-c.c: Likewise.
7484 * config/rs6000/rs6000.c: Likewise.
7485 * config/rx/rx.c: Likewise.
7486 * config/s390/s390-c.c: Likewise.
7487 * config/s390/s390.c: Likewise.
7488 * config/sh/sh-c.c: Likewise.
7489 * config/sh/sh-mem.cc: Likewise.
7490 * config/sh/sh.c: Likewise.
7491 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7492 * config/sh/sh_treg_combine.cc: Likewise.
7493 * config/sol2-c.c: Likewise.
7494 * config/sol2-cxx.c: Likewise.
7495 * config/sol2-stubs.c: Likewise.
7496 * config/sol2.c: Likewise.
7497 * config/sparc/sparc-c.c: Likewise.
7498 * config/sparc/sparc.c: Likewise.
7499 * config/spu/spu-c.c: Likewise.
7500 * config/spu/spu.c: Likewise.
7501 * config/stormy16/stormy16.c: Likewise.
7502 * config/tilegx/mul-tables.c: Likewise.
7503 * config/tilegx/tilegx-c.c: Likewise.
7504 * config/tilegx/tilegx.c: Likewise.
7505 * config/tilepro/mul-tables.c: Likewise.
7506 * config/tilepro/tilepro-c.c: Likewise.
7507 * config/tilepro/tilepro.c: Likewise.
7508 * config/v850/v850-c.c: Likewise.
7509 * config/v850/v850.c: Likewise.
7510 * config/vax/vax.c: Likewise.
7511 * config/visium/visium.c: Likewise.
7512 * config/vms/vms-c.c: Likewise.
7513 * config/vms/vms.c: Likewise.
7514 * config/vxworks.c: Likewise.
7515 * config/xtensa/xtensa.c: Likewise.
7517 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
7519 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
7520 Remove operand constraints. Change operand 2 predicate to
7521 nonmemory operand. Limit const_int values to mode bitsize. Only
7522 allow const_int values less than 32 when optimizing for size.
7523 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
7524 Remove operand constraints.
7525 (*bt<mode>): Use SImode for const_int values less than 32.
7526 (regmode): Remove mode attribute.
7528 2015-07-07 Anatoly Sokolov <aesok@post.ru>
7530 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7531 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
7532 moxie_legitimate_address_p): New functions.
7533 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7535 2015-07-07 Tom de Vries <tom@codesourcery.com>
7537 PR tree-optimization/66642
7538 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
7539 header comment. Rename split_edge variable to edge_at_split. Split
7540 exit edge to create new loop exit bb. Insert loop exit phis in new
7543 2015-07-07 Tom de Vries <tom@codesourcery.com>
7545 * tree-cfg.c (get_virtual_phi): New function.
7546 * tree-cfg.h (get_virtual_phi): Declare.
7547 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
7548 (rewrite_virtuals_into_loop_closed_ssa): New function.
7549 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
7551 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
7552 (transform_to_exit_first_loop_alt): Use
7553 rewrite_virtuals_into_loop_closed_ssa.
7555 2015-07-07 Richard Biener <rguenther@suse.de>
7557 * fold-const.c (fold_binary_loc): Move
7558 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
7559 * match.pd: ... here.
7560 Add (X * C1) % C2 -> 0 simplification pattern derived from
7563 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
7566 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
7567 change for target/65249.
7569 2015-07-07 Paulo Matos <pmatos@broadcom.com>
7571 * symtab.c (address_matters_1): Fix typo in comment above.
7572 (can_increase_alignment_p): Likewise.
7574 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7576 * function.c (free_after_compilation): Clear PROP_cfg in
7579 2015-07-07 Richard Biener <rguenther@suse.de>
7581 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
7583 (add_control_edge): Remove excessive vertical space in dumping.
7584 (process_ssa_edge_worklist): Simulate at most one statement and
7585 return whether we did. Do not simulate PHIs if they are in a
7586 BB not yet simulated.
7587 (ssa_propagate): Adjust to always drain the BB worklist whenever
7588 a BB is available there, likewise the VARYING edges list before
7589 the interesting edge list.
7591 2015-07-07 Christian Bruel <christian.bruel@st.com>
7594 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
7596 2015-07-07 Richard Biener <rguenther@suse.de>
7599 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
7602 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
7604 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
7605 modes for operands 0 and 3. Use SImode for operands 2 and 3.
7606 Copy operand 0 to a temporary if !ext_register_operand. Remove
7607 ancient extract_bit_field workaround.
7608 (insv<mode>_1): Rename from mov<mode>_insv_1.
7609 (*insvqi): Rename from *movqi_insv_2.
7610 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
7611 for renamed insvsi_1.
7612 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
7614 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
7616 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
7617 call to nvptx_reorg_subreg.
7619 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
7621 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
7622 * graphite-dependencies.c, graphite-interchange.c,
7623 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
7624 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
7627 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
7629 * match.pd: Remove element_mode inside HONOR_*.
7630 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
7631 (~X | X -> -1, ~X ^ X -> -1): Merge.
7632 * tree.c (build_each_one_cst): New function.
7633 * tree.h (build_each_one_cst): Likewise.
7635 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
7637 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7640 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
7642 * config.gcc <mips*-*-*>: Add fused-madd.opt.
7643 * config/mips/mips.opt (mfused-madd): Remove.
7644 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
7645 * config/mips/mips.h (TARGET_MIPS8000): New.
7646 (ISA_HAS_FP_MADD4_MSUB4): Remove.
7647 (ISA_HAS_FP_MADDF_MSUBF): Remove.
7648 (ISA_HAS_FP_MADD3_MSUB3): Remove.
7649 (ISA_HAS_NMADD4_NMSUB4): Remove.
7650 (ISA_HAS_NMADD3_NMSUB3): Remove.
7651 (ISA_HAS_FUSED_MADD4): New.
7652 (ISA_HAS_UNFUSED_MADD4): New.
7653 (ISA_HAS_FUSED_MADDF): New.
7654 (ISA_HAS_FUSED_MADD3): New.
7655 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
7656 (*fma<mode>4_madd3) New.
7657 (*fma<mode>4_madd4) New.
7658 (*fma<mode>4_maddf) New.
7660 (*fms<mode>4_msub3) New.
7661 (*fms<mode>4_msub4) New.
7663 (*fnma<mode>4_nmadd3) New.
7664 (*fnma<mode>4_nmadd4) New.
7666 (*fnms<mode>4_nmsub3) New.
7667 (*fnms<mode>4_nmsub4) New.
7668 (*madd4<mode>) Modify to be unfused only.
7669 (*msub4<mode>) Modify to be unfused only.
7670 (*nmadd4<mode>) Modify to be unfused only.
7671 (*nmsub4<mode>) Modify to be unfused only.
7672 (*madd3<mode>) Remove.
7673 (*msub3<mode>) Remove.
7674 (*nmadd3<mode>) Remove.
7675 (*nmsub3<mode>) Remove.
7676 (*nmadd3<mode>_fastmath) Remove.
7677 (*nmsub3<mode>_fastmath) Remove.
7678 (*nmadd4<mode>_fastmath) Update condition.
7679 (*nmsub4<mode>_fastmath) Update condition.
7681 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
7684 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
7685 alignment attribute, exploring one level down for records and arrays.
7687 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
7689 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
7690 modes for operands 0 and 1. Use SImode for operands 2 and 3.
7691 Copy operand 1 to a temporary if !ext_register_operand. Remove
7692 ancient extract_bit_field workaround.
7693 (*extv<mode>): Rename from *mov<mode>_extv_1.
7694 (*extvqi): Rename from *movqi_extv_1.
7695 (extzv<mode>): Rename from extzv. Use SWI248 modes for
7696 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
7697 to a temporary if !ext_register_operand. Remove ancient
7698 extract_bit_field workaround.
7699 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
7700 (*extzvqi): Rename from *movqi_extzv_2.
7701 (*testqi_ext_3): Remove modes from const_int_operand predicated
7702 operands. Add "n" constraint.
7703 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
7704 operand. Add "J" constraint.
7705 (*btsq, *btrq, *btcq peephole2s): Remove mode from
7706 const_0_to_63 predicated operand.
7707 (regmode): New insn attribute.
7708 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
7709 to nonmemory_operand. Use regmode insn attribute.
7710 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
7711 (*jcc_bt<mode>_mask): Remove mode from operand 3.
7712 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
7713 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
7714 operands. Use "N" constraint instead of "n".
7716 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
7718 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
7720 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
7723 * config/i386/i386.c (iamcu_cost): New.
7724 (m_IAMCU): Likewise.
7725 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
7726 (processor_target_table): Add an entry for "iamcu".
7727 (processor_alias_table): Likewise.
7728 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
7729 (ix86_adjust_cost): Likewise.
7730 (ia32_multipass_dfa_lookahead): Likewise.
7731 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
7732 * config/i386/x86-tune.def: Updated for m_IAMCU.
7734 2015-07-06 Richard Biener <rguenther@suse.de>
7736 PR tree-optimization/66772
7737 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
7738 values are available in the PHI node BB when there are
7739 still unexecutable edges.
7741 2015-07-06 Richard Biener <rguenther@suse.de>
7743 PR tree-optimization/66767
7744 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
7745 Make sure to build the alignment test on a SSA name without
7746 final alignment info valid only if the alignment test
7749 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
7752 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
7753 loop start when inserting LSETUP.
7755 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
7758 * config/i386/i386.c (ix86_option_override_internal): Allow
7759 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
7761 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7763 * read-md.c (decimal_string): Rename to ...
7764 (md_decimal_string): ... this.
7765 (handle_enum): Reflect this.
7767 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
7770 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
7772 2015-07-06 Richard Biener <rguenther@suse.de>
7775 * match.pd: Add missing constraint of y to REAL_CST in
7776 REAL_CST - x CMP y to y - CST CMP x simplification.
7778 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
7780 PR tree-optimization/66757
7781 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
7783 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
7784 Sandra Loosemore <sandra@codesourcery.com>
7786 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
7787 Delete extern declaration.
7788 (gprel_constant_p): Add extern declaration.
7789 * config/nios2/constraints.md ("S"): Use gprel_constant_p
7790 instead of nios2_symbol_ref_in_small_data_p.
7791 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
7792 (nios2_symbol_ref_in_small_data_p): Make static.
7793 (gprel_constant_p): Make non-static.
7795 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
7797 * doc/fragments.texi (Target Fragment): Convert debian.org
7799 * doc/install.texi (Configuration): Ditto.
7801 2015-07-05 Jakub Jelinek <jakub@redhat.com>
7803 PR tree-optimization/66718
7804 * tree-vect-stmts.c (vectorizable_call): Replace uses of
7805 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
7807 PR tree-optimization/66718
7808 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
7809 vectorizable_load, vectorizable_condition): Move vectype,
7810 nunits, ncopies computation after checking what kind of statement
7813 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7815 * target-insns.def (extv, extzv, insv): New targetm instruction
7817 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
7819 * recog.c (simplify_while_replacing): Likewise.
7821 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7823 * target-insns.def (doloop_begin, doloop_end): New targetm
7824 instruction patterns.
7825 * loop-init.c: Include target.h.
7826 (pass_loop2::gate): Use the new targetm patterns instead of
7827 HAVE_*/gen_* interface.
7828 (pass_rtl_doloop::gate): Likewise.
7829 (pass_rtl_doloop::execute): Remove preprocessor condition.
7830 * hw-doloop.c: Build unconditionally.
7831 * loop-doloop.c: Likewise.
7832 (doloop_optimize): Use the new targetm patterns instead of
7833 HAVE_*/gen_* interface.
7834 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
7835 * modulo-sched.c (doloop_register_get): Likewise.
7837 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7839 * target-insns.def (clear_cache): New targetm instruction pattern.
7840 * builtins.c (expand_builtin___clear_cache): Use it instead of
7841 HAVE_*/gen_* interface.
7843 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7845 * target-insns.def (allocate_stack, check_stack, probe_stack)
7846 (probe_stack_address, split_stack_prologue, split_stack_space_check):
7847 New targetm instruction patterns.
7848 * explow.c (allocate_dynamic_stack_space): Use them instead of
7849 HAVE_*/gen_* interface.
7850 (emit_stack_probe): Likewise.
7851 (probe_stack_range): Likewise.
7852 * function.c (thread_prologue_and_epilogue_insns): Likewise.
7854 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7856 * target-insns.def (stack_protect_set, stack_protect_test): New
7857 targetm instruction patterns.
7858 * cfgexpand.c (stack_protect_prologue): Use them instead of
7859 HAVE_*/gen_* interface.
7860 * function.c (stack_protect_epilogue): Likewise.
7862 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7864 * expr.h (gen_move_insn_uncast): Delete.
7865 * expr.c (gen_move_insn_uncast): Delete.
7867 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7869 * target-insns.def (restore_stack_block, restore_stack_function)
7870 (restore_stack_nonlocal, save_stack_block, save_stack_function)
7871 (save_stack_nonlocal): New targetm instruction patterns.
7872 * builtins.c (expand_builtin_apply): Use them instead of
7873 HAVE_*/gen_* interface.
7874 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
7876 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7878 * target-insns.def (trap): New targetm instruction pattern.
7879 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
7881 * explow.c (allocate_dynamic_stack_space): Likewise.
7882 * ifcvt.c (find_if_header): Likewise.
7884 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7886 * target-insns.def (prefetch): New targetm instruction pattern.
7887 * tree-ssa-loop-prefetch.c: Include targeth.
7888 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
7889 of HAVE_*/gen_* interface.
7890 * builtins.c (expand_builtin_prefetch): Likewise.
7891 * toplev.c (process_options): Likewise.
7893 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7895 * target-insns.def (untyped_call, untyped_return): New targetm
7896 instruction patterns.
7897 * builtins.c (expand_builtin_apply): Use them instead of
7898 HAVE_*/gen_* interface.
7899 (result_vector): Define unconditionally.
7901 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7903 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
7904 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
7905 (nonlocal_goto_receiver): New targetm instruction patterns.
7906 * builtins.c (expand_builtin_setjmp_setup): Use them instead
7907 of HAVE_*/gen_* interface.
7908 (expand_builtin_setjmp_receiver): Likewise.
7909 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
7910 * except.c (expand_dw2_landing_pad_for_region): Likewise.
7912 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7914 * target.def: Add code_for_* hooks.
7915 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
7916 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
7917 * target-insns.def (casesi, tablejump): New targetm instruction
7919 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
7920 (do_tablejump): Likewise.
7921 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
7922 (expand_sjlj_dispatch_table): Likewise.
7923 * targhooks.c (default_case_values_threshold): Likewise.
7925 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
7927 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
7928 Use rtx_insn * instead of rtx.
7929 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
7930 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
7931 (nios2_call_tls_get_addr): Likewise.
7932 (nios2_emit_expensive_div): Likewise.
7933 (nios2_emit_move_sequence): Change return type to bool.
7934 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
7935 Change return type to bool.
7937 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7940 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
7942 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
7945 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
7946 of register_operand. Remove constraint.
7948 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
7950 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
7953 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
7955 * attribs.c (decl_attributes): Guard inform with the return value
7956 of the preceding warning.
7958 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
7960 * doc/invoke.texi (moverride): Move to correct section.
7962 2015-07-03 Richard Biener <rguenther@suse.de>
7964 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
7966 (dt_operand::gen_gimple_expr): After valueizing operands
7967 re-canonicalize operand order for commutative tree codes.
7969 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
7972 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
7974 (__crc32w): Likewise.
7975 (__crc32d): Likewise.
7976 (__rdpmc): Likewise.
7977 (__rdtscp): Likewise.
7979 (_rdtscp): Likewise.
7980 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
7983 2015-07-03 Richard Biener <rguenther@suse.de>
7985 * fold-const.c (fold_mathfn_compare): Remove.
7986 (fold_inf_compare): Likewise.
7987 (fold_comparison): Move floating point comparison simplifications...
7988 * match.pd: ... to patterns here. Introduce simple_comparisons
7989 operator list and use it for patterns formerly in fold_comparison.
7991 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
7993 PR tree-optimization/66119
7994 * toplev.c (process_options): Don't set up default values for
7995 the sra_max_scalarization_size_{speed,size} parameters.
7996 * tree-sra (analyze_all_variable_accesses): If no values
7997 have been set for the sra_max_scalarization_size_{speed,size}
7998 parameters, call get_move_ratio to get target defaults.
8000 2015-07-03 Richard Biener <rguenther@suse.de>
8002 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
8003 * match.pd: ... here.
8005 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
8008 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
8009 is not actually the default on FreeBSD.
8011 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8013 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
8015 (CMPGE_8HI): Likewise.
8016 (CMPGE_4SI): Likewise.
8017 (CMPGE_2DI): Likewise.
8018 (CMPGE_U16QI): Likewise.
8019 (CMPGE_U8HI): Likewise.
8020 (CMPGE_U4SI): Likewise.
8021 (CMPGE_U2DI): Likewise.
8022 (CMPLE_16QI): Likewise.
8023 (CMPLE_8HI): Likewise.
8024 (CMPLE_4SI): Likewise.
8025 (CMPLE_2DI): Likewise.
8026 (CMPLE_U16QI): Likewise.
8027 (CMPLE_U8HI): Likewise.
8028 (CMPLE_U4SI): Likewise.
8029 (CMPLE_U2DI): Likewise.
8030 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8031 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
8032 ALTIVEC_BUILTIN_VEC_CMPLE.
8033 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
8034 floating-point vector modes.
8035 (vector_nlt<mode>): New define_expand.
8036 (vector_nltu<mode>): Likewise.
8037 (vector_ngt<mode>): Likewise.
8038 (vector_ngtu<mode>): Likewise.
8040 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
8042 PR rtl-optimization/66706
8043 * combine.c (make_compound_operation): If an AND of SUBREG of
8044 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
8046 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
8048 * tree-pass.h (make_pass_ch_vect): New.
8049 * passes.def: Add pass_ch_vect just before pass_if_conversion.
8051 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
8052 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
8053 make_pass_ch_vect): New.
8054 (pass_ch): Extend ch_base.
8056 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
8057 (ch_base::copy_headers): ...here.
8059 2015-07-02 Richard Biener <rguenther@suse.de>
8061 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
8062 * fold-const.c (get_pointer_modulus_and_residue): Remove.
8063 (fold_binary_loc): Implement (T)ptr & CST in terms of
8064 get_pointer_alignment_1.
8065 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
8066 Make sure to build the alignment test on a SSA name without
8067 final alignment info valid only after the prologue.
8069 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
8071 * config/cris/cris.md ("epilogue"): Remove condition.
8072 ("prologue"): Ditto.
8074 2015-07-02 Richard Biener <rguenther@suse.de>
8076 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
8077 parameter to record a condition that is false.
8078 (record_conditions): When recording an extra NE_EXPR that is
8079 true also record a EQ_EXPR that is false.
8081 2015-07-02 Bin Cheng <bin.cheng@arm.com>
8083 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
8084 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
8085 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
8086 (set_iv, find_interesting_uses_address, add_candidate_1): New
8087 argument to alloc_iv.
8088 (find_interesting_uses_op, find_interesting_uses_cond): Don't
8089 duplicate struct iv.
8090 (free_loop_data): Don't free struct iv explicitly.
8091 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
8093 2015-07-01 DJ Delorie <dj@redhat.com>
8095 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
8097 (SUPPORTS_DISCRIMINATOR): Define.
8099 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
8102 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
8103 there are no CALLs in the same pattern.
8105 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8107 PR rtl-optimization/61047
8108 * rtlanal.c (get_initial_register_offset): New function.
8109 (rtx_addr_can_trap_p_1): Check offsets of stack references.
8111 2015-07-01 Richard Biener <rguenther@suse.de>
8113 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
8114 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
8115 ~X CMP C -> X CMP' ~C to ...
8116 * match.pd: ... patterns here.
8118 2015-07-01 Nick Clifton <nickc@redhat.com>
8120 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
8121 a 16-bit value into a 20-bit memory slot.
8123 2015-07-01 Jiong Wang <jiong.wang@arm.com>
8125 * doc/sourcebuild.texi (AArch64-specific attributes): Document
8126 "aarch64_tiny", "aarch64_small", "aarch64_large",
8127 "aarch64_little_endian", "aarch64_big_endian".
8129 2015-07-01 Jiong Wang <jiong.wang@arm.com>
8131 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
8132 Document "aarch64_small_fpic".
8134 2015-07-01 Jiong Wang <jiong.wang@arm.com>
8136 * configure.ac: Add check for aarch64 assembler -fpic relocation
8138 * configure: Regenerate.
8139 * config.in: Regenerate.
8140 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
8141 to -fPIC if not support of -fpic relocation modifier in assembler.
8143 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
8146 * rtl.c (classify_insn): Handle returns in PARALLELs.
8148 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
8151 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
8152 to true if the function is nested and if not optimizing.
8153 (convert_local_omp_clauses): Initialize need_frame to true if the
8154 function contains nested functions and if not optimizing.
8156 2015-07-01 Richard Biener <rguenther@suse.de>
8158 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
8159 (X & Y) ^ Y -> ~X & Y transforms to ...
8160 * match.pd: ... here.
8162 2015-07-01 Richard Biener <rguenther@suse.de>
8164 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
8165 of converts to avoid uninteresting noise from the conversion
8166 simplifying patterns.
8168 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
8170 * config/c6x/c6x.c (try_rename_operands): Do not depend on
8171 gcc_assert evaluating its argument for side-effect.
8173 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
8176 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
8179 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
8181 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
8182 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
8183 (hash_scc): Add this_ref_p and ref_p parameters and pass them
8184 to the inner DFS walk.
8186 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
8188 * target-insns.def (jump): New targetm instruction pattern.
8189 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
8190 instead of gen_jump.
8191 (fix_up_crossing_landing_pad): Likewise.
8192 (add_labels_and_missing_jumps): Likewise.
8193 (fix_crossing_conditional_branches): Likewise.
8194 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8195 (force_nonfallthru_and_redirect): Likewise.
8196 * cse.c (cse_insn): Likewise.
8197 * expmed.c (expand_divmod): Likewise.
8198 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
8199 * haifa-sched.c (init_before_recovery): Likewise.
8200 (sched_create_recovery_edges): Likewise.
8201 * ifcvt.c (find_cond_trap): Likewise.
8202 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
8203 (expand_float, expand_fix): Likewise.
8204 * stmt.c (emit_jump): Likewise.
8206 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
8208 * defaults.h (HAVE_load_multiple, gen_load_multiple)
8209 (HAVE_store_multiple, gen_store_multiple): Delete.
8210 * target-insns.def (load_multiple, store_multiple): New targetm
8211 instruction patterns.
8212 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
8213 of HAVE_*/gen_* interface.
8215 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
8217 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
8218 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
8219 (gen_mem_signal_fence): Delete.
8220 * target-insns.def (mem_signal_fence, mem_thread_fence)
8221 (memory_barrier): New targetm instruction patterns.
8222 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
8224 (expand_mem_signal_fence): Likewise.
8226 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
8228 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
8229 * target-insns.def (epilogue, prologue, sibcall_prologue): New
8230 targetm instruction patterns.
8231 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
8233 * calls.c (expand_call): Likewise.
8234 * cfgrtl.c (cfg_layout_finalize): Likewise.
8235 * df-scan.c (df_get_entry_block_def_set): Likewise.
8236 (df_get_exit_block_use_set): Likewise.
8237 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
8238 * final.c (final_start_function): Likewise.
8239 * function.c (thread_prologue_and_epilogue_insns): Likewise.
8240 (reposition_prologue_and_epilogue_notes): Likewise.
8241 * reorg.c (find_end_label): Likewise.
8242 * toplev.c (process_options): Likewise.
8244 2015-06-30 David Malcolm <dmalcolm@redhat.com>
8246 * typed-splay-tree.h: New file.
8248 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
8251 * lra-int.h (lra_substitute_pseudo): Add a parameter.
8252 (lra_substitute_pseudo_within_insn): Ditto.
8253 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
8255 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
8256 to lra_substitute_pseudo.
8257 * lra-lives.c (process_bb_lives): Add an argument to
8258 lra_substitute_pseudo_within_insn call.
8259 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
8260 argument to lra_substitute_pseudo and
8261 lra_substitute_pseudo_within_insn calls.
8262 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
8264 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
8266 * configure: Regenerated.
8268 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
8270 * config.gcc: Support i[34567]86-*-elfiamcu target.
8271 * config/i386/iamcu.h: New.
8272 * config/i386/i386.opt: Add -miamcu.
8273 * doc/invoke.texi: Document -miamcu.
8274 * common/config/i386/i386-common.c (ix86_handle_option): Turn
8275 off x87/MMX/SSE/AVX codegen for -miamcu.
8276 * config/i386/i386-c.c (ix86_target_macros_internal): Define
8277 __iamcu/__iamcu__ for -miamcu.
8278 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
8279 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
8280 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
8281 * config/i386/i386.c (ix86_option_override_internal): Ignore and
8282 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
8283 MCU by default. Default long double to 64-bit for Intel MCU.
8284 Turn on -freg-struct-return for Intel MCU. Issue an error when
8285 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
8287 (function_arg_advance_32): Pass value whose size is no larger
8288 than 8 bytes in registers for Intel MCU.
8289 (function_arg_32): Likewise.
8290 (ix86_return_in_memory): Return value whose size is no larger
8291 than 8 bytes in registers for Intel MCU.
8292 (iamcu_alignment): New function.
8293 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
8295 (ix86_local_alignment): Don't increase alignment for Intel MCU.
8296 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
8299 2015-06-30 Marek Polacek <polacek@redhat.com>
8301 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
8302 both operands of the resulting expression.
8304 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
8305 the final expression with the operand's type and then convert
8306 it to the type of the expression.
8308 2015-06-30 Richard Biener <rguenther@suse.de>
8310 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
8311 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
8312 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
8313 * match.pd: ... to patterns here.
8315 2015-06-30 Richard Biener <rguenther@suse.de>
8317 PR tree-optimization/66704
8318 * tree-vect-data-refs.c (vect_setup_realignment): Use
8319 make_ssa_name for non-SSA name source.
8321 2015-06-30 Jakub Jelinek <jakub@redhat.com>
8324 * omp-low.c (simd_clone_adjust): Handle addressable linear
8325 or uniform parameters or non-gimple type uniform parameters.
8327 2015-06-30 Richard Biener <rguenther@suse.de>
8329 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
8330 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
8331 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
8332 * match.pd: ... here.
8333 Add a few cases of A - B -> A + (-B) when B "easily" negates.
8334 Move (x & y) | x -> x and friends before
8335 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
8337 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
8339 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
8340 -mfix-ut699 is not specified.
8341 (leon3_load): Rename into...
8342 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
8345 2015-06-30 Marek Polacek <polacek@redhat.com>
8347 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
8348 * match.pd: ... here.
8350 2015-06-30 Richard Biener <rguenther@suse.de>
8352 * target-insns.def (canonicalize_funcptr_for_compare): Add.
8353 * fold-const.c (build_range_check): Replace uses of
8354 HAVE_canonicalize_funcptr_for_compare.
8355 (fold_widened_comparison): Likewise.
8356 (fold_sign_changed_comparison): Likewise.
8357 * dojump.c: Include "target.h".
8358 (do_compare_and_jump): Replace uses of
8359 HAVE_canonicalize_funcptr_for_compare and
8360 gen_canonicalize_funcptr_for_compare.
8361 * expr.c (do_store_flag): Likewise.
8363 2015-06-30 Tom de Vries <tom@codesourcery.com>
8365 PR tree-optimization/66652
8366 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
8367 max_loop_iterations to determine if nit + 1 overflows.
8369 2015-06-30 Richard Biener <rguenther@suse.de>
8371 * tree-vrp.c (register_edge_assert_for_2): Also register
8372 asserts for dominating conversion results.
8374 2015-06-30 Bin Cheng <bin.cheng@arm.com>
8376 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
8379 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
8382 * configure.ac: Fix filds and fildq test for 64-bit.
8383 * configure: Regenerated.
8385 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
8387 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
8388 (nvptx_reorg): Here. Keep the non-subreg pieces.
8390 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
8392 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
8393 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
8395 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
8397 * config/i386/i386.md (*jcc_1): Use %! in asm template.
8398 Set attribute "length_nobnd" instead of "length".
8401 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
8403 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
8405 * config/nios2/nios2.c (nios2_delegitimize_address): Make
8406 assert less restrictive.
8408 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
8411 * cgraphunit.c (cgraph_node::finalize_function): Do not call
8412 do_warn_unused_parameter.
8413 * function.c (do_warn_unused_parameter): Move from here.
8414 * function.h (do_warn_unused_parameter): Do not declare.
8416 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
8419 * gcc.target/arm/armv-sync-comp-swap.c: New.
8420 * gcc.target/arm/armv-sync-op-acquire.c: New.
8421 * gcc.target/arm/armv-sync-op-full.c: New.
8422 * gcc.target/arm/armv-sync-op-release.c: New.
8424 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
8427 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
8428 initial acquire barrier with final barrier.
8430 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
8433 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
8434 initial acquire barrier with final barrier.
8436 2015-06-29 Richard Henderson <rth@redhat.com>
8438 * config/i386/constraints.md (Bf): New constraint.
8439 * config/i386/i386-c.c (ix86_target_macros): Define
8440 __GCC_ASM_FLAG_OUTPUTS__.
8441 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
8443 * doc/extend.texi (FlagOutputOperands): Document them.
8445 2015-06-29 Jiong Wang <jiong.wang@arm.com>
8447 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
8448 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
8450 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
8451 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
8452 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
8453 (aarch64_symbol_context): Ditto.
8454 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
8455 and use new pattern name.
8456 (aarch64_expand_mov_immediate): Ditto.
8457 (aarch64_print_operand): Ditto.
8458 (aarch64_classify_tls_symbol): Ditto.
8460 2015-06-29 Marek Polacek <polacek@redhat.com>
8461 Marc Glisse <marc.glisse@inria.fr>
8463 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
8464 * match.pd: ... pattern here.
8466 2015-06-29 Tom de Vries <tom@codesourcery.com>
8468 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
8471 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
8473 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
8474 feature description, split out the native option, add a link to
8475 the feature documentation, rearrange and slightly rewrite text.
8476 (Aarch64 options, -mcpu): Likewise.
8477 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
8478 +rdma implies Adv. SIMD.
8480 2015-06-29 Marek Polacek <polacek@redhat.com>
8483 * function.c (stack_protect_epilogue): Remove a cast to int.
8484 * doc/invoke.texi: Update -Wswitch-bool description.
8486 2015-06-29 Richard Biener <rguenther@suse.de>
8488 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
8489 * fold-const.c (fold_binary_loc): Move &A - &B simplification
8490 via ptr_difference_const ...
8491 * match.pd: ... here.
8492 When matching (X ^ Y) == Y also match with swapped operands.
8494 2015-06-29 Richard Biener <rguenther@suse.de>
8496 * lto-streamer.h (LTO_major_version): Bump to 5.
8498 2015-06-29 Richard Biener <rguenther@suse.de>
8500 PR tree-optimization/66677
8501 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
8502 STMT_VINFO_VEC_STMT clobbering less strict.
8504 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
8507 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
8508 division, compute max and min when value ranges for dividend and
8509 divisor are available.
8511 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
8512 Sandra Loosemore <sandra@codesourcery.com>
8514 * regrename.h (regrename_do_replace): Change to return bool.
8515 * regrename.c (rename_chains): Check return value of
8517 (regrename_do_replace): Re-validate the modified insns and
8519 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
8520 Update to match rename_chains changes.
8521 * config/c6x/c6x.c (try_rename_operands): Assert that
8522 regrename_do_replace returns true.
8524 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
8526 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
8527 operand 2 here. Use copy_addr_to_reg to copy non-index
8528 register operand 2 to a temporary.
8529 (<mode>_stx): Ditto for operand 1.
8530 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
8531 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
8532 (ix86_store_bounds): Ditto.
8534 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
8536 * print-tree.c (print_node) [TREE_VEC]: Print its length.
8538 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
8540 * gimple.c (gimple_call_set_fndecl): Remove.
8541 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
8542 build1_loc directly instead of build_fold_addr_expr_loc.
8544 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
8546 * hash-map.h (hash_map::traverse): Use the definition of the
8547 Key typedef rather than the typedef itself.
8549 2015-06-26 Martin Jambor <mjambor@suse.cz>
8552 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
8553 NULL instead of calling dump_enabled_p.
8555 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
8557 * config/aarch64/aarch64.opt: (override): New.
8558 * doc/invoke.texi (override): Document.
8559 * config/aarch64/aarch64.c (aarch64_flag_desc): New
8560 (aarch64_fusible_pairs): Likewise.
8561 (aarch64_tuning_flags): Likewise.
8562 (aarch64_tuning_override_function): Likewise.
8563 (aarch64_tuning_override_functions): Likewise.
8564 (aarch64_parse_one_option_token): Likewise.
8565 (aarch64_parse_boolean_options): Likewise.
8566 (aarch64_parse_fuse_string): Likewise.
8567 (aarch64_parse_tune_string): Likewise.
8568 (aarch64_parse_one_override_token): Likewise.
8569 (aarch64_parse_override_string): Likewise.
8570 (aarch64_override_options): Parse the -override string if it
8573 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
8575 * config/aarch64/aarch64-protos.h (tune_params): Remove
8577 (aarch64_tune_params): Remove const, change to no longer be
8579 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
8580 change to no longer be a pointer, initialize to generic_tunings.
8581 (aarch64_min_divisions_for_recip_mul): Change dereference of
8582 aarch64_tune_params to member access.
8583 (aarch64_reassociation_width): Likewise.
8584 (aarch64_rtx_mult_cost): Likewise.
8585 (aarch64_address_cost): Likewise.
8586 (aarch64_branch_cost): Likewise.
8587 (aarch64_rtx_costs): Likewise.
8588 (aarch64_register_move_cost): Likewise.
8589 (aarch64_memory_move_cost): Likewise.
8590 (aarch64_sched_issue_rate): Likewise.
8591 (aarch64_builtin_vectorization_cost): Likewise.
8592 (aarch64_override_options): Take a copy of the selected tuning
8593 struct in to aarch64_tune_params, rather than just setting
8594 a pointer, change dereferences of aarch64_tune_params to member
8596 (aarch64_override_options_after_change): Change dereferences of
8597 aarch64_tune_params to member access.
8598 (aarch64_macro_fusion_p): Likewise.
8599 (aarch_macro_fusion_pair_p): Likewise.
8600 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
8602 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
8604 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
8605 (aarch64_tune_flags): Likewise.
8606 (AARCH64_TUNE_FMA_STEERING): Likewise.
8607 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
8608 to AARCH64_FL_USE_FMA_STEERING_PASS.
8609 (cortex-a57.cortex-a53): Likewise.
8610 (cortex-a72): Use cortexa72_tunings.
8611 (cortex-a72.cortex-a53): Likewise.
8612 (exynos-m1): Likewise.
8613 * config/aarch64/aarch64-protos.h (tune_params): Add
8614 a field: extra_tuning_flags.
8615 * config/aarch64/aarch64-tuning-flags.def: New.
8616 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
8617 (aarch64_extra_tuning_flags): Likewise.
8618 (aarch64_tune_params): Declare here.
8619 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
8620 (cortexa53_tunings): Likewise.
8621 (cortexa57_tunings): Likewise.
8622 (thunderx_tunings): Likewise.
8623 (xgene1_tunings): Likewise.
8624 (cortexa72_tunings): New.
8625 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
8626 (gate): Check against aarch64_tune_params.
8627 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
8630 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
8632 * config/aarch64/aarch64-fusion-pairs.def: New.
8633 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
8634 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
8635 aarch64_fusion_pairs.
8636 (AARCH64_FUSE_MOV_MOVK): Likewise.
8637 (AARCH64_FUSE_ADRP_ADD): Likewise.
8638 (AARCH64_FUSE_MOVK_MOVK): Likewise.
8639 (AARCH64_FUSE_ADRP_LDR): Likewise.
8640 (AARCH64_FUSE_CMP_BRANCH): Likewise.
8642 2015-06-26 Jiong Wang <jiong.wang@arm.com>
8644 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
8645 SYMBOL_SMALL_GOT_28K.
8646 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
8647 relocation modifiers.
8648 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
8649 (ldr_got_small_28k_<mode>): New.
8650 (ldr_got_small_28k_sidi): New.
8651 * config/aarch64/iterators.md (got_modifier): New mode iterator.
8652 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
8653 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
8654 SYMBOL_SMALL_GOT_28K.
8655 (aarch64_rtx_costs): Add costs for new instruction sequences.
8656 (initialize_aarch64_code_model): Initialize new model.
8657 (aarch64_classify_symbol): Recognize new model and new symbol classification.
8658 (aarch64_asm_preferred_eh_data_format): Support new model.
8659 (aarch64_load_symref_appropriately): Generate new instruction
8660 sequences for -fpic.
8661 (TARGET_USE_PSEUDO_PIC_REG): New definition.
8662 (aarch64_use_pseudo_pic_reg): New function.
8664 2015-06-26 Jiong Wang <jiong.wang@arm.com>
8666 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
8667 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
8668 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
8669 (aarch64_expand_mov_immediate): Ditto.
8670 (aarch64_print_operand): Ditto.
8671 (aarch64_classify_symbol): Ditto.
8673 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
8675 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
8677 2015-06-26 Bin Cheng <bin.cheng@arm.com>
8680 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
8681 assertion failed. Remove assertion itself.
8683 2015-06-26 Richard Biener <rguenther@suse.de>
8685 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
8686 and -A CMP CST -> A CMP -CST which is redundant with a pattern
8688 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
8689 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
8690 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
8691 * match.pd: ... patterns here.
8693 2015-06-26 Marek Polacek <polacek@redhat.com>
8695 * match.pd ((x | y) & ~(x & y) -> x ^ y,
8696 (x | y) & (~x ^ y) -> x & y): New patterns.
8698 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
8700 * rtl.h (emit): Add an optional boolean parameter to control
8701 whether barriers are emitted.
8702 * emit-rtl.c (emit): Likewise.
8703 * gensupport.c (get_emit_function): Return null rather than "emit".
8704 * genemit.c (gen_emit_seq): Handle the null return value.
8705 Don't emit barriers after the final instruction in the sequence.
8706 * gentarget-def.c (main): Don't emit barriers after the instruction.
8708 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8710 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
8713 2015-06-26 Richard Biener <rguenther@suse.de>
8715 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
8717 2015-06-26 Richard Biener <rguenther@suse.de>
8719 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
8720 irrespective on whether the inner operation has a single use
8721 of both off are constant.
8723 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
8724 Segher Boessenkool <segher@kernel.crashing.org>
8727 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
8728 before doing PUT_MODE or PUT_CODE on operands to avoid
8729 in-place RTX modification.
8731 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
8733 * gentarget-def.c (def_target_insn): Cast return of strtol to
8736 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
8738 * gimple.h (gimple_call_set_fn): Move inline function.
8739 * gimple.c (gimple_call_set_fn): Relocate here.
8741 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
8745 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
8746 the replacement insn will work.
8748 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
8750 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
8753 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
8755 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
8756 * cgraph.h: Include ipa-ref.h and plugin-api.h.
8757 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
8758 (symtab_node::address_can_be_compared_p): Move function.
8759 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
8761 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
8762 * auto-profile.c: Likewise.
8763 * bb-reorder.c: Likewise.
8764 * builtins.c: Likewise.
8765 * calls.c: Likewise.
8766 * cfgexpand.c: Likewise.
8767 * cgraphbuild.c: Likewise.
8768 * cgraphclones.c: Likewise.
8769 * cgraphunit.c: Likewise.
8770 * combine.c: Likewise.
8771 * coverage.c: Likewise.
8772 * data-streamer-in.c: Likewise.
8773 * data-streamer-out.c: Likewise.
8774 * data-streamer.c: Likewise.
8775 * dbxout.c: Likewise.
8776 * dwarf2out.c: Likewise.
8777 * except.c: Likewise.
8779 * final.c: Likewise.
8780 * fold-const.c: Likewise.
8781 * ggc-page.c: Likewise.
8782 * gimple-fold.c: Likewise.
8783 * gimple-iterator.c: Likewise.
8784 * gimple-pretty-print.c: Likewise.
8785 * gimple-streamer-in.c: Likewise.
8786 * gimple-streamer-out.c: Likewise.
8787 * gimple.c: Likewise.
8788 * gimplify.c: Likewise.
8789 * ipa-chkp.c: Likewise.
8790 * ipa-comdats.c: Likewise.
8791 * ipa-cp.c: Likewise.
8792 * ipa-devirt.c: Likewise.
8793 * ipa-icf-gimple.c: Likewise.
8794 * ipa-icf.c: Likewise.
8795 * ipa-inline-analysis.c: Likewise.
8796 * ipa-inline-transform.c: Likewise.
8797 * ipa-inline.c: Likewise.
8798 * ipa-polymorphic-call.c: Likewise.
8799 * ipa-profile.c: Likewise.
8800 * ipa-prop.c: Likewise.
8801 * ipa-pure-const.c: Likewise.
8802 * ipa-ref.c: Likewise.
8803 * ipa-reference.c: Likewise.
8804 * ipa-split.c: Likewise.
8805 * ipa-utils.c: Likewise.
8806 * ipa-visibility.c: Likewise.
8808 * langhooks.c: Likewise.
8809 * lto-cgraph.c: Likewise.
8810 * lto-compress.c: Likewise.
8811 * lto-opts.c: Likewise.
8812 * lto-section-in.c: Likewise.
8813 * lto-section-out.c: Likewise.
8814 * lto-streamer-in.c: Likewise.
8815 * lto-streamer-out.c: Likewise.
8816 * lto-streamer.c: Likewise.
8817 * omp-low.c: Likewise.
8818 * opts-global.c: Likewise.
8819 * passes.c: Likewise.
8820 * predict.c: Likewise.
8821 * print-tree.c: Likewise.
8822 * profile.c: Likewise.
8824 * sanopt.c: Likewise.
8825 * stor-layout.c: Likewise.
8826 * symtab.c: Likewise.
8827 * toplev.c: Likewise.
8828 * trans-mem.c: Likewise.
8829 * tree-cfg.c: Likewise.
8830 * tree-chkp.c: Likewise.
8831 * tree-eh.c: Likewise.
8832 * tree-emutls.c: Likewise.
8833 * tree-inline.c: Likewise.
8834 * tree-nested.c: Likewise.
8835 * tree-parloops.c: Likewise.
8836 * tree-pretty-print.c: Likewise.
8837 * tree-profile.c: Likewise.
8838 * tree-sra.c: Likewise.
8839 * tree-ssa-alias.c: Likewise.
8840 * tree-ssa-live.c: Likewise.
8841 * tree-ssa-loop-ivcanon.c: Likewise.
8842 * tree-ssa-loop-ivopts.c: Likewise.
8843 * tree-ssa-pre.c: Likewise.
8844 * tree-ssa-sccvn.c: Likewise.
8845 * tree-ssa-strlen.c: Likewise.
8846 * tree-ssa-structalias.c: Likewise.
8847 * tree-streamer-in.c: Likewise.
8848 * tree-streamer-out.c: Likewise.
8849 * tree-streamer.c: Likewise.
8850 * tree-switch-conversion.c: Likewise.
8851 * tree-tailcall.c: Likewise.
8852 * tree-vect-data-refs.c: Likewise.
8853 * tree-vect-stmts.c: Likewise.
8854 * tree-vectorizer.c: Likewise.
8857 * ubsan.c: Likewise.
8858 * value-prof.c: Likewise.
8859 * varasm.c: Likewise.
8860 * varpool.c: Likewise.
8861 * config/arm/arm.c: Likewise.
8862 * config/bfin/bfin.c: Likewise.
8863 * config/c6x/c6x.c: Likewise.
8864 * config/cris/cris.c: Likewise.
8865 * config/darwin-c.c: Likewise.
8866 * config/darwin.c: Likewise.
8867 * config/i386/i386.c: Likewise.
8868 * config/i386/winnt.c: Likewise.
8869 * config/microblaze/microblaze.c: Likewise.
8870 * config/mips/mips.c: Likewise.
8871 * config/rs6000/rs6000.c: Likewise.
8872 * config/rx/rx.c: Likewise.
8873 * config/s390/s390.c: Likewise.
8874 * config/tilegx/mul-tables.c: Likewise.
8876 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8878 * config/aarch64/aarch64.c, config/alpha/alpha.c,
8879 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
8880 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
8881 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
8882 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
8883 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8884 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
8885 config/microblaze/microblaze.c, config/mips/mips.c,
8886 config/mmix/mmix.c, config/mn10300/mn10300.c,
8887 config/moxie/moxie.c, config/msp430/msp430.c,
8888 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
8889 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
8890 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
8891 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
8892 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8893 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8894 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
8895 target-def.h include.
8896 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
8898 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8900 * Makefile.in (TARGET_DEF): Add target-insns.def.
8901 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
8902 (build/gentarget-def.o): New rule.
8903 (genprogrtl): Add target-def.
8904 * target-insns.def, gentarget-def.c: New files.
8905 * target.def: Add targetm.have_* and targetm.gen_* hooks,
8906 based on the contents of target-insns.def.
8907 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
8908 (HAVE_return, gen_return): Delete.
8909 * target-def.h: Include insn-target-def.h.
8910 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
8911 instead of direct calls. Rely on them to do the appropriate assertions.
8912 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
8913 (convert_jumps_to_returns): Use targetm interface instead of
8915 (thread_prologue_and_epilogue_insns): Likewise.
8916 * reorg.c (find_end_label, dbr_schedule): Likewise.
8917 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
8918 * shrink-wrap.c (convert_to_simple_return): Likewise.
8919 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
8921 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8923 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
8924 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8925 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
8926 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
8927 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
8928 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8929 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
8930 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
8931 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
8932 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
8933 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
8934 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
8935 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
8936 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8937 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8938 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
8941 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8943 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
8944 (unbounded_int_hashmap_traits::key_type): Likewise.
8945 * hash-map.h (hash_map): Get the key type from the traits.
8946 * hash-traits.h (default_hash_traits): By default, inherit from the
8948 * alias.c (alias_set_traits): Delete.
8949 (alias_set_entry_d::children): Use alias_set_hash as the first
8951 (record_alias_subset): Update accordingly.
8952 * except.c (tree_hash_traits): Delete.
8953 (type_to_runtime_map): Use tree_hash as the first template parameter.
8954 (init_eh): Update accordingly.
8955 * genmatch.c (capture_id_map_hasher): Delete.
8956 (cid_map_t): Use nofree_string_hash as first template parameter.
8957 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
8958 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
8959 Use symbol_compare_hash as the first template parameter in
8961 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
8962 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
8964 * passes.c (pass_registry_hasher): Delete.
8965 (name_to_pass_map): Use nofree_string_hash as the first template
8967 (register_pass_name): Update accordingly.
8968 * sanopt.c (sanopt_tree_map_traits): Delete.
8969 (sanopt_tree_triplet_map_traits): Delete.
8970 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
8972 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
8973 the first template parameter.
8974 * sese.c (rename_map_hasher): Delete.
8975 (rename_map_type): Use tree_ssa_name_hash as the first template
8977 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
8978 (function_summary::m_map): Use map_hash as the first template
8980 (function_summary::release): Update accordingly.
8981 * tree-if-conv.c (phi_args_hash_traits): Delete.
8982 (predicate_scalar_phi): Use tree_operand_hash as the first template
8983 parameter to phi_arg_map.
8984 * tree-inline.h (dependence_hasher): Delete.
8985 (copy_body_data::dependence_map): Use dependence_hash as the first
8987 * tree-inline.c (remap_dependence_clique): Update accordingly.
8988 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
8989 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
8991 (addr_stridxptr): Update accordingly.
8992 * value-prof.c (profile_id_traits): Delete.
8993 (cgraph_node_map): Use profile_id_hash as the first template
8995 (init_node_map): Update accordingly.
8996 * config/alpha/alpha.c (string_traits): Delete.
8997 (machine_function::links): Use nofree_string_hash as the first
8999 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
9000 * config/m32c/m32c.c (pragma_traits): Delete.
9001 (pragma_htab): Use nofree_string_hash as the first template parameter.
9002 (m32c_note_pragma_address): Update accordingly.
9003 * config/mep/mep.c (pragma_traits): Delete.
9004 (pragma_htab): Use nofree_string_hash as the first template parameter.
9005 (mep_note_pragma_flag): Update accordingly.
9006 * config/mips/mips.c (mips16_flip_traits): Delete.
9007 (mflip_mips16_htab): Use nofree_string_hash as the first template
9009 (mflip_mips16_use_mips16_p): Update accordingly.
9010 (local_alias_traits): Delete.
9011 (mips16_local_aliases): Use nofree_string_hash as the first template
9013 (mips16_local_alias): Update accordingly.
9015 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9017 * hash-map-traits.h (default_hashmap_traits): Delete.
9019 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9021 * hash-map-traits.h (unbounded_hashmap_traits): New class.
9022 (unbounded_int_hashmap_traits): Likewise.
9023 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
9025 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9027 * ipa-icf.h (symbol_compare_hash): New class.
9028 (symbol_compare_hashmap_traits): Use it.
9029 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
9030 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
9031 (mem_alloc_description::reverse_mem_map_t): Remove redundant
9032 default_hashmap_traits.
9033 * sanopt.c (sanopt_tree_triplet_hash): New class.
9034 (sanopt_tree_triplet_map_traits): Use it.
9036 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9038 * gengtype-parse.c (require_template_declaration): Allow '+' in
9039 template parameters. Consolidate cases.
9040 * hash-traits.h (int_hash): New class.
9041 * alias.c (alias_set_hash): New structure.
9042 (alias_set_traits): Use it.
9043 * symbol-summary.h (function_summary::map_hash): New class.
9044 (function_summary::summary_hashmap_traits): Use it.
9045 * tree-inline.h (dependence_hash): New class.
9046 (dependence_hasher): Use it.
9047 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
9048 * value-prof.c (profile_id_hash): New class.
9049 (profile_id_traits): Use it.
9051 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9053 * config/mips/mips.c (mips16_flip_traits): Use it.
9054 (local_alias_traits, mips16_local_aliases): Convert from a map of
9055 rtxes to a map of symbol names.
9056 (mips16_local_alias): Update accordingly.
9058 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9060 * hash-traits.h (string_hash, nofree_string_hash): New classes.
9061 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
9062 * passes.c (pass_registry_hasher): Likewise.
9063 * config/alpha/alpha.c (string_traits): Likewise.
9064 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
9065 * config/m32c/m32c.c (pragma_traits): Likewise.
9066 * config/mep/mep.c (pragma_traits): Likewise.
9068 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9070 * tree-hash-traits.h (tree_hash): New class.
9071 * except.c: Include tree-hash-traits.h.
9072 (tree_hash_traits): Use tree_hash.
9074 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9076 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
9077 * sese.c: Include tree-hash-traits.h.
9078 (rename_map_hasher): Use tree_ssa_name_hasher.
9080 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9082 * tree-hash-traits.h (tree_decl_hash): New class.
9083 * tree-ssa-strlen.c: Include tree-hash-traits.h.
9084 (stridxlist_hash_traits): Use tree_decl_hash.
9086 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9088 * tree-hash-traits.h: New file.
9089 (tree_operand_hash): New class.
9090 * sanopt.c: Include tree-hash-traits.h.
9091 (sanopt_tree_map_traits): Use tree_operand_hash.
9092 * tree-if-conv.c: Include tree-hash-traits.h.
9093 (phi_args_hash_traits): Use tree_operand_hash.
9094 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
9095 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
9097 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9099 * hash-map-traits.h: Include hash-traits.h.
9100 (simple_hashmap_traits): New class.
9101 * mem-stats.h (hash_map): Change the default traits to
9102 simple_hashmap_traits<default_hash_traits<Key> >.
9104 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9106 * hash-table.h: Update comments.
9108 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9110 * hash-traits.h (default_hash_traits): New structure.
9111 * hash-set.h (default_hashset_traits): Delete.
9112 (hash_set): Use default_hash_traits<Key> instead of
9113 default_hashset_traits. Delete hash_entry type and use Key directly.
9114 * ipa-devirt.c (pair_traits): Delete.
9115 (default_hash_traits <type_pair>): Override.
9116 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
9117 (odr_types_equivalent_p, add_type_duplicate): Likewise.
9119 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9121 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
9123 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9125 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
9126 (has_is_empty, is_empty_helper): Delete.
9127 (has_mark_deleted, mark_deleted_helper): Delete.
9128 (has_mark_empty, mark_empty_helper): Delete.
9129 (hash_table::is_deleted): Call the Descriptor unconditionally.
9130 (hash_table::is_empty): Likewise.
9131 (hash_table::mark_deleted): Likewise.
9132 (hash_table::mark_empty): Likewise.
9134 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9136 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
9137 redundant typedefs and members.
9138 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
9140 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
9141 * ipa-devirt.c (odr_name_hasher): Likewise.
9142 (polymorphic_call_target_hasher): Likewise.
9143 * ira-costs.c (cost_classes_hasher): Likewise.
9144 * statistics.c (stats_counter_hasher): Likewise.
9145 * trans-mem.c (log_entry_hasher): Likewise.
9146 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
9147 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
9148 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
9149 * var-tracking.c (variable_hasher): Likewise.
9150 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
9151 Remove redundant typedefs and members.
9153 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9155 * hash-traits.h (ggc_cache_hasher): Rename to...
9156 (ggc_cache_remove): ...this and remove typedefs.
9157 (ggc_cache_ptr_hash): New class.
9158 * hash-table.h: Update commentary.
9159 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
9160 rather than ggc_cache_hasher.
9161 (const_wide_int_hasher, reg_attr_hasher): Likewise.
9162 (const_double_hasher, const_fixed_hasher): Likewise.
9163 * function.c (insn_cache_hasher): Likewise.
9164 * trans-mem.c (tm_wrapper_hasher): Likewise.
9165 * tree.h (tree_decl_map_cache_hasher): Likewise.
9166 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
9167 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
9168 * ubsan.c (tree_type_map_cache_hasher): Likewise.
9169 * varasm.c (tm_clone_hasher): Likewise.
9170 * config/i386/i386.c (dllimport_hasher): Likewise.
9171 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
9172 (tree_hasher): Likewise.
9174 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9176 * hash-traits.h (ggc_hasher): Rename to...
9177 (ggc_remover): ...this and remove typedefs.
9178 (ggc_cache_hasher): Update accordingly. Add typedefs.
9179 (ggc_ptr_hash): New class.
9180 * hash-table.h: Update comment.
9181 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
9183 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
9184 (tree_descriptor_hasher): Likewise.
9185 * cgraph.c (function_version_hasher): Likewise.
9186 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
9187 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
9188 (dw_loc_list_hasher, addr_hasher): Likewise.
9189 * function.h (used_type_hasher): Likewise.
9190 * function.c (temp_address_hasher): Likewise.
9191 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
9192 * libfuncs.h (libfunc_hasher): Likewise.
9193 * lto-streamer.h (decl_state_hasher): Likewise.
9194 * optabs.c (libfunc_decl_hasher): Likewise.
9195 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
9196 * varasm.c (section_hasher, object_block_hasher): Likewise.
9197 (const_rtx_desc_hasher): Likewise.
9198 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
9199 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
9201 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9203 * hash-traits.h (free_ptr_hash): New class.
9204 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
9205 rather than typed_free_remove. Remove redudant typedefs.
9206 (external_ref_hasher): Likewise.
9207 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
9208 (ehspec_hasher): Likewise.
9209 * ggc-common.c (saving_hasher): Likewise.
9210 * gimplify.c (gimplify_hasher): Likewise.
9211 * haifa-sched.c (delay_i2_hasher): Likewise.
9212 * loop-invariant.c (invariant_expr_hasher): Likewise.
9213 * loop-iv.c (biv_entry_hasher): Likewise.
9214 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
9215 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
9216 * tree-cfg.c (locus_discrim_hasher): Likewise.
9217 * tree-eh.c (finally_tree_hasher): Likewise.
9218 * tree-into-ssa.c (var_info_hasher): Likewise.
9219 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
9220 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
9221 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
9222 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
9223 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
9224 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
9225 (shared_bitmap_hasher): Likewise.
9226 * tree-ssa-threadupdate.c (redirection_data): Likewise.
9227 * tree-vectorizer.h (peel_info_hasher): Likewise.
9228 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
9229 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
9231 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9233 * hash-table.h: Update comments.
9234 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
9235 (nofree_ptr_hash): New class.
9236 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
9237 than typed_noop_remove. Remove redudant typedefs.
9238 * attribs.c (attribute_hasher): Likewise.
9239 * cfg.c (bb_copy_hasher): Likewise.
9240 * cselib.c (cselib_hasher): Likewise.
9241 * dse.c (invariant_group_base_hasher): Likewise.
9242 * dwarf2cfi.c (trace_info_hasher): Likewise.
9243 * dwarf2out.c (macinfo_entry_hasher): Likewise.
9244 (comdat_type_hasher, loc_list_hasher): Likewise.
9245 * gcse.c (pre_ldst_expr_hasher): Likewise.
9246 * genmatch.c (id_base): Likewise.
9247 * genrecog.c (test_pattern_hasher): Likewise.
9248 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
9249 * haifa-sched.c (delay_i1_hasher): Likewise.
9250 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
9251 * ipa-icf.h (congruence_class_group_hash): Likewise.
9252 * ipa-profile.c (histogram_hash): Likewise.
9253 * ira-color.c (allocno_hard_regs_hasher): Likewise.
9254 * lto-streamer.h (string_slot_hasher): Likewise.
9255 * lto-streamer.c (tree_entry_hasher): Likewise.
9256 * plugin.c (event_hasher): Likewise.
9257 * postreload-gcse.c (expr_hasher): Likewise.
9258 * store-motion.c (st_expr_hasher): Likewise.
9259 * tree-sra.c (uid_decl_hasher): Likewise.
9260 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
9261 (ssa_name_var_hash): Likewise.
9262 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
9263 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
9264 * tree-ssa-pre.c (pre_expr_d): Likewise.
9265 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
9266 * vtable-verify.h (registration_hasher): Likewise.
9267 * vtable-verify.c (vtbl_map_hasher): Likewise.
9268 * config/arm/arm.c (libcall_hasher): Likewise.
9269 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
9270 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
9271 * config/sol2.c (comdat_entry_hasher): Likewise.
9272 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
9273 (print_fold_checksum, fold_checksum_tree): Likewise.
9274 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
9275 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
9276 (fold_build_call_array_loc): Likewise.
9277 * tree-ssa-ccp.c (gimple_htab): Likewise.
9278 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
9279 rather than pointer_type.
9281 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9283 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
9284 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
9286 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9288 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
9289 (ggc_hasher::ggc_mx): Likewise.
9290 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
9291 that duplicate ggc_hasher ones.
9293 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9295 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
9296 (gt_cleare_cache): Check here for deleted and empty entries.
9297 Replace handle_cache_entry with a call to keep_cache_entry.
9298 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
9299 (ggc_cache_hasher::keep_cache_entry): New function.
9300 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
9301 (tm_wrapper_hasher::keep_cache_entry): New function.
9302 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
9303 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
9304 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
9305 (type_cache_hasher::keep_cache_entry): New function.
9306 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
9307 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
9308 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
9309 (tree_type_map_cache_hasher::keep_cache_entry): New function.
9310 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
9311 (tm_clone_hasher::keep_cache_entry): New function.
9312 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
9313 (dllimport_hasher::keep_cache_entry): New function.
9315 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9317 * hash-table.h: Include hash-traits.h.
9318 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
9319 (ggc_cache_hasher): Move to...
9320 * hash-traits.h: ...this new file.
9322 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
9324 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
9325 struct cl_optimization.
9326 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
9327 * tree.c (make_node_stat): Allocate cl_optimization struct.
9328 (copy_node_stat): Allocate and copy cl_optimization struct.
9330 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
9332 * function.h (struct incoming_args): Move struct.
9333 (pass_by_reference, reference_callee_copied): Remove prototypes.
9334 * emit-rtl.h (struct incoming_args): Relocate struct here.
9335 * calls.h (pass_by_reference, reference_callee_copied): Relocate
9337 * function.c (pass_by_reference, reference_callee_copied): Move.
9338 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
9339 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
9340 * ipa-chkp.c: Include calls.h.
9342 2015-06-25 Andrew Macleod <amacleod@redhat.com>
9344 * alias.h (alias_set_type): Move typedef.
9345 * coretypes.h (alias_set_type): Relocate typedef here.
9346 * rtl.h: Don't include alias.h.
9348 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
9350 * cgraph.h (cgraph_rtl_info): Move to rtl.h
9351 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
9353 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
9354 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
9356 * calls.c: Include hard-reg-set.h before rtl.h.
9359 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
9360 Vladimir Makarov <vmakarov@redhat.com>
9362 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
9365 2015-06-25 Richard Biener <rguenther@suse.de>
9367 * fold-const.c (fold_binary_loc): Move simplification of
9368 (X <<>> C1) & C2 ...
9369 * match.pd: ... here.
9371 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
9373 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
9375 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9377 * match.pd: Add patterns for vec_conds between 1 and 0.
9379 2015-06-25 Richard Biener <rguenther@suse.de>
9381 * tree-vect-stmts.c (vectorizable_conversion): Do not set
9382 STMT_VINFO_VEC_STMT for SLP.
9383 (vectorizable_store): Likewise.
9384 (vectorizable_load): Likewise.
9385 (vect_transform_stmt): Catch SLP vectorization clobbering
9386 STMT_VINFO_VEC_STMT.
9388 2015-06-25 Richard Biener <rguenther@suse.de>
9390 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
9392 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
9393 cleanup resulting dead code and parameters.
9394 (vect_transform_slp_perm_load): Adjust.
9396 2015-06-25 Nick Clifton <nickc@redhat.com>
9398 * config/bfin/bfin.c (bfin_expand_prologue): Set
9399 current_function_static_stack_size if flag_stack_usage_info is set.
9400 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
9401 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
9402 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
9403 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
9405 2015-06-25 Tom de Vries <tom@codesourcery.com>
9407 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
9408 comment that the generated IV is unsigned.
9410 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9413 * config/arm/arm.c (arm_dbx_register_number): Return
9414 DWARF_FRAME_REGISTERS by default.
9416 2015-06-25 Tom de Vries <tom@codesourcery.com>
9418 * dominance.c (calculate_dominance_info): Fix verify_dominators call
9419 argument. Call verify_dominator when reusing dominator info.
9421 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
9424 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
9425 an additional element of the unspec vector. Modify indices
9427 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
9428 * config/sh/sh.c (prepare_move_operands): Pass incremented
9429 const_int to gen_GOTaddr2picreg.
9430 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
9432 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
9434 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
9435 Condition on TARGET_FLOAT.
9437 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
9439 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
9442 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
9444 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
9446 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
9447 aarch64_err_no_fpadvsimd.
9449 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
9450 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
9451 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
9452 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
9453 Turn error into assert, test TARGET_FLOAT.
9454 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
9457 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
9460 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
9462 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
9464 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
9466 2015-06-24 Renlin Li <renlin.li@arm.com>
9468 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
9469 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
9471 2015-06-24 Richard Biener <rguenther@suse.de>
9473 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
9475 (lower_opt_convert): Support lowering of conditional view_convert.
9476 (parser::parse_operation): Likewise.
9477 (parser::parse_for): Likewise.
9479 2015-06-24 Renlin Li <renlin.li@arm.com>
9481 * varasm.c (emit_local): Use unsigned int for align variable.
9483 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9486 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
9487 for negative numbers.
9489 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9491 PR rtl-optimization/66306
9492 * reload.c (find_reloads): Swap the match_dup info for
9493 commutative operands.
9495 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9497 * config/s390/vx-builtins.md
9498 ("vec_scatter_element<mode>_<non_vec_int>")
9499 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
9500 attribute with bhfgq.
9502 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9504 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
9506 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9508 * config/s390/s390-builtin-types.def: Add flag to indicate the
9509 options under which the function type is needed.
9510 * config/s390/s390-builtins.def: Add flag to indicate the options
9511 under which the builtin is enabled.
9512 * config/s390/s390-builtins.h: Add flags parameter to macro
9514 (bflags_for_builtin): New function.
9515 (flags_for_builtin): Renamed to ...
9516 (opflags_for_builtin): ... this.
9517 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
9518 flags_for_builtin to bflags_for_builtin and
9519 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
9520 * config/s390/s390.c: Add initialization of bflags_builtin and
9521 opflags_builtin arrays.
9522 Remove code for flags_builtin.
9523 (s390_init_builtins): Only create builtin function types if one of
9524 their flags is active.
9525 Only create builtins if all of their flags are active.
9526 (s390_expand_builtin): Rename flags_for_builtin to
9527 opflags_for_builtin.
9529 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9531 * config/s390/vecintrin.h: Remove internal builtins.
9533 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9535 * config/s390/s390.c (s390_secondary_reload): Fix check for
9536 GENERAL_REGS register class.
9538 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9540 * config/s390/s390.c (s390_support_vector_misalignment): Call
9541 default implementation for !TARGET_VX.
9543 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9545 * config/s390/s390.c (s390_legitimate_constant_p): Add
9548 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9550 * config/s390/s390.c (s390_vector_abi): New variable definition.
9551 (s390_check_type_for_vector_abi): New function.
9552 (TARGET_ASM_FILE_END): New macro definition.
9553 (s390_asm_file_end): New function.
9554 (s390_function_arg): Call s390_check_type_for_vector_abi.
9555 (s390_gimplify_va_arg): Likewise.
9556 * configure: Regenerate.
9557 * configure.ac: Check for .gnu_attribute Binutils feature.
9559 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
9562 * config/bfin/bfin.c (hwloop_optimize): Initialize
9563 JUMP_LABEL for newly created jump.
9565 2015-06-23 Tristan Gingold <gingold@adacore.com>
9567 * collect-utils.c (collect_wait): Unlink the response file here
9570 (utils_cleanup): ...and here.
9572 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
9574 * df-scan.c: Don't include target-def.h.
9575 * targhooks.c: Likewise.
9576 * config/arm/arm-c.c: Likewise.
9577 * config/i386/i386-c.c: Likewise.
9578 * config/nds32/nds32-cost.c: Likewise.
9579 * config/nds32/nds32-fp-as-gp.c: Likewise.
9580 * config/nds32/nds32-intrinsic.c: Likewise.
9581 * config/nds32/nds32-isr.c: Likewise.
9582 * config/nds32/nds32-md-auxiliary.c: Likewise.
9583 * config/nds32/nds32-memory-manipulation.c: Likewise.
9584 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9585 * config/nds32/nds32-predicates.c: Likewise.
9587 2015-06-23 Richard Biener <rguenther@suse.de>
9589 PR tree-optimization/66636
9590 * tree-vect-stmts.c (vectorizable_store): Properly compute the
9591 def type for further defs for strided stores.
9593 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
9595 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
9596 conditional selects.
9597 (setcc_int<mode>, setcc_float<mode>): Reformat.
9599 2015-06-23 Marek Polacek <polacek@redhat.com>
9601 * match.pd ((x + y) - (x | y) -> x & y,
9602 (x + y) - (x & y) -> x | y): New patterns.
9604 2015-06-23 Ludovic Courtès <ludo@gnu.org>
9607 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
9608 '-dynamic-linker' within %{!shared: ...}.
9610 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
9613 * config/i386/predicates.md (addsub_vm_operator): New predicate.
9614 (addsub_vs_operator): Ditto.
9615 (addsub_vs_parallel): Ditto.
9616 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
9617 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
9618 Put minus RTX before plus and adjust vec_merge selector.
9619 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
9620 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
9621 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
9622 (addsub vec_merge splitters): New combiner splitters.
9623 (addsub vec_select/vec_concat splitters): Ditto.
9625 2015-06-23 Bin Cheng <bin.cheng@arm.com>
9627 PR tree-optimization/66449
9628 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
9629 POINTER_PLUS_EXPR for pointers.
9631 2015-06-23 Alan Modra <amodra@gmail.com>
9633 * rtlanal.c (commutative_operand_precedence): Correct comments.
9634 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
9635 declaration. Return an int. Distinguish REG,REG return from
9637 (struct simplify_plus_minus_op_data): Make local to function.
9638 (simplify_plus_minus): Don't set canonicalized if merely sorting
9639 registers. Avoid packing ops if nothing changes. White space fixes.
9641 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
9643 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
9644 -fdump-ada-spec is passed but not if -fsyntax-only is.
9646 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
9649 * lra-lives.c (process_bb_lives): Check insn copying the same
9650 reload pseudo and don't create a copy for it.
9652 2015-06-22 Tom de Vries <tom@codesourcery.com>
9654 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
9657 2015-06-22 Tom de Vries <tom@codesourcery.com>
9659 * builtins.def (DEF_GOMP_BUILTIN): Test
9660 'flag_tree_parallelize_loops > 1' instead of
9661 'flag_tree_parallelize_loops'. Test flag_cilkplus.
9663 2015-06-22 Tom de Vries <tom@codesourcery.com>
9665 * dominance.c (calculate_dominance_info): Verify dominators if
9668 2015-06-22 Marek Polacek <polacek@redhat.com>
9670 * match.pd ((x ^ y) ^ (x | y) -> x & y,
9671 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
9672 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
9673 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
9675 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
9678 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
9679 cost of embedded comparison.
9681 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9684 * config/rs6000/predicates.md (altivec_register_operand): Permit
9685 virtual stack registers.
9686 (vsx_register_operand): Likewise.
9687 (vfloat_operand): Likewise.
9688 (vint_operand): Likewise.
9689 (vlogical_operand): Likewise.
9691 2015-06-22 Richard Biener <rguenther@suse.de>
9693 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
9694 and single_scalar_iteration_cost members.
9695 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
9696 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
9697 (vect_get_single_scalar_iteration_cost): Remove.
9698 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
9699 Use LOOP_VINFO_SCALAR_ITERATION_COST.
9700 * tree-vect-loop.c (destroy_loop_vec_info): Free
9702 (vect_get_single_scalar_iteration_cost): Compute result into
9703 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
9704 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
9705 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
9706 (vect_estimate_min_profitable_iters): Use them.
9708 2015-06-22 Christian Bruel <christian.bruel@st.com>
9711 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
9712 (TARGET_INSERT_ATTRIBUTES): Define.
9713 (thumb_flipper): New var.
9714 * config/arm/arm.opt (-mflip-thumb): New switch.
9716 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
9717 Martin Liska <mliska@suse.cz>
9720 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
9721 construction of arg_types.
9722 (sem_function::sem_function): Likewise.
9723 (sem_function::~sem_function): Remove destruction of arg_types.
9724 (sem_function::compatible_parm_types_p): New function.
9725 (sem_function::equals_wpa): Reorg matching of return values
9726 and parameter types.
9727 (sem_function::equals_private): Reorg mathcing of argument types.
9728 (sem_function::parse_tree_args): Remove.
9729 * ipa-icf.h (init_wpa): Do not call it.
9730 (parse_tree_args): Remove.
9731 (compatible_parm_types_p): Declare.
9732 (result_type): Remove.
9733 (arg_types): Remove.
9735 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
9738 * ipa-polymorphic-call.c
9739 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
9740 initializing alias oracle; fix formating; set base_alias_set if it
9743 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
9745 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
9746 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
9747 (find_inc): Likewise.
9748 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
9750 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
9751 * df-scan.c (df_swap_refs): Remove.
9752 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
9753 * dominance.c (link_roots): Use std::swap instead of manually swapping.
9754 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
9755 * fold-const.c (fold_relational_const): Likewise.
9756 * genattrtab.c (simplify_test_exp): Likewise.
9757 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
9758 gimple_simplify): Likewise.
9759 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
9760 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
9761 * ipa-devirt.c (add_type_duplicate): Likewise.
9762 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
9763 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
9764 * lra.c (lra_create_copy): Likewise.
9765 * lto-streamer-out.c (DFS::DFS): Likewise.
9766 * modulo-sched.c (get_sched_window): Likewise.
9767 * omega.c (omega_pretty_print_problem): Likewise.
9768 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
9769 * reload1.c (reloads_unique_chain_p): Likewise.
9770 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
9771 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
9773 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
9775 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
9776 predicate_mem_writes): Likewise.
9777 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
9778 * tree-predcom.c (combine_chains): Likewise.
9779 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
9780 refs_may_alias_p_1): Likewise.
9781 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
9782 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
9783 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
9784 number_of_iterations_cond): Likewise.
9785 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
9786 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
9787 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
9788 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
9789 * tree-vrp.c (extract_range_from_binary_expr_1,
9790 extract_range_from_unary_expr_1): Likewise.
9792 2015-06-20 Marek Polacek <polacek@redhat.com>
9794 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
9796 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
9799 * config/sh/sh.c (prepare_move_operands): Replace subreg
9800 index term with R0 for base and index addressing.
9802 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
9804 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
9806 (movsf_aarch64): Change condition from register_operand to
9807 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
9808 load1. Change type for alternative 7 to store1.
9809 (movdf_aarch64): Likewise.
9811 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
9813 * config/vax/vax.md: Adjust sign/zero extend patterns to
9814 handle SUBREGs in operands[1].
9816 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9818 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
9819 of manually swapping.
9820 (expand_vec_perm_interleave2): Likewise.
9822 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
9824 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
9825 reuse bounds created for abnormal ssa names.
9827 2015-06-19 Jakub Jelinek <jakub@redhat.com>
9829 * config/nvptx/nvptx.md (allocate_stack): Rename to...
9830 (allocate_stack_<mode>): ... this, and add :P on both
9831 match_operand and unspec.
9832 (allocate_stack): New expander.
9834 2015-06-19 Christian Bruel <christian.bruel@st.com>
9838 * config/arm/arm.c (arm_set_current_function): Handle
9839 explicit default options.
9841 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
9843 * config/i386/i386.md (*movsicc_noc_zext): New insn.
9844 (zero-extended cmove with mem peephole2): New pattern.
9845 (cmove with mem peephole2): Merge patterns.
9847 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
9849 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
9851 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
9853 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
9854 * config/mips/mips.md (*madd4<mode>): Ditto.
9855 (*nmadd3<mode>) Ditto.
9856 (*nmadd4<mode>_fastmath): Ditto.
9857 (*nmadd3<mode>_fastmath): Ditto.
9858 (*nmsub4<mode>): Ditto.
9859 (*nmsub3<mode>): Ditto.
9860 (*nmsub4<mode>_fastmath): Ditto.
9861 (*nmsub3<mode>_fastmath): Ditto.
9863 2015-06-18 Michael Matz <matz@suse.de>
9866 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
9867 grouped strided stores.
9868 (vectorizable_load): Don't use the DR from first_stmt in
9869 the non-SLP grouped strided case.
9871 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
9874 * function.c (assign_bounds): Add arguments assign_regs,
9875 assign_special, assign_bt.
9876 (assign_parms): For vararg functions handle bounds in BT
9877 and special slots after incoming vararg bounds.
9879 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
9882 * cfgexpand.c (expand_return): Handle missing bounds.
9883 (expand_gimple_stmt_1): Likewise.
9884 * tree-chkp.c (chkp_expand_zero_bounds): New.
9885 * tree-chkp.h (chkp_expand_zero_bounds): New.
9887 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
9890 * ipa-chkp.c (chkp_maybe_create_clone): Require
9891 functions to be instrumentable.
9892 * tree-chkp.c (chkp_replace_function_pointer): Use
9893 chkp_instrumentable_p instead of attribute check.
9895 2015-06-18 Richard Biener <rguenther@suse.de>
9897 PR tree-optimization/66510
9898 * tree-vect-stmts.c (vectorizable_load): Properly compute the
9899 number of vector loads for SLP permuted loads.
9900 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
9901 check the stride for loop vectorization.
9902 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
9903 vectorization factor.
9904 (vect_analyze_group_access): If the group size is not a power
9905 of two require a epilogue loop.
9906 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
9907 compute and optimizing and alias test pruning after final
9908 vectorization factor computation.
9909 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
9911 (vect_transform_slp_perm_load): Properly compute the original
9912 number of vector load stmts.
9914 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
9916 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
9917 "unlikely character , in @var" warning.
9919 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
9921 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
9922 (ix86_function_arg_advance): Ditto.
9923 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
9925 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
9927 * function.h (struct rtl_data): Remove struct and accessor macros.
9928 * emit-rtl.h (struct rtl_data): Relocate to here.
9929 * Makefile.in (GTFILES): Add emit-rtl.h.
9930 * df-core.c: Include emit-rtl.h.
9931 * genattrtab.c: Likewise.
9932 * genconditions.c: Likewise.
9933 * genpreds.c: Likewise.
9934 * genrecog.c: Likewise.
9935 * regcprop.c: Likewise.
9936 * resource.c: Likewise.
9937 * sched-rgn.c: Likewise.
9938 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9939 * config/i386/winnt.c: Likewise.
9941 2015-06-17 Jakub Jelinek <jakub@redhat.com>
9944 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
9945 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
9946 and has_force_vectorize_loops flags from cfun into
9948 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
9949 if simduid is non-NULL.
9950 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
9951 * passes.def (pass_simduid_cleanup): Add new pass after loop
9953 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
9954 indirection from htab argument's type.
9955 (shrink_simd_arrays): New function.
9956 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
9957 Don't call adjust_simduid_builtins if there are no loops.
9958 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
9959 (pass_simduid_cleanup::execute): New method.
9960 (make_pass_simduid_cleanup): New function.
9962 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
9964 * tree-core.h (tree_target_option): Make opts field a pointer to a
9965 cl_target_option instead of an instance of the struct.
9966 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
9968 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
9970 (copy_node_stat): Allocate and copy struct cl_target_option.
9972 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
9974 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
9975 Remove conditional exposure of prototypes.
9976 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
9977 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
9978 definitions in tree.h with functions.
9979 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
9981 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
9983 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
9985 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
9986 (*cmp<mode>_signed): ... this.
9987 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
9988 (*cmp<mode>_unsigned): ... this. Remove %b.
9990 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
9992 * coretypes.h: Include input.h and as-a.h.
9993 * rtl.h: Include input.h and as-a.h for generator files.
9994 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
9995 * vec.c: Don't include diagnostic-core.h.
9996 * alias.c: Do not include input.h, line-map.h or is-a.h.
9998 * attribs.c: Likewise.
9999 * auto-inc-dec.c: Likewise.
10000 * auto-profile.c: Likewise.
10001 * bb-reorder.c: Likewise.
10002 * bt-load.c: Likewise.
10003 * builtins.c: Likewise.
10004 * caller-save.c: Likewise.
10005 * calls.c: Likewise.
10006 * ccmp.c: Likewise.
10008 * cfganal.c: Likewise.
10009 * cfgbuild.c: Likewise.
10010 * cfgcleanup.c: Likewise.
10011 * cfgexpand.c: Likewise.
10012 * cfghooks.c: Likewise.
10013 * cfgloop.c: Likewise.
10014 * cfgloop.h: Likewise.
10015 * cfgloopanal.c: Likewise.
10016 * cfgloopmanip.c: Likewise.
10017 * cfgrtl.c: Likewise.
10018 * cgraph.c: Likewise.
10019 * cgraphbuild.c: Likewise.
10020 * cgraphclones.c: Likewise.
10021 * cgraphunit.c: Likewise.
10022 * cilk-common.c: Likewise.
10023 * combine-stack-adj.c: Likewise.
10024 * combine.c: Likewise.
10025 * compare-elim.c: Likewise.
10026 * convert.c: Likewise.
10027 * coverage.c: Likewise.
10028 * cppbuiltin.c: Likewise.
10029 * cprop.c: Likewise.
10031 * cselib.c: Likewise.
10032 * data-streamer-in.c: Likewise.
10033 * data-streamer-out.c: Likewise.
10034 * data-streamer.c: Likewise.
10035 * dbxout.c: Likewise.
10038 * debug.c: Likewise.
10039 * df-core.c: Likewise.
10040 * df-problems.c: Likewise.
10041 * df-scan.c: Likewise.
10044 * diagnostic-core.h: Likewise.
10045 * diagnostic.c: Likewise.
10046 * dojump.c: Likewise.
10047 * dominance.c: Likewise.
10048 * domwalk.c: Likewise.
10049 * double-int.c: Likewise.
10051 * dumpfile.c: Likewise.
10052 * dumpfile.h: Likewise.
10053 * dwarf2asm.c: Likewise.
10054 * dwarf2cfi.c: Likewise.
10055 * dwarf2out.c: Likewise.
10056 * emit-rtl.c: Likewise.
10057 * et-forest.c: Likewise.
10058 * except.c: Likewise.
10059 * explow.c: Likewise.
10060 * expmed.c: Likewise.
10061 * expr.c: Likewise.
10062 * final.c: Likewise.
10063 * fixed-value.c: Likewise.
10064 * fold-const.c: Likewise.
10065 * function.c: Likewise.
10066 * fwprop.c: Likewise.
10067 * gcc-plugin.h: Likewise.
10068 * gcse.c: Likewise.
10069 * generic-match-head.c: Likewise.
10070 * ggc-page.c: Likewise.
10071 * gimple-builder.c: Likewise.
10072 * gimple-expr.c: Likewise.
10073 * gimple-fold.c: Likewise.
10074 * gimple-iterator.c: Likewise.
10075 * gimple-low.c: Likewise.
10076 * gimple-match-head.c: Likewise.
10077 * gimple-pretty-print.c: Likewise.
10078 * gimple-ssa-isolate-paths.c: Likewise.
10079 * gimple-ssa-strength-reduction.c: Likewise.
10080 * gimple-streamer-in.c: Likewise.
10081 * gimple-streamer-out.c: Likewise.
10082 * gimple-streamer.h: Likewise.
10083 * gimple-walk.c: Likewise.
10084 * gimple.c: Likewise.
10085 * gimplify-me.c: Likewise.
10086 * gimplify.c: Likewise.
10087 * godump.c: Likewise.
10088 * graph.c: Likewise.
10089 * graphite-blocking.c: Likewise.
10090 * graphite-dependences.c: Likewise.
10091 * graphite-interchange.c: Likewise.
10092 * graphite-isl-ast-to-gimple.c: Likewise.
10093 * graphite-optimize-isl.c: Likewise.
10094 * graphite-poly.c: Likewise.
10095 * graphite-scop-detection.c: Likewise.
10096 * graphite-sese-to-poly.c: Likewise.
10097 * graphite.c: Likewise.
10098 * haifa-sched.c: Likewise.
10099 * hw-doloop.c: Likewise.
10100 * ifcvt.c: Likewise.
10101 * init-regs.c: Likewise.
10102 * input.c: Likewise.
10103 * internal-fn.c: Likewise.
10104 * ipa-chkp.c: Likewise.
10105 * ipa-comdats.c: Likewise.
10106 * ipa-cp.c: Likewise.
10107 * ipa-devirt.c: Likewise.
10108 * ipa-icf-gimple.c: Likewise.
10109 * ipa-icf.c: Likewise.
10110 * ipa-inline-analysis.c: Likewise.
10111 * ipa-inline-transform.c: Likewise.
10112 * ipa-inline.c: Likewise.
10113 * ipa-polymorphic-call.c: Likewise.
10114 * ipa-profile.c: Likewise.
10115 * ipa-prop.c: Likewise.
10116 * ipa-pure-const.c: Likewise.
10117 * ipa-ref.c: Likewise.
10118 * ipa-reference.c: Likewise.
10119 * ipa-split.c: Likewise.
10120 * ipa-utils.c: Likewise.
10121 * ipa-visibility.c: Likewise.
10123 * ira-build.c: Likewise.
10124 * ira-color.c: Likewise.
10125 * ira-conflicts.c: Likewise.
10126 * ira-costs.c: Likewise.
10127 * ira-emit.c: Likewise.
10128 * ira-lives.c: Likewise.
10130 * jump.c: Likewise.
10131 * langhooks.c: Likewise.
10133 * loop-doloop.c: Likewise.
10134 * loop-init.c: Likewise.
10135 * loop-invariant.c: Likewise.
10136 * loop-iv.c: Likewise.
10137 * loop-unroll.c: Likewise.
10138 * lower-subreg.c: Likewise.
10139 * lra-assigns.c: Likewise.
10140 * lra-coalesce.c: Likewise.
10141 * lra-constraints.c: Likewise.
10142 * lra-eliminations.c: Likewise.
10143 * lra-lives.c: Likewise.
10144 * lra-remat.c: Likewise.
10145 * lra-spills.c: Likewise.
10147 * lto-cgraph.c: Likewise.
10148 * lto-compress.c: Likewise.
10149 * lto-opts.c: Likewise.
10150 * lto-section-in.c: Likewise.
10151 * lto-section-out.c: Likewise.
10152 * lto-streamer-in.c: Likewise.
10153 * lto-streamer-out.c: Likewise.
10154 * lto-streamer.c: Likewise.
10156 * mode-switching.c: Likewise.
10157 * modulo-sched.c: Likewise.
10158 * omega.c: Likewise.
10159 * omp-low.c: Likewise.
10160 * optabs.c: Likewise.
10161 * opts-global.c: Likewise.
10162 * opts.h: Likewise.
10163 * passes.c: Likewise.
10164 * plugin.c: Likewise.
10165 * postreload-gcse.c: Likewise.
10166 * postreload.c: Likewise.
10167 * predict.c: Likewise.
10168 * pretty-print.h: Likewise.
10169 * print-rtl.c: Likewise.
10170 * print-tree.c: Likewise.
10171 * profile.c: Likewise.
10172 * real.c: Likewise.
10173 * realmpfr.c: Likewise.
10174 * recog.c: Likewise.
10176 * reg-stack.c: Likewise.
10177 * regcprop.c: Likewise.
10178 * reginfo.c: Likewise.
10179 * regrename.c: Likewise.
10180 * regstat.c: Likewise.
10181 * reload.c: Likewise.
10182 * reload1.c: Likewise.
10183 * reorg.c: Likewise.
10184 * resource.c: Likewise.
10185 * rtl-chkp.c: Likewise.
10186 * rtl-error.c: Likewise.
10187 * rtlanal.c: Likewise.
10188 * rtlhooks.c: Likewise.
10189 * sanopt.c: Likewise.
10190 * sched-deps.c: Likewise.
10191 * sched-ebb.c: Likewise.
10192 * sched-rgn.c: Likewise.
10193 * sched-vis.c: Likewise.
10194 * sdbout.c: Likewise.
10195 * sel-sched-dump.c: Likewise.
10196 * sel-sched-ir.c: Likewise.
10197 * sel-sched.c: Likewise.
10198 * sese.c: Likewise.
10199 * shrink-wrap.c: Likewise.
10200 * simplify-rtx.c: Likewise.
10201 * stack-ptr-mod.c: Likewise.
10202 * statistics.c: Likewise.
10203 * stmt.c: Likewise.
10204 * stor-layout.c: Likewise.
10205 * store-motion.c: Likewise.
10206 * streamer-hooks.c: Likewise.
10207 * stringpool.c: Likewise.
10208 * symtab.c: Likewise.
10209 * target-globals.c: Likewise.
10210 * targhooks.c: Likewise.
10211 * toplev.c: Likewise.
10212 * tracer.c: Likewise.
10213 * trans-mem.c: Likewise.
10214 * tree-affine.c: Likewise.
10215 * tree-browser.c: Likewise.
10216 * tree-call-cdce.c: Likewise.
10217 * tree-cfg.c: Likewise.
10218 * tree-cfgcleanup.c: Likewise.
10219 * tree-chkp-opt.c: Likewise.
10220 * tree-chkp.c: Likewise.
10221 * tree-chrec.c: Likewise.
10222 * tree-complex.c: Likewise.
10223 * tree-data-ref.c: Likewise.
10224 * tree-dfa.c: Likewise.
10225 * tree-diagnostic.c: Likewise.
10226 * tree-dump.c: Likewise.
10227 * tree-eh.c: Likewise.
10228 * tree-emutls.c: Likewise.
10229 * tree-if-conv.c: Likewise.
10230 * tree-inline.c: Likewise.
10231 * tree-into-ssa.c: Likewise.
10232 * tree-iterator.c: Likewise.
10233 * tree-loop-distribution.c: Likewise.
10234 * tree-nested.c: Likewise.
10235 * tree-nrv.c: Likewise.
10236 * tree-object-size.c: Likewise.
10237 * tree-outof-ssa.c: Likewise.
10238 * tree-parloops.c: Likewise.
10239 * tree-phinodes.c: Likewise.
10240 * tree-predcom.c: Likewise.
10241 * tree-pretty-print.c: Likewise.
10242 * tree-profile.c: Likewise.
10243 * tree-scalar-evolution.c: Likewise.
10244 * tree-sra.c: Likewise.
10245 * tree-ssa-address.c: Likewise.
10246 * tree-ssa-alias.c: Likewise.
10247 * tree-ssa-ccp.c: Likewise.
10248 * tree-ssa-coalesce.c: Likewise.
10249 * tree-ssa-copy.c: Likewise.
10250 * tree-ssa-copyrename.c: Likewise.
10251 * tree-ssa-dce.c: Likewise.
10252 * tree-ssa-dom.c: Likewise.
10253 * tree-ssa-dse.c: Likewise.
10254 * tree-ssa-forwprop.c: Likewise.
10255 * tree-ssa-ifcombine.c: Likewise.
10256 * tree-ssa-live.c: Likewise.
10257 * tree-ssa-loop-ch.c: Likewise.
10258 * tree-ssa-loop-im.c: Likewise.
10259 * tree-ssa-loop-ivcanon.c: Likewise.
10260 * tree-ssa-loop-ivopts.c: Likewise.
10261 * tree-ssa-loop-manip.c: Likewise.
10262 * tree-ssa-loop-niter.c: Likewise.
10263 * tree-ssa-loop-prefetch.c: Likewise.
10264 * tree-ssa-loop-unswitch.c: Likewise.
10265 * tree-ssa-loop.c: Likewise.
10266 * tree-ssa-math-opts.c: Likewise.
10267 * tree-ssa-operands.c: Likewise.
10268 * tree-ssa-phiopt.c: Likewise.
10269 * tree-ssa-phiprop.c: Likewise.
10270 * tree-ssa-pre.c: Likewise.
10271 * tree-ssa-propagate.c: Likewise.
10272 * tree-ssa-reassoc.c: Likewise.
10273 * tree-ssa-sccvn.c: Likewise.
10274 * tree-ssa-scopedtables.c: Likewise.
10275 * tree-ssa-sink.c: Likewise.
10276 * tree-ssa-strlen.c: Likewise.
10277 * tree-ssa-structalias.c: Likewise.
10278 * tree-ssa-tail-merge.c: Likewise.
10279 * tree-ssa-ter.c: Likewise.
10280 * tree-ssa-threadedge.c: Likewise.
10281 * tree-ssa-threadupdate.c: Likewise.
10282 * tree-ssa-uncprop.c: Likewise.
10283 * tree-ssa-uninit.c: Likewise.
10284 * tree-ssa.c: Likewise.
10285 * tree-ssanames.c: Likewise.
10286 * tree-stdarg.c: Likewise.
10287 * tree-streamer-in.c: Likewise.
10288 * tree-streamer-out.c: Likewise.
10289 * tree-streamer.c: Likewise.
10290 * tree-switch-conversion.c: Likewise.
10291 * tree-tailcall.c: Likewise.
10292 * tree-vect-data-refs.c: Likewise.
10293 * tree-vect-generic.c: Likewise.
10294 * tree-vect-loop-manip.c: Likewise.
10295 * tree-vect-loop.c: Likewise.
10296 * tree-vect-patterns.c: Likewise.
10297 * tree-vect-slp.c: Likewise.
10298 * tree-vect-stmts.c: Likewise.
10299 * tree-vectorizer.c: Likewise.
10300 * tree-vrp.c: Likewise.
10301 * tree.c: Likewise.
10302 * tsan.c: Likewise.
10303 * ubsan.c: Likewise.
10304 * valtrack.c: Likewise.
10305 * value-prof.c: Likewise.
10306 * var-tracking.c: Likewise.
10307 * varasm.c: Likewise.
10308 * varpool.c: Likewise.
10309 * vmsdbgout.c: Likewise.
10310 * vtable-verify.c: Likewise.
10312 * wide-int.cc: Likewise.
10313 * xcoffout.c: Likewise.
10314 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
10315 * common/common-targhooks.c: Likewise.
10316 * config/aarch64/aarch64-builtins.c: Likewise.
10317 * config/aarch64/aarch64.c: Likewise.
10318 * config/alpha/alpha.c: Likewise.
10319 * config/arc/arc.c: Likewise.
10320 * config/arm/aarch-common.c: Likewise.
10321 * config/arm/arm-builtins.c: Likewise.
10322 * config/arm/arm-c.c: Likewise.
10323 * config/arm/arm.c: Likewise.
10324 * config/avr/avr-c.c: Likewise.
10325 * config/avr/avr-log.c: Likewise.
10326 * config/avr/avr.c: Likewise.
10327 * config/bfin/bfin.c: Likewise.
10328 * config/c6x/c6x.c: Likewise.
10329 * config/cr16/cr16.c: Likewise.
10330 * config/cris/cris.c: Likewise.
10331 * config/darwin-c.c: Likewise.
10332 * config/darwin.c: Likewise.
10333 * config/default-c.c: Likewise.
10334 * config/epiphany/epiphany.c: Likewise.
10335 * config/epiphany/mode-switch-use.c: Likewise.
10336 * config/epiphany/resolve-sw-modes.c: Likewise.
10337 * config/fr30/fr30.c: Likewise.
10338 * config/frv/frv.c: Likewise.
10339 * config/ft32/ft32.c: Likewise.
10340 * config/glibc-c.c: Likewise.
10341 * config/h8300/h8300.c: Likewise.
10342 * config/i386/i386-c.c: Likewise.
10343 * config/i386/i386.c: Likewise.
10344 * config/i386/msformat-c.c: Likewise.
10345 * config/i386/winnt-cxx.c: Likewise.
10346 * config/i386/winnt-stubs.c: Likewise.
10347 * config/i386/winnt.c: Likewise.
10348 * config/ia64/ia64-c.c: Likewise.
10349 * config/ia64/ia64.c: Likewise.
10350 * config/iq2000/iq2000.c: Likewise.
10351 * config/lm32/lm32.c: Likewise.
10352 * config/m32c/m32c-pragma.c: Likewise.
10353 * config/m32c/m32c.c: Likewise.
10354 * config/m32r/m32r.c: Likewise.
10355 * config/m68k/m68k.c: Likewise.
10356 * config/mcore/mcore.c: Likewise.
10357 * config/mep/mep-pragma.c: Likewise.
10358 * config/mep/mep.c: Likewise.
10359 * config/microblaze/microblaze-c.c: Likewise.
10360 * config/microblaze/microblaze.c: Likewise.
10361 * config/mips/mips.c: Likewise.
10362 * config/mmix/mmix.c: Likewise.
10363 * config/mn10300/mn10300.c: Likewise.
10364 * config/moxie/moxie.c: Likewise.
10365 * config/msp430/msp430-c.c: Likewise.
10366 * config/msp430/msp430.c: Likewise.
10367 * config/nds32/nds32-cost.c: Likewise.
10368 * config/nds32/nds32-fp-as-gp.c: Likewise.
10369 * config/nds32/nds32-intrinsic.c: Likewise.
10370 * config/nds32/nds32-isr.c: Likewise.
10371 * config/nds32/nds32-md-auxiliary.c: Likewise.
10372 * config/nds32/nds32-memory-manipulation.c: Likewise.
10373 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10374 * config/nds32/nds32-predicates.c: Likewise.
10375 * config/nds32/nds32.c: Likewise.
10376 * config/nios2/nios2.c: Likewise.
10377 * config/nvptx/nvptx.c: Likewise.
10378 * config/pa/pa.c: Likewise.
10379 * config/pdp11/pdp11.c: Likewise.
10380 * config/rl78/rl78-c.c: Likewise.
10381 * config/rl78/rl78.c: Likewise.
10382 * config/rs6000/rs6000-c.c: Likewise.
10383 * config/rs6000/rs6000.c: Likewise.
10384 * config/rx/rx.c: Likewise.
10385 * config/s390/s390-c.c: Likewise.
10386 * config/s390/s390.c: Likewise.
10387 * config/sh/sh-c.c: Likewise.
10388 * config/sh/sh-mem.cc: Likewise.
10389 * config/sh/sh.c: Likewise.
10390 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10391 * config/sh/sh_treg_combine.cc: Likewise.
10392 * config/sol2-c.c: Likewise.
10393 * config/sol2-cxx.c: Likewise.
10394 * config/sol2-stubs.c: Likewise.
10395 * config/sol2.c: Likewise.
10396 * config/sparc/sparc-c.c: Likewise.
10397 * config/sparc/sparc.c: Likewise.
10398 * config/spu/spu-c.c: Likewise.
10399 * config/spu/spu.c: Likewise.
10400 * config/stormy16/stormy16.c: Likewise.
10401 * config/tilegx/mul-tables.c: Likewise.
10402 * config/tilegx/tilegx-c.c: Likewise.
10403 * config/tilegx/tilegx.c: Likewise.
10404 * config/tilepro/mul-tables.c: Likewise.
10405 * config/tilepro/tilepro-c.c: Likewise.
10406 * config/tilepro/tilepro.c: Likewise.
10407 * config/v850/v850-c.c: Likewise.
10408 * config/v850/v850.c: Likewise.
10409 * config/vax/vax.c: Likewise.
10410 * config/visium/visium.c: Likewise.
10411 * config/vms/vms-c.c: Likewise.
10412 * config/vms/vms.c: Likewise.
10413 * config/vxworks.c: Likewise.
10414 * config/winnt-c.c: Likewise.
10415 * config/xtensa/xtensa.c: Likewise.
10417 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
10419 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
10421 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
10423 2015-06-17 Richard Biener <rguenther@suse.de>
10425 PR tree-optimization/66251
10426 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
10427 stmts for SLP strided stores.
10430 2015-05-22 Richard Biener <rguenther@suse.de>
10432 PR tree-optimization/66251
10433 * tree-vect-stmts.c (vectorizable_conversion): Properly
10434 set STMT_VINFO_VEC_STMT even for the SLP case.
10436 2015-05-26 Michael Matz <matz@suse.de>
10438 PR middle-end/66251
10439 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
10440 STMT_VINFO_VEC_STMT, also with SLP.
10442 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
10445 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
10446 (*avx_addsubv4df3_1s): Ditto.
10447 (*sse3_addsubv2df3_1): Ditto.
10448 (*sse3_addsubv2df3_1s): Ditto.
10449 (*avx_addsubv8sf3_1): Ditto.
10450 (*avx_addsubv8sf3_1s): Ditto.
10451 (*sse3_addsubv4sf3_1): Ditto.
10452 (*sse3_addsubv4sf3_1s): Ditto.
10454 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
10456 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
10457 (SYSROOT_SUFFIX_SPEC): Update.
10458 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
10459 (STARTFILE_PREFIX_SPEC): Update.
10460 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
10461 (MULTILIB_REQUIRED): New.
10462 (MULTILIB_OSDIRNAMES): New.
10463 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
10464 (MULTILIB_REQUIRED): New.
10465 (MULTILIB_OSDIRNAMES): New.
10467 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
10469 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
10470 * config/aarch64/aarch64-options-extensions.def: Update "fP",
10471 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
10472 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
10473 (AARCH64_FL_PAN): New.
10474 (AARCH64_FL_LOR): New.
10475 (AARCH64_FL_RDMA): New.
10476 (AARCH64_FL_FOR_ARCH8_1): New.
10477 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
10478 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
10480 2015-06-16 Martin Liska <mliska@suse.cz>
10482 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
10483 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
10486 2015-06-16 Richard Biener <rguenther@suse.de>
10488 * tree-vect-stmts.c (vectorizable_store): Adjust.
10489 (vectorizable_load): Likewise.
10490 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10492 (vect_create_data_ref_ptr): Likewise.
10493 (bump_vector_ptr): Adjust.
10495 2015-06-16 Richard Biener <rguenther@suse.de>
10497 * tree-vect-stmts.c (vectorizable_load): Properly start loads
10498 with the first element if this is grouped loads.
10500 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
10502 * config/arm/arm-protos.h (struct tune_params): Rename
10503 log_op_non_sc to log_op_non_short_circuit, and rename enum
10504 values to expand SC to SHORT_CIRCUIT.
10505 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
10506 to LOG_OP_NON_SHORT_CIRCUIT.
10507 (arm_fastmul_tune):Likewise
10508 (arm_strongarm_tune): Likewise.
10509 (arm_xscale_tune): Likewise.
10510 (arm_9e_tune): Likewise.
10511 (arm_marvell_pj4_tune): Likewise.
10512 (arm_v6t2_tune): Likewise.
10513 (arm_cortex_tune): Likewise.
10514 (arm_cortex_a8_tune): Likewise.
10515 (arm_cortex_a7_tune): Likewise.
10516 (arm_cortex_a15_tune): Likewise.
10517 (arm_cortex_a53_tune): Likewise.
10518 (arm_cortex_a57_tune): Likewise.
10519 (arm_xgene1_tune): Likewise.
10520 (arm_cortex_a5_tune): Likewise.
10521 (arm_cortex_a9_tune): Likewise.
10522 (arm_cortex_a12_tune): Likewise.
10523 (arm_v7m_tune): Likewise.
10524 (arm_cortex_m7_tune): Likewise.
10525 (arm_v6m_tune): Likewise.
10526 (arm_fa726te_tune): Likewise.
10528 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
10530 * altivec.md: Delete UNSPEC_VMLADDUHM.
10531 (mulv4si3_p8): New pattern.
10532 (mulv4si3): Use it for POWER8.
10533 (mulv8hi3): Use vmladduhm with zero addend.
10534 (altivec_vmladduhm): Descriptive RTL.
10536 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
10538 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
10539 to use neon_move instead of mov_imm.
10540 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
10541 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
10543 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
10544 aarch64_float_const_zero_rtx_p check before TFmode check.
10545 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
10547 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
10548 code and attributes to match. Change condition from register_operand
10549 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
10550 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
10553 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
10556 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
10557 there is no parent.
10559 2015-06-14 Shiva Chen <shiva0217@gmail.com>
10561 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
10562 HOST_WIDE_INT parameter.
10564 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
10567 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
10568 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
10570 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
10572 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
10574 * rtl.h (classify_insn): Declare.
10575 * emit-rtl.c (classify_insn): Move to...
10576 * rtl.c: ...here and add generator support.
10577 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
10578 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
10579 * genemit.c (gen_emit_seq): New function.
10580 (gen_expand, gen_split): Use it.
10582 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
10584 * tree.c (make_vector_stat): Fix comment to state that the
10585 function returns a VECTOR_CST.
10587 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
10589 * gensupport.h (add_implicit_parallel): Declare.
10590 * genrecog.c (add_implicit_parallel): Move to...
10591 * gensupport.c (add_implicit_parallel): ...here.
10592 (process_one_cond_exec): Use it.
10593 * genemit.c (gen_insn): Likewise.
10595 2015-06-13 Iain Sandoe <iain@codesourcery.com>
10598 * passes.c (rest_of_decl_compilation): Do not register globals for
10599 early debug if they are declared in built-ins.
10601 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
10603 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
10605 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10607 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
10609 (noce_try_cmove_arith): Likewise.
10610 (noce_get_alt_condition): Likewise.
10612 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10614 * common/config/i386/i386-common.c
10615 (OPTION_MASK_ISA_MWAITX_SET): New.
10616 (ix86_handle_option): Handle mwaitx.
10617 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
10618 (x86_64-*-*): Likewise.
10619 * config/i386/mwaitxintrin.h: New header.
10620 * config/i386/cpuid.h (bit_MWAITX): Define.
10621 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10623 * config/i386/i386.opt (mwaitx): New.
10624 * config/i386/i386-builtin-types.def
10625 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
10626 * config/i386/i386-c.c: Define __MWAITX__ if needed.
10627 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
10629 (ix86_option_override_internal): Handle new option.
10630 (processor_alias_table): Added PTA_MWAITX.
10631 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
10632 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
10633 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
10634 IX86_BUILTIN_MONITORX built-ins.
10635 * config/i386/i386.h (TARGET_MWAITX): New.
10636 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
10638 (mwaitx): New pattern.
10639 (monitorx_<mode>): New pattern.
10640 * config/i386/x86intrin.h: Include mwaitxintrin.h.
10641 * doc/extend.texi: Document monitorx and mwaitx builtins.
10642 * doc/invoke.texi: Document -mmwaitx option.
10644 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
10646 * emit-rtl.c (need_atomic_barrier_p): Mask model with
10647 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
10649 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
10651 * dbxout.c (xcoff_debug_hooks): Provide a function for
10652 register_main_translation_unit hook.
10654 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
10656 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
10657 variants cases from switch.
10658 (rs6000_post_atomic_barrier): Same.
10659 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
10660 (rs6000_expand_atomic_exchange): Same.
10661 (rs6000_expand_atomic_op): Same.
10662 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
10663 SYNC variants cases from switch.
10664 (atomic_load): Same.
10665 (atomic_store): Same.
10667 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
10669 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
10670 CONST_INT for goto.
10672 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
10675 * dwarf2out.c (check_die): Check for common duplicate attributes.
10676 (add_location_or_const_value_attribute): Do not add duplicate
10678 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
10680 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
10681 (gen_type_die_with_usage): Call check_die.
10682 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
10684 2015-06-11 Jason Merrill <jason@redhat.com>
10686 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
10689 2015-06-11 Marek Polacek <polacek@redhat.com>
10691 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
10693 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
10696 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
10697 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
10698 (*addx_extend_sp32): Fix pasto.
10699 (*subx_extend): Rename into...
10700 (*subx_extend_sp32): ...this.
10701 (*adddi3_extend_sp32): Add earlyclobber.
10702 (*subdi3_insn_sp32): Likewise.
10703 (*subdi3_extend_sp32): Likewise.
10704 (*and_not_di_sp32): Likewise.
10705 (*or_not_di_sp32): Likewise.
10706 (*xor_not_di_sp32): Likewise.
10707 (*negdi2_sp32): Likewise.
10708 (*one_cmpldi2_sp32): Likewise.
10710 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
10712 * debug.h (struct gcc_debug_hooks): Add a
10713 register_main_translation_unit hook.
10714 * debug.c (do_nothing_debug_hooks): Provide a function for this
10716 * dbxout.c (dbx_debug_hooks): Likewise.
10717 * sdbout.c (sdb_debug_hooks): Likewise.
10718 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10719 * dwarf2out.c (main_translation_unit): New global variable.
10720 (dwarf2out_register_main_translation_unit): New function
10721 implementing the new hook.
10722 (dwarf2_debug_hooks): Assign
10723 dwarf2out_register_main_translation_unit to this new hook.
10724 (dwarf2out_init): Associate any main translation unit to
10727 2015-06-11 Marek Polacek <polacek@redhat.com>
10729 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
10731 2015-06-11 Marek Polacek <polacek@redhat.com>
10733 * match.pd: Use single_use throughout.
10735 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10737 * config/arm/arm.c (arm_option_params_internal): When optimising
10738 for speed set max_insns_skipped when arm_restrict_it.
10740 2015-06-11 Christian Bruel <christian.bruel@st.com>
10743 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
10745 (arm_cpu_builtins): New function.
10746 (arm_pragma_target_parse): Call arm_cpu_builtins.
10747 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
10748 (arm_register_target_pragmas): Likewise.
10749 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
10750 Call arm_register_target_pragmas.
10751 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
10752 (arm_pragma_target_parse): Likewise.
10754 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
10756 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
10757 of the second operand.
10759 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
10762 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
10763 to prepare mask operand for AVX512 modes.
10765 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
10768 * doc/md.texi (Machine Constraints): Document that on the PowerPC
10769 if you use a constraint that targets a VSX register, you must use
10770 %x<n> in the template.
10772 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
10774 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
10775 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
10776 (define_insn "trap"): New definition.
10778 2015-06-10 Richard Biener <rguenther@suse.de>
10780 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
10782 (vect_supported_load_permutation_p): ... here. Handle
10783 supportable permutations in reductions.
10784 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
10785 for vectorizing strided group loads.
10787 2015-06-10 Jakub Jelinek <jakub@redhat.com>
10790 * config/i386/i386.c (ix86_split_long_move): For collisions
10791 involving direct tls segment refs, move the UNSPEC_TP possibly
10792 wrapped in ZERO_EXTEND out of the address for lea, to each of
10795 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10797 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
10798 dmb sy. Adjust tabs.
10800 2015-06-10 Tom de Vries <tom@codesourcery.com>
10802 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
10804 2015-06-10 Martin Liska <mliska@suse.cz>
10807 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
10808 all enum values in mem_alloc_origin.
10809 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
10811 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
10812 * bitmap.c (bitmap_register): Likewise.
10813 (dump_bitmap_statistics): Likewise.
10814 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
10815 (ggc_record_overhead): Likewise.
10816 * hash-map.h: Likewise.
10817 * hash-set.h: Likewise.
10818 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
10819 * hash-table.h: Likewise.
10820 * vec.c (vec_prefix::register_overhead): Likewise.
10821 (vec_prefix::release_overhead): Likewise.
10822 (dump_vec_loc_statistics): Likewise.
10824 2015-06-09 Christian Bruel <christian.bruel@st.com>
10827 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
10828 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
10829 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
10830 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
10831 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
10832 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
10833 (arm_valid_target_attribute_p): Likewise.
10834 (arm_set_current_function, arm_can_inline_p): Likewise.
10835 (arm_valid_target_attribute_rec): Likewise.
10836 (arm_previous_fndecl): New variable.
10837 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
10838 (TARGET_CAN_INLINE_P): Define.
10839 (arm_asm_trampoline_template): Emit mode.
10840 (arm_file_start): Don't set unified syntax.
10841 (arm_declare_function_name): Set unified syntax and mode.
10842 (arm_option_override): Init target_option_default_node.
10843 and target_option_current_node.
10844 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
10845 (*call_symbol): Likewise.
10846 * doc/extend.texi: Document ARM/Thumb target attribute.
10847 * doc/invoke.texi: Likewise.
10849 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
10852 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
10853 PR rtl-optimization/64164
10854 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10855 * tree-ssa-copyrename.c: Removed.
10856 * opts.c (default_options_table): Drop -ftree-copyrename. Add
10857 -ftree-coalesce-vars.
10858 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10859 * common.opt (ftree-copyrename): Ignore.
10860 (ftree-coalesce-inlined-vars): Likewise.
10861 * doc/invoke.texi: Remove the ignored options above.
10862 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10863 * tree-ssa-coalesce.h: ... here.
10864 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10865 headers required by it.
10866 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10867 across variables when flag_tree_coalesce_vars. Check register
10868 use and promoted modes to allow coalescing. Moved to
10869 tree-ssa-coalesce.c.
10870 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10871 with its member functions to tree-ssa-coalesce.c.
10872 (var_map_base_init): Likewise. Renamed to
10873 compute_samebase_partition_bases.
10874 (partition_view_normal): Drop want_bases parameter.
10875 (partition_view_bitmap): Likewise.
10876 * tree-ssa-live.h: Adjust declarations.
10877 * tree-ssa-coalesce.c: Include explow.h.
10878 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10879 default defs at the entry point.
10880 (dump_part_var_map): New.
10881 (compute_optimized_partition_bases): New, called by...
10882 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10883 of compute_samebase_partition_bases. Adjust.
10884 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10885 * cfgexpand.c (leader_merge): New.
10886 (get_rtl_for_parm_ssa_default_def): New.
10887 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10888 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10889 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
10890 redundant MEM attr setting.
10891 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
10893 (expand_one_stack_var): ... this. New wrapper to check and
10894 skip already expanded SSA partitions.
10895 (record_alignment_for_reg_var): New, factored out of...
10896 (expand_one_var): ... this.
10897 (expand_one_ssa_partition): New.
10898 (adjust_one_expanded_partition_var): New.
10899 (expand_one_register_var): Check and skip already expanded SSA
10901 (expand_used_vars): Don't create DECLs for anonymous SSA
10902 names. Expand all SSA partitions, then adjust all SSA names.
10903 (pass::execute): Replace the loops that set
10904 SA.partition_to_pseudo from partition leaders and cleared
10905 DECL_RTL for multi-location variables, and that which used to
10906 rename vars and set attrs, with one that clears DECL_RTL and
10907 checks that PARMs and RESULTs default_defs match DECL_RTL.
10908 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10909 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10910 * explow.c (promote_ssa_mode): New.
10911 * explow.h (promote_ssa_mode): Declare.
10912 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10913 * function.c: Include cfgexpand.h.
10914 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10915 (use_register_for_parm_decl): Wrapper for the above to
10916 special-case the result_ptr.
10917 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10918 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10919 multiple locations.
10920 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10921 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
10922 (assign_parm_setup_block): Prefer SSA-assigned location.
10923 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
10924 if stack_parm is NULL.
10925 (assign_parm_setup_stack): Prefer SSA-assigned location.
10926 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
10927 rtl before testing for pointer bounds. Special-case result_ptr.
10928 (expand_function_start): Maybe reset DECL_RTL of result.
10929 Prefer SSA-assigned location for result and static chain.
10930 Factor out DECL_RESULT and SET_DECL_RTL.
10931 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10932 anonymous SSA names. Use promote_ssa_mode.
10933 (get_temp_reg): Likewise.
10934 (remove_ssa_form): Adjust.
10935 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10936 and get its reg_usage for reg invalidation.
10937 (compute_bb_dataflow): Pass it insn.
10938 (emit_notes_in_bb): Likewise.
10939 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
10940 fail assert on conversion between unsigned types.
10942 2015-06-09 Tom de Vries <tom@codesourcery.com>
10944 PR tree-optimization/65460
10945 * omp-low.c (expand_omp_target): Set parallelized_function on
10946 cgraph_node for child_fn.
10948 2015-06-09 Tom de Vries <tom@codesourcery.com>
10950 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
10951 parallelized_function before add_new_function.
10953 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
10955 * gcc-plugin.h: Move decls to plugin.h and include it.
10956 * plugin.h: Relocate decls from gcc-plugin.h
10957 * ggc-page.c: Include required header files.
10958 * passes.c: Likewise.
10959 * cgraphunit.c: Likewise.
10961 2015-06-09 Tom de Vries <tom@codesourcery.com>
10963 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
10965 2015-06-09 Jason Merrill <jason@redhat.com>
10968 * toplev.c (check_global_declaration): Don't warn about a clone.
10970 2015-06-09 Marek Polacek <polacek@redhat.com>
10972 PR tree-optimization/66299
10973 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
10974 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
10977 2015-06-09 Richard Biener <rguenther@suse.de>
10979 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
10980 (vect_analyze_slp_instance): Instead do not falsely drop
10983 2015-06-09 Richard Biener <rguenther@suse.de>
10985 PR middle-end/66423
10986 * match.pd: Handle A % (unsigned)(1 << B).
10988 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
10990 * varasm.c (output_object_block_htab): Remove.
10991 (output_object_block_compare): New.
10992 (output_object_blocks): Sort named object_blocks before outputting
10995 2015-06-09 Richard Biener <rguenther@suse.de>
10997 PR tree-optimization/66419
10998 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
10999 consider GROUP_GAP when detecting a perfect subchain.
11001 2015-06-09 Nick Clifton <nickc@redhat.com>
11003 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
11004 place read only data in the .frodata section.
11006 2015-06-09 Shiva Chen <shiva0217@gmail.com>
11008 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
11009 (atomic_store<mode>): Likewise.
11011 2015-06-09 Richard Biener <rguenther@suse.de>
11013 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
11015 2015-06-09 Richard Biener <rguenther@suse.de>
11017 PR middle-end/66413
11018 * tree-inline.c (insert_init_debug_bind): Unshare value.
11020 2015-06-09 Richard Biener <rguenther@suse.de>
11022 PR tree-optimization/66396
11023 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
11024 Rename virtual operands.
11026 2015-06-09 Tom de Vries <tom@codesourcery.com>
11028 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
11029 always return false.
11031 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
11033 PR rtl-optimization/64164
11034 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11035 * tree-ssa-copyrename.c: Removed.
11036 * opts.c (default_options_table): Drop -ftree-copyrename. Add
11037 -ftree-coalesce-vars.
11038 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11039 * common.opt (ftree-copyrename): Ignore.
11040 (ftree-coalesce-inlined-vars): Likewise.
11041 * doc/invoke.texi: Remove the ignored options above.
11042 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11043 * tree-ssa-coalesce.h: ... here.
11044 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11045 headers required by it.
11046 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11047 across variables when flag_tree_coalesce_vars. Check register
11048 use and promoted modes to allow coalescing. Moved to
11049 tree-ssa-coalesce.c.
11050 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11051 with its member functions to tree-ssa-coalesce.c.
11052 (var_map_base_init): Likewise. Renamed to
11053 compute_samebase_partition_bases.
11054 (partition_view_normal): Drop want_bases parameter.
11055 (partition_view_bitmap): Likewise.
11056 * tree-ssa-live.h: Adjust declarations.
11057 * tree-ssa-coalesce.c: Include explow.h.
11058 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11059 default defs at the entry point.
11060 (dump_part_var_map): New.
11061 (compute_optimized_partition_bases): New, called by...
11062 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11063 of compute_samebase_partition_bases. Adjust.
11064 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11065 * cfgexpand.c (leader_merge): New.
11066 (get_rtl_for_parm_ssa_default_def): New.
11067 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11068 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11069 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
11070 redundant MEM attr setting.
11071 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
11073 (expand_one_stack_var): ... this. New wrapper to check and
11074 skip already expanded SSA partitions.
11075 (record_alignment_for_reg_var): New, factored out of...
11076 (expand_one_var): ... this.
11077 (expand_one_ssa_partition): New.
11078 (adjust_one_expanded_partition_var): New.
11079 (expand_one_register_var): Check and skip already expanded SSA
11081 (expand_used_vars): Don't create DECLs for anonymous SSA
11082 names. Expand all SSA partitions, then adjust all SSA names.
11083 (pass::execute): Replace the loops that set
11084 SA.partition_to_pseudo from partition leaders and cleared
11085 DECL_RTL for multi-location variables, and that which used to
11086 rename vars and set attrs, with one that clears DECL_RTL and
11087 checks that PARMs and RESULTs default_defs match DECL_RTL.
11088 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11089 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11090 * explow.c (promote_ssa_mode): New.
11091 * explow.h (promote_ssa_mode): Declare.
11092 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11093 * function.c: Include cfgexpand.h.
11094 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11095 (use_register_for_parm_decl): Wrapper for the above to
11096 special-case the result_ptr.
11097 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11098 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11099 multiple locations.
11100 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11101 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
11102 (assign_parm_setup_block): Prefer SSA-assigned location.
11103 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
11104 if stack_parm is NULL.
11105 (assign_parm_setup_stack): Prefer SSA-assigned location.
11106 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
11107 rtl before testing for pointer bounds. Special-case result_ptr.
11108 (expand_function_start): Maybe reset DECL_RTL of result.
11109 Prefer SSA-assigned location for result and static chain.
11110 Factor out DECL_RESULT and SET_DECL_RTL.
11111 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11112 anonymous SSA names. Use promote_ssa_mode.
11113 (get_temp_reg): Likewise.
11114 (remove_ssa_form): Adjust.
11115 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11116 and get its reg_usage for reg invalidation.
11117 (compute_bb_dataflow): Pass it insn.
11118 (emit_notes_in_bb): Likewise.
11119 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
11120 fail assert on conversion between unsigned types.
11122 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
11125 * tree-inline.c (reset_debug_binding): New.
11126 (reset_debug_bindings): Likewise.
11127 (expand_call_inline): Call it.
11129 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
11131 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
11134 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
11136 * lto-streamer-out.c (lto_output_location): Stream
11137 reserved locations correctly.
11138 * lto-streamer-in.c (lto_output_location): Likewise.
11140 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
11142 * coretypes.h: Include hash-table.h and hash-set.h for host files.
11143 * ggc.h: Don't include statistics.h>
11144 * hash-map.h: Remove all includes.
11145 * hash-set.h: Likewise.
11146 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
11147 the include list. Remove <new>.
11148 * inchash.h: Remove all includes.
11149 * mem-stats.h: Likewise.
11150 * vec.h: No special processing for generators or ggc.
11151 * alias.c : Adjust include files.
11152 * alloc-pool.c : Likewise.
11153 * alloc-pool.h : Likewise.
11154 * asan.c : Likewise.
11155 * attribs.c : Likewise.
11156 * auto-inc-dec.c : Likewise.
11157 * auto-profile.c : Likewise.
11158 * bb-reorder.c : Likewise.
11159 * bitmap.c : Likewise.
11160 * bitmap.h : Likewise.
11161 * bt-load.c : Likewise.
11162 * builtins.c : Likewise.
11163 * caller-save.c : Likewise.
11164 * calls.c : Likewise.
11165 * ccmp.c : Likewise.
11166 * cfg.c : Likewise.
11167 * cfganal.c : Likewise.
11168 * cfgbuild.c : Likewise.
11169 * cfgcleanup.c : Likewise.
11170 * cfgexpand.c : Likewise.
11171 * cfghooks.c : Likewise.
11172 * cfgloop.c : Likewise.
11173 * cfgloop.h : Likewise.
11174 * cfgloopanal.c : Likewise.
11175 * cfgloopmanip.c : Likewise.
11176 * cfgrtl.c : Likewise.
11177 * cgraph.c : Likewise.
11178 * cgraphbuild.c : Likewise.
11179 * cgraphclones.c : Likewise.
11180 * cgraphunit.c : Likewise.
11181 * cilk-common.c : Likewise.
11182 * combine-stack-adj.c : Likewise.
11183 * combine.c : Likewise.
11184 * compare-elim.c : Likewise.
11185 * context.c : Likewise.
11186 * convert.c : Likewise.
11187 * coverage.c : Likewise.
11188 * cppbuiltin.c : Likewise.
11189 * cprop.c : Likewise.
11190 * cse.c : Likewise.
11191 * cselib.c : Likewise.
11192 * data-streamer-in.c : Likewise.
11193 * data-streamer-out.c : Likewise.
11194 * data-streamer.c : Likewise.
11195 * data-streamer.h : Likewise.
11196 * dbxout.c : Likewise.
11197 * dce.c : Likewise.
11198 * ddg.c : Likewise.
11199 * debug.c : Likewise.
11200 * df-core.c : Likewise.
11201 * df-problems.c : Likewise.
11202 * df-scan.c : Likewise.
11204 * dfp.c : Likewise.
11205 * dojump.c : Likewise.
11206 * dominance.c : Likewise.
11207 * domwalk.c : Likewise.
11208 * double-int.c : Likewise.
11209 * dse.c : Likewise.
11210 * dumpfile.c : Likewise.
11211 * dwarf2asm.c : Likewise.
11212 * dwarf2cfi.c : Likewise.
11213 * dwarf2out.c : Likewise.
11214 * emit-rtl.c : Likewise.
11215 * et-forest.c : Likewise.
11216 * except.c : Likewise.
11217 * except.h : Likewise.
11218 * explow.c : Likewise.
11219 * expmed.c : Likewise.
11220 * expr.c : Likewise.
11221 * final.c : Likewise.
11222 * fixed-value.c : Likewise.
11223 * fold-const.c : Likewise.
11224 * function.c : Likewise.
11225 * fwprop.c : Likewise.
11226 * gcc-plugin.h : Likewise.
11227 * gcc.c : Likewise.
11228 * gcse-common.c : Likewise.
11229 * gcse.c : Likewise.
11230 * genattrtab.c : Likewise.
11231 * genautomata.c : Likewise.
11232 * genconditions.c : Likewise.
11233 * genemit.c : Likewise.
11234 * generic-match-head.c : Likewise.
11235 * genextract.c : Likewise.
11236 * gengtype-state.c : Likewise.
11237 * gengtype.c : Likewise.
11238 * genhooks.c : Likewise.
11239 * genmatch.c : Likewise.
11240 * genmodes.c : Likewise.
11241 * genrecog.c : Likewise.
11242 * gensupport.c : Likewise.
11243 * ggc-common.c : Likewise.
11244 * ggc-internal.h : Likewise.
11245 * ggc-none.c : Likewise.
11246 * ggc-page.c : Likewise.
11247 * gimple-builder.c : Likewise.
11248 * gimple-expr.c : Likewise.
11249 * gimple-fold.c : Likewise.
11250 * gimple-iterator.c : Likewise.
11251 * gimple-low.c : Likewise.
11252 * gimple-match-head.c : Likewise.
11253 * gimple-pretty-print.c : Likewise.
11254 * gimple-ssa-isolate-paths.c : Likewise.
11255 * gimple-ssa-strength-reduction.c : Likewise.
11256 * gimple-ssa.h : Likewise.
11257 * gimple-streamer-in.c : Likewise.
11258 * gimple-streamer-out.c : Likewise.
11259 * gimple-streamer.h : Likewise.
11260 * gimple-walk.c : Likewise.
11261 * gimple.c : Likewise.
11262 * gimplify-me.c : Likewise.
11263 * gimplify.c : Likewise.
11264 * godump.c : Likewise.
11265 * graph.c : Likewise.
11266 * graphds.c : Likewise.
11267 * graphite-blocking.c : Likewise.
11268 * graphite-dependences.c : Likewise.
11269 * graphite-interchange.c : Likewise.
11270 * graphite-isl-ast-to-gimple.c : Likewise.
11271 * graphite-optimize-isl.c : Likewise.
11272 * graphite-poly.c : Likewise.
11273 * graphite-scop-detection.c : Likewise.
11274 * graphite-sese-to-poly.c : Likewise.
11275 * graphite.c : Likewise.
11276 * haifa-sched.c : Likewise.
11277 * hard-reg-set.h : Likewise.
11278 * hw-doloop.c : Likewise.
11279 * ifcvt.c : Likewise.
11280 * inchash.c : Likewise.
11281 * incpath.c : Likewise.
11282 * init-regs.c : Likewise.
11283 * input.c : Likewise.
11284 * internal-fn.c : Likewise.
11285 * ipa-chkp.c : Likewise.
11286 * ipa-comdats.c : Likewise.
11287 * ipa-cp.c : Likewise.
11288 * ipa-devirt.c : Likewise.
11289 * ipa-icf-gimple.c : Likewise.
11290 * ipa-icf.c : Likewise.
11291 * ipa-inline-analysis.c : Likewise.
11292 * ipa-inline-transform.c : Likewise.
11293 * ipa-inline.c : Likewise.
11294 * ipa-polymorphic-call.c : Likewise.
11295 * ipa-profile.c : Likewise.
11296 * ipa-prop.c : Likewise.
11297 * ipa-pure-const.c : Likewise.
11298 * ipa-ref.c : Likewise.
11299 * ipa-reference.c : Likewise.
11300 * ipa-split.c : Likewise.
11301 * ipa-utils.c : Likewise.
11302 * ipa-visibility.c : Likewise.
11303 * ipa.c : Likewise.
11304 * ira-build.c : Likewise.
11305 * ira-color.c : Likewise.
11306 * ira-conflicts.c : Likewise.
11307 * ira-costs.c : Likewise.
11308 * ira-emit.c : Likewise.
11309 * ira-lives.c : Likewise.
11310 * ira.c : Likewise.
11311 * jump.c : Likewise.
11312 * langhooks.c : Likewise.
11313 * lcm.c : Likewise.
11314 * libfuncs.h : Likewise.
11315 * lists.c : Likewise.
11316 * loop-doloop.c : Likewise.
11317 * loop-init.c : Likewise.
11318 * loop-invariant.c : Likewise.
11319 * loop-iv.c : Likewise.
11320 * loop-unroll.c : Likewise.
11321 * lower-subreg.c : Likewise.
11322 * lra-assigns.c : Likewise.
11323 * lra-coalesce.c : Likewise.
11324 * lra-constraints.c : Likewise.
11325 * lra-eliminations.c : Likewise.
11326 * lra-lives.c : Likewise.
11327 * lra-remat.c : Likewise.
11328 * lra-spills.c : Likewise.
11329 * lra.c : Likewise.
11330 * lto-cgraph.c : Likewise.
11331 * lto-compress.c : Likewise.
11332 * lto-opts.c : Likewise.
11333 * lto-section-in.c : Likewise.
11334 * lto-section-out.c : Likewise.
11335 * lto-streamer-in.c : Likewise.
11336 * lto-streamer-out.c : Likewise.
11337 * lto-streamer.c : Likewise.
11338 * lto-streamer.h : Likewise.
11339 * mcf.c : Likewise.
11340 * mode-switching.c : Likewise.
11341 * modulo-sched.c : Likewise.
11342 * omega.c : Likewise.
11343 * omp-low.c : Likewise.
11344 * optabs.c : Likewise.
11345 * opts-global.c : Likewise.
11346 * opts.h : Likewise.
11347 * passes.c : Likewise.
11348 * plugin.c : Likewise.
11349 * postreload-gcse.c : Likewise.
11350 * postreload.c : Likewise.
11351 * predict.c : Likewise.
11352 * print-rtl.c : Likewise.
11353 * print-tree.c : Likewise.
11354 * profile.c : Likewise.
11355 * read-md.c : Likewise.
11356 * read-md.h : Likewise.
11357 * read-rtl.c : Likewise.
11358 * real.c : Likewise.
11359 * realmpfr.c : Likewise.
11360 * recog.c : Likewise.
11361 * ree.c : Likewise.
11362 * reg-stack.c : Likewise.
11363 * regcprop.c : Likewise.
11364 * reginfo.c : Likewise.
11365 * regrename.c : Likewise.
11366 * regstat.c : Likewise.
11367 * reload.c : Likewise.
11368 * reload1.c : Likewise.
11369 * reorg.c : Likewise.
11370 * resource.c : Likewise.
11371 * rtl-chkp.c : Likewise.
11372 * rtl.c : Likewise.
11373 * rtl.h : Likewise.
11374 * rtlanal.c : Likewise.
11375 * rtlhash.c : Likewise.
11376 * rtlhash.h : Likewise.
11377 * rtlhooks.c : Likewise.
11378 * sanopt.c : Likewise.
11379 * sched-deps.c : Likewise.
11380 * sched-ebb.c : Likewise.
11381 * sched-rgn.c : Likewise.
11382 * sched-vis.c : Likewise.
11383 * sdbout.c : Likewise.
11384 * sel-sched-dump.c : Likewise.
11385 * sel-sched-ir.c : Likewise.
11386 * sel-sched-ir.h : Likewise.
11387 * sel-sched.c : Likewise.
11388 * sese.c : Likewise.
11389 * shrink-wrap.c : Likewise.
11390 * shrink-wrap.h : Likewise.
11391 * simplify-rtx.c : Likewise.
11392 * stack-ptr-mod.c : Likewise.
11393 * statistics.c : Likewise.
11394 * stmt.c : Likewise.
11395 * stor-layout.c : Likewise.
11396 * store-motion.c : Likewise.
11397 * stringpool.c : Likewise.
11398 * symtab.c : Likewise.
11399 * target-globals.c : Likewise.
11400 * targhooks.c : Likewise.
11401 * tlink.c : Likewise.
11402 * toplev.c : Likewise.
11403 * tracer.c : Likewise.
11404 * trans-mem.c : Likewise.
11405 * tree-affine.c : Likewise.
11406 * tree-affine.h : Likewise.
11407 * tree-browser.c : Likewise.
11408 * tree-call-cdce.c : Likewise.
11409 * tree-cfg.c : Likewise.
11410 * tree-cfgcleanup.c : Likewise.
11411 * tree-chkp-opt.c : Likewise.
11412 * tree-chkp.c : Likewise.
11413 * tree-chrec.c : Likewise.
11414 * tree-complex.c : Likewise.
11415 * tree-data-ref.c : Likewise.
11416 * tree-dfa.c : Likewise.
11417 * tree-diagnostic.c : Likewise.
11418 * tree-dump.c : Likewise.
11419 * tree-eh.c : Likewise.
11420 * tree-eh.h : Likewise.
11421 * tree-emutls.c : Likewise.
11422 * tree-hasher.h : Likewise.
11423 * tree-if-conv.c : Likewise.
11424 * tree-inline.c : Likewise.
11425 * tree-inline.h : Likewise.
11426 * tree-into-ssa.c : Likewise.
11427 * tree-iterator.c : Likewise.
11428 * tree-loop-distribution.c : Likewise.
11429 * tree-nested.c : Likewise.
11430 * tree-nrv.c : Likewise.
11431 * tree-object-size.c : Likewise.
11432 * tree-outof-ssa.c : Likewise.
11433 * tree-parloops.c : Likewise.
11434 * tree-phinodes.c : Likewise.
11435 * tree-predcom.c : Likewise.
11436 * tree-pretty-print.c : Likewise.
11437 * tree-profile.c : Likewise.
11438 * tree-scalar-evolution.c : Likewise.
11439 * tree-sra.c : Likewise.
11440 * tree-ssa-address.c : Likewise.
11441 * tree-ssa-alias.c : Likewise.
11442 * tree-ssa-ccp.c : Likewise.
11443 * tree-ssa-coalesce.c : Likewise.
11444 * tree-ssa-copy.c : Likewise.
11445 * tree-ssa-copyrename.c : Likewise.
11446 * tree-ssa-dce.c : Likewise.
11447 * tree-ssa-dom.c : Likewise.
11448 * tree-ssa-dse.c : Likewise.
11449 * tree-ssa-forwprop.c : Likewise.
11450 * tree-ssa-ifcombine.c : Likewise.
11451 * tree-ssa-live.c : Likewise.
11452 * tree-ssa-loop-ch.c : Likewise.
11453 * tree-ssa-loop-im.c : Likewise.
11454 * tree-ssa-loop-ivcanon.c : Likewise.
11455 * tree-ssa-loop-ivopts.c : Likewise.
11456 * tree-ssa-loop-manip.c : Likewise.
11457 * tree-ssa-loop-niter.c : Likewise.
11458 * tree-ssa-loop-prefetch.c : Likewise.
11459 * tree-ssa-loop-unswitch.c : Likewise.
11460 * tree-ssa-loop.c : Likewise.
11461 * tree-ssa-math-opts.c : Likewise.
11462 * tree-ssa-operands.c : Likewise.
11463 * tree-ssa-phiopt.c : Likewise.
11464 * tree-ssa-phiprop.c : Likewise.
11465 * tree-ssa-pre.c : Likewise.
11466 * tree-ssa-propagate.c : Likewise.
11467 * tree-ssa-reassoc.c : Likewise.
11468 * tree-ssa-sccvn.c : Likewise.
11469 * tree-ssa-scopedtables.c : Likewise.
11470 * tree-ssa-sink.c : Likewise.
11471 * tree-ssa-strlen.c : Likewise.
11472 * tree-ssa-structalias.c : Likewise.
11473 * tree-ssa-tail-merge.c : Likewise.
11474 * tree-ssa-ter.c : Likewise.
11475 * tree-ssa-threadedge.c : Likewise.
11476 * tree-ssa-threadupdate.c : Likewise.
11477 * tree-ssa-uncprop.c : Likewise.
11478 * tree-ssa-uninit.c : Likewise.
11479 * tree-ssa.c : Likewise.
11480 * tree-ssanames.c : Likewise.
11481 * tree-stdarg.c : Likewise.
11482 * tree-streamer-in.c : Likewise.
11483 * tree-streamer-out.c : Likewise.
11484 * tree-streamer.c : Likewise.
11485 * tree-streamer.h : Likewise.
11486 * tree-switch-conversion.c : Likewise.
11487 * tree-tailcall.c : Likewise.
11488 * tree-vect-data-refs.c : Likewise.
11489 * tree-vect-generic.c : Likewise.
11490 * tree-vect-loop-manip.c : Likewise.
11491 * tree-vect-loop.c : Likewise.
11492 * tree-vect-patterns.c : Likewise.
11493 * tree-vect-slp.c : Likewise.
11494 * tree-vect-stmts.c : Likewise.
11495 * tree-vectorizer.c : Likewise.
11496 * tree-vectorizer.h : Likewise.
11497 * tree-vrp.c : Likewise.
11498 * tree.c : Likewise.
11499 * tsan.c : Likewise.
11500 * ubsan.c : Likewise.
11501 * valtrack.c : Likewise.
11502 * valtrack.h : Likewise.
11503 * value-prof.c : Likewise.
11504 * var-tracking.c : Likewise.
11505 * varasm.c : Likewise.
11506 * varpool.c : Likewise.
11508 * vmsdbgout.c : Likewise.
11509 * vtable-verify.c : Likewise.
11510 * vtable-verify.h : Likewise.
11511 * web.c : Likewise.
11512 * wide-int.cc : Likewise.
11513 * xcoffout.c : Likewise.
11514 * config/aarch64/aarch64-builtins.c : Likewise.
11515 * config/aarch64/aarch64.c : Likewise.
11516 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
11517 * config/alpha/alpha.c : Likewise.
11518 * config/arc/arc.c : Likewise.
11519 * config/arm/aarch-common.c : Likewise.
11520 * config/arm/arm-builtins.c : Likewise.
11521 * config/arm/arm-c.c : Likewise.
11522 * config/arm/arm.c : Likewise.
11523 * config/avr/avr-c.c : Likewise.
11524 * config/avr/avr-log.c : Likewise.
11525 * config/avr/avr.c : Likewise.
11526 * config/bfin/bfin.c : Likewise.
11527 * config/c6x/c6x.c : Likewise.
11528 * config/cr16/cr16.c : Likewise.
11529 * config/cris/cris.c : Likewise.
11530 * config/darwin-c.c : Likewise.
11531 * config/darwin.c : Likewise.
11532 * config/default-c.c : Likewise.
11533 * config/epiphany/epiphany.c : Likewise.
11534 * config/epiphany/mode-switch-use.c : Likewise.
11535 * config/epiphany/resolve-sw-modes.c : Likewise.
11536 * config/fr30/fr30.c : Likewise.
11537 * config/frv/frv.c : Likewise.
11538 * config/ft32/ft32.c : Likewise.
11539 * config/glibc-c.c : Likewise.
11540 * config/h8300/h8300.c : Likewise.
11541 * config/i386/i386-c.c : Likewise.
11542 * config/i386/i386.c : Likewise.
11543 * config/i386/msformat-c.c : Likewise.
11544 * config/i386/winnt-cxx.c : Likewise.
11545 * config/i386/winnt-stubs.c : Likewise.
11546 * config/i386/winnt.c : Likewise.
11547 * config/ia64/ia64-c.c : Likewise.
11548 * config/ia64/ia64.c : Likewise.
11549 * config/iq2000/iq2000.c : Likewise.
11550 * config/lm32/lm32.c : Likewise.
11551 * config/m32c/m32c-pragma.c : Likewise.
11552 * config/m32c/m32c.c : Likewise.
11553 * config/m32r/m32r.c : Likewise.
11554 * config/m68k/m68k.c : Likewise.
11555 * config/mcore/mcore.c : Likewise.
11556 * config/mep/mep-pragma.c : Likewise.
11557 * config/mep/mep.c : Likewise.
11558 * config/microblaze/microblaze-c.c : Likewise.
11559 * config/microblaze/microblaze.c : Likewise.
11560 * config/mips/mips.c : Likewise.
11561 * config/mmix/mmix.c : Likewise.
11562 * config/mn10300/mn10300.c : Likewise.
11563 * config/moxie/moxie.c : Likewise.
11564 * config/msp430/msp430-c.c : Likewise.
11565 * config/msp430/msp430.c : Likewise.
11566 * config/nds32/nds32-cost.c : Likewise.
11567 * config/nds32/nds32-fp-as-gp.c : Likewise.
11568 * config/nds32/nds32-intrinsic.c : Likewise.
11569 * config/nds32/nds32-isr.c : Likewise.
11570 * config/nds32/nds32-md-auxiliary.c : Likewise.
11571 * config/nds32/nds32-memory-manipulation.c : Likewise.
11572 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
11573 * config/nds32/nds32-predicates.c : Likewise.
11574 * config/nds32/nds32.c : Likewise.
11575 * config/nios2/nios2.c : Likewise.
11576 * config/nvptx/nvptx.c : Likewise.
11577 * config/pa/pa.c : Likewise.
11578 * config/pdp11/pdp11.c : Likewise.
11579 * config/rl78/rl78-c.c : Likewise.
11580 * config/rl78/rl78.c : Likewise.
11581 * config/rs6000/rs6000-c.c : Likewise.
11582 * config/rs6000/rs6000.c : Likewise.
11583 * config/rx/rx.c : Likewise.
11584 * config/s390/s390-c.c : Likewise.
11585 * config/s390/s390.c : Likewise.
11586 * config/sh/sh-c.c : Likewise.
11587 * config/sh/sh-mem.cc : Likewise.
11588 * config/sh/sh.c : Likewise.
11589 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
11590 * config/sh/sh_treg_combine.cc : Likewise.
11591 * config/sol2-c.c : Likewise.
11592 * config/sol2-cxx.c : Likewise.
11593 * config/sol2-stubs.c : Likewise.
11594 * config/sol2.c : Likewise.
11595 * config/sparc/sparc-c.c : Likewise.
11596 * config/sparc/sparc.c : Likewise.
11597 * config/spu/spu-c.c : Likewise.
11598 * config/spu/spu.c : Likewise.
11599 * config/stormy16/stormy16.c : Likewise.
11600 * config/tilegx/mul-tables.c : Likewise.
11601 * config/tilegx/tilegx-c.c : Likewise.
11602 * config/tilegx/tilegx.c : Likewise.
11603 * config/tilepro/mul-tables.c : Likewise.
11604 * config/tilepro/tilepro-c.c : Likewise.
11605 * config/tilepro/tilepro.c : Likewise.
11606 * config/v850/v850-c.c : Likewise.
11607 * config/v850/v850.c : Likewise.
11608 * config/vax/vax.c : Likewise.
11609 * config/visium/visium.c : Likewise.
11610 * config/vms/vms-c.c : Likewise.
11611 * config/vms/vms.c : Likewise.
11612 * config/vxworks.c : Likewise.
11613 * config/winnt-c.c : Likewise.
11614 * config/xtensa/xtensa.c : Likewise.
11616 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
11619 * ipa-utils.h (warn_types_mismatch): Update prototype.
11620 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
11622 (type_mismatch_p): New function.
11623 (warn_types_mismatch): Reorg to work better on non-C++ types.
11624 (odr_types_equivalent_p): Add loc1/loc2 parameters.
11625 (add_type_duplicate): Update.
11627 2015-06-08 Tom de Vries <tom@codesourcery.com>
11629 PR rtl-optimization/66444
11630 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
11633 2015-06-08 Richard Biener <rguenther@suse.de>
11635 PR tree-optimization/66422
11636 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
11637 block after inserted gcc_unreachable.
11639 2015-06-08 Nick Clifton <nickc@redhat.com>
11641 * config/rx/rx.c (rx_function_value): Do not promote vector types.
11642 (rx_promote_function_mode): Likewise.
11643 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
11645 2015-06-08 Jakub Jelinek <jakub@redhat.com>
11647 * genattrtab.c (insn_alternatives): Change type from int *
11649 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
11650 (get_attr_value): Change type of num_alt to uint64_t.
11651 (compute_alternative_mask): Change return type from
11652 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
11653 (make_alternative_compare, mk_attr_alt): Change argument type
11654 from int to uint64_t.
11655 (simplify_test_exp): Change type of i from int to uint64_t.
11656 Shift ((uint64_t) 1) instead of 1 up.
11657 (main): Adjust oballocvec first argument from int to uint64_t.
11658 Shift ((uint64_t) 1) instead of 1 up.
11660 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11663 * gdbhooks.py: Import sys.
11664 (intptr): New function. Replace int(...) by intptr(...).
11666 2015-06-08 Richard Biener <rguenther@suse.de>
11668 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
11669 adjustment for gaps at the end of a SLP load group properly.
11670 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
11671 all permutations we can generate.
11672 (vect_transform_slp_perm_load): Use the correct group-size.
11674 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
11676 * genmatch.c (expr::gen_transform): For conditions, guess the type
11677 from the second operand.
11679 2015-06-08 Tom de Vries <tom@codesourcery.com>
11681 PR tree-optimization/66442
11682 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
11683 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
11684 if the loop latch is not a singleton. Use
11685 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
11687 2015-06-08 Marek Polacek <polacek@redhat.com>
11690 * toplev.c (check_global_declaration): Don't warn about artificial
11693 2015-06-08 Tom de Vries <tom@codesourcery.com>
11695 PR tree-optimization/66436
11696 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
11698 * gimplify.c: Add tree-dump.h include.
11699 (gimplify_function_tree): Dump function to gimple dump file.
11700 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
11703 2015-06-08 Tom de Vries <tom@codesourcery.com>
11705 PR tree-optimization/66435
11706 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
11709 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
11711 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
11712 of ptr_type_node to not be ptr_to_node.
11713 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
11714 TREE_TYPE of pointers.
11715 * gimple-expr.c (useless_type_conversion): Reorder the check for
11716 function pointers and TYPE_CANONICAL.
11718 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
11721 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
11722 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
11723 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
11725 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
11726 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
11727 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
11728 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
11729 and non iso if unix2003.
11731 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
11733 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
11735 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
11737 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
11738 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
11739 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
11740 except.c, final.c, function.c, gcse-common.c, genemit.c,
11741 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
11742 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
11743 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
11744 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
11747 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
11749 * combine.c (combine_split_insns): Remove cast.
11750 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
11751 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
11752 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
11753 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
11754 * genemit.c (gen_split): Change return type of generated functions to
11756 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
11757 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
11758 gen_peephole2_* functions.
11759 (print_subroutine, main): Likewise.
11760 * recog.c (peephole2_optimize): Remove cast.
11761 (peep2_next_insn): Promote return type to rtx_insn.
11762 * recog.h (peep2_next_insn): Fix prototype.
11763 * rtl.h (try_split, split_insns): Likewise.
11765 2015-06-06 DJ Delorie <dj@redhat.com>
11767 * config/msp430/msp430.c (msp430_asm_integer): Support addition
11768 and subtraction too.
11770 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
11773 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
11774 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
11775 instead of Snd. Disparage Sid/z alternative with '^'.
11777 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
11779 * dwarf2out.c: Remove deferred_locations*.
11780 (dwarf2_debug_hooks): Add early_finish hook.
11781 Remove global_decl hook.
11782 Add early_global_decl and late_global_decl hook.
11783 New global early_dwarf.
11784 New structure set_early_dwarf.
11785 (output_die): Indicate whether a DIE was generated early
11786 when generating assembly with -dA.
11787 (struct limbo_die_struct): Document created_for field.
11788 Remove file_table_last_lookup.
11789 (remove_AT): Return TRUE if successful.
11790 (remove_child_TAG): Clear die_parent.
11791 (reparent_child): New function abstracted from...
11792 (splice_child_die): ...here.
11793 (new_die): ICE if a DIE ends up in limbo too late.
11795 (defer_location): Remove.
11796 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
11797 (fill_variable_array_bounds): New.
11798 (decl_start_label): Call fill_variable_array_bounds.
11799 (gen_formal_parameter_die): Rewrite to reuse previously generated
11801 (gen_subprogram_die): Same.
11802 (gen_variable_die): Same.
11803 (gen_const_die): Same.
11804 (gen_label_die): Same.
11805 (gen_lexical_block_die): Same.
11806 (decl_will_get_specification_p): New.
11807 (local_function_static): New.
11808 (gen_struct_or_union_type_die): Fill in variable-length fields.
11809 (gen_typedef_die): Fill in variable-length typedefs.
11810 (gen_tagged_type_die): Gracefully return on error_mark_node.
11811 Handle re-entrancy.
11812 (gen_type_die_with_usage): Handle variable-length types.
11813 Remove duplicate code for ARRAY_TYPE case.
11814 (process_scope_var): Only process imported modules during early
11816 (dwarf2out_early_global_decl): New.
11817 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
11818 (dwarf2out_type_decl): Set early_dwarf while calling
11820 (dwarf2out_decl): Verify that we did not recreate a previously
11822 Do not return on DECL_EXTERNALs in VAR_DECLs.
11823 Abstract some code to local_function_static.
11824 (lookup_filename): Remove use of file_table_last_lookup.
11825 Gracefully exit on missing file_name.
11826 (dwarf2out_finish): Verify limbo list.
11827 Remove deferred_locations_list use.
11828 Move deferred_asm_name and limbo flushing to...
11829 (dwarf2out_early_finish): ...here. New.
11830 (dwarf2out_c_finalize): Remove set of deferred_location_list,
11831 deferred_asm_name, and file_table_last_lookup.
11832 * cgraph.h (referred_to_p): Add default argument.
11833 * cgraphunit.c (referred_to_p): Add and handle include_self
11835 (analyze_functions): Add first_time argument.
11836 Call check_global_declaration for all symbols.
11837 Call late_global_decl for nodes for moribund nodes.
11838 (finalize_compilation_unit): Add new argument to
11840 Call early_global_decl for functions.
11841 Call early_finish debug hook.
11842 * dbxout.c (dbxout_early_global_decl): New.
11843 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
11844 (dbx_debug_hooks): Add new hooks.
11845 (xcoff_debug_hooks): Same.
11846 * debug.c (do_nothing_debug_hooks): Add early_finish field.
11847 Add early and late debug hooks.
11848 Remove global_decl hook.
11849 * debug.h (struct gcc_debug_hooks): Add early_finish,
11850 early_global_decl, and late_global_decl fields.
11851 Remove global_decl field.
11852 Document gcc_debug_hooks.
11853 * gengtype.c (output_typename): Remove.
11854 * godump.c (go_early_global_decl): New.
11855 (go_late_global_decl): New.
11856 (go_global_decl): Remove.
11857 (dump_go_spec_init): Remove global_decl. Add
11858 {early,late}_global_decl.
11859 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
11860 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
11861 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
11862 (write_global_declarations): Remove.
11863 (global_decl_processing): New.
11864 * langhooks.h (struct lang_hooks_for_decls): Remove
11865 final_write_globals field.
11866 Add post_compilation_parsing_cleanups field.
11867 * passes.c (rest_of_decl_compilation): Call early_global_decl.
11868 * sdbout.c: Add early and late_global_decl hooks. Remove
11869 sdbout_global_decl hook.
11870 Add early_finish field for sdb_debug_hooks.
11871 (sdbout_global_decl): Remove.
11872 (sdbout_early_global_decl): New.
11873 (sdbout_late_global_decl): New.
11874 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
11875 * toplev.c (check_global_declaration): Rename from
11876 check_global_declaration_1.
11877 Adapt to use symtab infrastructure.
11878 (check_global_declarations): Remove.
11879 (emit_debug_global_declarations): Remove.
11880 (compile_file): Remove call to final_write_globals langhook.
11881 Run the actual compilation process.
11882 Perform any post compilation parser cleanups.
11883 Generate late debug info.
11884 * toplev.h (check_global_declaration): New.
11885 (check_global_declaration_1): Remove.
11886 (check_global_declarations): Remove.
11887 (write_global_declarations): Remove.
11888 (emit_debug_global_declarations): Remove.
11889 (global_decl_processing): New.
11890 * tree-core.h (struct tree_block): Add DIE field.
11891 * tree.h (BLOCK_DIE): New.
11892 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
11894 (vmsdbgout_early_global_decl): New.
11895 (vmsdbgout_late_global_decl): New.
11896 Add early_finish debug hook field to vmsdbg_debug_hooks.
11897 Remove vmsdbgout_decl to vmsdbgout_function_decl.
11898 Add early and late_global_decl debug hooks.
11900 2015-06-05 Julian Brown <julian@codesourcery.com>
11901 Sandra Loosemore <sandra@codesourcery.com>
11903 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
11904 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
11905 to print-sysroot-suffix.sh script.
11907 2015-06-05 Tom de Vries <tom@codesourcery.com>
11909 merge from gomp4 branch:
11910 2015-05-28 Tom de Vries <tom@codesourcery.com>
11912 PR tree-optimization/65443
11913 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
11914 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
11915 (try_transform_to_exit_first_loop_alt): New function.
11916 (transform_to_exit_first_loop): Use
11917 try_transform_to_exit_first_loop_alt.
11919 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
11921 * builtins.c (expand_builtin_atomic_compare_exchange): Call
11922 emit_cmp_and_jump_insns with the mode of target.
11924 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11926 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
11928 2015-06-04 DJ Delorie <dj@redhat.com>
11930 * config/msp430/msp430.md (movsi_s): New. Special case for
11931 storing a 20-bit symbol into a 32-bit register.
11932 * config/msp430/msp430.c (msp430_subreg): Add support for it.
11933 * config/msp430/predicates.md (msp430_symbol_operand): New.
11935 2015-06-04 Sriraman Tallam <tmsriram@google.com>
11937 * c-family/c-common.c (noplt): New attribute.
11938 (handle_noplt_attribute): New handler.
11939 * calls.c (prepare_call_address): Check for noplt
11941 * config/i386/i386.c (ix86_expand_call): Check
11942 for noplt attribute.
11943 (ix86_nopic_noplt_attribute_p): New function.
11944 (ix86_output_call_insn): Output indirect call for non-pic
11946 * doc/extend.texi (noplt): Document new attribute.
11947 * doc/invoke.texi: Document new attribute.
11949 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
11951 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
11952 real.h, and fixed-value.h when included in host source files.
11953 * double-int.h: Remove redundant #includes listed above.
11954 * fixed-value.h: Likewise.
11955 * real.h: Likewise.
11956 * wide-int.h: Likewise.
11957 * inchash.h: Likewise.
11958 * rtl.h: Add some include files When included from a generator file.
11959 * target.h: Remove wide-int.h and insn-modes.h from the include list.
11960 * internal-fn.h: Don't include coretypes.h.
11961 * alias.c: Adjust includes for restructured coretypes.h.
11962 * asan.c: Likewise.
11963 * attribs.c: Likewise.
11964 * auto-inc-dec.c: Likewise.
11965 * auto-profile.c: Likewise.
11966 * bb-reorder.c: Likewise.
11967 * bt-load.c: Likewise.
11968 * builtins.c: Likewise.
11969 * caller-save.c: Likewise.
11970 * calls.c: Likewise.
11971 * ccmp.c: Likewise.
11973 * cfganal.c: Likewise.
11974 * cfgbuild.c: Likewise.
11975 * cfgcleanup.c: Likewise.
11976 * cfgexpand.c: Likewise.
11977 * cfghooks.c: Likewise.
11978 * cfgloop.c: Likewise.
11979 * cfgloop.h: Likewise.
11980 * cfgloopanal.c: Likewise.
11981 * cfgloopmanip.c: Likewise.
11982 * cfgrtl.c: Likewise.
11983 * cgraph.c: Likewise.
11984 * cgraphbuild.c: Likewise.
11985 * cgraphclones.c: Likewise.
11986 * cgraphunit.c: Likewise.
11987 * cilk-common.c: Likewise.
11988 * combine-stack-adj.c: Likewise.
11989 * combine.c: Likewise.
11990 * compare-elim.c: Likewise.
11991 * convert.c: Likewise.
11992 * coverage.c: Likewise.
11993 * cppbuiltin.c: Likewise.
11994 * cprop.c: Likewise.
11996 * cselib.c: Likewise.
11997 * data-streamer-in.c: Likewise.
11998 * data-streamer-out.c: Likewise.
11999 * data-streamer.c: Likewise.
12000 * dbxout.c: Likewise.
12003 * debug.c: Likewise.
12004 * df-core.c: Likewise.
12005 * df-problems.c: Likewise.
12006 * df-scan.c: Likewise.
12009 * dojump.c: Likewise.
12010 * dominance.c: Likewise.
12011 * domwalk.c: Likewise.
12012 * double-int.c: Likewise.
12014 * dumpfile.c: Likewise.
12015 * dwarf2asm.c: Likewise.
12016 * dwarf2cfi.c: Likewise.
12017 * dwarf2out.c: Likewise.
12018 * dwarf2out.h: Likewise.
12019 * emit-rtl.c: Likewise.
12020 * et-forest.c: Likewise.
12021 * except.c: Likewise.
12022 * explow.c: Likewise.
12023 * expmed.c: Likewise.
12024 * expr.c: Likewise.
12025 * final.c: Likewise.
12026 * fixed-value.c: Likewise.
12027 * fold-const.c: Likewise.
12028 * function.c: Likewise.
12029 * fwprop.c: Likewise.
12030 * gcc-plugin.h: Likewise.
12031 * gcse.c: Likewise.
12032 * generic-match-head.c: Likewise.
12033 * ggc-page.c: Likewise.
12034 * gimple-builder.c: Likewise.
12035 * gimple-expr.c: Likewise.
12036 * gimple-fold.c: Likewise.
12037 * gimple-iterator.c: Likewise.
12038 * gimple-low.c: Likewise.
12039 * gimple-match-head.c: Likewise.
12040 * gimple-pretty-print.c: Likewise.
12041 * gimple-ssa-isolate-paths.c: Likewise.
12042 * gimple-ssa-strength-reduction.c: Likewise.
12043 * gimple-streamer-in.c: Likewise.
12044 * gimple-streamer-out.c: Likewise.
12045 * gimple-streamer.h: Likewise.
12046 * gimple-walk.c: Likewise.
12047 * gimple.c: Likewise.
12048 * gimplify-me.c: Likewise.
12049 * gimplify.c: Likewise.
12050 * godump.c: Likewise.
12051 * graph.c: Likewise.
12052 * graphite-blocking.c: Likewise.
12053 * graphite-dependences.c: Likewise.
12054 * graphite-interchange.c: Likewise.
12055 * graphite-isl-ast-to-gimple.c: Likewise.
12056 * graphite-optimize-isl.c: Likewise.
12057 * graphite-poly.c: Likewise.
12058 * graphite-scop-detection.c: Likewise.
12059 * graphite-sese-to-poly.c: Likewise.
12060 * graphite.c: Likewise.
12061 * haifa-sched.c: Likewise.
12062 * hooks.h: Likewise.
12063 * hw-doloop.c: Likewise.
12064 * ifcvt.c: Likewise.
12065 * incpath.c: Likewise.
12066 * init-regs.c: Likewise.
12067 * internal-fn.c: Likewise.
12068 * ipa-chkp.c: Likewise.
12069 * ipa-comdats.c: Likewise.
12070 * ipa-cp.c: Likewise.
12071 * ipa-devirt.c: Likewise.
12072 * ipa-icf-gimple.c: Likewise.
12073 * ipa-icf.c: Likewise.
12074 * ipa-inline-analysis.c: Likewise.
12075 * ipa-inline-transform.c: Likewise.
12076 * ipa-inline.c: Likewise.
12077 * ipa-polymorphic-call.c: Likewise.
12078 * ipa-profile.c: Likewise.
12079 * ipa-prop.c: Likewise.
12080 * ipa-pure-const.c: Likewise.
12081 * ipa-ref.c: Likewise.
12082 * ipa-reference.c: Likewise.
12083 * ipa-split.c: Likewise.
12084 * ipa-utils.c: Likewise.
12085 * ipa-visibility.c: Likewise.
12087 * ira-build.c: Likewise.
12088 * ira-color.c: Likewise.
12089 * ira-conflicts.c: Likewise.
12090 * ira-costs.c: Likewise.
12091 * ira-emit.c: Likewise.
12092 * ira-lives.c: Likewise.
12094 * jump.c: Likewise.
12095 * langhooks.c: Likewise.
12097 * loop-doloop.c: Likewise.
12098 * loop-init.c: Likewise.
12099 * loop-invariant.c: Likewise.
12100 * loop-iv.c: Likewise.
12101 * loop-unroll.c: Likewise.
12102 * lower-subreg.c: Likewise.
12103 * lra-assigns.c: Likewise.
12104 * lra-coalesce.c: Likewise.
12105 * lra-constraints.c: Likewise.
12106 * lra-eliminations.c: Likewise.
12107 * lra-lives.c: Likewise.
12108 * lra-remat.c: Likewise.
12109 * lra-spills.c: Likewise.
12111 * lto-cgraph.c: Likewise.
12112 * lto-compress.c: Likewise.
12113 * lto-opts.c: Likewise.
12114 * lto-section-in.c: Likewise.
12115 * lto-section-out.c: Likewise.
12116 * lto-streamer-in.c: Likewise.
12117 * lto-streamer-out.c: Likewise.
12118 * lto-streamer.c: Likewise.
12120 * mode-switching.c: Likewise.
12121 * modulo-sched.c: Likewise.
12122 * omega.c: Likewise.
12123 * omp-low.c: Likewise.
12124 * optabs.c: Likewise.
12125 * opts-global.c: Likewise.
12126 * passes.c: Likewise.
12127 * plugin.c: Likewise.
12128 * postreload-gcse.c: Likewise.
12129 * postreload.c: Likewise.
12130 * predict.c: Likewise.
12131 * print-rtl.c: Likewise.
12132 * print-tree.c: Likewise.
12133 * profile.c: Likewise.
12134 * real.c: Likewise.
12135 * realmpfr.c: Likewise.
12136 * realmpfr.h: Likewise.
12137 * recog.c: Likewise.
12139 * reg-stack.c: Likewise.
12140 * regcprop.c: Likewise.
12141 * reginfo.c: Likewise.
12142 * regrename.c: Likewise.
12143 * regs.h: Likewise.
12144 * regstat.c: Likewise.
12145 * reload.c: Likewise.
12146 * reload1.c: Likewise.
12147 * reorg.c: Likewise.
12148 * resource.c: Likewise.
12149 * rtl-chkp.c: Likewise.
12150 * rtlanal.c: Likewise.
12151 * rtlhooks.c: Likewise.
12152 * sanopt.c: Likewise.
12153 * sched-deps.c: Likewise.
12154 * sched-ebb.c: Likewise.
12155 * sched-rgn.c: Likewise.
12156 * sched-vis.c: Likewise.
12157 * sdbout.c: Likewise.
12158 * sel-sched-dump.c: Likewise.
12159 * sel-sched-ir.c: Likewise.
12160 * sel-sched.c: Likewise.
12161 * sese.c: Likewise.
12162 * shrink-wrap.c: Likewise.
12163 * shrink-wrap.h: Likewise.
12164 * simplify-rtx.c: Likewise.
12165 * stack-ptr-mod.c: Likewise.
12166 * statistics.c: Likewise.
12167 * stmt.c: Likewise.
12168 * stor-layout.c: Likewise.
12169 * store-motion.c: Likewise.
12170 * stringpool.c: Likewise.
12171 * symtab.c: Likewise.
12172 * target-globals.c: Likewise.
12173 * targhooks.c: Likewise.
12174 * toplev.c: Likewise.
12175 * tracer.c: Likewise.
12176 * trans-mem.c: Likewise.
12177 * tree-affine.c: Likewise.
12178 * tree-affine.h: Likewise.
12179 * tree-browser.c: Likewise.
12180 * tree-call-cdce.c: Likewise.
12181 * tree-cfg.c: Likewise.
12182 * tree-cfgcleanup.c: Likewise.
12183 * tree-chkp-opt.c: Likewise.
12184 * tree-chkp.c: Likewise.
12185 * tree-chrec.c: Likewise.
12186 * tree-complex.c: Likewise.
12187 * tree-data-ref.c: Likewise.
12188 * tree-dfa.c: Likewise.
12189 * tree-diagnostic.c: Likewise.
12190 * tree-dump.c: Likewise.
12191 * tree-eh.c: Likewise.
12192 * tree-emutls.c: Likewise.
12193 * tree-if-conv.c: Likewise.
12194 * tree-inline.c: Likewise.
12195 * tree-into-ssa.c: Likewise.
12196 * tree-iterator.c: Likewise.
12197 * tree-loop-distribution.c: Likewise.
12198 * tree-nested.c: Likewise.
12199 * tree-nrv.c: Likewise.
12200 * tree-object-size.c: Likewise.
12201 * tree-outof-ssa.c: Likewise.
12202 * tree-parloops.c: Likewise.
12203 * tree-phinodes.c: Likewise.
12204 * tree-predcom.c: Likewise.
12205 * tree-pretty-print.c: Likewise.
12206 * tree-pretty-print.h: Likewise.
12207 * tree-profile.c: Likewise.
12208 * tree-scalar-evolution.c: Likewise.
12209 * tree-sra.c: Likewise.
12210 * tree-ssa-address.c: Likewise.
12211 * tree-ssa-alias.c: Likewise.
12212 * tree-ssa-ccp.c: Likewise.
12213 * tree-ssa-coalesce.c: Likewise.
12214 * tree-ssa-copy.c: Likewise.
12215 * tree-ssa-copyrename.c: Likewise.
12216 * tree-ssa-dce.c: Likewise.
12217 * tree-ssa-dom.c: Likewise.
12218 * tree-ssa-dse.c: Likewise.
12219 * tree-ssa-forwprop.c: Likewise.
12220 * tree-ssa-ifcombine.c: Likewise.
12221 * tree-ssa-live.c: Likewise.
12222 * tree-ssa-loop-ch.c: Likewise.
12223 * tree-ssa-loop-im.c: Likewise.
12224 * tree-ssa-loop-ivcanon.c: Likewise.
12225 * tree-ssa-loop-ivopts.c: Likewise.
12226 * tree-ssa-loop-manip.c: Likewise.
12227 * tree-ssa-loop-niter.c: Likewise.
12228 * tree-ssa-loop-prefetch.c: Likewise.
12229 * tree-ssa-loop-unswitch.c: Likewise.
12230 * tree-ssa-loop.c: Likewise.
12231 * tree-ssa-loop.h: Likewise.
12232 * tree-ssa-math-opts.c: Likewise.
12233 * tree-ssa-operands.c: Likewise.
12234 * tree-ssa-phiopt.c: Likewise.
12235 * tree-ssa-phiprop.c: Likewise.
12236 * tree-ssa-pre.c: Likewise.
12237 * tree-ssa-propagate.c: Likewise.
12238 * tree-ssa-reassoc.c: Likewise.
12239 * tree-ssa-sccvn.c: Likewise.
12240 * tree-ssa-scopedtables.c: Likewise.
12241 * tree-ssa-sink.c: Likewise.
12242 * tree-ssa-strlen.c: Likewise.
12243 * tree-ssa-structalias.c: Likewise.
12244 * tree-ssa-tail-merge.c: Likewise.
12245 * tree-ssa-ter.c: Likewise.
12246 * tree-ssa-threadedge.c: Likewise.
12247 * tree-ssa-threadupdate.c: Likewise.
12248 * tree-ssa-uncprop.c: Likewise.
12249 * tree-ssa-uninit.c: Likewise.
12250 * tree-ssa.c: Likewise.
12251 * tree-ssanames.c: Likewise.
12252 * tree-stdarg.c: Likewise.
12253 * tree-streamer-in.c: Likewise.
12254 * tree-streamer-out.c: Likewise.
12255 * tree-streamer.c: Likewise.
12256 * tree-switch-conversion.c: Likewise.
12257 * tree-tailcall.c: Likewise.
12258 * tree-vect-data-refs.c: Likewise.
12259 * tree-vect-generic.c: Likewise.
12260 * tree-vect-loop-manip.c: Likewise.
12261 * tree-vect-loop.c: Likewise.
12262 * tree-vect-patterns.c: Likewise.
12263 * tree-vect-slp.c: Likewise.
12264 * tree-vect-stmts.c: Likewise.
12265 * tree-vectorizer.c: Likewise.
12266 * tree-vrp.c: Likewise.
12267 * tree.c: Likewise.
12268 * tsan.c: Likewise.
12269 * ubsan.c: Likewise.
12270 * valtrack.c: Likewise.
12271 * value-prof.c: Likewise.
12272 * var-tracking.c: Likewise.
12273 * varasm.c: Likewise.
12274 * varpool.c: Likewise.
12275 * vmsdbgout.c: Likewise.
12276 * vtable-verify.c: Likewise.
12278 * wide-int-print.cc: Likewise.
12279 * wide-int-print.h: Likewise.
12280 * wide-int.cc: Likewise.
12281 * xcoffout.c: Likewise.
12282 * config/aarch64/aarch64-builtins.c: Likewise.
12283 * config/aarch64/aarch64.c: Likewise.
12284 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12285 * config/alpha/alpha.c: Likewise.
12286 * config/arc/arc.c: Likewise.
12287 * config/arm/aarch-common.c: Likewise.
12288 * config/arm/arm-builtins.c: Likewise.
12289 * config/arm/arm-c.c: Likewise.
12290 * config/arm/arm.c: Likewise.
12291 * config/avr/avr-c.c: Likewise.
12292 * config/avr/avr-log.c: Likewise.
12293 * config/avr/avr.c: Likewise.
12294 * config/bfin/bfin.c: Likewise.
12295 * config/c6x/c6x.c: Likewise.
12296 * config/cr16/cr16.c: Likewise.
12297 * config/cris/cris.c: Likewise.
12298 * config/darwin-c.c: Likewise.
12299 * config/darwin.c: Likewise.
12300 * config/default-c.c: Likewise.
12301 * config/epiphany/epiphany.c: Likewise.
12302 * config/epiphany/mode-switch-use.c: Likewise.
12303 * config/epiphany/resolve-sw-modes.c: Likewise.
12304 * config/fr30/fr30.c: Likewise.
12305 * config/frv/frv.c: Likewise.
12306 * config/ft32/ft32.c: Likewise.
12307 * config/glibc-c.c: Likewise.
12308 * config/h8300/h8300.c: Likewise.
12309 * config/i386/i386-c.c: Likewise.
12310 * config/i386/i386.c: Likewise.
12311 * config/i386/msformat-c.c: Likewise.
12312 * config/i386/winnt-cxx.c: Likewise.
12313 * config/i386/winnt-stubs.c: Likewise.
12314 * config/i386/winnt.c: Likewise.
12315 * config/ia64/ia64-c.c: Likewise.
12316 * config/ia64/ia64.c: Likewise.
12317 * config/iq2000/iq2000.c: Likewise.
12318 * config/lm32/lm32.c: Likewise.
12319 * config/m32c/m32c-pragma.c: Likewise.
12320 * config/m32c/m32c.c: Likewise.
12321 * config/m32r/m32r.c: Likewise.
12322 * config/m68k/m68k.c: Likewise.
12323 * config/mcore/mcore.c: Likewise.
12324 * config/mep/mep-pragma.c: Likewise.
12325 * config/mep/mep.c: Likewise.
12326 * config/microblaze/microblaze-c.c: Likewise.
12327 * config/microblaze/microblaze.c: Likewise.
12328 * config/mips/mips.c: Likewise.
12329 * config/mmix/mmix.c: Likewise.
12330 * config/mn10300/mn10300.c: Likewise.
12331 * config/moxie/moxie.c: Likewise.
12332 * config/msp430/msp430-c.c: Likewise.
12333 * config/msp430/msp430.c: Likewise.
12334 * config/nds32/nds32-cost.c: Likewise.
12335 * config/nds32/nds32-fp-as-gp.c: Likewise.
12336 * config/nds32/nds32-intrinsic.c: Likewise.
12337 * config/nds32/nds32-isr.c: Likewise.
12338 * config/nds32/nds32-md-auxiliary.c: Likewise.
12339 * config/nds32/nds32-memory-manipulation.c: Likewise.
12340 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12341 * config/nds32/nds32-predicates.c: Likewise.
12342 * config/nds32/nds32.c: Likewise.
12343 * config/nios2/nios2.c: Likewise.
12344 * config/nvptx/nvptx.c: Likewise.
12345 * config/pa/pa.c: Likewise.
12346 * config/pdp11/pdp11.c: Likewise.
12347 * config/rl78/rl78-c.c: Likewise.
12348 * config/rl78/rl78.c: Likewise.
12349 * config/rs6000/rs6000-c.c: Likewise.
12350 * config/rs6000/rs6000.c: Likewise.
12351 * config/rx/rx.c: Likewise.
12352 * config/s390/s390-c.c: Likewise.
12353 * config/s390/s390.c: Likewise.
12354 * config/sh/sh-c.c: Likewise.
12355 * config/sh/sh-mem.cc: Likewise.
12356 * config/sh/sh.c: Likewise.
12357 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12358 * config/sh/sh_treg_combine.cc: Likewise.
12359 * config/sol2-c.c: Likewise.
12360 * config/sol2-cxx.c: Likewise.
12361 * config/sol2-stubs.c: Likewise.
12362 * config/sol2.c: Likewise.
12363 * config/sparc/sparc-c.c: Likewise.
12364 * config/sparc/sparc.c: Likewise.
12365 * config/spu/spu-c.c: Likewise.
12366 * config/spu/spu.c: Likewise.
12367 * config/stormy16/stormy16.c: Likewise.
12368 * config/tilegx/mul-tables.c: Likewise.
12369 * config/tilegx/tilegx-c.c: Likewise.
12370 * config/tilegx/tilegx.c: Likewise.
12371 * config/tilepro/mul-tables.c: Likewise.
12372 * config/tilepro/tilepro-c.c: Likewise.
12373 * config/tilepro/tilepro.c: Likewise.
12374 * config/v850/v850-c.c: Likewise.
12375 * config/v850/v850.c: Likewise.
12376 * config/vax/vax.c: Likewise.
12377 * config/visium/visium.c: Likewise.
12378 * config/vms/vms-c.c: Likewise.
12379 * config/vms/vms.c: Likewise.
12380 * config/vxworks.c: Likewise.
12381 * config/winnt-c.c: Likewise.
12382 * config/xtensa/xtensa.c: Likewise.
12383 * common/config/bfin/bfin-common.c: Likewise.
12385 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
12387 * tree.h (tree_code_for_canonical_type_merging): New function.
12388 * tree.c (gimple_canonical_types_compatible_p): Use
12389 tree_code_for_canonical_type_merging..
12391 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12395 * doc/tm.texi: Regenerate.
12396 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
12397 * target.def (TARGET_RELAXED_ORDERING): Likewise.
12398 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
12399 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
12400 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
12401 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
12402 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
12403 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
12404 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
12406 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12408 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
12409 register fma steering pass.
12410 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
12411 AARCH64_TUNE_FMA_STEERING.
12413 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
12415 * tree.c (verify_type_variant): Verify that type and variant is
12417 (gimple_canonical_types_compatible_p): Look for main variants.
12419 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
12421 * config.gcc (powerpc*-*-*): Add support for a new configure
12422 option --with-advance-toolchain=<xxx> which overrides using the
12423 default header files, libraries and dynamic linker.
12425 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
12426 specs to support the configure --with-advance-toolchain=<xxx>
12428 (INCLUDE_EXTRA_SPEC): Likewise.
12429 (LINK_OS_EXTRA_SPEC32): Likewise.
12430 (LINK_OK_EXTRA_SPEC64): Likewise.
12431 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
12432 (DYNAMIC_LINKER_PREFIX): Likewise.
12433 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
12435 (GLIBC_DYNAMIC_LINKER32): Likewise.
12436 (GLIBC_DYNAMIC_LINKER64): Likewise.
12437 (LINK_OS_LINUX_SPEC32): Likewise.
12438 (LINK_OS_LINUX_SPEC64): Likewise.
12440 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
12441 configuration option.
12443 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
12446 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
12447 to determine current function ABI.
12448 (ix86_function_value_regno_p): Ditto.
12450 2015-06-03 Martin Liska <mliska@suse.cz>
12452 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
12453 * bitmap.h (struct bitmap_usage): Likewise.
12454 * ggc-common.c (struct ggc_usage): Likewise.
12455 * mem-stats.h (struct mem_location): Likewise.
12456 (struct mem_usage): Likewise.
12457 * vec.c (struct vec_usage): Likewise.
12459 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
12461 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
12464 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
12466 * doc/plugins.texi (enum plugin_event): New event.
12467 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
12468 and PLUGIN_FINISH_FUNCTION.
12469 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
12470 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
12472 2015-06-03 Richard Biener <rguenther@suse.de>
12474 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
12475 compute GROUP_GAP for the first element.
12476 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
12479 2015-06-03 Nick Clifton <nickc@redhat.com>
12481 * config/rl78/rl78-real.md: Add peepholes to avoid a register
12482 copy when calling a function.
12483 * config/rl78/rl78.c (need_to_save): Do not push the frame
12484 pointer in an interrupt handler prologue if it is never used.
12486 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12488 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
12490 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
12492 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
12493 reference when cloning alias node.
12495 2015-06-03 Martin Liska <mliska@suse.cz>
12497 * alloc-pool.h (struct pool_usage): Correct space padding.
12498 * ggc-page.c (ggc_print_statistics): Align columns in a report.
12499 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
12500 * tree.c (dump_tree_statistics): Align columns in a report.
12502 2015-06-03 Martin Liska <mliska@suse.cz>
12504 * alloc-pool.c (allocate_pool_descriptor): Remove.
12505 (struct pool_output_info): Likewise.
12506 (print_alloc_pool_statistics): Likewise.
12507 (dump_alloc_pool_statistics): Likewise.
12508 * alloc-pool.h (struct pool_usage): New struct.
12509 (pool_allocator::initialize): Change usage of memory statistics
12510 to a new interface.
12511 (pool_allocator::release): Likewise.
12512 (pool_allocator::allocate): Likewise.
12513 (pool_allocator::remove): Likewise.
12514 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
12515 for a pool allocator.
12516 * mem-stats.h (struct mem_location): Add new ctor.
12517 (struct mem_usage): Add counter for number of
12519 (mem_alloc_description::register_descriptor): New overload of
12520 * mem-stats.h (mem_location::to_string): New function.
12521 * bitmap.h (struct bitmap_usage): Use this new function.
12522 * ggc-common.c (struct ggc_usage): Likewise.
12525 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
12527 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
12528 of GCC_INSN_FLAGS_H block.
12530 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
12532 * explow.c (plus_constant): Update check after force_const_mem call
12533 to see if the value returned is not a NULL_RTX.
12535 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
12537 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
12538 remove instumentation thunks calling reachable functions.
12539 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
12540 * lto/lto-partition.c (privatize_symbol_name_1): New.
12541 (privatize_symbol_name): Privatize both decl and orig_decl
12542 names for instrumented functions.
12543 * cgraph.c (cgraph_node::verify_node): Add transparent
12544 alias chain check for instrumented node.
12546 2015-06-03 Marek Polacek <polacek@redhat.com>
12550 * tree.c (attribute_value_equal): Handle attribute format.
12551 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
12553 2015-06-03 Richard Biener <rguenther@suse.de>
12555 PR tree-optimization/63916
12556 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
12557 Forward-propagate non-invariant addresses by splicing their
12558 reference ops if the result isn't going to be used by PRE.
12559 (vn_reference_lookup_3): Remove pointless assert.
12561 2015-06-03 Richard Biener <rguenther@suse.de>
12563 PR tree-optimization/66375
12564 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
12565 add to the evolution before following SSA edges.
12567 2015-06-03 Bin Cheng <bin.cheng@arm.com>
12569 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
12570 (dump_use, dump_cand, find_induction_variables): Pass new argument
12572 (record_use): Preserve the ssa name information in IV.
12574 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
12576 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
12578 (add_mode_tests): Don't add mode tests if the predicate only
12579 accepts scalar constant integers. Otherwise, allow the mode
12580 of "op" to be VOIDmode if the predicate does accept such integers.
12582 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
12585 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
12586 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
12587 (aarch64_secondary_reload): Likewise
12588 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
12590 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
12593 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
12594 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12597 * cprop.c (try_replace_reg): Check cost of constants before propagating.
12599 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12601 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
12602 provide access to the IBM extended double floating point mode if
12603 long double is IEEE 128-bit floating point.
12604 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
12605 point if long double is the IBM extended double type.
12607 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
12608 enable adding IEEE 128-bit floating point support.
12609 (-mfloat128-software): Likewise.
12610 (-mfloat128-sw): Likewise.
12612 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
12613 128-bit floating point types to occupy any register if
12614 -mlong-double-64. Do not allow use of IFmode/KFmode unless
12615 -mfloat128-software is enabled.
12616 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
12618 (rs6000_option_override_internal): Add -mfloat128-* support.
12619 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
12621 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
12622 and float128 type nodes.
12623 (ieee128_float_type_node): Likewise.
12624 (ibm128_float_type_node): Likewise.
12626 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
12629 * config/aarch64/geniterators.sh: Rewrite in awk.
12631 2015-06-02 Martin Liska <mliska@suse.cz>
12633 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
12634 values to avoid -Wmaybe-uninitialized errors.
12636 2015-06-02 Richard Biener <rguenther@suse.de>
12639 * dwarf2out.c (lookup_context_die): New function.
12640 (resolve_addr): Avoid forcing a full DIE for the
12641 target of a DW_TAG_GNU_call_site during late compilation.
12642 Instead create a stub DIE without a type if we have a
12643 context DIE present.
12645 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
12647 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
12649 2015-06-02 Bin Cheng <bin.cheng@arm.com>
12651 PR tree-optimization/48052
12652 * cfgloop.h (struct control_iv): New.
12653 (struct loop): New field control_ivs.
12654 * tree-ssa-loop-niter.c : Include "stor-layout.h".
12655 (number_of_iterations_lt): Set no_overflow information.
12656 (number_of_iterations_exit): Init control iv in niter struct.
12657 (record_control_iv): New.
12658 (estimate_numbers_of_iterations_loop): Call record_control_iv.
12659 (loop_exits_before_overflow): New. Interface factored out of
12660 scev_probably_wraps_p.
12661 (scev_probably_wraps_p): Factor loop niter related code into
12662 loop_exits_before_overflow.
12663 (free_numbers_of_iterations_estimates_loop): Free control ivs.
12664 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
12666 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
12668 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
12669 the target doesn't belong to the current function.
12671 2015-06-02 Marek Polacek <polacek@redhat.com>
12673 PR middle-end/66345
12674 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
12675 get_maxval_strlen does not produce an INTEGER_CST.
12677 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
12679 * config/arc/constraints.md: Use lower-case names in match_code.
12680 * config/mmix/constraints.md: Likewise.
12682 2015-06-02 Richard Biener <rguenther@suse.de>
12684 PR tree-optimization/65961
12685 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
12686 check and clarify dump message.
12687 (vect_build_slp_tree): If all children are built up from scalars
12688 build up the parent from scalars instead.
12689 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
12691 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12694 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
12695 instead of print ... .
12697 2015-06-02 Alan Modra <amodra@gmail.com>
12699 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
12702 2015-06-02 Bin Cheng <bin.cheng@arm.com>
12704 PR tree-optimization/52563
12705 PR tree-optimization/62173
12706 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
12707 (alloc_iv, set_iv): New parameter.
12708 (determine_biv_step): Delete.
12709 (find_bivs): Inline original determine_biv_step. Pass new
12710 argument to set_iv.
12711 (idx_find_step): Use no_overflow information for conversion.
12712 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
12713 resolve_mixers handle folded_casts.
12714 (instantiate_scev_name): Change bool parameter to bool pointer.
12715 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
12716 (instantiate_array_ref, instantiate_scev_not): Ditto.
12717 (instantiate_scev_3, instantiate_scev_2): Ditto.
12718 (instantiate_scev_1, instantiate_scev_r): Ditto.
12719 (instantiate_scev_convert, ): Change parameter. Pass argument
12720 to chrec_convert_aggressive.
12721 (instantiate_scev): Change argument.
12722 (resolve_mixers): New parameter and set it.
12723 (scev_const_prop): New argument.
12724 * tree-scalar-evolution.h (resolve_mixers): New parameter.
12725 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
12727 (chrec_convert): New parameter. Move definition below.
12728 (chrec_convert_aggressive): New parameter and set it. Call
12729 convert_affine_scev.
12730 * tree-chrec.h (chrec_convert): New parameter.
12731 (chrec_convert_aggressive): Ditto.
12733 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
12735 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
12736 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
12737 the LHS of a no-return call if its type has variable size.
12738 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
12739 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
12741 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
12743 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
12744 * config.in: Regenerate.
12746 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
12748 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
12749 consecutive accesses within outer-loop with force_vectorize
12750 for references with zero step in inner-loop.
12752 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
12754 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
12755 rather than from gcc/build directory.
12757 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
12760 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
12761 for __sync memory models, emit initial loads and final barriers as
12764 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
12767 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
12768 (aarch64_split_atomic_op): Check for __sync memory models, emit
12769 appropriate initial loads and final barriers.
12771 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
12773 * Makefile.in: Fix gcov dependencies that should
12774 not point to a build folder.
12776 2015-06-01 Richard Biener <rguenther@suse.de>
12779 2015-05-29 Richard Biener <rguenther@suse.de>
12781 PR tree-optimization/66314
12782 * tree-ssa-threadupdate.c (create_block_for_threading): Add
12783 parameter that says which loop the new block belongs to.
12784 (ssa_create_duplicates): Blocks duplicated for the threaded
12785 path belong to the loop of the thread destination.
12787 2015-06-01 Martin Liska <mliska@suse.cz>
12789 * sched-deps.c: Include pool-alloc.h before
12790 cselib.h header file is included.
12792 2015-06-01 Richard Biener <rguenther@suse.de>
12794 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
12797 2015-06-01 Martin Liska <mliska@suse.cz>
12799 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
12800 a function local variable.
12802 2015-06-01 Martin Liska <mliska@suse.cz>
12804 * alloc-pool.c (create_alloc_pool): Remove.
12805 (empty_alloc_pool): Likewise.
12806 (free_alloc_pool): Likewise.
12807 (free_alloc_pool_if_empty): Likewise.
12808 (pool_alloc): Likewise.
12809 (pool_free): Likewise.
12810 * alloc-pool.h: Remove old declarations.
12812 2015-06-01 Martin Liska <mliska@suse.cz>
12814 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
12815 (ira_create_object): Likewise.
12816 (ira_create_allocno): Likewise.
12817 (ira_create_live_range): Likewise.
12818 (copy_live_range): Likewise.
12819 (ira_finish_live_range): Likewise.
12820 (ira_free_allocno_costs): Likewise.
12821 (finish_allocno): Likewise.
12822 (finish_allocnos): Likewise.
12823 (initiate_prefs): Likewise.
12824 (ira_create_pref): Likewise.
12825 (finish_pref): Likewise.
12826 (finish_prefs): Likewise.
12827 (initiate_copies): Likewise.
12828 (ira_create_copy): Likewise.
12829 (finish_copy): Likewise.
12830 (finish_copies): Likewise.
12831 (finish_prefs): Likewise.
12833 2015-06-01 Martin Liska <mliska@suse.cz>
12835 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
12836 (allocate_and_init_ipcp_value): Likewise.
12837 (ipcp_lattice::add_value): Likewise.
12838 (merge_agg_lats_step): Likewise.
12839 (ipcp_driver): Likewise.
12840 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
12841 (ipa_free_all_structures_after_iinln): Likewise.
12842 * ipa-prop.h: Likewise.
12844 2015-06-01 Martin Liska <mliska@suse.cz>
12846 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
12848 (set_hint_predicate): Likewise.
12849 (inline_summary_alloc): Likewise.
12850 (reset_inline_edge_summary): Likewise.
12851 (reset_inline_summary): Likewise.
12852 (set_cond_stmt_execution_predicate): Likewise.
12853 (set_switch_stmt_execution_predicate): Likewise.
12854 (compute_bb_predicates): Likewise.
12855 (estimate_function_body_sizes): Likewise.
12856 (inline_free_summary): Likewise.
12858 2015-06-01 Martin Liska <mliska@suse.cz>
12860 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
12861 (ipa_edge_duplication_hook): Likewise.
12862 (ipa_free_all_structures_after_ipa_cp): Likewise.
12863 (ipa_free_all_structures_after_iinln): Likewise.
12865 2015-06-01 Martin Liska <mliska@suse.cz>
12867 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
12868 (ipa_profile_generate_summary): Likewise.
12869 (ipa_profile_read_summary): Likewise.
12870 (ipa_profile): Likewise.
12872 2015-06-01 Martin Liska <mliska@suse.cz>
12874 * tree-ssa-structalias.c (new_var_info): Use new type-based
12876 (new_constraint): Likewise.
12877 (init_alias_vars): Likewise.
12878 (delete_points_to_sets): Likewise.
12880 2015-06-01 Martin Liska <mliska@suse.cz>
12882 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
12883 (free_strinfo): Likewise.
12884 (pass_strlen::execute): Likewise.
12886 2015-06-01 Martin Liska <mliska@suse.cz>
12888 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
12890 (vn_reference_insert_pieces): Likewise.
12891 (vn_phi_insert): Likewise.
12892 (visit_reference_op_call): Likewise.
12893 (copy_phi): Likewise.
12894 (copy_reference): Likewise.
12895 (process_scc): Likewise.
12896 (allocate_vn_table): Likewise.
12897 (free_vn_table): Likewise.
12899 2015-06-01 Martin Liska <mliska@suse.cz>
12901 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
12903 (add_repeat_to_ops_vec): Likewise.
12904 (get_ops): Likewise.
12905 (maybe_optimize_range_tests): Likewise.
12906 (init_reassoc): Likewise.
12907 (fini_reassoc): Likewise.
12909 2015-06-01 Martin Liska <mliska@suse.cz>
12911 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
12913 (bitmap_set_new): Likewise.
12914 (get_or_alloc_expr_for_constant): Likewise.
12915 (get_or_alloc_expr_for): Likewise.
12916 (phi_translate_1): Likewise.
12917 (compute_avail): Likewise.
12918 (init_pre): Likewise.
12919 (fini_pre): Likewise.
12921 2015-06-01 Martin Liska <mliska@suse.cz>
12923 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
12924 (delete_dep_node): Likewise.
12925 (create_deps_list): Likewise.
12926 (free_deps_list): Likewise.
12927 (sched_deps_init): Likewise.
12928 (sched_deps_finish): Likewise.
12930 2015-06-01 Martin Liska <mliska@suse.cz>
12932 * regcprop.c (free_debug_insn_changes): Use new type-based
12934 (replace_oldest_value_reg): Likewise.
12935 (pass_cprop_hardreg::execute): Likewise.
12937 2015-06-01 Martin Liska <mliska@suse.cz>
12939 * ira-build.c (initiate_cost_vectors): Use new type-based
12941 (ira_allocate_cost_vector): Likewise.
12942 (ira_free_cost_vector): Likewise.
12943 (finish_cost_vectors): Likewise.
12945 2015-06-01 Martin Liska <mliska@suse.cz>
12947 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
12949 (free_sched_pools): Likewise.
12950 * sel-sched-ir.h (_list_alloc): Likewise.
12951 (_list_remove): Likewise.
12953 2015-06-01 Martin Liska <mliska@suse.cz>
12955 * stmt.c (add_case_node): Use new type-based pool allocator.
12956 (expand_case): Likewise.
12957 (expand_sjlj_dispatch_table): Likewise.
12959 2015-06-01 Martin Liska <mliska@suse.cz>
12961 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
12962 (free_bb): Likewise.
12963 (pass_cse_reciprocals::execute): Likewise.
12965 2015-06-01 Martin Liska <mliska@suse.cz>
12967 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
12968 (sra_deinitialize) Likewise.
12969 (create_access_1) Likewise.
12970 (build_accesses_from_assign) Likewise.
12971 (create_artificial_child_access) Likewise.
12973 2015-06-01 Martin Liska <mliska@suse.cz>
12975 * dse.c (get_group_info):Use new type-based pool allocator.
12976 (dse_step0) Likewise.
12977 (free_store_info) Likewise.
12978 (delete_dead_store_insn) Likewise.
12979 (free_read_records) Likewise.
12980 (record_store) Likewise.
12981 (replace_read) Likewise.
12982 (check_mem_read_rtx) Likewise.
12983 (scan_insn) Likewise.
12984 (dse_step1) Likewise.
12985 (dse_step7) Likewise.
12987 2015-06-01 Martin Liska <mliska@suse.cz>
12989 * df-scan.c (struct df_scan_problem_data):Use new type-based
12991 (df_scan_free_internal) Likewise.
12992 (df_scan_alloc) Likewise.
12993 (df_grow_reg_info) Likewise.
12994 (df_free_ref) Likewise.
12995 (df_insn_create_insn_record) Likewise.
12996 (df_mw_hardreg_chain_delete) Likewise.
12997 (df_insn_info_delete) Likewise.
12998 (df_free_collection_rec) Likewise.
12999 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
13000 (df_sort_and_compress_mws) Likewise.
13001 (df_ref_create_structure) Likewise.
13002 (df_ref_record) Likewise.
13004 2015-06-01 Martin Liska <mliska@suse.cz>
13006 * df-problems.c (df_chain_create):Use new type-based pool allocator.
13007 (df_chain_unlink_1) Likewise.
13008 (df_chain_unlink) Likewise.
13009 (df_chain_remove_problem) Likewise.
13010 (df_chain_alloc) Likewise.
13011 (df_chain_free) Likewise.
13012 * df.h (struct dataflow) Likewise.
13014 2015-06-01 Martin Liska <mliska@suse.cz>
13016 * cselib.c (new_elt_list):Use new type-based pool allocator.
13017 (new_elt_loc_list) Likewise.
13018 (unchain_one_elt_list) Likewise.
13019 (unchain_one_elt_loc_list) Likewise.
13020 (unchain_one_value) Likewise.
13021 (new_cselib_val) Likewise.
13022 (cselib_init) Likewise.
13023 (cselib_finish) Likewise.
13025 2015-06-01 Martin Liska <mliska@suse.cz>
13027 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
13028 (sh_reorg) Likewise.
13030 2015-06-01 Martin Liska <mliska@suse.cz>
13032 * cfg.c (initialize_original_copy_tables):Use new type-based
13034 (free_original_copy_tables) Likewise.
13035 (copy_original_table_clear) Likewise.
13036 (copy_original_table_set) Likewise.
13038 2015-06-01 Martin Liska <mliska@suse.cz>
13040 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
13042 (asan_mem_ref_new) Likewise.
13043 (free_mem_ref_resources) Likewise.
13045 2015-06-01 Martin Liska <mliska@suse.cz>
13047 * var-tracking.c (variable_htab_free):Use new type-based
13049 (attrs_list_clear) Likewise.
13050 (attrs_list_insert) Likewise.
13051 (attrs_list_copy) Likewise.
13052 (shared_hash_unshare) Likewise.
13053 (shared_hash_destroy) Likewise.
13054 (unshare_variable) Likewise.
13055 (var_reg_delete_and_set) Likewise.
13056 (var_reg_delete) Likewise.
13057 (var_regno_delete) Likewise.
13058 (drop_overlapping_mem_locs) Likewise.
13059 (variable_union) Likewise.
13060 (insert_into_intersection) Likewise.
13061 (canonicalize_values_star) Likewise.
13062 (variable_merge_over_cur) Likewise.
13063 (dataflow_set_merge) Likewise.
13064 (remove_duplicate_values) Likewise.
13065 (variable_post_merge_new_vals) Likewise.
13066 (dataflow_set_preserve_mem_locs) Likewise.
13067 (dataflow_set_remove_mem_locs) Likewise.
13068 (variable_from_dropped) Likewise.
13069 (variable_was_changed) Likewise.
13070 (set_slot_part) Likewise.
13071 (clobber_slot_part) Likewise.
13072 (delete_slot_part) Likewise.
13073 (loc_exp_insert_dep) Likewise.
13074 (notify_dependents_of_changed_value) Likewise.
13075 (emit_notes_for_differences_1) Likewise.
13076 (vt_emit_notes) Likewise.
13077 (vt_initialize) Likewise.
13078 (vt_finalize) Likewise.
13080 2015-06-01 Martin Liska <mliska@suse.cz>
13082 * ira-color.c (init_update_cost_records):Use new type-based
13084 (get_update_cost_record) Likewise.
13085 (free_update_cost_record_list) Likewise.
13086 (finish_update_cost_records) Likewise.
13087 (initiate_cost_update) Likewise.
13089 2015-06-01 Martin Liska <mliska@suse.cz>
13091 * lra.c (init_insn_regs): Use new type-based pool allocator.
13092 (new_insn_reg) Likewise.
13093 (free_insn_reg) Likewise.
13094 (free_insn_regs) Likewise.
13095 (finish_insn_regs) Likewise.
13096 (init_insn_recog_data) Likewise.
13097 (init_reg_info) Likewise.
13098 (finish_reg_info) Likewise.
13099 (lra_free_copies) Likewise.
13100 (lra_create_copy) Likewise.
13101 (invalidate_insn_data_regno_info) Likewise.
13103 2015-06-01 Martin Liska <mliska@suse.cz>
13105 * lra-lives.c (free_live_range): Use new type-based pool allocator.
13106 (free_live_range_list) Likewise.
13107 (create_live_range) Likewise.
13108 (copy_live_range) Likewise.
13109 (lra_merge_live_ranges) Likewise.
13110 (remove_some_program_points_and_update_live_ranges) Likewise.
13111 (lra_live_ranges_init) Likewise.
13112 (lra_live_ranges_finish) Likewise.
13114 2015-06-01 Martin Liska <mliska@suse.cz>
13116 * et-forest.c (et_new_occ): Use new type-based pool allocator.
13117 (et_new_tree): Likewise.
13118 (et_free_tree): Likewise.
13119 (et_free_tree_force): Likewise.
13120 (et_free_pools): Likewise.
13121 (et_split): Likewise.
13123 2015-06-01 Martin Liska <mliska@suse.cz>
13125 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
13127 * alloc-pool.h (pool_allocator::pool_allocator): New function.
13128 (pool_allocator::release): Likewise.
13129 (inline pool_allocator::release_if_empty): Likewise.
13130 (inline pool_allocator::~pool_allocator): Likewise.
13131 (pool_allocator::allocate): Likewise.
13132 (pool_allocator::remove): Likewise.
13134 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
13136 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
13139 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
13141 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
13143 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
13144 (arm_macro_fusion_p): Likewise.
13145 (arm_macro_fusion_pair_p): Likewise.
13147 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
13149 * config/aarch64/aarch64-protos.h (tune_params): Rename
13150 fuseable_ops to fusible_ops.
13151 * config/aarch64/aarch64.c (generic_tunings): Rename
13152 fuseable_ops to fusible_ops.
13153 (cortexa53_tunings): Likewise.
13154 (cortexa57_tunings): Likewise.
13155 (thunderx_tunings): Likewise.
13156 (xgene1_tunings): Likewise.
13157 (aarch64_macro_fusion_p): Likewise.
13158 (aarch64_macro_fusion_pair_p): Likewise.
13160 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
13162 * config/s390/driver-native.c: New file.
13163 * config/s390/x-native: New file.
13164 * config.host: Add new files for s390.
13165 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
13167 * config.gcc: Likewise.
13168 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
13169 * config/s390/s390-opts.h (enum processor_type): Ditto.
13170 * config/s390/s390.c (s390_option_override): Catch unhandled
13173 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
13176 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
13177 redirection for instrumented calls.
13178 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
13179 (append_compiler_options): Append -fcheck-pointer-bounds.
13180 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
13181 (chkp_redirect_edge): New.
13182 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
13183 (chkp_redirect_edge): New.
13185 2015-06-01 Richard Biener <rguenther@suse.de>
13187 PR tree-optimization/66280
13188 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
13191 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13193 * config/aarch64/aarch64.md
13194 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
13197 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
13199 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
13200 Remove obsolete kludge.
13202 2015-06-01 Richard Biener <rguenther@suse.de>
13204 * tree-ssa-reassoc.c (get_rank): Simplify.
13206 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
13208 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
13209 * configure: Regenerated.
13211 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
13213 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
13214 issue (add space between string literal and macro).
13215 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
13217 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
13219 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
13220 implict or explicit -fPIE or -fpie.
13222 2015-05-30 Mike Frysinger <vapier@gentoo.org>
13224 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
13226 2015-05-28 DJ Delorie <dj@redhat.com>
13228 * expmed.c (extract_bit_field_1): Avoid clobbering a
13229 yet-to-be-used base/index register.
13231 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
13233 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
13234 (alias_stats): Add num_universal.
13235 (alias_set_subset_of): Special case pointers; be ready for NULL
13237 (alias_sets_conflict_p): Special case pointers; be ready for NULL
13239 (init_alias_set_entry): Break out from ...
13240 (record_alias_subset): ... here; propagate new fields;
13241 allocate children only when really needed.
13242 (get_alias_set): Do less generous pointer globbing.
13243 (dump_alias_stats_in_alias_c): Update statistics.
13245 2015-05-30 Alan Modra <amodra@gmail.com>
13247 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
13248 correct block for use of r12.
13249 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
13251 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
13254 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
13257 2015-05-29 Jakub Jelinek <jakub@redhat.com>
13259 PR tree-optimization/66142
13260 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
13261 virtual phis that feed themselves.
13263 2015-05-29 Richard Biener <rguenther@suse.de>
13265 PR tree-optimization/66314
13266 * tree-ssa-threadupdate.c (create_block_for_threading): Add
13267 parameter that says which loop the new block belongs to.
13268 (ssa_create_duplicates): Blocks duplicated for the threaded
13269 path belong to the loop of the thread destination.
13271 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13273 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
13274 to cleanup-saved-temps.
13275 * doc/sourcebuild.texi (Clean up generated test files): Expand
13277 (dg-keep-saved-temps): Document new proc.
13278 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
13279 cleanup-saved-temps): Remove.
13281 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
13283 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
13284 gcc_AC_CHECK_DECLS.
13285 * configure: Regenerate.
13287 2015-05-28 Mike Frysinger <vapier@gentoo.org>
13289 * config/nios2/linux.h (CPP_SPEC): Define.
13291 2015-05-28 Mike Frysinger <vapier@gentoo.org>
13293 * config/microblaze/linux.h (CPP_SPEC): Define.
13295 2015-05-28 Mike Frysinger <vapier@gentoo.org>
13297 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
13298 -pthread is specified.
13300 2015-05-28 Richard Biener <rguenther@suse.de>
13302 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
13303 (vect_fixup_scalar_cycles_with_patterns): Likewise.
13304 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
13305 after pattern recog.
13306 (vect_create_epilog_for_reduction): Properly handle reductions
13308 (vectorizable_reduction): Likewise.
13309 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
13311 (vect_get_constant_vectors): Create the correct number of
13312 initial values for reductions.
13313 (vect_schedule_slp_instance): Handle reduction chains that are
13314 type changing properly.
13315 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
13317 2015-05-28 Richard Biener <rguenther@suse.de>
13319 PR tree-optimization/66142
13320 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
13321 values better in memcpy destination handling. Handle non-aliasing
13324 2015-05-28 Lawrence Velázquez <vq@larryv.me>
13327 * config/darwin-c.c (version_components): New global enum.
13328 (parse_version, version_as_legacy_macro)
13329 (version_as_modern_macro, macosx_version_as_macro): New functions.
13330 (version_as_macro): Remove.
13331 (darwin_cpp_builtins): Use new function.
13333 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
13335 * builtins.c (expand_builtin_acc_on_device): Mark parameters
13336 with ATTRIBUTE_UNUSED.
13338 2015-05-28 Julian Brown <julian@codesourcery.com>
13342 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
13343 sequence for !ACCEL_COMPILER.
13345 2015-05-28 Nick Clifton <nickc@redhat.com>
13347 * config/rx/rx.c (push_regs): New function. Extracts code from...
13348 (rx_expand_prologue): ... here. Use push_regs to push even small
13349 spans of registers.
13350 (pop_regs): New function.
13351 (rx_expand_epilogue): Use pop_regs to pop even small spans of
13354 2015-05-28 Richard Biener <rguenther@suse.de>
13356 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
13358 (SLP_INSTANCE_BODY_COST_VEC): Remove.
13359 (vect_update_slp_costs_according_to_vf): Likewise.
13360 (vect_slp_analyze_operations): Update prototype.
13361 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
13362 vect_update_slp_costs_according_to_vf, adjust.
13363 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
13364 (vect_analyze_slp_cost_1): Likewise.
13365 (vect_analyze_slp_cost): Likewise. Properly deal with
13366 widening reduction ops. Commit body costs.
13367 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
13368 cost for loops from here.
13369 (vect_slp_analyze_operations): But do it from here when
13370 the vectorization factor is known and stmts are analyzed.
13371 (vect_bb_vectorization_profitable_p): Simplify.
13372 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
13373 (vect_update_slp_costs_according_to_vf): Remove.
13375 2015-05-27 Magnus Granberg <zorry@gentoo.org>
13376 H.J. Lu <hongjiu.lu@intel.com>
13378 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
13379 (BUILD_CFLAGS): Likewise.
13380 (BUILD_CXXFLAGS): Likewise.
13381 (LINKER): Add @NO_PIE_FLAG@.
13382 (BUILD_LDFLAGS): Likewise.
13383 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
13384 --enable-default-pie.
13385 * common.opt (fPIE): Initialize to -1.
13387 (no-pie): New option.
13388 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
13389 * configure.ac: Add --enable-default-pie.
13390 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
13391 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
13392 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
13393 * gcc.c (NO_PIE_SPEC): New.
13394 (PIE_SPEC): Likewise.
13395 (NO_FPIE1_SPEC): Likewise.
13396 (FPIE1_SPEC): Likewise.
13397 (NO_FPIE2_SPEC): Likewise.
13398 (FPIE2_SPEC): Likewise.
13399 (NO_FPIE2_SPEC): Likewise.
13400 (FPIE_SPEC): Likewise.
13401 (NO_FPIE_SPEC): Likewise.
13402 (NO_FPIC1_SPEC): Likewise.
13403 (FPIC1_SPEC): Likewise.
13404 (NO_FPIC2_SPEC): Likewise.
13405 (FPIC2_SPEC): Likewise.
13406 (NO_FPIC2_SPEC): Likewise.
13407 (FPIC_SPEC): Likewise.
13408 (NO_FPIC_SPEC): Likewise.
13409 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
13410 (FPIE1_OR_FPIC1_SPEC): Likewise.
13411 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
13412 (FPIE2_OR_FPIC2_SPEC): Likewise.
13413 (NO_FPIE_AND_FPIC_SPEC): Likewise.
13414 (FPIE_OR_FPIC_SPEC): Likewise.
13415 (LD_PIE_SPEC): Likewise.
13416 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
13417 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
13418 * config/darwin.h (PIE_SPEC): Renamed to ...
13419 (DARWIN_PIE_SPEC): This.
13420 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
13421 * config/darwin9.h (PIE_SPEC): Renamed to ...
13422 (DARWIN_PIE_SPEC): This.
13423 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
13424 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
13425 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
13426 FPIE2_OR_FPIC2_SPEC.
13427 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
13428 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
13429 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
13430 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13431 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13432 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13433 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
13434 * config/m32r/m32r.h (ASM_SPEC): Likewise.
13435 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
13436 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13437 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
13438 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
13439 * config/sparc/linux.h (ASM_SPEC): Likewise.
13440 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13441 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
13442 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
13443 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13444 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13445 * config/sparc/sparc.h (ASM_SPEC): Likewise.
13446 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
13447 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
13448 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
13449 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
13450 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
13451 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
13452 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
13453 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
13454 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
13455 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
13456 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
13457 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
13458 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13459 * config/vax/linux.h (ASM_SPEC): Likewise.
13460 * doc/install.texi: Document --enable-default-pie.
13461 * doc/invoke.texi: Document -no-pie.
13462 * config.in: Regenerated.
13463 * configure: Likewise.
13465 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
13467 PR rtl-optimization/66168
13468 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
13469 can_move_invariant_reg.
13471 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
13474 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
13475 REG_EQUAL note when doing insert.
13477 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
13478 instead of "%d" for 'o' operand.
13480 2015-05-27 Nathan Sidwell <nathan@acm.org>
13483 * tree.c (build_pointer_type_for_mode): Canonical type does not
13484 inherit can_alias_all.
13485 (build_reference_type_for_mode): Likewise.
13487 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
13489 * expr.h (array_at_struct_end_p): Move to...
13490 (array_ref_element_size): Likewise.
13491 (component_ref_field_offset): Likewise.
13492 * tree.h (array_ref_element_size): ...here.
13493 (array_at_struct_end_p): Likewise.
13494 (component_ref_field_offset): Likewise.
13495 * expr.c (array_ref_element_size): Move to...
13496 (array_ref_low_bound): Likewise.
13497 (array_at_struct_end_p): Likewise.
13498 (array_ref_up_bound): Likewise.
13499 (component_ref_field_offset): Likewise.
13500 * tree.c (array_ref_element_size): ...here.
13501 (array_ref_low_bound): Likewise.
13502 (array_ref_up_bound): Likewise.
13503 (array_at_struct_end_p): Likewise.
13504 (component_ref_field_offset): Likewise.
13506 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
13507 Szabolcs Nagy <szabolcs.nagy@arm.com>
13509 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
13511 2015-05-27 Jason Merrill <jason@redhat.com>
13514 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
13515 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
13516 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
13518 2015-05-22 Aditya Kumar <hiraditya@msn.com>
13520 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
13523 * statistics.c (statistics_fini_pass): Print pass name.
13525 2015-05-27 Richard Biener <rguenther@suse.de>
13527 PR tree-optimization/66272
13529 2014-08-15 Richard Biener <rguenther@suse.de>
13531 PR tree-optimization/62031
13532 * tree-data-ref.c (dr_analyze_indices): Do not set
13533 DR_UNCONSTRAINED_BASE.
13534 (dr_may_alias_p): All indirect accesses have to go the
13535 formerly DR_UNCONSTRAINED_BASE path.
13536 * tree-data-ref.h (struct indices): Remove
13537 unconstrained_base member.
13538 (DR_UNCONSTRAINED_BASE): Remove.
13540 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
13542 * dwarf2out.c: Remove block_map.
13543 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
13544 (gen_lexical_block_die): Same.
13545 (dwarf2out_function_decl): Remove block_map use.
13546 (dwarf2out_c_finalize): Same.
13547 * tree-core.h (struct tree_block): Add die field.
13548 * tree.h (BLOCK_DIE): New.
13550 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13553 * expr.c (memory_load_overlap): New function.
13554 (emit_push_insn): When pushing partial args to the stack would
13555 clobber the register part load the overlapping part into a pseudo
13556 and put it into the hard reg after pushing. Change return type
13557 to bool. Add bool argument.
13558 * expr.h (emit_push_insn): Change return type to bool.
13560 * calls.c (expand_call): Cancel sibcall optimization when encountering
13561 partial argument on targets with ARGS_GROW_DOWNWARD and
13562 !STACK_GROWS_DOWNWARD.
13563 (emit_library_call_value_1): Update callsite of emit_push_insn.
13564 (store_one_arg): Likewise.
13566 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
13568 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
13570 2015-05-27 Martin Liska <mliska@suse.cz>
13572 * Makefile.in: Add additional dependencies related to memory report
13574 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
13575 * bitmap.c (struct bitmap_descriptor_d): Remove.
13576 (struct loc): Likewise.
13577 (struct bitmap_desc_hasher): Likewise.
13578 (bitmap_desc_hasher::hash): Likewise.
13579 (bitmap_desc_hasher::equal): Likewise.
13580 (get_bitmap_descriptor): Likewise.
13581 (bitmap_register): User new memory descriptor API.
13582 (register_overhead): Likewise.
13583 (bitmap_find_bit): Register nsearches and search_iter statistics.
13584 (struct bitmap_output_info): Remove.
13585 (print_statistics): Likewise.
13586 (dump_bitmap_statistics): Use new memory descriptor.
13587 * bitmap.h (struct bitmap_usage): New class.
13588 * genmatch.c: Extend header file inclusion.
13589 * genpreds.c: Likewise.
13590 * ggc-common.c (struct ggc_usage): New class.
13591 (struct ggc_loc_desc_hasher): Remove.
13592 (ggc_loc_desc_hasher::hash): Likewise.
13593 (ggc_loc_desc_hasher::equal): Likewise.
13594 (struct ggc_ptr_hash_entry): Likewise.
13595 (struct ptr_hash_hasher): Likewise.
13596 (ptr_hash_hasher::hash): Likewise.
13597 (ptr_hash_hasher::equal): Likewise.
13598 (make_loc_descriptor): Likewise.
13599 (ggc_prune_ptr): Likewise.
13600 (dump_ggc_loc_statistics): Use new memory descriptor.
13601 (ggc_record_overhead): Likewise.
13602 (ggc_free_overhead): Likewise.
13603 (final_cmp_statistic): Remove.
13604 (cmp_statistic): Likewise.
13605 (ggc_add_statistics): Liekwise.
13606 (ggc_prune_overhead_list): Likewise.
13607 * hash-map-traits.h: New file.
13608 * hash-map.h (struct default_hashmap_traits): Move the traits to a
13609 separate header file.
13610 * hash-set.h: Pass memory statistics info to ctor.
13611 * hash-table.c (void dump_hash_table_loc_statistics): New function.
13612 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
13613 (hash_table::~hash_table): Register memory release operation.
13614 (hash_table::alloc_entries): Handle memory allocation operation.
13615 (hash_table::expand): Likewise.
13616 * inchash.c (iterative_hash_hashval_t): Move implementation to header
13618 (iterative_hash_host_wide_int): Likewise.
13619 * inchash.h (class hash): Likewise.
13620 * mem-stats-traits.h: New file.
13621 * mem-stats.h: New file.
13622 (mem_location): Add new class.
13623 (mem_usage): Likewise.
13624 (mem_alloc_description): Likewise.
13625 * sese.c: Add new header file inclusision.
13626 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
13628 * tree-sra.c: Add new header file inclusision.
13629 * vec.c (struct vec_descriptor): Remove.
13630 (hash_descriptor): Likewise.
13631 (struct vec_usage): Likewise.
13632 (struct ptr_hash_entry): Likewise.
13633 (hash_ptr): Likewise.
13634 (eq_ptr): Likewise.
13635 (vec_prefix::register_overhead): Use new memory descriptor API.
13636 (vec_prefix::release_overhead): Likewise.
13637 (add_statistics): Remove.
13638 (dump_vec_loc_statistics): Use new memory descriptor API.
13639 * vec.h (struct vec_prefix): Likewise.
13640 (va_heap::reserve): Likewise.
13641 (va_heap::release): Likewise.
13642 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
13644 2015-05-27 Richard Biener <rguenther@suse.de>
13646 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
13647 earlier and remove ??? comment.
13648 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
13649 and got called from loop analysis bail out. Always pass the SLP
13650 node to the vectorizable_* functions.
13651 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
13652 the premature SLP check here.
13653 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
13654 detected SLP stmts.
13655 (vect_detect_hybrid_slp_1): Likewise.
13657 2015-05-26 Jeff Law <law@redhat.com>
13659 * combine.c (find_split_point): Verify that the shift count is a
13660 constant when choosing (plus (ashift ...)) as a split point.
13662 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
13663 No functional changes.
13665 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
13667 * ipa-polymorphic-call.c
13668 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
13669 case when call target is already known.
13671 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
13674 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
13675 take into account the case that operands[1] and operands[2]
13676 are the same register.
13678 2015-05-26 Michael Matz <matz@suse.de>
13680 PR middle-end/66251
13682 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
13684 (vect_create_vectorized_demotion_stmts): Always set
13685 STMT_VINFO_VEC_STMT, also with SLP.
13686 (vectorizable_store): Handle strided group stores.
13688 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13691 * config/aarch64/aarch64.md
13692 (*adds_shift_imm_<mode>): New pattern.
13693 (*subs_shift_imm_<mode>): Likewise.
13694 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
13695 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
13696 (*add_uxt<mode>_shift2): Likewise.
13697 (*add_uxtsi_shift2_uxtw): Likewise.
13698 (*sub_uxt<mode>_shift2): Likewise.
13699 (*sub_uxtsi_shift2_uxtw): Likewise.
13701 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
13703 * config/rs6000/constraints.md (Y, U): Use match_test.
13705 2015-05-26 Christian Bruel <christian.bruel@st.com>
13708 * config/arm/arm.c (arm_option_check_internal)
13709 (arm_option_params_internal): Check opts->target_flags to set macros.
13710 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
13711 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
13712 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
13713 (builtin_define): Replaced with def_or_undef_macro.
13714 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
13715 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
13716 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
13717 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
13718 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
13719 (TARGET_ARM_FEATURE_LDREX_P)
13720 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
13721 * config/arm/arm-c.c (def_or_undef_macro): New function.
13722 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
13724 2015-05-26 Christian Bruel <christian.bruel@st.com>
13726 * c-common.h (builtin_define_with_int_value)
13727 (builtin_define_type_sizeof): Declare.
13728 * c-cppbuiltin.c (builtin_define_with_int_value)
13729 (builtin_define_type_sizeof): Externalize.
13730 (builtin_define_std): Cleanup declaration.
13731 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
13732 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
13733 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
13734 (builtin_define, builtin_assert): New macros.
13736 2015-05-26 Richard Biener <rguenther@suse.de>
13738 PR tree-optimization/66142
13739 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
13740 MEM_REFs for the same base address.
13742 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13745 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
13747 2015-05-26 Jason Merrill <jason@redhat.com>
13749 * configure.ac: Set CXXFLAGS for ISL test.
13750 * configure: Regenerate.
13752 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
13753 strstr and basename.
13754 * configure: Regenerate.
13756 2015-05-26 Richard Biener <rguenther@suse.de>
13758 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
13759 X % C -> X & (C - 1) for C being a power-of two to ...
13760 * match.pd: ... patterns.
13762 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
13764 * match.pd (swapped_tcc_comparison): New operator list.
13765 (-A CMP -B): New simplification.
13766 * fold-const.c (fold_comparison): Remove corresponding code.
13768 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
13770 * caller-save.c (init_caller_save): Base temporary register numbers
13771 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
13772 * cfgloopanal.c (init_set_costs): Likewise.
13773 * dojump.c (prefer_and_bit_test): Likewise.
13774 * expr.c (init_expr_target): Likewise.
13775 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13776 * lower-subreg.c (init_lower_subreg): Likewise.
13777 * postreload.c (reload_cse_regs_1): Likewise.
13779 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
13781 * gensupport.h (compute_test_codes): Declare.
13782 * gensupport.c (compute_predicate_codes): Rename to...
13783 (compute_test_codes): ...this. Generalize error message.
13784 (process_define_predicate): Update accordingly.
13785 * genpreds.c (compute_maybe_allows): Delete.
13786 (add_constraint): Use compute_test_codes to determine whether
13787 something can accept a SUBREG, REG or MEM.
13789 2015-05-26 Torvald Riegel <triegel@redhat.com>
13791 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
13792 'memory model' to align with C++11; fix description of memory orders;
13795 2015-05-26 Richard Biener <rguenther@suse.de>
13797 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
13798 (vect_analyze_loop_operations): ... here. Remove slp parameter,
13799 detect whether we apply SLP. Remove call to
13800 vect_update_slp_costs_according_to_vf.
13801 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
13802 vect_update_slp_costs_according_to_vf from here. Dispatch
13803 to vect_slp_analyze_operations to analyze SLP stmts.
13804 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
13805 unused bb_vec_info parameter, adjust assert.
13806 (vect_slp_analyze_operations): Pass in the slp instance tree
13807 instead of bb_vec_info.
13808 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
13809 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
13811 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
13813 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
13814 Q_REGS. Expand comment.
13815 (REG_CLASS_NAMES): Ditto.
13816 (REG_CLASS_CONTENTS): Ditto.
13818 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
13821 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
13822 when LEGACY_INT_REGNO_P is processed.
13824 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
13826 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
13828 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13830 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
13831 register if not marked dead/unused, before return.
13833 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
13836 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
13837 is set; check for assembler name at LTO time.
13838 (type_in_anonymous_namespace): Remove hacks, check that all
13839 anonymous types are called "<anon>"
13840 (odr_type_p): Simplify; add check for "<anon>"
13841 (odr_subtypes_equivalent): Add odr_type_p check.
13842 * tree.c (need_assembler_name_p): Even anonymous namespace needs
13845 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
13847 * ipa-utils.h (method_class_type): Remove.
13848 * cgraphunit.c (walk_polymorphic_call_targets): Use
13849 TYPE_METHOD_BASETYPE.
13850 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
13851 on main variants only.
13852 (method_class_type): Remove.
13853 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
13854 (build_type_inheritance_graph): Likewise.
13855 * ipa-icf.c (sem_function::equals_wpa): Likewise.
13856 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
13857 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
13859 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
13861 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
13862 is_typedef_decl, typedef_variant_p): Constify.
13863 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
13864 is_typedef_decl, typedef_variant_p): Constify.
13866 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13868 * defaults.h (gen_tablejump): New function.
13869 (HAVE_tablejump): Add default value.
13871 * stmt.c: Likewise.
13873 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13875 * defaults.h (gen_store_multiple): New function.
13876 (HAVE_store_multiple): Add default value.
13877 * expr.c (move_block_from_reg): Adjust.
13879 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13881 * defaults.h (gen_load_multiple): New function.
13882 (HAVE_load_multiple): Add default value.
13883 * expr.c (move_block_to_reg): Adjust.
13885 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13887 * defaults.h (gen_mem_signal_fence): New function.
13888 (HAVE_mem_signal_fence): Add default value.
13889 * optabs.c: Adjust.
13891 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13893 * defaults.h (gen_memory_barrier): New function.
13894 (HAVE_memory_barrier): Add default value.
13895 * optabs.c: Adjust.
13897 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13899 * defaults.h (gen_mem_thread_fence): New function.
13900 (HAVE_mem_thread_fence): Add default definition.
13901 * optabs.c: Adjust.
13903 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13905 * combine.c (find_split_point): Check the value of HAVE_lo_sum
13906 instead of if it is defined.
13907 (combine_simplify_rtx): Likewise.
13908 * lra-constraints.c (process_address_1): Likewise.
13909 * config/darwin.c: Adjust.
13910 * genconfig.c (main): Always define HAVE_lo_sum.
13912 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13914 * genmatch.c (parser::parse_operation): Reject expanding
13915 operator-list inside 'for'.
13917 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13919 * genmatch.c (parser::parse_for): Reject iterator if used as
13922 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13924 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
13925 after end of id-list.
13927 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
13929 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
13930 we do not try to compute canonical type for type that does not need
13932 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
13934 * tree.h (type_with_alias_set_p): New.
13936 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
13938 * tree.c (gimple_canonical_types_compatible_p): Do not compare
13939 function attributes.
13940 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
13942 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
13944 * Makefile.in (check_gcc_parallelize): Delete.
13945 (lang_checks_parallelized): Update comment.
13947 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
13949 PR rtl-optimization/66237
13950 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
13951 location of an "as_a" cast.
13953 2015-05-22 Jeff Law <law@redhat.com>
13955 * config/pa/pa.md (non-canonical shift-add insns): Remove.
13956 (peepholes with non-canonical RTL sources): Remove.
13957 (peepholes for indexed stores of FP regs in integer modes): Match and
13958 generate canonical RTL.
13960 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
13962 PR tree-optimization/63387
13963 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
13964 ((x ord x) & (y ord y) -> (x ord y),
13965 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
13966 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
13967 vectors like scalars.
13969 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
13971 * convert.c (convert_to_integer, convert_to_vector): Include the
13972 types in the error message.
13974 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
13976 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
13979 2015-05-22 Jeff Law <law@redhat.com>
13981 * config/pa/pa.md (integer_indexed_store splitters): Use
13982 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
13983 insns -- adjusting the constant 2nd operand accordingly.
13985 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
13986 (plus (ashift X log2) Y) if it is a split point.
13988 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
13989 out of hppa_legitimize_address to handle both forms of a multiply
13991 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
13992 Always generate the ASHIFT variant as the result is not directly
13993 used in a MEM. Update comments and refactor slightly to improve
13996 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13999 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
14000 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
14001 (aarch64_composite_type_p): Return false if given type and mode are
14002 for a short vector.
14004 2015-05-22 Richard Biener <rguenther@suse.de>
14006 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
14008 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
14009 patterns when determining whether SLP is pure.
14010 (vect_is_slp_reduction): Remove check for pattern stmts.
14011 (vect_is_simple_reduction_1): Remove dead code.
14012 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
14013 (vect_get_and_check_slp_defs): Pass in the stmt number.
14014 Allow the first def in a reduction to be not a pattern stmt when
14015 the rest of the stmts def are patterns.
14016 (vect_build_slp_tree_1): Allow tcc_expression codes like
14017 SAD_EXPR and DOT_PROD_EXPR.
14018 (vect_build_slp_tree): Adjust.
14019 (vect_analyze_slp): Refactor and move BB vect error message ...
14020 (vect_slp_analyze_bb_1): ... here.
14022 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
14024 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
14025 for CSWTCH temporary.
14027 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14029 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
14030 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
14033 2015-05-22 Richard Biener <rguenther@suse.de>
14035 PR tree-optimization/66251
14036 * tree-vect-stmts.c (vectorizable_conversion): Properly
14037 set STMT_VINFO_VEC_STMT even for the SLP case.
14039 2015-05-22 Marek Polacek <polacek@redhat.com>
14041 * doc/extend.texi: Use @pxref instead of @xref.
14043 2015-05-22 hiraditya <hiraditya@msn.com>
14045 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
14048 2015-05-22 Richard Biener <rguenther@suse.de>
14050 PR tree-optimization/65701
14051 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14052 Move peeling cost models into one place. Peel for alignment
14053 for single loads only if an aligned load is cheaper than
14056 2015-05-22 Marek Polacek <polacek@redhat.com>
14059 * doc/extend.texi (Enumerator Attributes): New section.
14060 Document syntax of enumerator attributes.
14062 2015-05-22 Richard Biener <rguenther@suse.de>
14064 * tree-vect-loop.c (get_reduction_op): New function.
14065 (vect_model_reduction_cost): Use it, add reduc_index parameter.
14066 Make ready for BB reductions.
14067 (vect_create_epilog_for_reduction): Use get_reduction_op.
14068 (vectorizable_reduction): Init reduc_index to a valid value.
14069 Adjust vect_model_reduction_cost call.
14070 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
14071 operand for reduction defaults. Add SAD_EXPR support.
14072 Assert we have a neutral op for SLP reductions.
14073 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
14074 walking pattern stmt ops only recurse to SSA names.
14076 2015-05-22 Richard Biener <rguenther@suse.de>
14078 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
14079 assert with guard, remove check on detected reduction.
14080 (vect_recog_sad_pattern): Likewise.
14081 (vect_recog_widen_sum_pattern): Likewise.
14083 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14085 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
14086 __always_inline__ attribute.
14087 (vaesdq_u8): Likewise.
14088 (vaesmcq_u8): Likewise.
14089 (vaesimcq_u8): Likewise.
14090 (vsha1cq_u32): Likewise.
14091 (vsha1mq_u32): Likewise.
14092 (vsha1pq_u32): Likewise.
14093 (vsha1h_u32): Likewise.
14094 (vsha1su0q_u32): Likewise.
14095 (vsha1su1q_u32): Likewise.
14096 (vsha256hq_u32): Likewise.
14097 (vsha256h2q_u32): Likewise.
14098 (vsha256su0q_u32): Likewise.
14099 (vsha256su1q_u32): Likewise.
14100 (vmull_p64): Likewise.
14101 (vmull_high_p64): Likewise.
14103 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14105 * final.c (final_scan_insn): Don't check HAVE_peephole with the
14107 * output.h: Likewise.
14108 * genconfig.c (main): Alwways define HAVE_peephole.
14109 * genpeep.c: Don't emit checks of HAVE_peephole.
14111 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14113 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
14114 check HAVE_conditional_move with the preprocessor.
14116 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14118 * genconfig.c (main): Always define HAVE_conditional_move.
14119 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
14120 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
14123 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14125 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
14126 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
14127 and FRAME_POINTER_REGNUM with the preprocessor.
14129 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14131 * defaults.h: Add default for STACK_PUSH_CODE.
14132 * expr.c: Don't redefine STACK_PUSH_CODE.
14133 * recog.c: Likewise.
14135 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14137 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
14138 sched-deps.c: Use if instead of preprocessor checks with
14139 STACK_GROWS_DOWNWARD.
14141 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14143 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
14145 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
14146 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
14147 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
14148 * doc/tm.texi: Regenerate.
14150 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
14153 * config/i386/constraints.md (Bg): New constraint for GOT memory
14155 * config/i386/i386.md (*call_got_x32): New pattern.
14156 (*call_value_got_x32): Likewise.
14157 * config/i386/predicates.md (GOT_memory_operand): New predicate.
14159 2015-05-21 Jakub Jelinek <jakub@redhat.com>
14161 PR tree-optimization/66233
14162 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
14165 2015-05-21 Jeff Law <law@redhat.com>
14167 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
14168 than MULT for shadd sequences.
14170 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
14172 * alias.c (alias_stats): New static var.
14173 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
14174 (dump_alias_stats_in_alias_c): New function.
14175 * alias.h (dump_alias_stats_in_alias_c): Declare.
14176 * tree-ssa-alias.c (dump_alias_stats): Call it.
14178 2015-05-08 Michael Matz <matz@suse.de>
14180 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
14182 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
14183 (STMT_VINFO_STRIDED_P): ... this.
14184 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
14185 (vect_verify_datarefs_alignment): Likewise.
14186 (vect_enhance_data_refs_alignment): Likewise.
14187 (vect_analyze_data_ref_access): Likewise.
14188 (vect_analyze_data_refs): Accept strided stores.
14189 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
14190 (vect_model_load_cost): Adjust for macro rename.
14191 (vectorizable_mask_load_store): Likewise.
14192 (vectorizable_load): Likewise.
14193 (vectorizable_store): Open code strided stores.
14195 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14197 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
14198 Document sqrt_insn.
14200 2015-05-21 Richard Biener <rguenther@suse.de>
14203 * match.pd: Guard pattern optimzing (int)(float)int
14204 conversions to apply only on GIMPLE.
14206 2015-05-21 Jeff Law <law@redhat.com>
14208 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
14209 multiply-accumulate/shift-add insn generation.
14211 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
14214 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
14215 operands[1] are the same.
14217 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
14219 PR middle-end/66221
14220 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
14221 build_distinct_type_copy to copy bounds.
14223 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
14225 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
14226 Change to unsigned int.
14228 2015-05-20 Jeff Law <law@redhat.com>
14230 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
14231 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
14232 (pa_shadd_constant_p): Allow constants for shadd insns rather
14233 than valid scaling constants for memory addresses.
14234 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
14235 * config/pa/predicates.md (mem_shadd_operand): New predicate.
14236 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
14237 (shift-add insns using ASHIFT): New patterns.
14239 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
14241 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
14243 (fix_up_fall_thru_edges): Likewise.
14244 (fix_crossing_conditional_branches): Likewise. Promote jump targets
14245 from to rtx_insn to rtx_code_label where feasible.
14246 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
14247 gen_move_insn (returned type changed to rtx_insn).
14248 * builtins.c (expand_errno_check): Fix arguments of
14249 do_compare_rtx_and_jump (now expects rtx_code_label).
14250 (expand_builtin_acc_on_device): Likewise.
14251 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
14252 invert_jump (now exprects rtx_jump_insn).
14253 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
14254 (construct_init_block): Use rtx_code_label.
14255 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
14256 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
14257 calling redirect_jump.
14258 (patch_jump_insn): Likewise.
14259 (redirect_branch_edge): Likewise.
14260 (force_nonfallthru_and_redirect): Likewise.
14261 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
14263 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
14264 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
14265 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
14266 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
14267 to store the value retured by gen_label_rtx.
14268 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
14270 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
14271 (split_branches): Fix calls of redirect_jump.
14272 * dojump.c (jumpifnot): Promote argument type from rtx to
14274 (jumpifnot_1): Likewise.
14275 (jumpif): Likewise.
14276 (jumpif_1): Likewise.
14277 (do_jump_1): Likewise.
14278 (do_jump): Likewise. Use rtx_code_label when feasible.
14279 (do_jump_by_parts_greater_rtx): Likewise.
14280 (do_jump_by_parts_zero_rtx): Likewise.
14281 (do_jump_by_parts_equality_rtx): Likewise.
14282 (do_compare_rtx_and_jump): Likewise.
14283 * dojump.h: Update function prototypes.
14284 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
14286 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
14288 (emit_label_before): Likewise.
14289 (emit_jump_insn_after_noloc): Likewise.
14290 (emit_jump_insn_after_setloc): Likewise.
14291 (emit_jump_insn_after): Likewise
14292 (emit_jump_insn_before_setloc): Likewise.
14293 (emit_jump_insn_before): Likewise.
14294 (emit_label_before): Promote return type to rtx_code_label.
14295 (emit_label): Likewise.
14296 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
14297 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
14299 (emit_stack_restore): Likewise.
14300 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
14301 (do_cmp_and_jump): Likewise.
14302 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
14303 from rtx to rtx_code_label.
14304 (gen_move_insn_uncast): New function.
14305 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
14306 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
14307 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
14308 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
14309 invert_jump_1 and redirect_jump_1.
14310 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
14311 do_compare_rtx_and_jump.
14312 (expand_addsub_overflow): Likewise.
14313 (expand_neg_overflow): Likewise.
14314 (expand_mul_overflow): Likewise.
14315 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
14316 return value of gen_move_insn.
14317 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
14318 * loop-doloop.c (add_test): Use rtx_code_label.
14319 (doloop_modify): Likewise.
14320 (doloop_optimize): Likewise.
14321 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
14322 * lra-constraints.c (emit_spill_move): Remove cast of value returned
14324 (inherit_reload_reg): Add cast when calling dump_insn_slim.
14325 (split_reg): Likewise.
14326 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
14328 * optabs.c (expand_binop_directly): Remove casts of values returned by
14330 (expand_unop_direct): Likewise.
14331 (expand_abs): Likewise.
14332 (maybe_emit_unop_insn): Likewise.
14333 (maybe_gen_insn): Promote return type to rtx_insn.
14334 * optabs.h: Update prototype of maybe_gen_insn.
14335 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
14337 * recog.c (struct peep2_insn_data): Promote type of insn field to
14339 (peep2_reinit_state): Use NULL instead of NULL_RTX.
14340 (peep2_attempt): Remove casts of insn in peep2_insn_data.
14341 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
14342 * recog.h (struct insn_gen_fn): Promote return types of function
14343 pointers and operator ().from rtx to rtx_insn.
14344 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
14345 (fill_eager_delay_slots): Likewise.
14346 (relax_delay_slots): Likewise.
14347 (make_return_insns): Likewise.
14348 (dbr_schedule): Likewise.
14349 (optimize_skips): Likewise.
14350 (reorg_redirect_jump): Likewise.
14351 (fill_slots_from_thread): Likewise.
14352 * reorg.h: Update prototypes.
14353 * resource.c (find_dead_or_set_registers): Use dyn_cast to
14354 rtx_jump_insn instead of check. Use it's jump_target method.
14355 * rtl.h (rtx_jump_insn::jump_label): Define new method.
14356 (rtx_jump_insn::jump_target): Define new method.
14357 (rtx_jump_insn::set_jump_target): Define new method.
14358 * rtlanal.c (tablejump_p): Promote type of one local variable.
14359 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
14360 (sched_analyze_insn): Likewise.
14361 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
14362 (print_insn): Likewise.
14363 * stmt.c (label_rtx): Promote return type to rtx_insn.
14364 (force_label_rtx): Likewise.
14365 (jump_target_rtx): Define new function.
14366 (expand_label): Use it, get rid of one cast.
14367 (expand_naked_return): Promote rtx to rtx_code_label.
14368 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
14369 (expand_case): Use rtx_code_label instread of rtx where feasible.
14370 (expand_sjlj_dispatch_table): Likewise.
14371 (emit_case_nodes): Likewise.
14372 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
14373 * store-motion.c (insert_store): Make use of new return type of
14374 gen_move_insn and remove a cast.
14375 (replace_store_insn): Likewise.
14377 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
14379 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
14380 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
14382 2015-05-20 Jeff Law <law@redhat.com>
14384 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
14385 dispose of the jump thread path when the jump threading
14386 opportunity is cancelled.
14388 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14390 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
14391 when printing the caret character.
14393 2015-05-20 Marek Polacek <polacek@redhat.com>
14395 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
14397 2015-05-20 Marek Polacek <polacek@redhat.com>
14399 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
14400 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
14401 * gimple-fold.c (canonicalize_bool): Likewise.
14402 (same_bool_result_p): Likewise.
14403 * tree-if-conv.c (parse_predicate): Likewise.
14405 2015-05-20 Marek Polacek <polacek@redhat.com>
14407 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
14408 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
14410 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14412 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
14413 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
14416 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
14418 * config/mips/mips.h (micromips_globals): Declare.
14420 2015-05-20 David Malcolm <dmalcolm@redhat.com>
14422 * timevar.def (TV_INITIALIZE_RTL): New.
14423 * toplev.c (initialize_rtl): Use an auto_timevar to account this
14424 function's time to TV_INITIALIZE_RTL.
14426 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
14428 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
14429 gimple_build_nop calls.
14430 (chkp_find_bounds_for_elem): Likewise.
14431 (chkp_get_zero_bounds): Likewise.
14432 (chkp_get_none_bounds): Likewise.
14433 (chkp_get_bounds_by_definition): Likewise.
14434 (chkp_generate_extern_var_bounds): Likewise.
14435 (chkp_get_bounds_for_decl_addr): Likewise.
14436 (chkp_get_bounds_for_string_cst): Likewise.
14438 2015-05-20 Bin Cheng <bin.cheng@arm.com>
14440 PR tree-optimization/65447
14441 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
14442 (dump_use, dump_uses): Support to dump sub use.
14443 (record_use): New parameters to support sub use. Remove call to
14445 (record_sub_use, record_group_use): New functions.
14446 (compute_max_addr_offset, split_all_small_groups): New functions.
14447 (group_address_uses, rewrite_use_address): New functions.
14448 (strip_offset): New declaration.
14449 (find_interesting_uses_address): Call record_group_use.
14450 (add_candidate): New assertion.
14451 (infinite_cost_p): Move definition forward.
14452 (add_costs): Check INFTY cost and return immediately.
14453 (get_computation_cost_at): Clear setup cost and dependent bitmap
14455 (determine_use_iv_cost_address): Compute cost for sub uses.
14456 (rewrite_use_address_1): Rename from old rewrite_use_address.
14457 (free_loop_data): Free sub uses.
14458 (tree_ssa_iv_optimize_loop): Call group_address_uses.
14460 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14461 Jim Wilson <jim.wilson@linaro.org>
14463 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
14464 new fields loadv and storev.
14465 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
14466 Initialize loadv and storev.
14467 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
14468 (cortexa53_extra_costs): Likewise.
14469 (cortexa57_extra_costs): Likewise.
14470 (xgene1_extra_costs): Likewise.
14471 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
14474 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14476 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
14478 (cortexa8_extra_costs): Likewise.
14479 (cortexa5_extra_costs): Likewise.
14480 (cortexa7_extra_costs): Likewise.
14481 (cortexa12_extra_costs): Likewise.
14482 (cortexa15_extra_costs): Likewise.
14483 (v7m_extra_costs): Likewise.
14485 2015-05-20 Jeff Law <law@redhat.com>
14487 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
14488 instead of open-coded version. Also delete the jump thread created
14489 within this function.
14491 2015-05-20 Alan Modra <amodra@gmail.com>
14493 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
14494 stack adjusting insn. Formatting.
14495 (rs6000_emit_prologue): Track stack adjusting insn, and use of
14496 r12. If possible, emit first -fsplit-stack arg pointer insn
14497 before stack adjust. Don't use r12 to save cr if split-stack.
14499 2015-05-20 Alan Modra <amodra@gmail.com>
14501 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
14503 (rs6000_supports_split_stack): New function.
14504 * gcc/config/rs6000/rs6000.c (machine_function): Add
14505 split_stack_arg_pointer.
14506 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
14507 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
14508 rather than virtual_incoming_args_rtx.
14509 (rs6000_va_start): Likewise.
14510 (split_stack_arg_pointer_used_p): New function.
14511 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
14512 (morestack_ref): New var.
14513 (gen_add3_const, rs6000_expand_split_stack_prologue,
14514 rs6000_internal_arg_pointer, rs6000_live_on_entry,
14515 rs6000_split_stack_space_check): New functions.
14516 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
14517 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
14518 (UNSPECV_SPLIT_STACK_RETURN): Define.
14519 (split_stack_prologue, load_split_stack_limit,
14520 load_split_stack_limit_di, load_split_stack_limit_si,
14521 split_stack_return, split_stack_space_check): New expands and insns.
14522 * gcc/config/rs6000/rs6000-protos.h
14523 (rs6000_expand_split_stack_prologue): Declare.
14524 (rs6000_split_stack_space_check): Declare.
14526 2015-05-20 Alan Modra <amodra@gmail.com>
14528 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
14529 (direct_return): Test vrsave_size rather than vrsave_mask.
14530 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
14531 (rs6000_emit_epilogue): Likewise.
14533 2015-05-20 Alan Modra <amodra@gmail.com>
14535 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
14536 when not saving registers.
14537 (debug_stack_info): Adjust to omit printing unused offsets,
14539 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
14542 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14545 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
14546 value_type to const char *.
14548 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
14550 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
14551 to build a biarch toolchain again.
14553 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
14555 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
14556 or implicit declarations.
14557 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
14559 (get_odr_type): Check type has linkage before adding bases.
14560 (register_odr_type): Check that type has linkage before adding it.
14561 (type_known_to_have_no_deriavations_p): Rename to ..
14562 (type_known_to_have_no_derivations_p): This one.
14563 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
14564 (type_known_to_have_no_derivations_p): This one.
14565 * ipa-polymorphic-call.c
14566 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
14569 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
14571 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
14572 (layout_type): Use RECORD_OR_UNION_TYPE_P.
14574 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14576 * config/s390/s390.c (s390_vector_bool_type_p): New function.
14577 (s390_invalid_binary_op): New function.
14578 (TARGET_INVALID_BINARY_OP): Define macro.
14580 2015-05-19 David Sherwood <david.sherwood@arm.com>
14582 * loop-invariant.c (create_new_invariant): Don't calculate address cost
14583 if mode is not a scalar integer.
14584 (get_inv_cost): Increase computational cost for unused invariants.
14586 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14588 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
14589 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
14590 * config/s390/s390-builtin-types.def: New file.
14591 * config/s390/s390-builtins.def: New file.
14592 * config/s390/s390-builtins.h: New file.
14593 * config/s390/s390-c.c: New file.
14594 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
14595 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
14596 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
14597 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
14599 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
14601 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
14602 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
14603 variable definitions.
14604 (s390_const_operand_ok): New function.
14605 (s390_expand_builtin): Rewrite.
14606 (s390_init_builtins): New function.
14607 (s390_handle_vectorbool_attribute): New function.
14608 (s390_attribute_table): Add s390_vector_bool attribute.
14609 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
14610 (s390_branch_condition_mask): Generate masks for new modes.
14611 (s390_expand_vec_compare_cc): New function.
14612 (s390_mangle_type): Add mangling for vector bool types.
14613 (enum s390_builtin): Remove.
14614 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
14616 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
14617 s390_cpu_cpp_builtins.
14618 (REGISTER_TARGET_PRAGMAS): New macro.
14619 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
14620 (insn_cmp mode attribute): Add new CC modes.
14621 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
14622 (lcbb): New pattern definition.
14623 * config/s390/s390intrin.h: Include vecintrin.h.
14624 * config/s390/t-s390: New file.
14625 * config/s390/vecintrin.h: New file.
14626 * config/s390/vector.md: Include vx-builtins.md.
14627 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
14630 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14632 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
14634 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
14635 (s390_select_ccmode): Likewise.
14636 (s390_canonicalize_comparison): Swap operands if necessary.
14637 (s390_expand_vec_compare_scalar): Expand DFmode compare using
14638 single element vector instructions.
14639 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
14640 (s390_branch_condition_mask): Generate CC masks for the new modes.
14641 * config/s390/s390.md (v0, vf, vd): New mode attributes.
14642 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
14643 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
14644 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
14645 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
14646 (*extend<DSF:mode><BFP:mode>2): New insn definition.
14647 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
14648 (extend<DSF:mode><BFP:mode>2): Turn into expander.
14649 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
14650 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
14651 (sqrt<mode>2): Add vector instruction.
14653 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14655 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
14657 * config/s390/predicates.md (const0_operand, constm1_operand)
14658 (constable_operand): Accept vector operands.
14659 * config/s390/s390-modes.def: Add supported vector modes.
14660 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
14661 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
14662 (s390_bytemask_vector_p, s390_expand_vec_strlen)
14663 (s390_expand_vec_compare, s390_expand_vcond)
14664 (s390_expand_vec_init): Add prototypes.
14665 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
14666 (s390_vector_mode_supported_p): New function.
14667 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
14668 (s390_contiguous_bitmask_vector_p): New function.
14669 (s390_bytemask_vector_p): New function.
14670 (s390_split_ok_p): Vector regs don't work either.
14671 (regclass_map): Add VEC_REGS.
14672 (s390_legitimate_constant_p): Handle vector constants.
14673 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
14674 (legitimate_reload_vector_constant_p): New function.
14675 (s390_preferred_reload_class): Handle CONST_VECTOR.
14676 (s390_reload_symref_address): Likewise.
14677 (s390_secondary_reload): Vector memory instructions only support
14678 short displacements. Rename reload*_nonoffmem* to reload*_la*.
14679 (s390_emit_ccraw_jump): New function.
14680 (s390_expand_vec_strlen): New function.
14681 (s390_expand_vec_compare): New function.
14682 (s390_expand_vcond): New function.
14683 (s390_expand_vec_init): New function.
14684 (s390_dwarf_frame_reg_mode): New function.
14685 (print_operand): Handle addresses with 'O' and 'R' constraints.
14686 (NR_C_MODES, constant_modes): Add vector modes.
14687 (s390_output_pool_entry): Handle vector constants.
14688 (s390_hard_regno_mode_ok): Handle vector registers.
14689 (s390_class_max_nregs): Likewise.
14690 (s390_cannot_change_mode_class): New function.
14691 (s390_invalid_arg_for_unprototyped_fn): New function.
14692 (s390_function_arg_vector): New function.
14693 (s390_function_arg_float): Remove size variable.
14694 (s390_pass_by_reference): Handle vector arguments.
14695 (s390_function_arg_advance): Likewise.
14696 (s390_function_arg): Likewise.
14697 (s390_return_in_memory): Vector values are returned in a VR if
14699 (s390_function_and_libcall_value): Handle vector arguments.
14700 (s390_gimplify_va_arg): Likewise.
14701 (s390_call_saved_register_used): Consider the arguments named.
14702 (s390_conditional_register_usage): Disable v16-v31 for non-vec
14704 (s390_preferred_simd_mode): New function.
14705 (s390_support_vector_misalignment): New function.
14706 (s390_vector_alignment): New function.
14707 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
14708 (TARGET_VECTOR_MODE_SUPPORTED_P)
14709 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
14710 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
14711 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
14712 (TARGET_VECTOR_ALIGNMENT): Define target macro.
14713 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
14714 (FIRST_PSEUDO_REGISTER): Increase value.
14715 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
14716 (VECTOR_REG_P): Define macros.
14717 (FIXED_REGISTERS, CALL_USED_REGISTERS)
14718 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
14719 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
14720 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
14721 Add vector registers.
14722 (CANNOT_CHANGE_MODE_CLASS): Call C function.
14723 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
14724 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
14726 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
14727 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
14728 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
14729 (VR*_REGNUM): New constants.
14730 (ALL): New mode iterator.
14731 (INTALL): Remove mode iterator.
14733 (movti): Implement TImode moves for VRs.
14734 Disable TImode splitter for VR targets.
14735 Implement splitting TImode GPR<->VR moves.
14736 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
14737 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
14738 reload<mode>_la_in, reload<mode>_la_out.
14739 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
14740 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
14741 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
14742 (mov<mode> SF SD): Prefer lder, lde for loading.
14743 Add lrl and strl instructions.
14744 Add vector instructions.
14745 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
14746 Call s390_expand_vec_strlen on z13.
14747 (*cc_to_int): Change predicate to nonimmediate_operand.
14748 (addti3): Rename to *addti3. New expander.
14749 (subti3): Rename to *subti3. New expander.
14750 * config/s390/vector.md: New file.
14752 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14754 * common/config/s390/s390-common.c (processor_flags_table): Add
14756 * config.gcc: Add z13.
14757 * config/s390/s390-opts.h (enum processor_type): Add
14758 PROCESSOR_2964_Z13.
14759 * config/s390/s390.c (s390_adjust_priority): Check for
14760 PROCESSOR_2964_Z13.
14761 (s390_reorg): Likewise.
14762 (s390_sched_reorder): Likewise.
14763 (s390_sched_variable_issue): Likewise.
14764 (s390_loop_unroll_adjust): Likewise.
14765 (s390_option_override): Likewise. Default to -mvx when available.
14766 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
14767 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
14768 (TARGET_VX_ABI): Define macros.
14770 (TARGET_DEFAULT): Add MASK_OPT_VX.
14771 * config/s390/s390.md ("cpu" attribute): Add z13.
14772 ("cpu_facility" attribute): Add vec.
14773 * config/s390/s390.opt (processor_type): Add z13.
14774 (mvx): New options.
14775 * doc/invoke.texi: Add z13 option for -march.
14777 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14779 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
14780 mode check to make sure that only scalar integer values are
14783 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
14785 * tree.c (verify_type_variant): Fix #undef.
14786 (gimple_canonical_types_compatible_p): Move here from lto.c
14787 (verify_type): Verify TYPE_CANONICAL compatibility.
14788 * tree.h (gimple_canonical_types_compatible_p): Declare.
14790 2015-05-19 Jakub Jelinek <jakub@redhat.com>
14792 PR middle-end/66199
14793 * tree.h (OMP_TEAMS_COMBINED): Define.
14794 * gimplify.c (enum gimplify_omp_var_data): Add
14795 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
14796 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
14797 (omp_notice_variable): Accept both ORT_TEAMS
14798 and ORT_COMBINED_TEAMS. Don't recurse if
14799 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
14800 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
14802 (omp_no_lastprivate): New function.
14803 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
14804 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
14805 notice_outer and set appropriate bits, otherwise make
14806 sure default(none) combined constructs won't complain.
14807 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
14808 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
14809 omp_no_lastprivate either remove the clause or turn it
14810 into OMP_CLAUSE_PRIVATE.
14811 (gimplify_omp_for): Fix up handling of implicit
14812 lastprivate or linear iterators.
14813 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
14814 ORT_COMBINED_TEAMS.
14815 * omp-low.c (lower_omp_for_lastprivate): For combined
14816 for simd use fd.loop.n2 from the for rather than simd.
14818 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14820 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
14821 instead of gen_rtx_raw_REG.
14822 (cris_expand_epilogue): Likewise.
14823 * config/microblaze/microblaze.c (microblaze_classify_address):
14825 * config/sparc/sparc.md: Likewise.
14827 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
14829 * config/alpha/alpha.c (alpha_legitimize_reload_address)
14830 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
14831 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
14832 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
14833 Use CASE_CONST_SCALAR_INT.
14834 (print_operand) <case 'M'>: Use mode_width_operand to check the
14835 value of the constant.
14836 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
14837 * config/alpha/predicates.md (input_operand): Use general_operand
14838 instead of match_code as operand check.
14839 (symbolic_operand): Use match_code with subexpression digits.
14840 * config/alpha/constraints.md (Q): Ditto.
14842 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14844 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
14846 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14848 * config/s390/s390.c (s390_secondary_reload): Fix check for
14849 load/store relative.
14851 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14853 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
14854 alternative_mask to uint64_t.
14856 2015-05-19 Jakub Jelinek <jakub@redhat.com>
14858 PR tree-optimization/66187
14859 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
14860 Pass TYPE_SIGN to tree_int_cst_min_precision. If
14861 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
14863 2015-05-19 David Malcolm <dmalcolm@redhat.com>
14865 * diagnostic.c (diagnostic_report_current_module): Strengthen
14866 local "new_map" from const line_map * to
14867 const line_map_ordinary *.
14868 * genmatch.c (error_cb): Likewise for local "map".
14869 (output_line_directive): Likewise for local "map".
14870 * input.c (expand_location_1): Likewise for local "map".
14871 Pass NULL rather than &map to
14872 linemap_unwind_to_first_non_reserved_loc, since the value is never
14873 read from there, and the value written back not read from here.
14874 (is_location_from_builtin_token): Strengthen local "map" from
14875 const line_map * to const line_map_ordinary *.
14876 (dump_location_info): Strengthen locals "map" from
14877 line_map *, one to const line_map_ordinary *, the other
14878 to const line_map_macro *.
14879 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
14880 const line_map * to const line_map_macro *.
14881 (maybe_unwind_expanded_macro_loc): Add a call to
14882 linemap_check_macro when writing to the "map" field of the
14884 Introduce local const line_map_ordinary * "ord_map", using it in
14885 place of "map" in the part of the function where we know we have
14886 an ordinary map. Strengthen local "m" from const line_map * to
14887 const line_map_ordinary *.
14889 2015-05-19 Nick Clifton <nickc@redhat.com>
14892 * config/msp430/msp430.md (zero_extendhisi2): Add support for
14893 separate source and destination registers.
14895 2015-05-19 Richard Biener <rguenther@suse.de>
14897 PR tree-optimization/66165
14898 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
14899 for no load permutation.
14901 PR tree-optimization/66185
14902 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
14903 when building the SLP node from scalars.
14905 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
14906 Tristan Gingold <gingold@adacore.com>
14908 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
14909 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
14910 (expand_stack_restore): Call record_new_stack_level.
14911 (expand_stack_save): Do not call do_pending_stack_adjust.
14912 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
14913 * calls.c (expand_call): Call record_new_stack_level for alloca.
14914 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
14915 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
14916 (update_sjlj_context): New global function.
14917 * except.h (update_sjlj_context): Declare.
14918 * explow.c (record_new_stack_level): New global function.
14919 (allocate_dynamic_stack_space): Call record_new_stack_level.
14920 * explow.h (record_new_stack_level): Declare.
14921 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
14922 * cfgrtl.c (duplicate_insn_chain): Likewise.
14924 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14926 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
14927 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
14928 STACK_GROWS_DOWNWARD as normal if.
14929 (expand_call): Likewise.
14931 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
14934 * config/sh/sh.md (*round_int_even): New insn_and_split and
14935 accompanying new unnamed split.
14937 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14939 * bitmap.c (bitmap_set_range): Handle count==1 specially.
14940 (bitmap_clear_range): Likewise.
14941 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
14942 bitmap_set_range unconditionally.
14943 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
14944 * df-scan.c (df_mark_reg): Likewise.
14945 * haifa-sched.c (setup_ref_regs): Likewise.
14946 * sched-rgn.c (update_live_1): Likewise.
14948 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14950 * regs.h (END_HARD_REGNO): Delete.
14951 (END_REGNO): Move to...
14953 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
14954 * caller-save.c (mark_set_regs): Likewise.
14955 * combine.c (move_deaths, distribute_notes): Likewise.
14956 * cse.c (invalidate, invalidate_for_call): Likewise.
14957 * df-scan.c (df_ref_record): Likewise.
14958 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
14959 (record_last_reg_set_info): Likewise.
14960 * reg-stack.c (convert_regs_exit): Likewise.
14961 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
14962 * resource.c (update_live_status): Likewise.
14963 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
14965 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14967 * rtl.h (reg_info): Add an nregs field.
14968 (REG_NREGS): Use it.
14969 (SET_REGNO_RAW): Delete.
14970 (set_regno_raw): New function.
14971 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
14972 (END_REGNO): Redefine in terms of REG_NREGS.
14973 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
14975 * emit-rtl.c (set_mode_and_regno): Likewise.
14976 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
14977 instead of SET_REGNO_RAW.
14979 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14981 * rtl.h (PUT_MODE_RAW): New macro.
14982 (PUT_REG_NOTE_KIND): Use it.
14983 (set_mode_and_regno): Declare.
14984 (gen_raw_REG): Change regno to "unsigned int".
14985 (gen_rtx_REG): Change "unsigned" to "unsigned int".
14986 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
14987 use set_mode_and_regno to change the mode of registers.
14988 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
14989 * emit-rtl.c (set_mode_and_regno): New function.
14990 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
14991 * caller-save.c (reg_save_code): Use set_mode_and_regno.
14992 * expr.c (init_expr_target): Likewise.
14993 * ira.c (setup_prohibited_mode_move_regs): Likewise.
14994 * postreload.c (reload_cse_simplify_operands): Likewise.
14996 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14998 * caller-save.c (init_caller_save): Use word_mode and
14999 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
15000 * expr.c (init_expr_target): Likewise.
15001 * ira.c (setup_prohibited_mode_move_regs): Likewise.
15002 * postreload.c (reload_cse_regs_1): Likewise.
15004 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
15006 * rtl.def (REG): Change format to "r".
15007 * rtl.h (rtunion): Remove rt_reg.
15008 (reg_info): New structure.
15009 (rtx_def): Add reg field to main union.
15010 (X0REGATTR): Delete.
15011 (REG_CHECK): New macro.
15012 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
15013 * rtl.c (rtx_format): Document "r".
15014 (rtx_code_size): Handle REG specially.
15015 * gengenrtl.c (special_format): Return true for formats
15017 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
15018 Deal with REG_ATTRS after the field loop.
15019 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
15020 * expmed.c (init_expmed): Call gen_raw_REG instead of
15022 * expr.c (init_expr_target): Likewise.
15023 * regcprop.c (maybe_mode_change): Likewise.
15024 * varasm.c (make_decl_rtl): Likewise.
15025 * final.c (leaf_renumber_regs_insn): Return early after
15027 * genemit.c (gen_exp): Handle 'r' fields.
15028 * genpeep.c (match_rtx): Likewise.
15029 * gensupport.c (subst_pattern_match): Likewise.
15030 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
15031 (alter_constraints, subst_dup): Likewise.
15032 * read-rtl.c (read_rtx_code): Likewise.
15033 * print-rtl.c (print_rtx): Likewise.
15034 * genrecog.c (find_operand, find_matching_operand): Likewise.
15035 (validate_pattern, match_pattern_2): Likewise.
15036 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
15037 (rtx_test::regno_field): New function.
15038 (operator ==, safe_to_hoist_p, transition_parameter_type)
15039 (parameter_type_string, print_parameter_value)
15040 (print_nonbool_test, print_test): Handle new enum values.
15041 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
15042 * lra-constraints.c (operands_match_p): Likewise.
15044 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
15046 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
15047 Change type of new_regno to unsigned int.
15048 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
15049 new_regno to unsigned int.
15050 (df_ref_change_reg_with_loc): Remove old_regno parameter.
15051 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
15052 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
15053 (SET_REGNO_RAW): Add space after ",".
15055 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
15057 * rtl.h (REG_NREGS): New macro
15058 * alias.c (record_set): Use it.
15059 * cfgcleanup.c (mark_effect): Likewise.
15060 * combine.c (likely_spilled_retval_1): Likewise.
15061 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
15062 (move_deaths, distribute_notes): Likewise.
15063 * cselib.c (cselib_record_set): Likewise.
15064 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
15065 * df-scan.c (df_mark_reg): Likewise.
15066 * dse.c (look_for_hardregs): Likewise.
15067 * dwarf2out.c (reg_loc_descriptor): Likewise.
15068 (multiple_reg_loc_descriptor): Likewise.
15069 * expr.c (write_complex_part, read_complex_part): Likewise.
15070 (emit_move_complex): Likewise.
15071 * haifa-sched.c (setup_ref_regs): Likewise.
15072 * ira-lives.c (mark_hard_reg_live): Likewise.
15073 * lra.c (lra_set_insn_recog_data): Likewise.
15074 * mode-switching.c (create_pre_exit): Likewise.
15075 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
15076 (reload_combine_recognize_pattern): Likewise.
15077 (reload_combine_note_use, move2add_record_mode): Likewise.
15078 (reload_cse_move2add): Likewise.
15079 * reg-stack.c (subst_stack_regs_pat): Likewise.
15080 * regcprop.c (kill_value, copy_value): Likewise.
15081 (copyprop_hardreg_forward_1): Likewise.
15082 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
15083 (build_def_use): Likewise.
15084 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
15085 (deps_analyze_insn): Likewise.
15086 * sched-rgn.c (check_live_1, update_live_1): Likewise.
15087 * sel-sched.c (count_occurrences_equiv): Likewise.
15088 * valtrack.c (dead_debug_insert_temp): Likewise.
15090 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
15092 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
15093 * dse.c (note_add_store): Likewise.
15094 * ira-lives.c (mark_hard_reg_dead): Likewise.
15095 * loop-invariant.c (mark_reg_store): Likewise.
15096 (mark_reg_death): Likewise.
15097 * postreload.c (reload_combine): Likewise.
15098 (reload_combine_note_store): Likewise.
15099 (reload_combine_note_use): Likewise.
15100 * recog.c (peep2_reg_dead_p): Likewise.
15102 2015-05-19 Alan Modra <amodra@gmail.com>
15104 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
15105 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
15106 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
15108 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
15109 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
15110 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
15111 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
15113 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
15115 * config/mips/mips.md (JOIN_MODE): New mode iterator.
15116 (join2_load_Store<JOIN_MODE:mode>): New pattern.
15117 (join2_loadhi): Likewise.
15118 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
15119 load-load and store-stores.
15120 * config/mips/mips.opt (mload-store-pairs): New option.
15121 (TARGET_LOAD_STORE_PAIRS): New macro.
15122 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
15123 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
15124 * config/mips/mips.c (mips_load_store_bonding_p): New function.
15126 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
15128 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
15130 * dojump.c (do_compare_rtx_and_jump): Likewise.
15131 * expmed.c (emit_store_flag_1): Likewise.
15132 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
15133 * final.c (sprint_ul): Use std::reverse for reversing a string.
15134 * fold-const.c (extract_muldiv_1): Use std::swap.
15135 * genmodes.c (emit_mode_int_n): Likewise.
15136 * ifcvt.c (dead_or_predicable): Likewise.
15137 * ira-build.c (ira_merge_live_ranges): Likewise.
15138 (swap_allocno_copy_ends_if_necessary): Likewise.
15139 * ira.c (ira_setup_alts): Likewise.
15140 * loop-iv.c (iv_analyze_expr): Likewise.
15141 (implies_p): Likewise.
15142 (canon_condition): Likewise.
15143 * lra-constraints.c (swap_operands): Likewise.
15144 * lra-lives.c (lra_merge_live_ranges): Likewise.
15145 * omega.c (swap): Remove.
15147 (omega_unprotect_1): Use std::swap.
15148 (omega_solve_geq): Likewise.
15149 * optabs.c (expand_binop_directly): Likewise.
15150 (expand_binop): Likewise.
15151 (emit_conditional_move): Likewise.
15152 (emit_conditional_add): Likewise.
15153 * postreload.c (reload_cse_simplify_operands): Likewise.
15154 * reg-stack.c (emit_swap_insn): Likewise.
15155 (swap_to_top): Likewise.
15156 (compare_for_stack_reg): Likewise.
15157 (subst_asm_stack_regs): Likewise.
15158 * reload.c (find_reloads): Likewise.
15159 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
15160 * sel-sched.c (invoke_reorder_hooks): Likewise.
15161 (create_block_for_bookkeeping): Likewise.
15162 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
15163 (lambda_matrix_right_hermite): Use std::swap.
15164 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
15165 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
15166 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
15167 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
15168 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
15169 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
15170 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15171 * tree-vrp.c (compare_ranges): Likewise.
15172 * var-tracking.c (add_with_sets): Likewise.
15173 (vt_find_locations): Likewise.
15175 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
15177 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
15179 (FBSD_ENDFILE_SPEC): Likewise.
15180 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
15181 config/freebsd-spec.h.
15182 (ENDFILE_SPEC): Likewise.
15184 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
15185 Richard Henderson <rth@redhat.com>
15188 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
15189 Check for a memory location that is not a reference (using an AND)
15190 to an unaligned location here.
15191 * config/alpha/predicates.md (normal_memory_operand): Remove.
15193 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
15195 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
15196 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
15198 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
15200 * config/mips/mips.c (micromips_globals): New variable.
15201 (mips_set_compression_mode): Save and reinitialize target-dependent
15202 state for microMIPS.
15204 2015-05-18 Martin Liska <mliska@suse.cz>
15206 * dbgcnt.def: Add new counter.
15207 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
15209 2015-05-18 Martin Liska <mliska@suse.cz>
15211 * dbgcnt.def: Sort counters.
15212 * opts.c (common_handle_option): Do not compile if
15213 -fdbg-cnt-list is enabled.
15215 2015-05-18 Tom de Vries <tom@codesourcery.com>
15217 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
15218 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
15219 address operator to va_list operand.
15220 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
15222 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
15224 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
15225 * config/s390/s390.c (s390_gimplify_va_arg): Same.
15226 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
15228 2015-05-18 Tom de Vries <tom@codesourcery.com>
15230 * tree-ssa-tail-merge.c: Fix whitespace.
15232 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
15234 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
15235 cortex-a17, and cortex-a17.cortex-a7.
15237 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
15240 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
15242 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
15245 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
15246 QImode inner modes for TARGET_AVX512BW. Force mask operand
15247 to a register for AVX512F modes.
15249 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
15251 * toplev.c (emit_debug_global_declarations): Do not output debug info
15252 when doing slim LTO objects.
15254 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
15256 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
15257 odr_types_equivalent_p): Declare.
15258 (odr_type_p): Use gcc_checking_assert.
15259 (type_in_anonymous_namespace_p) Declare.
15260 (type_with_linkage_p): Declare.
15261 * common.opt (Wlto-type-mismatch): New warning.
15262 * ipa-devirt.c (compound_type_base): New function.
15263 (odr_or_derived_type_p): New function.
15264 (odr_types_equivalent_p): New function.
15265 (add_type_duplicate): Simplify.
15266 (type_with_linkage_p): Add hack to prevent false positives on C types
15267 (type_in_anonymous_namespace_p): Likewise.
15268 * tree.c (need_assembler_name_p): Use type_with_linkage.
15269 * tree.h (type_in_anonymous_namespace_p): Remove.
15270 * doc/invoke.texi (-Wlto-type-mismatch): Document
15272 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
15274 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
15275 (verify_type): Verify STRING_FLAG.
15277 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
15280 * tree-pretty-print.c (percent_K_format): Replace locus pointer
15281 with accessor function.
15282 * tree-diagnostic.c (diagnostic_report_current_function): Use
15283 diagnostic_location function.
15284 (maybe_unwind_expanded_macro_loc): Likewise.
15285 (virt_loc_aware_diagnostic_finalizer): Likewise.
15286 (default_tree_printer): Replace locus pointer with accessor function.
15287 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
15288 (diagnostic_set_info_translated): Initialize second location.
15289 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
15290 (diagnostic_show_locus): Handle two locations. Call
15291 diagnostic_print_caret_line.
15292 (diagnostic_print_caret_line): New.
15293 (default_diagnostic_starter): Use diagnostic_location function.
15294 (diagnostic_report_diagnostic): Use diagnostic_location function.
15295 (verbatim): Do not set text.locus.
15296 * diagnostic.h (struct diagnostic_info): Remove location field.
15297 (struct diagnostic_context): Make caret_chars an array of two.
15298 (diagnostic_location): New inline.
15299 (diagnostic_expand_location): Handle two locations.
15300 (diagnostic_same_line): New inline.
15301 (diagnostic_print_caret_line): Declare.
15302 (CARET_LINE_MARGIN): New constant.
15303 * pretty-print.c (pp_printf): Do not set text.locus.
15304 (pp_verbatim): Do not set text.locus.
15305 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
15306 (struct text_info): Replace locus pointer with locations
15307 array. Add accessor functions.
15309 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
15310 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15313 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
15314 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
15315 large constants in register instead of splitting them.
15317 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
15320 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
15321 replacements in memory addresses.
15322 (get_unaligned_address): Ditto.
15324 2015-05-16 James Bowman <james.bowman@ftdichip.com>
15326 * config/ft32/*: New files for FT32 port.
15327 * doc/install.texi: Add FT32 information.
15328 * doc/invoke.texi: Add FT32 information.
15329 * doc/md.texi: Add FT32 information.
15330 * doc/contrib.texi: Self added.
15332 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
15334 PR tree-optimization/64454
15335 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
15336 (-1 - A -> ~A): Remove unnecessary condition.
15338 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
15340 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
15341 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
15342 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
15344 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
15346 * ipa-chkp.h (chkp_wrap_function): New.
15347 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
15348 (chkp_wrap_function_name): New.
15349 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
15350 to get wrapper name.
15351 * lto-cgraph.c: Include ipa-chkp.h.
15352 (input_cgraph_1): Avoid alias chain for wrappers.
15354 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
15356 PR middle-end/66134
15357 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
15358 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
15360 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15362 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
15363 (AARCH64_FL_SLOWMUL): Delete.
15364 (AARCH64_FL_CRC): Redefine to 1<<3.
15365 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
15367 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15369 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
15372 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
15374 * config/alpha/alpha.md (extendqidi2): Use general_operand
15375 instead of some_operand for operand[1] predicate.
15376 (extendhidi2): Ditto.
15377 (cbranchdi4): Use general_operand instead of some_operand
15378 for operand[1] and operands[2] predicates.
15379 (cstoredi4): Ditto.
15380 * config/alpha/predicates.md (some_operand): Remove unused predicate.
15381 (some_ni_operand): Ditto.
15383 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
15385 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
15386 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
15387 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
15388 low part of the constant using alpha_emit_set_const_1.
15389 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
15391 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
15393 * varasm.c (output_constant_pool_1): Pass down alignment from
15394 constant pool entry's descriptor to output_constant_pool_2.
15395 (output_object_block): Add comment prior to call to
15396 output_constant_pool_1.
15398 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
15400 PR rtl-optimization/65862
15401 * target.def (ira_change_pseudo_allocno_class): New hook.
15402 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
15404 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
15405 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
15407 * ira-costs.c (find_costs_and_classes): Call the hook and change
15408 classes when it is necessary.
15409 * doc/tm.texi: Update.
15411 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
15413 * config/i386/i386.md (sibcall_memory): Check that register with
15414 callee address is not also used as one of the arguments, instead
15415 of checking that it is not live after the sibcall.
15416 (sibcall_pop_memory): Ditto.
15417 (sibcall_value_memory): Ditto.
15418 (sibcall_value_pop_memory): Ditto.
15420 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
15422 * generic-match-head.c (types_match): Handle non-types.
15423 * gimple-match-head.c (types_match): Likewise.
15424 * match.pd: Remove unnecessary TREE_TYPE for types_match.
15426 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
15428 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
15429 (csneg3<mode>_insn): Enable expansion of pattern.
15431 2015-05-14 Nick Clifton <nickc@redhat.com>
15433 * config/rl78/rl78.c (rl78_select_section): Select the correct
15434 default section based upon the category of the decl.
15436 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
15438 PR rtl-optimization/30967
15439 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
15440 destination mode for the cost of scc patterns.
15442 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
15444 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
15445 using SWIM248 mode iterator.
15446 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
15447 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
15448 for operand[2] constraint.
15449 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
15451 2015-05-13 Jakub Jelinek <jakub@redhat.com>
15453 PR middle-end/66133
15454 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
15455 make sure it is never noreturn, even when the task body does not
15457 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
15458 right before GIMPLE_OMP_RETURN.
15459 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
15460 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
15461 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
15463 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15465 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
15466 * tree-ssa-math-opts.c: Include params.h
15467 (pow_synth_sqrt_info): New struct.
15468 (representable_as_half_series_p): New function.
15469 (get_fn_chain): Likewise.
15470 (print_nested_fn): Likewise.
15471 (dump_fractional_sqrt_sequence): Likewise.
15472 (dump_integer_part): Likewise.
15473 (expand_pow_as_sqrts): Likewise.
15474 (gimple_expand_builtin_pow): Use above to attempt to expand
15475 pow as series of square roots. Removed now unused variables.
15477 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
15479 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
15480 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
15481 Remove *p0 and *p1 arguments. Rewrite function.
15482 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
15483 (alpha_split_const_mov): Update calls to alpha_extract_integer and
15484 alpha_emit_set_long_const.
15485 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
15486 (alpha_output_mi_thunk_osf): Ditto.
15487 * config/alpha/alpha.md (movti): Do not check operands[1]
15490 2015-05-13 Richard Biener <rguenther@suse.de>
15492 PR tree-optimization/66129
15493 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
15495 (vect_schedule_slp_instance): Fix typo.
15497 2015-05-13 David Malcolm <dmalcolm@redhat.com>
15499 * common.opt (fdump-internal-locations): New option.
15500 * input.c: Include diagnostic-core.h.
15501 (get_end_location): New function.
15502 (write_digit): New function.
15503 (write_digit_row): New function.
15504 (dump_location_range): New function.
15505 (dump_labelled_location_range): New function.
15506 (dump_location_info): New function.
15507 * input.h (dump_location_info): New prototype.
15508 * toplev.c (compile_file): Handle flag_dump_locations.
15510 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
15512 * gimple-expr.h (is_gimple_constant): Reorder.
15513 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
15515 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
15517 * combine.c (simplify_set): When generating a CC set, if the
15518 source already is in the correct mode, do not wrap it in a
15519 compare. Simplify the rest of that code.
15521 2015-05-13 Richard Biener <rguenther@suse.de>
15523 PR tree-optimization/66123
15524 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
15527 2015-05-13 Richard Biener <rguenther@suse.de>
15529 PR middle-end/66110
15530 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
15532 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
15534 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15536 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
15537 * aclocal.m4: Regenerated with automake-1.11.6.
15539 2015-05-13 Tom de Vries <tom@codesourcery.com>
15541 PR tree-optimization/66010
15542 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
15543 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
15544 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
15545 and rval based on do_deref.
15547 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
15550 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
15551 link time constants into adress expressions and therefore set
15554 2015-05-13 Jakub Jelinek <jakub@redhat.com>
15557 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
15558 Use SWI248 iterator instead of SWI.
15559 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
15560 Use eq_attr "alternative" "0" instead of match_test in
15561 length_immediate attribute computation.
15562 (*mulvhi4, *mulvhi4_1): New define_insns.
15565 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
15566 SIGNED to get precision of non-negative value.
15568 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
15571 * function.c (diddle_return_value_1): Process bounds first.
15572 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
15575 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
15577 PR rtl-optimization/64616
15578 * loop-invariant.c (can_move_invariant_reg): New.
15579 (move_invariant_reg): Call above new function to decide whether
15580 instruction can just be moved, skipping creation of temporary
15583 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
15585 PR target/pr66047.c
15586 * i386.c (ix86_function_sseregparm): Only return -1 if local function
15587 with implied regparm is called from -mno-sse function.
15588 (init_cumulative_args): Output error if ix86_function_sseregparm
15589 return -1 and SSE register would be needed.
15590 (function_arg_advance_32): Likewise.
15591 (function_arg_32): Likewise.
15592 * i386.h (ix86_args): Add decl field.
15594 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
15597 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
15598 inlines across optimization boundary.
15600 2015-05-12 Jason Merrill <jason@redhat.com>
15602 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
15603 string literal and macro name.
15605 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
15607 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
15608 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
15609 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
15611 2015-05-12 David Malcolm <dmalcolm@redhat.com>
15613 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
15614 (-Wmisleading-indentation): New option.
15615 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
15617 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
15619 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
15620 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
15621 (alpha_extract_integer): Ditto.
15622 (alpha_legitimate_constant_p): Ditto.
15623 (alpha_split_tmode_pair): Ditto.
15624 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
15625 (alpha_expand_mov): Ditto.
15626 (print_operand): Remove handling of 'H' modifier.
15627 <case 'm'>: Remove CONST_DOUBLE handling.
15628 (summarize_insn): Handle CONST_WIDE_INT.
15629 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
15631 (movti): Handle CONST_WIDE_INT.
15632 * config/alpha/constraints.md ('H'): Remove constraint definition.
15633 ('G'): Do not match MODE_FLOAT class.
15634 * config/alpha/predicates.md (const0_operand): Also match
15636 (non_add_const_operand): Ditto.
15637 (non_zero_const_operand): Ditto.
15638 (some_operand): Ditto.
15639 (input_operand): Ditto. Handle CONST_WIDE_INT.
15640 (and_operand): Do not match const_double.
15641 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
15643 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
15646 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
15647 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
15648 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
15649 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
15650 is_mm_seq_cst, is_mm_sync): New accessor functions.
15651 * builtins.c (expand_builtin_sync_operation,
15652 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
15653 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
15654 (get_memmodel, expand_builtin_atomic_compare_exchange,
15655 expand_builtin_atomic_load, expand_builtin_atomic_store,
15656 expand_builtin_atomic_clear): Use new accessor routines.
15657 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
15658 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
15659 (maybe_emit_sync_lock_test_and_set): Use new accessors and
15660 MEMMODEL_SYNC_ACQUIRE.
15661 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
15662 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
15663 expand_atomic_store): Use new accessors.
15664 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
15665 * tsan.c (instrument_builtin_call): Update check for memory model beyond
15666 final enum to use MEMMODEL_LAST.
15667 * c-family/c-common.c: Use new accessor for memmodel_base.
15668 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
15670 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
15671 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
15672 mem_thread_fence, *dmb): Likewise.
15673 * config/alpha/alpha.c (alpha_split_compare_and_swap,
15674 alpha_split_compare_and_swap_12): Likewise.
15675 * config/arm/arm.c (arm_expand_compare_and_swap,
15676 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
15677 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
15678 atomic_loaddi): Likewise.
15679 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
15681 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
15682 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
15684 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
15685 atomic_store<mode>, atomic_compare_and_swap<mode>,
15686 atomic_exchange<mode>): Use new accessors.
15687 * config/mips/mips.c (mips_process_sync_loop): Likewise.
15688 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
15689 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
15690 rs6000_post_atomic_barrier): Add new cases.
15691 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
15692 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
15693 (atomic_load<mode>): Add new cases and use new accessors.
15694 (store_quadpti): Add new cases.
15695 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
15697 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
15698 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
15701 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
15703 * ipa-devirt.c (type_with_linkage_p): New function.
15704 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
15706 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
15707 (can_be_name_hashed_p): Simplify.
15708 (hash_odr_name): Check that type has linkage before checking if it is
15710 (types_same_for_odr): Likewise.
15711 (odr_name_hasher::equal): Likewise.
15712 (odr_subtypes_equivalent_p): Likewise.
15713 (warn_types_mismatch): Likewise.
15714 (get_odr_type): Likewise.
15715 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
15716 * ipa-utils.h (odr_type_p): Move offline.
15717 * tree.c (need_assembler_name_p): Fix handling of types
15719 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
15721 2015-05-12 David Malcolm <dmalcolm@redhat.com>
15723 * timevar.c (timevar_enable): Delete in favor of...
15724 (g_timer): New global.
15725 (struct timevar_def): Move to timevar.h inside class timer.
15726 (struct timevar_stack_def): Likewise.
15727 (timevars): Delete global in favor of field "m_timevars" within
15728 class timer in timevar.h
15729 (stack): Likewise, in favor of field "m_stack".
15730 (unused_stack_instances): Likewise, in favor of field
15731 "m_unused_stack_instances".
15732 (start_time): Likewise, in favor of field "m_start_time".
15733 (get_time): Eliminate check for timevar_enable.
15734 (timer::timer): New function, built from part of timevar_init.
15735 (timevar_init): Rewrite idempotency test from using
15736 "timevar_enable" bool to using dynamic allocation of "g_timer".
15737 Move rest of implementation into timer's constructor.
15738 (timevar_push_1): Rename to...
15739 (timer::push): ...this, adding "m_" prefixes to variables that
15740 are now fields of timer.
15741 (timevar_pop_1): Likewise, rename to...
15742 (timer::pop): ...this, and add "m_" prefixes.
15743 (timevar_start): Replace test for "timevar_enable" with one for
15744 "g_timer", and move bulk of implementation to...
15745 (timer::start): ...here, adding "m_" prefixes.
15746 (timevar_stop): Likewise, from here...
15747 (timer::stop): ...to here.
15748 (timevar_cond_start): Likewise, from here...
15749 (timer::cond_start): ...to here.
15750 (timevar_cond_stop): Likewise, from here...
15751 (timer::cond_stop): ...to here.
15752 (validate_phases): Rename to...
15753 (timer::validate_phases): ...this, and add "m_" prefixes. Make
15754 locals "total" and "tv" const.
15755 (timevar_print): Rename to...
15756 (timer::print): ...this, and add "m_" prefixes. Make locals
15757 "total" and "tv" const. Eliminate test for timevar_enable.
15758 * timevar.h (timevar_enable): Eliminate.
15759 (g_timer): New declaration.
15760 (timevar_push_1): Eliminate.
15761 (timevar_pop_1): Eliminate.
15762 (timevar_print): Eliminate.
15763 (class timer): New class.
15764 (timevar_push): Rewrite to use g_timer.
15765 (timevar_pop): Likewise.
15766 * toplev.c (toplev::~toplev): Likewise.
15768 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
15770 * arm-protos.h (arm_sched_autopref): Delete.
15771 (tune_params): Re-organize, use enums for flag values.
15772 (FUSE_OPS): New macro.
15773 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
15774 (ARM_PREFETCH_BENEFICIAL): Likewise.
15775 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
15776 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
15777 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
15778 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
15779 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
15780 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
15781 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
15782 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
15784 (arm_option_override, thumb2_reorg, arm_print_tune_info)
15785 (aarch_macro_fusion_pair_p): Update uses of current_tune.
15786 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
15788 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
15790 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
15793 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
15794 Sandra Loosemore <sandra@codesourcery.com>
15796 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
15798 (REG_CLASS_NAMES): Add "IJMP_REGS".
15799 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
15800 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
15801 use new "c" register constraint.
15802 * config/nios2/constraint.md (c): New register constraint
15803 corresponding to IJMP_REGS.
15805 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
15807 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
15808 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
15809 define_splits): Delete, revamp, transmogrify into ...
15810 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
15811 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
15812 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
15815 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
15817 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
15818 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
15820 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
15822 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
15823 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
15824 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
15825 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
15826 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
15827 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
15828 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
15829 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
15830 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
15831 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
15832 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
15833 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
15834 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
15835 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
15836 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
15837 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
15838 and 30 corresponding splitters): Delete.
15840 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
15842 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
15845 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
15847 * combine.c (recog_for_combine_1): New function, factored out
15848 from recog_for_combine.
15849 (change_zero_ext): New function.
15850 (recog_for_combine): If recog fails, try again with the pattern
15851 modified by change_zero_ext; if that still fails, restore the
15854 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
15856 * combine.c (get_undo_marker): New function.
15857 (undo_to_marker): New function, largely factored out from ...
15858 (undo_all): ... this. Adjust.
15860 2015-05-12 Richard Biener <rguenther@suse.de>
15862 PR tree-optimization/66101
15863 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
15864 fixup if we turn a loop exit edge to a fallthru edge.
15866 2015-05-12 Richard Biener <rguenther@suse.de>
15868 PR tree-optimization/37021
15869 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
15870 (SLP_TREE_TWO_OPERATORS): New define.
15871 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
15872 SLP_TREE_TWO_OPERATORS.
15873 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
15875 (vect_build_slp_tree): Adjust.
15876 (vect_analyze_slp_cost_1): Likewise.
15877 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
15878 emitting two vector stmts and mixing the results.
15880 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
15882 * call.c (print_z_candidates): Remove dead code.
15884 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15886 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
15887 and zEC12_simple_fp.
15888 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
15891 2015-05-12 Tom de Vries <tom@codesourcery.com>
15893 PR tree-optimization/66010
15894 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
15896 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
15897 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
15898 va_lists are passed, and remove corresponding handling.
15899 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
15900 do_deref argument to ifn_va_arg.
15901 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
15904 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15907 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
15908 REG before taking its REGNO.
15910 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
15912 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
15913 rsp->sign_bit_copies and rsp->nonzero_bits into ...
15914 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
15915 present to get more accurate information about the number of sign bit
15916 copies and non zero bits.
15918 2015-05-12 Richard Biener <rguenther@suse.de>
15920 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
15921 do not allow unrolling.
15923 2015-05-11 Richard Henderson <rth@redhat.com>
15925 * config/i386/i386-modes.def (CCP): New.
15926 * config/i386/i386.c (put_condition_code): Handle it.
15927 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
15929 2015-05-11 Richard Henderson <rth@redhat.com>
15931 * target.def (md_asm_clobbers): Replace with...
15932 (md_asm_adjust): this.
15933 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
15934 (TARGET_MD_ASM_ADJUST): New.
15935 * tm.texi: Rebuild.
15936 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
15937 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
15938 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
15940 * cfgexpand.c (check_operand_nalternatives): Accept vector of
15941 constraints instead of lists of outputs and inputs.
15942 (expand_asm_stmt): Save and restore input_location around the
15943 body of the function. Move asm data into vectors instead of
15944 building tree lists. Generate cleanup sequences as needed,
15945 rather than waiting til the end. Use new md_asm_adjust hook.
15947 * config/vxworks.c: Include vec.h before target.h.
15948 * gimple.c: Likewise.
15949 * incpath.c: Likewise.
15950 * mode-switching.c: Likewise.
15952 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
15953 (cris_md_asm_adjust): this.
15954 (TARGET_MD_ASM_CLOBBERS): Remove.
15955 (TARGET_MD_ASM_ADJUST): New.
15956 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
15957 (ix86_md_asm_adjust): this.
15958 (TARGET_MD_ASM_CLOBBERS): Remove.
15959 (TARGET_MD_ASM_ADJUST): New.
15960 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
15961 (mn10300_md_asm_adjust): this.
15962 (TARGET_MD_ASM_CLOBBERS): Remove.
15963 (TARGET_MD_ASM_ADJUST): New.
15964 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
15965 (rs6000_md_asm_adjust): this.
15966 (TARGET_MD_ASM_CLOBBERS): Remove.
15967 (TARGET_MD_ASM_ADJUST): New.
15968 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
15969 (visium_md_asm_adjust): this.
15970 (TARGET_MD_ASM_CLOBBERS): Remove.
15971 (TARGET_MD_ASM_ADJUST): New.
15973 2015-05-11 Richard Henderson <rth@redhat.com>
15975 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
15976 if noutputs is zero.
15977 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
15979 * cfgexpand.c (expand_asm_operands): Merge into...
15980 (expand_asm_stmt): ... here.
15982 * cfgexpand.c (expand_asm_operands): Don't call
15983 resolve_asm_operand_names.
15984 * stmt.c (resolve_asm_operand_names): Clarify block comment.
15986 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
15988 * dwarf2out.c (gen_member_die): Sanity check that we access
15989 TYPE_MAIN_VARIANT for TYPE_METHODS.
15990 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
15991 checking TYPE_METHODS.
15992 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
15994 (build_distinct_type_copy): Clear TYPE_METHODS.
15995 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
15996 (verify_type): Allow TYPE_METHODS to be error_mark_node.
15997 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
15999 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
16001 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
16002 (emit_pattern_before_setloc): Likewise.
16004 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
16006 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
16007 for define_peephole2s.
16008 (get_peephole2_pattern): New function.
16009 (main): Use it. Call validate_pattern.
16011 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16013 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
16014 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
16015 (Last callee saved reg is different for AVR_TINY architecture)
16017 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
16019 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
16020 when looking for memory references.
16022 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
16025 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
16026 via function pointers.
16028 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
16030 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
16031 indirect call by forcing address into a pseudo with -fno-plt.
16032 * common.opt (flag_plt): New option.
16033 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
16034 ([-fno-plt]): Document.
16036 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
16039 * config/rs6000/option-defaults.h: Add space between string literal
16042 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
16044 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
16045 accross ARM targets.
16047 2015-05-11 Christian Bruel <christian.bruel@st.com>
16049 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
16050 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
16052 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
16054 PR rtl-optimization/66076
16055 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
16056 Don't grow the heap array if it is already big enough from a
16057 previous iteration.
16059 2015-05-11 Christian Bruel <christian.bruel@st.com>
16061 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
16062 (is_called_in_ARM_mode): Remove.
16063 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
16064 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
16065 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
16066 arm_declare_function_name.
16068 2015-05-11 Christian Bruel <christian.bruel@st.com>
16070 * config/arm/arm.c (arm_option_override): Reoganized and split into :
16071 (arm_option_params_internal); New function.
16072 (arm_option_check_internal): New function.
16073 (arm_option_override_internal): New function.
16074 (thumb_code, thumb1_code): Remove.
16075 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
16076 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
16077 (thumb_code, thumb1_code): Remove.
16078 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
16080 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
16082 * config/alpha/alpha.c (alpha_emit_set_const_1)
16083 (alpha_emit_set_long_const, alpha_extract_integer)
16084 (alpha_legitimate_constant_p, alpha_split_const_mov)
16085 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
16086 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16087 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
16089 * config/alpha/predicates.md (mode_mask_operand): Do not match
16091 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16092 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
16093 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
16094 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16095 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
16097 2015-05-11 Jakub Jelinek <jakub@redhat.com>
16100 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
16101 default_binds_local_p_2.
16102 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
16103 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
16105 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
16107 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
16109 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
16111 Patch by Richard Biener
16112 * coverage.c (coverage_obj_init): Delay building of type variant
16113 until the type is finished.
16115 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
16117 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
16118 mismatch between C and C++ type; compoare correctly ARG_TYPES
16119 for non-prototypes and output correctly parameter index for METHOD_TYPE.
16120 (odr_types_equivalent_p): Fix wording of warning about attributes;
16121 it is OK to match prototype and non-prototype.
16123 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
16125 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
16126 TYPE_ARG_TYPES list.
16127 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
16128 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
16130 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
16132 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
16133 * tree.h (is_lang_specific): Constify.
16135 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
16137 PR tree-optimization/64454
16138 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
16141 2015-05-08 Jason Merrill <jason@redhat.com>
16143 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
16144 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
16145 config/darwin.h, config/darwin9.h, config/elfos.h,
16146 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
16147 config/microblaze/microblaze.h, config/mips/mips.h,
16148 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
16149 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
16150 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
16151 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
16152 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
16153 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
16154 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
16155 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
16156 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
16157 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
16158 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
16159 between string literal and macro name.
16161 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16163 * jump.c: Change argument types to rtx_insn *.
16166 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16168 * lra-constraints.c: Change argument type to rtx_insn *.
16170 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16172 * df-problems.c: Change argument type to rtx_insn *.
16174 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16176 * combine.c: Change argument type to rtx_insn *.
16178 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16181 * rtlanal.c: Change argument type to rtx_insn *.
16183 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16185 * sched-deps.c: Change argument types to rtx_insn *.
16186 * sched-int.h: Adjust.
16188 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16190 * dwarf2cfi.c: Change argument type to rtx_insn *.
16192 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16194 * ira.c (decrease_live_ranges_number): Changetype of local
16195 variable to rtx_insn *.
16196 * recog.c: Change argument types to rtx_insn *.
16199 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16201 * reorg.c: Change argument types to rtx_insn *.
16203 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16205 * ira-color.c: Change argument types to rtx_insn *.
16206 * lra-eliminations.c: Likewise.
16209 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16211 * gcse.c: Change argument types to rtx_insn *.
16213 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16215 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
16217 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16219 * emit-rtl.c (emit_debug_insn_before): Change argument type to
16223 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16225 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
16228 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16230 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
16233 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16235 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
16238 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16240 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
16243 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16245 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
16249 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16251 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
16255 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16257 * except.c (can_nonlocal_goto): Change type of argument to
16261 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16263 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
16266 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16268 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
16269 * cfgrtl.c (can_delete_label_p): Adjust.
16272 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16274 * reorg.c (stop_search_p): Change argument to rtx_insn *.
16276 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16278 * except.c (make_reg_eh_region_note): Change argument to
16280 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
16281 * except.h: Adjust.
16283 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16285 * mode-switching.c (commit_mode_sets): Change type of local
16286 variable from rtx to rtx_insn *.
16288 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
16290 * doc/install.texi (--enable-languages): Add missing jit and lto info.
16291 Add ^ to grep command.
16292 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
16293 arg to last gimple_simplify declaration. Add missing gimple_build
16294 declaration for built-in function case with four tree args.
16296 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
16297 Szabolcs Nagy <szabolcs.nagy@arm.com>
16299 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
16300 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
16301 (GNU_USER_DYNAMIC_LINKERN32): Update.
16303 2015-05-08 Richard Biener <rguenther@suse.de>
16305 PR tree-optimization/66036
16306 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16307 Handle strided group loads.
16308 (vect_verify_datarefs_alignment): Likewise.
16309 (vect_enhance_data_refs_alignment): Likewise.
16310 (vect_analyze_group_access): Likewise.
16311 (vect_analyze_data_ref_access): Likewise.
16312 (vect_analyze_data_ref_accesses): Likewise.
16313 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
16314 (vectorizable_load): Likewise.
16316 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
16318 * config/rs6000/rs6000.md: Require operand inequality in one
16321 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
16322 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16324 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
16326 * config/rx/rx.md (movdi, movdf): Likewise.
16327 Likewise for define_peephole2s.
16329 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
16331 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
16332 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
16333 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
16334 vtst_u64): Rewrite using gcc vector extensions.
16336 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
16338 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
16339 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
16341 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
16343 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
16345 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
16347 * config/glibc-stdint.h (OPTION_MUSL): Define.
16348 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
16349 Change the definition based on OPTION_MUSL for 64 bit targets.
16350 * config/linux.h (OPTION_MUSL): Redefine.
16351 * config/alpha/linux.h (OPTION_MUSL): Redefine.
16352 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
16353 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
16355 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
16356 Szabolcs Nagy <szabolcs.nagy@arm.com>
16358 * config.gcc (LIBC_MUSL): New tm_defines macro.
16359 * config/linux.h (OPTION_MUSL): Define.
16360 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
16361 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
16362 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
16363 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
16364 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
16365 * config/linux.opt (mmusl): New option.
16366 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
16367 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
16368 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
16369 * configure: Regenerate.
16371 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
16372 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16375 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
16376 * config/i386/knetbsd-gnu64.h: New file.
16378 2015-05-08 Marek Polacek <polacek@redhat.com>
16381 * doc/invoke.texi: Document -Woverride-init-side-effects.
16383 2015-05-07 Marek Polacek <polacek@redhat.com>
16386 * doc/invoke.texi: Document -Wshift-negative-value.
16388 2015-05-06 Aditya Kumar <hiraditya@msn.com>
16390 * gcov-tool.c (do_merge): Refactore to remove int ret.
16391 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
16392 !type == FUNC to type != FUNC.
16393 * reload.h (struct target_reload): Changee to type of
16394 x_spill_indirect_levels from bool to unsigned char.
16396 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
16398 * rtl.h (always_void_p): New function.
16399 * gengenrtl.c (always_void_p): Likewise.
16400 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
16401 with code foo are always VOIDmode.
16402 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
16403 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
16404 compare-elim.c, config/aarch64/aarch64.c,
16405 config/aarch64/aarch64.md, config/alpha/alpha.c,
16406 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
16407 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
16408 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
16409 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
16410 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
16411 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
16412 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
16413 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
16414 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
16415 config/ia64/vect.md, config/iq2000/iq2000.c,
16416 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
16417 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
16418 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
16419 config/mep/mep.c, config/microblaze/microblaze.c,
16420 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
16421 config/mn10300/mn10300.c, config/msp430/msp430.c,
16422 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
16423 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
16424 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
16425 config/rs6000/altivec.md, config/rs6000/rs6000.c,
16426 config/rs6000/rs6000.md, config/rs6000/vector.md,
16427 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
16428 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
16429 config/sh/sh.md, config/sh/sh_treg_combine.cc,
16430 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
16431 config/spu/spu.md, config/stormy16/stormy16.c,
16432 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
16433 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
16434 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
16435 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
16436 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
16437 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
16438 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
16439 var-tracking.c: Update calls accordingly.
16441 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16444 PR middle-end/54303
16445 * varasm.c (function_mergeable_rodata_prefix): New function.
16446 (mergeable_string_section): Use it.
16447 (mergeable_constant_section): Use it.
16449 2015-05-07 Jeff Law <law@redhat.com>
16452 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16453 simplifier to narrow arithmetic.
16454 * generic-match-head.c: (types_match, single_use): New functions.
16455 * gimple-match-head.c: (types_match, single_use): New functions.
16457 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16459 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
16462 2015-05-07 Richard Biener <rguenther@suse.de>
16464 PR tree-optimization/66002
16465 * passes.def: Schedule another pass_merge_phi after ifcombine, right
16468 2015-05-07 Marek Polacek <polacek@redhat.com>
16469 Martin Uecker <uecker@eecs.berkeley.edu>
16471 * doc/invoke.texi: Document -fsanitize=bounds-strict.
16472 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
16473 into SANITIZE_NONDEFAULT.
16474 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
16476 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
16479 * config/alpha/alpha.c (alpha_override_options_after_change): New.
16480 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
16481 (alpha_override_options): Move align_loops, align_jumps and
16482 align_functions handling into alpha_override_options_after_change.
16484 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
16485 Chris Jones <chrisj@nvidia.com>
16486 Joshua Conner <jconner@nvidia.com>
16488 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
16489 linking of crtfastmath.o.
16490 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
16492 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
16494 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
16495 (cstore<mode>4_unsigned_imm): New expander.
16496 (cstore<mode>4): Remove empty constraint strings. Use the new
16499 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
16502 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
16505 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
16507 * config/aarch64/geniterators.sh: Use standard BRE in sed.
16509 2015-05-06 Alan Modra <amodra@gmail.com>
16512 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
16513 (UNSPEC_NOP): Define.
16514 (reload_vsx_from_gpr<mode>): Add missing DONE.
16515 (reload_gpr_from_vsx<mode>): Likewise.
16516 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
16517 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
16519 2015-05-06 Christian Bruel <christian.bruel@st.com>
16522 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
16523 align_jumps, align_functions into aarch64_override_options_after_change.
16525 2015-05-06 Richard Biener <rguenther@suse.de>
16527 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
16528 vect_transform_slp_perm_load to check if we support a permutation
16529 for basic-block vectorization.
16531 2015-05-06 Nick Clifton <nickc@redhat.com>
16533 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
16534 used, even if it is not being used as a frame pointer.
16536 2015-05-05 Jason Merrill <jason@redhat.com>
16538 * dwarf2out.c (gen_member_die): Don't emit anything for an
16539 anonymous class constructor.
16541 2015-05-05 David Malcolm <dmalcolm@redhat.com>
16543 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
16544 that it reflects the block structure.
16545 (afdo_propagate_edge): Likewise.
16546 (afdo_calculate_branch_prob): Likewise.
16547 (afdo_annotate_cfg): Likewise.
16548 * cfgcleanup.c (equal_different_set_p): Likewise.
16549 (try_crossjump_to_edge): Likewise.
16550 * cgraph.c (cgraph_node::verify_node): Likewise.
16551 * cgraphunit.c (expand_all_functions): Likewise.
16552 * config/i386/i386.c (ix86_expand_copysign): Likewise.
16553 (exact_dependency_1): Likewise.
16554 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
16555 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
16556 * gensupport.c (process_define_subst): Likewise.
16557 * lto-wrapper.c (merge_and_complain): Likewise.
16558 * tree-if-conv.c (if_convertible_bb_p): Likewise.
16559 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
16560 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
16561 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
16562 * tree-vect-loop.c (vectorizable_reduction): Likewise.
16563 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
16564 * tree-vect-stmts.c (vectorizable_shift): Likewise.
16565 * tree-vrp.c (vrp_finalize): Likewise.
16566 * tree.c (variably_modified_type_p): Likewise.
16568 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
16570 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
16571 on darwin12 and later.
16572 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
16573 file to pass -rdynamic on darwin12 and later.
16574 * config/darwin.opt (rdynamic): Add.
16576 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
16578 * doc/extend.texi (C Extensions): Update menu for moved Variable
16579 Attributes and Type Attributes sections.
16581 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
16584 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
16585 if rep_8byte stringop strategy was specified for 32-bit target.
16587 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
16590 * config/i386/i386.md (vector convert to float spltiter): Check for
16591 xmm16+, when splitting scalar float conversion.
16592 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
16594 2015-05-05 Nick Clifton <nickc@redhat.com>
16596 * config/msp430/msp430-opts.h (enum msp430_regions): New.
16597 * config/msp430/msp430.c (msp430_override_options): Complain if
16598 -mcode-region or -mdata-region is used on a non MSP430X.
16599 (msp430_section_attr): New function. Checks lower, upper and
16601 (msp430_attribute_table): Add lower, upper and either.
16602 (gen_prefix): New function. Generates a prefix for a section
16604 (msp430_select_section): New function - handles the choice of
16605 section for an object. Takes into account memory region
16606 attributes and options.
16607 (msp430_function_section): Use gen_prefix.
16608 (TARGET_SECTION_TYPE_FLAGS): Define.
16609 (msp430_section_type_flags): New function.
16610 (TARGET_ASM_UNIQUE_SECTION): Define.
16611 (msp430_unique_section): New function.
16612 (msp430_output_aligned_decl_common): New function.
16613 (msp430_do_not_relax_short_jumps): New function.
16614 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
16616 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
16617 * config/msp430/msp430-protos.h
16618 (msp430_do_not_relax_short_jumps): New prototype.
16619 (msp430_output_aligned_decl_common): New prototype.
16620 * config/msp430/msp430.md (length): New attribute.
16621 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
16622 then use a long code sequence for short jumps.
16623 * config/msp430/msp430.opt (mcode-region): New.
16624 (mdata-region): New.
16625 * doc/invoke.texi: Document new options.
16626 * doc/extend.texi: Document new attributes.
16628 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
16630 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
16631 (tune_params): Add field branch_costs.
16632 (aarch64_branch_cost): Declare.
16633 * gcc/config/aarch64.c (generic_branch_cost): New.
16634 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
16635 (cortexa53_tunings): Likewise.
16636 (cortexa57_tunings): Likewise.
16637 (thunderx_tunings): Likewise.
16638 (xgene1_tunings): Likewise.
16639 (aarch64_branch_cost): Define.
16640 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
16642 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
16644 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
16645 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
16646 * config/i386/i386.md: Ditto.
16647 * config/i386/winnt.c: Ditto.
16649 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
16651 * doc/extend.texi (__atomic Builtins): Move implementation details
16652 to the end of the description, rewrite opening paragraphs, state
16653 difference with __sync builtins, state C11/C++11 assumptions,
16654 weaken itemized descriptions, add explanation of memory model
16655 behaviour, expand description of compare-exchange, simplify text.
16657 2015-05-05 Renlin Li <renlin.li@arm.com>
16659 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
16661 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
16663 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
16664 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
16665 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
16666 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
16667 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
16668 * configure: Regenerate.
16669 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
16670 * doc/install.texi (aarch64*-*-*): Document new
16671 --enable-fix-cortex-a53-843419 option.
16672 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
16673 and -mno-fix-cortex-a53-843419 options.
16675 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
16678 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
16680 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
16682 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
16683 fix overactive TYPE_MIN_VALUE check and add FIXME for type
16684 compatibility problems.
16686 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
16688 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
16690 (cbranchsi4_reg): New.
16691 * config/microblaze/microblaze.c
16692 (microblaze_expand_conditional_branch_reg): New.
16693 * config/microblaze/microblaze-protos.h
16694 (microblaze_expand_conditional_branch_reg): New prototype.
16696 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
16698 * config/microblaze/microblaze.md (peephole2): New.
16700 2015-05-04 Jeff Law <law@redhat.com>
16703 2015-05-04 Jeff Law <law@redhat.com>
16705 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16706 simplifier to narrow arithmetic.
16707 * generic-match-head.c: (types_match, single_use): New functions.
16708 * gimple-match-head.c: (types_match, single_use): New functions.
16710 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
16713 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
16714 (split_branches): Likewise.
16716 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
16718 * common.opt (fdelete-null-pointer-checks): Init to -1.
16719 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
16720 override flag_delete_null_pointer_checks default.
16721 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
16722 behavior re address zero. Better document target-specific behavior.
16723 (-fisolate-errneous-paths-dereference): Mention relationship to
16724 -fdelete-null-pointer-checks.
16726 2015-05-04 Jakub Jelinek <jakub@redhat.com>
16728 PR tree-optimization/65984
16729 * ubsan.c: Include tree-cfg.h.
16730 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
16731 stmt_could_throw_p test, rename can_throw variable to ends_bb.
16733 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
16735 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
16736 to CONST_DOUBLE_P predicate.
16737 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
16738 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
16739 allow only operands that satisfy standard_sse_constant_p predicate.
16740 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
16741 to CONST_DOUBLE_P predicate.
16743 2015-05-04 Jeff Law <law@redhat.com>
16745 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16746 simplifier to narrow arithmetic.
16747 * generic-match-head.c: (types_match, single_use): New functions.
16748 * gimple-match-head.c: (types_match, single_use): New functions.
16750 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
16752 * config/arm/arm.c: Restore bootstrap.
16754 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
16756 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
16757 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
16758 as CONST_WIDE_INT, not CONST_DOUBLE.
16759 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
16760 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
16761 (ix86_find_base_term): Do not check for CONST_DOUBLE.
16762 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
16763 (ix86_build_signbit_mask): Rewrite using wide ints.
16764 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
16765 (ix86_rtx_costs): Handle CONST_WIDE_INT.
16766 (find_constant): Ditto.
16767 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
16768 using gen_int_mode.
16769 * config/i386/predicates.md (x86_64_immediate_operand)
16770 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
16771 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
16772 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
16773 (const0_operand): Also match const_wide_int.
16774 (constm1_operand): Ditto.
16775 (const1_operand): Ditto.
16777 2015-05-04 Richard Biener <rguenther@suse.de>
16779 PR tree-optimization/65965
16780 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
16781 store groups at gaps.
16783 2015-05-04 Richard Biener <rguenther@suse.de>
16785 PR tree-optimization/65935
16786 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
16787 then make sure to apply that swapping to the IL.
16789 2015-05-04 Jakub Jelinek <jakub@redhat.com>
16791 * Makefile.in (PATCHLEVEL_c): New variable.
16792 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
16793 expand the same way as if DEVPHASE_c was non-empty.
16795 2015-05-04 Kai Tietz <ktietz@redhat.com>
16798 * lto-wrapper.c (run_gcc): Open filename
16801 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
16803 * doc/extend.texi (Variable Attributes, Type Attributes): Move
16804 sections up in file, to immediately after the Function Attributes
16807 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
16809 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
16811 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16813 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
16814 (insert_partition_copy_on_edge): Adjust.
16815 (insert_rtx_to_part_on_edge): Likewise.
16816 (insert_part_to_rtx_on_edge): Likewise.
16818 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16820 * function.c (set_return_jump_label): Change type of argument to
16822 * function.h (set_return_jump_label): Adjust.
16824 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16826 * reload.h (struct reg_equivs_t): Change type of init to
16828 * ira.c (fix_reg_equiv_init): Adjust.
16829 * reload1.c (eliminate_regs_1): Likewise.
16830 (init_eliminable_invariants): Likewise.
16832 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16834 * cselib.c (fp_setter_insn): Take a rtx_insn *.
16835 * cselib.h (fp_setter_insn): Adjust.
16837 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16839 * recog.c (struct validate_replace_src_data): Change type of
16840 insn field to rtx_insn *.
16841 (validate_replace_src_group): Change type of argument to rtx_insn *.
16842 * recog.h (validate_replace_src_group): Adjust.
16844 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16846 * haifa-sched.c: Change the type of some variables to rtx_insn *.
16847 * sched-deps.c: Likewise.
16848 * sched-int.h: Likewise.
16849 * sched-rgn.c: Likewise.
16850 * sel-sched.c: Likewise.
16852 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16855 * config/i386/i386.c: Change the type of some arguments to
16857 * config/arm/arm.c: Likewise.
16859 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16861 * lra-constraints.c: Change type of some arguments to rtx_insn *.
16863 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16865 * regcprop.c (kill_autoinc_value): Change type of argument to
16868 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16870 * genrecog.c (print_subroutine): Adjust.
16871 * recog.c (get_bool_attr_mask_uncached): Likewise.
16872 * recog.h (struct recog_data_d): Change the type of insn to
16875 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16877 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
16879 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16881 * df-problems.c (df_set_note): Change type of argument to
16884 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16886 * builtins.c (expand_builtin_trap): Change type of local
16887 variable to rtx_insn *.
16888 (add_sched_insns_for_speculation): Likewise.
16889 (ix86_emit_save_regs): Likewise.
16890 (get_scratch_register_on_entry): Likewise.
16891 (ix86_emit_restore_reg_using_pop): Likewise.
16892 (ix86_emit_leave): Likewise.
16893 (ix86_emit_restore_regs_using_mov): Likewise.
16894 (ix86_expand_epilogue): Likewise.
16896 (rl78_alloc_physical_registers_umul): Likewise.
16897 * cselib.c (discard_useless_locs): Likewise.
16898 (cselib_invalidate_regno): Likewise.
16899 (cselib_invalidate_mem): Likewise.
16900 * function.c (expand_function_start): Likewise.
16901 (emit_use_return_register_into_block): Likewise.
16902 * gcse.c: Likewise.
16903 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
16904 * ifcvt.c (noce_get_alt_condition): Likewise.
16905 * loop-doloop.c (doloop_condition_get): Likewise.
16906 * lra-constraints.c (inherit_in_ebb): Likewise.
16907 * modulo-sched.c (sms_schedule_by_order): Likewise.
16908 * recog.c (next_insn_tests_no_inequality): Likewise.
16909 * reorg.c (emit_delay_sequence): Likewise.
16910 (update_reg_dead_notes): Likewise.
16911 (fix_reg_dead_note): Likewise.
16912 (fill_slots_from_thread): Likewise.
16913 (delete_computation): Likewise.
16915 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
16917 * doc/extend.texi (Variable Attributes): Add menu and proper
16918 @nodes to subsections. Move Microsoft Windows attributes to
16919 their own subsection.
16920 (Type Attributes): Reorganize introduction to remove duplicate
16921 list of attributes. Add menu and proper @nodes to subsections.
16922 Alphabetize the main table of common attributes.
16924 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
16926 * match.pd: New simplification patterns.
16927 (x + (x & 1)) -> ((x + 1) & ~1)
16928 (x & ~(x & y)) -> ((x & ~y))
16929 (x | ~(x | y)) -> ((x | ~y))
16931 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16933 * target.def (attribute_table): Mention that struct attribute_spec
16934 is defined in tree-core.h rather than tree.h
16935 * doc/tm.texi: Regenerate.
16937 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
16939 * genrecog.c (test): Rename to rtx_test. Update rest of file
16942 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
16944 PR translation/65959
16945 * params.h (DEFPARAM): Rename msgid to nocmsgid.
16947 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
16949 * gcc/config/aarch64/aarch64-protos.h (tune_params):
16950 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
16951 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
16952 Return value depending on target.
16953 (generic_tunings): Initialize new target settings.
16954 (cortexa53_tunings): Likewise.
16955 (cortexa57_tunings): Likewise.
16956 (thunderx_tunings): Likewise.
16957 (xgene1_tunings): Likewise.
16959 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
16961 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
16962 Make Cortex-A53 shift costs more accurate.
16964 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16966 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
16969 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
16971 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
16972 Calculate cost of op0 and op1 in PLUS and MINUS cases.
16974 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16976 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
16977 Add cost of op0 in the compare-with-fpzero case.
16979 2015-04-30 David Malcolm <dmalcolm@redhat.com>
16981 * builtins.c (fold_builtin_1): Remove spurious second
16983 * cgraph.h (symtab_node::get_availability): Likewise.
16984 * opts.c (common_handle_option): Remove spurious second semicolon.
16985 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
16986 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
16988 2015-04-30 Caroline Tice <cmtice@google.com>
16990 PR gcov-profile/65929
16991 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
16992 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
16993 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
16994 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
16995 * doc/tm.texi: Regenerate.
16996 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
16997 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
16998 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
16999 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
17001 2015-04-30 Marek Polacek <polacek@redhat.com>
17003 * varasm.c (handle_cache_entry): Fix logic.
17005 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17007 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
17008 (*extrsi5_insn_uxtw_alt): Likewise.
17009 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
17010 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
17013 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17015 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
17018 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17020 * config/aarch64/aarch64.md
17021 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
17022 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
17023 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
17024 appropriately. Handle alternative EON form.
17026 2015-04-30 Renlin Li <renlin.li@arm.com>
17028 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
17029 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
17031 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
17034 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
17035 -fstrict-aliasing boundaries.
17037 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17039 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
17040 and [SU]MNEGL patterns.
17042 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17044 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
17045 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
17046 combined arithmetic-shift ops. Properly handle all shift and extend
17047 operations that can occur in combination with PLUS/MINUS.
17048 Rename maybe_fma to compound_p.
17049 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
17050 arithmetic and shift operations.
17052 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17054 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
17055 rather than arith_shift cost when costing ADD/MINUS of an
17058 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
17061 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
17064 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
17066 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
17067 are for the same position.
17069 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
17071 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
17073 (vectorize_loops): Use it.
17075 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
17077 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
17078 for aggregate types.
17079 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
17080 type to be non_ODR.
17081 * tree.c (need_assembler_name_p): Compute mangled name for
17082 non-fundamental types and integer types.
17084 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
17086 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
17088 * expr.c (expand_expr_real_2): Likewise.
17090 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
17092 * tree.c (build_common_builtin_nodes): Do not build
17093 __builtin_alloca_with_align as equivalent of library alloca.
17095 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
17097 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
17098 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
17100 * tree.c: Include print-tree.h and ipa-utils.h
17101 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
17102 (free_lang_data_in_cgraph): Call verify_type.
17103 (verify_type_variant): New function.
17104 (verify_type): New function.
17105 * tree.h (verify_type): Declare.
17107 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
17109 * config/mips/mips-cpus.def: (mips4): Change default processor
17110 from PROCESSOR_R8000 to PROCESSOR_R10000.
17112 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
17114 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
17115 la/jalr instead of jal.
17117 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
17120 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
17121 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
17122 (setcc+movzbl peephole2): Check also clobbered reg.
17123 (setcc+andl peephole2): Ditto.
17125 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
17128 * config/nvptx/mkoffload.c (target_ilp32): New variable.
17129 (main): Set it depending on "-foffload-abi=[...]".
17130 (compile_native, main): Use it to pass "-m32" or "-m64" to the
17133 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
17136 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
17137 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
17138 Flip lane index back at assembly time for bigendian.
17140 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
17142 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
17143 * gimplify.c (gimplify_omp_workshare): Use it.
17145 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
17147 * Makefile.in (build/genrecog.o): Depend on inchash.h.
17148 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
17150 * genrecog.c: Rewrite most of the code except for the third page.
17152 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
17154 * inchash.h, inchash.c: Include bconfig.h for build objects.
17155 * Makefile.in (build/inchash.o): New rule.
17157 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
17160 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
17161 number in type attribute expression.
17163 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
17165 * loop-iv.c (canon_condition): Generalize to all types of integer
17168 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
17170 * gimple-walk.c: Prune duplicate or unneeded includes.
17171 (walk_gimple_asm): Only call parse_input_constraint or
17172 parse_output_constraint if their findings are used.
17173 Honour parse_input_constraint and parse_output_constraint
17176 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
17178 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
17180 2015-04-29 Tom de Vries <tom@codesourcery.com>
17182 PR tree-optimization/65893
17183 * passes.def (pass_all_optimizations): Move pass_stdarg to after
17186 2015-04-29 Richard Biener <rguenther@suse.de>
17188 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
17189 compute GROUP_SIZE for basic-block SLP.
17190 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
17191 take into account gaps.
17192 (vect_get_mask_element): Properly reject references to previous
17194 (vect_transform_slp_perm_load): Likewise.
17196 2015-04-29 Christian Bruel <christian.bruel@st.com>
17199 * config/i386/i386.c (ix86_default_align): New function.
17200 (ix86_override_options_after_change): Call ix86_default_align.
17201 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
17202 (ix86_override_options_after_change): New function.
17204 2015-04-28 Jeff Law <law@redhat.com>
17206 * tree-ssa-dom.c (record_equality); Fix comment typos.
17208 2015-04-28 Tom de Vries <tom@codesourcery.com>
17210 PR tree-optimization/65887
17211 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
17213 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
17215 * doc/extend.texi (Declaring Attributes of Functions): Split into
17216 subsections by target. Alphabetize the table of common attributes.
17217 Rewrite some of the introductory text to reflect the new structure.
17218 Update some cross-references to point to the new subsections.
17219 (Attribute Syntax): Put paragraph about "__" naming here. Remove
17220 duplicate copies in the discussion of function, label, and type
17223 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
17226 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
17228 2015-04-28 Jason Merrill <jason@redhat.com>
17231 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
17232 (finalize_type_size): Respect TYPE_USER_ALIGN.
17233 (layout_type) [ARRAY_TYPE]: Likewise.
17235 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
17237 * config/arm/arm.md (*arm_movt): Fix type attribute.
17238 (*cmpsi_shiftsi): Likewise.
17239 (*cmpsi_shiftsi_swp): Likewise.
17240 (*movsicc_insn): Likewise.
17241 (*cond_move): Likewise.
17242 (*if_plus_move): Likewise.
17243 (*if_move_plus): Likewise.
17244 (*if_arith_move): Likewise.
17245 (*if_move_arith): Likewise.
17246 (*if_shift_move): Likewise.
17247 (*if_move_shift): Likewise.
17248 (*arm_movtas_ze): Likewise.
17249 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
17250 redundancy and type attribute.
17251 (*thumb2_movsi_insn): Fix type attribute.
17252 (*thumb2_addsi_short): Likewise.
17253 (thumb2_addsi3_compare0): Likewise.
17254 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
17255 attributes accordingly.
17257 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
17260 * function.c (pad_to_arg_alignment): Add parentheses.
17262 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
17264 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
17265 libgcc/config/frv/elf-lib.h.
17267 2015-04-28 Tom de Vries <tom@codesourcery.com>
17269 * tree-call-cdce.c: Fix example in header comment.
17271 2015-04-28 Richard Biener <rguenther@suse.de>
17273 PR tree-optimization/62283
17274 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
17275 fails fatally and we are vectorizing a basic-block simply
17276 cause the child to be constructed piecewise.
17277 (vect_analyze_slp_cost_1): Adjust.
17278 (vect_detect_hybrid_slp_stmts): Likewise.
17279 (vect_bb_slp_scalar_cost): Likewise.
17280 (vect_get_constant_vectors): For piecewise constructed
17281 constants place them after the last def.
17282 (vect_get_slp_defs): Adjust.
17283 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
17284 externals for basic-block vectorization.
17286 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
17289 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
17291 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
17292 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
17293 (AARCH64_TUNE_FMA_STEERING): Likewise.
17294 * config/aarch64/aarch64-cores.def: Set
17295 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
17296 FMUL/FMADD instructions.
17297 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
17298 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
17299 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
17300 * config/aarch64/cortex-a57-fma-steering.h: New file.
17301 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17303 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
17305 * gensupport.c (std_preds): Add missing codes to address_operand entry.
17307 2015-04-28 Richard Biener <rguenther@suse.de>
17309 PR tree-optimization/65851
17310 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
17311 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
17312 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
17313 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
17314 (ccp_visit_phi_node): Adjust.
17315 (evaluate_stmt): For simplifications to SSA names return its
17316 lattice value if that isn't VARYING. Return immediately when
17317 simplified to a constant.
17318 (visit_assignment): Adjust.
17319 (ccp_visit_stmt): Likewise.
17321 2015-04-28 Tom de Vries <tom@codesourcery.com>
17323 PR tree-optimization/65818
17324 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
17327 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17329 * calls.c (save_fixed_argument_area): Don't check
17330 ARGS_GROW_DOWNWARD with the preprocessor.
17331 (restore_fixed_argument_area): Likewise.
17332 (mem_overlaps_already_clobbered_arg_p): Likewise.
17333 (check_sibcall_argument_overlap): Likewise.
17334 (expand_call): Likewise.
17335 (emit_library_call_value_1): Likewise.
17336 (store_one_arg): Likewise.
17337 * function.c (assign_parms): Likewise.
17338 (locate_and_pad_parm): Likewise.
17339 (pad_to_arg_alignment): Likewise.
17340 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
17342 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17344 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
17345 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
17346 * calls.c (save_fixed_argument_area): Don't chekc if
17347 ARGS_GROW_DOWNWARD is defined.
17348 (restore_fixed_argument_area): Likewise.
17349 (mem_overlaps_already_clobbered_arg_p): Likewise.
17350 (check_sibcall_argument_overlap): Likewise.
17351 (expand_call): Likewise.
17352 (emit_library_call_value_1): Likewise.
17353 (store_one_arg): Likewise.
17354 * function.c (assign_parms): Likewise.
17355 (locate_and_pad_parm): Likewise.
17356 (pad_to_arg_alignment): Likewise.
17357 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
17359 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17361 * defaults.h (gen_epilogue): New function.
17362 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
17364 * cfgrtl.c (cfg_layout_finalize): Likewise.
17365 * df-scan.c: Likewise.
17366 * function.c (thread_prologue_and_epilogue_insns): Likewise.
17367 (reposition_prologue_and_epilogue_notes): Likewise.
17368 * reorg.c (find_end_label): Likewise.
17369 * toplev.c: Likewise.
17371 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17373 * bb-reorder.c (HAVE_return): Don't check if its undefined.
17374 * defaults.h (gen_simple_return): New function.
17375 (gen_simple_return): Likewise.
17376 (HAVE_return): Add default definition to false.
17377 (HAVE_simple_return): Likewise.
17378 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
17379 HAVE_return and HAVE_simple_return are defined.
17380 * function.c (gen_return_pattern): Likewise.
17381 (convert_jumps_to_returns): Likewise.
17382 (thread_prologue_and_epilogue_insns): Likewise.
17383 * reorg.c (find_end_label): Likewise.
17384 (dbr_schedule): Likewise.
17385 * shrink-wrap.c: Likewise.
17386 * shrink-wrap.h: Likewise.
17388 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17390 * defaults.h (EPILOGUE_USES): Add default definition of false.
17391 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
17392 * resource.c (init_resource_info): Likewise.
17394 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17396 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
17398 * dwarf2out.c (field_byte_offset): REmove check if
17399 PCC_BITFIELD_TYPE_MATTERS is defined.
17400 * stor-layout.c (layout_decl): Likewise.
17401 (update_alignment_for_field): Likewise.
17402 (place_field): Likewise.
17404 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17406 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
17408 * regrename.c (check_new_reg_p): Remove check if
17409 HARD_REGNO_RENAME_OK is defined.
17410 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
17412 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17414 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
17415 * cse.c (fold_rtx): Likewise.
17416 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
17417 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
17418 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
17419 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
17420 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
17421 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
17422 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
17423 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
17424 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
17425 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
17427 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
17428 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
17429 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
17430 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
17431 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
17432 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
17433 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
17434 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
17435 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
17436 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
17437 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
17438 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
17439 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
17440 * doc/tm.texi: Regenerate.
17441 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
17442 either true or false.
17444 2015-04-27 Jeff Law <law@redhat.com>
17446 PR tree-optimization/65217
17447 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
17448 of them has a single use, make sure it is the LHS of the implied
17451 2015-04-28 Alan Modra <amodra@gmail.com>
17454 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
17455 (offsettable_ok_by_alignment): Use minimum of decl and toc
17456 pointer alignment. Replace dead code with assertion.
17457 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
17458 case if size exceeds toc pointer alignment.
17459 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
17460 (rs6000_emit_move): Likewise.
17461 * configure.ac: Add linker toc pointer alignment check.
17462 * configure: Regenerate.
17463 * config.in: Regenerate.
17465 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
17467 * config.gcc: Add h8300-*-linux.
17468 * config/h8300/linux.h: New.
17469 * config/h8300/t-linux: New.
17470 * config/h8300/h8300.c (h8300_option_override): Normal mode
17471 is not supported for h8300-*-linux.
17472 (h8300_file_start): Target priority change.
17473 (get_shift_alg): Likewise.
17474 (h8300_shift_need_scratch_p): Likewise.
17475 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
17476 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
17478 2015-04-27 Caroline Tice <cmtice@google.com>
17480 * final.c (final_scan_insn): Output cold_function_name as function
17482 * varasm.c (cold_function_name): Make global.
17483 (assemble_start_function): Re-set cold_function_name.
17484 (assemble_end_function): Output cold partition size.
17485 * varasm.h (cold_function_name): Declare global.
17487 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
17489 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
17490 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
17492 (*movxi_internal_avx512f): Ditto.
17493 (define_split): Check for xmm16+, when splitting scalar float_extend.
17494 (*extendsfdf2_mixed): Use "v" constraint.
17495 (define_split): Check for xmm16+, when splitting scalar float_truncate.
17496 (*truncdfsf_fast_sse): Use "v" constraint.
17497 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
17498 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
17499 (define_peephole2): Check for xmm16+, when converting scalar
17501 (define_peephole2): Check for xmm16+, when converting scalar
17503 (*fop_<mode>_comm_mixed): Use "v" constraint.
17504 (*fop_<mode>_comm_sse): Ditto.
17505 (*fop_<mode>_1_mixed): Ditto.
17506 (*sqrt<mode>2_sse): Ditto.
17507 (*ieee_s<ieee_maxmin><mode>3): Ditto.
17509 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17511 * combine.c (simplify_if_then_else): Use std::swap instead
17512 of manually swapping.
17513 (known_cond): Likewise.
17514 (simplify_comparison): Likewise.
17516 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
17519 * config/rs6000/htm.md: Remove all define_expands.
17520 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
17521 UNSPECV_HTM_TABORTWCI): Remove.
17522 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
17523 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
17524 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
17525 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
17526 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
17527 tabortwci_internal): Remove define_insns.
17528 (tabort<wd>c, tabort<wd>ci): New define_insns.
17529 (tabort): Use gpc_reg_operand.
17530 (tcheck): Remove operand.
17531 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
17532 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
17534 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
17535 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
17536 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
17537 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
17538 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
17539 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
17540 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
17541 (tcheck): Remove builtin argument.
17542 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
17544 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
17545 tabortdc and tabortdci builtins when not in 64-bit mode.
17546 Modify code to handle the loss of the HTM define_expands.
17547 Emit code to copy the CR register to TARGET.
17548 (htm_init_builtins): Modify code to handle the loss of the HTM
17550 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
17551 (RS6000_BTC_64BIT): Likewise.
17552 (RS6000_BTC_CR): New macro.
17553 * doc/extend.texi: Update documentation for htm builtins.
17555 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17557 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
17558 of manually swapping.
17559 (simplify_associative_operation): Likewise.
17560 (simplify_binary_operation): Likewise.
17561 (simplify_plus_minus): Likewise.
17562 (simplify_relational_operation): Likewise.
17563 (simplify_ternary_operation): Likewise.
17565 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
17567 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
17568 (xs_hi_nonmemory_operand): Remove error.
17569 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
17570 general_operand rather than xs_hi_general_operand.
17572 2015-04-27 Richard Biener <rguenther@suse.de>
17574 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
17575 (record_equivalences_from_stmt): Valueize rhs.
17576 (record_equality): Canonicalize x and y order via
17577 tree_swap_operands_p. Do not swap operands for same loop depth.
17579 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
17583 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
17584 Add hint how to use own spec file.
17586 2015-04-27 Jakub Jelinek <jakub@redhat.com>
17588 PR tree-optimization/65875
17589 * tree-vrp.c (update_value_range): If in is_new case setting
17590 old_vr to VR_VARYING, also set new_vr to it. Remove
17591 old_vr->type == VR_VARYING test.
17592 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
17593 SSA_PROP_INTERESTING if update_value_range returned true,
17594 but new range is VR_VARYING.
17596 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
17598 * combine.c (sign_extend_short_imm): New.
17599 (set_nonzero_bits_and_sign_copies): Use above new function for sign
17600 extension of src short immediate.
17601 (reg_nonzero_bits_for_combine): Likewise for tem.
17603 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
17605 * stor-layout.c (self_referential_component_ref_p): New predicate.
17606 (copy_self_referential_tree_r): Use it.
17607 (self_referential_size): Punt for simple operations directly involving
17608 self-referential component references.
17609 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
17611 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
17613 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
17615 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
17617 * vec.h (vec): Make splice arguments const. Update definitions
17620 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
17622 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
17625 2015-04-26 Tom de Vries <tom@codesourcery.com>
17627 PR tree-optimization/65826
17628 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
17630 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
17632 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
17633 (*madd3<mode>): Ditto.
17634 (*msub4<mode>): Ditto.
17635 (*msub3<mode>): Ditto.
17636 (*nmadd4<mode>): Ditto.
17637 (*nmadd3<mode>): Ditto.
17638 (*nmadd4<mode>_fastmath): Ditto.
17639 (*nmadd3<mode>_fastmath): Ditto.
17640 (*nmsub4<mode>): Ditto.
17641 (*nmsub3<mode>): Ditto.
17642 (*nmsub4<mode>_fastmath): Ditto.
17643 (*nmsub3<mode>_fastmath): Ditto.
17645 2015-04-24 Jason Merrill <jason@redhat.com>
17648 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
17649 down when building TYPE_CANONICAL.
17650 (build_pointer_type_for_mode): Likewise.
17652 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
17654 * genrecog.c (validate_pattern): Check matching constraint refers
17655 to a lower numbered operand.
17657 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17660 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
17661 save to independent variables use the Save attribute. This will
17662 allow these options to be modified with the #pragma/attribute
17664 (-mallow-movmisalign): Likewise.
17665 (-mallow-df-permute): Likewise.
17666 (-msched-groups): Likewise.
17667 (-malways-hint): Likewise.
17668 (-malign-branch-targets): Likewise.
17669 (-mvectorize-builtins): Likewise.
17670 (-msave-toc-indirect): Likewise.
17672 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
17673 can be set via the #pragma/attribute target support.
17674 (rs6000_opt_vars): Likewise.
17675 (rs6000_inner_target_options): If VSX was set, also set
17676 -mno-avoid-indexed-addresses.
17678 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17680 * config/arm/iterators.md (shiftable_ops): Rename to...
17681 (SHIFTABLE_OPS): ... This. Update use in comments.
17682 (ior_xor): Rename to...
17683 (IOR_XOR): ... This.
17684 (vqh_ops): Rename to...
17685 (VQH_OPS): ... This.
17686 (vqhs_ops): Rename to...
17687 (VQHS_OPS): ... This.
17688 (rshifts): Rename to...
17689 (RSHIFTS): ... This.
17690 (returns): Rename to...
17691 (RETURNS): ... This.
17692 * config/arm/arm.md: Update uses of the above.
17693 * config/arm/neon.md: Likewise.
17695 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17697 * config.host (case ${host}): Add aarch64*-*-linux case.
17698 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
17699 fields to all the cores.
17700 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
17701 Add MCPU_MTUNE_NATIVE_SPECS.
17702 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
17703 field to all extensions.
17704 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
17705 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
17706 Adjust definition of AARCH64_OPT_EXTENSION.
17707 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
17708 (MCPU_MTUNE_NATIVE_SPECS): Define.
17709 * config/aarch64/driver-aarch64.c: New file.
17710 * config/aarch64/x-arch64: New file.
17711 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
17714 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
17715 Wei Mi <wmi@google.com>
17717 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
17718 * config/i386/i386.c (extract_base_offset_in_addr): New function.
17719 (ix86_operands_ok_for_move_multiple): Ditto.
17720 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
17721 (movlpd/movhpd to movupd peephole2): Ditto.
17723 2015-04-24 Marek Polacek <polacek@redhat.com>
17726 * input.h (from_macro_expansion_at): Define.
17729 * doc/invoke.texi: Update description of -Wlogical-op.
17731 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
17733 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
17734 ternary operator in fprintf and harmonize spacing.
17736 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
17738 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
17739 Mark operand1 commutative.
17741 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
17743 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
17744 input operands in memory.
17745 (*vec_concatv2si_sse4_1): Ditto.
17746 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
17747 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
17749 (vec_extract_hi_v32hi): Ditto.
17750 (vec_extract_hi_v64hi): Ditto.
17751 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
17753 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
17754 Steven Bosscher <steven@gcc.gnu.org>
17756 PR rtl-optimization/34503
17757 * cprop.c (cprop_reg_p): New.
17758 (hash_scan_set): Use above function to check if register can be
17760 (find_avail_set): Return up to two sets, one whose source is a
17761 register and one whose source is a constant. Sets are returned in an
17762 array passed as parameter rather than as a return value.
17763 (cprop_insn): Use a do while loop rather than a goto. Try each of the
17764 sets returned by find_avail_set, starting with the one whose source is
17765 a constant. Use cprop_reg_p to check if register can be propagated.
17766 (do_local_cprop): Use cprop_reg_p to check if register can be
17768 (implicit_set_cond_p): Likewise.
17770 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
17772 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
17773 (sem_function::equals): IGNORED_NODES parameter is now unused;
17774 update call of equals_private.
17775 (sem_function::equals_private): Do not call equals_wpa; skip
17776 gimple body matching if there is no body.
17777 (sem_function::init): Add logic to hash tthunk info.
17778 (sem_function::parse): Also parse thunks.
17779 * ipa-icf.h (equals_private): Update declaration.
17781 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17783 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
17784 asterisk from name so this can be generated directly.
17785 (*altivec_stvx_<mode>_internal): Likewise.
17786 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
17787 that this is never called during or after reload/lra.
17788 (rs6000_frame_related): Remove split_reg
17789 argument and logic that references it.
17790 (emit_frame_save): Remove last parameter from call to
17791 rs6000_frame_related.
17792 (rs6000_emit_prologue): Remove last parameter from eight calls to
17793 rs6000_frame_related. Force generation of stvx instruction for
17794 Altivec register saves. Remove split_reg handling, which is no
17796 (rs6000_emit_epilogue): Force generation of lvx instruction for
17797 Altivec register restores.
17799 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17801 * config/rs6000/rs6000.opt (mcrypto): Change option description to
17802 match category changes in ISA 2.07B.
17804 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17806 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
17808 (cmp_op, cmp_type): New code attributes.
17809 (NEON_VCMP, NEON_VACMP): New int iterators.
17810 (cmp_op_unsp): New int attribute.
17811 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
17812 (neon_vceq<mode>): Delete.
17813 (neon_vc<cmp_op><mode>_insn): New pattern.
17814 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
17815 (neon_vcgeu<mode>): Delete.
17816 (neon_vcle<mode>): Likewise.
17817 (neon_vclt<mode>: Likewise.
17818 (neon_vcage<mode>): Likewise.
17819 (neon_vcagt<mode>): Likewise.
17820 (neon_vca<cmp_op><mode>): New define_expand.
17821 (neon_vca<cmp_op><mode>_insn): New pattern.
17822 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
17824 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
17826 * tree.h (attribute_value_equal): Declare.
17827 * tree.c (attribute_value_equal): Export.
17829 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
17831 * ipa-icf.c (sem_item::compare_attributes): New function.
17832 (sem_item::compare_referenced_symbol_properties): Compare variable
17834 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
17835 (sem_function::param_used_p): New function.
17836 (sem_function::equals_wpa): Fix attribute comparsion; match
17837 parameter type codes; do not compare paremter flags when
17838 they are not used; compare edge flags; compare indirect calls.
17839 (sem_item::update_hash_by_addr_refs): Hash reference type.
17840 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
17841 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
17842 reference use type.
17843 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
17844 * ipa-icf.h (compare_attributes, param_used_p): Declare.
17846 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
17848 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
17850 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
17851 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
17852 (sem_item::compare_referenced_symbol_properties): New.
17853 (sem_item::hash_referenced_symbol_properties): New.
17854 (sem_item::compare_cgraph_references): Rename to ...
17855 (sem_item::compare_symbol_references): ... this one; use
17856 compare_referenced_symbol_properties.
17857 (sem_function::equals_wpa): Do not compare
17858 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
17859 DECL_IS_OPERATOR_NEW; compare pointer sizes.
17860 (sem_item::update_hash_by_addr_refs): Call
17861 hash_referenced_symbol_properties.
17862 (sem_item::update_hash_by_local_refs): Cleanup.
17863 (sem_function::merge): Do not mix up symbol properties.
17864 (sem_variable::equals_wpa): Use compare_symbol_references.
17865 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
17866 (sem_item::hash_referenced_symbol_properties): New.
17867 (sem_item::compare_symbol_references): New.
17868 (sem_item::compare_cgraph_references): Remove.
17870 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
17873 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
17874 Emit size of local.
17876 2015-04-23 Nick Clifton <nickc@redhat.com>
17878 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
17879 ATTRIBUTE_UNUSED to x parameter.
17880 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
17882 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17884 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
17885 TARGET_CRYPTO to TARGET_P8_VECTOR>
17886 (crypto_vpermxor_<mode>): Likewise.
17887 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
17888 (BU_CRYPTO_3A): Likewise.
17889 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
17890 (BU_CRYPTO_OVERLOAD_3A): New #define.
17891 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
17892 (VPMSUMH): Likewise.
17893 (VPMSUMW): Likewise.
17894 (VPMSUMD): Likewise.
17895 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
17896 (VPERMXOR_V4SI): Likewise.
17897 (VPERMXOR_V8HI): Likewise.
17898 (VPERMXOR_V16QI): Likewise.
17899 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
17900 BU_CRYPTO_OVERLOAD_2A.
17901 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
17902 BU_CRYPTO_OVERLOAD_3A.
17903 * config/rs6000/rs6000.opt (mcrypto): Change description of
17906 2015-04-23 Richard Biener <rguenther@suse.de>
17908 * passes.def: Remove copy propagation passes run directly after CCP.
17909 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
17911 (ccp_visit_phi_node): Rework to handle first executable edge
17914 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
17916 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
17917 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
17918 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
17919 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
17920 (thumb_legimitimize_reload_address): Remove.
17921 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
17923 (thumb_legimitimize_reload_address): Remove.
17925 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17927 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
17929 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17931 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
17933 (store_multiple): Likewise.
17935 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17937 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
17938 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
17939 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
17940 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
17941 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
17942 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
17943 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
17944 Specify issue_rate value.
17945 (arm_issue_rate): Look up issue rate from tuning structs. Remove
17946 large switch statement.
17947 (arm_marvell_pj4_tune): New struct.
17948 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
17951 2015-04-23 Richard Biener <rguenther@suse.de>
17953 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
17954 (vect_find_last_store_in_slp_instance): Rename to ...
17955 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
17956 (vect_analyze_slp_cost_1): Use vector_load for constant defs
17957 and vec_construct for external defs when estimating prologue cost.
17958 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
17959 Compute costs here only when vectorizing loops.
17960 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
17961 have been determined.
17962 (vect_schedule_slp_instance): Simplify vectorized code placement
17963 and prepare for in-BB external defs.
17964 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
17965 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
17966 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
17968 (vect_model_load_cost): Likewise.
17969 (vectorizable_store): Instead add it here.
17970 (vectorizable_load): Likewise.
17971 (vect_is_simple_use): Dump def type textually.
17973 2015-04-23 Richard Biener <rguenther@suse.de>
17975 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
17976 * cfgloop.c (verify_loop_structure): Verify the root loop node.
17977 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
17978 instead of get_eh_region_from_lp_number.
17979 * loop-init.c (fix_loop_structure): If we removed a loop, reset
17982 2015-04-23 Anton Blanchard <anton@samba.org>
17984 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
17985 need for -mprofile-kernel to save LR to stack.
17987 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17989 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
17991 (insn_is_swappable_p): Return 1 for a convert from double to
17992 single precision when all of its uses are splats of BE element
17995 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17997 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
17999 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18002 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
18003 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
18004 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
18006 (rs6000_builtin_mask_for_load): Return 0 for targets with
18007 efficient unaligned VSX accesses so that the vectorizer will use
18008 direct unaligned loads.
18009 (rs6000_builtin_support_vector_misalignment): Always return true
18010 for targets with efficient unaligned VSX accesses.
18011 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
18012 stores on targets with efficient unaligned VSX accesses is almost
18013 always the same as the cost of an aligned load or store, so model
18015 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
18016 unaligned vectors if we have efficient unaligned VSX accesses.
18017 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
18018 undocumented option.
18020 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18023 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
18025 * config.gcc (LIBC_MUSL): New tm_defines macro.
18026 * config/linux.h (OPTION_MUSL): Define.
18027 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
18028 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
18029 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
18031 * config/linux.opt (mmusl): New option.
18032 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
18033 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
18035 * configure: Regenerate.
18037 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
18039 * config.gcc (LIBC_MUSL): New tm_defines macro.
18040 * config/linux.h (OPTION_MUSL): Define.
18041 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
18042 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
18043 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
18045 * config/linux.opt (mmusl): New option.
18046 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
18047 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
18049 * configure: Regenerate.
18051 2015-04-22 Yury Gribov <y.gribov@samsung.com>
18053 * doc/invoke.texi (-fsanitize-sections): Update description.
18054 * asan.c (set_sanitized_sections): Parse incoming arg.
18055 (section_sanitized_p): Support wildcards.
18057 2015-04-22 Tom de Vries <tom@codesourcery.com>
18059 PR tree-optimization/65823
18060 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
18061 equality between ap_copy and ap.
18063 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18066 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
18068 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18071 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
18073 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18076 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
18077 remove already contained t-files.
18079 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18081 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
18082 Remove unneeded forward declarations.
18083 (suitable_for_tail_call_opt_p): Commentary typo fix.
18085 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18087 * varasm.c (emit_bss): Remove redundant guard.
18089 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18091 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
18093 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18095 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
18097 2015-04-22 Hale Wang <hale.wang@arm.com>
18098 Terry Guo <terry.guo@arm.com>
18100 PR rtl-optimization/64818
18101 * combine.c (can_combine_p): Don't combine user-specified
18102 register if it is in an asm input.
18104 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
18107 * passes.def (early_optimizations): Add pass_dse.
18109 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18111 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
18112 * reorg.c (redundant_insn): Remove ifdef
18113 INSN_REFERENCES_ARE_DELAYED.
18114 * resource.c (mark_referenced_resources): Likewise.
18116 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18118 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
18119 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
18120 * resource.c (mark_set_resources): Likewise.
18122 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18124 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
18125 * cfgcleanup.c (flow_find_cross_jump): Likewise.
18126 (flow_find_head_matching_sequence): Likewise.
18127 (try_head_merge_bb): Likewise.
18128 * combine.c (can_combine_p): Likewise.
18129 (try_combine): Likewise.
18130 (distribute_notes): Likewise.
18131 * df-problems.c (can_move_insns_across): Likewise.
18132 * final.c (final): Likewise.
18133 * gcse.c (insert_insn_end_basic_block): Likewise.
18134 * ira.c (find_moveable_pseudos): Likewise.
18135 * reorg.c (try_merge_delay_insns): Likewise.
18136 (fill_simple_delay_slots): Likewise.
18137 (fill_slots_from_thread): Likewise.
18138 * sched-deps.c (sched_analyze_2): Likewise.
18140 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18142 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
18143 PIC_OFFSET_TABLE_REGNUM.
18145 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18147 * alias.c (init_alias_target): Remove ifdef
18148 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
18149 * df-scan.c (df_insn_refs_collect): Likewise.
18150 (df_get_regular_block_artificial_uses): Likewise.
18151 (df_get_eh_block_artificial_uses): Likewise.
18152 (df_get_entry_block_def_set): Likewise.
18153 (df_get_exit_block_use_set): Likewise.
18154 * emit-rtl.c (gen_rtx_REG): Likewise.
18155 * ira.c (ira_setup_eliminable_regset): Likewise.
18156 * reginfo.c (init_reg_sets_1): Likewise.
18157 * regrename.c (rename_chains): Likewise.
18158 * reload1.c (reload): Likewise.
18159 (eliminate_regs_in_insn): Likewise.
18160 * resource.c (mark_referenced_resources): Likewise.
18161 (init_resource_info): Likewise.
18163 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18165 * defaults.h (MASK_RETURN_ADDR): New definition.
18166 * except.c (expand_builtin_extract_return_addr): Remove ifdef
18169 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18171 * defaults.h (RETURN_ADDR_OFFSET): New definition.
18172 * except.c (expand_builtin_extract_return_addr): Remove ifdef
18173 RETURN_ADDR_OFFSET.
18174 (expand_builtin_frob_return_addr): Likewise.
18176 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18178 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
18179 (try_redirect_by_replacing_jump): Likewise.
18180 (rtl_tidy_fallthru_edge): Likewise.
18181 * combine.c (insn_a_feeds_b): Likewise.
18182 (find_split_point): Likewise.
18183 (simplify_set): Likewise.
18184 * cprop.c (cprop_jump): Likewise.
18185 * cse.c (cse_extended_basic_block): Likewise.
18186 * df-problems.c (can_move_insns_across): Likewise.
18187 * function.c (emit_use_return_register_into_block): Likewise.
18188 * haifa-sched.c (sched_init): Likewise.
18189 * ira.c (find_moveable_pseudos): Likewise.
18190 * loop-invariant.c (find_invariant_insn): Likewise.
18191 * lra-constraints.c (curr_insn_transform): Likewise.
18192 * postreload.c (reload_combine_recognize_const_pattern):
18194 * reload.c (find_reloads): Likewise.
18195 * reorg.c (delete_scheduled_jump): Likewise.
18196 (steal_delay_list_from_target): Likewise.
18197 (steal_delay_list_from_fallthrough): Likewise.
18198 (redundant_insn): Likewise.
18199 (fill_simple_delay_slots): Likewise.
18200 (fill_slots_from_thread): Likewise.
18201 (delete_computation): Likewise.
18202 * sched-rgn.c (add_branch_dependences): Likewise.
18204 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18206 * genconfig.c (main): Always define HAVE_cc0.
18207 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
18209 * cfgcleanup.c (flow_find_cross_jump): Likewise.
18210 (flow_find_head_matching_sequence): Likewise.
18211 (try_head_merge_bb): Likewise.
18212 * cfgrtl.c (rtl_merge_blocks): Likewise.
18213 (try_redirect_by_replacing_jump): Likewise.
18214 (rtl_tidy_fallthru_edge): Likewise.
18215 * combine.c (do_SUBST_MODE): Likewise.
18216 (insn_a_feeds_b): Likewise.
18217 (combine_instructions): Likewise.
18218 (can_combine_p): Likewise.
18219 (try_combine): Likewise.
18220 (find_split_point): Likewise.
18222 (simplify_set): Likewise.
18223 (distribute_notes): Likewise.
18224 * cprop.c (cprop_jump): Likewise.
18225 * cse.c (cse_extended_basic_block): Likewise.
18226 * df-problems.c (can_move_insns_across): Likewise.
18227 * final.c (final): Likewise.
18228 (final_scan_insn): Likewise.
18229 * function.c (emit_use_return_register_into_block): Likewise.
18230 * gcse.c (insert_insn_end_basic_block): Likewise.
18231 * haifa-sched.c (sched_init): Likewise.
18232 * ira.c (find_moveable_pseudos): Likewise.
18233 * loop-invariant.c (find_invariant_insn): Likewise.
18234 * lra-constraints.c (curr_insn_transform): Likewise.
18235 * optabs.c (prepare_cmp_insn): Likewise.
18236 * postreload.c (reload_combine_recognize_const_pattern):
18238 * reload.c (find_reloads): Likewise.
18239 (find_reloads_address_1): Likewise.
18240 * reorg.c (delete_scheduled_jump): Likewise.
18241 (steal_delay_list_from_target): Likewise.
18242 (steal_delay_list_from_fallthrough): Likewise.
18243 (try_merge_delay_insns): Likewise.
18244 (redundant_insn): Likewise.
18245 (fill_simple_delay_slots): Likewise.
18246 (fill_slots_from_thread): Likewise.
18247 (delete_computation): Likewise.
18248 (relax_delay_slots): Likewise.
18249 * sched-deps.c (sched_analyze_2): Likewise.
18250 * sched-rgn.c (add_branch_dependences): Likewise.
18252 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18254 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
18255 that is trivially ded on non cc0 targets.
18256 (simplify_set): Likewise.
18257 (mark_used_regs_combine): Likewise.
18258 * cse.c (new_basic_block): Likewise.
18259 (fold_rtx): Likewise.
18260 (cse_insn): Likewise.
18261 (cse_extended_basic_block): Likewise.
18262 (set_live_p): Likewise.
18263 * rtlanal.c (canonicalize_condition): Likewise.
18264 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18266 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18268 * conditions.h: Define macros even if HAVE_cc0 is undefined.
18269 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
18270 * final.c: Likewise.
18271 * jump.c: Likewise.
18272 * recog.c: Likewise.
18273 * recog.h: Declare functions even when HAVE_cc0 is undefined.
18274 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
18276 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18278 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
18279 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
18280 * builtins.c (expand_builtin): Remove check if
18281 EH_RETURN_DATA_REGNO is defined.
18282 * df-scan.c (df_bb_refs_collect): Likewise.
18283 (df_get_exit_block_use_set): Likewise.
18284 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
18285 * ira-lives.c (process_bb_node_lives): Likewise.
18286 * lra-lives.c (process_bb_lives): Likewise.
18288 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
18290 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
18291 FIRST_PSEUDO_REG): New.
18292 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
18293 (ARG_POINTER_REGNUM): Define to ARGP_REG.
18294 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
18295 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
18296 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
18297 (FIRST_INT_REG): New.
18298 (LAST_INT_REG): New.
18299 (FIRST_*_REG): Define using *_REG.
18300 (LAST_*_REG): Ditto.
18301 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
18302 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
18303 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
18305 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18307 * expmed.c: (synth_mult): Only assume overlapping
18308 shift with previous steps in alg_sub_t_m2 case.
18310 2015-04-21 Richard Biener <rguenther@suse.de>
18312 PR tree-optimization/65650
18313 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
18314 transitions involving copies.
18315 (set_lattice_value): Adjust for copy lattice state.
18316 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
18317 if that doesn't dominate the merge point.
18318 (bit_value_unop): Adjust what we treat as varying mask.
18319 (bit_value_binop): Likewise.
18320 (bit_value_assume_aligned): Likewise.
18321 (evaluate_stmt): When we simplified to a SSA name record a copy
18322 instead of dropping to varying.
18323 (visit_assignment): Simplify.
18325 * gimple-match.h (gimple_simplify): Add another callback.
18326 * gimple-fold.c (fold_stmt_1): Adjust caller.
18327 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
18328 for the 2nd callback.
18329 * gimple-match-head.c (gimple_simplify): Add a callback that is
18330 used to valueize the stmt operands and use it that way.
18332 2015-04-21 Richard Biener <rguenther@suse.de>
18334 PR tree-optimization/65788
18335 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
18337 2015-04-21 Richard Biener <rguenther@suse.de>
18339 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
18340 vec_construct cost by vec_stmt_cost.
18342 2015-04-21 Richard Biener <rguenther@suse.de>
18344 * cfghooks.h (create_basic_block): Replace with two overloads
18345 for RTL and GIMPLE.
18346 (split_block): Likewise.
18347 * cfghooks.c (split_block): Rename to ...
18348 (split_block_1): ... this.
18349 (split_block): Add two type-safe overloads for RTL and GIMPLE.
18350 (split_block_after_labels): Call split_block_1.
18351 (create_basic_block): Rename to ...
18352 (create_basic_block_1): ... this.
18353 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
18354 (create_empty_bb): Call create_basic_block_1.
18355 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
18356 split_block_after_labels.
18357 * omp-low.c (expand_parallel_call): Likewise.
18358 (expand_omp_target): Likewise.
18359 (simd_clone_adjust): Likewise.
18360 * tree-chkp.c (chkp_get_entry_block): Likewise.
18361 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
18362 create_basic_block overload.
18363 (cgraph_node::expand_thunk): Likewise.
18364 * tree-cfg.c (make_blocks): Likewise.
18365 (handle_abnormal_edges): Likewise.
18366 * tree-inline.c (copy_bb): Likewise.
18368 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18370 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
18372 (*xor_one_cmplsidi3_ze): Likewise.
18374 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
18376 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
18377 use df_remove_problem rather than manually removing problems, leaving
18378 holes in df->problems_in_order[].
18380 2015-04-21 Tom de Vries <tom@codesourcery.com>
18382 PR tree-optimization/65802
18383 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
18385 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18387 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
18389 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
18390 at '.'. Assert that there's enough space for everything.
18392 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
18394 PR tree-optimization/64950
18396 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
18399 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
18402 2015-04-20 Shiva Chen <shiva0217@gmail.com>
18404 PR rtl-optimization/64916
18405 * cfgcleanup.c (values_equal_p): New function.
18406 (can_replace_by): Use it.
18408 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
18411 * doc/invoke.texi ([-Wnarrowing]): Update.
18413 2015-04-20 Jeff Law <law@redhat.com>
18415 PR tree-optimization/65658
18416 * tree-ssa-threadupdate.c (redirection_block_p): Remove
18417 redundant test for GIMPLE_ASSIGN in last change.
18419 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
18421 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
18422 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
18423 (legitimize_tls_address): Ditto.
18424 (ix86_expand_move): Ditto.
18425 (ix86_expand_binary_operator): Remove reload_in_progress checks.
18426 (ix86_expand_unary_operator): Ditto.
18427 * config/i386/predicates.md (index_register_operand): Ditto.
18429 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
18431 * reorg.c (try_merge_delay_insns): Improve correctness checking
18432 for targets with multiple delay slots.
18434 2015-04-20 Jeff Law <law@redhat.com>
18436 PR tree-optimization/65658
18437 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
18440 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
18442 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
18443 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
18446 2015-04-20 Jakub Jelinek <jakub@redhat.com>
18449 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
18451 2015-04-20 Richard Biener <rguenther@suse.de>
18453 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
18454 * gimple-fold.c (gimple_build_valueize): New function.
18455 (gimple_build): Always use gimple_build_valueize as valueize hook.
18457 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
18460 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
18461 and overwrite variable parts if <= 1/2 the elements are variable.
18463 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
18465 PR rtl-optimization/65805
18466 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
18467 Don't use difference of offset and previous offset if
18468 update_sp_offset is non-zero.
18469 (eliminate_regs_in_insn): Ditto.
18470 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
18471 lra_eliminate_regs_1 call.
18472 * lra-constraints.c (get_equiv_with_elimination): Ditto.
18474 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
18476 * hash-table.h: Remove version of hash_table that stored value_type *.
18477 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
18478 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
18479 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
18480 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
18481 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
18482 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
18483 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
18484 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
18485 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
18486 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
18487 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
18488 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
18489 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
18490 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
18491 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
18492 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
18494 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18495 Jakub Jelinek <jakub@redhat.com>
18498 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
18499 subsequent SH_NONE operand does not overwrite an existing *special
18501 (adjust_extract): Handle case where a vec_extract operation is
18502 wrapped in a PARALLEL.
18504 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
18507 * config/i386/i386.c (ix86_binds_local_p): Define only if
18508 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
18510 2015-04-17 Jeff Law <law@redhat.com>
18512 PR tree-optimization/47679
18513 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
18514 * tree-ssa-scopedtables.c: New file.
18515 * tree-ssa-scopedtables.h: New file.
18516 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
18517 (const_and_copies): Change name/type.
18518 (record_const_or_copy): Move into tree-ssa-scopedtables.c
18519 (record_const_or_copy_1): Similarly.
18520 (restore_vars_to_original_value): Similarly.
18521 (pass_dominator::execute): Create and destroy const_and_copies table.
18522 (thread_across_edge): Update passing of const_and_copies.
18523 (record_temporary_equivalence): Use method calls rather than
18524 manipulating const_and_copies directly.
18525 (record_equality, cprop_into_successor_phis): Similarly.
18526 (dom_opt_dom_walker::before_dom_children): Similarly.
18527 (dom_opt_dom_walker::after_dom_children): Similarly.
18528 (eliminate_redundant_computations): Similarly.
18529 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
18530 (record_temporary_equivalence): Likewise.
18531 (invalidate_equivalences): Likewise.
18532 (record_temporary_equivalences_from_phis): Update due to type
18533 change of const_and_copies. Use method calls rather than
18534 manipulating the stack directly.
18535 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
18536 (thread_through_normal_block, thread_across_edge): Likewise.
18537 (thread_across_edge): Likewise.
18538 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
18539 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
18541 (identify_jump_threads): Update due to type change of equiv_stack.
18542 (finalize_jump_threads): Delete the equiv_stack when complete.
18544 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
18546 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
18547 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
18548 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
18550 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
18553 * config.gcc: Exit with a comment when we do not have a major version
18554 number for the FreeBSD target.
18556 2015-04-17 Jakub Jelinek <jakub@redhat.com>
18559 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
18560 maybe_allows_mem bitfields.
18561 (maybe_allows_none_start, maybe_allows_none_end,
18562 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
18563 maybe_allows_mem_end): New variables.
18564 (compute_maybe_allows): New function.
18565 (add_constraint): Use it to initialize maybe_allows_reg and
18566 maybe_allows_mem fields.
18567 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
18568 is_address constraints such that those that allow neither mem nor
18569 reg come first, then those that only allow reg but not mem, then
18570 those that only allow mem but not reg, then the rest.
18571 (write_allows_reg_mem_function): New function.
18572 (write_tm_preds_h): Call it.
18573 * stmt.c (parse_output_constraint, parse_input_constraint): Use
18574 the generated insn_extra_constraint_allows_reg_mem function
18575 instead of always setting *allows_reg = true; *allows_mem = true;
18576 for unknown extra constraints.
18578 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
18581 * output.h (default_binds_local_p_3): New.
18582 * varasm.c (default_binds_local_p_3): Make it public. Take an
18583 argument to indicate if common symbol may be local. If common
18584 symbol may be local, treat non-external variable as defined
18586 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
18587 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
18588 * config/i386/i386.c (ix86_binds_local_p): New.
18589 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
18590 ix86_binds_local_p.
18592 2015-04-17 Jakub Jelinek <jakub@redhat.com>
18595 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
18596 trying mem_loc_descriptor on XEXP (rtl, 0).
18598 2015-04-17 Martin Liska <mliska@suse.cz>
18600 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
18601 Release symbol_compare_collection.
18602 * ipa-reference.c: Add TODO that a vector should be released.
18604 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
18607 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
18608 to new AVR-LibC file layout (bug #44574).
18609 (*avrlibc_devicelib): Same.
18610 * config/avr/avr-mcus.def: Adjust comments.
18611 * config/avr/avr.opt (nodevicelib): Adjust help.
18613 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
18615 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
18617 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
18620 * gimplify.c (gimplify_init_constructor): Always emit a
18621 side-effecting constructor.
18623 2015-04-17 Tom de Vries <tom@codesourcery.com>
18625 PR tree-optimization/64950
18626 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
18627 in cfun->curr_properties.
18628 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
18629 if we generate an IFN_VA_ARG.
18630 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
18631 function if PROP_gimple_lva is not set in src function.
18633 2015-04-17 Tom de Vries <tom@codesourcery.com>
18634 Michael Matz <matz@suse.de>
18636 PR tree-optimization/64950
18637 * gimple-iterator.c (update_modified_stmts): Remove static.
18638 * gimple-iterator.h (update_modified_stmts): Declare.
18639 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
18640 (gimplify_va_arg_internal): New function.
18641 (gimplify_va_arg_expr): Use IFN_VA_ARG.
18642 * gimplify.h (gimplify_va_arg_internal): Declare.
18643 * internal-fn.c (expand_VA_ARG): New unreachable function.
18644 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
18645 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
18646 (expand_ifn_va_arg): New function.
18647 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
18648 (pass_stdarg::execute): Call expand_ifn_va_arg.
18649 (pass_data_lower_vaarg): New pass_data.
18650 (pass_lower_vaarg): New gimple_opt_pass.
18651 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
18652 (make_pass_lower_vaarg): New function.
18653 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
18654 properties_required field.
18655 * passes.def (all_passes): Add pass_lower_vaarg.
18656 * tree-pass.h (PROP_gimple_lva): Add define.
18657 (make_pass_lower_vaarg): Declare.
18659 2015-04-17 Tom de Vries <tom@codesourcery.com>
18661 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
18662 * calls.c (call_expr_flags): Same.
18664 2015-04-17 Tom de Vries <tom@codesourcery.com>
18666 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
18667 (pass_stdarg::execute): ... here.
18669 2015-04-17 Tom de Vries <tom@codesourcery.com>
18670 Michael Matz <matz@suse.de>
18672 * tree-cfg.c (make_blocks_1): Factor out of ...
18673 (make_blocks): ... here.
18674 (make_edges_bb): Factor out of ...
18675 (make_edges): ... here.
18676 (gimple_find_sub_bbs): New function.
18677 * tree-cfg.h (gimple_find_sub_bbs): Declare.
18679 2015-04-17 Tom de Vries <tom@codesourcery.com>
18681 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
18683 2015-04-17 Yury Gribov <y.gribov@samsung.com>
18685 * asan.c (set_sanitized_sections): New function.
18686 (section_sanitized_p): Ditto.
18687 (asan_protect_global): Optionally sanitize user-defined
18689 * asan.h (set_sanitized_sections): Declare new function.
18690 * common.opt (fsanitize-sections): New option.
18691 * doc/invoke.texi (-fsanitize-sections): Document new option.
18692 * opts-global.c (handle_common_deferred_options): Handle new
18695 2015-04-17 Jakub Jelinek <jakub@redhat.com>
18698 * dwarf2out.c (loc_list_from_tree): Return NULL
18699 for DEBUG_EXPR_DECL.
18701 2015-04-17 Christian Bruel <christian.bruel@st.com>
18703 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
18706 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18708 * ira-color.c (setup_left_conflict_sizes_p): Do not process
18709 node itself when computing left conflict subnode size.
18711 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
18713 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
18714 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
18715 *fop_<mode>_1_sse using enabled attribute. Use
18716 register_mixssei387nonimm_operand operand 1 predicate. Change
18717 alternative 3 constraints from "x" to "v".
18719 2015-04-16 Richard Biener <rguenther@suse.de>
18721 PR tree-optimization/65774
18722 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
18723 bit-value tracking on.
18725 2015-04-16 Richard Biener <rguenther@suse.de>
18727 PR tree-optimization/64277
18728 * tree-vrp.c (check_array_ref): Fix anti-range handling,
18729 simplify upper bound handling.
18730 (search_for_addr_array): Simplify.
18731 (check_array_bounds): Handle ADDR_EXPRs here.
18732 (check_all_array_refs): Simplify.
18734 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
18736 * config/i386/i386.c (print_reg): Rewrite function.
18738 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18740 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
18741 Invert the condition.
18743 2015-04-16 Renlin Li <renlin.li@arm.com>
18745 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
18746 simplifications for UNSIGNED_FLOAT.
18748 2015-04-16 Nick Clifton <nickc@redhat.com>
18750 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
18752 (enum rl78_cpu_type): New.
18753 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
18754 (umulhi3_shift_virt): Remove m constraint from operand 1.
18755 (umulqihi3_virt): Likewise.
18756 * config/rl78/rl78.c (rl78_option_override): Add code to process
18757 -mcpu and -mmul options.
18758 (rl78_alloc_physical_registers): Add code to handle divhi and
18759 divsi valloc attributes.
18760 (set_origin): Likewise.
18761 * config/rl78/rl78.h (RL78_MUL_G14): Define.
18762 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
18763 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
18765 (ASM_SPEC): Pass -mcpu on to assembler.
18766 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
18767 (mulqi3_rl78): Likewise.
18768 (mulhi3_g13): Likewise.
18769 (mulhi3): Generate the G13 or G14 versions of the insn directly.
18770 (mulsi3): Likewise.
18771 (mulhi3_g14): Add clobbers of AX and BC.
18772 (mulsi3_g14): Likewise.
18773 (mulsi3_g13): Likewise.
18774 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
18775 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
18776 * config/rl78/rl78.opt (mmul): Initialise value to
18778 (mcpu): New option.
18779 (m13, m14, mrl78): New option aliases.
18780 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
18781 (MULTILIB_DIRNAMES): Add g13 and g14.
18782 * doc/invoke.texi: Document -mcpu and -mmul options.
18784 2015-04-16 Richard Biener <rguenther@suse.de>
18786 * tree-ssa-ccp.c (likely_value): See if we have operands that
18787 are marked as never simulate again and return CONSTANT in this
18789 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
18790 not have any operands that will be simulated again as
18791 not being simulated again.
18793 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
18795 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
18796 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
18797 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
18799 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
18801 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
18802 *float<SWI48:mode><MODEF:mode>2_sse.
18803 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
18805 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
18808 2015-04-15 Tom de Vries <tom@codesourcery.com>
18811 * function.c (push_dummy_function): New function.
18812 (init_dummy_function_start): Use push_dummy_function.
18813 (pop_dummy_function): New function. Factored out of ...
18814 (expand_dummy_function_end): ... here.
18815 * function.h (push_dummy_function, pop_dummy_function): Declare.
18816 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
18817 pop_dummy_function.
18818 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
18820 2015-04-15 Jeff Law <law@redhat.com>
18822 PR tree-optimization/47679
18823 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
18824 need for forward declaration in upcoming changes.
18825 (record_conditions, record_edge_info): Likewise.
18827 PR rtl-optimization/42522
18828 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
18829 SIGN_EXTRACT as a whole object rather than simplifying
18832 2015-04-15 Jakub Jelinek <jakub@redhat.com>
18835 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
18836 and GIMPLE_PREDICT use break instead of return true. For
18837 GIMPLE_EH_DISPATCH, compare dispatch region.
18839 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
18841 * doc/extend.texi (__sync Builtins): Simplify some text. Update
18842 details about the implementation. Make clear preference for
18843 __atomic builtins. Reduce possibility of future change.
18845 2015-04-15 Nick Clifton <nickc@redhat.com>
18847 * config/rx/rx.opt (mallow-string-insns): New option.
18848 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
18849 builtin if string instructions are denied.
18850 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
18851 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
18853 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
18854 * config/rx/rx.md (movstr): Enable pattern only if string
18855 instructions are allowed.
18856 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
18857 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
18858 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
18859 (MULTILIB_DIRNAMES): Add no-strings.
18860 * doc/invoke.texi: Document -mno-allow-string-insns.
18862 2015-04-15 Alan Modra <amodra@gmail.com>
18866 PR middle-end/36043
18867 * calls.c (load_register_parameters): Don't load past end of
18868 mem unless suitably aligned.
18870 2015-04-15 Nick Clifton <nickc@redhat.com>
18872 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
18873 decrement instruction as being frame related.
18874 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
18876 If zero extending a function address enclose the operation in
18878 (rl78_preferred_reload_class): New function.
18879 (TARGET_PREFERRED_RELOAD_CLASS): Define.
18880 * config/rl78/rl78.md: Remove useless constraints in expanders.
18881 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
18882 (mulhi3_rl78): Likewise.
18883 (mulhi3_g13): Likewise.
18884 (mulsi3_rl78): Likewise.
18885 (es_addr): Move to before the multiply patterns.
18887 2015-04-15 Alan Modra <amodra@gmail.com>
18889 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
18890 and sequence_stack. Add seq.
18891 (seq_stack): Delete.
18892 * function.c (prepare_function_start): Don't access x_last_insn.
18893 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
18894 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
18895 * emit_rtl.c (start_sequence, push_topmost_sequence,
18896 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
18897 sequence accessors.
18898 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
18899 remove_insn): Likewise. Simplify.
18900 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
18901 and pop_topmost_sequence.
18902 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
18904 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
18906 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
18909 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
18912 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
18914 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
18915 (LEGACY_INT_REGNO_P): Ditto.
18916 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
18917 (ANY_MASK_REG_P): Remove.
18918 (BND_REG_P): Rename from ANY_BND_REG_P.
18919 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
18920 legacy integer registers. Do not handle MMX_REG_P in a special way.
18921 Merge 64byte and 32byte SSE handling.
18923 2015-04-14 Nick Clifton <nickc@redhat.com>
18925 * expr.c (expand_assignment): Force an address offset computation
18926 into a register before changing its mode.
18927 (expand_expr_real_1): Likewise.
18929 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
18931 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
18932 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
18933 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
18934 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
18935 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
18936 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
18937 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
18938 and __aarch64_vget_lane_any.
18940 2015-04-14 Jakub Jelinek <jakub@redhat.com>
18942 PR rtl-optimization/65761
18943 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
18944 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
18946 2015-04-14 Richard Biener <rguenther@suse.de>
18948 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
18949 (graphite_can_represent_scev): Use POINTER_TYPE_P.
18951 2015-04-14 Richard Biener <rguenther@suse.de>
18953 PR tree-optimization/65758
18954 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
18956 (ccp_lattice_meet): Likewise.
18957 (bit_value_unop): Likewise.
18958 (bit_value_binop): Likewise.
18959 (bit_value_assume_aligned): Likewise.
18961 2015-04-14 Christian Bruel <christian.bruel@st.com>
18963 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
18966 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
18968 PR tree-optimization/63387
18969 * match.pd ((x unord x) | (y unord y) -> (x unord y),
18970 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
18972 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
18974 * config/i386/predicates.md (any_QIreg_operand): Rename from
18975 q_regs_operand. Do not process subregs.
18976 (QIreg_operand): Use QI_REGNO_P predicate.
18977 (ext_QIreg_operand): Ditto.
18978 (ext_register_operand): Ditto.
18979 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
18980 (AND splitters): Ditto.
18981 (AND with -65536 splitter): Add SWI48 mode for operand 0.
18982 (AND with -256 splitter): Use any_QIreg_operand predicate and
18983 SWI248 mode for operand 0.
18984 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
18985 mode for operand 0.
18986 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
18988 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
18990 * doc/plugins.texi: Rewrite first introductory paragraph.
18992 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
18994 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
18995 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
18997 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
18999 * ipa-profie.c (ipa_profile): Check number of parameters
19000 and possible polymorphic call targets before
19003 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
19005 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
19006 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
19008 2015-04-13 Richard Biener <rguenther@suse.de>
19010 PR tree-optimization/65204
19011 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
19012 takens for bit-CCP.
19014 2015-04-13 Richard Biener <rguenther@suse.de>
19017 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
19018 and cond_not_taken_branch_cost to 4 and 2.
19019 (bdver2_cost): Likewise.
19020 (bdver3_cost): Likewise.
19021 (bdver4_cost): Likewise.
19023 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
19025 * hash-table.h (hash_table constructor): Add mem stats.
19026 (alloc_entries): Likewise.
19028 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
19030 * ipa-cp.c (ipcp_driver): Relase prev_edge.
19031 * passes.c (execute_one_pass): Only add transform if pass has one.
19033 2015-04-12 Joseph Myers <joseph@codesourcery.com>
19035 * config/i386/i386.c (ix86_option_override_internal): Don't set
19036 -fprefetch-loop-arrays if optimizing for size.
19038 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
19039 Gerald Pfeifer <gerald@pfeifer.com>
19041 * doc/contrib.texi (Contributors): Add Martin Jambor and
19044 2015-04-12 Jakub Jelinek <jakub@redhat.com>
19046 * BASE-VER: Set to 6.0.0.
19048 PR tree-optimization/65747
19049 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
19050 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
19052 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
19054 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
19055 sentence. Improve grammar.
19057 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
19059 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
19061 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
19064 * ipa-inline-transform.c (speculation_removed): Remove static var.
19065 (check_speculations): New function.
19066 (clone_inlined_nodes): Do not check spculations.
19067 (inline_call): Call check_speculations.
19068 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
19069 consider non-invariants.
19071 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
19072 Martin Liska <mliska@suse.cz>
19075 * ipa-icf.c (sem_item::compare_cgraph_references): function and
19076 variable can not match.
19077 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
19078 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
19080 2015-04-11 Jakub Jelinek <jakub@redhat.com>
19082 PR tree-optimization/65735
19083 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
19084 Remove visited_phis argument, add visited_bbs, avoid recursing into the
19085 same bb rather than just into the same phi node.
19086 (thread_through_normal_block): Adjust caller.
19088 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
19090 * doc/contrib.texi (Contributors): Add Ira Rosen.
19092 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
19094 * gcov.c (find_source): Fix miswording in error message.
19095 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
19096 (ix86_expand_sse_comi_round): Fix typo in error message.
19098 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
19100 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
19102 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
19104 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
19106 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
19109 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
19110 Print bad_spills_num and insn_pseudos_num.
19112 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19115 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
19116 when creating +1 values for SImode.
19118 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
19121 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
19124 2015-04-10 Jakub Jelinek <jakub@redhat.com>
19125 Iain Sandoe <iain@codesourcery.com>
19128 * configure: Regenerate.
19130 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
19133 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
19135 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
19137 * doc/contrib.texi (Contributors): Add John Marino.
19139 2015-04-09 Jakub Jelinek <jakub@redhat.com>
19141 PR tree-optimization/65709
19142 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
19143 TREE_TYPE (TREE_TYPE (t)).
19145 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
19148 * lra-int.h (lra_bad_spill_regno_start): New.
19149 * lra.c (lra_bad_spill_regno_start): New.
19150 (lra): Set up lra_bad_spill_regno_start. Set up
19151 lra_constraint_new_regno_start unconditionally.
19152 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
19155 2015-04-09 Marek Polacek <polacek@redhat.com>
19156 Jakub Jelinek <jakub@redhat.com>
19158 PR middle-end/65554
19159 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
19160 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
19163 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
19165 PR rtl-optimization/65693
19166 * combine.c (is_parallel_of_n_reg_sets): Move outside of
19169 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
19172 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
19173 device specs file if "device-specs%s" didn't resolve to a path.
19175 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
19178 * config/i386/i386.c (fixup_modeless_constant): New.
19179 (ix86_expand_args_builtin): Fixup modeless constant operand.
19180 (ix86_expand_round_builtin): Ditto.
19181 (ix86_expand_special_args_builtin): Ditto.
19182 (ix86_expand_builtin): Ditto.
19184 2015-04-09 Jakub Jelinek <jakub@redhat.com>
19187 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
19188 any pow2 integer in between 2 and 0x80000000U inclusive.
19190 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
19192 PR rtl-optimization/65693
19193 * combine.c (is_parallel_of_n_reg_sets): Change first argument
19194 from an rtx_insn * to an rtx.
19195 (try_combine): Adjust both callers. Use it once more.
19197 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
19199 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
19200 (chkp_make_static_const_bounds): Search existing
19201 symbol by assembler name. Use make_decl_one_only.
19202 (chkp_get_zero_bounds_var): Remove node search which
19203 is now performed in chkp_make_static_const_bounds.
19204 (chkp_get_none_bounds_var): Likewise.
19206 2015-04-08 Michael Witten <mfwitten@gmail.com>
19208 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
19211 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19213 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
19215 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
19217 * doc/extend.texi (__sync Builtins): Fix grammar.
19219 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19221 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
19223 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19225 * varasm.c (emit_local): Move definition of align.
19227 2015-04-08 Julian Brown <julian@codesourcery.com>
19229 * config/nvptx/mkoffload.c (process): Support variable mapping.
19231 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
19233 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
19235 (alpha_write_one_linkage): Correct typo.
19237 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
19239 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
19241 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
19243 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
19245 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
19247 * tree-chkp.h (chkp_insert_retbnd_call): New.
19248 * tree-chkp.c (chkp_insert_retbnd_call): New.
19249 * ipa-split.c (insert_bndret_call_after): Remove.
19250 (split_function): Use chkp_insert_retbnd_call.
19251 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
19252 bounds for instrumented functions.
19254 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
19257 * calls.c (initialize_argument_information): When producing tail
19258 call also turn SSA_NAMES passed by references to original PARM_DECLs
19260 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
19263 * lra-remat.c (do_remat): Process input and non-input insn
19264 registers separately.
19266 2015-04-07 Jakub Jelinek <jakub@redhat.com>
19269 * valtrack.c (debug_lowpart_subreg): New function.
19270 (dead_debug_insert_temp): Use it.
19272 PR middle-end/65680
19273 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
19274 into signed HOST_WIDE_INT the same as negative bit_offset.
19276 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
19278 * ipa-comdats.c (ipa_comdats): Visit all thunks
19279 to set proper comdat group.
19281 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19284 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
19285 on constants for NEON VSTRUCT modes.
19287 2015-04-07 Jakub Jelinek <jakub@redhat.com>
19288 Iain Sandoe <iain@codesourcery.com>
19291 * configure: Regenerate.
19293 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
19296 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
19297 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
19298 that LFD is used to load double constants instead of LFS. Add
19299 defaults for all costs structures. Add comments for missing
19300 initialization fields.
19301 (size32_cost): Likewise.
19302 (size64_cost): Likewise.
19303 (rs64a_cost): Likewise.
19304 (mpccore_cost): Likewise.
19305 (ppc403_cost): Likewise.
19306 (ppc405_cost): Likewise.
19307 (ppc440_cost): Likewise.
19308 (ppc476_cost): Likewise.
19309 (ppc601_cost): Likewise.
19310 (ppc603_cost): Likewise.
19311 (ppc604_cost): Likewise.
19312 (ppc604e_cost): Likewise.
19313 (ppc620_cost): Likewise.
19314 (ppc630_cost): Likewise.
19315 (ppccell_cost): Likewise.
19316 (ppc750_cost): Likewise.
19317 (ppc7450_cost): Likewise.
19318 (ppc8540_cost): Likewise.
19319 (ppce300c2c3_cost): Likewise.
19320 (ppce500mc_cost): Likewise.
19321 (ppce500mc64_cost): Likewise.
19322 (ppce5500_cost): Likewise.
19323 (ppce6500_cost): Likewise.
19324 (titan_cost): Likewise.
19325 (power4_cost): Likewise.
19326 (power6_cost): Likewise.
19327 (power7_cost): Likewise.
19328 (power8_cost): Likewise.
19329 (ppca2_cost): Likewise.
19330 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
19332 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
19333 instead of XXLOR to copy SFmode to clear out dirty bits created
19334 when SFmode denormals are generated.
19335 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
19336 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
19338 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
19340 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
19341 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
19342 * config/aarch64/aarch64-tune.md: Regenerate.
19344 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
19346 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
19347 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
19348 * config/arm/arm-cores.def (exynos-m1): New core.
19349 * config/arm/arm-tune.md: Regenerate.
19350 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
19351 * config/arm/bpabi.h: Likewise.
19353 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
19355 * ipa-cp (set_single_call_flag): Remove too
19356 restrictive assert.
19358 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
19360 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
19361 GOMP_offload_unregister from the destructor.
19363 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
19365 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
19366 flags for instrumentation thunk.
19367 (chkp_produce_thunks): Likewise.
19369 2015-04-05 Martin Liska <mliska@suse.cz>
19372 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
19373 has computed data structure.
19374 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
19376 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
19378 * invoke.texi (inline-unit-growth): Increase growth to 20%
19379 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
19381 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
19384 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
19386 (lra_rematerialization_iter): New.
19387 * lra.c (lra): Initialize lra_rematerialization_iter.
19388 Stop updating lra_constraint_new_regno_start after switching of
19389 inheritance and rematerialization.
19390 * lra-remat.c (lra_rematerialization_iter): New.
19391 (lra_remat): Add printing pass iteration. Do rematerialization
19392 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
19394 2015-04-04 Richard Biener <rguenther@suse.de>
19396 PR tree-optimization/64909
19397 PR tree-optimization/65660
19398 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
19399 to take a cost vector for scalar iteration cost.
19400 (vect_get_single_scalar_iteration_cost): Likewise.
19401 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
19402 Compute the scalar iteration cost into a cost vector.
19403 (vect_get_known_peeling_cost): Use the scalar cost vector to
19404 account for the cost of the peeled iterations.
19405 (vect_estimate_min_profitable_iters): Likewise.
19406 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
19409 2015-04-04 Alan Modra <amodra@gmail.com>
19413 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
19414 0.0 constant unless TARGET_VSX.
19415 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
19418 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
19421 * ipa-inline-transform.c (inline_call): Skip sanity check to work
19424 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
19427 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
19428 speculative indirect edges to avoid ordering issue.
19430 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
19433 * ipa-inline.c (edge_badness): Add combined size to the denominator.
19435 2015-04-03 Jakub Jelinek <jakub@redhat.com>
19437 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
19438 TYPE_ARTIFICIAL on the .omp_data* types.
19440 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
19442 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
19443 instrumentation thunks.
19445 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
19447 * config/i386/i386.c (ix86_expand_call): Avoid nested
19448 PARALLEL in returned call value.
19450 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
19452 * lto-cgraph.c (input_cgraph_1): Always link instrumented
19453 assembler name with original one.
19455 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
19457 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
19459 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
19461 Revert parts of r216820.
19462 * config/i386/i386.md (movqi_internal): Correct type calculation
19463 for alternatives 3 and 5.
19465 2015-04-02 Jakub Jelinek <jakub@redhat.com>
19467 PR preprocessor/61977
19468 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
19469 predefine __vector/__bool/__pixel macros nor context sensitive
19470 macros for CLK_ASM.
19471 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
19473 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
19475 * config/pa/pa.c (pa_output_move_double): Directly handle register
19476 indexed memory operand. Simplify handling of scaled register indexed
19479 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
19482 * config/i386/linux-common.h (MPX_SPEC): New.
19483 (CHKP_SPEC): Add MPX_SPEC.
19484 * doc/invoke.texi (-fcheck-pointer-boudns): Document
19485 possible issues with '-z bndplt' support in linker.
19487 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
19489 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
19490 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
19491 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
19492 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
19493 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
19495 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
19497 * config/i386/sync.md (UNSPEC_MOVA): Remove.
19498 (atomic_load<mode>): Change operand 0 predicate to
19499 nonimmediate_operand and fix up the destination when needed.
19501 (atomic_loaddi_fpu): Use UNSPEC_LDA.
19502 (atomic_store<mode>): Change operand 1 predicate to
19503 nonimmendate_operand and move the source to register when needed.
19505 (atomic_store<mode>_1): Use UNSPEC_STA.
19506 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
19507 Fix moves from memory operand. Use UNSPEC_STA.
19509 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
19511 * expmed.c (strict_volatile_bitfield_p): Check that the access will
19512 not cross a MODESIZE boundary.
19513 (store_bit_field, extract_bit_field): Added assertions in the
19514 strict volatile bitfields code path.
19516 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
19519 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
19520 Increase args array size by one to avoid buffer overflow.
19522 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
19524 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
19526 * ipa-inline.c (edge_badness): Add wrapper penalty.
19527 (sum_callers): Move up.
19528 (inline_small_functions): Set single_caller.
19529 * ipa-inline.h (inline_summary): Add single_caller.
19530 * ipa-split.c (split_function): Set split_part.
19531 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
19532 * cgraph.h (cgraph_node): Add split_part.
19534 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
19537 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
19538 Do not split operands 0 and operands 2 to halfmode.
19539 (atomic_compare_and_swap<mode>): Update for
19540 atomic_compare_and_swap<dwi>_doubleword changes.
19542 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
19544 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
19545 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
19546 no caching is done.
19548 2015-03-31 Martin Liska <mliska@suse.cz>
19551 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
19552 has already filled up function summary.
19553 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
19555 2015-03-31 Richard Biener <rguenther@suse.de>
19557 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
19560 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
19562 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
19564 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
19565 (s390_asm_output_function_label): Adapt to new signature of
19566 s390_function_num_hotpatch_hw
19567 Optimise the code generating assembler output.
19568 Add comments to assembler file.
19570 2015-03-31 Richard Biener <rguenther@suse.de>
19572 PR middle-end/65626
19573 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
19574 of the noreturn call so it is last and cleanup_control_flow_bb
19575 can do the CFG part.
19577 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
19580 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
19581 same_comdat_group for external symbols.
19582 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
19583 infinite same_comdat_group traversal loop.
19585 2015-03-31 Jakub Jelinek <jakub@redhat.com>
19588 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
19589 automatically to $headers.
19591 2015-03-30 Jakub Jelinek <jakub@redhat.com>
19594 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
19595 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
19597 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
19599 * ipa-prop.c (param_type_may_change_p): Likewise.
19600 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
19601 (remove_unused_scope_block_p): Add in_ctor_dtor_block
19602 argument. Before inlining, preserve
19603 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
19604 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
19606 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
19608 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
19611 * ipa-inline.c (edge_badness): Base denominator on callee's
19614 2015-03-27 Martin Jambor <mjambor@suse.cz>
19617 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
19618 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
19619 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
19620 node_calling_single_call.
19621 * ipa-cp.c (count_callers): New function.
19622 (set_single_call_flag): Likewise.
19623 (initialize_node_lattices): Count callers and set single_flag_call if
19625 (incorporate_penalties): New function.
19626 (good_cloning_opportunity_p): Use it, dump new flags.
19627 (propagate_constants_topo): Set node_within_scc flag if appropriate.
19628 * doc/invoke.texi (ipa-cp-recursion-penalty,
19629 ipa-cp-single-call-pentalty): Document.
19631 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
19634 * symtab.c (symtab_node::get_partitioning_class): Register vars
19636 * varpool.c (symbol_table::output_variables) Do not assemble unefined
19637 decls for non-symbols.
19639 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
19642 * output.h (default_binds_local_p_2): New.
19643 * varasm.c (default_binds_local_p_2): Renamed to ...
19644 (default_binds_local_p_3): This. Don't return true on protected
19645 data symbol if protected data may be external.
19646 (default_binds_local_p): Use default_binds_local_p_3.
19647 (default_binds_local_p_1): Likewise.
19648 (default_binds_local_p_2): New.
19649 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
19650 default_binds_local_p_2 if TARGET_MACHO is undefined.
19652 2015-03-27 Jakub Jelinek <jakub@redhat.com>
19655 * config/i386/i386.c (legitimize_pic_address): If base
19656 is SYMBOL_REF or LABEL_REF using %rip addressing, force
19657 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
19659 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
19662 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
19665 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
19668 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
19669 of optimized out indirect call.
19670 (redirect_to_unreachable): Always build symbol table node for
19671 BUILT_IN_UNREACHABLE
19673 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
19676 * ira-costs.c (record_reg_classes): Process all constraint string
19679 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
19681 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
19685 * config/c6x/constraints.md (S3): New constraint.
19686 * config/c6x/c6x.md (real_jump): Use it.
19688 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19690 PR middle-end/65595
19691 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
19692 do redirection if the call is not optimized out.
19694 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
19697 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
19698 (fchkp-check-incomplete-type): Add LTO.
19699 (fchkp-zero-input-bounds-for-main): Likewise.
19700 (fchkp-first-field-has-own-bounds): Likewise.
19701 (fchkp-narrow-bounds): Likewise.
19702 (fchkp-narrow-to-innermost-array): Likewise.
19703 (fchkp-use-static-bounds): Likewise.
19704 (fchkp-use-static-const-bounds): Likewise.
19705 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
19707 2015-03-27 Marek Polacek <polacek@redhat.com>
19709 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
19711 2015-03-27 Marek Polacek <polacek@redhat.com>
19714 * ubsan.c (ubsan_create_edge): New function.
19715 (instrument_bool_enum_load): Call it.
19716 (instrument_nonnull_arg): Likewise.
19717 (instrument_nonnull_return): Likewise.
19718 (instrument_object_size): Likewise.
19720 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19722 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
19725 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19728 * lto-streamer.h (class lto_location_cache): New.
19729 (struct data_in): Add location_cache.
19730 (lto_input_location): Update prototype.
19731 (stream_input_location_now): New.
19732 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
19733 pointer to location.
19734 (stream_input_location): Update.
19735 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
19736 (warn_odr): Apply location cache before warning.
19737 (lto_input_location): Update prototype.
19738 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
19739 Use stream_input_location_now.
19740 * lto-streamer-in.c (lto_location_cache::current_cache): New static
19742 (lto_location_cache::cmp_loc): New function.
19743 (lto_location_cache::apply_location_cache): New function.
19744 (lto_location_cache::accept_location_cache): New function.
19745 (lto_location_cache::revert_location_cache): New function.
19746 (lto_location_cache::input_location): New function.
19747 (lto_input_location): Do location caching.
19748 (stream_input_location_now): New function.
19749 (input_eh_region, input_struct_function_base): Use
19750 stream_input_location_now.
19751 (lto_data_in_create): use new.
19752 (lto_data_in_delete): Use delete.
19753 * tree-streamer-in.c (unpack_ts_block_value_fields,
19754 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
19755 lto_input_ts_exp_tree_pointers): Update for cached location api.
19757 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19760 * passes.def: Add pass_nothrow.
19761 * ipa-pure-const.c: (pass_data_nothrow): New.
19762 (pass_nothrow): New.
19763 (pass_nothrow::execute): New.
19764 (make_pass_nothrow): New.
19765 * tree-pass.h (make_pass_nothrow): Declare.
19767 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19769 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
19770 edge to change by speculation resolution or redirection.
19771 (edge_set_predicate): Likewise.
19772 (inline_summary_t::duplicate): Likewise.
19773 (remap_edge_summaries): Likewise.
19775 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19777 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
19779 (can_inline_edge_p): Relax option matching for always inline functions.
19781 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
19784 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
19785 Check operand 4 and operand 0 for equality.
19786 (avx512f_vextract<shuffletype>32x4_1_maskm):
19787 Check operand 6 and operand 0 for equality.
19788 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
19790 (vec_extract_hi_<mode>_maskm): Ditto.
19792 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19794 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
19795 dead calls back to live.
19796 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
19798 (cgraph_node::verify_node): ... here; verify only callee edges,
19800 * cif-code.def (CILK_SPAWN): New code.
19802 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19804 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
19805 (edge_set_predicate): Use it to mark unreachable edges.
19806 (inline_summary_t::duplicate): Remove unnecesary code.
19807 (remap_edge_summaries): Likewise.
19808 (dump_inline_summary): Report contains_cilk_spawn.
19809 (compute_inline_parameters): Compute contains_cilk_spawn.
19810 (inline_read_section, inline_write_summary): Stream
19811 contains_cilk_spawn.
19812 * ipa-inline.c (can_inline_edge_p): Do not touch
19813 DECL_STRUCT_FUNCTION that may not be available;
19814 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
19815 remove check for callee_fun->can_throw_non_call_exceptions and
19816 replace it by optimization attribute check; check for flag_exceptions.
19817 * ipa-inline-transform.c (inline_call): Maintain
19818 DECL_FUNCTION_PERSONALITY
19819 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
19821 2015-03-26 Jakub Jelinek <jakub@redhat.com>
19823 PR tree-optimization/65551
19824 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
19825 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
19827 2015-03-26 Richard Biener <rguenther@suse.de>
19829 PR middle-end/65555
19830 * tree-cfg.c (verify_gimple_call): Do not require a call to
19831 have no LHS if it wasn't recognized as control altering yet.
19833 2015-03-26 Jakub Jelinek <jakub@redhat.com>
19835 PR tree-optimization/64715
19836 * passes.def: Add another instance of pass_object_sizes before ccp1.
19837 * tree-object-size.c (pass_object_sizes::execute): In
19838 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
19839 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
19840 __bos result and the computed constant. Remove redundant
19841 checks, obsoleted by gimple_call_builtin_p test.
19843 * var-tracking.c (variable_tracking_main_1): Don't track
19844 variables for targetm.no_register_allocation targets.
19846 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
19848 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
19849 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
19851 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
19854 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
19855 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
19856 0.0 is correctly setup.
19857 (extenddftf2_internal): Likewise.
19859 2015-03-25 Sebastian Pop <s.pop@samsung.com>
19861 PR tree-optimization/65177
19862 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
19864 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
19865 edges not adjacent on the path to the original code.
19867 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
19870 * doc/install.texi (Building a native compiler): Document new
19871 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
19872 configuration assumes that the host supports the linker plugin.
19874 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
19877 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
19878 chain for generated call.
19880 2015-03-25 Richard Biener <rguenther@suse.de>
19882 * passes.c (pass_manager::execute_early_local_passes): Guard
19883 execution of pass_chkp_instrumentation_passes with
19884 flag_check_pointer_bounds.
19885 (pass_chkp_instrumentation_passes::gate): Likewise.
19887 2015-03-25 Martin Liska <mliska@suse.cz>
19889 PR tree-optimization/65538
19890 * symbol-summary.h (function_summary::~function_summary):
19891 Relese memory for allocated summaries.
19892 (function_summary::release): New function.
19894 2015-03-25 Jakub Jelinek <jakub@redhat.com>
19897 * lto-streamer-out.c (DFS::worklist): New struct.
19898 (DFS::worklist_vec): New data member.
19899 (DFS::next_dfs_num): Remove.
19900 (DFS::DFS): Rewritten using worklist instead of recursion,
19901 using most of code from DFS::DFS_write_tree.
19902 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
19903 pass it to DFS_write_tree calls.
19904 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
19905 quick initial checks push it into worklist_vec and return.
19907 2015-03-25 Richard Biener <rguenther@suse.de>
19909 PR middle-end/65519
19910 * genmatch.c (expr::gen_transform): Re-write to avoid
19911 using gimple_build.
19913 2015-03-25 Bin Cheng <bin.cheng@arm.com>
19915 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
19917 2015-03-25 Bin Cheng <bin.cheng@arm.com>
19919 * config/arm/arm.opt (print_tune_info): New option.
19920 * config/arm/arm.c (arm_print_tune_info): New function.
19921 (arm_file_start): Call arm_print_tune_info.
19922 * config/arm/arm-protos.h (struct tune_params): Add comment.
19923 * doc/invoke.texi (@item -mprint-tune-info): New item.
19924 (-mtune): mention it in ARM Option Summary.
19926 2015-03-25 DJ Delorie <dj@redhat.com>
19928 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
19931 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
19932 Martin Liska <mliska@suse.cz>
19934 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
19935 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
19936 (sem_item::add_type): New function.
19937 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
19938 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
19939 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
19940 (sem_function::equals_wpa): Fix typo.
19941 * ipa-icf.h (sem_item::add_type): New function.
19942 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
19945 2015-03-24 Jakub Jelinek <jakub@redhat.com>
19947 PR tree-optimization/65533
19948 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
19949 with swapped operands, call vect_free_slp_tree on
19950 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
19953 2015-03-24 Richard Biener <rguenther@suse.de>
19955 PR middle-end/65517
19956 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
19957 for fixup if necessary.
19959 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
19961 * doc/extend.texi (Function Attributes): Add @cindex entries
19962 for all attributes and regularize their format. Delete text
19963 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
19964 information about "eightbit_data", "tiny_data", and "model"
19965 variable attributes to the Variable Attributes section. Fix
19966 some obvious typos and copy-editing issues.
19967 (Variable Attributes, Type Attributes): Likewise add/fix
19968 @cindex entries for all attributes.
19970 2015-03-23 Jakub Jelinek <jakub@redhat.com>
19973 * tree-chkp.c (chkp_build_returned_bound): Ignore
19974 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
19976 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
19979 * config/sh/predicates.md (simple_mem_operand,
19980 displacement_mem_operand): Add test for reg.
19981 (short_displacement_mem_operand): Test for displacement_mem_operand
19982 before invoking sh_disp_addr_displacement.
19983 * config/sh/constraints.md (Sdd, Sra): Simplify.
19984 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
19985 Remove redundant displacement_mem_operand tests.
19987 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
19990 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
19991 the same -mmcu=MCU more than once.
19993 2015-03-23 Jakub Jelinek <jakub@redhat.com>
19996 * ipa-devirt.c: Remove duplicate demangle.h include.
19999 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
20001 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
20002 REG_POINTER on *destptr after adjusting it for prologue size.
20005 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
20006 ultimate_alias_target ()->order ints instead of
20007 ultimate_alias_target () pointers.
20009 2015-03-23 Richard Biener <rguenther@suse.de>
20011 PR tree-optimization/65518
20012 * tree-vect-stmts.c (vectorizable_load): Reject single-element
20013 interleaving cases we generate absymal code for.
20015 2015-03-23 Richard Biener <rguenther@suse.de>
20017 PR tree-optimization/65494
20018 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
20020 (vect_analyze_slp_instance): But do that here, always and once.
20022 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20024 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
20025 adding T or multiplying by T+1 and subracting T.
20027 2015-03-22 Jeff Law <law@redhat.com>
20029 PR rtl-optimization/64317
20030 * Makefile.in (OBJS): Add gcse-common.c
20031 * gcse.c: Include gcse-common.h
20032 (struct modify_pair_s): Move structure definition to gcse-common.h
20033 (compute_transp): Move function to gcse-common.c.
20034 (canon_list_insert): Similarly.
20035 (record_last_mem_set_info): Break out some code and put it into
20036 gcse-common.c. Call into the new common code.
20037 (compute_local_properties): Pass additional arguments to compute_transp.
20038 * postreload-gcse.c: Include gcse-common.h and df.h
20039 (modify_mem_list_set, blocks_with_calls): New variables.
20040 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
20041 (get_bb_avail_insn): Pass in the expression index too.
20042 (alloc_mem): Allocate memory for the new bitmaps and lists.
20043 (free_mem): Free memory for the new bitmaps and lists.
20044 (insert_expr_in_table): Record a bitmap index for each entry we
20046 (record_last_mem_set_info): Call into common code in gcse-common.c.
20047 (get_bb_avail_insn): If no available insn was found in the requested
20048 BB. If BB has a single predecessor, see if the expression is
20049 transparent in BB and available in that single predecessor.
20050 (compute_expr_transp): New wrapper for compute_transp.
20051 (eliminate_partially_redundant_load): Pass expression's bitmap_index
20052 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
20053 (gcse_after_reload_main): If there are elements in the hash table,
20054 then compute transparency for all the elements in the hash table.
20055 * gcse-common.h: New file.
20056 * gcse-common.c: New file.
20058 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
20060 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
20062 (System Headers): Likewise.
20064 (Traditional macros): Likewise.
20065 (Invocation): Likewise.
20066 (Option Index): Likewise.
20067 * doc/cppopts.texi (-M): Likewise.
20068 (-finput-charset): Likewise.
20069 (--help): Likewise.
20070 * doc.invoke.texi (AVR Options): Likewise.
20071 (V850 Options): Likewise.
20073 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
20076 * ipa-devirt.c: Include demangle.h
20077 (odr_type_d): Add field rtti_broken.
20078 (odr_subtypes_equivalent_p): Do not require name to match.
20079 (compare_virtual_tables): Fix typo; if type already has ODR violation,
20080 bypass the tests; be ready for function referneces in vtables that are
20081 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
20082 (warn_odr): Give up for nameless types.
20083 (warn_types_mismatch): Report mismatch in mangled names;
20084 report mismatch in anonymous namespaces; look into component types to
20085 give useful error; report when mismatch is dragged in from other ODR
20087 (odr_types_equivalent_p): Match types for being polymorphic; avoid
20088 duplicated diagnostics.
20089 (add_type_duplicate): Reorder checks so more informative ones come
20090 first; fix typo; do not output "the extra base is defined here" when
20092 (BINFO_N_BASE_BINFOS): Relax sanity check.
20094 2015-03-22 Martin Liska <mliska@suse.cz>
20095 Jakub Jelinek <jakub@redhat.com>
20097 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
20098 masks that can potentially include a builtin.
20099 (ix86_add_new_builtins): Introduce fast filter for isa values
20100 that cannot trigger builtin inclusion.
20102 2015-03-22 Martin Liska <mliska@suse.cz>
20104 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
20105 (sem_item::update_hash_by_local_refs): Likewise.
20106 (sem_variable::get_hash): Empty line is fixed.
20107 (sem_item_optimizer::execute): Include adding of hash references.
20108 (sem_item_optimizer::update_hash_by_addr_refs): New function.
20109 (sem_item_optimizer::build_hash_based_classes): Use local hash.
20110 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
20111 (sem_item::update_hash_by_local_refs): Likewise.
20113 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
20116 * ipa-comdats.c (enqueue_references): Walk through thunks.
20117 (ipa_comdats): Likewise.
20118 (set_comdat_group_1): New function.
20120 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
20123 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
20126 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
20127 Gerald Pfeifer <gerald@pfeifer.com>
20129 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
20131 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
20132 Sandra Loosemore <sandra@codesourcery.com>
20134 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
20135 function parameter declaration.
20136 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
20137 Update arguments to nios2_adjust_call_address().
20138 (sibcall_internal): Rename from *sibcall.
20139 (sibcall_value_internal): Rename from *sibcall_value.
20140 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
20141 (nios2_large_got_address): Add target temp reg parameter.
20142 (nios2_got_address): Adjust call to nios2_large_got_address, add
20143 force_reg around it.
20144 (nios2_load_pic_address): Add target temp reg parameter, replace call
20145 to nios2_got_address with corresponding code.
20146 (nios2_legitimize_constant_address): Update call to
20147 nios2_load_pic_address.
20148 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
20149 to use temp reg for PIC loading purposes.
20150 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
20151 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
20152 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
20154 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
20156 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
20157 usage of "the @option{...}".
20158 (-Wopenmp-simd): Likewise.
20159 (-fsanitize-recover): Likewise.
20160 (-fsanitize-undefined-trap-on-error): Likewise.
20162 (tracer-dynamic-coverage-feedback): Likewise.
20163 (reorder-block-duplicate-feedback): Likewise.
20164 (loop-unroll-jam-size): Likewise.
20167 (-mabs=legacy): Likewise.
20168 (-mupper-regs-df): Likewise.
20169 (-mupper-regs-sf): Likewise.
20170 (-mpointers-to-nested-functions): Likewise.
20172 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
20174 * doc/extend.texi (Cilk Plus Builtins): Add markup.
20176 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
20178 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
20179 additional index entries and cross-references.
20180 (-fchkp-check-incomplete-type): Likewise.
20181 (-fchkp-first-field-has-own-bounds): Likewise.
20182 (-fchkp-narrow-to-innermost-array): Likewise.
20183 (-fchkp-use-fast-string-functions): Likewise.
20184 (-fchkp-use-nochk-string-functions): Likewise.
20185 (-fchkp-use-static-const-bounds): Likewise.
20186 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
20187 (-fchkp-instrument-marked-only): Likewise.
20188 (-fchkp-use-wrappers): Likewise.
20189 (-static-libmpx): Likewise.
20190 (-static-libmpxwrappers): Likewise.
20191 * doc/extend.texi (bnd_legacy): Likewise.
20192 (bnd_instrument): Likewise.
20193 (bnd_variable_size): Likewise.
20194 (Pointer Bounds Checker builtins): Likewise.
20196 2015-03-21 Tom de Vries <tom@codesourcery.com>
20198 PR tree-optimization/65458
20199 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
20200 * cgraph.h (cgraph_node): Add parallelized_function field.
20201 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
20202 (input_overwrite_node): Read parallelized_function field.
20203 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
20204 parallelized_function on cgraph_node for child_fn.
20205 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
20206 Remove include of gt-tree-parloops.h.
20207 (parallelized_functions): Remove static variable.
20208 (parallelized_function_p): Rewrite using parallelized_function field of
20210 (create_loop_fn): Remove adding to parallelized_functions.
20211 * Makefile.in (GTFILES): Remove tree-parloops.c
20213 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
20215 PR rtl-optimization/64366
20216 * lra.c (lra_update_insn_regno_info): Consider regs in
20217 CALL_INSN_FUNCTION_USAGE memory.
20219 2015-03-20 Richard Biener <rguenther@suse.de>
20221 PR middle-end/64715
20222 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
20223 for type comparison and gcc_checking_assert.
20224 (chrec_fold_plus_poly_poly): Likewise.
20225 (chrec_fold_multiply_poly_poly): Likewise.
20226 (chrec_convert_1): Likewise.
20227 * gimplify.c (gimplify_expr): Remove premature folding of
20228 &X + CST to &MEM[&X, CST].
20230 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
20232 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
20234 (ipa_inline): Recompute inline_failed codes.
20235 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
20236 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
20239 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
20241 PR rtl-optimization/60851
20242 * recog.c (constrain_operands): Accept a pseudo register before reload
20243 for LRA enabled targets.
20245 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
20248 * config/rs6000/predicates.md (easy_fp_constant): Remove special
20249 -ffast-math handling that kept non-0 constants live in the RTL
20250 until reload. Remove logic testing the number of instructions it
20251 took to create a constant in a GPR that was never used, due to a
20252 test for soft-float earlier.
20253 (memory_fp_constant): Delete, no longer used.
20255 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
20256 alternatives for loading non-0 constants into GPRs for hard
20257 floating point that is no longer needed due to changes in
20258 easy_fp_constant. Add support for loading 0.0 into GPRs.
20259 (mov<mode>_hardfloat32): Likewise.
20260 (mov<mode>_hardfloat64): Likewise.
20261 (mov<mode>_64bit_dm): Likewise.
20262 (movtd_64bit_nodm): Likewise.
20263 (pre-reload move FP constant define_split): Delete define_split,
20264 since it is no longer used.
20265 (extenddftf2_internal): Remove GHF constraints that are not valid
20268 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
20270 PR rtl-optimization/63491
20271 * lra-constraints.c (check_and_process_move): Use src instead of
20272 sreg. Remove some dead code.
20274 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
20277 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
20278 (sem_variable::merge): Likewise.
20280 2015-03-19 Martin Liska <mliska@suse.cz>
20283 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
20284 all fields of cgraph_thunk_info.
20286 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
20288 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
20289 clone instrumented thunks.
20291 2015-03-19 Richard Biener <rguenther@suse.de>
20294 2015-03-10 Richard Biener <rguenther@suse.de>
20296 PR middle-end/63155
20297 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
20298 * tree-ssa-coalesce.c: Include timevar.h.
20299 (attempt_coalesce): Handle graph being NULL.
20300 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
20301 Split out abnormal coalescing to ...
20302 (perform_abnormal_coalescing): ... this function.
20303 (coalesce_ssa_name): Perform abnormal coalescing without computing
20305 (verify_ssa_coalescing_worker): New function.
20306 (verify_ssa_coalescing): Likewise.
20308 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
20309 Jakub Jelinek <jakub@redhat.com>
20312 * tsan.c (instrument_gimple): Clear tail call flag on
20315 2015-03-19 Jakub Jelinek <jakub@redhat.com>
20318 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
20319 call in the return bb.
20320 (find_split_points): Add RETURN_BB argument, don't call
20322 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
20323 if true append TSAN_FUNC_EXIT internal call after the call to
20324 the split off function.
20325 (execute_split_functions): Call find_return_bb here.
20326 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
20327 Adjust find_split_points and split_function calls.
20329 2015-03-18 DJ Delorie <dj@redhat.com>
20331 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
20332 (iorqi3_virt): Likewise.
20334 2015-03-18 Tom de Vries <tom@codesourcery.com>
20336 * tree-parloops.c (parallelize_loops): Make static.
20337 * tree-parloops.h (parallelize_loops): Remove extern declaration.
20339 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
20341 PR middle-end/64491
20343 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
20345 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
20346 condition would be removed due to undefined behaviour.
20348 2015-03-18 Martin Liska <mliska@suse.cz>
20351 * cgraph.c (cgraph_node::get_create): Remove unnecessary
20352 xstrdup_for_dump wrapper.
20353 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
20355 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
20356 with xstrdup_for_dump.
20357 (sem_variable::equals): Likewise.
20358 (sem_item_optimizer::read_section): Use symtab_node::name instead of
20360 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
20361 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
20362 symtab_node::asm_name with xstrdup_for_dump.
20363 (congruence_class::dump): Use symtab_node::name instead of
20365 * ipa-icf.h (symtab_node::name): Remove.
20366 (symtab_node::asm_name): Likewise.
20368 2015-03-18 Jakub Jelinek <jakub@redhat.com>
20370 PR tree-optimization/65450
20371 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
20373 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
20374 it instead of duplicate_ssa_name_ptr_info.
20377 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
20379 2015-03-18 Richard Biener <rguenther@suse.de>
20381 * tree-data-ref.h (struct access_matrix): Remove.
20382 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
20383 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
20384 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
20385 (am_vector_index_for_loop): Likewise.
20386 (struct data_reference): Remove access_matrix member.
20387 (DR_ACCESS_MATRIX): Remove.
20388 (lambda_vector_new): Add comment.
20389 (lambda_matrix_new): Use XOBNEWVEC.
20391 2015-03-18 Richard Biener <rguenther@suse.de>
20393 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
20394 (pass_ch::execute): Cleanup the CFG only if we did sth.
20395 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
20397 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20399 * expmed.c (synth_mult): Use std::swap instead of manually
20400 swapping algorithms.
20402 2015-03-18 Jakub Jelinek <jakub@redhat.com>
20405 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
20407 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
20410 * config/avr/avr.opt (-nodevicelib): New option.
20411 * doc/invoke.texi (AVR Options): Document it.
20412 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
20413 libgcc.a, libc.a, libm.a.
20414 * config/avr/specs.h: Same.
20415 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
20416 which don't (directly) depend on the device. Print more help.
20417 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
20418 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
20419 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
20421 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
20422 for specs file name.
20423 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
20424 * config/avr/avr-mcus.def: Adjust initializers and comments.
20426 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
20428 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
20429 DECL_ONE_ONLY to check if decl is one only.
20430 * ipa-split.c (consider_split): Limit splitt of one only functions.
20432 2015-03-16 Jakub Jelinek <jakub@redhat.com>
20434 PR tree-optimization/65427
20435 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
20437 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
20439 2015-03-16 Marek Polacek <polacek@redhat.com>
20441 * cgraph.h (add_new_static_var): Remove declaration.
20442 * varpool.c (add_new_static_var): Remove function.
20444 2015-03-16 Jakub Jelinek <jakub@redhat.com>
20446 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
20447 instead of vec<tree> * with vec_alloc and release for args.
20450 PR middle-end/65431
20451 * omp-low.c (delete_omp_context): Only splay_tree_delete
20452 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
20453 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
20455 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
20458 * cfgexpand.c (align_base): New function.
20459 (alloc_stack_frame_space): Call it.
20460 (expand_stack_vars): Align prev_frame to be sure
20461 data->asan_vec elements aligned properly.
20463 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
20465 PR middle-end/65409
20466 * expr.c (store_field): Do not do a direct block copy if the source is
20467 a PARALLEL with BLKmode.
20469 2015-03-16 Tom de Vries <tom@codesourcery.com>
20471 PR middle-end/65414
20473 2015-03-12 Tom de Vries <tom@codesourcery.com>
20475 PR rtl-optimization/64895
20476 * lra-lives.c (check_pseudos_live_through_calls): Use
20477 actual_call_used_reg_set instead of call_used_reg_set, if available.
20479 2015-03-16 Alan Modra <amodra@gmail.com>
20482 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
20483 Modify Z->r bswapdi splitter to use dest in place of scratch.
20484 In r->Z and Z->r bswapdi splitter rename word_high, word_low
20485 to word1, word2 and rearrange logic to suit.
20486 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
20487 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
20488 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
20489 Add one '?' on r->r. Modify Z->r splitter to avoid need for
20492 2015-03-14 Jakub Jelinek <jakub@redhat.com>
20494 PR tree-optimization/65369
20495 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
20496 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
20497 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
20499 PR tree-optimization/65418
20500 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
20501 are casts in the first PLUS_EXPR operand, ensure tbias and
20502 *totallowp are in the inner type.
20504 PR rtl-optimization/65401
20505 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
20506 argument. If true, adjust_address_nv of x with big-endian
20507 correction for the mode widening to GET_MODE (y).
20508 (make_field_assignment): Don't do MEM mode widening here.
20509 Use MEM_P instead of GET_CODE == MEM.
20511 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
20513 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
20514 the external decls.
20516 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20519 * config/arm/arm.c (arm_gen_constant, AND case): Use
20520 ARM_SIGN_EXTEND when constructing AND mask.
20522 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
20524 * graph.c (print_graph_cfg): Make function names visible and append
20525 parenthesis to it. Also make groups of basic blocks belonging to the
20526 same function visible.
20528 2015-03-12 Richard Biener <rguenther@suse.de>
20530 PR middle-end/44563
20531 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
20532 to avoid quadratic behavior with inline expansion splitting blocks.
20533 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
20534 with the successor if the predecessor will be merged with it.
20535 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
20536 entry block with its successor.
20538 2015-03-13 Richard Biener <rguenther@suse.de>
20540 PR middle-end/44563
20541 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
20542 (cleanup_tree_cfg_1): Do not call it.
20543 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
20544 (fixup_noreturn_call): Mark the stmt as control altering.
20545 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
20547 (pass_data_fixup_cfg): Produce a dump file.
20548 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
20549 (need_noreturn_fixup): New global.
20550 (pass_dominator::execute): Fixup queued noreturn calls.
20551 (optimize_stmt): Queue calls that became noreturn for fixup.
20552 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
20553 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
20554 (el_to_fixup): New global.
20555 (eliminate_dom_walker::before_dom_childre): Queue calls that
20556 became noreturn for fixup.
20557 (eliminate): Fixup queued noreturn calls.
20558 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
20559 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
20560 (substitute_and_fold_dom_walker::before_dom_children): Queue
20561 alls that became noreturn for fixup.
20562 (substitute_and_fold): Fixup queued noreturn calls.
20564 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
20566 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
20567 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
20568 are building; for methods check ODR type of class they belong to if
20569 they may lead to a polymorphic call.
20570 (sem_function::compare_polymorphic_p): Be bit smarter about testing
20571 when function may lead to a polymorphic call.
20572 (sem_function::compare_type_list): Remove.
20573 (sem_variable::equals): Update use of compatible_types_p.
20574 (sem_variable::parse_tree_refs): Remove.
20575 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
20577 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
20579 (func_checker::compatible_polymorphic_types_p): Break out from ...
20580 (unc_checker::compatible_types_p): ... here.
20581 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
20583 (unc_checker::compatible_types_p): Update.
20584 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
20587 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20589 PR rtl-optimization/65235
20590 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
20591 When first element of vec_concat is const_int, calculate its size
20592 using second element.
20594 2015-03-12 Richard Biener <rguenther@suse.de>
20596 PR middle-end/65270
20597 * fold-const.c (operand_equal_p): Fix ordering of resetting
20598 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
20600 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
20602 * config/s390/s390.c (s390_reorg): Move code to output nops after label
20604 (s390_asm_output_function_label): Likewise.
20605 * config/s390/s390.c (s390_asm_output_function_label):
20606 Fix function label alignment with -mhtopatch.
20607 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
20608 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
20609 ("nop_2_byte"): New define_insn.
20610 ("nop_4_byte"): Likewise.
20611 ("nop_6_byte"): Likewise.
20612 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
20613 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
20615 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
20618 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
20621 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
20624 * toplev.c (process_options): Restrict Pointer Bounds Checker
20625 usage with Address Sanitizer.
20627 2015-03-12 Richard Biener <rguenther@suse.de>
20629 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
20631 * omp-low.c (expand_omp_taskreg): Split block before removing
20633 (expand_omp_target): Likewise.
20634 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
20635 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
20636 stmt to split_block.
20638 2015-03-12 Tom de Vries <tom@codesourcery.com>
20640 PR rtl-optimization/64895
20641 * lra-lives.c (check_pseudos_live_through_calls): Use
20642 actual_call_used_reg_set instead of call_used_reg_set, if available.
20644 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
20646 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
20647 (cgraph_node::remove): Likewise.
20648 (cgraph_node::get_untransformed_body): Likewise.
20649 * varpool.c (varpool_node::remove): Likewise.
20650 (varpool_node::get_constructor): Add sanity check.
20652 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
20654 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
20656 (-fabi-compat-version): Likewise.
20657 (-ffriend-injection): Likewise.
20658 (-Wdeclaration-after-statement): Likewise.
20659 (-fomit-frame-pointer): Likewise.
20660 (-ftree-coalesce-inlined-vars): Likewise.
20661 (-fvisibility=): Likewise.
20662 * doc/extend.texi (Typeof): Likewise.
20663 (Zero Length): Likewise.
20664 (Escaped Newlines): Likewise.
20665 (Compound Literals): Likewise.
20666 (Function Attributes): Likewise.
20667 (Label Attributes): Likewise.
20668 (Type Attributes): Likewise.
20669 (Function Names): Likewise.
20670 (Other Builtins): Likewise.
20671 (Function Specific Option Pragmas): Likewise.
20672 (C++ Interface): Likewise.
20674 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
20676 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
20678 2015-03-11 Marek Polacek <polacek@redhat.com>
20680 PR tree-optimization/65388
20681 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
20683 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
20686 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
20687 * configure: Regenerate.
20688 * config.in: Regenerate.
20689 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
20690 [-mn-flash]: Document it.
20691 [__AVR_ARCH__]: Document avrtiny.
20693 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
20694 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
20695 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
20697 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20699 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
20701 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
20704 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
20705 allow reloads of PLUS in floating point/VSX registers.
20707 2015-03-11 Junmo Park <junmoz.park@samsung.com>
20709 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
20710 crypto_sha256_fast.
20711 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
20713 2015-03-11 Richard Biener <rguenther@suse.de>
20715 PR tree-optimization/65310
20716 * tree-sra.c (build_ref_for_offset): Also preserve larger
20719 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
20721 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
20723 2015-03-10 Jakub Jelinek <jakub@redhat.com>
20726 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
20728 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
20730 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
20732 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
20733 (sem_function::equals_wpa): ... here.
20735 2015-03-10 Marek Polacek <polacek@redhat.com>
20736 Jakub Jelinek <jakub@redhat.com>
20739 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
20740 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
20743 2015-03-10 Jakub Jelinek <jakub@redhat.com>
20746 * config/rs6000/t-linux: For powerpc64* target set
20747 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
20749 2015-03-10 Richard Biener <rguenther@suse.de>
20751 PR middle-end/44563
20752 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
20753 for redirect_all_calls.
20755 2015-03-10 Marek Polacek <polacek@redhat.com>
20757 * gdbinit.in (pcfun): Define and document.
20759 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
20761 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
20762 of libgomp-plugin.h.
20763 (find_target_compiler): Support a case when the path to gcc is
20764 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
20765 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
20766 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
20768 (main): Use GCC_INSTALL_NAME as target_driver_name.
20769 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
20771 (mkoffload.o): Remove obsolete include path and defines.
20772 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
20774 2015-03-10 Richard Biener <rguenther@suse.de>
20776 PR middle-end/63155
20777 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
20778 * tree-ssa-coalesce.c: Include timevar.h.
20779 (attempt_coalesce): Handle graph being NULL.
20780 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
20781 Split out abnormal coalescing to ...
20782 (perform_abnormal_coalescing): ... this function.
20783 (coalesce_ssa_name): Perform abnormal coalescing without computing
20785 (verify_ssa_coalescing_worker): New function.
20786 (verify_ssa_coalescing): Likewise.
20788 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
20791 * config.gcc (extra_options) [avr]: Remove.
20792 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
20793 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
20794 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
20796 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
20797 (-mmcu=): Add Var and MissingArgError properties.
20799 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
20800 * config/avr/t-multilib: Regenerate.
20801 * config/avr/specs.h: New file.
20802 * config/avr/driver-avr.c: New file.
20803 * config/avr/genopt.sh: Remove file.
20804 * config/avr/avr-tables.opt: Remove file.
20805 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
20806 * config/avr/avr-c.c: Same.
20807 * avr-arch.h: Same.
20808 (avr_current_device): Remove proto.
20809 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
20810 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
20811 (EXTRA_SPEC_FUNCTIONS): Define.
20812 (avr_devicespecs_file): New specs function proto.
20813 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
20814 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
20815 (avr_current_device): Remove definition and usage.
20816 (avr_set_core_architecture): New static function.
20817 (avr_option_override): Use it.
20818 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
20819 (mcu_name): New static array.
20820 (comparator, avr_archs_str, avr_mcus_str): New static functions.
20821 (avr_inform_devices, avr_inform_core_architectures): New functions.
20822 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
20823 (avrlibc.h) [WITH_AVRLIBC]: Include.
20824 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
20825 (print_mcu): Rewrite from scratch.
20826 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
20827 Forward to avr-specific specs defined in device-specs file.
20828 * config/avr/t-avr (driver-avr.o): New rule.
20829 (avr-devices.o): Depend on avr-arch.h.
20830 (avr-mcus): No more depend on avr-tables.opt.
20831 (avr-tables.opt): Remove rule.
20832 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
20834 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
20836 * c-family/c.opt (fchkp-use-wrappers): New.
20837 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
20838 (chkp_wrap_function): New.
20839 (chkp_build_instrumented_fndecl): Support wrapped
20841 * doc/invoke.texi (-fcheck-pointer-bounds): New.
20842 (-fchkp-check-incomplete-type): New.
20843 (-fchkp-first-field-has-own-bounds): New.
20844 (-fchkp-narrow-bounds): New.
20845 (-fchkp-narrow-to-innermost-array): New.
20846 (-fchkp-optimize): New.
20847 (-fchkp-use-fast-string-functions): New.
20848 (-fchkp-use-nochk-string-functions): New.
20849 (-fchkp-use-static-bounds): New.
20850 (-fchkp-use-static-const-bounds): New.
20851 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
20852 (-fchkp-check-read): New.
20853 (-fchkp-check-write): New.
20854 (-fchkp-store-bounds): New.
20855 (-fchkp-instrument-calls): New.
20856 (-fchkp-instrument-marked-only): New.
20857 (-fchkp-use-wrappers): New.
20858 (-static-libmpx): New.
20859 (-static-libmpxwrappers): New.
20861 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
20863 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
20864 (CHKP_SPEC): Add wrappers library.
20865 * c-family/c.opt (static-libmpxwrappers): New.
20867 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
20869 * config/i386/linux-common.h (LIBMPX_LIBS): New.
20870 (LIBMPX_SPEC): New.
20872 * gcc.c (CHKP_SPEC): New.
20873 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
20874 * c-family/c.opt (static-libmpx): New.
20876 2015-03-10 Richard Biener <rguenther@suse.de>
20878 PR middle-end/44563
20879 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
20881 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
20882 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
20883 (cgraph_add_edge_to_call_site_hash): Likewise.
20884 (cgraph_node::get_edge): Likewise.
20885 (cgraph_edge::set_call_stmt): Likewise.
20886 (cgraph_edge::remove_caller): Likewise.
20888 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
20890 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
20891 (callee_saved_gpr_regs_size): ... this.
20892 (callee_saved_regs_first_regno): Rename to ...
20893 (callee_saved_first_gpr_regno): ... this.
20894 (callee_saved_regs_last_regno) Rename to ...
20895 (callee_saved_last_gpr_regno): ... this.
20896 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
20898 (nds32_initial_elimination_offset): Likewise.
20899 (nds32_expand_prologue): Likewise.
20900 (nds32_expand_epilogue): Likewise.
20901 (nds32_expand_prologue_v3push): Likewise.
20902 (nds32_expand_epilogue_v3pop): Likewise.
20903 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
20904 Adjust renamed variables.
20905 (nds32_output_stack_pop): Likewise.
20907 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
20909 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
20912 2015-03-10 Jakub Jelinek <jakub@redhat.com>
20914 PR rtl-optimization/65321
20915 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
20917 * var-tracking.c (use_narrower_mode): Likewise.
20919 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
20921 PR tree-optimization/65355
20922 * varasm.c (notice_global_symbol): Do not produce RTL.
20923 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
20925 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
20926 check for section anchors.
20928 2015-03-10 Alan Modra <amodra@gmail.com>
20931 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
20932 to be single-arch by default. Set cpu_is_64bit for powerpc64
20933 given --with-cpu=native.
20934 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
20935 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
20937 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
20938 rs6000_isa_flags rather than TARGET_64BIT.
20940 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
20941 Kaz Kojima <kkojima@gcc.gnu.org>
20943 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
20945 2015-03-09 Jakub Jelinek <jakub@redhat.com>
20948 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
20949 on a TREE_BINFO, instead use BINFO_TYPE.
20951 2015-03-09 Richard Biener <rguenther@suse.de>
20953 PR middle-end/65270
20954 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
20955 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
20956 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
20957 of that. When comparing dereferences compare alignment.
20958 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
20960 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
20962 * ipa-inline-analysis.c (check_callers): Check
20963 node->can_remove_if_no_direct_calls_and_refs_p.
20964 (growth_likely_positive): Reorganize to call
20965 can_remove_if_no_direct_calls_p later.
20966 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
20967 will_be_removed_from_program_if_no_direct_calls_p): Add
20968 will_inline parameter.
20969 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
20970 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
20971 Handle inliner case correctly.
20973 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
20975 PR tree-optimization/63743
20976 * cfgexpand.c (reorder_operands): Also reorder if only second operand
20977 had its definition forwarded by TER.
20979 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
20982 * ipa-utils.h (types_odr_comparable): Add strict argument.
20983 * ipa-devirt.c: Fix whitespace;
20984 (odr_hasher): Remove.
20985 (odr_name_hasher, odr_vtable_hasher): New hashers.
20986 (can_be_name_hashed_p): New predicate.
20987 (hash_type_name): remove.
20988 (hash_odr_name): New.
20989 (odr_name_hasher::hash): new.
20990 (can_be_vtable_hashed_p): New.
20991 (hash_odr_vtable): New.
20992 (odr_vtable_hasher::hash): New.
20993 (types_same_for_odr): Add strict parameter.
20994 (types_odr_comparable): Likewise.
20995 (odr_name_hasher::equal): New.
20996 (odr_vtable_hasher::equal): New.
20997 (odr_name_hasher::remove): New.
20998 (odr_hash_type): Change to hash_table<odr_name_hasher>.
20999 (odr_vtable_hash_type): New.
21000 (odr_vtable_hash): New.
21001 (odr_subtypes_equivalent_p): Do strict comparsion.
21002 (add_type_duplicate): Merge type names; cleanup; avoid type
21004 (register_odr_type): Initialize vtable hash.
21005 (build_type_inheritance_graph): Likewise
21006 (get_odr_type): Reorg to use two hashes.
21007 (dump_possible_polymorphic_call_targets): Move sanity check after debug
21009 (ipa_devirt): Dump type_inheritance_graph.
21010 (types_same_for_odr): Add strict mode.
21012 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
21015 * cgraph.h (symtab_node): Add definition_alignment,
21016 can_increase_alignment_p and increase_alignment.
21017 * symtab.c (symtab_node::can_increase_alignment_p,
21018 increase_alignment_1, symtab_node::increase_alignment,
21019 symtab_node::definition_alignment): New.
21020 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
21021 can_increase_alignment_p.
21022 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
21023 * tree-vect-stmts.c (ensure_base_align): Likewise.
21024 * varasm.c (function_section_1): Use definition_alignment.
21025 (assemble_start_function): Likewise.
21026 (emit_local): likewise.
21027 (build_constant_desc): Likewsie.
21028 (output_constant_def_contents): Likewise.
21029 (place_block_symbol): Likewise.
21030 (output_object_block): Likewise.
21032 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
21035 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
21036 when outputting debug.
21038 2015-03-07 Marek Polacek <polacek@redhat.com>
21039 Martin Uecker <uecker@eecs.berkeley.edu>
21042 * doc/invoke.texi: Update description of -fsanitize=bounds.
21044 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
21046 * tree-ssa-phiopt.c (neg_replacement): Remove.
21047 (tree_ssa_phiopt_worker): Remove negate optimization.
21049 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
21052 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
21054 2015-03-06 Richard Biener <rguenther@suse.de>
21056 PR middle-end/64928
21057 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
21058 and liveout_obstack members.
21059 (calculate_live_on_exit): Remove.
21060 (calculate_live_ranges): Change declaration.
21061 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
21062 (new_tree_live_info): Adjust.
21063 (calculate_live_ranges): Delete livein when not wanted.
21064 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
21065 Deal with partly deleted live info.
21066 (loe_visit_block): Remove temporary bitmap by using
21067 bitmap_ior_and_compl_into.
21068 (live_worklist): Adjust accordingly.
21069 (calculate_live_on_exit): Make static.
21070 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
21071 we do not need livein.
21073 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
21075 * real.c (real_from_string): Fix typo in assertion.
21077 2015-03-06 Alex Velenko <alex.velenko@arm.com>
21079 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
21082 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
21084 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
21086 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
21089 * lra-assigns.c (find_hard_regno_for): Rename to
21090 find_hard_regno_for_1. Add a new parameter.
21091 (find_hard_regno_for): New function using find_hard_regno_for_1.
21093 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
21095 PR rtl-optimization/65067
21096 * expmed.c (store_bit_field, extract_bit_field): Reworked the
21097 strict volatile bitfield handling.
21099 2015-03-05 Martin Liska <mliska@suse.cz>
21102 * ipa-icf.c (sem_variable::equals): Compare variables types.
21104 2015-03-05 Richard Henderson <rth@redhat.com>
21107 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
21108 correctly check weak symbol binding.
21110 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
21112 PR middle-end/65315
21113 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
21116 2015-03-05 Martin Liska <mliska@suse.cz>
21118 * ipa-inline.c (inline_small_functions): Set default value to
21119 prevent warning during bootstrap.
21120 * tree.h: Add pragma guard that ignores false positives during
21123 2015-03-05 Richard Biener <rguenther@suse.de>
21125 PR tree-optimization/65310
21126 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
21127 Properly preserve alignment of the base of the access.
21129 2015-03-05 Richard Biener <rguenther@suse.de>
21132 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
21133 Compare dependence info.
21135 2015-03-05 Richard Biener <rguenther@suse.de>
21137 PR middle-end/65233
21138 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
21140 (walk_ssa_copies): Revert last chage. Instead do not walk
21141 SSA names registered for SSA update.
21143 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
21146 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
21147 vtable references for their containing type.
21148 (sem_function::equals_wpa): Compare TYPE_RESTRICT
21149 and type attributes.
21151 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
21153 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
21154 before negating it.
21155 * stor-layout.c (finalize_record_size): Revert latest change.
21157 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
21159 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
21161 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
21163 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
21164 for correct comdat handling.
21165 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
21167 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
21168 (used_from_object_file_p_worker): Remove.
21169 (cgraph_node::only_called_directly_or_alised): Add
21170 used_from_object_file_p.
21171 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
21172 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
21173 can_remove_if_no_direct_calls_and_refs_p.
21175 2015-03-04 Nick Clifton <nickc@redhat.com>
21177 * config/rl78/rl78.h (enum reg_class): Remove real registers from
21178 General register class.
21179 * config/rl78/rl78-real.md: Replace general register constraints
21180 with real+virtual register constraints.
21182 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21184 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
21185 from checking for -mhtm option.
21187 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
21189 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
21190 (struct ipa_sra_check_caller_data): Add has_thunk field.
21191 (ipa_sra_check_caller): Check for thunk.
21192 (ipa_sra_preliminary_function_checks): Give up on function with
21194 (ipa_early_sra): Use call_for_symbol_and_aliases.
21196 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
21199 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
21200 called for __stack_chk_guard symbol.
21202 2015-03-03 DJ Delorie <dj@redhat.com>
21204 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
21206 (*addhi3_real): Likewise.
21207 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
21208 pattern to match incrementing memory.
21209 * config/rl78/predicates.md (rl78_1_2_operand): New.
21210 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
21211 it's the same and only mem.
21212 (rl78_alloc_physical_registers_op2): If there's effectively only
21213 one MEM, transcode it into HL.
21214 (rl78_far_p): Reject addresses that aren't legitimate.
21216 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
21218 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
21221 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
21223 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
21225 Implement call0 ABI for xtensa
21226 * config/xtensa/constraints.md ("a" constraint): Include stack
21227 pointer in case of call0 ABI.
21228 ("q" constraint): Make empty in case of call0 ABI.
21229 ("D" constraint): Include stack pointer in case of call0 ABI.
21230 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
21231 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
21233 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
21235 (xtensa_regno_to_class): Make it a local variable in the
21236 function xtensa_regno_to_class.
21237 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
21238 macro, function prototype and implementation.
21239 (reg_nonleaf_alloc_order): Make it a local variable in the
21240 function order_regs_for_local_alloc.
21241 (xtensa_conditional_register_usage): New function.
21242 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
21243 (xtensa_valid_move): Allow direct moves to stack pointer
21244 register in call0 ABI.
21245 (xtensa_setup_frame_addresses): Only spill register windows in
21247 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
21248 call0 ABI respectively.
21249 (xtensa_function_arg_1): Only mark a7 register for copying in
21251 (xtensa_call_save_reg): New function.
21252 (compute_frame_size): Add space for callee saved register
21253 storage to the frame size in call0 ABI.
21254 (xtensa_expand_prologue): Generate code to set up stack frame
21255 and save callee-saved registers in call0 ABI.
21256 (xtensa_expand_epilogue): New function.
21257 (xtensa_set_return_address): New function.
21258 (xtensa_return_addr): Calculate return address in call0 ABI.
21259 (xtensa_builtin_saveregs): Only mark a7 register for copying and
21260 emit copying code in windowed ABI.
21261 (order_regs_for_local_alloc): Add preferred register allocation
21262 order for non-leaf function in call0 ABI.
21263 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
21264 (xtensa_asm_trampoline_template): Add trampoline generation for
21266 (xtensa_trampoline_init): Add trampoline initialization for
21268 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
21270 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
21271 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
21272 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
21273 ABI call-used registers.
21274 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
21275 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
21277 (REG_CLASS_CONTENTS): Include all registers into the preferred
21278 reload registers set, adjust the set in the
21279 xtensa_conditional_register_usage.
21280 (xtensa_regno_to_class): Drop variable declaration.
21281 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
21283 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
21285 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
21286 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
21287 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
21288 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
21289 location in call0 ABI.
21290 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
21291 stack adjustment size when handling exception.
21292 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
21293 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
21295 ("return" pattern): Generate ret.n/ret in call0 ABI.
21296 ("epilogue" pattern): Expand epilogue.
21297 ("nonlocal_goto" pattern): Use default in call0 ABI.
21298 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
21299 emit eh_set_a0_* depending on ABI.
21300 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
21301 ("eh_set_a0_call0", "blockage"): New patterns.
21303 2015-03-03 Martin Liska <mliska@suse.cz>
21306 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
21308 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
21311 * config/rs6000/rs6000-tables.opt: Regenerate table.
21313 2015-03-03 Renlin Li <renlin.li@arm.com>
21315 * doc/md.texi (@item ^): Change ? into ^.
21317 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
21319 * doc/tm.texi: Regenerated.
21321 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
21323 * builtins.c (expand_builtin_return_addr): Add
21324 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
21325 surrounding #ifdef.
21326 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
21328 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
21330 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
21332 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
21335 2015-03-03 Martin Jambor <mjambor@suse.cz>
21336 Eric Botcazou <ebotcazou@adacore.com>
21338 * tree-sra.c (ipa_sra_check_caller_data): New type.
21339 (has_caller_p): Removed.
21340 (ipa_sra_check_caller): New function.
21341 (ipa_sra_preliminary_function_checks): Use it.
21343 2015-03-03 Martin Liska <mliska@suse.cz>
21345 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
21346 instead of if branch.
21348 2015-03-03 Martin Liska <mliska@suse.cz>
21351 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
21353 2015-03-23 Jeff Law <law@redhat.com>
21355 PR tree-optimization/65241
21356 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
21357 hash table if INSERT is true.
21359 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
21362 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
21364 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
21367 * config/avr/avr.c (context.h, tree-pass.h): Include them.
21368 (avr_pass_data_recompute_notes): New static variable.
21369 (avr_pass_recompute_notes): New class.
21370 (avr_register_passes): New static function.
21371 (avr_option_override): Call it.
21373 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
21375 Fix various problems with specs file generation.
21378 * config.gcc (extra_gcc_objs) [avr]: Remove.
21379 * config/avr/driver-avr.c: Remove file.
21380 * config/avr/t-avr (driver-avr.o): Remove rule.
21381 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
21382 INCLUDES to build. Depend on TM_H.
21383 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
21384 build warnings. Fix non-matching types and non-existing %-codes.
21386 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
21387 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
21388 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
21389 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
21390 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
21391 (LIBGCC_SPEC): Remove definitions.
21393 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
21395 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
21396 to create a register in testing mode.
21398 2015-03-03 Martin Liska <mliska@suse.cz>
21399 Jan Hubicka <hubicka@ucw.cz>
21402 * cgraph.c (cgraph_node::has_thunk_p): New function.
21403 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
21404 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
21405 (sem_function::merge): Assert is changed.
21407 2015-03-03 Martin Liska <mliska@suse.cz>
21408 Martin Jambor <mjambor@suse.cz>
21411 * ipa-icf.c (sem_item_optimizer::execute): Change function
21412 return value to boolean.
21413 (sem_item_optimizer::merge_classes): Likewise.
21414 (ipa_icf_driver): Return TODO_remove_functions in case there's
21415 a merge operation processed.
21416 * ipa-icf.h: Change function return value to boolean.
21418 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21421 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
21422 processor type for 64-bit little endian PowerPC.
21424 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21425 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
21426 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
21427 printing built-in mask so it does not pass NULL pointers.
21429 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
21432 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
21435 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
21436 !ISA_HAS_FP_CONDMOVE.
21438 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
21440 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
21443 2015-03-02 Ulrich Drepper <drepper@gmail.com>
21445 * doc/invoke.texi (Options for Code Generation Conventions):
21446 Fix URL of DSO paper.
21448 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
21451 * ipa-inline.c (check_callers): Looks for recursion.
21452 (inline_to_all_callers): Give up on uninlinable or recursive edges.
21453 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
21454 summary of inline clones.
21455 (do_estimate_growth_1): Fix recursion check.
21457 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
21460 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
21463 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
21464 Aldy Hernandez <aldyh@redhat.com>
21467 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
21468 when checking TYPE_BINFO.
21470 2015-03-02 Richard Biener <rguenther@suse.de>
21473 * ipa-icf-gimple.c: Include builtins.h.
21474 (func_checker::compare_memory_operand): Compare base alignment.
21476 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
21479 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
21480 are never passed by reference.
21482 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
21485 * tree-chkp.c (chkp_check_lower): Don't check against
21486 zero bounds for already instrumented functions.
21487 (chkp_check_upper): Likewise.
21488 (chkp_fini): Clean pass local data to avoid wrong reusage.
21490 2015-02-28 Martin Liska <mliska@suse.cz>
21491 Jan Hubicka <hubicka@ucw.cz>
21493 * ipa-icf.c (sem_variable::equals): Improve debug output;
21494 get variable constructor.
21495 (sem_variable::parse): Do not filter out too early; give up on
21496 volatile and register vars.
21497 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
21499 * ipa-icf.h (sem_variable::init): Do not set ctor.
21500 (sem_variable::ctor): Remove.
21502 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
21504 PR middle-end/65233
21505 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
21507 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21509 * ipa-icf.c: Include stor-layout.h
21510 (sem_function::compare_cgraph_references): Rename to ...
21511 (sem_item::compare_cgraph_references): ... this one.
21512 (sem_variable::equals_wpa): New function
21513 (sem_variable::equals): Do not check stuff already verified by
21515 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
21516 * ipa-icf.h (sem_item): Add compare_cgraph_references.
21517 (sem_function): Remove compare_cgraph_references.
21518 (sem_variable): Turns equals_wpa into non-inline.
21520 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21522 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
21523 (sem_item::add_expr): New function.
21524 (sem_function::hash_stmt): Handle operands of most statements.
21525 (sem_variable::get_hash): Hash the actual constructor.
21526 * ipa-icf.h (sem_item): Add add_expr.
21527 (sem_function): Update prototype of hash_stmt
21529 2015-02-28 Martin Liska <mliska@suse.cz>
21530 Jan Hubicka <hubicka@ucw.cz>
21533 * ipa-icf-gimple.c (func_checker::compare_function_decl):
21535 (func_checker::compare_variable_decl): Skip symtab vars.
21536 (func_checker::compare_cst_or_decl): Update.
21537 * ipa-icf.c (sem_function::parse): Do not consider aliases.
21538 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
21539 use correct symtab predicates.
21540 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
21541 (sem_variable::parse): Update comment.
21542 (sem_item_optimizer::build_graph): Consider ultimate aliases
21545 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21547 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
21550 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21552 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
21553 (sem_variable::merge) Likewise.
21555 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21557 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
21558 target; also match flag_ipa_devirt.
21560 2015-03-01 Martin Liska <mliska@suse.cz>
21561 Jan Hubicka <hubicka@ucw.cz>
21563 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
21564 Validate variable alignment.
21565 * ipa-icf.c (sem_function::equals_private): Be more precise
21566 about non-common function attributes.
21567 (sem_variable::equals): Likewise.
21569 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21572 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
21573 across COMDAT group boundary.
21575 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21578 * ipa-icf.c (clear_decl_rtl): New function.
21579 (sem_function::merge): Clear RTL before forming alias.
21580 (sem_variable::merge): Clear RTL before forming alias.
21582 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21585 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
21587 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
21589 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
21592 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
21594 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
21595 a typo in the description.
21597 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
21600 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
21601 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
21602 * lra-constraints.c: Include "params.h".
21603 (EBB_PROBABILITY_CUTOFF): Use
21604 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
21605 (lra_inheritance): Use '<' instead of '<=' for
21606 EBB_PROBABILITY_CUTOFF.
21607 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
21610 2015-02-27 Martin Liska <mliska@suse.cz>
21612 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
21613 vector length condition.
21615 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
21617 * doc/extend.texi (x86 transactional memory intrinsics):
21618 Reorganize discussion of _xbegin. Clarify that the return
21619 value is a bit mask. Expand example and move to end of section.
21621 2015-02-26 Jakub Jelinek <jakub@redhat.com>
21622 Aldy Hernandez <aldyh@redhat.com>
21624 PR rtl-optimization/65220
21625 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
21627 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
21630 * lra-remat.c (update_scratch_ops): New.
21631 (do_remat): Call it.
21632 * lra.c (lra_register_new_scratch_op): New. Take code from ...
21633 (remove_scratches): ... here.
21634 * lra-int.h (lra_register_new_scratch_op): New prototype.
21636 2015-02-27 Marek Polacek <polacek@redhat.com>
21639 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
21640 -Wformat-signedness anymore.
21642 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21644 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
21646 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
21648 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21650 * config/s390/s390.c (enum s390_builtin):
21651 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
21652 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
21653 (s390_init_builtins): Generate new builtin functions.
21654 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
21655 (s390_sfpc, s390_efpc): New pattern definitions.
21657 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21659 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
21660 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
21661 (s390_builtin_decls): New array.
21662 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
21663 (s390_builtin_decl): New function.
21664 (TARGET_BUILTIN_DECL): Define macro.
21666 2015-02-27 Richard Biener <rguenther@suse.de>
21668 PR middle-end/63175
21669 * builtins.c (get_object_alignment_2): Make sure to re-apply
21670 the ANDed mask after recursing to its operand gets us a new
21671 misalignment bit position.
21673 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
21674 Martin Liska <mliska@suse.cz>
21677 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
21678 Use address_matters_p.
21679 (redirect_all_callers, set_addressable): New functions.
21680 (sem_function::merge): Reorganize and fix merging issues.
21681 (sem_variable::merge): Likewise.
21682 (sem_variable::compare_sections): Remove.
21683 * common.opt (fmerge-all-constants, fmerge-constants): Remove
21685 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
21687 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
21689 (address_matters_1): New function.
21690 (symtab_node::address_matters_p): New function.
21691 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
21692 check for merged flag.
21693 * cgraph.h (address_matters_p): Declare.
21694 (symtab_node::address_taken_from_non_vtable_p): Remove.
21695 (symtab_node::address_can_be_compared_p): New method.
21696 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
21697 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
21699 (comdat_can_be_unshared_p_1) Use address_matters_p.
21700 (update_vtable_references): Fix formating.
21701 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
21702 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
21703 * cgraphclones.c: Preserve merged and icf_merged flags.
21705 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
21707 * doc/extend.texi (Function Attributes): Fix spelling and typos.
21708 (Label Attributes): Likewise.
21709 (Cilk Plus Builtins): Likewise.
21710 (ARC SIMD Built-in Functions): Likewise.
21711 (ARM C Language Extensions (ACLE)): Likewise.
21712 (PowerPC Built-in Functions): Likewise.
21713 (PowerPC Hardware Transactional Memory Built-in Functions):
21716 2015-02-26 Jakub Jelinek <jakub@redhat.com>
21718 PR tree-optimization/65216
21719 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
21720 new stmt and new SSA_NAME for lhs whenever the arguments have
21721 changed and weren't just swapped. Fix comment typo.
21723 PR tree-optimization/65215
21724 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
21725 for PDP endian targets.
21726 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
21727 Fix up formatting issues.
21728 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
21729 size is smaller than the original, adjust MEM_REF offset by the
21730 difference of sizes. Use is_gimple_mem_ref_addr instead of
21731 is_gimple_min_invariant test to avoid adding address temporaries.
21733 2015-02-26 Martin Liska <mliska@suse.cz>
21734 Jan Hubicka <hubicka@ucw.cz>
21737 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
21738 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
21739 (sem_item_optimizer::process_cong_reduction): Include division by
21740 sensitive references.
21741 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
21742 * ipa-ref.c (ipa_ref::address_matters_p): New function.
21743 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
21745 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
21748 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
21750 * config/avr/avr.c: Same.
21751 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
21752 Refuse any constant address not in 0..0xbf.
21753 * config/avr/avr.md (*mov<mode>, *movsf): Remove
21754 tiny_valid_direct_memory_access_range from insn conditions.
21755 (mov<mode>): Don't special-case expansion of avrtiny addresses.
21757 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
21760 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
21761 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
21762 * config/sh/predicates.md (const_logical_operand): New predicate.
21763 * config/sh/sh.md: Add new peephole2 patterns.
21765 2015-02-26 Marek Polacek <polacek@redhat.com>
21768 * ipa-inline.c (early_inliner): Recompute inline parameters.
21770 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21773 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
21774 instructions with TImode operands are included in the analysis.
21776 2015-02-26 Sebastian Pop <s.pop@samsung.com>
21778 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
21779 of an EDGE_FSM_THREAD.
21781 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
21783 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
21785 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
21788 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
21790 2015-02-26 Sebastian Pop <s.pop@samsung.com>
21792 PR tree-optimization/65048
21793 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
21794 (thread_through_all_blocks): Call valid_jump_thread_path.
21795 Remove invalid FSM jump-thread paths.
21797 2015-02-26 Jakub Jelinek <jakub@redhat.com>
21799 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
21800 (ipa_write_optimization_summaries): Likewise.
21801 * tree-streamer.h: Include data-streamer.h.
21802 (streamer_mode_table): Declare extern variable.
21803 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
21804 * lto-streamer-out.c (lto_output_init_mode_table,
21805 lto_write_mode_table): New functions.
21806 (produce_asm_for_decls): Call lto_write_mode_table when streaming
21808 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
21809 (lto_create_simple_input_block): Add mode_table argument to the
21810 lto_input_block constructors.
21811 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
21813 * data-streamer-in.c (string_for_index): Likewise.
21814 * ipa-inline-analysis.c (inline_read_section): Likewise.
21815 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
21816 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
21817 * lto-streamer-in.c (lto_read_body_or_constructor,
21818 lto_input_toplevel_asms): Likewise.
21819 (lto_input_mode_table): New function.
21820 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
21821 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
21822 Use bp_pack_machine_mode.
21823 * real.h (struct real_format): Add name field.
21824 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
21825 (class lto_input_block): Add mode_table member.
21826 (lto_input_block::lto_input_block): Add mode_table_ argument,
21827 initialize mode_table.
21828 (struct lto_file_decl_data): Add mode_table field.
21829 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
21830 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
21831 unpack_ts_decl_common_value_fields,
21832 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
21833 * tree-streamer.c (streamer_mode_table): New variable.
21834 * real.c (ieee_single_format, mips_single_format,
21835 motorola_single_format, spu_single_format, ieee_double_format,
21836 mips_double_format, motorola_double_format,
21837 ieee_extended_motorola_format, ieee_extended_intel_96_format,
21838 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
21839 ibm_extended_format, mips_extended_format, ieee_quad_format,
21840 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
21841 decimal_single_format, decimal_double_format, decimal_quad_format,
21842 ieee_half_format, arm_half_format, real_internal_format): Add name
21844 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
21846 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
21849 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
21850 reordering for selective scheduling.
21852 2015-02-26 Terry Guo <terry.guo@arm.com>
21854 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
21855 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
21856 (arm_arch_no_volatile_ce): Declare new global variable.
21857 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
21858 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
21859 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
21860 (TARGET_NO_VOLATILE_CE): New macro.
21861 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
21862 volatile memory access in IT block
21864 2015-02-25 Kai Tietz <ktietz@redhat.com>
21866 PR tree-optimization/61917
21867 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
21868 that reduc_def_stmt is null.
21870 2015-02-25 Martin Liska <mliska@suse.cz>
21872 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
21873 hard register variables.
21875 2015-02-25 Kai Tietz <ktietz@redhat.com>
21878 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
21879 (symtab::noninterposable_alias): Likewise.
21881 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
21884 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
21886 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
21888 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
21891 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
21892 as split condition; force split via '#' in output pattern.
21894 2015-02-25 Richard Biener <rguenther@suse.de>
21895 Kai Tietz <ktietz@redhat.com>
21897 PR tree-optimization/61917
21898 * tree-vect-loop.c (vectorizable_reduction): Allow
21899 vect_internal_def without reduction to exit graceful.
21901 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
21904 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
21905 only with NONDEBUG_INSN_P.
21907 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
21909 Use variadic macros with avr-log.c.
21911 * config/avr/avr-protos.h (avr_vdump): New prototype.
21912 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
21913 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
21914 * config/avr/avr-log.c: Adjust comments.
21915 (avr_vdump): New function.
21916 (avr_vadump): Pass caller as 2nd argument instead of format string.
21917 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
21918 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
21920 2015-02-25 Jakub Jelinek <jakub@redhat.com>
21923 * target.def (target_option_stream_in): New target hook.
21924 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
21925 targetm.target_option.post_stream_in if non-NULL.
21926 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
21927 * doc/tm.texi: Updated.
21928 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
21930 (TARGET_OPTION_POST_STREAM_IN): Redefine.
21932 2015-02-24 Jeff Law <law@redhat.com>
21935 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
21936 of operand 0 and operand 2.
21937 (zero_cost_loop_end, loop_end): Similarly.
21939 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
21941 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
21944 2015-02-24 DJ Delorie <dj@redhat.com>
21946 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
21947 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
21948 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
21949 instead of hardcoding SImode.
21951 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
21953 * omp-low.c (create_omp_child_function): Tag entrypoint
21954 functions with a special attribute.
21956 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
21959 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
21961 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
21963 PR rtl-optimization/65123
21964 * lra-remat.c (operand_to_remat): Check hard regs in insn
21967 2015-02-24 Nick Clifton <nickc@redhat.com>
21969 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
21972 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
21975 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
21976 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
21977 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
21978 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
21979 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
21980 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
21981 (BUILT_IN_GOACC_PARALLEL): Specify as
21982 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
21983 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
21984 * builtin-types.def
21985 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21986 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21987 Remove function types.
21988 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
21989 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21990 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21991 New function types.
21993 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
21995 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
21997 2015-02-24 Jakub Jelinek <jakub@redhat.com>
21999 PR tree-optimization/65170
22000 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
22001 if val[1] < 0, clear also val[2] and return 3.
22003 2015-02-24 Alan Modra <amodra@gmail.com>
22006 * config/rs6000/rs6000.c (get_memref_parts): Only return true
22007 when *base is a reg. Handle nested plus addresses. Simplify
22010 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
22012 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
22013 use natural alignment when optimizing for size.
22015 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
22018 * config/sh/sh.md (movsicc_true+3): Remove peephole.
22019 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
22020 * config/sh/sh.c (replace_n_hard_rtx): Remove.
22022 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
22025 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
22026 too big for a wide_int. Implement missing wrapping operation.
22028 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
22031 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
22032 instead of const_int 4294901760.
22034 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
22036 * config/avr/t-avr: Fix typo in comment.
22038 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
22040 * doc/rtl.texi (fma): Clarify documentation.
22042 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
22045 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
22046 over input_location.
22048 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
22050 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
22051 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
22052 restrict alignments to absolute_biggest_alignment.
22053 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
22055 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
22056 * doc/tm.texi: Regenerate.
22057 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
22059 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
22062 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
22064 2015-02-20 Richard Biener <rguenther@suse.de>
22066 PR tree-optimization/65136
22067 * tree-ssa-propagate.c: Include cfgloop.h.
22068 (replace_phi_args_in): Avoid replacing loop latch edge PHI
22069 arguments with constants.
22071 2015-02-20 Jakub Jelinek <jakub@redhat.com>
22072 Martin Liska <mliska@suse.cz>
22075 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
22076 don't try to create_thunk if stdarg_p. If
22077 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
22078 redirect_callers if possible.
22079 (sem_item_optimizer::execute): Call unregister_hooks here...
22080 (ipa_icf_driver): ... instead of here.
22082 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22084 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
22085 Mark operand 0 as earlyclobber in 2nd alternative.
22086 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
22087 Write negated shift amount into QI lowpart operand 0 and use it
22089 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
22091 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
22093 * cgraph.h (clone_function_name_1): Declare.
22094 * cgraphclones.c (clone_function_name_1): New function.
22095 (clone_function_name): Use it.
22096 * lto-partition.c: Include "stringpool.h".
22097 (must_not_rename, maybe_rewrite_identifier)
22098 (validize_symbol_for_target): New static functions.
22099 (privatize_symbol_name): Use must_not_rename.
22100 (promote_symbol): Call validize_symbol_for_target.
22101 (lto_promote_cross_file_statics): Likewise.
22102 (lto_promote_statics_nonwpa): Likewise.
22104 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
22107 * config/avr/avr.md (pushhi_insn): New insn.
22108 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
22110 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
22111 Jakub Jelinek <jakub@redhat.com>
22113 * tree-streamer.c (preload_common_nodes): Don't preload
22114 TI_VA_LIST* for offloading.
22115 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
22118 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
22120 * config/pa/pa.c (pa_emit_move_sequence): Always force
22121 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
22124 * config/pa/pa.c (pa_reloc_rw_mask): New function.
22125 (TARGET_ASM_RELOC_RW_MASK): Define.
22126 (pa_cannot_force_const_mem): Revert previous change.
22128 2015-02-19 Martin Jambor <mjmabor@suse.cz>
22129 Jan Hubicka <hubicka@ucw.cz>
22132 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
22133 across jump functions.
22135 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
22137 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
22139 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
22141 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
22143 2015-02-19 Richard Henderson <rth@redhat.com>
22145 PR middle-end/65074
22146 * varasm.c (default_binds_local_p_2): Don't test node->definition;
22147 test DECL_EXTERNAL independent of symtab_node.
22149 2015-02-19 Jakub Jelinek <jakub@redhat.com>
22152 * varpool.c (varpool_node::get_constructor): Return early
22153 if this->lto_file_data is NULL.
22155 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22157 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
22158 (rank_for_schedule_debug): Update.
22159 (ready_sort): Make static. Move sorting logic to ...
22160 (ready_sort_debug, ready_sort_real): New static functions.
22161 (schedule_block): Sort both debug insns and real insns in preparation
22162 for ready list trimming. Improve debug output.
22163 * sched-int.h (ready_sort): Remove global declaration.
22165 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
22167 * ipa-icf.c (sem_function::equals_private): Adjust.
22168 (sem_function::bb_dict_test): Take a vec<int> * instead of
22170 * ipa-icf.h (bb_dict_test): Likewise.
22172 2015-02-18 Jakub Jelinek <jakub@redhat.com>
22174 PR gcov-profile/64634
22175 * tree-eh.c (frob_into_branch_around): Fix up typos
22176 in function comment.
22177 (lower_catch): Put eh_seq resulting from EH lowering of
22178 the cleanup sequence after the cleanup rather than before it.
22180 2015-02-18 Tom de Vries <tom@codesourcery.com>
22182 * common.opt (fstdarg-opt): New option.
22183 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
22184 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
22185 (@item -fstdarg-opt): New item.
22187 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
22190 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
22191 for common symbols.
22193 2015-02-18 Jakub Jelinek <jakub@redhat.com>
22195 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
22197 (ALL_HOST_OBJS): Add mkoffload.o.
22198 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
22200 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
22202 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
22203 (compare_virtual_tables): Be smarter about skipping typeinfos;
22204 do sane output on virtual table table mismatch.
22205 (warn_odr): Be ready for forward declarations of enums;
22206 output sane info on base mismatch and virtual table mismatch.
22207 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
22208 when only one type is polymorphic.
22209 (get_odr_type): Fix hashtable corruption.
22210 (dump_odr_type): Dump mangled names.
22212 2015-02-18 Richard Biener <rguenther@suse.de>
22214 PR tree-optimization/65063
22215 * tree-predcom.c (determine_unroll_factor): Return 1 if we
22216 have replaced looparound PHIs.
22218 2015-02-18 Martin Liska <mliska@suse.cz>
22220 * lto-streamer.c (lto_streamer_init): Encapsulate
22221 streamer_check_handled_ts_structures with checking macro.
22223 2015-02-18 Jakub Jelinek <jakub@redhat.com>
22226 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
22227 section if !implicit_section.
22228 (cgraph_node::create_version_clone_with_body): Likewise.
22229 * trans-mem.c (ipa_tm_create_version): Likewise.
22231 2015-02-18 Richard Biener <rguenther@suse.de>
22233 PR tree-optimization/62217
22234 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
22237 2015-02-18 Marek Polacek <polacek@redhat.com>
22240 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
22241 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
22242 is in range [-16K, -1]. Don't issue run-time error if
22243 (ptr > ptr + offset).
22245 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
22247 * doc/install.texi (nvptx-*-none): New section.
22248 * doc/invoke.texi (Nvidia PTX Options): Likewise.
22249 * config/nvptx/nvptx.opt: Update.
22251 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
22252 (access_check): New functions, copied from
22253 config/i386/intelmic-mkoffload.c.
22254 (main): For non-installed testing, look in all COMPILER_PATHs for
22257 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
22259 2015-02-18 Andrew Pinski <apinski@cavium.com>
22260 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
22262 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
22263 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
22265 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
22267 * ipa-visibility.c (function_and_variable_visibility): Only
22268 check locality if node is not already local.
22269 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
22270 call_for_symbol_and_aliases instead of
22271 call_for_symbol_thunks_and_aliases.
22272 (ipa_inline): Likewise.
22273 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
22274 first walk aliases.
22275 * ipa.c (symbol_table::remove_unreachable_nodes): Use
22276 call_for_symbol_and_aliases.
22277 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
22278 (ipa_propagate_frequency_1): Use it; use opt_for_fn
22279 (ipa_propagate_frequency): Update.
22280 (ipa_profile): Add opt_for_fn gueards.
22282 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
22284 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
22285 * doc/invoke.texi (SH options): Document it.
22286 * config/sh/sh.c (sh_insn_length_adjustment): Check
22287 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
22289 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
22291 * common.opt (fipa-cp-alignment): New.
22292 * ipa-cp.c (ipcp_store_alignment_results): Check
22293 flag_ipa_cp_alignment.
22294 * opts.c (default_options_table): Enable -fipa-cp-alignment for
22296 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
22297 * doc/invoke.texi: Document -fipa-cp-alignment.
22299 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
22302 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
22303 to nil. Adjust comments.
22305 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
22307 * ipa-visibility.c (function_and_variable_visibility): Only
22308 check locality if node is not already local.
22309 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
22310 call_for_symbol_and_aliases instead of
22311 call_for_symbol_thunks_and_aliases.
22312 (ipa_inline): Likewise.
22313 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
22314 first walk aliases.
22315 * ipa.c (symbol_table::remove_unreachable_nodes): Use
22316 call_for_symbol_and_aliases.
22317 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
22318 (ipa_propagate_frequency_1): Use it; use opt_for_fn
22319 (ipa_propagate_frequency): Update.
22320 (ipa_profile): Add opt_for_fn guards.
22322 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
22324 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
22325 skipping of "strange" tokens.
22327 2015-02-17 Jeff Law <law@redhat.com>
22329 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
22332 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
22334 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
22335 as forcing a HARD_DEP between instructions, thereby
22336 disallowing rewriting to break dependencies.
22338 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
22340 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
22341 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
22342 variables in boundary that have no inlitalizer encoded and are
22344 * varasm.c (default_binds_local_p_2): External definitions do not
22345 count as definitions here.
22347 2015-02-16 Jeff Law <law@redhat.com>
22349 PR tree-optimization/64823
22350 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
22352 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
22353 threading through blocks with PHIs, but no statements.
22354 (thread_through_normal_block): Distinguish between blocks where
22355 we did not process all the statements and blocks with no statements.
22357 2015-02-16 Jakub Jelinek <jakub@redhat.com>
22358 James Greenhalgh <james.greenhalgh@arm.com>
22361 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
22362 section if not linkonce. Fix up formatting.
22363 (cgraph_node::create_version_clone_with_body): Copy section.
22364 * trans-mem.c (ipa_tm_create_version): Likewise.
22366 2015-02-16 Richard Biener <rguenther@suse.de>
22368 PR tree-optimization/65077
22369 * tree-ssa-structalias.c (get_constraint_for_1): Handle
22370 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
22371 (find_func_aliases): Allow float values to carry pointers again.
22373 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22375 * doc/install.texi (Specific): Reorder targets list to put
22376 aarch64 in alphabetical order. Add a link to aarch64*-*-*
22379 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
22380 David Edelsohn <dje.gcc@gmail.com>
22383 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
22384 mapping class to external variable or function reference.
22385 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
22388 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
22391 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
22392 ASM_WEAKEN_DECL if defined.
22394 2015-02-16 Richard Biener <rguenther@suse.de>
22397 * varasm.c (default_file_start): For LTO produced units
22398 emit <artificial> as file directive.
22400 2015-02-16 Richard Biener <rguenther@suse.de>
22402 PR tree-optimization/63593
22403 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
22404 stmts and releasing SSA names until...
22405 (execute_pred_commoning): ... after processing all chains.
22407 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
22410 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
22411 external functions.
22413 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
22415 * doc/bugreport.texi: Adjust section titles throughout the file
22416 to use "Title Case".
22417 * doc/extend.texi: Likewise.
22418 * doc/gcov.texi: Likewise.
22419 * doc/implement-c.texi: Likewise.
22420 * doc/implement-cxx.texi: Likewise.
22421 * doc/invoke.texi: Likewise.
22422 * doc/objc.texi: Likewise.
22423 * doc/standards.texi: Likewise.
22424 * doc/trouble.texi: Likewise.
22426 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
22428 * cgraph.h (symtab_node::has_aliases_p): Simplify.
22429 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
22430 * tree.c (lookup_binfo_at_offset): Make static.
22431 (get_binfo_at_offset): Do not shadow offset; add explanatory
22434 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
22436 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
22437 for all floading point loads and stores except those using a register
22439 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
22442 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
22444 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
22445 (do_estimate_growth_1): Record if any uninlinable edge was seen.
22446 (estimate_growth): Handle uninlinable edges correctly.
22447 (check_callers): New.
22448 (growth_likely_positive): Handle aliases correctly.
22450 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
22452 * ipa-chkp.c: Use iterate_direct_aliases.
22453 * symtab.c (resolution_used_from_other_file_p): Move inline.
22454 (symtab_node::create_reference): Fix formating.
22455 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
22456 (symtab_node::iterate_reference): Move inline.
22457 (symtab_node::iterate_referring): Move inline.
22458 (symtab_node::iterate_direct_aliases): Move inline.
22459 (symtab_node::used_from_object_file_p_worker): Inline into ...
22460 (symtab_node::used_from_object_file_p): ... this one; move inline.
22461 (symtab_node::call_for_symbol_and_aliases): Move inline;
22462 use iterate_direct_aliases.
22463 (symtab_node::call_for_symbol_and_aliases_1): New method.
22464 (cgraph_node::call_for_symbol_and_aliases): Move inline;
22465 use iterate_direct_aliases.
22466 (cgraph_node::call_for_symbol_and_aliases_1): New method.
22467 (varpool_node::call_for_node_and_aliases): Rename to ...
22468 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
22469 use iterate_direct_aliases.
22470 (varpool_node::call_for_symbol_and_aliases_1): New method.
22471 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
22472 (ipa_discover_readonly_nonaddressable_var): Update.
22473 * ipa-devirt.c: Fix formating.
22474 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
22476 (cgraph_node::call_for_symbol_and_aliases): Move inline.
22477 (cgraph_node::call_for_symbol_and_aliases_1): New function..
22478 * cgraph.h (used_from_object_file_p_worker): Remove.
22479 (resolution_used_from_other_file_p): Move inline.
22480 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
22481 (symtab_node::iterate_reference): Move inline.
22482 (symtab_node::iterate_referring): Move inline.
22483 (symtab_node::iterate_direct_aliases): Move inline.
22484 (symtab_node::used_from_object_file_p_worker): Inline into ...
22485 (symtab_node::used_from_object_file_p): Move inline.
22486 * tree-emutls.c (ipa_lower_emutls): Update.
22487 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
22488 (varpool_node::call_for_node_and_aliases): Remove.
22490 2015-02-14 Jakub Jelinek <jakub@redhat.com>
22492 PR tree-optimization/62209
22493 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
22494 op == range->exp, insert seq and gimplified code after labels
22495 instead of after the phi.
22497 2015-02-13 Jeff Law <law@redhat.com>
22500 Revert my change for tree-optimization/64823.
22502 2015-02-13 Jakub Jelinek <jakub@redhat.com>
22504 PR tree-optimization/65053
22505 * tree-ssa-phiopt.c (value_replacement): When moving assign before
22506 cond, either reset VR on lhs or set it to phi result VR.
22508 2015-02-13 Jeff Law <law@redhat.com>
22510 PR tree-optimization/64823
22511 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
22512 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
22513 threading through blocks with PHIs, but no statements.
22514 (thread_through_normal_block): Distinguish between blocks where
22515 we did not process all the statements and blocks with no statements.
22517 PR rtl-optimization/47477
22518 * match.pd (convert (plus/minus (convert @0) (convert @1): New
22519 simplifier to narrow arithmetic.
22521 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
22524 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
22525 polymorphic call info when type is not known to be preserved.
22527 2015-02-13 Maritn Jambor <mjambor@suse.cz>
22530 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
22531 (inline_call): Use it.
22533 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
22535 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
22536 GOMP_DEVICE_NVIDIA_PTX.
22538 2015-02-13 Jakub Jelinek <jakub@redhat.com>
22541 * stmt.c (emit_case_nodes): Use void_type_node instead of
22542 NULL_TREE as LABEL_DECL type.
22544 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
22546 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
22548 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
22549 symbolic references to data to be forced to constant memory on the
22552 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
22554 PR tree-optimization/65002
22555 * tree-cfg.c (pass_data_fixup_cfg): Don't update
22557 * tree-sra.c (some_callers_have_no_vuse_p): New.
22558 (ipa_early_sra): Reject functions whose callers
22559 assume function is read only.
22561 2015-02-13 Richard Biener <rguenther@suse.de>
22564 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
22565 for LTO produced CUs.
22567 2015-02-13 Bin Cheng <bin.cheng@arm.com>
22569 PR tree-optimization/64705
22570 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
22571 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
22572 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
22573 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
22574 expand_simple_operations.
22576 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
22577 Richard Henderson <rth@redhat.com>
22580 * cgraphunit.c (cgraph_node::finalize_function): Set definition
22581 before notice_global_symbol.
22582 (varpool_node::finalize_decl): Likewise.
22583 * varasm.c (default_binds_local_p_2): Rename from
22584 default_binds_local_p_1, add weak_dominate argument. Use direct
22585 returns instead of assigning to local variable. Unify varpool and
22586 cgraph paths via symtab_node. Reject undef weak variables before
22587 testing visibility. Reorder tests for simplicity.
22588 (default_binds_local_p): Use default_binds_local_p_2.
22589 (default_binds_local_p_1): Likewise.
22590 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
22592 (default_elf_asm_output_external): Emit visibility when specified.
22594 2015-02-13 Alan Modra <amodra@gmail.com>
22596 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
22597 code setting up r11 for out-of-line fp restore.
22599 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
22601 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
22602 (muser-mode): Likewise.
22604 2015-02-13 Alan Modra <amodra@gmail.com>
22606 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
22607 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
22609 2015-02-12 David Howells <dhowells@redhat.com>
22611 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
22613 * tree-ssa-uninit.c (dump_predicates): Likewise.
22614 * opts.c (print_filtered_help): Likewise.
22616 2015-02-12 Jakub Jelinek <jakub@redhat.com>
22618 * dwarf2out.c (output_die): Use "%s", name instead of name to
22619 avoid -Wformat-security warning.
22621 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
22622 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
22623 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
22624 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
22626 2015-02-12 Jason Merrill <jason@redhat.com>
22628 * common.opt (-flifetime-dse): New.
22630 2015-02-12 Jakub Jelinek <jakub@redhat.com>
22633 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
22635 PR tree-optimization/65014
22636 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
22637 use original second operand of arg0 or arg1 instead of
22638 that adjusted by STRIP_NOPS.
22640 2015-02-11 Jeff Law <law@redhat.com>
22643 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
22644 that needs to be queued, just queue it for a single cycle.
22646 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
22648 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
22649 bodies of thunks; comment on why.
22650 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
22651 symbols are extern.
22653 2015-02-11 Richard Henderson <rth@redhat.com>
22656 * tree-eh.c (mark_reachable_handlers): Mark source and destination
22657 regions of __builtin_eh_copy_values.
22659 2015-02-11 Jakub Jelinek <jakub@redhat.com>
22661 PR middle-end/65003
22662 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
22663 ultimate alias is MEM with SYMBOL_REF satisfying
22664 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
22665 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
22667 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
22669 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
22670 "diagnostic-core.h".
22671 (main): Initialize progname, and call diagnostic_initialize.
22673 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
22674 instead of __OPENMP_TARGET__.
22676 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
22677 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
22678 hard-coding PTX_ID.
22680 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
22682 * doc/sourcebuild.texi (pie_enabled): Document.
22684 2015-02-11 Martin Liska <mliska@suse.cz>
22687 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
22688 a return value for call to a function that is noreturn.
22690 2015-02-11 Richard Biener <rguenther@suse.de>
22693 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
22696 2015-02-11 Andrew Pinski <apinski@cavium.com>
22699 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
22700 Change the first argument type to size_type_node and add another
22702 (aarch64_simd_expand_builtin): Handle the new argument to
22703 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
22704 print an out when the first two arguments are not
22705 nonzero integer constants.
22706 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
22707 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
22709 2015-02-11 Jakub Jelinek <jakub@redhat.com>
22712 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
22713 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
22714 (ix86_set_current_function): Rewritten.
22715 (ix86_add_new_builtins): Temporarily clear current_target_pragma
22716 when creating builtin fndecls.
22718 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
22721 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
22723 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
22724 have no comdat group.
22725 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
22726 (lto_output_varpool_node): Always output alias info.
22727 (output_refs): Output refs of boundary aliases, too.
22728 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
22729 (output_symtab): Output call eges in thunks in boundary.
22730 (get_alias_symbol): Remove.
22731 (input_node, input_varpool_node): Do not special case weakrefs.
22732 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
22733 alias and thunks targets in the boundary; do not take removed symbols
22734 from their comdat groups.
22735 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
22736 (cgraph_node::global_info): Remove.
22737 (cgraph_node::rtl_info): Look through aliases and thunks.
22738 * cgrpah.h (global_info): Remove.
22739 (non_local_p): Remove.
22741 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
22742 Sandra Loosemore <sandra@codesourcery.com>
22744 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
22745 to inline asm. List dialects in proper order.
22747 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
22748 Sandra Loosemore <sandra@codesourcery.com>
22750 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
22752 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
22754 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
22755 modified) reference to Solaris.
22757 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
22759 * doc/extend.texi (Extended Asm): Fix typos.
22761 2015-02-10 Jakub Jelinek <jakub@redhat.com>
22764 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
22766 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
22769 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
22770 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
22771 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
22772 * config/sh/constraints.md (Ara, Add): New constraints.
22773 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
22775 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
22776 atomic_mem_operand_0. Don't use force_reg on the memory address.
22777 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
22778 Sra constraint. Convert to insn_and_split. Add workaround for
22780 (atomic_compare_and_swap<mode>_hard): Copy to
22781 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
22782 Use atomic_mem_operand_0 predicate.
22783 (atomic_compare_and_swap<mode>_soft_gusa,
22784 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
22785 AraAdd constraints.
22786 (atomic_compare_and_swap<mode>_soft_tcb,
22787 atomic_compare_and_swap<mode>_soft_imask,
22788 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
22789 atomic_mem_operand_0 predicate and SraSdd constraints.
22790 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
22792 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
22793 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
22794 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
22795 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
22796 force_reg on the memory address.
22797 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
22798 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
22799 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
22800 atomic_mem_operand_1 predicate and Sra constraint.
22801 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
22802 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
22803 Use atomic_mem_operand_1 predicate.
22804 (atomic_<fetchop_name><mode>_hard): Copy to
22805 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
22806 Use atomic_mem_operand_1 predicate.
22807 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
22808 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
22809 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
22810 insn_and_split. Use atomic_mem_operand_1 predicate.
22811 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
22812 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
22813 Use atomic_mem_operand_1 predicate.
22814 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
22815 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
22816 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
22817 in generated insn with original mem operand before emitting the insn.
22818 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
22819 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
22820 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
22821 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
22822 Use atomic_mem_operand_1 predicate and AraAdd constraints.
22823 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
22824 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
22825 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
22826 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
22827 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
22828 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
22829 atomic_not_fetch<mode>_soft_tcb,
22830 atomic_<fetchop_name>_fetch<mode>_soft_imask,
22831 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
22832 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
22833 Use atomic_mem_operand_1 predicate and SraSdd constraints.
22835 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
22837 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
22838 and 3 earlyclobber operands.
22840 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
22842 * common.opt (fstack-reuse): Mark as optimization.
22844 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
22847 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
22849 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
22851 PR tree-optimization/64326
22852 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
22854 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
22856 PR gcov-profile/61889
22857 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
22859 2015-02-10 Richard Biener <rguenther@suse.de>
22861 PR tree-optimization/64995
22862 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
22863 value we use is final.
22864 (visit_reference_op_store): Always valueize op.
22865 (visit_use): Properly valueize vuses.
22867 2015-02-10 Richard Biener <rguenther@suse.de>
22869 PR tree-optimization/64909
22870 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
22871 pass a scalar-stmt count estimate to the cost model.
22872 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
22874 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
22876 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
22877 enabled by default together with var-tracking.
22879 2015-02-10 Nick Clifton <nickc@redhat.com>
22881 * config/rl78/rl78.c: Remove DIV attribute code accidentally
22882 included in previous rl78 commit.
22884 2015-02-10 Richard Biener <rguenther@suse.de>
22886 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
22887 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
22888 return the bitpack.
22890 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
22892 PR gcov-profile/61889
22893 * config.in: regenerate.
22894 * configure.in: Likewise.
22895 * configure.ac: Check for ftw.h.
22896 * gcov-tool.c: Check for ftw.h before using nftw.
22898 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
22901 * ipa-visibility.c (update_visibility_by_resolution_info): Only
22902 assert when not in lto mode.
22904 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
22906 * ira-color.c (setup_left_conflict_sizes_p): Simplify
22907 initialization/assignment of conflict_size.
22909 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
22912 * ipa-cp.c (gather_caller_stats): Skip thunks.
22913 (propagate_constants_topo): Skip aliases.
22915 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
22918 * config/sh/sh.c (sh_option_override): Don't change
22919 -freorder-blocks-and-partition to -freorder-blocks even when
22920 unwinding is enabled.
22921 (sh_can_follow_jump): Return false if the followee jump is
22922 a crossing jump when -freorder-blocks-and-partition is specified.
22923 * config/sh/sh.md (*jump_compact_crossing): New insn.
22925 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
22926 Kaz Kojima <kkojima@gcc.gnu.org>
22929 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
22930 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
22931 (sh_can_redirect_branch): Rename to ...
22932 (sh_can_follow_jump): ... this. Constify argument types.
22933 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
22934 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
22935 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
22936 * doc/tm.texi: Regenerate.
22938 2015-02-09 Jakub Jelinek <jakub@redhat.com>
22941 * builtins.c (expand_builtin): Call targetm.expand_builtin
22942 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
22944 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22947 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
22949 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22952 * ipa-icf.c (set_local): New function.
22953 (sem_function::merge): Use it.
22955 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22957 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
22958 (add_type_duplicate): Fix comparison of BINFOs.
22960 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22962 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
22963 on getting VOID pointer.
22965 2015-02-09 Jakub Jelinek <jakub@redhat.com>
22968 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
22971 2015-02-09 Richard Biener <rguenther@suse.de>
22973 * genmatch.c (replace_id): Copy expr_type.
22975 2015-02-09 Richard Biener <rguenther@suse.de>
22977 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
22978 (streamer_write_tree_bitfields): Declare.
22979 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
22980 properly unpack padding.
22981 (unpack_value_fields): Inline ...
22982 (streamer_read_tree_bitfields): ... here.
22983 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
22984 and properly add padding bits.
22985 (streamer_pack_tree_bitfields): Fold into ...
22986 (streamer_write_tree_bitfields): ... this new function,
22987 exposing the bitpack object.
22988 * lto-streamer-out.c (lto_write_tree_1): Call
22989 streamer_write_tree_bitfields.
22991 2015-02-09 Richard Biener <rguenther@suse.de>
22993 PR tree-optimization/54000
22994 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
22995 (struct ivopts_data): Add loop_loc member.
22996 (tree_ssa_iv_optimize_loop): Dump loop location.
22997 (create_new_ivs): Likewise, also dump number of IVs generated.
22999 2015-02-09 Martin Liska <mliska@suse.cz>
23001 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
23002 just if not yet registered.
23003 (ipa_icf_generate_summary): Register callgraph hooks.
23005 2015-02-08 Andrew Pinski <apinski@cavium.com>
23007 * config/aarch64/aarch64.c (gty_dummy): Delete.
23009 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
23012 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
23013 (cgraph_node::local_p): Remove thunk related FIXME.
23015 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
23018 * i386.c (ix86_function_regparm): Look through aliases to see if callee
23019 is local and optimized.
23020 (ix86_function_sseregparm): Likewise; also use target's SSE math
23021 settings; error out instead of silently generating wrong code
23023 (init_cumulative_args): Look through aliases.
23025 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
23028 * ipa-split.c (execute_split_functions): Split if function has aliases.
23030 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
23033 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
23034 aliases before trying to expand it.
23035 (cgraph_node::expand_thunk): Fix formating.
23037 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
23039 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
23040 (Using Assembly Language with C): Expand introduction.
23041 (Basic Asm): Copy-edit. Add more information about uses of
23043 (Extended Asm): Copy-edit. Document new escape syntax and
23045 (Global Reg Vars): Copy-edit.
23046 (Local Reg Vars): Likewise.
23048 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
23052 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
23053 (DBX_CONTIN_CHAR): Define.
23055 2015-02-06 Sebastian Pop <s.pop@samsung.com>
23056 Brian Rzycki <b.rzycki@samsung.com>
23058 PR tree-optimization/64878
23059 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
23060 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
23061 Stop recursion at loop phi nodes after having visited a loop phi node.
23063 2015-02-06 Jakub Jelinek <jakub@redhat.com>
23065 * toplev.c (process_options): Change flag_ipa_ra before creating
23066 optimization_{default,current}_node.
23069 * cgraphunit.c (cgraph_node::expand_thunk): If
23070 restype is not is_gimple_reg_type nor the thunk_fndecl
23071 returns aggregate_value_p, set restmp to a temporary variable
23072 instead of resdecl.
23074 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
23076 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
23078 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
23081 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
23082 add a general secondary reload handler for SDmode, unless we have
23083 both read/write support for SDmode.
23085 2015-02-06 Jakub Jelinek <jakub@redhat.com>
23087 PR middle-end/64937
23088 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
23089 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
23090 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
23091 1 before, push it to abstract_vec.
23092 (dwarf2out_abstract_function): Adjust caller. Don't call
23093 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
23094 DECL_ABSTRACT_P flags for all abstract_vec elts.
23096 2015-02-06 Renlin Li <renlin.li@arm.com>
23098 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
23100 * tree-ssa.c (execute_update_addresses_taken): Likewise.
23102 2015-02-06 Jeff Law <law@redhat.com>
23105 * config/h8300/h8300.c (push): New argument "in_prologue".
23106 Pass "in_prologue" along to "F".
23107 (h8300_push_pop): Corresponding changes.
23108 (h8300_expand_prologue): Likewise.
23109 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
23111 2015-02-06 Jakub Jelinek <jakub@redhat.com>
23113 PR rtl-optimization/64957
23115 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
23116 IOR rather than for AND.
23118 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
23121 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
23122 of shift-add and (add + shift) operations. Rename local variable.
23124 2015-02-05 Jeff Law <law@redhat.com>
23127 * config/h8300/constraints.md (U): Correctly dectect
23128 "eightbit_data" memory addresses.
23129 * config/h8300/h8300.c (eightbit_constant_address_p): Also
23130 handle (const (plus (symbol_ref (x)))) where x is declared
23131 as an 8-bit data memory address.
23132 * config/h8300/h8300.md (call, call_value): Correctly detect
23133 "funcvec" functions.
23136 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
23137 24 to 28 bits for the H8/300.
23139 2015-02-06 Alan Modra <amodra@gmail.com>
23142 * config/rs6000/rs6000.c (chain_already_loaded): New function.
23143 (rs6000_call_aix): Use it.
23145 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
23147 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
23150 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
23152 * config/h8300/constraints.md ("U" constraint): Use strict
23153 variant of REG_OK_FOR_BASE_P after reload has started.
23155 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
23157 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
23158 define to zero if !TARGET_NEON.
23159 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
23161 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23162 Trevor Saunders <tsaunders@mozilla.com>
23165 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
23167 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23170 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
23171 when removing varpool nodes.
23173 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23176 * varpool.c (varpool_node::remove): Fix order of variables.
23178 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23181 * ipa-inline.c (inline_small_functions): Fix ordering issue between
23182 speculation resolution and key updates.
23184 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23186 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
23187 about not letting any speculative edges unupdated.
23189 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23192 * gcov-io.c (gcov_var): Export.
23194 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23196 PR middle-end/64922
23197 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
23198 edges that become speculative.
23200 2015-02-04 Jakub Jelinek <jakub@redhat.com>
23202 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
23203 or DW_LANG_Fortran08.
23204 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
23206 (gen_compile_unit_die): Handle "GNU Fortran2003" and
23207 "GNU Fortran2008" language strings.
23208 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
23209 * langhooks.h (lang_GNU_Fortran): New prototype.
23210 * langhooks.c (lang_GNU_Fortran): New function.
23211 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
23214 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
23216 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
23217 (RTX_OK_FOR_OLO10_P): Likewise.
23219 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
23221 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
23223 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23225 PR middle-end/64922
23226 * gimple.c: Include gimple-ssa.h.
23227 (maybe_remove_unused_call_args): New function.
23228 * gimple.h (maybe_remove_unused_call_args): Declare.
23229 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
23230 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
23231 * gimple-fold.c (gimple_fold_call): Likewise.
23233 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
23235 PR rtl-optimization/64905
23236 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
23237 pointer alignment if it isn't needed.
23239 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
23241 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
23242 cortex-a72.cortex-a53.
23243 * config/aarch64/aarch64-tune.md: Regenerate.
23244 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
23246 2015-02-04 Nick Clifton <nickc@redhat.com>
23248 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
23251 2015-02-04 Jakub Jelinek <jakub@redhat.com>
23253 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
23254 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
23255 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
23257 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
23258 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
23259 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
23260 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
23261 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
23262 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
23263 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
23264 * tree-core.h (enum built_in_function): In between
23265 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
23266 for builtins that use DEF_BUILTIN_CHKP macro.
23268 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
23271 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
23272 operands for tcc_comparison exprs. Fix typos.
23275 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
23276 of two XORs that have an intervening AND or IOR.
23279 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
23280 simplification of XOR of AND to not allocate new rtx before
23281 committing to a simplification.
23283 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23285 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
23286 manual swaps in all peepholes.
23288 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23290 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
23291 of manual swapping implementation.
23292 (aarch64_expand_vec_perm_const_1): Likewise.
23294 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
23296 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
23297 (generic_addrcost_table): Remove NAMED_PARAM.
23298 (cortexa57_addrcost_table): Likewise.
23299 (xgene1_addrcost_table): Likewise.
23300 (generic_regmove_table): Likewise.
23301 (cortexa53_regmove_table): Likewise.
23302 (xgene1_regmove_table): Likewise.
23303 (generic_vector_table): Likewise.
23304 (cortexa57_vector_table): Likewise.
23305 (xgene1_vector_table): Likewise.
23306 (generic_tunings): Likewise.
23307 (cortexa53_tunings): Likewise.
23308 (cortexa57_tunings): Likewise.
23309 (xgene1_tunings): Likewise.
23311 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
23313 * config/arm/arm-cores.def: Add cortex-a72 and
23314 cortex-a72.cortex-a53.
23315 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
23316 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
23317 * config/arm/arm-tune.md: Regenerate.
23318 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
23319 "cortex-a72.cortex-a53".
23320 * doc/invoke.texi (ARM Options/-mtune): Likewise.
23322 2015-02-04 Nick Clifton <nickc@redhat.com>
23325 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
23327 (nonimmediate_di_operand): Likewise.
23329 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
23330 prefixes of known F5 using MSP430 MCUs.
23332 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23334 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
23335 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
23336 instead of __builtin_sqrt.
23338 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
23340 * varasm.c (do_assemble_alias): Follow transparent alias
23342 (default_assemble_visibility): Follow transparent alias
23343 chain for decl name.
23345 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
23347 PR middle-end/62103
23348 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
23349 to compute size of referenced value in the constant case.
23351 2015-02-03 Jakub Jelinek <jakub@redhat.com>
23353 PR rtl-optimization/64756
23354 * cse.c (invalidate_dest): New function.
23355 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
23356 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
23357 invalidate and do not record it.
23359 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
23362 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
23363 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
23364 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
23365 atomic_nand<mode>_soft_tcb): New insns.
23366 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
23367 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
23368 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
23369 Split into atomic_not_fetchsi_hard if operands[0] is unused.
23370 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
23371 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
23372 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
23373 atomic_not<mode>_hard if operands[0] is unused.
23374 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
23375 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
23376 if operands[0] is unused.
23377 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
23378 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
23379 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
23380 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
23382 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
23383 into atomic_not<mode>_soft_tcb if operands[0] is unused.
23384 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
23385 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
23386 if operands[0] is unused.
23387 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
23388 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
23389 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
23390 atomic_nand_fetchsi_hard if operands[0] is unused.
23391 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
23392 atomic_nand<mode>_hard if operands[0] is unused.
23393 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
23394 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
23395 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
23396 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
23397 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
23398 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
23399 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
23400 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
23401 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
23402 atomic_not<mode>_hard if operands[0] is unused.
23403 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
23404 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
23406 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
23407 into atomic_not<mode>_soft_tcb if operands[0] is unused.
23408 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
23409 atomic_nand<mode>_hard if operands[0] is unused.
23410 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
23411 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
23413 2015-02-03 David Malcolm <dmalcolm@redhat.com>
23416 * Makefile.in (GCC_OBJS): Add gcc-main.o.
23417 * gcc-main.c: New file, containing "main" taken from gcc.c.
23418 * gcc.c (do_self_spec): Free decoded_options.
23419 (class driver): Move declaration to gcc.h.
23420 (main): Move declaration and implementation to new file
23422 (driver_get_configure_time_options): New function.
23423 * gcc.h (class driver): Move this declaration here, from
23425 (driver_get_configure_time_options): New declaration.
23427 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
23429 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
23430 cross-module inlining.
23431 * cgraph.h (cgraph_node): Add flag merged.
23432 * ipa-icf.c (sem_function::merge): Maintain it.
23434 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
23436 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
23437 instead of OBJECT_P.
23439 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
23442 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
23443 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
23444 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
23445 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
23447 2015-02-03 Jakub Jelinek <jakub@redhat.com>
23450 * combine.c (reg_n_sets_max): New variable.
23451 (can_change_dest_mode, reg_nonzero_bits_for_combine,
23452 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
23453 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
23454 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
23455 (rest_of_handle_combine): Initialize reg_n_sets_max.
23457 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
23459 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
23460 if some always_inline was inlined, apply changes before inlining
23463 2015-02-02 David Malcolm <dmalcolm@redhat.com>
23466 * config/arm/arm.c (arm_option_override): Set
23467 arm_selected_arch/cpu/tune to NULL on entry.
23469 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
23470 Andrew Pinski <pinskia@gcc.gnu.org>
23471 Jakub Jelinek <jakub@gcc.gnu.org>
23474 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
23475 integer typing for small model. Use IN_RANGE.
23477 2015-02-02 Richard Biener <rguenther@suse.de>
23479 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
23480 * tree-vrp.c (vrp_valueize_1): Likewise.
23482 2015-02-02 Alan Modra <amodra@gmail.com>
23484 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
23485 than mem for toc_restore.
23486 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
23487 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
23488 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
23490 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
23493 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
23494 explicit default options.
23496 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
23499 * ipa-utils.c (ipa_merge_profiles): Add release argument.
23500 * ipa-icf.c (sem_function::merge): Do not release body when merging.
23501 * ipa-utils.h (ipa_merge_profiles): Update prototype.
23503 2015-02-01 Jakub Jelinek <jakub@redhat.com>
23506 * cfgexpand.c (deep_ter_debug_map): New variable.
23507 (avoid_deep_ter_for_debug): New function.
23508 (expand_debug_expr): If TERed SSA_NAME is in
23509 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
23510 instead of trying to expand SSA_NAME's def stmt.
23511 (expand_debug_locations): When expanding debug bind
23512 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
23513 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
23515 (pass_expand::execute): Call avoid_deep_ter_for_debug on
23516 all debug bind stmts. Delete deep_ter_debug_map after
23517 expand_debug_location if non-NULL and clear it.
23519 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
23522 * config/sh/sync.md (atomic_fetch_notsi_hard,
23523 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
23524 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
23525 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
23526 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
23527 atomic_not_fetch<mode>_soft_imask): New insns.
23529 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23531 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
23532 (rank_for_schedule_debug): Split from ...
23533 (rank_for_schedule): ... this.
23534 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
23535 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
23537 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
23539 * doc/md.texi (Machine Constraints): Alphabetize table by target.
23540 * doc/extend.texi (x86 Variable Attributes): Move section to
23541 correct alphabetization after renaming.
23542 (x86 Type Attributes): Likewise.
23543 (Target Builtins): Re-alphabetize menu.
23544 (x86 Built-in Functions): Move section to correct alphabetization
23546 (x86 transactional memory intrinsics): Likewise.
23547 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
23548 and x86 Windows Options in table and menu.
23549 (x86 Options): Move section to correct alphabetization after
23551 (x86 Windows Options): Likewise.
23553 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
23555 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
23556 preferred names of the architecture and its 32- and 64-bit
23558 * doc/invoke.texi: Likewise.
23559 * doc/md.texi: Likewise.
23561 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
23564 * config/i386/predicates.md (address_no_seg_operand): Reject
23565 non-CONST_INT_P operands in invalid mode.
23567 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
23569 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
23570 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
23571 * config/i386/predicates.md (address_no_seg_operand): Call
23572 address_operand with VOIDmode.
23573 (vsib_address_operand): Ditto.
23574 (address_mpx_no_base_operand): Ditto.
23575 (address_mpx_no_index_operand): Ditto.
23577 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
23580 * lra-constraints.c (original_subreg_reg_mode): New.
23581 (simplify_operand_subreg): Try to simplify subreg of const. Use
23582 original_subreg_reg_mode for it.
23583 (swap_operands): Update original_subreg_reg_mode.
23584 (curr_insn_transform): Set up original_subreg_reg_mode.
23586 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
23589 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
23591 (process_alt_operands): Use it.
23592 (curr_insn_transform): Check the optional reload pseudo class is
23595 2015-01-30 Joseph Myers <joseph@codesourcery.com>
23597 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
23598 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
23600 * toplev.h (init_asm_output): Update comment on use of
23601 UNKNOWN_LOCATION with fatal_error.
23602 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
23603 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
23604 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
23605 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
23606 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
23607 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
23608 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
23609 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
23610 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
23611 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
23612 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
23613 fatal_error changed to pass input_location as first argument.
23615 2015-01-30 Martin Liska <mliska@suse.cz>
23617 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
23618 in #pragma GCC diagnostic guards.
23620 2015-01-30 Richard Biener <rguenther@suse.de>
23622 PR tree-optimization/64829
23623 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
23624 not add a widening conversion pattern but hand off extra
23625 widenings to callers.
23626 (vect_recog_widen_mult_pattern): Handle extra widening produced
23627 by vect_handle_widen_op_by_const.
23628 (vect_recog_widen_shift_pattern): Likewise.
23629 (vect_pattern_recog_1): Remove excess vertical space in dumping.
23630 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
23631 (vect_init_vector_1): Likewise.
23632 (vect_get_vec_def_for_operand): Likewise.
23633 (vect_finish_stmt_generation): Likewise.
23634 (vectorizable_load): Likewise.
23635 (vect_analyze_stmt): Likewise.
23636 (vect_is_simple_use): Likewise.
23638 2015-01-29 Jeff Law <law@redhat.com>
23640 * combine.c (try_combine): Fix typo in comment.
23642 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
23645 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
23646 (rs6000_stack_info): Add assert.
23647 (rs6000_output_savres_externs): New function, split off from...
23648 (rs6000_output_function_prologue): ... here. Do not call it for
23651 2015-01-29 Jeff Law <law@redhat.com>
23654 * combine.c (try_combine): If I0 is a memory load and I3 a store
23655 to a related address, increase the "goodness" of doing a 4-insn
23656 combination with I0-I3.
23657 (make_field_assignment): Handle SUBREGs in the ior+and case.
23659 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
23661 PR tree-optimization/64746
23662 * tree-if-conv.c (mask_exists): New function.
23663 (predicate_mem_writes): Save created mask with given size for further
23665 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
23666 (ifcvt_repair_bool_pattern): Collect all statements that are root
23667 of bool pattern and use iterative algorithm to remove multiple uses
23668 of predicates, display number of required iterations.
23670 2015-01-29 Richard Biener <rguenther@suse.de>
23672 PR tree-optimization/64853
23673 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
23674 stmt will get simulated again.
23675 * tree-ssa-ccp.c (valueize_op_1): Likewise.
23677 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23679 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
23680 return_in_pc. Remove redundant assignments.
23681 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
23682 (arm_expand_epilogue): Don't compare boolean with true in if condition.
23684 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
23686 * config/i386/i386.c (ix86_mode_after): Make static.
23688 2015-01-29 Richard Biener <rguenther@suse.de>
23690 PR tree-optimization/64844
23691 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
23692 dump cost model analysis.
23693 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
23694 Do not register adjusted load/store costs here.
23696 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
23697 Uros Bizjak <ubizjak@gmail.com>
23699 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
23700 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
23701 using x86_use_pseudo_pic_reg.
23702 * config/i386/i386.c (ix86_conditional_register_usage): Remove
23703 support for fixed PIC register.
23704 (ix86_use_pseudo_pic_reg): Not static any more.
23706 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
23708 PR middle-end/64805
23709 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
23710 to avoid error in cgraph node verification.
23712 2015-01-29 Marek Polacek <polacek@redhat.com>
23714 * doc/standards.texi: Reflect that the default for C is gnu11.
23716 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
23719 * reorg.c (switch_text_sections_between_p): New function.
23720 (relax_delay_slots): Call it when testing if the jump insn
23721 is removable. Use targetm.can_follow_jump when testing if
23722 the conditional branch can follow an unconditional jump.
23724 2015-01-27 Caroline Tice <cmtice@google.com>
23726 Committing VTV Cywin/Ming patch for Patrick Wollgast
23727 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
23728 if -fvtable-verify=preinit/std is used.
23729 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
23730 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
23731 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
23732 if -fvtable-verify=preinit/std is used.
23733 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23734 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
23735 if -fvtable-verify=preinit/std is used.
23736 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
23737 * config/i386/mingw32.h (LIB_SPEC): Likewise.
23738 * varasm.c (assemble_variable): Add code to properly set the comdat
23739 section and name for the .vtable_map_vars section in case the
23740 target is PE or COFF.
23742 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
23745 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
23746 make sane BB profile.
23747 (cgraph_node::expand_thunk): Make sane BB profile.
23748 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
23749 * cgraph.h (init_lowered_empty_function): Update prototype.
23750 * config/i386/i386.c (make_resolver_func): Update call.
23751 * predict.c (gate): Disable branch prediction pass if
23752 profile is already there.
23754 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
23756 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
23757 * opth-gen.awk: Likewise.
23758 * common.opt: Mark flag_fp_contract_mode as Optimization.
23760 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
23762 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
23763 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
23765 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
23768 * config/sh/predicates.md (atomic_arith_operand,
23769 atomic_logical_operand): Remove.
23770 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
23771 (atomic_arith_operand_0): New predicate.
23772 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
23773 Use atomic_arith_operand_0 for input values.
23774 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
23775 atomic_compare_and_swap<mode>_soft_gusa,
23776 atomic_compare_and_swap<mode>_soft_tcb,
23777 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
23778 arith_reg_operand instead of register_operand.
23779 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
23780 atomic_arith_operand_0 for newval input.
23781 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
23782 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
23783 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
23784 arith_reg_operand instead of register_operand.
23785 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
23786 fetchop_predicate_1, fetchop_constraint_1_llcs,
23787 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
23788 fetchop_constraint_1_imask): New code iterator attributes.
23789 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
23790 register_operand. Use fetchop_predicate_1.
23791 (atomic_fetch_<fetchop_name>si_hard,
23792 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
23793 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
23794 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
23795 and arith_reg_operand instead of register_operand. Use
23796 fetchop_predicate_1, fetchop_constraint_1_gusa.
23797 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
23798 and arith_reg_operand instead of register_operand. Use
23799 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
23801 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
23802 and arith_reg_operand instead of register_operand. Use
23803 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
23805 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
23806 register_operand. Use atomic_logical_operand_1.
23807 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
23808 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
23809 arith_reg_operand instead of register_operand.
23810 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
23811 Use arith_reg_dest and arith_reg_operand instead of register_operand.
23812 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
23813 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
23814 register_operand. Use fetchop_predicate_1.
23815 (atomic_<fetchop_name>_fetchsi_hard,
23816 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
23817 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
23818 fetchop_constraint_1_llcs.
23819 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
23820 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
23821 fetchop_constraint_1_gusa.
23822 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
23823 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
23824 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
23825 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
23826 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
23827 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
23828 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
23829 register_operand. Use atomic_logical_operand_1.
23830 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
23831 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
23832 arith_reg_operand instead of register_operand.
23833 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
23834 arith_reg_operand instead of register_operand. Use logical_operand
23835 and K08. Adjust asm sequence to allow R0 usage.
23836 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
23837 arith_reg_operand instead of register_operand. Use logical_operand
23840 2015-01-28 Jakub Jelinek <jakub@redhat.com>
23843 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
23844 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
23845 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
23846 only get_full_len HOST_WIDE_INTs from get_val () array rather than
23847 all bits in *val_wide.
23849 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
23851 * varpool.c (tls_model_names): Fix names.
23852 (varpool_node::dump): Dump tls- prefix for tls models.
23854 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
23855 Bernd Schmidt <bernds@codesourcery.com>
23856 Nathan Sidwell <nathan@codesourcery.com>
23858 * config/nvptx/mkoffload.c: New file.
23859 * config/nvptx/t-nvptx: Add build rules for it.
23860 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
23861 (extra_programs): Add mkoffload.
23862 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
23864 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
23866 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
23868 PR middle-end/64809
23869 * cfgexpand.c (reorder_operands): Skip debug gimples.
23871 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
23873 PR tree-optimization/64277
23874 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
23875 range info when possible to refine estimation.
23877 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
23879 PR tree-optimization/64718
23880 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
23881 be a 16bit unsigned integer when n->range is 16.
23882 (bswap_replace): Convert src to that type if necessary for all bswap
23883 sizes. Fix rotation right notation in nearby comment. Use bswap_type
23884 set in pass_optimize_bswap::execute ().
23886 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
23888 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
23889 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
23890 integer and floating point variants.
23891 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
23893 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
23895 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
23896 for all vector modes.
23898 2015-01-28 Jakub Jelinek <jakub@redhat.com>
23901 * doc/sourcebuild.texi (comdat_group): Document.
23903 2015-01-28 Terry Guo <terry.guo@arm.com>
23905 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
23907 2015-01-27 David Malcolm <dmalcolm@redhat.com>
23909 * toplev.c (print_version): Add param "show_global_state", and
23910 only print GGC and plugin information if it is true.
23911 (init_asm_output): Pass in "true" for the new param when calling
23913 (process_options): Likewise.
23914 (toplev::main): Likewise.
23915 * toplev.h (print_version): Add new param to decl.
23917 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
23921 * tree.c (lookup_binfo_at_offset): New function.
23922 (get_binfo_at_offset): Use it.
23924 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
23927 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
23928 on vtable being vtable.
23930 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
23932 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
23933 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
23934 -mhotpatch= option.
23935 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
23936 -mno-hotpatch options. Change syntax of -mhotpatch= option.
23937 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
23939 (s390_hotpatch_trampoline_halfwords_max): Renamed.
23940 (s390_hotpatch_hw_max): New name.
23941 (s390_hotpatch_trampoline_halfwords): Renamed.
23942 (s390_hotpatch_hw_before_label): New name.
23943 (get_hotpatch_attribute): Removed.
23944 (s390_hotpatch_hw_after_label): New name.
23945 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
23947 (s390_attribute_table): Ditto.
23948 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
23949 (s390_function_num_hotpatch_hw): New name.
23950 Remove special handling of inline functions and hotpatching.
23951 Return number of nops before and after the function label.
23952 (s390_can_inline_p): Removed.
23953 (s390_asm_output_function_label): Emit a configurable number of nops
23954 after the function label.
23955 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
23956 (TARGET_CAN_INLINE_P) Removed.
23957 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
23959 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23960 Jiong Wang <jiong.wang@arm.com>
23962 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
23964 (cb<optab><mode>1): Likewise.
23965 * config/aarch64/iterators.md (bcond): New define_code_attr.
23967 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23969 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
23972 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23974 * config/s390/s390.c (s390_register_move_cost): Increase costs for
23977 2015-01-27 Richard Biener <rguenther@suse.de>
23979 * tree-vrp.c (update_value_range): Intersect the range with
23980 old recorded SSA name range information.
23982 2015-01-27 Nick Clifton <nickc@redhat.com>
23984 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
23985 BC, DE and HL registers directly, not via AX.
23986 When decrementing the stack pointer by a large amount, transfer SP
23987 into AX and perform the subtraction there.
23988 (rl78_expand_epilogue): Perform the inverse of the above
23991 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23993 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
23995 2015-01-27 Jakub Jelinek <jakub@redhat.com>
23996 Yury Gribov <y.gribov@samsung.com>
23999 * ubsan.c (ubsan_source_location): Refactor code.
24000 (ubsan_type_descriptor): Update type size. Refactor code.
24002 2015-01-27 Richard Biener <rguenther@suse.de>
24004 PR tree-optimization/56273
24005 PR tree-optimization/59124
24006 PR tree-optimization/64277
24007 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
24008 from the first VRP pass.
24010 2015-01-27 Jakub Jelinek <jakub@redhat.com>
24013 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
24014 handle the first argument in the same loop as all the other arguments.
24016 PR rtl-optimization/61058
24017 * jump.c (cleanup_barriers): Update basic block boundaries
24018 if BLOCK_FOR_INSN is non-NULL on PREV.
24020 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
24022 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
24023 bounds narrowing, already instrumented calls and calls to
24024 not instrumentable functions.
24026 2015-01-27 Jakub Jelinek <jakub@redhat.com>
24028 PR tree-optimization/64807
24029 * wide-int.cc (wi::divmod_internal): Clear
24030 b_dividend[dividend_blocks_needed].
24032 2015-01-26 DJ Delorie <dj@redhat.com>
24034 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
24035 volatile memory references.
24037 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
24040 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
24042 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
24043 shifts if it already fits into K08.
24045 2015-01-26 Jakub Jelinek <jakub@redhat.com>
24048 * ipa-inline.c (inline_small_functions): Print "unknown" even
24049 if edge->call_stmt is non-NULL, but has builtins or unknown
24052 PR middle-end/64421
24053 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
24054 with asterisk, skip the first character.
24056 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
24059 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
24062 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
24065 * config/i386/i386.md (*movdi_internal): Also check operand 0
24066 to determine TYPE_LEA operand.
24067 (*movsi_internal): Ditto.
24069 2015-01-26 Jakub Jelinek <jakub@redhat.com>
24071 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
24072 OPTION_MASK_QUAD_MEMORY_ATOMIC.
24074 2015-01-26 Renlin Li <renlin.li@arm.com>
24076 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
24078 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
24081 2015-01-26 Richard Biener <rguenther@suse.de>
24083 PR middle-end/64764
24084 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
24085 combining two BIT_AND_EXPR predicates.
24087 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
24090 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
24092 2015-01-26 Terry Guo <terry.guo@arm.com>
24094 * config/arm/arm.c (arm_file_start): Update the assignment of
24095 Tag_ABI_HardFP_use.
24097 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
24099 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
24101 config/arm/arm.md: Include the new Cortex-A57 model.
24102 (generic_sched): Don't use generic_sched when tuning for
24105 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
24106 Uros Bizjak <ubizjak@gmail.com>
24108 * config/i386/i386.c (get_builtin_code_for_version): Add
24109 support for BMI and BMI2 multiversion functions.
24111 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24113 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
24114 (extract_bit_field): Likewise.
24115 (extract_low_bits): Likewise.
24116 (expand_mult): Likewise.
24117 (expand_mult_highpart_adjust): Likewise.
24119 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
24121 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
24122 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
24123 * config/i386/i386.c (processor_model): Add
24124 M_INTEL_COREI7_BROADWELL.
24125 (arch_names_table): Add "broadwell".
24127 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
24136 * config/sh/sh-protos.h
24137 (sh_extending_set_of_reg::can_use_as_unextended_reg,
24138 sh_extending_set_of_reg::use_as_unextended_reg,
24139 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
24140 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
24141 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
24142 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
24143 (sh_treg_insns): New class.
24144 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
24145 (scope_counter): New class.
24146 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
24147 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
24148 sh_extending_set_of_reg::can_use_as_unextended_reg,
24149 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
24150 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
24151 sh_split_treg_set_expr): New functions.
24152 (addsubcosts): Handle treg_set_expr.
24153 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
24154 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
24155 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
24156 (sh_insn_operands_modified_between_p): Make non-static.
24157 * config/sh/predicates.md (zero_extend_movu_operand): Allow
24158 simple_mem_operand in addition to displacement_mem_operand.
24159 (zero_extend_operand): Don't allow zero_extend_movu_operand.
24160 (treg_set_expr, treg_set_expr_not_const01,
24161 arith_reg_or_treg_set_expr): New predicates.
24162 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
24163 arith_or_int_operand instead of logical_operand. Convert to
24164 insn_and_split. Try to optimize constant operand in splitter.
24165 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
24166 (*tstqi_t_zero): Delete.
24167 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
24168 (tstsi_t_and_not): Delete.
24169 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
24170 Convert to insn_and_split.
24171 (unnamed split, tstsi_t_zero_extract_xor,
24172 tstsi_t_zero_extract_subreg_xor_little,
24173 tstsi_t_zero_extract_subreg_xor_big): Delete.
24174 (*tstsi_t_shift_mask): New insn_and_split.
24175 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
24176 to recombine with surrounding insns when splitting.
24177 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
24178 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
24179 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
24180 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
24181 (*cbranch_div0s: Delete.
24182 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
24183 Try to recombine with surrounding insns when splitting. Add operand
24185 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
24186 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
24187 *addc_r_r_msb, *addc_2r_msb): Delete.
24188 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
24190 (*addc_negreg_t): New insn_and_split.
24191 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
24192 Try to recombine with surrounding insns when splitting.
24193 Add operand order variants.
24194 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
24195 insn_and_split patterns.
24196 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
24197 surrounding insns when splitting.
24198 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
24199 (*rotcl): Likewise. Add zero_extract variant.
24200 (*ashrsi2_31): New insn_and_split.
24201 (*negc): Convert to insn_and_split. Use treg_set_expr.
24202 (*zero_extend<mode>si2_disp_mem): Update comment.
24203 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
24205 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
24206 with surrounding insns when splitting.
24207 (any_treg_expr_to_reg): New insn_and_split.
24208 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
24209 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
24210 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
24211 *zero_extract_2): New single bit zero extract patterns.
24212 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
24213 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
24214 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
24215 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
24217 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
24218 register_operand for set source.
24220 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
24222 * i386.opt (prefetch_sse): New targetsave.
24223 * i386.c (ix86_function_specific_save): Save prefetch_sse.
24224 (ix86_function_specific_restore): Restore prefetch_sse and initialize
24225 ix86_cost/ix86_tune_cost.
24227 2015-01-23 David Malcolm <dmalcolm@redhat.com>
24229 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
24230 Support the JIT by using 0 as the language type.
24232 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
24235 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
24236 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
24237 (mark_regno_live, process_bb_lives): Pass new parameter value to
24238 make_hard_regno_born.
24240 2015-01-23 Jakub Jelinek <jakub@redhat.com>
24242 PR rtl-optimization/63637
24243 PR rtl-optimization/60663
24244 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
24245 if elt->cost is MAX_COST for ASM_OPERANDS.
24246 (find_sets_in_insn): Fix up comment typo.
24247 (cse_insn): Don't set src_volatile for all non-volatile
24248 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
24249 or with "memory" clobber. Set elt->cost to MAX_COST
24250 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
24251 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
24253 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
24255 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
24258 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
24260 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
24261 libgcc/config/i386/elf-lib.h.
24263 2015-01-23 Jakub Jelinek <jakub@redhat.com>
24266 * gcc.c (print_configuration): Don't print a blank line at the end
24268 (run_attempt): ... but here unstead.
24270 PR middle-end/64734
24271 * omp-low.c (scan_sharing_clauses): Don't ignore
24272 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
24273 on target data/update constructs.
24275 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
24278 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
24279 (DEBUG_RELOAD): Removed define.
24280 (m32c_limit_reload_class): Enable traces with if DEBUG0.
24281 (m32c_function_arg): Added a type cast.
24282 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
24283 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
24284 * config/m32c/bitops.md (andqi3_16): Likewise.
24285 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
24286 (push_a01_l): Likewise.
24288 2015-01-23 David Malcolm <dmalcolm@redhat.com>
24291 * main.c (main): Construct toplev instances with init_signals=true.
24292 * toplev.c (general_init): Add param "init_signals", and use it to
24293 conditionalize the calls to signal and host_hooks.extra_signals.
24294 (toplev::toplev): Add param "init_signals".
24295 (toplev::main): When invoking general_init, pass m_init_signals
24296 to control whether signal-handlers are installed.
24297 * toplev.h (toplev::toplev): Add param "init_signals".
24298 (toplev::m_init_signals): New field.
24300 2015-01-23 David Malcolm <dmalcolm@redhat.com>
24303 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
24304 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
24305 latter may be affected by the former (e.g. on i686).
24307 2015-01-23 Martin Liska <mliska@suse.cz>
24309 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
24310 false positive during profiledbootstrap.
24312 2015-01-23 Tom de Vries <tom@codesourcery.com>
24315 * lto-opts.c (lto_write_options): Output non-explicit conservative
24317 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
24318 (append_compiler_options): Pass -fopenacc through.
24320 2015-01-23 Tom de Vries <tom@codesourcery.com>
24323 * lto-opts.c (lto_write_options): Output non-explicit conservative
24325 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
24326 (append_compiler_options): Pass -fopenmp through.
24328 2015-01-23 Jakub Jelinek <jakub@redhat.com>
24331 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
24334 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
24335 * diagnostic.def (DK_ICE_NOBT): New kind.
24336 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
24337 like DK_ICE, but never print backtrace.
24338 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
24339 (internal_error_no_backtrace): New function.
24340 * gcc.c (execute): Use internal_error_no_backtrace instead of
24343 2015-01-22 Jeff Law <law@redhat.com>
24346 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
24347 improve code density for small immediate to memory case.
24348 (insv): Better handle bitfield assignments when the field is
24349 being set to all ones.
24350 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
24353 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24354 Jakub Jelinek <jakub@redhat.com>
24356 PR middle-end/64729
24357 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
24358 for !TARGET_LIBC_PROVIDES_SSP version and
24359 -fstack-protector-{all,strong,explicit} otherwise.
24360 * config/freebsd.h (LINK_SSP_SPEC): Handle
24361 -fstack-protector-{strong,explicit}.
24363 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
24364 H.J. Lu <hongjiu.lu@intel.com>
24367 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
24370 2015-01-22 Wei Mi <wmi@google.com>
24372 PR rtl-optimization/64557
24373 * dse.c (record_store): Call get_addr for mem_addr.
24374 (check_mem_read_rtx): Likewise.
24376 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
24378 * fold-const.c (const_binop): Add early return for non-tcc_binary.
24380 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
24382 * toplev.c (init_local_tick): Process the failure when read
24383 fails for random_seed.
24385 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
24386 'pretty_name' to avoid memory overflow.
24388 2015-01-22 Richard Biener <rguenther@suse.de>
24390 PR middle-end/64728
24391 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
24392 abnormal coalescing on undefined SSA names.
24394 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
24398 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
24400 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
24402 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
24404 PR middle-end/63325
24405 * fold-const.c (fold_checksum_tree): Don't include value of
24406 expr->decl_with_vis.symtab_node in the checksum.
24408 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24410 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
24412 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
24415 * gcc.c (insert_comments): New function.
24416 (try_generate_repro): Call it.
24417 (append_text): Removed.
24419 2015-01-22 Richard Biener <rguenther@suse.de>
24421 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
24422 with IL incompatible options. Properly honor user optimize
24425 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
24427 PR rtl-optimization/64682
24428 * combine.c (distribute_notes): When moving a death note for
24429 a register that is set in the new I2, make sure to put it
24430 before that new I2.
24432 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
24434 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
24435 not TARGET_DEFAULT.
24437 2015-01-21 Jakub Jelinek <jakub@redhat.com>
24440 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
24441 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
24442 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
24445 * doc/invoke.texi (-fsanitize=vptr): Document.
24447 PR rtl-optimization/62078
24448 * dse.c: Include cfgcleanup.h.
24449 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
24450 anything call purge_all_dead_edges and cleanup_cfg at the end
24453 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
24455 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
24458 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24460 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
24463 2015-01-21 David Sherwood <david.sherwood@arm.com>
24464 Tejas Belagod <Tejas.Belagod@arm.com>
24466 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
24467 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
24468 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
24471 2015-01-21 David Sherwood <david.sherwood@arm.com>
24472 Tejas Belagod <Tejas.Belagod@arm.com>
24474 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
24475 (aarch64_reverse_mask): New decls.
24476 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
24477 (insn_count): New mode_attr.
24478 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
24479 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
24480 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
24481 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
24482 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
24483 (aarch64_simd_st4): New patterns.
24484 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
24485 (aarch64_reverse_mask): New functions.
24487 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
24489 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
24491 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
24492 addressing modes for BE.
24493 (aarch64_print_operand): Add 'R' specifier.
24494 (aarch64_simd_disambiguate_copy): Delete.
24495 (aarch64_simd_emit_reg_reg_move): New function.
24496 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
24497 in define_splits for structural moves.
24498 (mov<mode>): Use less restrictive predicates.
24499 (*aarch64_mov<mode>): Simplify and only allow for LE.
24500 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
24502 2015-01-21 Alan Hayward <alan.hayward@arm.com>
24504 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
24506 2015-01-21 Richard Henderson <rth@redhat.com>
24509 * ccmp.c (used_in_cond_stmt_p): Remove.
24510 (expand_ccmp_expr): Don't use it.
24512 2015-01-21 Nick Clifton <nickc@redhat.com>
24514 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
24517 2015-01-21 Richard Biener <rguenther@suse.de>
24519 PR middle-end/64313
24520 * tree-core.h (builtin_info, builtin_info_type): Turn from
24521 an object with two arrays into an array of an object with
24522 decl and two flags, implicit_p and declared_p.
24523 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
24524 set_builtin_decl, set_builtin_decl_implicit_p,
24525 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
24526 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
24527 * builtins.c (builtin_info): Adjust.
24528 * gimplify.c (gimplify_addr_expr): References to builtins
24529 that have been declared by the user makes them eligible for
24530 use by the compiler. Call set_builtin_decl_implicit_p on them.
24532 2015-01-20 Jeff Law <law@redhat.com>
24535 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
24536 allow pc-relative addresses in operand predicates or constraints.
24538 2015-01-21 Bin Cheng <bin.cheng@arm.com>
24540 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
24541 neon on aarch32 processors for stringops.
24543 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24546 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
24548 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24551 * ipa-inline.c: Include lto-streamer.h
24552 (report_inline_failed_reason): Output source file differences and
24553 flags on optimization/target node mismatch.
24554 (can_inline_edge_p): Consider caller to be the outer inline function;
24555 be less restrictive about matching opimize and optimize_size attributes.
24556 (inline_account_function_p): Break out from ...
24557 (inline_small_functions): ... here.
24558 * ipa-inline-transform.c (clone_inlined_nodes): Use
24559 inline_account_function_p.
24560 (inline_call): Use optimize attribution; use inline_account_function_p.
24561 (inline_transform): Use opt_for_fn.
24562 * ipa-inline.h (inline_account_function_p): Declare.
24564 2015-01-20 Jakub Jelinek <jakub@redhat.com>
24567 * dwarf2out.c (decl_piece_node): Don't put bitsize into
24568 mode if bitsize <= 0.
24569 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
24570 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
24571 sizes and positions.
24573 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
24575 * config/nios2/nios2.c (nios2_asm_file_end): Implement
24576 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
24578 (TARGET_ASM_FILE_END): Define.
24580 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24582 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
24583 (struct tune_params): Use the enum.
24584 * arm.c (arm_*_tune): Update.
24585 (arm_option_override): Update.
24587 2015-01-20 Richard Biener <rguenther@suse.de>
24590 * ipa-reference.c (add_static_var): Inline ...
24591 (analyze_function): ... here after splitting out from ...
24592 (is_proper_for_analysis): ... this.
24594 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
24597 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
24598 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
24599 replace the conditional with it's true branch.
24600 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
24601 (arm_lra_p): Remove.
24603 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
24605 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
24607 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24609 * config/tilegx/mul-tables.c: Move symtab.h include after
24610 coretypes.h include.
24611 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
24612 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
24613 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
24614 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
24615 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
24617 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
24621 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
24623 PR rtl-optimization/64081
24624 * loop-iv.c (def_pred_latch_p): New function.
24625 (latch_dominating_def): Allow specific cases with non-single
24627 (iv_get_reaching_def): Likewise.
24628 (check_complex_exit_p): New function.
24629 (check_simple_exit): Use check_complex_exit_p to allow certain cases
24630 with exits not executing on any iteration.
24632 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24635 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
24636 to set branch cost.
24638 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24641 * i386.c (gate): Check flag_expensive_optimizations and
24643 (ix86_option_override_internal): Drop optimize_size condition
24644 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
24645 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
24646 MASK_PREFER_AVX128.
24647 (ix86_avx256_split_vector_move_misalign,
24648 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
24649 * sse.md (all uses of TARGET_PREFER_AVX128): Add
24650 optimize_insn_for_speed_p check.
24652 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
24654 * config/mips/mips.h (FP_ASM_SPEC): New define.
24655 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
24658 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
24661 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
24662 nullptr for insn when reaching the first insn.
24663 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
24664 (sh_insn_operands_modified_between_p): Add nullptr check.
24665 (sh_find_extending_set_of_reg): Fix log message. Don't accept
24666 sign extending mem load if the insn contains any UNSPEC or
24669 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24671 * params.def (inline-unit-growth): Drop to 15%.
24672 * invoke.texi (inline-unit-growth): Document change.
24674 2015-01-19 Martin Liska <mliska@suse.cz>
24677 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
24678 function for second argument of OBJ_TYPE_REF.
24680 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24683 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
24684 whether function is an alias.
24686 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24688 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
24691 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
24693 PR rtl-optimization/64671
24694 * lra-remat.c (operand_to_remat): Don't consider jump and call
24697 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
24700 * config/rs6000/default64.h: Include rs6000-cpus.def.
24701 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
24702 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
24703 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
24705 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
24707 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
24708 pseudo-op to specify assembler dialect.
24710 2015-01-19 Martin Liska <mliska@suse.cz>
24713 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
24714 Handle safe potentially removed nodes during filtering.
24716 2015-01-19 Martin Liska <mliska@suse.cz>
24718 * doc/extend.texi (no_icf): Add new attribute description.
24719 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
24720 where the pass attempts to merge a function with no_icf attribute.
24722 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24725 * doc/md.texi (ARM Options): Document register constraints.
24727 2015-01-19 Jiong Wang <jiong.wang@arm.com>
24728 Andrew Pinski <apinski@cavium.com>
24731 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
24732 (ashl<mode>3): Don't expand if operands[2] is not constant.
24734 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24737 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
24738 Match xor-and-xor RTL pattern.
24740 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
24742 PR rtl-optimization/64081
24743 * loop-iv.c (def_pred_latch_p): New function.
24744 (latch_dominating_def): Allow specific cases with non-single
24746 (iv_get_reaching_def): Likewise.
24747 (check_complex_exit_p): New function.
24748 (check_simple_exit): Use check_complex_exit_p to allow certain cases
24749 with exits not executing on any iteration.
24751 2015-01-19 Jakub Jelinek <jakub@redhat.com>
24753 * common.opt (fgraphite): Fix a typo.
24755 2015-01-19 Felix Yang <felix.yang@huawei.com>
24757 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
24759 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
24760 uminp, smax_nanp, smin_nanp): New builtins.
24761 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
24762 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
24763 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
24764 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
24765 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
24766 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
24767 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
24768 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
24769 vpminnms_f32): Rewrite using builtin functions.
24771 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
24774 * omp-low.c (offload_symbol_decl): Remove variable.
24775 (get_offload_symbol_decl): Remove function.
24776 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
24777 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
24778 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
24779 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
24780 BUILT_IN_GOACC_UPDATE don't pass it at all.
24782 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
24784 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
24787 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
24789 * ipa-chkp.c (chkp_produce_thunks): Add early param
24790 to split thunks production into two passes. Keep
24791 'always_inline' function bodies after the first pass.
24792 (pass_data_ipa_chkp_early_produce_thunks): New.
24793 (pass_ipa_chkp_early_produce_thunks): New.
24794 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
24795 chkp_produce_thunks signature.
24796 (make_pass_ipa_chkp_early_produce_thunks): New.
24797 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
24798 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
24799 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
24801 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
24803 * cgraph.c (cgraph_node::dump): Dump profile flags.
24805 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
24808 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
24809 reg appear first in the parallel.
24811 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
24813 * ipa-reference.c (set_reference_optimization_summary,
24814 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
24816 (ignore_module_statics): New static var.
24817 (propagate_bits): If ipa-reference is disabled, do not look into local
24819 (analyze_function): Disable analysis when ipa_reference is disabled.
24820 (generate_summary): Do not dump when reference is disabled;
24821 collect vars accessed from functions with ipa-reference disabled.
24822 (get_read_write_all_from_node): When ipa-reference is disabled, use the
24824 (gate): Enable for LTO.
24825 (ignore_edge_p): New function.
24826 (propagate): Skip functions w/o ipa-reference analysis.
24827 * optc-save-gen.awk: Handle optimize_debug correctly.
24828 * opth-gen.awk: Likewise.
24829 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
24830 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
24831 fira-share-save-slots, fira-share-spill-slots,
24832 fmodulo-sched-allow-regmoves, fpartial-inlining,
24833 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
24834 ftracer, ftree-parallelize-loops, fassociative-math,
24835 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
24837 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
24838 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
24840 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
24843 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
24846 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
24848 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
24850 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
24852 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
24853 Remove duplicate option listings.
24855 2015-01-18 Felix Yang <felix.yang@huawei.com>
24857 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
24858 (autofdo_source_profile::get_callsite_total_count,
24859 function_instance::get_function_instance_by_decl,
24860 string_table::get_index, string_table::get_index_by_decl,
24861 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
24862 Fix comment typos. Reformatting and minor code rearrangement.
24864 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
24866 * config/rs6000/rs6000.md (probe_stack): Delete.
24867 (probe_stack_address): New.
24869 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
24871 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
24872 to test for 32-bit ABIs, not !TARGET_POWERPC64.
24874 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
24876 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
24877 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
24878 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
24880 (rs6000_libcall_value): Use the new function.
24882 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
24884 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
24886 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
24888 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
24889 implement a more precise life analysis for it during backward scan.
24891 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
24893 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
24895 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
24897 PR rtl-optimization/52773
24898 * calls.c (emit_library_call_value): When pushing arguments use
24899 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
24900 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
24901 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
24903 2015-01-17 Jeff Law <law@redhat.com>
24905 PR rtl-optimization/32790
24906 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
24907 not ZERO_EXTEND in SET_DESTs.
24909 2015-01-17 Alan Modra <amodra@gmail.com>
24911 * cprop.c (do_local_cprop): Revert last change.
24913 2015-01-16 DJ Delorie <dj@redhat.com>
24914 Nick Clifton <nickc@redhat.com>
24916 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
24917 (addhi3_real): Likewise. Fix [HL+0] syntax.
24918 (subqi3_real): Likewise.
24919 (subhi3_real): Likewise.
24920 (cbranchqi4_real): Likewise. Allow saddr,#imm.
24921 (cbranchhi4_real): Likewise.
24922 (cbranchhi4_real_inverted): Likewise.
24923 (cbranchsi4_real_lt): Likewise.
24924 (cbranchsi4_real_ge): Likewise.
24925 (cbranchsi4_real_ge): Likewise.
24926 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
24927 (sub<mode>3_virt): Likewise.
24928 (cbranchqi4_virt): Likewise.
24929 (cbranchhi4_virt): Likewise.
24930 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
24931 always use '[reg+imm]' even when imm is zero.
24932 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
24933 (rl78_general_operand): New.
24934 (rl78_nonimmediate_operand): New.
24935 (rl78_nonfar_operand): Use them.
24936 (rl78_nonfar_nonimm_operand): Likewise.
24937 (rl78_stack_based_mem): Fix.
24938 * config/rl78/constraints.md (Ibqi): New.
24943 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
24944 (iorqi3): Likewise.
24945 (xorqi3): Likewise.
24946 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
24948 * config/rl78/constrains (Qs8): New constraint.
24949 * config/rl78/rl78.c (rl78_flags_already_set): New function.
24950 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
24951 * config/rl78/rl78-real.md (update_Z): New attribute.
24952 Update patterns to set it.
24953 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
24954 shorter compare and branch sequence can be used.
24955 (cbranchhi4_real): Likewise.
24956 (cbranchhi4_real_inverted): Likewise.
24958 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
24959 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
24961 * config/rl78/rl78.c (rl78_get_name_encoding): New.
24962 (rl78_option_override): Allow -mes0 only if C.
24963 (characterize_address): Support subregs of symbol_refs.
24964 (rl78_addr_space_address_mode): Move. Add __near.
24965 (rl78_far_p): Likewise.
24966 (rl78_addr_space_pointer_mode): Likewise.
24967 (rl78_as_legitimate_address): Likewise.
24968 (rl78_addr_space_subset_p): Likewise.
24969 (rl78_addr_space_convert): Likewise.
24970 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
24971 symbols with -mes0.
24972 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
24974 (rl78_alloc_physical_registers_op1): Change logic to prefer
24975 symbol[BC] addressing.
24976 (frodata_section): New.
24977 (rl78_asm_init_sections): Initialize it.
24978 (rl78_select_section): Put __far readonly symbols in .frodata.
24979 (rl78_make_type_far): New.
24980 (rl78_insert_attributes): Force all readonly symbols to be
24982 (rl78_asm_out_integer): New.
24983 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
24984 * config/rl78/rl78.opt (-mes0): New.
24986 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
24987 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
24988 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
24989 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
24990 (rl78_saddr_p): New.
24991 (rl78_output_aligned_common): New.
24992 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
24993 (rl78_handle_saddr_attribute): New.
24994 (rl78_handle_naked_attribute): New.
24995 (rl78_attribute_table): Add saddr.
24996 (rl78_print_operand_1): Don't print '!' on saddr operands.
24997 (rl78_print_operand_1): Strip encodings.
24999 (rl78_strip_name_encoding): New.
25000 (rl78_attrlist_to_encoding): New.
25001 (rl78_encode_section_info): New.
25002 (rl78_asm_init_sections): New.
25003 (rl78_select_section): New.
25004 (rl78_output_labelref): New.
25005 (rl78_output_aligned_common): New.
25006 (rl78_asm_out_integer): New.
25007 (rl78_asm_ctor_dtor): New.
25008 (rl78_asm_constructor): New.
25009 (rl78_asm_destructor): New.
25011 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
25012 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
25013 (transcode_memory_rtx): Update.
25014 (rl78_expand_epilogue): Use A_REG instead of 0.
25016 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
25018 * config/arm/arm-protos.h (struct tune_params): New field
25019 sched_autopref_queue_depth.
25020 * config/arm/arm.c (sched-int.h): Include header.
25021 (arm_first_cycle_multipass_dfa_lookahead_guard,)
25022 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
25023 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
25024 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
25025 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
25026 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
25027 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
25028 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
25029 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
25030 * config/arm/t-arm (arm.o): Update.
25031 * haifa-sched.c (update_insn_after_change): Update.
25032 (rank_for_schedule): Use auto-prefetcher model, if requested.
25033 (autopref_multipass_init): New static function.
25034 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
25035 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
25036 variable for debug dumps.
25037 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
25038 (autopref_multipass_dfa_lookahead_guard): New global function that
25039 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
25040 (init_h_i_d): Update.
25041 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
25042 * sched-int.h (enum autopref_multipass_data_status): New const enum.
25043 (autopref_multipass_data_): Structure for auto-prefetcher data.
25044 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
25045 (struct _haifa_insn_data:autopref_multipass_data): New field.
25046 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
25047 (autopref_multipass_dfa_lookahead_guard): Declare.
25049 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
25051 * rtlanal.c (get_base_term): Handle SCRATCH.
25053 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
25055 * config/aarch64/aarch64.c
25056 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
25057 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
25059 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
25060 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
25062 2015-01-17 Alan Modra <amodra@gmail.com>
25064 * cprop.c (do_local_cprop): Disallow replacement of fixed
25067 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25070 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
25073 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
25075 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
25076 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
25078 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25080 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
25081 * config/arm/thumb1.md: ... Here.
25083 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
25085 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
25086 TImode for TARGET_32BIT.
25088 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
25090 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
25091 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
25093 (rs6000_abi_word_mode): New function.
25095 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
25097 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
25098 instead of UNITS_PER_WORD to describe the size of stack slots.
25100 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
25102 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
25103 as rs6000_promote_function_mode. Move comment to there.
25104 (rs6000_promote_function_mode): New function.
25106 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
25108 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
25109 -mpowerpc64 is active.
25111 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25113 PR middle-end/64353
25114 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
25117 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
25119 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
25120 introduced in revision 219724.
25122 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25123 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25126 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
25127 destination is not a GP reg.
25128 (*movdi_aarch64): Likewise.
25130 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
25133 * config/rs6000/default64.h: Revert ISA change.
25135 2015-01-16 Richard Biener <rguenther@suse.de>
25137 PR middle-end/64614
25138 * tree-ssa-uninit.c: Include tree-cfg.h.
25139 (MAX_SWITCH_CASES): New define.
25140 (convert_control_dep_chain_into_preds): Handle switch statements.
25141 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
25142 (normalize_one_pred_1): Do not split bit-manipulations.
25145 2015-01-16 Richard Biener <rguenther@suse.de>
25147 PR tree-optimization/64568
25148 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
25149 complex load rewriting for TARGET_MEM_REFs.
25151 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
25153 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
25155 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
25158 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
25160 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
25161 (aarch64_lra_p): Remove.
25163 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25166 * ipa-chkp.h (chkp_instrumentable_p): New.
25167 * ipa-chkp.c: Include tree-inline.h.
25168 (chkp_instrumentable_p): New.
25169 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
25170 Fix processing of not instrumentable functions.
25171 (chkp_versioning): Use chkp_instrumentable_p. Warn about
25172 not instrumentable functions.
25173 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
25174 chkp_instrumentable_p.
25175 * tree-inline.h (copy_forbidden): New.
25176 * tree-inline.c (copy_forbidden): Not static anymore.
25178 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25180 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
25183 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
25185 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
25186 type OP_OUT to OP_INOUT.
25188 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
25190 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
25191 (high x) y) to y if x and y have the same base.
25193 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
25195 * config/arm/cortex-a57.md: New.
25196 * config/aarch64/aarch64.md: Include it.
25197 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
25198 * config/aarch64/aarch64-tune.md: Regenerate.
25200 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
25203 * ccmp.c (expand_ccmp_next): New function.
25204 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
25205 and compare insn sequence.
25206 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
25207 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
25208 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
25209 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
25210 (*ccmp_ior): Changed to ccmp_ior<mode>.
25211 (cmp<mode>): New pattern.
25212 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
25214 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
25216 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
25218 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
25219 _mm256_bsrli_epi128): New.
25220 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
25222 2015-01-15 Jiong Wang <jiong.wang@arm.com>
25224 * expmed.c (store_bit_field_using_insv): Improve warning message.
25225 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
25227 2015-01-15 Jiong Wang <jiong.wang@arm.com>
25229 PR rtl-optimization/64011
25230 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
25231 there is partial overflow.
25233 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
25235 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
25237 (nds32_expand_epilogue_v3pop): Likewise.
25238 * config/nds32/nds32.md (sibcall): Define this for sibling call
25240 (sibcall_register): Likewise.
25241 (sibcall_immediate): Likewise.
25242 (sibcall_value): Likewise.
25243 (sibcall_value_register): Likewise.
25244 (sibcall_value_immediate): Likewise.
25245 (sibcall_epilogue): Likewise.
25246 (epilogue): Pass false to indicate this is not a sibcall epilogue.
25247 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
25248 (nds32_expand_epilogue_v3pop): Likewise.
25250 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
25252 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
25253 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
25254 (return_internal): New.
25255 (return): Define this named pattern.
25256 (simple_return): Define this named pattern.
25257 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
25258 pattern instead of unspec_volatile_func_return.
25259 (nds32_expand_epilogue_v3pop): Likewise.
25260 (nds32_can_use_return_insn): New function.
25262 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
25264 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
25265 * config/nds32/nds32.md (pop25return): New.
25266 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
25267 pop25return pattern.
25269 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
25271 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
25272 -mforbid-fp-as-gp, and -mex9 options.
25274 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
25276 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
25277 remove -mgp-direct option.
25279 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
25281 * doc/invoke.texi (--param early-inlining-insns): Update default value.
25282 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
25284 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
25286 * ipa-inline.c (inline_small_functions): Work around hints
25289 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
25292 * doc/invoke.texi (Option Summary): Document new Nios II
25294 (Nios II Options): Likewise.
25295 * config/nios2/nios2.opt: Add -mgpopt= option support.
25296 Modify existing -mgpopt and -mno-gpopt options to be aliases.
25297 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
25298 * config/nios2/nios2.c (nios2_option_override): Adjust
25299 -mgpopt defaulting.
25300 (nios2_in_small_data_p): Return true for explicit small data
25301 sections even with -G0.
25302 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
25305 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
25308 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
25310 (inline_call): Fix removal of aliases.
25312 2015-01-15 Jakub Jelinek <jakub@redhat.com>
25314 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
25315 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
25316 * opts.c (common_handle_option): Add -fsanitize=vptr.
25317 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
25318 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
25319 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
25320 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
25321 (ubsan_expand_vptr_ifn): New prototype.
25322 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
25323 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
25324 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
25325 expand_LOOP_VECTORIZED): Make argument nameless, remove
25327 (expand_UBSAN_VPTR): New function.
25328 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
25330 (UBSAN_VPTR): New internal function.
25331 * sanopt.c (tree_map_traits): Renamed to ...
25332 (sanopt_tree_map_traits): ... this.
25333 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
25334 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
25335 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
25336 (maybe_optimize_ubsan_vptr_ifn): New function.
25337 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
25338 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
25340 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
25341 internal calls like pure functions for aliasing, even when they
25342 have other side-effects that prevent making them ECF_PURE.
25343 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
25344 (ubsan_expand_vptr_ifn): New function.
25346 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
25348 PR rtl-optimization/64110
25349 * stmt.c (parse_output_constraint): Process '^' and '$'.
25350 (parse_input_constraint): Ditto.
25351 * lra-constraints.c (process_alt_operands): Process the new
25353 * ira-costs.c (record_reg_classes): Process the new constraint
25355 * genoutput.c (indep_constraints): Add '^' and '$'.
25356 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
25357 * doc/md.texi: Add description of the new constraints.
25359 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
25360 Bernd Schmidt <bernds@codesourcery.com>
25361 Cesar Philippidis <cesar@codesourcery.com>
25362 James Norris <jnorris@codesourcery.com>
25363 Tom de Vries <tom@codesourcery.com>
25364 Ilmir Usmanov <i.usmanov@samsung.com>
25365 Dmitry Bocharnikov <dmitry.b@samsung.com>
25366 Evgeny Gavrin <e.gavrin@samsung.com>
25367 Jakub Jelinek <jakub@redhat.com>
25369 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
25370 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
25371 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
25372 New function types.
25373 * builtins.c: Include "gomp-constants.h".
25374 (expand_builtin_acc_on_device): New function.
25375 (expand_builtin, is_inexpensive_builtin): Handle
25376 BUILT_IN_ACC_ON_DEVICE.
25377 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
25379 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
25381 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
25382 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
25383 i386/intelmic-offload.h.
25384 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
25385 to libgomp and its dependencies.
25386 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
25387 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
25388 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
25389 * config/ia64/hpux.h (LIB_SPEC): Likewise.
25390 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25391 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
25392 * doc/generic.texi: Update for OpenACC changes.
25393 * doc/gimple.texi: Likewise.
25394 * doc/invoke.texi: Likewise.
25395 * doc/sourcebuild.texi: Likewise.
25396 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
25397 GF_OMP_FOR_KIND_OACC_LOOP.
25398 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
25399 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
25400 GF_OMP_TARGET_KIND_OACC_UPDATE,
25401 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
25403 * gimple.c: Update comments for OpenACC changes.
25404 * gimple.def: Likewise.
25405 * gimple.h: Likewise.
25406 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
25407 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
25408 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
25409 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
25410 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
25412 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
25413 * gimplify.c: Include "gomp-constants.h".
25414 Update comments for OpenACC changes.
25415 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
25416 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
25417 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
25418 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
25419 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
25420 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
25421 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
25422 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
25423 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
25425 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
25426 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
25427 OMP_CLAUSE_SET_MAP_KIND.
25428 (gimplify_oacc_cache): New function.
25429 (gimplify_omp_for): Handle OACC_LOOP.
25430 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
25432 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
25433 OACC_EXIT_DATA, OACC_UPDATE.
25434 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
25435 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
25436 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
25437 (gimplify_body): Consider flag_openacc next to flag_openmp.
25438 * lto-streamer-out.c: Include "gomp-constants.h".
25439 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
25440 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
25441 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
25442 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
25443 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
25444 (BUILT_IN_ACC_ON_DEVICE): New builtins.
25445 * omp-low.c: Include "gomp-constants.h".
25446 Update comments for OpenACC changes.
25447 (struct omp_context): Add reduction_map, gwv_below, gwv_this
25449 (extract_omp_for_data, use_pointer_for_field, install_var_field)
25450 (new_omp_context, delete_omp_context, scan_sharing_clauses)
25451 (create_omp_child_function, scan_omp_for, scan_omp_target)
25452 (check_omp_nesting_restrictions, lower_reduction_clauses)
25453 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
25454 Update for OpenACC changes.
25455 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
25456 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
25457 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
25458 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
25459 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
25460 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
25462 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
25463 Handle GF_OMP_FOR_KIND_OACC_LOOP.
25464 (expand_omp_target, lower_omp_target): Handle
25465 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
25466 GF_OMP_TARGET_KIND_OACC_UPDATE,
25467 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
25468 GF_OMP_TARGET_KIND_OACC_DATA.
25469 (pass_expand_omp::execute, execute_lower_omp)
25470 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
25472 (offload_symbol_decl): New variable.
25473 (oacc_get_reduction_array_id, oacc_max_threads)
25474 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
25475 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
25476 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
25477 (oacc_gimple_assign, oacc_initialize_reduction_data)
25478 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
25480 (is_targetreg_ctx): Remove function.
25481 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
25482 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
25483 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
25484 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
25485 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
25486 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
25487 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
25488 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
25489 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
25490 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
25491 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
25492 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
25493 * tree-core.h: Update comments for OpenACC changes.
25494 (enum omp_clause_map_kind): Remove.
25495 (struct tree_omp_clause): Change type of map_kind member from enum
25496 omp_clause_map_kind to unsigned char.
25497 * tree-inline.c: Update comments for OpenACC changes.
25498 * tree-nested.c: Likewise. Include "gomp-constants.h".
25499 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
25500 (convert_tramp_reference_stmt, convert_gimple_call): Update for
25501 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
25502 OMP_CLAUSE_SET_MAP_KIND.
25503 * tree-pretty-print.c: Include "gomp-constants.h".
25504 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
25505 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
25506 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
25507 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
25508 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
25509 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
25510 instead of OMP_CLAUSE_MAP_*.
25511 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
25512 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
25513 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
25514 * tree-streamer-in.c: Include "gomp-constants.h".
25515 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
25516 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
25517 * tree-streamer-out.c: Include "gomp-constants.h".
25518 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
25520 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
25521 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
25522 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
25523 * tree.c (omp_clause_num_ops): Update accordingly.
25524 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
25526 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
25527 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
25528 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
25529 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
25530 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
25531 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
25532 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
25533 (OMP_CLAUSE_SET_MAP_KIND): New macro.
25534 * varpool.c (varpool_node::get_create): Consider flag_openacc next
25536 * config/i386/intelmic-offload.h: New file.
25537 * config/nvptx/offload.h: Likewise.
25539 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25541 * explow.h: Remove duplicate contents.
25542 * dojump.h: Likewise.
25544 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
25546 * arm.c (arm_xgene_tune): Add default initializer for instruction
25549 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
25553 * ipa.c (symbol_table::remove_unreachable_nodes):
25554 Do not put abstract origins into boundary.
25556 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
25558 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
25559 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
25561 2015-01-15 Steve Ellcey <sellcey@mips.com>
25563 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
25564 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
25565 builtins.def, and chkp-builtins.def.
25567 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
25569 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
25572 2015-01-15 Richard Biener <rguenther@suse.de>
25574 PR tree-optimization/61743
25575 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
25576 information on PHIs for some simple cases.
25578 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25580 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
25582 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
25583 * config/arm/arm-cores.def (xgene1): New entry.
25584 * config/arm/arm-tables.opt: Regenerate.
25585 * config/arm/arm-tune.md: Regenerate.
25586 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
25588 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
25590 * tree-if-conv.c: Include hash-map.h.
25591 (aggressive_if_conv): New variable.
25592 (fold_build_cond_expr): Add simplification of non-zero condition.
25593 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
25594 destination block is not always executed.
25595 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
25596 than two predecessors if AGGRESSIVE_IF_CONV is true.
25597 (if_convertible_stmt_p): Fix commentary.
25598 (all_preds_critical_p): New function.
25599 (has_pred_critical_p): New function.
25600 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
25601 BB can have more than two predecessors and all incoming edges can be
25603 (predicate_bbs): Skip predication for loop exit block, use build2_loc
25604 to compute predicate for true edge.
25605 (find_phi_replacement_condition): Delete this function.
25606 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
25607 Allow interchange PHI arguments if EXTENDED is false.
25608 Change check that block containing reduction statement candidate
25609 is predecessor of phi-block since phi may have more than two arguments.
25610 (phi_args_hash_traits): New helper structure.
25611 (struct phi_args_hash_traits): New type.
25612 (phi_args_hash_traits::hash): New function.
25613 (phi_args_hash_traits::equal_keys): New function.
25614 (gen_phi_arg_condition): New function.
25615 (predicate_scalar_phi): Add handling of phi nodes with more than two
25616 arguments, delete COND and TRUE_BB arguments, insert body of
25617 find_phi_replacement_condition to predicate ordinary phi nodes.
25618 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
25619 delete call of find_phi_replacement_condition and invoke
25620 predicate_scalar_phi with two arguments.
25621 (insert_gimplified_predicates): Add assert that non-predicated block
25622 don't have statements to insert.
25623 (ifcvt_split_critical_edges): New function.
25624 (ifcvt_split_def_stmt): Likewise.
25625 (ifcvt_walk_pattern_tree): Likewise.
25626 (stmt_is_root_of_bool_pattern): Likewise.
25627 (ifcvt_repair_bool_pattern): Likewise.
25628 (ifcvt_local_dce): Likewise.
25629 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
25630 is copy of inner or outer loop force_vectorize field, invoke
25631 ifcvt_split_critical_edges, ifcvt_local_dce and
25632 ifcvt_repair_bool_pattern for aggressive if-conversion.
25634 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
25636 * config/aarch64/aarch64.md: Include xgene1.md.
25637 * config/aarch64/xgene1.md: New file.
25639 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25641 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
25642 xgene1 (APM XGene-1) core definition.
25643 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
25644 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
25645 * doc/invoke.texi: Document -mcpu=xgene1.
25647 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25649 * dojump.h: New header file.
25650 * explow.h: Likewise.
25651 * expr.h: Remove includes.
25652 Move expmed.c prototypes to expmed.h.
25653 Move dojump.c prototypes to dojump.h.
25654 Move alias.c prototypes to alias.h.
25655 Move explow.c prototypes to explow.h.
25656 Move calls.c prototypes to calls.h.
25657 Move emit-rtl.c prototypes to emit-rtl.h.
25658 Move varasm.c prototypes to varasm.h.
25659 Move stmt.c prototypes to stmt.h.
25660 (saved_pending_stack_adjust): Move to dojump.h.
25661 (adjust_address): Move to explow.h.
25662 (adjust_address_nv): Move to emit-rtl.h.
25663 (adjust_bitfield_address): Likewise.
25664 (adjust_bitfield_address_size): Likewise.
25665 (adjust_bitfield_address_nv): Likewise.
25666 (adjust_automodify_address_nv): Likewise.
25667 * explow.c (expr_size): Move to expr.c.
25668 (int_expr_size): Likewise.
25669 (tree_expr_size): Likewise.
25670 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25671 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
25672 * genemit.c (main): Generate includes statistics.h, real.h,
25673 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
25675 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
25676 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
25677 explow.h, emit-rtl.h, stmt.h.
25678 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
25679 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
25680 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
25681 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
25682 emit-rtl.h, varasm.h, stmt.h.
25683 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
25684 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
25685 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
25686 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
25687 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
25688 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
25689 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
25690 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
25691 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
25692 tm.h tree.h varasm.h vec.h wide-int.h.
25693 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25694 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
25695 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
25696 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
25697 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
25698 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
25699 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
25700 * loop-iv.c: Likewise.
25701 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
25702 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
25703 statistics.h stmt.h tree.h varasm.h wide-int.h.
25704 * lra-constraints.c: Likewise.
25705 * lra-eliminations.c: Likewise.
25706 * lra-lives.c: Likewise.
25707 * lra-remat.c: Likewise.
25708 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25709 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
25710 statistics.h stmt.h tree.h varasm.h wide-int.h.
25711 * hw-doloop.c: Likewise.
25712 * ira-color.c: Likewise.
25713 * ira-emit.c: Likewise.
25714 * loop-doloop.c: Likewise.
25715 * loop-invariant.c: Likewise.
25716 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25717 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
25718 statistics.h stmt.h tree.h varasm.h wide-int.h.
25719 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
25720 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
25721 statistics.h stmt.h tree.h varasm.h wide-int.h.
25722 * combine-stack-adj.c: Likewise.
25725 * ifcvt.c: Likewise.
25726 * ira-costs.c: Likewise.
25727 * jump.c: Likewise.
25728 * lra-coalesce.c: Likewise.
25729 * lra-spills.c: Likewise.
25730 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25731 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
25732 stmt.h varasm.h wide-int.h.
25733 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25734 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
25736 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
25737 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
25738 statistics.h stmt.h varasm.h wide-int.h.
25739 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
25740 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
25741 varasm.h wide-int.h.
25742 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
25743 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25744 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
25745 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
25746 statistics.h stmt.h.
25747 * config/tilepro/tilepro.c: Likewise.
25748 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
25749 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
25750 * config/pdp11/pdp11.c: Likewise.
25751 * config/xtensa/xtensa.c: Likewise.
25752 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
25753 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
25755 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25756 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
25757 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
25758 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25759 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
25760 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
25761 * rtl-chkp.c: Likewise.
25762 * tree-chkp-opt.c: Likewise.
25763 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
25764 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
25765 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
25766 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25767 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
25768 statistics.h stmt.h.
25769 * tree-vect-data-refs.c: Likewise.
25770 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
25771 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25772 rtl.h statistics.h stmt.h varasm.h.
25773 * internal-fn.c: Likewise.
25774 * ipa-icf-gimple.c: Likewise.
25775 * lto-section-out.c: Likewise.
25776 * tree-data-ref.c: Likewise.
25777 * tree-nested.c: Likewise.
25778 * tree-outof-ssa.c: Likewise.
25779 * tree-predcom.c: Likewise.
25780 * tree-pretty-print.c: Likewise.
25781 * tree-scalar-evolution.c: Likewise.
25782 * tree-ssa-strlen.c: Likewise.
25783 * tree-vect-loop.c: Likewise.
25784 * tree-vect-patterns.c: Likewise.
25785 * tree-vect-slp.c: Likewise.
25786 * tree-vect-stmts.c: Likewise.
25787 * tsan.c: Likewise.
25788 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25789 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
25791 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
25792 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25793 statistics.h stmt.h varasm.h.
25794 * loop-unroll.c: Likewise.
25795 * ubsan.c: Likewise.
25796 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
25797 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
25799 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25800 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
25801 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
25802 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
25803 statistics.h stmt.h.
25804 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
25805 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
25806 statistics.h stmt.h varasm.h.
25807 * gimple-match-head.c: Likewise.
25808 * lto-cgraph.c: Likewise.
25809 * lto-section-in.c: Likewise.
25810 * lto-streamer-in.c: Likewise.
25811 * lto-streamer-out.c: Likewise.
25812 * tree-affine.c: Likewise.
25813 * tree-cfg.c: Likewise.
25814 * tree-cfgcleanup.c: Likewise.
25815 * tree-if-conv.c: Likewise.
25816 * tree-into-ssa.c: Likewise.
25817 * tree-ssa-alias.c: Likewise.
25818 * tree-ssa-copyrename.c: Likewise.
25819 * tree-ssa-dse.c: Likewise.
25820 * tree-ssa-forwprop.c: Likewise.
25821 * tree-ssa-live.c: Likewise.
25822 * tree-ssa-math-opts.c: Likewise.
25823 * tree-ssa-pre.c: Likewise.
25824 * tree-ssa-sccvn.c: Likewise.
25825 * tree-tailcall.c: Likewise.
25826 * tree-vect-generic.c: Likewise.
25827 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25828 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
25829 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25830 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
25831 * varasm.c: Likewise.
25832 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25833 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
25835 * init-regs.c: Likewise.
25837 * omp-low.c: Likewise.
25838 * stack-ptr-mod.c: Likewise.
25839 * tree-ssa-reassoc.c: Likewise.
25840 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25841 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
25843 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25844 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
25845 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25846 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
25847 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25848 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
25849 * tree-ssa-phiopt.c: Likewise.
25850 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25851 fixed-value.h hashtab.h real.h statistics.h stmt.h.
25852 * config/fr30/fr30.c: Likewise.
25853 * config/frv/frv.c: Likewise.
25854 * expr.c: Likewise.
25855 * final.c: Likewise.
25856 * optabs.c: Likewise.
25857 * passes.c: Likewise.
25858 * simplify-rtx.c: Likewise.
25859 * stmt.c: Likewise.
25860 * toplev.c: Likewise.
25861 * var-tracking.c: Likewise.
25862 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25863 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25864 * lower-subreg.c: Likewise.
25865 * postreload-gcse.c: Likewise.
25867 * reginfo.c: Likewise.
25868 * store-motion.c: Likewise.
25869 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25870 fixed-value.h hashtab.h real.h stmt.h varasm.h.
25871 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25872 fixed-value.h hashtab.h statistics.h stmt.h.
25873 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25874 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
25875 * except.c: Likewise.
25876 * explow.c: Likewise.
25877 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25878 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
25880 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25881 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
25882 * tree-ssa-structalias.c: Likewise.
25883 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25884 fixed-value.h insn-config.h real.h statistics.h.
25885 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25886 fixed-value.h insn-config.h real.h statistics.h stmt.h.
25887 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25888 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
25889 * cfgbuild.c: Likewise.
25890 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25891 fixed-value.h real.h rtl.h statistics.h stmt.h.
25892 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25893 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25894 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25895 fixed-value.h real.h statistics.h stmt.h.
25896 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25897 fixed-value.h real.h statistics.h stmt.h varasm.h.
25898 * cprop.c: Likewise.
25899 * modulo-sched.c: Likewise.
25900 * postreload.c: Likewise.
25901 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
25902 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
25903 statistics.h stmt.h varasm.h.
25904 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
25905 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25906 rtl.h statistics.h stmt.h varasm.h.
25907 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
25908 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
25910 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
25911 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
25913 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
25914 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
25916 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
25917 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25918 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25919 function.h real.h statistics.h stmt.h varasm.h.
25920 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25921 insn-config.h real.h statistics.h stmt.h.
25922 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25923 statistics.h stmt.h.
25924 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
25925 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
25926 statistics.h stmt.h varasm.h.
25927 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
25928 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
25929 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25930 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
25931 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
25932 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
25933 statistics.h stmt.h varasm.h.
25934 * ipa-polymorphic-call.c: Likewise.
25935 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
25936 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25937 statistics.h stmt.h.
25938 * config/c6x/c6x.c: Likewise.
25939 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
25940 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25941 statistics.h stmt.h varasm.h.
25942 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
25943 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
25945 * ipa-split.c: Likewise.
25946 * tree-eh.c: Likewise.
25947 * tree-ssa-dce.c: Likewise.
25948 * tree-ssa-loop-niter.c: Likewise.
25949 * tree-vrp.c: Likewise.
25950 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
25951 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
25953 * config/nds32/nds32-fp-as-gp.c: Likewise.
25954 * config/nds32/nds32-intrinsic.c: Likewise.
25955 * config/nds32/nds32-isr.c: Likewise.
25956 * config/nds32/nds32-md-auxiliary.c: Likewise.
25957 * config/nds32/nds32-memory-manipulation.c: Likewise.
25958 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25959 * config/nds32/nds32-predicates.c: Likewise.
25960 * config/nds32/nds32.c: Likewise.
25961 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
25962 fixed-value.h hashtab.h real.h statistics.h.
25963 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
25964 fixed-value.h hashtab.h real.h statistics.h stmt.h.
25965 * config/arm/arm.c: Likewise.
25966 * config/avr/avr.c: Likewise.
25967 * config/bfin/bfin.c: Likewise.
25968 * config/h8300/h8300.c: Likewise.
25969 * config/i386/i386.c: Likewise.
25970 * config/ia64/ia64.c: Likewise.
25971 * config/iq2000/iq2000.c: Likewise.
25972 * config/m32c/m32c.c: Likewise.
25973 * config/m32r/m32r.c: Likewise.
25974 * config/m68k/m68k.c: Likewise.
25975 * config/mcore/mcore.c: Likewise.
25976 * config/mep/mep.c: Likewise.
25977 * config/mips/mips.c: Likewise.
25978 * config/mn10300/mn10300.c: Likewise.
25979 * config/moxie/moxie.c: Likewise.
25980 * config/pa/pa.c: Likewise.
25981 * config/rl78/rl78.c: Likewise.
25982 * config/rx/rx.c: Likewise.
25983 * config/s390/s390.c: Likewise.
25984 * config/sh/sh.c: Likewise.
25985 * config/sparc/sparc.c: Likewise.
25986 * config/spu/spu.c: Likewise.
25987 * config/stormy16/stormy16.c: Likewise.
25988 * config/v850/v850.c: Likewise.
25989 * config/vax/vax.c: Likewise.
25990 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
25991 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25992 * config/msp430/msp430.c: Likewise.
25993 * predict.c: Likewise.
25994 * value-prof.c: Likewise.
25995 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
25996 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
25997 * config/microblaze/microblaze.c: Likewise.
25998 * config/nios2/nios2.c: Likewise.
25999 * config/rs6000/rs6000.c: Likewise.
26000 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
26001 insn-config.h real.h rtl.h statistics.h stmt.h.
26002 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
26003 insn-config.h real.h statistics.h stmt.h.
26004 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
26005 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
26006 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
26007 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
26008 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
26009 fixed-value.h real.h statistics.h stmt.h.
26010 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
26011 fixed-value.h statistics.h stmt.h.
26012 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
26015 2015-01-15 Jakub Jelinek <jakub@redhat.com>
26017 * gengtype.c (create_user_defined_type): Workaround
26018 -Wmaybe-uninitialized false positives.
26019 * cse.c (fold_rtx): Likewise.
26020 * loop-invariant.c (gain_for_invariant): Likewise.
26022 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
26024 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
26025 set the memory attributes in all cases but clear MEM_EXPR if need be.
26027 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
26029 PR tree-optimization/64434
26030 * cfgexpand.c (reorder_operands): New function.
26031 (expand_gimple_basic_block): Insert call of reorder_operands if
26034 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
26036 * config/mips/micromips.md (*swp): Remove explicit parallel.
26037 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
26038 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
26039 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
26040 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
26041 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
26042 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
26043 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
26044 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
26045 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
26046 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
26047 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
26048 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
26049 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
26050 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
26051 (mips_wrdsp): Likewise.
26052 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
26054 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
26055 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
26056 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
26057 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
26058 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
26059 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
26060 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
26061 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
26062 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
26064 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
26066 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
26067 (mips_print_operand): Support 'y' to print exact log2 in decimal
26069 * config/mips/mips.h (ISA_HAS_LSA): New define.
26070 (ISA_HAS_DLSA): Likewise.
26071 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
26072 * config/mips/predicates.md (const_immlsa_operand): New predicate.
26074 2015-01-15 Martin Liska <mliska@suse.cz>
26077 * optc-save-gen.awk: Add support for array types.
26079 2015-01-15 Richard Biener <rguenther@suse.de>
26081 PR middle-end/64365
26082 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
26083 for MEM_REF access functions with the same base can never partially
26086 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
26088 * common.opt: New option -fstack-protector-explicit.
26089 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
26090 (stack_protect_decl_phase): Handle stack_protect attribute for
26091 explicit stack protection requests.
26092 (expand_used_vars): Similarly.
26093 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
26094 * doc/extend.texi: Add documentation for "stack_protect" attribute.
26095 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
26097 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
26100 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
26102 (sh_extending_set_of_reg): New struct.
26103 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
26104 sh_remove_reg_dead_or_unused_notes): New Declarations.
26105 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
26106 sh_find_extending_set_of_reg, sh_split_tst_subregs,
26107 sh_extending_set_of_reg::use_as_extended_reg): New functions.
26108 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
26109 convert to insn_and_split and use new function sh_split_tst_subregs.
26111 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
26113 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
26115 (Optimization Options): Move -fuse-ld documentation to...
26116 (Link Options): ...here.
26118 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
26120 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
26122 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
26123 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
26124 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
26125 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
26126 instead of ZR for the memory operand of LL/SC.
26127 (compare_and_swap_12, sync_add<mode>): Likewise.
26128 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
26129 (sync_new_<optab>_12, sync_nand_12): Likewise.
26130 (sync_old_nand_12, sync_new_nand_12): Likewise.
26131 (sync_sub<mode>, sync_old_add<mode>): Likewise.
26132 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
26133 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
26134 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
26135 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
26136 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
26137 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
26138 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
26139 * doc/md.texi (ZC): Update description.
26141 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
26143 * builtins.c (expand_builtin_atomic_exchange): Remove error when
26144 memory model is CONSUME.
26145 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
26146 expand_builtin_atomic_store): Change invalid memory model errors to
26148 (expand_builtin_atomic_clear): Change invalid model errors to warnings
26149 and issue warning for CONSUME.
26151 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
26153 * lto-cgraph: Update function comments for
26154 lto_symtab_encoder_encode_*.
26156 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
26158 * Makefile.in (site.exp): Do not set ENABLE_LTO.
26160 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
26162 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
26163 * lto-cgraph.c (select_what_to_stream): Remove argument, use
26164 lto_stream_offload_p instead.
26165 * lto-streamer.h (select_what_to_stream): Remove argument.
26166 * passes.c (ipa_write_summaries): Likewise.
26167 * tree-pass.h (ipa_write_summaries): Likewise.
26169 2015-01-14 Richard Biener <rguenther@suse.de>
26171 PR tree-optimization/59354
26172 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
26173 groups larger than the slp group size as having gaps.
26175 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
26177 PR middle-end/59448
26178 * builtins.c (get_memmodel): Promote consume to acquire always.
26180 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
26183 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
26186 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
26189 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
26191 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
26192 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
26193 AVX512VBMI, as it implies AVX512BW.
26195 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
26198 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
26199 (vec_unpacks_hi_v16sf): Ditto.
26201 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26203 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
26206 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26208 * doc/invoke.texi (mapcs): Mention deprecation.
26209 (mapcs-frame): Likewise.
26211 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
26214 * config/arm/arm.c (callee_saved_reg_p): Define.
26215 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
26216 register is callee saved instead of !call_used_regs[reg].
26217 (thumb1_compute_save_reg_mask): Likewise.
26219 2015-01-14 Hale Wang <hale.wang@arm.com>
26221 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
26224 2015-01-14 Richard Biener <rguenther@suse.de>
26227 * tree-inline.c (insert_debug_decl_map): Check destination
26228 function MAY_HAVE_DEBUG_STMTS.
26229 (insert_init_debug_bind): Likewise.
26230 (insert_init_stmt): Remove redundant check.
26231 (remap_gimple_stmt): Drop debug stmts if the destination
26232 function has var-tracking assignments disabled.
26234 2015-01-14 Martin Liska <mliska@suse.cz>
26236 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
26237 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
26239 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26242 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
26243 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
26245 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
26247 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
26248 level from an ARCH; do not inject the default.
26249 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
26250 MIPS_ISA_LEVEL_SPEC.
26251 (MIPS_ISA_NAN2008_SPEC): Update comment.
26252 (BASE_DRIVER_SELF_SPECS): Likewise.
26253 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
26254 MIPS_DEFAULT_ISA_LEVEL_SPEC.
26255 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
26256 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
26257 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
26259 2015-01-14 Richard Biener <rguenther@suse.de>
26261 PR tree-optimization/64493
26262 PR tree-optimization/64495
26263 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
26264 assign the proper vectorized PHI to the inner loop exit PHIs.
26266 2015-01-14 Joey Ye <joey.ye@arm.com>
26268 * config/arm/arm.c (arm_compute_save_reg_mask):
26269 Do not save lr in case of tail call.
26270 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
26272 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
26274 * tree-vrp.c (check_array_ref): Emit more warnings
26275 for warn_array_bounds >= 2.
26276 * common.opt: New option -Warray-bounds=.
26277 * doc/invoke.texi: Document -Warray-bounds=.
26279 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
26281 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
26282 (mforbid-fp-as-gp): Remove.
26284 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
26285 (nds32_symbol_load_store_p): Remove.
26286 (nds32_fp_as_gp_check_available): Clean up implementation.
26287 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
26289 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
26290 fp-as-gp and ex9 cases.
26292 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
26294 * tree-profile.c (init_ic_make_global_vars): Drop workaround
26295 for bintuils bug 14342.
26296 (init_ic_make_global_vars): Likewise.
26297 (gimple_init_edge_profiler): Likewise.
26298 (gimple_gen_ic_func_profiler): Likewise.
26300 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26302 * ipa-inline.c (inline_small_functions): Swap the operands in
26305 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
26308 * ipa-inline-analysis.c (node_growth_cache): Remove.
26309 (initialize_growth_caches): Do not initialize it.
26310 (free_growth_caches): Do not free it.
26311 (do_estimate_growth): Rename to ...
26312 (estimate_growth): ... this one; drop growth cache code.
26313 (growth_likely_positive): Always go the heuristics way.
26314 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
26315 (reset_edge_caches): Do not reset node growth.
26316 (heap_edge_removal_hook): Do not maintain cache.
26317 (inline_small_functions): Likewise; strenghten sanity check.
26318 (ipa_inline): Do not maintain caches.
26319 * ipa-inline.h (node_growth_cache): Remove.
26320 (do_estimate_growth): Remove to ...
26321 (estimate_growth): this one; remove inline version.
26322 (reset_node_growth_cache): Remove.
26324 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
26327 * ipa-inline.c (inline_small_functions): Update callee keys after
26328 resolving speculation
26329 (inline_small_functions): Always check monotonicity of the queue.
26331 2015-01-13 Marek Polacek <polacek@redhat.com>
26333 PR middle-end/64391
26334 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
26336 2015-01-13 Jakub Jelinek <jakub@redhat.com>
26338 PR rtl-optimization/64286
26339 * ree.c (combine_reaching_defs): Move part of comment earlier,
26340 remove !SCALAR_INT_MODE_P check.
26341 (add_removable_extension): Don't add vector mode
26342 extensions if all uses of the source register aren't the same
26345 2015-01-13 Renlin Li <renlin.li@arm.com>
26347 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
26348 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
26350 2015-01-13 Martin Liska <mliska@suse.cz>
26352 * ipa-icf.c (sem_function::equals_private): Call new functions
26353 cl_target_option_print_diff and cl_optimization_print_diff.
26354 * optc-save-gen.awk (cl_target_option_print_diff): New function.
26355 (cl_optimization_print_diff): Likewise.
26356 * opth-gen.awk: Likewise.
26358 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
26360 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
26361 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
26362 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
26363 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
26364 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
26365 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
26367 2015-01-13 Andrew Pinski <apinski@cavium.com>
26369 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
26370 instead of src mode.
26372 2015-01-13 Richard Biener <rguenther@suse.de>
26375 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
26378 2015-01-13 Andrew Pinski <apinski@cavium.com>
26380 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
26382 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
26384 2015-01-13 Jakub Jelinek <jakub@redhat.com>
26386 PR middle-end/63974
26387 * cfgexpand.c (expand_computed_goto): Don't call
26388 convert_memory_address here.
26390 2015-01-13 Richard Biener <rguenther@suse.de>
26392 PR tree-optimization/64406
26393 * tree-loop-distibution.c (pass_loop_distribution::execute):
26394 Reset the SCEV hashtable if we distributed anything.
26396 2015-01-13 Richard Biener <rguenther@suse.de>
26398 PR tree-optimization/64404
26399 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
26400 SLP types for CSEd loads.
26402 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
26404 PR tree-optimization/64436
26405 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
26406 merge of two symbolic numbers for a bitwise OR to ...
26407 (perform_symbolic_merge): This. Also fix computation of the range and
26408 end of the symbolic number corresponding to the result of a bitwise OR.
26410 2015-01-13 Richard Biener <rguenther@suse.de>
26412 PR tree-optimization/64568
26413 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
26414 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
26416 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
26418 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
26419 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
26421 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
26423 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
26424 target-specific symbol_ref flag.
26425 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
26426 resides in rodata section.
26427 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
26428 (nds32_encode_section_info): New function.
26430 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
26432 * config/nds32/nds32.md (call): Use pseudo instruction bal which
26433 clobbers TA_REGNUM if large code model is specified.
26434 (call_register): Likewise.
26435 (call_immediate): Likewise.
26436 (call_value): Likewise.
26437 (call_value_register): Likewise.
26438 (call_value_immediate): Likewise.
26440 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
26442 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
26443 (TARGET_CMODEL_MEDIUM): New macro.
26444 (TARGET_CMODEL_LARGE): New macro.
26445 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
26446 code model setting in assembly code.
26448 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
26450 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
26451 Remove MASK_GP_DIRECT flag.
26452 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
26453 one of the multilib default options.
26454 * config/nds32/nds32.opt (mgp-direct): Remove.
26455 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
26456 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
26458 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
26460 * config/nds32/nds32.opt (mcmodel): Add new option.
26461 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
26462 to describe code model.
26464 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
26467 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
26469 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
26471 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
26472 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
26473 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
26474 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
26475 __builtin_sh_set_fpscr.
26477 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
26479 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
26480 after a funtion name just to indicate it is a function.
26481 ([-fsanitize-undefined-trap-on-error]): Likewise.
26482 ([-fdbg-cnt=]): Likewise.
26483 ([-mmemcpy]): Likewise.
26484 ([-mflush-func]): Likewise.
26485 ([-msynci]): Likewise.
26487 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
26489 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
26492 2015-01-12 Jakub Jelinek <jakub@redhat.com>
26494 PR tree-optimization/64563
26495 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
26496 instead of != VR_VARYING.
26499 * config/i386/i386.c (ix86_expand_prologue): Add
26500 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
26502 PR tree-optimization/64454
26503 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
26504 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
26505 for signed or [0, op1 - 1] for unsigned modulo.
26506 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
26507 even if op1 does not satisfy integer_pow2p.
26510 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
26512 2015-01-12 Jeff Law <law@redhat.com>
26515 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
26516 (trunchiqi2, truncsihi2): Similarly.
26518 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
26519 rather than calling F.
26521 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
26523 * tsan.c (instrument_expr): Use force_gimple_operand.
26524 Use may_be_nonaddressable_p instead of is_gimple_addressable.
26526 2015-01-12 Richard Biener <rguenther@suse.de>
26528 PR tree-optimization/64530
26529 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
26532 2015-01-12 Richard Biener <rguenther@suse.de>
26534 PR middle-end/64357
26535 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
26538 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26540 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
26541 Cortex-A17 tuning parameters.
26542 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
26544 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26546 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
26547 * config/arm/arm.c (arm_macro_fusion_p): New function.
26548 (arm_macro_fusion_pair_p): Likewise.
26549 (TARGET_SCHED_MACRO_FUSION_P): Define.
26550 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
26551 (ARM_FUSE_NOTHING): Likewise.
26552 (ARM_FUSE_MOVW_MOVT): Likewise.
26553 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
26554 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
26555 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
26556 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
26557 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
26558 arm_cortex_a5_tune): Specify fuseable_ops value.
26560 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
26563 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
26564 test for PIE with copy reloc.
26565 * configure: Regenerated.
26567 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26569 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
26571 (arm_tls_descseq_addr): Likewise.
26572 (arm_gen_movmemqi): Likewise.
26573 (arm_expand_epilogue_apcs_frame): Likewise.
26574 (arm_expand_epilogue): Likewise.
26575 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
26578 2015-01-12 Martin Liska <mliska@suse.cz>
26581 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
26582 volatility for correct operands.
26584 2015-01-12 Martin Liska <mliska@suse.cz>
26586 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
26587 indication that a function is not leaf.
26588 (sem_function::compare_polymorphic_p): Likewise.
26590 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26592 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
26593 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
26594 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
26595 fold-const.h, tree-check.h.
26597 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
26601 * ipa-inline.c (compute_uninlined_call_time,
26602 compute_inlined_call_time): Use counts for extra precision when
26604 (big_speedup_p): Fix formating.
26605 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
26606 (relative_time_benefit): Remove.
26607 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
26608 merge guessed and read profile paths.
26609 (inline_small_functions): Count only !optimize_size functions into
26610 initial size; be more lax about sanity check when profile is used;
26611 be sure to update inlined function profile when profile is read.
26613 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
26616 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
26617 cost when edge becomes direct.
26618 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
26619 is resolved or when introducing new speculation.
26621 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
26625 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
26626 '||' to fix typo issue.
26628 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
26629 accept and return NULL.
26631 2015-01-12 Martin Liska <mliska@suse.cz>
26633 * cgraph.c (cgraph_edge::remove_callee): Move function to header
26634 file for being inlined.
26635 (cgraph_set_edge_callee): Delete.
26636 (cgraph_edge::redirect_callee): Move function to header file
26638 (cgraph_edge::make_direct): Use new function.
26639 (cgraph_edge::dump_edge_flags): New function created from
26640 static dump_edge_flags function.
26641 (cgraph_node::dump): Use new function.
26642 (cgraph_edge::verify_count_and_frequency): New function created
26643 from verify_edge_count_and_frequency.
26644 (cgraph_edge::verify_corresponds_to_fndecl): New function created
26645 from verify_edge_corresponds_to_fndecl.
26646 (verify_edge_corresponds_to_fndecl): Delete.
26647 (cgraph_node::verify_node): Use new function.
26648 * cgraph.h (cgraph_edge::set_callee): New function.
26649 (cgraph_edge::dump_edge_flags): Likewise.
26650 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
26652 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
26654 * ipa-utils.c (estimate_function_body_sizes): Do not
26655 free node params when called late with early=true.
26657 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
26659 * doc/md.texi (Instruction Patterns): Rewrite text for
26661 (Example): Likewise.
26663 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
26665 * doc/invoke.texi (Option Summary): Break long lines.
26666 [(-fdiagnostics-color)]: Put long literal in @smallexample
26668 [(-fsanitize-recover)]: Likewise.
26669 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
26670 [(-ffast-math)]: Likewise.
26671 [(--param max-inline-insns-recursive)]: Likewise.
26672 [(--param max-inline-recursive-depth)]: Likewise.
26673 [(-mno-text-section-literals)]: Likewise.
26675 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
26677 * doc/install.texi: Update for libgomp being renamed from "GNU
26678 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
26680 * doc/sourcebuild.texi: Likewise.
26682 2015-01-10 Anthony Green <green@moxielogic.com>
26684 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
26685 mul.x availability for moxiebox configuration.
26687 2015-01-09 Anthony Green <green@moxielogic.com>
26689 * config/moxie/moxie.md: Tabify assembly output.
26691 2015-01-09 Anthony Green <green@moxielogic.com>
26693 * config/moxie/moxie.md (CC_REG): Correct register definition.
26695 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
26697 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
26698 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
26701 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
26703 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
26705 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
26706 Jakub Jelinek <jakub@redhat.com>
26708 PR middle-end/64412
26709 * lto-streamer.h (lto_stream_offload_p): New declaration.
26710 * lto-streamer.c (lto_stream_offload_p): New variable.
26711 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
26712 at the same time as section_name_prefix.
26713 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
26714 if lto_stream_offload_p.
26715 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
26716 stream TREE_TARGET_OPTION if lto_stream_offload_p.
26717 (write_ts_function_decl_tree_pointers): Don't
26718 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
26719 * tree-streamer-in.c (unpack_value_fields): Don't stream
26720 TREE_TARGET_OPTION in if ACCEL_COMPILER.
26721 (lto_input_ts_function_decl_tree_pointers): Don't stream
26722 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
26723 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
26724 instead of section_name_prefix string comparisons.
26726 2015-01-09 Jakub Jelinek <jakub@redhat.com>
26728 PR rtl-optimization/64536
26729 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
26732 2015-01-09 Michael Collison <michael.collison@linaro.org>
26734 PR tree-optimization/64322
26735 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
26736 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
26738 2015-01-09 Tom de Vries <tom@codesourcery.com>
26740 PR rtl-optimization/64539
26741 * regcprop.c (kill_clobbered_values): Factor out of ...
26742 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
26743 instead of note_stores with kill_clobbered_value.
26745 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
26747 * ginclude/unwind-arm-common.h: Revert previous commit.
26749 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
26751 * config.gcc (arm*-*-freebsd*): New configuration.
26752 * config/arm/freebsd.h: New file.
26753 * config.host: Add extra components for arm*-*-freebsd*.
26754 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
26755 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
26757 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
26759 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
26761 * config/rs6000/t-rtems: Add e6500 multilibs.
26763 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
26765 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
26768 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
26770 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
26771 MULTILIB_EXCEPTIONS.
26773 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
26775 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
26776 MULTILIB_EXCEPTIONS.
26778 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
26780 * config/arm/t-rtems-eabi: Rename to...
26781 * config/arm/t-rtems: ...this.
26782 * config/arm/rtems-eabi.h: Rename to...
26783 * config/arm/rtems.h: ...this.
26784 * config.gcc (arm*-*-rtems*): Reflect changes above.
26786 2015-01-09 Richard Biener <rguenther@suse.de>
26788 PR tree-optimization/64410
26789 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
26791 (execute_update_addresses_taken): Deal with that.
26792 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
26793 loads/stores for complex variables.
26795 2015-01-09 Martin Liska <mliska@suse.cz>
26797 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
26799 (func_checker::compare_memory_operand): New function.
26800 (func_checker::compare_operand): Split case to newly
26802 (func_checker::compare_cst_or_decl): New function.
26803 (func_checker::compare_gimple_call): Identify
26805 (func_checker::compare_gimple_assign): Likewise.
26806 * ipa-icf-gimple.h: New function.
26808 2015-01-09 Martin Liska <mliska@suse.cz>
26811 * sreal.c (sreal::dump): Change unsigned format to signed for
26813 (sreal::to_double): Replace exp2 with scalbln.
26815 2015-01-09 Martin Liska <mliska@suse.cz>
26817 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
26818 * ipa-icf.c (sem_function::equals_private): Add support for target and
26819 (sem_item_optimizer::merge_classes): Remove redundant function
26820 optimization flags comparison.
26821 * tree.h (target_opts_for_fn): New function.
26823 2015-01-09 Tom de Vries <tom@codesourcery.com>
26825 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
26827 2015-01-09 Kito Cheng <kito@0xlab.org>
26829 PR rtl-optimization/64348
26830 * lra-constraints.c (split_reg): Fix caller-save store/restore
26831 instruction generation.
26833 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
26835 PR gcov-profile/61790
26836 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
26837 long long. Fallback to int64_t if host doesn't have long long and
26838 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
26840 2015-01-08 Jakub Jelinek <jakub@redhat.com>
26842 PR tree-optimization/63989
26843 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
26844 from 1000 to 10000.
26845 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
26846 (get_stridx): If we don't have a record for certain SSA_NAME,
26847 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
26848 constant offset, call get_stridx_plus_constant.
26849 (get_stridx_plus_constant): New function.
26850 (zero_length_string): Don't use get_stridx here.
26853 PR middle-end/64388
26854 * dse.c (struct insn_info): Mention frame_read set also
26855 before reload for tail calls on some targets.
26856 (scan_insn): Revert 2014-12-22 change. Set frame_read
26857 also before reload for tail calls if
26858 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
26859 instead of add_non_frame_wild_read for non-const/memset
26860 tail calls after reload.
26862 2015-01-08 Jason Merrill <jason@redhat.com>
26864 * ubsan.c (do_ubsan_in_current_function): New.
26865 (pass_ubsan::gate): Use it.
26866 * ubsan.h: Declare it.
26867 * convert.c (convert_to_integer): Use it.
26869 2015-01-08 Jakub Jelinek <jakub@redhat.com>
26872 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
26873 compare_code when it is unconditionally overwritten afterwards.
26874 Use ix86_reverse_condition instead of reverse_condition. Don't
26875 change code if *reverse_condition* returned UNKNOWN and don't
26876 swap ct/cf and negate diff in that case.
26878 2015-01-08 Mike Stump <mikestump@comcast.net>
26880 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
26881 (pass_tsan_O0::gate): Likewise.
26882 * extend.texi (Function Attributes): Add no_sanitize_thread
26885 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
26887 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
26888 for registering builtins.
26889 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
26890 add -fopenmp to the argv_obstack used when invoking
26891 compile_for_target.
26893 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
26894 add "-m32" or "-m64" to argv_obstack.
26895 (generate_host_descr_file): Likewise, when invoking host_compiler.
26896 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
26899 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
26901 * config/sh/sh-mem.cc: Use constant as second operand when emitting
26904 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
26907 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
26908 constant load if constant operand fits into I08.
26910 2015-01-08 Jakub Jelinek <jakub@redhat.com>
26913 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
26914 and TREE_THIS_VOLATILE for MEM_REFs.
26915 (build5_stat): Fix up initialization of TREE_READONLY and
26916 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
26918 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
26921 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
26922 of r for the second alternative of the destination operand.
26924 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
26927 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
26929 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
26931 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
26933 ([-fivar-visibility], [-fvisibility]): Likewise.
26935 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
26937 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
26938 the file where @code, @command, etc is more appropriate.
26940 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
26942 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
26943 of -mrecip= documentation.
26945 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26948 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
26949 correct reload handler if -m32 -mpowerpc64 is used.
26951 2015-01-06 Tom de Vries <tom@codesourcery.com>
26953 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
26955 2015-01-08 Christian Bruel <christian.bruel@st.com>
26958 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
26960 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
26962 PR tree-optimization/63259
26963 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
26964 if optab exists for 16bit byteswap.
26966 2015-01-06 Jakub Jelinek <jakub@redhat.com>
26968 * opts.c (common_handle_option): Add support for
26969 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
26970 * doc/invoke.texi: Document -fno-sanitize=all,
26971 -f{,no-}sanitize-recover=all. Document that
26972 -fsanitize=float-cast-overflow is not enabled
26973 by -fsanitize=undefined. Fix up documentation
26974 of -f{,no-}sanitize-recover.
26976 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
26978 * config.gcc: Add Visium support.
26979 * configure.ac: Likewise.
26980 * configure: Regenerate.
26981 * doc/extend.texi (interrupt attribute): Add Visium.
26982 * doc/invoke.texi: Document Visium options.
26983 * doc/install.texi: Document Visium target.
26984 * doc/md.texi: Document Visium constraints.
26985 * common/config/visium: New directory.
26986 * config/visium: Likewise.
26988 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
26990 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
26991 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
26993 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
26995 * combine.c (combine_validate_cost): Do not count the cost of a
26996 split I2 twice. Do not display it twice in the dump, either.
26998 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
27000 Revert parts of r219199.
27001 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
27003 ([-Wtraditional]): Restore markup on <limits.h>.
27005 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
27008 * doc/invoke.texi: Document -Wsuggest-override.
27010 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
27012 PR rtl-optimization/64287
27013 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
27014 (process_options): Disable flag_ipa_ra if profiling.
27016 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
27018 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
27020 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
27022 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
27023 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
27024 put under #if TARGET_LOOPS guard.
27026 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
27028 * config/i386/i386.c (output_387_binary_op): Use std::swap.
27030 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
27032 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
27033 * rtl.h (refers_to_regno_p): Add overload.
27035 * bt-load.c: Likewise.
27036 * combine.c: Likewise.
27037 * df-scan.c: Likewise.
27038 * sched-deps.c: Likewise.
27039 * config/s390/s390.c: Likewise.
27040 * config/m32r/m32r.c: Likewise.
27041 * config/rs6000/spe.md: Likewise.
27042 * config/rs6000/rs6000.c: Likewise.
27043 * config/pa/pa.c: Likewise.
27044 * config/stormy16/stormy16.c: Likewise.
27045 * config/cris/cris.c: Likewise.
27046 * config/arc/arc.md: Likewise.
27047 * config/arc/arc.c: Likewise.
27048 * config/sh/sh.md: Likewise.
27049 * config/sh/sh.c: Likewise.
27050 * config/frv/frv.c: Likewise.
27052 2015-01-05 Jakub Jelinek <jakub@redhat.com>
27055 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
27056 call as cleanup of the whole body.
27057 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
27058 * tsan.c (replace_func_exit): New function.
27059 (instrument_func_exit): Moved earlier.
27060 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
27061 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
27063 (tsan_pass): Don't call instrument_func_exit.
27064 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
27065 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
27069 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
27070 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
27071 it to libubsan handler instead of EXPR. Fold comparisons earlier,
27072 if the result is integer_zerop, return NULL_TREE.
27073 * convert.c (convert_to_integer): Pass expr as ARG.
27075 PR tree-optimization/64465
27076 * tree-inline.c (redirect_all_calls): During inlining
27077 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
27078 changed the stmt to a non-throwing call.
27080 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
27082 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
27083 etc markup throughout the file.
27085 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
27087 Enable experimental TSAN support for Ada.
27088 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
27090 2015-01-05 Jakub Jelinek <jakub@redhat.com>
27092 PR tree-optimization/64494
27093 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
27094 clear SSA_NAME_ANTI_RANGE_P flag.
27096 2015-01-05 Marek Polacek <polacek@redhat.com>
27098 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
27100 2015-01-05 Jakub Jelinek <jakub@redhat.com>
27102 Update copyright years.
27104 * gcc.c (process_command): Update copyright notice dates.
27105 * gcov-dump.c: Ditto.
27107 * doc/cpp.texi: Bump @copying's copyright year.
27108 * doc/cppinternals.texi: Ditto.
27109 * doc/gcc.texi: Ditto.
27110 * doc/gccint.texi: Ditto.
27111 * doc/gcov.texi: Ditto.
27112 * doc/install.texi: Ditto.
27113 * doc/invoke.texi: Ditto.
27115 * auto-profile.c, auto-profile.h: Fix up Copyright line.
27117 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
27119 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
27121 ([-fvtable-verify], [-fvtv-debug]): Likewise.
27122 ([-Wabi]): Likewise.
27123 ([-fmessage-length]): Likewise.
27124 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
27125 ([-Wno-discarded-qualifiers]): Likewise.
27126 ([-Wnodiscarded-array-qualifiers]): Likewise.
27127 ([-Wno-virtual-move-assign]): Likewise.
27128 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
27129 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
27130 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
27131 ([-fsanitize-undefined-trap-on-error]): Likewise.
27132 ([-floop-interchange]): Likewise.
27133 ([-ftree-coalesce-inlined-vars]): Likewise.
27134 ([-fvect-cost-model]): Likewise.
27135 ([-flto]): Likewise.
27136 ([--param]): Likewise.
27137 (Spec Files): Likewise.
27138 ([-mstrict-align]): Likewise.
27139 ([-mfix-cortex-a53-835769]): Likewise.
27140 ([-march], [-mtune]): Likewise.
27141 ([-mpic-register]): Likewise.
27142 ([-munaligned-access]): Likewise.
27143 ([-msp8]): Likewise.
27144 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
27145 (AVR Built-in Macros): Likewise.
27146 ([-mpreferred-stack-boundary]): Likewise.
27147 ([-mtune-crtl]): Likewise.
27148 ([-mashf]): Likewise.
27149 ([-mmcu=]): Likewise.
27150 ([-minrt]): Likewise.
27151 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
27152 ([-mupper-regs]): Likewise.
27153 ([-matomic-model]): Likewise.
27154 ([-mdiv]): Likewise.
27155 ([-mzdcbranch]): Likewise.
27156 ([-mdisable-callt]): Likewise.
27157 ([-msoft-float]): Likewise.
27158 ([-m8byte-align]): Likewise.
27159 ([-fstack-reuse]): Likewise.
27161 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
27163 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
27164 Fix markup, light copy-editing.
27165 ([-fauto-profile]): Rewrite to fix formatting and content
27168 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
27170 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
27171 Copy-edit description.
27172 ([-fisolate-erroneous-paths-attribute]): Likewise.
27173 * common.opt (fisolate-erroneous-paths-dereference):
27174 Copy-edit description.
27175 (fisolate-erroneous-paths-attribute): Likewise.
27177 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
27179 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
27182 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
27184 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
27185 ([-fvtv-debug]): Likewise.
27186 ([-Wc++-compat]): Likewise.
27187 ([-Wc++11-compat]): Likewise.
27188 ([-Wc++14-compat]): Likewise.
27189 ([-Wno-sized-deallocation]): Likewise.
27190 ([-femit-class-debug-always]): Likewise.
27191 ([-femit-struct-debug-detailed]): Likewise.
27192 ([-fno-keep-inline-dllexport]): Likewise.
27193 ([-fira-algorithm]): Likewise.
27194 ([-fira-region]): Likewise.
27195 ([-flra-remat]): Likewise.
27196 ([-fipa-ra]): Likewise.
27197 ([-fhoist-adjacent-loads]): Likewise.
27198 ([-fisolate-erroneous-paths-dereference]): Likewise.
27199 ([-fisolate-erroneous-paths-attribute]): Likewise.
27200 ([-ftree-switch-conversion]): Likewise.
27201 ([-ftree-tail-merge]): Likewise.
27202 ([-ftree-loop-if-convert]): Likewise.
27203 ([-ftree-loop-if-convert-stores]): Likewise.
27204 ([-ftree-loop-distribution]): Likewise.
27205 ([-ftree-loop-distribute-patterns]): Likewise.
27206 ([-flto-compression-level]): Likewise.
27207 ([-flto-report]): Likewise.
27208 ([-flto-report-wpa]): Likewise.
27209 ([-fuse-linker-plugin]): Likewise.
27210 ([-mfix-cortex-a53-835769]): Likewise.
27211 ([-mno-fix-cortex-a53-835769]): Likewise.
27212 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
27213 explicit listing; add a note to the discussion indicating they
27214 exist. Reorder table to group similar options. Add missing
27215 @opindex entries. Add @need commands throughout the table to
27216 allow it to be split across multiple pages.
27217 ([-m8bit-idiv]): Fix @opindex.
27218 ([-mavx256-split-unaligned-load]): Likewise.
27219 ([-mavx256-split-unaligned-store]): Likewise.
27220 ([-mstack-protector-guard]): Likewise.
27221 ([-mcpu=]): Likewise.
27222 ([-mcpu]): Likewise.
27223 ([-mpointer-size=]): Likewise.
27225 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
27227 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
27228 instead of `m' constraint. Likewise for unnamed movb comparison
27229 patterns using reg_before_reload_operand predicate.
27230 * config/pa/predicates.md (reg_before_reload_operand): Tighten
27231 predicate to reject register index and LO_SUM DLT memory forms
27234 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
27236 * doc/invoke.texi (Option Summary): Fix spelling of
27237 -fdevirtualize-at-ltrans.
27238 ([-fdevirtualize]): Fix markup.
27239 ([-fdevirtualize-speculatively]): Fix typo.
27240 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
27241 implementor-speaky.
27242 * common.opt (fdevirtualize-at-ltrans): Likewise.
27243 * ipa-devirt.c: Fix typos in comments throughout the file.
27244 (ipa_devirt): Fix typos in format strings for dump output.
27246 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
27248 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
27249 discussion of defaults, light copy-editing.
27251 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
27253 * tsan.c (instrument_expr): corrected previous checkin.
27255 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
27257 Instrument bit field and unaligned accesses for TSAN.
27258 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
27259 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
27260 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
27261 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
27262 unaligned memory regions.
27264 2015-01-01 Anthony Green <green@moxielogic.com>
27266 * config/moxie/predicates.md (moxie_general_movsrc_operand):
27267 Restrict move source register offsets to 16 bits.
27269 Copyright (C) 2015 Free Software Foundation, Inc.
27271 Copying and distribution of this file, with or without modification,
27272 are permitted in any medium without royalty provided the copyright
27273 notice and this notice are preserved.