1 2015-01-21 Alan Hayward <alan.hayward@arm.com>
3 * rtlanal.c (subreg_get_info): Exit early for simple and common
6 2015-01-21 Richard Henderson <rth@redhat.com>
9 * ccmp.c (used_in_cond_stmt_p): Remove.
10 (expand_ccmp_expr): Don't use it.
12 2015-01-21 Nick Clifton <nickc@redhat.com>
14 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
17 2015-01-21 Richard Biener <rguenther@suse.de>
20 * tree-core.h (builtin_info, builtin_info_type): Turn from
21 an object with two arrays into an array of an object with
22 decl and two flags, implicit_p and declared_p.
23 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
24 set_builtin_decl, set_builtin_decl_implicit_p,
25 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
26 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
27 * builtins.c (builtin_info): Adjust.
28 * gimplify.c (gimplify_addr_expr): References to builtins
29 that have been declared by the user makes them eligible for
30 use by the compiler. Call set_builtin_decl_implicit_p on them.
32 2015-01-20 Jeff Law <law@redhat.com>
35 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
36 allow pc-relative addresses in operand predicates or constraints.
38 2015-01-21 Bin Cheng <bin.cheng@arm.com>
40 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
41 neon on aarch32 processors for stringops.
43 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
46 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
48 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
51 * ipa-inline.c: Include lto-streamer.h
52 (report_inline_failed_reason): Output source file differences and
53 flags on optimization/target node mismatch.
54 (can_inline_edge_p): Consider caller to be the outer inline function;
55 be less restrictive about matching opimize and optimize_size attributes.
56 (inline_account_function_p): Break out from ...
57 (inline_small_functions): ... here.
58 * ipa-inline-transform.c (clone_inlined_nodes): Use
59 inline_account_function_p.
60 (inline_call): Use optimize attribution; use inline_account_function_p.
61 (inline_transform): Use opt_for_fn.
62 * ipa-inline.h (inline_account_function_p): Declare.
64 2015-01-20 Jakub Jelinek <jakub@redhat.com>
67 * dwarf2out.c (decl_piece_node): Don't put bitsize into
69 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
70 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
73 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
75 * config/nios2/nios2.c (nios2_asm_file_end): Implement
76 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
78 (TARGET_ASM_FILE_END): Define.
80 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
82 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
83 (struct tune_params): Use the enum.
84 * arm.c (arm_*_tune): Update.
85 (arm_option_override): Update.
87 2015-01-20 Richard Biener <rguenther@suse.de>
90 * ipa-reference.c (add_static_var): Inline ...
91 (analyze_function): ... here after splitting out from ...
92 (is_proper_for_analysis): ... this.
94 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
97 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
98 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
99 replace the conditional with it's true branch.
100 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
103 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
105 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
107 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
109 * config/tilegx/mul-tables.c: Move symtab.h include after coretypes.h include.
110 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h, vec.h,
111 machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h, flags.h, statistics.h,
112 double-int.h, real.h, fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h,
113 insn-config.h, expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
115 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
119 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
121 PR rtl-optimization/64081
122 * loop-iv.c (def_pred_latch_p): New function.
123 (latch_dominating_def): Allow specific cases with non-single
125 (iv_get_reaching_def): Likewise.
126 (check_complex_exit_p): New function.
127 (check_simple_exit): Use check_complex_exit_p to allow certain cases
128 with exits not executing on any iteration.
130 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
133 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
136 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
139 * i386.c (gate): Check flag_expensive_optimizations and
141 (ix86_option_override_internal): Drop optimize_size condition
142 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
143 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
145 (ix86_avx256_split_vector_move_misalign,
146 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
147 * sse.md (all uses of TARGET_PREFER_AVX128): Add
148 optimize_insn_for_speed_p check.
150 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
152 * config/mips/mips.h (FP_ASM_SPEC): New define.
153 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
156 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
159 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
160 nullptr for insn when reaching the first insn.
161 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
162 (sh_insn_operands_modified_between_p): Add nullptr check.
163 (sh_find_extending_set_of_reg): Fix log message. Don't accept
164 sign extending mem load if the insn contains any UNSPEC or
167 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
169 * params.def (inline-unit-growth): Drop to 15%.
170 * invoke.texi (inline-unit-growth): Document change.
172 2015-01-19 Martin Liska <mliska@suse.cz>
175 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
176 function for second argument of OBJ_TYPE_REF.
178 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
181 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
182 whether function is an alias.
184 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
186 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
189 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
191 PR rtl-optimization/64671
192 * lra-remat.c (operand_to_remat): Don't consider jump and call
195 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
197 * config/rs6000/default64.h: Include rs6000-cpus.def.
198 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
199 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
200 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
202 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
204 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
205 pseudo-op to specify assembler dialect.
207 2015-01-19 Martin Liska <mliska@suse.cz>
210 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
211 Handle safe potentially removed nodes during filtering.
213 2015-01-19 Martin Liska <mliska@suse.cz>
215 * doc/extend.texi (no_icf): Add new attribute description.
216 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
217 where the pass attempts to merge a function with no_icf attribute.
219 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
222 * doc/md.texi (ARM Options): Document register constraints.
224 2015-01-19 Jiong Wang <jiong.wang@arm.com>
225 Andrew Pinski <apinski@cavium.com>
228 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
229 (ashl<mode>3): Don't expand if operands[2] is not constant.
231 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
234 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
235 Match xor-and-xor RTL pattern.
237 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
239 PR rtl-optimization/64081
240 * loop-iv.c (def_pred_latch_p): New function.
241 (latch_dominating_def): Allow specific cases with non-single
243 (iv_get_reaching_def): Likewise.
244 (check_complex_exit_p): New function.
245 (check_simple_exit): Use check_complex_exit_p to allow certain cases
246 with exits not executing on any iteration.
248 2015-01-19 Jakub Jelinek <jakub@redhat.com>
250 * common.opt (fgraphite): Fix a typo.
252 2015-01-19 Felix Yang <felix.yang@huawei.com>
254 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
256 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
257 uminp, smax_nanp, smin_nanp): New builtins.
258 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
259 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
260 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
261 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
262 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
263 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
264 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
265 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
266 vpminnms_f32): Rewrite using builtin functions.
268 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
271 * omp-low.c (offload_symbol_decl): Remove variable.
272 (get_offload_symbol_decl): Remove function.
273 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
274 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
275 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
276 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
277 BUILT_IN_GOACC_UPDATE don't pass it at all.
279 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
281 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
284 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
286 * ipa-chkp.c (chkp_produce_thunks): Add early param
287 to split thunks production into two passes. Keep
288 'always_inline' function bodies after the first pass.
289 (pass_data_ipa_chkp_early_produce_thunks): New.
290 (pass_ipa_chkp_early_produce_thunks): New.
291 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
292 chkp_produce_thunks signature.
293 (make_pass_ipa_chkp_early_produce_thunks): New.
294 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
295 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
296 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
298 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
300 * cgraph.c (cgraph_node::dump): Dump profile flags.
302 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
305 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
306 reg appear first in the parallel.
308 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
310 * ipa-reference.c (set_reference_optimization_summary,
311 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
313 (ignore_module_statics): New static var.
314 (propagate_bits): If ipa-reference is disabled, do not look into local
316 (analyze_function): Disable analysis when ipa_reference is disabled.
317 (generate_summary): Do not dump when reference is disabled;
318 collect vars accessed from functions with ipa-reference disabled.
319 (get_read_write_all_from_node): When ipa-reference is disabled, use the
321 (gate): Enable for LTO.
322 (ignore_edge_p): New function.
323 (propagate): Skip functions w/o ipa-reference analysis.
324 * optc-save-gen.awk: Handle optimize_debug correctly.
325 * opth-gen.awk: Likewise.
326 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
327 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
328 fira-share-save-slots, fira-share-spill-slots,
329 fmodulo-sched-allow-regmoves, fpartial-inlining,
330 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
331 ftracer, ftree-parallelize-loops, fassociative-math,
332 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
334 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
335 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
337 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
340 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
343 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
345 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
347 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
349 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
350 Remove duplicate option listings.
352 2015-01-18 Felix Yang <felix.yang@huawei.com>
354 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
355 (autofdo_source_profile::get_callsite_total_count,
356 function_instance::get_function_instance_by_decl,
357 string_table::get_index, string_table::get_index_by_decl,
358 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
359 Fix comment typos. Reformatting and minor code rearrangement.
361 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
363 * config/rs6000/rs6000.md (probe_stack): Delete.
364 (probe_stack_address): New.
366 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
368 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
369 to test for 32-bit ABIs, not !TARGET_POWERPC64.
371 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
373 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
374 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
375 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
377 (rs6000_libcall_value): Use the new function.
379 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
381 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
383 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
385 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
386 implement a more precise life analysis for it during backward scan.
388 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
390 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
392 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
394 PR rtl-optimization/52773
395 * calls.c (emit_library_call_value): When pushing arguments use
396 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
397 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
398 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
400 2015-01-17 Jeff Law <law@redhat.com>
402 PR rtl-optimization/32790
403 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
404 not ZERO_EXTEND in SET_DESTs.
406 2015-01-17 Alan Modra <amodra@gmail.com>
408 * cprop.c (do_local_cprop): Revert last change.
410 2015-01-16 DJ Delorie <dj@redhat.com>
411 Nick Clifton <nickc@redhat.com>
413 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
414 (addhi3_real): Likewise. Fix [HL+0] syntax.
415 (subqi3_real): Likewise.
416 (subhi3_real): Likewise.
417 (cbranchqi4_real): Likewise. Allow saddr,#imm.
418 (cbranchhi4_real): Likewise.
419 (cbranchhi4_real_inverted): Likewise.
420 (cbranchsi4_real_lt): Likewise.
421 (cbranchsi4_real_ge): Likewise.
422 (cbranchsi4_real_ge): Likewise.
423 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
424 (sub<mode>3_virt): Likewise.
425 (cbranchqi4_virt): Likewise.
426 (cbranchhi4_virt): Likewise.
427 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
428 always use '[reg+imm]' even when imm is zero.
429 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
430 (rl78_general_operand): New.
431 (rl78_nonimmediate_operand): New.
432 (rl78_nonfar_operand): Use them.
433 (rl78_nonfar_nonimm_operand): Likewise.
434 (rl78_stack_based_mem): Fix.
435 * config/rl78/constraints.md (Ibqi): New.
440 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
443 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
445 * config/rl78/constrains (Qs8): New constraint.
446 * config/rl78/rl78.c (rl78_flags_already_set): New function.
447 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
448 * config/rl78/rl78-real.md (update_Z): New attribute.
449 Update patterns to set it.
450 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
451 shorter compare and branch sequence can be used.
452 (cbranchhi4_real): Likewise.
453 (cbranchhi4_real_inverted): Likewise.
455 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
456 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
458 * config/rl78/rl78.c (rl78_get_name_encoding): New.
459 (rl78_option_override): Allow -mes0 only if C.
460 (characterize_address): Support subregs of symbol_refs.
461 (rl78_addr_space_address_mode): Move. Add __near.
462 (rl78_far_p): Likewise.
463 (rl78_addr_space_pointer_mode): Likewise.
464 (rl78_as_legitimate_address): Likewise.
465 (rl78_addr_space_subset_p): Likewise.
466 (rl78_addr_space_convert): Likewise.
467 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
469 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
471 (rl78_alloc_physical_registers_op1): Change logic to prefer
472 symbol[BC] addressing.
473 (frodata_section): New.
474 (rl78_asm_init_sections): Initialize it.
475 (rl78_select_section): Put __far readonly symbols in .frodata.
476 (rl78_make_type_far): New.
477 (rl78_insert_attributes): Force all readonly symbols to be __far when -mes0.
478 (rl78_asm_out_integer): New.
479 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
480 * config/rl78/rl78.opt (-mes0): New.
482 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
483 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
484 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
485 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
487 (rl78_output_aligned_common): New.
488 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
489 (rl78_handle_saddr_attribute): New.
490 (rl78_handle_naked_attribute): New.
491 (rl78_attribute_table): Add saddr.
492 (rl78_print_operand_1): Don't print '!' on saddr operands.
493 (rl78_print_operand_1): Strip encodings.
495 (rl78_strip_name_encoding): New.
496 (rl78_attrlist_to_encoding): New.
497 (rl78_encode_section_info): New.
498 (rl78_asm_init_sections): New.
499 (rl78_select_section): New.
500 (rl78_output_labelref): New.
501 (rl78_output_aligned_common): New.
502 (rl78_asm_out_integer): New.
503 (rl78_asm_ctor_dtor): New.
504 (rl78_asm_constructor): New.
505 (rl78_asm_destructor): New.
507 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
508 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
509 (transcode_memory_rtx): Update.
510 (rl78_expand_epilogue): Use A_REG instead of 0.
512 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
514 * config/arm/arm-protos.h (struct tune_params): New field
515 sched_autopref_queue_depth.
516 * config/arm/arm.c (sched-int.h): Include header.
517 (arm_first_cycle_multipass_dfa_lookahead_guard,)
518 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
519 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
520 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
521 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
522 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
523 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
524 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
525 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
526 * config/arm/t-arm (arm.o): Update.
527 * haifa-sched.c (update_insn_after_change): Update.
528 (rank_for_schedule): Use auto-prefetcher model, if requested.
529 (autopref_multipass_init): New static function.
530 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
531 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
532 variable for debug dumps.
533 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
534 (autopref_multipass_dfa_lookahead_guard): New global function that
535 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
536 (init_h_i_d): Update.
537 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
538 * sched-int.h (enum autopref_multipass_data_status): New const enum.
539 (autopref_multipass_data_): Structure for auto-prefetcher data.
540 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
541 (struct _haifa_insn_data:autopref_multipass_data): New field.
542 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
543 (autopref_multipass_dfa_lookahead_guard): Declare.
545 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
547 * rtlanal.c (get_base_term): Handle SCRATCH.
549 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
551 * config/aarch64/aarch64.c
552 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
553 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
555 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
556 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
558 2015-01-17 Alan Modra <amodra@gmail.com>
560 * cprop.c (do_local_cprop): Disallow replacement of fixed
563 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
566 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
569 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
571 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
572 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
574 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
576 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
577 * config/arm/thumb1.md: ... Here.
579 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
581 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
582 TImode for TARGET_32BIT.
584 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
586 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
587 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
589 (rs6000_abi_word_mode): New function.
591 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
593 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
594 instead of UNITS_PER_WORD to describe the size of stack slots.
596 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
598 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
599 as rs6000_promote_function_mode. Move comment to there.
600 (rs6000_promote_function_mode): New function.
602 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
604 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
605 -mpowerpc64 is active.
607 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
610 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
613 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
615 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
616 introduced in revision 219724.
618 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
619 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
622 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
623 destination is not a GP reg.
624 (*movdi_aarch64): Likewise.
626 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
629 * config/rs6000/default64.h: Revert ISA change.
631 2015-01-16 Richard Biener <rguenther@suse.de>
634 * tree-ssa-uninit.c: Include tree-cfg.h.
635 (MAX_SWITCH_CASES): New define.
636 (convert_control_dep_chain_into_preds): Handle switch statements.
637 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
638 (normalize_one_pred_1): Do not split bit-manipulations.
641 2015-01-16 Richard Biener <rguenther@suse.de>
643 PR tree-optimization/64568
644 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
645 complex load rewriting for TARGET_MEM_REFs.
647 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
649 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
651 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
654 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
656 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
657 (aarch64_lra_p): Remove.
659 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
662 * ipa-chkp.h (chkp_instrumentable_p): New.
663 * ipa-chkp.c: Include tree-inline.h.
664 (chkp_instrumentable_p): New.
665 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
666 Fix processing of not instrumentable functions.
667 (chkp_versioning): Use chkp_instrumentable_p. Warn about
668 not instrumentable functions.
669 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
670 chkp_instrumentable_p.
671 * tree-inline.h (copy_forbidden): New.
672 * tree-inline.c (copy_forbidden): Not static anymore.
674 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
676 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
679 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
681 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
682 type OP_OUT to OP_INOUT.
684 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
686 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
687 (high x) y) to y if x and y have the same base.
689 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
691 * config/arm/cortex-a57.md: New.
692 * config/aarch64/aarch64.md: Include it.
693 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
694 * config/aarch64/aarch64-tune.md: Regenerate.
696 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
699 * ccmp.c (expand_ccmp_next): New function.
700 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
701 and compare insn sequence.
702 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
703 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
704 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
705 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
706 (*ccmp_ior): Changed to ccmp_ior<mode>.
707 (cmp<mode>): New pattern.
708 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
710 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
712 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
714 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
715 _mm256_bsrli_epi128): New.
716 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
718 2015-01-15 Jiong Wang <jiong.wang@arm.com>
720 * expmed.c (store_bit_field_using_insv): Improve warning message.
721 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
723 2015-01-15 Jiong Wang <jiong.wang@arm.com>
725 PR rtl-optimization/64011
726 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
727 there is partial overflow.
729 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
731 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
733 (nds32_expand_epilogue_v3pop): Likewise.
734 * config/nds32/nds32.md (sibcall): Define this for sibling call
736 (sibcall_register): Likewise.
737 (sibcall_immediate): Likewise.
738 (sibcall_value): Likewise.
739 (sibcall_value_register): Likewise.
740 (sibcall_value_immediate): Likewise.
741 (sibcall_epilogue): Likewise.
742 (epilogue): Pass false to indicate this is not a sibcall epilogue.
743 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
744 (nds32_expand_epilogue_v3pop): Likewise.
746 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
748 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
749 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
750 (return_internal): New.
751 (return): Define this named pattern.
752 (simple_return): Define this named pattern.
753 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
754 pattern instead of unspec_volatile_func_return.
755 (nds32_expand_epilogue_v3pop): Likewise.
756 (nds32_can_use_return_insn): New function.
758 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
760 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
761 * config/nds32/nds32.md (pop25return): New.
762 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
765 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
767 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
768 -mforbid-fp-as-gp, and -mex9 options.
770 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
772 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
773 remove -mgp-direct option.
775 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
777 * doc/invoke.texi (--param early-inlining-insns): Update default value.
778 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
780 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
782 * ipa-inline.c (inline_small_functions): Work around hints
785 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
788 * doc/invoke.texi (Option Summary): Document new Nios II
790 (Nios II Options): Likewise.
791 * config/nios2/nios2.opt: Add -mgpopt= option support.
792 Modify existing -mgpopt and -mno-gpopt options to be aliases.
793 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
794 * config/nios2/nios2.c (nios2_option_override): Adjust
796 (nios2_in_small_data_p): Return true for explicit small data
797 sections even with -G0.
798 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
801 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
804 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
806 (inline_call): Fix removal of aliases.
808 2015-01-15 Jakub Jelinek <jakub@redhat.com>
810 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
811 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
812 * opts.c (common_handle_option): Add -fsanitize=vptr.
813 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
814 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
815 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
816 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
817 (ubsan_expand_vptr_ifn): New prototype.
818 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
819 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
820 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
821 expand_LOOP_VECTORIZED): Make argument nameless, remove
823 (expand_UBSAN_VPTR): New function.
824 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
826 (UBSAN_VPTR): New internal function.
827 * sanopt.c (tree_map_traits): Renamed to ...
828 (sanopt_tree_map_traits): ... this.
829 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
830 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
831 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
832 (maybe_optimize_ubsan_vptr_ifn): New function.
833 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
834 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
836 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
837 internal calls like pure functions for aliasing, even when they
838 have other side-effects that prevent making them ECF_PURE.
839 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
840 (ubsan_expand_vptr_ifn): New function.
842 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
844 PR rtl-optimization/64110
845 * stmt.c (parse_output_constraint): Process '^' and '$'.
846 (parse_input_constraint): Ditto.
847 * lra-constraints.c (process_alt_operands): Process the new
849 * ira-costs.c (record_reg_classes): Process the new constraint
851 * genoutput.c (indep_constraints): Add '^' and '$'.
852 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
853 * doc/md.texi: Add description of the new constraints.
855 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
856 Bernd Schmidt <bernds@codesourcery.com>
857 Cesar Philippidis <cesar@codesourcery.com>
858 James Norris <jnorris@codesourcery.com>
859 Tom de Vries <tom@codesourcery.com>
860 Ilmir Usmanov <i.usmanov@samsung.com>
861 Dmitry Bocharnikov <dmitry.b@samsung.com>
862 Evgeny Gavrin <e.gavrin@samsung.com>
863 Jakub Jelinek <jakub@redhat.com>
865 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
866 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
867 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
869 * builtins.c: Include "gomp-constants.h".
870 (expand_builtin_acc_on_device): New function.
871 (expand_builtin, is_inexpensive_builtin): Handle
872 BUILT_IN_ACC_ON_DEVICE.
873 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
875 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
877 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
878 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
879 i386/intelmic-offload.h.
880 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
881 to libgomp and its dependencies.
882 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
883 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
884 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
885 * config/ia64/hpux.h (LIB_SPEC): Likewise.
886 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
887 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
888 * doc/generic.texi: Update for OpenACC changes.
889 * doc/gimple.texi: Likewise.
890 * doc/invoke.texi: Likewise.
891 * doc/sourcebuild.texi: Likewise.
892 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
893 GF_OMP_FOR_KIND_OACC_LOOP.
894 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
895 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
896 GF_OMP_TARGET_KIND_OACC_UPDATE,
897 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
899 * gimple.c: Update comments for OpenACC changes.
900 * gimple.def: Likewise.
901 * gimple.h: Likewise.
902 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
903 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
904 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
905 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
906 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
908 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
909 * gimplify.c: Include "gomp-constants.h".
910 Update comments for OpenACC changes.
911 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
912 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
913 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
914 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
915 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
916 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
917 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
918 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
919 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
921 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
922 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
923 OMP_CLAUSE_SET_MAP_KIND.
924 (gimplify_oacc_cache): New function.
925 (gimplify_omp_for): Handle OACC_LOOP.
926 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
928 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
929 OACC_EXIT_DATA, OACC_UPDATE.
930 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
931 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
932 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
933 (gimplify_body): Consider flag_openacc next to flag_openmp.
934 * lto-streamer-out.c: Include "gomp-constants.h".
935 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
936 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
937 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
938 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
939 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
940 (BUILT_IN_ACC_ON_DEVICE): New builtins.
941 * omp-low.c: Include "gomp-constants.h".
942 Update comments for OpenACC changes.
943 (struct omp_context): Add reduction_map, gwv_below, gwv_this
945 (extract_omp_for_data, use_pointer_for_field, install_var_field)
946 (new_omp_context, delete_omp_context, scan_sharing_clauses)
947 (create_omp_child_function, scan_omp_for, scan_omp_target)
948 (check_omp_nesting_restrictions, lower_reduction_clauses)
949 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
950 Update for OpenACC changes.
951 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
952 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
953 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
954 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
955 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
956 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
958 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
959 Handle GF_OMP_FOR_KIND_OACC_LOOP.
960 (expand_omp_target, lower_omp_target): Handle
961 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
962 GF_OMP_TARGET_KIND_OACC_UPDATE,
963 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
964 GF_OMP_TARGET_KIND_OACC_DATA.
965 (pass_expand_omp::execute, execute_lower_omp)
966 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
968 (offload_symbol_decl): New variable.
969 (oacc_get_reduction_array_id, oacc_max_threads)
970 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
971 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
972 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
973 (oacc_gimple_assign, oacc_initialize_reduction_data)
974 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
976 (is_targetreg_ctx): Remove function.
977 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
978 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
979 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
980 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
981 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
982 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
983 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
984 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
985 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
986 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
987 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
988 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
989 * tree-core.h: Update comments for OpenACC changes.
990 (enum omp_clause_map_kind): Remove.
991 (struct tree_omp_clause): Change type of map_kind member from enum
992 omp_clause_map_kind to unsigned char.
993 * tree-inline.c: Update comments for OpenACC changes.
994 * tree-nested.c: Likewise. Include "gomp-constants.h".
995 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
996 (convert_tramp_reference_stmt, convert_gimple_call): Update for
997 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
998 OMP_CLAUSE_SET_MAP_KIND.
999 * tree-pretty-print.c: Include "gomp-constants.h".
1000 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
1001 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
1002 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
1003 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
1004 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
1005 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
1006 instead of OMP_CLAUSE_MAP_*.
1007 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
1008 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
1009 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
1010 * tree-streamer-in.c: Include "gomp-constants.h".
1011 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
1012 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
1013 * tree-streamer-out.c: Include "gomp-constants.h".
1014 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
1016 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
1017 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
1018 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
1019 * tree.c (omp_clause_num_ops): Update accordingly.
1020 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
1022 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
1023 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
1024 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
1025 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
1026 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
1027 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
1028 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
1029 (OMP_CLAUSE_SET_MAP_KIND): New macro.
1030 * varpool.c (varpool_node::get_create): Consider flag_openacc next
1032 * config/i386/intelmic-offload.h: New file.
1033 * config/nvptx/offload.h: Likewise.
1035 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1037 * explow.h: Remove duplicate contents.
1038 * dojump.h: Likewise.
1040 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
1042 * arm.c (arm_xgene_tune): Add default initializer for instruction
1045 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1049 * ipa.c (symbol_table::remove_unreachable_nodes):
1050 Do not put abstract origins into boundary.
1052 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
1054 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
1055 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
1057 2015-01-15 Steve Ellcey <sellcey@mips.com>
1059 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
1060 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
1061 builtins.def, and chkp-builtins.def.
1063 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
1065 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
1068 2015-01-15 Richard Biener <rguenther@suse.de>
1070 PR tree-optimization/61743
1071 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
1072 information on PHIs for some simple cases.
1074 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1076 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
1078 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
1079 * config/arm/arm-cores.def (xgene1): New entry.
1080 * config/arm/arm-tables.opt: Regenerate.
1081 * config/arm/arm-tune.md: Regenerate.
1082 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
1084 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
1086 * tree-if-conv.c: Include hash-map.h.
1087 (aggressive_if_conv): New variable.
1088 (fold_build_cond_expr): Add simplification of non-zero condition.
1089 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
1090 destination block is not always executed.
1091 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
1092 than two predecessors if AGGRESSIVE_IF_CONV is true.
1093 (if_convertible_stmt_p): Fix commentary.
1094 (all_preds_critical_p): New function.
1095 (has_pred_critical_p): New function.
1096 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
1097 BB can have more than two predecessors and all incoming edges can be
1099 (predicate_bbs): Skip predication for loop exit block, use build2_loc
1100 to compute predicate for true edge.
1101 (find_phi_replacement_condition): Delete this function.
1102 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
1103 Allow interchange PHI arguments if EXTENDED is false.
1104 Change check that block containing reduction statement candidate
1105 is predecessor of phi-block since phi may have more than two arguments.
1106 (phi_args_hash_traits): New helper structure.
1107 (struct phi_args_hash_traits): New type.
1108 (phi_args_hash_traits::hash): New function.
1109 (phi_args_hash_traits::equal_keys): New function.
1110 (gen_phi_arg_condition): New function.
1111 (predicate_scalar_phi): Add handling of phi nodes with more than two
1112 arguments, delete COND and TRUE_BB arguments, insert body of
1113 find_phi_replacement_condition to predicate ordinary phi nodes.
1114 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
1115 delete call of find_phi_replacement_condition and invoke
1116 predicate_scalar_phi with two arguments.
1117 (insert_gimplified_predicates): Add assert that non-predicated block
1118 don't have statements to insert.
1119 (ifcvt_split_critical_edges): New function.
1120 (ifcvt_split_def_stmt): Likewise.
1121 (ifcvt_walk_pattern_tree): Likewise.
1122 (stmt_is_root_of_bool_pattern): Likewise.
1123 (ifcvt_repair_bool_pattern): Likewise.
1124 (ifcvt_local_dce): Likewise.
1125 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
1126 is copy of inner or outer loop force_vectorize field, invoke
1127 ifcvt_split_critical_edges, ifcvt_local_dce and
1128 ifcvt_repair_bool_pattern for aggressive if-conversion.
1130 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
1132 * config/aarch64/aarch64.md: Include xgene1.md.
1133 * config/aarch64/xgene1.md: New file.
1135 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1137 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
1138 xgene1 (APM XGene-1) core definition.
1139 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
1140 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
1141 * doc/invoke.texi: Document -mcpu=xgene1.
1143 2015-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1145 * dojump.h: New header file.
1146 * explow.h: Likewise.
1147 * expr.h: Remove includes.
1148 Move expmed.c prototypes to expmed.h.
1149 Move dojump.c prototypes to dojump.h.
1150 Move alias.c prototypes to alias.h.
1151 Move explow.c prototypes to explow.h.
1152 Move calls.c prototypes to calls.h.
1153 Move emit-rtl.c prototypes to emit-rtl.h.
1154 Move varasm.c prototypes to varasm.h.
1155 Move stmt.c prototypes to stmt.h.
1156 (saved_pending_stack_adjust): Move to dojump.h.
1157 (adjust_address): Move to explow.h.
1158 (adjust_address_nv): Move to emit-rtl.h.
1159 (adjust_bitfield_address): Likewise.
1160 (adjust_bitfield_address_size): Likewise.
1161 (adjust_bitfield_address_nv): Likewise.
1162 (adjust_automodify_address_nv): Likewise.
1163 * explow.c (expr_size): Move to expr.c.
1164 (int_expr_size): Likewise.
1165 (tree_expr_size): Likewise.
1166 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1167 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
1168 * genemit.c (main): Generate includes statistics.h, real.h, fixed-value.h,
1169 insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
1170 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h, function.h,
1171 statistics.h, real.h, fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
1173 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
1174 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
1175 * genemit.c (open_base_files): Generate includes flags.h, statistics.h, real.h,
1176 fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h,
1178 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h, hash-set.h, vec.h,
1179 machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h, flags.h, statistics.h,
1180 double-int.h, real.h, fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h,
1181 insn-config.h, expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
1182 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
1183 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
1184 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
1185 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
1186 tm.h tree.h varasm.h vec.h wide-int.h.
1187 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1188 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
1189 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
1190 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
1191 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1192 explow.h expmed.h fixed-value.h flags.h inchash.h insn-config.h
1193 real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
1194 * loop-iv.c: Likewise.
1195 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1196 explow.h expmed.h fixed-value.h flags.h inchash.h real.h
1197 statistics.h stmt.h tree.h varasm.h wide-int.h.
1198 * lra-constraints.c: Likewise.
1199 * lra-eliminations.c: Likewise.
1200 * lra-lives.c: Likewise.
1201 * lra-remat.c: Likewise.
1202 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1203 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
1204 statistics.h stmt.h tree.h varasm.h wide-int.h.
1205 * hw-doloop.c: Likewise.
1206 * ira-color.c: Likewise.
1207 * ira-emit.c: Likewise.
1208 * loop-doloop.c: Likewise.
1209 * loop-invariant.c: Likewise.
1210 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1211 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
1212 statistics.h stmt.h tree.h varasm.h wide-int.h.
1213 * caller-save.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1214 explow.h expmed.h fixed-value.h inchash.h real.h statistics.h
1215 stmt.h tree.h varasm.h wide-int.h.
1216 * combine-stack-adj.c: Likewise.
1219 * ifcvt.c: Likewise.
1220 * ira-costs.c: Likewise.
1222 * lra-coalesce.c: Likewise.
1223 * lra-spills.c: Likewise.
1224 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1225 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
1226 stmt.h varasm.h wide-int.h.
1227 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1228 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
1230 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
1231 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
1232 statistics.h stmt.h varasm.h wide-int.h.
1233 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
1234 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
1235 varasm.h wide-int.h.
1236 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
1237 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1238 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
1239 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
1240 statistics.h stmt.h.
1241 * config/tilepro/tilepro.c: Likewise.
1242 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
1243 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
1244 * config/pdp11/pdp11.c: Likewise.
1245 * config/xtensa/xtensa.c: Likewise.
1246 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
1247 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
1249 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1250 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
1251 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
1252 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1253 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
1254 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
1255 * rtl-chkp.c: Likewise.
1256 * tree-chkp-opt.c: Likewise.
1257 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h explow.h
1258 expmed.h fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
1259 insn-config.h real.h statistics.h stmt.h varasm.h.
1260 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1261 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
1262 statistics.h stmt.h.
1263 * tree-vect-data-refs.c: Likewise.
1264 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
1265 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1266 rtl.h statistics.h stmt.h varasm.h.
1267 * internal-fn.c: Likewise.
1268 * ipa-icf-gimple.c: Likewise.
1269 * lto-section-out.c: Likewise.
1270 * tree-data-ref.c: Likewise.
1271 * tree-nested.c: Likewise.
1272 * tree-outof-ssa.c: Likewise.
1273 * tree-predcom.c: Likewise.
1274 * tree-pretty-print.c: Likewise.
1275 * tree-scalar-evolution.c: Likewise.
1276 * tree-ssa-strlen.c: Likewise.
1277 * tree-vect-loop.c: Likewise.
1278 * tree-vect-patterns.c: Likewise.
1279 * tree-vect-slp.c: Likewise.
1280 * tree-vect-stmts.c: Likewise.
1282 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1283 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
1285 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
1286 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1287 statistics.h stmt.h varasm.h.
1288 * loop-unroll.c: Likewise.
1289 * ubsan.c: Likewise.
1290 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
1291 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
1293 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1294 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
1295 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
1296 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
1297 statistics.h stmt.h.
1298 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
1299 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
1300 statistics.h stmt.h varasm.h.
1301 * gimple-match-head.c: Likewise.
1302 * lto-cgraph.c: Likewise.
1303 * lto-section-in.c: Likewise.
1304 * lto-streamer-in.c: Likewise.
1305 * lto-streamer-out.c: Likewise.
1306 * tree-affine.c: Likewise.
1307 * tree-cfg.c: Likewise.
1308 * tree-cfgcleanup.c: Likewise.
1309 * tree-if-conv.c: Likewise.
1310 * tree-into-ssa.c: Likewise.
1311 * tree-ssa-alias.c: Likewise.
1312 * tree-ssa-copyrename.c: Likewise.
1313 * tree-ssa-dse.c: Likewise.
1314 * tree-ssa-forwprop.c: Likewise.
1315 * tree-ssa-live.c: Likewise.
1316 * tree-ssa-math-opts.c: Likewise.
1317 * tree-ssa-pre.c: Likewise.
1318 * tree-ssa-sccvn.c: Likewise.
1319 * tree-tailcall.c: Likewise.
1320 * tree-vect-generic.c: Likewise.
1321 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1322 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
1323 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1324 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
1325 * varasm.c: Likewise.
1326 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1327 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
1329 * init-regs.c: Likewise.
1331 * omp-low.c: Likewise.
1332 * stack-ptr-mod.c: Likewise.
1333 * tree-ssa-reassoc.c: Likewise.
1334 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1335 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
1337 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1338 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
1339 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1340 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
1341 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1342 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
1343 * tree-ssa-phiopt.c: Likewise.
1344 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1345 fixed-value.h hashtab.h real.h statistics.h stmt.h.
1346 * config/fr30/fr30.c: Likewise.
1347 * config/frv/frv.c: Likewise.
1349 * final.c: Likewise.
1350 * optabs.c: Likewise.
1351 * passes.c: Likewise.
1352 * simplify-rtx.c: Likewise.
1354 * toplev.c: Likewise.
1355 * var-tracking.c: Likewise.
1356 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1357 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1358 * lower-subreg.c: Likewise.
1359 * postreload-gcse.c: Likewise.
1361 * reginfo.c: Likewise.
1362 * store-motion.c: Likewise.
1363 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1364 fixed-value.h hashtab.h real.h stmt.h varasm.h.
1365 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1366 fixed-value.h hashtab.h statistics.h stmt.h.
1367 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1368 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
1369 * except.c: Likewise.
1370 * explow.c: Likewise.
1371 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1372 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
1374 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1375 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
1376 * tree-ssa-structalias.c: Likewise.
1377 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1378 fixed-value.h insn-config.h real.h statistics.h.
1379 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1380 fixed-value.h insn-config.h real.h statistics.h stmt.h.
1381 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1382 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
1383 * cfgbuild.c: Likewise.
1384 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1385 fixed-value.h real.h rtl.h statistics.h stmt.h.
1386 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1387 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1388 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1389 fixed-value.h real.h statistics.h stmt.h.
1390 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1391 fixed-value.h real.h statistics.h stmt.h varasm.h.
1392 * cprop.c: Likewise.
1393 * modulo-sched.c: Likewise.
1394 * postreload.c: Likewise.
1395 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
1396 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
1397 statistics.h stmt.h varasm.h.
1398 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
1399 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1400 rtl.h statistics.h stmt.h varasm.h.
1401 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
1402 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
1404 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
1405 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
1407 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
1408 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
1410 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
1411 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1412 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1413 function.h real.h statistics.h stmt.h varasm.h.
1414 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1415 insn-config.h real.h statistics.h stmt.h.
1416 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1417 statistics.h stmt.h.
1418 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
1419 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
1420 statistics.h stmt.h varasm.h.
1421 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1422 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
1423 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1424 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
1425 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
1426 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
1427 statistics.h stmt.h varasm.h.
1428 * ipa-polymorphic-call.c: Likewise.
1429 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h expmed.h
1430 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
1432 * config/c6x/c6x.c: Likewise.
1433 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h explow.h
1434 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1435 statistics.h stmt.h varasm.h.
1436 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1437 hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h varasm.h.
1438 * ipa-split.c: Likewise.
1439 * tree-eh.c: Likewise.
1440 * tree-ssa-dce.c: Likewise.
1441 * tree-ssa-loop-niter.c: Likewise.
1442 * tree-vrp.c: Likewise.
1443 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
1444 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
1446 * config/nds32/nds32-fp-as-gp.c: Likewise.
1447 * config/nds32/nds32-intrinsic.c: Likewise.
1448 * config/nds32/nds32-isr.c: Likewise.
1449 * config/nds32/nds32-md-auxiliary.c: Likewise.
1450 * config/nds32/nds32-memory-manipulation.c: Likewise.
1451 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1452 * config/nds32/nds32-predicates.c: Likewise.
1453 * config/nds32/nds32.c: Likewise.
1454 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
1455 fixed-value.h hashtab.h real.h statistics.h.
1456 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
1457 fixed-value.h hashtab.h real.h statistics.h stmt.h.
1458 * config/arm/arm.c: Likewise.
1459 * config/avr/avr.c: Likewise.
1460 * config/bfin/bfin.c: Likewise.
1461 * config/h8300/h8300.c: Likewise.
1462 * config/i386/i386.c: Likewise.
1463 * config/ia64/ia64.c: Likewise.
1464 * config/iq2000/iq2000.c: Likewise.
1465 * config/m32c/m32c.c: Likewise.
1466 * config/m32r/m32r.c: Likewise.
1467 * config/m68k/m68k.c: Likewise.
1468 * config/mcore/mcore.c: Likewise.
1469 * config/mep/mep.c: Likewise.
1470 * config/mips/mips.c: Likewise.
1471 * config/mn10300/mn10300.c: Likewise.
1472 * config/moxie/moxie.c: Likewise.
1473 * config/pa/pa.c: Likewise.
1474 * config/rl78/rl78.c: Likewise.
1475 * config/rx/rx.c: Likewise.
1476 * config/s390/s390.c: Likewise.
1477 * config/sh/sh.c: Likewise.
1478 * config/sparc/sparc.c: Likewise.
1479 * config/spu/spu.c: Likewise.
1480 * config/stormy16/stormy16.c: Likewise.
1481 * config/v850/v850.c: Likewise.
1482 * config/vax/vax.c: Likewise.
1483 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
1484 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1485 * config/msp430/msp430.c: Likewise.
1486 * predict.c: Likewise.
1487 * value-prof.c: Likewise.
1488 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
1489 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
1490 * config/microblaze/microblaze.c: Likewise.
1491 * config/nios2/nios2.c: Likewise.
1492 * config/rs6000/rs6000.c: Likewise.
1493 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1494 insn-config.h real.h rtl.h statistics.h stmt.h.
1495 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1496 insn-config.h real.h statistics.h stmt.h.
1497 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
1498 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
1499 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
1500 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1501 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1502 real.h statistics.h stmt.h.
1503 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
1504 fixed-value.h statistics.h stmt.h.
1505 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
1508 2015-01-15 Jakub Jelinek <jakub@redhat.com>
1510 * gengtype.c (create_user_defined_type): Workaround
1511 -Wmaybe-uninitialized false positives.
1512 * cse.c (fold_rtx): Likewise.
1513 * loop-invariant.c (gain_for_invariant): Likewise.
1515 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
1517 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
1518 set the memory attributes in all cases but clear MEM_EXPR if need be.
1520 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
1522 PR tree-optimization/64434
1523 * cfgexpand.c (reorder_operands): New function.
1524 (expand_gimple_basic_block): Insert call of reorder_operands if
1527 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
1529 * config/mips/micromips.md (*swp): Remove explicit parallel.
1530 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
1531 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
1532 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
1533 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
1534 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
1535 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
1536 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
1537 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
1538 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
1539 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
1540 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
1541 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
1542 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
1543 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
1544 (mips_wrdsp): Likewise.
1545 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
1547 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
1548 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
1549 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
1550 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
1551 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
1552 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
1553 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
1554 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
1555 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
1557 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
1559 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
1560 (mips_print_operand): Support 'y' to print exact log2 in decimal
1562 * config/mips/mips.h (ISA_HAS_LSA): New define.
1563 (ISA_HAS_DLSA): Likewise.
1564 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
1565 * config/mips/predicates.md (const_immlsa_operand): New predicate.
1567 2015-01-15 Martin Liska <mliska@suse.cz>
1570 * optc-save-gen.awk: Add support for array types.
1572 2015-01-15 Richard Biener <rguenther@suse.de>
1575 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
1576 for MEM_REF access functions with the same base can never partially
1579 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1581 * common.opt: New option -fstack-protector-explicit.
1582 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
1583 (stack_protect_decl_phase): Handle stack_protect attribute for
1584 explicit stack protection requests.
1585 (expand_used_vars): Similarly.
1586 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
1587 * doc/extend.texi: Add documentation for "stack_protect" attribute.
1588 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
1590 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
1593 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
1595 (sh_extending_set_of_reg): New struct.
1596 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
1597 sh_remove_reg_dead_or_unused_notes): New Declarations.
1598 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
1599 sh_find_extending_set_of_reg, sh_split_tst_subregs,
1600 sh_extending_set_of_reg::use_as_extended_reg): New functions.
1601 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
1602 convert to insn_and_split and use new function sh_split_tst_subregs.
1604 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
1606 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
1608 (Optimization Options): Move -fuse-ld documentation to...
1609 (Link Options): ...here.
1611 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
1613 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
1615 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
1616 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
1617 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
1618 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
1619 instead of ZR for the memory operand of LL/SC.
1620 (compare_and_swap_12, sync_add<mode>): Likewise.
1621 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
1622 (sync_new_<optab>_12, sync_nand_12): Likewise.
1623 (sync_old_nand_12, sync_new_nand_12): Likewise.
1624 (sync_sub<mode>, sync_old_add<mode>): Likewise.
1625 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
1626 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
1627 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
1628 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
1629 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
1630 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
1631 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
1632 * doc/md.texi (ZC): Update description.
1634 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
1636 * builtins.c (expand_builtin_atomic_exchange): Remove error when
1637 memory model is CONSUME.
1638 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
1639 expand_builtin_atomic_store): Change invalid memory model errors to
1641 (expand_builtin_atomic_clear): Change invalid model errors to warnings
1642 and issue warning for CONSUME.
1644 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
1646 * lto-cgraph: Update function comments for
1647 lto_symtab_encoder_encode_*.
1649 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
1651 * Makefile.in (site.exp): Do not set ENABLE_LTO.
1653 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
1655 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
1656 * lto-cgraph.c (select_what_to_stream): Remove argument, use
1657 lto_stream_offload_p instead.
1658 * lto-streamer.h (select_what_to_stream): Remove argument.
1659 * passes.c (ipa_write_summaries): Likewise.
1660 * tree-pass.h (ipa_write_summaries): Likewise.
1662 2015-01-14 Richard Biener <rguenther@suse.de>
1664 PR tree-optimization/59354
1665 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
1666 groups larger than the slp group size as having gaps.
1668 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
1671 * builtins.c (get_memmodel): Promote consume to acquire always.
1673 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
1676 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
1679 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
1682 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
1684 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
1685 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
1686 AVX512VBMI, as it implies AVX512BW.
1688 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
1691 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
1692 (vec_unpacks_hi_v16sf): Ditto.
1694 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1696 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
1699 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1701 * doc/invoke.texi (mapcs): Mention deprecation.
1702 (mapcs-frame): Likewise.
1704 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1707 * config/arm/arm.c (callee_saved_reg_p): Define.
1708 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
1709 register is callee saved instead of !call_used_regs[reg].
1710 (thumb1_compute_save_reg_mask): Likewise.
1712 2015-01-14 Hale Wang <hale.wang@arm.com>
1714 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
1717 2015-01-14 Richard Biener <rguenther@suse.de>
1720 * tree-inline.c (insert_debug_decl_map): Check destination
1721 function MAY_HAVE_DEBUG_STMTS.
1722 (insert_init_debug_bind): Likewise.
1723 (insert_init_stmt): Remove redundant check.
1724 (remap_gimple_stmt): Drop debug stmts if the destination
1725 function has var-tracking assignments disabled.
1727 2015-01-14 Martin Liska <mliska@suse.cz>
1729 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
1730 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
1732 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1735 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
1736 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
1738 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
1740 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
1741 level from an ARCH; do not inject the default.
1742 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
1743 MIPS_ISA_LEVEL_SPEC.
1744 (MIPS_ISA_NAN2008_SPEC): Update comment.
1745 (BASE_DRIVER_SELF_SPECS): Likewise.
1746 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
1747 MIPS_DEFAULT_ISA_LEVEL_SPEC.
1748 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
1749 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
1750 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
1752 2015-01-14 Richard Biener <rguenther@suse.de>
1754 PR tree-optimization/64493
1755 PR tree-optimization/64495
1756 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
1757 assign the proper vectorized PHI to the inner loop exit PHIs.
1759 2015-01-14 Joey Ye <joey.ye@arm.com>
1761 * config/arm/arm.c (arm_compute_save_reg_mask):
1762 Do not save lr in case of tail call.
1763 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
1765 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
1767 * tree-vrp.c (check_array_ref): Emit more warnings
1768 for warn_array_bounds >= 2.
1769 * common.opt: New option -Warray-bounds=.
1770 * doc/invoke.texi: Document -Warray-bounds=.
1772 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
1774 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
1775 (mforbid-fp-as-gp): Remove.
1777 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
1778 (nds32_symbol_load_store_p): Remove.
1779 (nds32_fp_as_gp_check_available): Clean up implementation.
1780 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
1782 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
1783 fp-as-gp and ex9 cases.
1785 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
1787 * tree-profile.c (init_ic_make_global_vars): Drop workaround
1788 for bintuils bug 14342.
1789 (init_ic_make_global_vars): Likewise.
1790 (gimple_init_edge_profiler): Likewise.
1791 (gimple_gen_ic_func_profiler): Likewise.
1793 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1795 * ipa-inline.c (inline_small_functions): Swap the operands in
1798 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
1801 * ipa-inline-analysis.c (node_growth_cache): Remove.
1802 (initialize_growth_caches): Do not initialize it.
1803 (free_growth_caches): Do not free it.
1804 (do_estimate_growth): Rename to ...
1805 (estimate_growth): ... this one; drop growth cache code.
1806 (growth_likely_positive): Always go the heuristics way.
1807 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
1808 (reset_edge_caches): Do not reset node growth.
1809 (heap_edge_removal_hook): Do not maintain cache.
1810 (inline_small_functions): Likewise; strenghten sanity check.
1811 (ipa_inline): Do not maintain caches.
1812 * ipa-inline.h (node_growth_cache): Remove.
1813 (do_estimate_growth): Remove to ...
1814 (estimate_growth): this one; remove inline version.
1815 (reset_node_growth_cache): Remove.
1817 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
1820 * ipa-inline.c (inline_small_functions): Update callee keys after
1821 resolving speculation
1822 (inline_small_functions): Always check monotonicity of the queue.
1824 2015-01-13 Marek Polacek <polacek@redhat.com>
1827 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
1829 2015-01-13 Jakub Jelinek <jakub@redhat.com>
1831 PR rtl-optimization/64286
1832 * ree.c (combine_reaching_defs): Move part of comment earlier,
1833 remove !SCALAR_INT_MODE_P check.
1834 (add_removable_extension): Don't add vector mode
1835 extensions if all uses of the source register aren't the same
1838 2015-01-13 Renlin Li <renlin.li@arm.com>
1840 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
1841 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
1843 2015-01-13 Martin Liska <mliska@suse.cz>
1845 * ipa-icf.c (sem_function::equals_private): Call new functions
1846 cl_target_option_print_diff and cl_optimization_print_diff.
1847 * optc-save-gen.awk (cl_target_option_print_diff): New function.
1848 (cl_optimization_print_diff): Likewise.
1849 * opth-gen.awk: Likewise.
1851 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
1853 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
1854 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
1855 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
1856 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
1857 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
1858 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
1860 2015-01-13 Andrew Pinski <apinski@cavium.com>
1862 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
1863 instead of src mode.
1865 2015-01-13 Richard Biener <rguenther@suse.de>
1868 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
1871 2015-01-13 Andrew Pinski <apinski@cavium.com>
1873 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
1875 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
1877 2015-01-13 Jakub Jelinek <jakub@redhat.com>
1880 * cfgexpand.c (expand_computed_goto): Don't call
1881 convert_memory_address here.
1883 2015-01-13 Richard Biener <rguenther@suse.de>
1885 PR tree-optimization/64406
1886 * tree-loop-distibution.c (pass_loop_distribution::execute):
1887 Reset the SCEV hashtable if we distributed anything.
1889 2015-01-13 Richard Biener <rguenther@suse.de>
1891 PR tree-optimization/64404
1892 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
1893 SLP types for CSEd loads.
1895 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1897 PR tree-optimization/64436
1898 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
1899 merge of two symbolic numbers for a bitwise OR to ...
1900 (perform_symbolic_merge): This. Also fix computation of the range and
1901 end of the symbolic number corresponding to the result of a bitwise OR.
1903 2015-01-13 Richard Biener <rguenther@suse.de>
1905 PR tree-optimization/64568
1906 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
1907 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
1909 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1911 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
1912 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
1914 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1916 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
1917 target-specific symbol_ref flag.
1918 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
1919 resides in rodata section.
1920 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
1921 (nds32_encode_section_info): New function.
1923 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1925 * config/nds32/nds32.md (call): Use pseudo instruction bal which
1926 clobbers TA_REGNUM if large code model is specified.
1927 (call_register): Likewise.
1928 (call_immediate): Likewise.
1929 (call_value): Likewise.
1930 (call_value_register): Likewise.
1931 (call_value_immediate): Likewise.
1933 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1935 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
1936 (TARGET_CMODEL_MEDIUM): New macro.
1937 (TARGET_CMODEL_LARGE): New macro.
1938 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
1939 code model setting in assembly code.
1941 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1943 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
1944 Remove MASK_GP_DIRECT flag.
1945 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
1946 one of the multilib default options.
1947 * config/nds32/nds32.opt (mgp-direct): Remove.
1948 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
1949 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
1951 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1953 * config/nds32/nds32.opt (mcmodel): Add new option.
1954 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
1955 to describe code model.
1957 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
1960 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
1962 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
1964 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
1965 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
1966 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
1967 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
1968 __builtin_sh_set_fpscr.
1970 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
1972 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
1973 after a funtion name just to indicate it is a function.
1974 ([-fsanitize-undefined-trap-on-error]): Likewise.
1975 ([-fdbg-cnt=]): Likewise.
1976 ([-mmemcpy]): Likewise.
1977 ([-mflush-func]): Likewise.
1978 ([-msynci]): Likewise.
1980 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
1982 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
1985 2015-01-12 Jakub Jelinek <jakub@redhat.com>
1987 PR tree-optimization/64563
1988 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
1989 instead of != VR_VARYING.
1992 * config/i386/i386.c (ix86_expand_prologue): Add
1993 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
1995 PR tree-optimization/64454
1996 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
1997 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
1998 for signed or [0, op1 - 1] for unsigned modulo.
1999 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
2000 even if op1 does not satisfy integer_pow2p.
2003 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
2005 2015-01-12 Jeff Law <law@redhat.com>
2008 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
2009 (trunchiqi2, truncsihi2): Similarly.
2011 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
2012 rather than calling F.
2014 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
2016 * tsan.c (instrument_expr): Use force_gimple_operand.
2017 Use may_be_nonaddressable_p instead of is_gimple_addressable.
2019 2015-01-12 Richard Biener <rguenther@suse.de>
2021 PR tree-optimization/64530
2022 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
2025 2015-01-12 Richard Biener <rguenther@suse.de>
2028 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
2031 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2033 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
2034 Cortex-A17 tuning parameters.
2035 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
2037 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2039 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
2040 * config/arm/arm.c (arm_macro_fusion_p): New function.
2041 (arm_macro_fusion_pair_p): Likewise.
2042 (TARGET_SCHED_MACRO_FUSION_P): Define.
2043 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
2044 (ARM_FUSE_NOTHING): Likewise.
2045 (ARM_FUSE_MOVW_MOVT): Likewise.
2046 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
2047 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
2048 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
2049 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
2050 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
2051 arm_cortex_a5_tune): Specify fuseable_ops value.
2053 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
2056 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
2057 test for PIE with copy reloc.
2058 * configure: Regenerated.
2060 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2062 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
2064 (arm_tls_descseq_addr): Likewise.
2065 (arm_gen_movmemqi): Likewise.
2066 (arm_expand_epilogue_apcs_frame): Likewise.
2067 (arm_expand_epilogue): Likewise.
2068 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
2071 2015-01-12 Martin Liska <mliska@suse.cz>
2074 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
2075 volatility for correct operands.
2077 2015-01-12 Martin Liska <mliska@suse.cz>
2079 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
2080 that a function is not leaf.
2081 (sem_function::compare_polymorphic_p): Likewise.
2083 2015-01-12 Martin Liska <mliska@suse.cz>
2085 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
2086 that a function is not leaf.
2087 (sem_function::compare_polymorphic_p): Likewise.
2089 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2091 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
2092 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
2093 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
2094 fold-const.h, tree-check.h.
2096 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
2100 * ipa-inline.c (compute_uninlined_call_time,
2101 compute_inlined_call_time): Use counts for extra precision when
2103 (big_speedup_p): Fix formating.
2104 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
2105 (relative_time_benefit): Remove.
2106 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
2107 merge guessed and read profile paths.
2108 (inline_small_functions): Count only !optimize_size functions into
2109 initial size; be more lax about sanity check when profile is used;
2110 be sure to update inlined function profile when profile is read.
2112 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
2115 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
2116 cost when edge becomes direct.
2117 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
2118 is resolved or when introducing new speculation.
2120 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
2124 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
2125 '||' to fix typo issue.
2127 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
2128 accept and return NULL.
2130 2015-01-12 Martin Liska <mliska@suse.cz>
2132 * cgraph.c (cgraph_edge::remove_callee): Move function to header
2133 file for being inlined.
2134 (cgraph_set_edge_callee): Delete.
2135 (cgraph_edge::redirect_callee): Move function to header file
2137 (cgraph_edge::make_direct): Use new function.
2138 (cgraph_edge::dump_edge_flags): New function created from
2139 static dump_edge_flags function.
2140 (cgraph_node::dump): Use new function.
2141 (cgraph_edge::verify_count_and_frequency): New function created
2142 from verify_edge_count_and_frequency.
2143 (cgraph_edge::verify_corresponds_to_fndecl): New function created
2144 from verify_edge_corresponds_to_fndecl.
2145 (verify_edge_corresponds_to_fndecl): Delete.
2146 (cgraph_node::verify_node): Use new function.
2147 * cgraph.h (cgraph_edge::set_callee): New function.
2148 (cgraph_edge::dump_edge_flags): Likewise.
2149 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
2151 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
2153 * ipa-utils.c (estimate_function_body_sizes): Do not
2154 free node params when called late with early=true.
2156 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
2158 * doc/md.texi (Instruction Patterns): Rewrite text for
2160 (Example): Likewise.
2162 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
2164 * doc/invoke.texi (Option Summary): Break long lines.
2165 [(-fdiagnostics-color)]: Put long literal in @smallexample
2167 [(-fsanitize-recover)]: Likewise.
2168 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
2169 [(-ffast-math)]: Likewise.
2170 [(--param max-inline-insns-recursive)]: Likewise.
2171 [(--param max-inline-recursive-depth)]: Likewise.
2172 [(-mno-text-section-literals)]: Likewise.
2174 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
2176 * doc/install.texi: Update for libgomp being renamed from "GNU
2177 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
2179 * doc/sourcebuild.texi: Likewise.
2181 2015-01-10 Anthony Green <green@moxielogic.com>
2183 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
2184 mul.x availability for moxiebox configuration.
2186 2015-01-09 Anthony Green <green@moxielogic.com>
2188 * config/moxie/moxie.md: Tabify assembly output.
2190 2015-01-09 Anthony Green <green@moxielogic.com>
2192 * config/moxie/moxie.md (CC_REG): Correct register definition.
2194 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
2196 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
2197 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
2200 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2202 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
2204 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
2205 Jakub Jelinek <jakub@redhat.com>
2208 * lto-streamer.h (lto_stream_offload_p): New declaration.
2209 * lto-streamer.c (lto_stream_offload_p): New variable.
2210 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
2211 at the same time as section_name_prefix.
2212 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
2213 if lto_stream_offload_p.
2214 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
2215 stream TREE_TARGET_OPTION if lto_stream_offload_p.
2216 (write_ts_function_decl_tree_pointers): Don't
2217 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
2218 * tree-streamer-in.c (unpack_value_fields): Don't stream
2219 TREE_TARGET_OPTION in if ACCEL_COMPILER.
2220 (lto_input_ts_function_decl_tree_pointers): Don't stream
2221 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
2222 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
2223 instead of section_name_prefix string comparisons.
2225 2015-01-09 Jakub Jelinek <jakub@redhat.com>
2227 PR rtl-optimization/64536
2228 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
2231 2015-01-09 Michael Collison <michael.collison@linaro.org>
2233 PR tree-optimization/64322
2234 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
2235 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
2237 2015-01-09 Tom de Vries <tom@codesourcery.com>
2239 PR rtl-optimization/64539
2240 * regcprop.c (kill_clobbered_values): Factor out of ...
2241 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
2242 instead of note_stores with kill_clobbered_value.
2244 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2246 * ginclude/unwind-arm-common.h: Revert previous commit.
2248 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2250 * config.gcc (arm*-*-freebsd*): New configuration.
2251 * config/arm/freebsd.h: New file.
2252 * config.host: Add extra components for arm*-*-freebsd*.
2253 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
2254 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
2256 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2258 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
2260 * config/rs6000/t-rtems: Add e6500 multilibs.
2262 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2264 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
2267 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2269 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
2270 MULTILIB_EXCEPTIONS.
2272 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2274 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
2275 MULTILIB_EXCEPTIONS.
2277 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2279 * config/arm/t-rtems-eabi: Rename to...
2280 * config/arm/t-rtems: ...this.
2281 * config/arm/rtems-eabi.h: Rename to...
2282 * config/arm/rtems.h: ...this.
2283 * config.gcc (arm*-*-rtems*): Reflect changes above.
2285 2015-01-09 Richard Biener <rguenther@suse.de>
2287 PR tree-optimization/64410
2288 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
2290 (execute_update_addresses_taken): Deal with that.
2291 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
2292 loads/stores for complex variables.
2294 2015-01-09 Martin Liska <mliska@suse.cz>
2296 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
2298 (func_checker::compare_memory_operand): New function.
2299 (func_checker::compare_operand): Split case to newly
2301 (func_checker::compare_cst_or_decl): New function.
2302 (func_checker::compare_gimple_call): Identify
2304 (func_checker::compare_gimple_assign): Likewise.
2305 * ipa-icf-gimple.h: New function.
2307 2015-01-09 Martin Liska <mliska@suse.cz>
2310 * sreal.c (sreal::dump): Change unsigned format to signed for
2312 (sreal::to_double): Replace exp2 with scalbln.
2314 2015-01-09 Martin Liska <mliska@suse.cz>
2316 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
2317 * ipa-icf.c (sem_function::equals_private): Add support for target and
2318 (sem_item_optimizer::merge_classes): Remove redundant function
2319 optimization flags comparison.
2320 * tree.h (target_opts_for_fn): New function.
2322 2015-01-09 Tom de Vries <tom@codesourcery.com>
2324 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
2326 2015-01-09 Kito Cheng <kito@0xlab.org>
2328 PR rtl-optimization/64348
2329 * lra-constraints.c (split_reg): Fix caller-save store/restore
2330 instruction generation.
2332 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
2334 PR gcov-profile/61790
2335 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
2336 long long. Fallback to int64_t if host doesn't have long long and
2337 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
2339 2015-01-08 Jakub Jelinek <jakub@redhat.com>
2341 PR tree-optimization/63989
2342 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
2344 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
2345 (get_stridx): If we don't have a record for certain SSA_NAME,
2346 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
2347 constant offset, call get_stridx_plus_constant.
2348 (get_stridx_plus_constant): New function.
2349 (zero_length_string): Don't use get_stridx here.
2353 * dse.c (struct insn_info): Mention frame_read set also
2354 before reload for tail calls on some targets.
2355 (scan_insn): Revert 2014-12-22 change. Set frame_read
2356 also before reload for tail calls if
2357 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
2358 instead of add_non_frame_wild_read for non-const/memset
2359 tail calls after reload.
2361 2015-01-08 Jason Merrill <jason@redhat.com>
2363 * ubsan.c (do_ubsan_in_current_function): New.
2364 (pass_ubsan::gate): Use it.
2365 * ubsan.h: Declare it.
2366 * convert.c (convert_to_integer): Use it.
2368 2015-01-08 Jakub Jelinek <jakub@redhat.com>
2371 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
2372 compare_code when it is unconditionally overwritten afterwards.
2373 Use ix86_reverse_condition instead of reverse_condition. Don't
2374 change code if *reverse_condition* returned UNKNOWN and don't
2375 swap ct/cf and negate diff in that case.
2377 2015-01-08 Mike Stump <mikestump@comcast.net>
2379 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
2380 (pass_tsan_O0::gate): Likewise.
2381 * extend.texi (Function Attributes): Add no_sanitize_thread
2384 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
2386 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
2387 for registering builtins.
2388 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
2389 add -fopenmp to the argv_obstack used when invoking
2392 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
2393 add "-m32" or "-m64" to argv_obstack.
2394 (generate_host_descr_file): Likewise, when invoking host_compiler.
2395 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
2398 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
2400 * config/sh/sh-mem.cc: Use constant as second operand when emitting
2403 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
2406 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
2407 constant load if constant operand fits into I08.
2409 2015-01-08 Jakub Jelinek <jakub@redhat.com>
2412 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
2413 and TREE_THIS_VOLATILE for MEM_REFs.
2414 (build5_stat): Fix up initialization of TREE_READONLY and
2415 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
2417 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
2420 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
2421 of r for the second alternative of the destination operand.
2423 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
2426 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
2428 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
2430 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
2432 ([-fivar-visibility], [-fvisibility]): Likewise.
2434 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
2436 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
2437 the file where @code, @command, etc is more appropriate.
2439 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
2441 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
2442 of -mrecip= documentation.
2444 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2447 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
2448 correct reload handler if -m32 -mpowerpc64 is used.
2450 2015-01-06 Tom de Vries <tom@codesourcery.com>
2452 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
2454 2015-01-08 Christian Bruel <christian.bruel@st.com>
2457 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
2459 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
2461 PR tree-optimization/63259
2462 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
2463 if optab exists for 16bit byteswap.
2465 2015-01-06 Jakub Jelinek <jakub@redhat.com>
2467 * opts.c (common_handle_option): Add support for
2468 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
2469 * doc/invoke.texi: Document -fno-sanitize=all,
2470 -f{,no-}sanitize-recover=all. Document that
2471 -fsanitize=float-cast-overflow is not enabled
2472 by -fsanitize=undefined. Fix up documentation
2473 of -f{,no-}sanitize-recover.
2475 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
2477 * config.gcc: Add Visium support.
2478 * configure.ac: Likewise.
2479 * configure: Regenerate.
2480 * doc/extend.texi (interrupt attribute): Add Visium.
2481 * doc/invoke.texi: Document Visium options.
2482 * doc/install.texi: Document Visium target.
2483 * doc/md.texi: Document Visium constraints.
2484 * common/config/visium: New directory.
2485 * config/visium: Likewise.
2487 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
2489 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
2490 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
2492 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
2494 * combine.c (combine_validate_cost): Do not count the cost of a
2495 split I2 twice. Do not display it twice in the dump, either.
2497 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
2499 Revert parts of r219199.
2500 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
2502 ([-Wtraditional]): Restore markup on <limits.h>.
2504 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2507 * doc/invoke.texi: Document -Wsuggest-override.
2509 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
2511 PR rtl-optimization/64287
2512 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
2513 (process_options): Disable flag_ipa_ra if profiling.
2515 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
2517 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
2519 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
2521 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
2522 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
2523 put under #if TARGET_LOOPS guard.
2525 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
2527 * config/i386/i386.c (output_387_binary_op): Use std::swap.
2529 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
2531 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
2532 * rtl.h (refers_to_regno_p): Add overload.
2534 * bt-load.c: Likewise.
2535 * combine.c: Likewise.
2536 * df-scan.c: Likewise.
2537 * sched-deps.c: Likewise.
2538 * config/s390/s390.c: Likewise.
2539 * config/m32r/m32r.c: Likewise.
2540 * config/rs6000/spe.md: Likewise.
2541 * config/rs6000/rs6000.c: Likewise.
2542 * config/pa/pa.c: Likewise.
2543 * config/stormy16/stormy16.c: Likewise.
2544 * config/cris/cris.c: Likewise.
2545 * config/arc/arc.md: Likewise.
2546 * config/arc/arc.c: Likewise.
2547 * config/sh/sh.md: Likewise.
2548 * config/sh/sh.c: Likewise.
2549 * config/frv/frv.c: Likewise.
2551 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2554 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
2555 call as cleanup of the whole body.
2556 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
2557 * tsan.c (replace_func_exit): New function.
2558 (instrument_func_exit): Moved earlier.
2559 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
2560 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
2562 (tsan_pass): Don't call instrument_func_exit.
2563 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
2564 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
2568 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
2569 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
2570 it to libubsan handler instead of EXPR. Fold comparisons earlier,
2571 if the result is integer_zerop, return NULL_TREE.
2572 * convert.c (convert_to_integer): Pass expr as ARG.
2574 PR tree-optimization/64465
2575 * tree-inline.c (redirect_all_calls): During inlining
2576 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
2577 changed the stmt to a non-throwing call.
2579 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
2581 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
2582 etc markup throughout the file.
2584 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
2586 Enable experimental TSAN support for Ada.
2587 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
2589 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2591 PR tree-optimization/64494
2592 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
2593 clear SSA_NAME_ANTI_RANGE_P flag.
2595 2015-01-05 Marek Polacek <polacek@redhat.com>
2597 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
2599 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2601 Update copyright years.
2603 * gcc.c (process_command): Update copyright notice dates.
2604 * gcov-dump.c: Ditto.
2606 * doc/cpp.texi: Bump @copying's copyright year.
2607 * doc/cppinternals.texi: Ditto.
2608 * doc/gcc.texi: Ditto.
2609 * doc/gccint.texi: Ditto.
2610 * doc/gcov.texi: Ditto.
2611 * doc/install.texi: Ditto.
2612 * doc/invoke.texi: Ditto.
2614 * auto-profile.c, auto-profile.h: Fix up Copyright line.
2616 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
2618 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
2620 ([-fvtable-verify], [-fvtv-debug]): Likewise.
2621 ([-Wabi]): Likewise.
2622 ([-fmessage-length]): Likewise.
2623 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
2624 ([-Wno-discarded-qualifiers]): Likewise.
2625 ([-Wnodiscarded-array-qualifiers]): Likewise.
2626 ([-Wno-virtual-move-assign]): Likewise.
2627 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
2628 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
2629 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
2630 ([-fsanitize-undefined-trap-on-error]): Likewise.
2631 ([-floop-interchange]): Likewise.
2632 ([-ftree-coalesce-inlined-vars]): Likewise.
2633 ([-fvect-cost-model]): Likewise.
2634 ([-flto]): Likewise.
2635 ([--param]): Likewise.
2636 (Spec Files): Likewise.
2637 ([-mstrict-align]): Likewise.
2638 ([-mfix-cortex-a53-835769]): Likewise.
2639 ([-march], [-mtune]): Likewise.
2640 ([-mpic-register]): Likewise.
2641 ([-munaligned-access]): Likewise.
2642 ([-msp8]): Likewise.
2643 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
2644 (AVR Built-in Macros): Likewise.
2645 ([-mpreferred-stack-boundary]): Likewise.
2646 ([-mtune-crtl]): Likewise.
2647 ([-mashf]): Likewise.
2648 ([-mmcu=]): Likewise.
2649 ([-minrt]): Likewise.
2650 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
2651 ([-mupper-regs]): Likewise.
2652 ([-matomic-model]): Likewise.
2653 ([-mdiv]): Likewise.
2654 ([-mzdcbranch]): Likewise.
2655 ([-mdisable-callt]): Likewise.
2656 ([-msoft-float]): Likewise.
2657 ([-m8byte-align]): Likewise.
2658 ([-fstack-reuse]): Likewise.
2660 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
2662 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
2663 Fix markup, light copy-editing.
2664 ([-fauto-profile]): Rewrite to fix formatting and content
2667 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
2669 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
2670 Copy-edit description.
2671 ([-fisolate-erroneous-paths-attribute]): Likewise.
2672 * common.opt (fisolate-erroneous-paths-dereference):
2673 Copy-edit description.
2674 (fisolate-erroneous-paths-attribute): Likewise.
2676 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
2678 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
2681 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
2683 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
2684 ([-fvtv-debug]): Likewise.
2685 ([-Wc++-compat]): Likewise.
2686 ([-Wc++11-compat]): Likewise.
2687 ([-Wc++14-compat]): Likewise.
2688 ([-Wno-sized-deallocation]): Likewise.
2689 ([-femit-class-debug-always]): Likewise.
2690 ([-femit-struct-debug-detailed]): Likewise.
2691 ([-fno-keep-inline-dllexport]): Likewise.
2692 ([-fira-algorithm]): Likewise.
2693 ([-fira-region]): Likewise.
2694 ([-flra-remat]): Likewise.
2695 ([-fipa-ra]): Likewise.
2696 ([-fhoist-adjacent-loads]): Likewise.
2697 ([-fisolate-erroneous-paths-dereference]): Likewise.
2698 ([-fisolate-erroneous-paths-attribute]): Likewise.
2699 ([-ftree-switch-conversion]): Likewise.
2700 ([-ftree-tail-merge]): Likewise.
2701 ([-ftree-loop-if-convert]): Likewise.
2702 ([-ftree-loop-if-convert-stores]): Likewise.
2703 ([-ftree-loop-distribution]): Likewise.
2704 ([-ftree-loop-distribute-patterns]): Likewise.
2705 ([-flto-compression-level]): Likewise.
2706 ([-flto-report]): Likewise.
2707 ([-flto-report-wpa]): Likewise.
2708 ([-fuse-linker-plugin]): Likewise.
2709 ([-mfix-cortex-a53-835769]): Likewise.
2710 ([-mno-fix-cortex-a53-835769]): Likewise.
2711 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
2712 explicit listing; add a note to the discussion indicating they
2713 exist. Reorder table to group similar options. Add missing
2714 @opindex entries. Add @need commands throughout the table to
2715 allow it to be split across multiple pages.
2716 ([-m8bit-idiv]): Fix @opindex.
2717 ([-mavx256-split-unaligned-load]): Likewise.
2718 ([-mavx256-split-unaligned-store]): Likewise.
2719 ([-mstack-protector-guard]): Likewise.
2720 ([-mcpu=]): Likewise.
2721 ([-mcpu]): Likewise.
2722 ([-mpointer-size=]): Likewise.
2724 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
2726 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
2727 instead of `m' constraint. Likewise for unnamed movb comparison
2728 patterns using reg_before_reload_operand predicate.
2729 * config/pa/predicates.md (reg_before_reload_operand): Tighten
2730 predicate to reject register index and LO_SUM DLT memory forms
2733 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
2735 * doc/invoke.texi (Option Summary): Fix spelling of
2736 -fdevirtualize-at-ltrans.
2737 ([-fdevirtualize]): Fix markup.
2738 ([-fdevirtualize-speculatively]): Fix typo.
2739 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
2741 * common.opt (fdevirtualize-at-ltrans): Likewise.
2742 * ipa-devirt.c: Fix typos in comments throughout the file.
2743 (ipa_devirt): Fix typos in format strings for dump output.
2745 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
2747 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
2748 discussion of defaults, light copy-editing.
2750 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2752 * tsan.c (instrument_expr): corrected previous checkin.
2754 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2756 Instrument bit field and unaligned accesses for TSAN.
2757 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
2758 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
2759 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
2760 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
2761 unaligned memory regions.
2763 2015-01-01 Anthony Green <green@moxielogic.com>
2765 * config/moxie/predicates.md (moxie_general_movsrc_operand):
2766 Restrict move source register offsets to 16 bits.
2768 Copyright (C) 2015 Free Software Foundation, Inc.
2770 Copying and distribution of this file, with or without modification,
2771 are permitted in any medium without royalty provided the copyright
2772 notice and this notice are preserved.