1 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
3 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
6 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
11 2015-01-21 David Sherwood <david.sherwood@arm.com>
12 Tejas Belagod <Tejas.Belagod@arm.com>
14 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
15 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
16 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
19 2015-01-21 David Sherwood <david.sherwood@arm.com>
20 Tejas Belagod <Tejas.Belagod@arm.com>
22 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
23 (aarch64_reverse_mask): New decls.
24 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
25 (insn_count): New mode_attr.
26 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
27 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
28 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
29 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
30 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
31 (aarch64_simd_st4): New patterns.
32 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
33 (aarch64_reverse_mask): New functions.
35 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
37 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
39 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
40 addressing modes for BE.
41 (aarch64_print_operand): Add 'R' specifier.
42 (aarch64_simd_disambiguate_copy): Delete.
43 (aarch64_simd_emit_reg_reg_move): New function.
44 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
45 in define_splits for structural moves.
46 (mov<mode>): Use less restrictive predicates.
47 (*aarch64_mov<mode>): Simplify and only allow for LE.
48 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
50 2015-01-21 Alan Hayward <alan.hayward@arm.com>
52 * rtlanal.c (subreg_get_info): Exit early for simple and common
55 2015-01-21 Richard Henderson <rth@redhat.com>
58 * ccmp.c (used_in_cond_stmt_p): Remove.
59 (expand_ccmp_expr): Don't use it.
61 2015-01-21 Nick Clifton <nickc@redhat.com>
63 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
66 2015-01-21 Richard Biener <rguenther@suse.de>
69 * tree-core.h (builtin_info, builtin_info_type): Turn from
70 an object with two arrays into an array of an object with
71 decl and two flags, implicit_p and declared_p.
72 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
73 set_builtin_decl, set_builtin_decl_implicit_p,
74 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
75 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
76 * builtins.c (builtin_info): Adjust.
77 * gimplify.c (gimplify_addr_expr): References to builtins
78 that have been declared by the user makes them eligible for
79 use by the compiler. Call set_builtin_decl_implicit_p on them.
81 2015-01-20 Jeff Law <law@redhat.com>
84 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
85 allow pc-relative addresses in operand predicates or constraints.
87 2015-01-21 Bin Cheng <bin.cheng@arm.com>
89 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
90 neon on aarch32 processors for stringops.
92 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
95 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
97 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
100 * ipa-inline.c: Include lto-streamer.h
101 (report_inline_failed_reason): Output source file differences and
102 flags on optimization/target node mismatch.
103 (can_inline_edge_p): Consider caller to be the outer inline function;
104 be less restrictive about matching opimize and optimize_size attributes.
105 (inline_account_function_p): Break out from ...
106 (inline_small_functions): ... here.
107 * ipa-inline-transform.c (clone_inlined_nodes): Use
108 inline_account_function_p.
109 (inline_call): Use optimize attribution; use inline_account_function_p.
110 (inline_transform): Use opt_for_fn.
111 * ipa-inline.h (inline_account_function_p): Declare.
113 2015-01-20 Jakub Jelinek <jakub@redhat.com>
116 * dwarf2out.c (decl_piece_node): Don't put bitsize into
117 mode if bitsize <= 0.
118 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
119 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
122 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
124 * config/nios2/nios2.c (nios2_asm_file_end): Implement
125 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
127 (TARGET_ASM_FILE_END): Define.
129 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
131 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
132 (struct tune_params): Use the enum.
133 * arm.c (arm_*_tune): Update.
134 (arm_option_override): Update.
136 2015-01-20 Richard Biener <rguenther@suse.de>
139 * ipa-reference.c (add_static_var): Inline ...
140 (analyze_function): ... here after splitting out from ...
141 (is_proper_for_analysis): ... this.
143 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
146 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
147 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
148 replace the conditional with it's true branch.
149 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
152 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
154 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
156 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
158 * config/tilegx/mul-tables.c: Move symtab.h include after coretypes.h include.
159 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h, vec.h,
160 machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h, flags.h, statistics.h,
161 double-int.h, real.h, fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h,
162 insn-config.h, expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
164 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
168 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
170 PR rtl-optimization/64081
171 * loop-iv.c (def_pred_latch_p): New function.
172 (latch_dominating_def): Allow specific cases with non-single
174 (iv_get_reaching_def): Likewise.
175 (check_complex_exit_p): New function.
176 (check_simple_exit): Use check_complex_exit_p to allow certain cases
177 with exits not executing on any iteration.
179 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
182 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
185 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
188 * i386.c (gate): Check flag_expensive_optimizations and
190 (ix86_option_override_internal): Drop optimize_size condition
191 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
192 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
194 (ix86_avx256_split_vector_move_misalign,
195 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
196 * sse.md (all uses of TARGET_PREFER_AVX128): Add
197 optimize_insn_for_speed_p check.
199 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
201 * config/mips/mips.h (FP_ASM_SPEC): New define.
202 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
205 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
208 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
209 nullptr for insn when reaching the first insn.
210 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
211 (sh_insn_operands_modified_between_p): Add nullptr check.
212 (sh_find_extending_set_of_reg): Fix log message. Don't accept
213 sign extending mem load if the insn contains any UNSPEC or
216 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
218 * params.def (inline-unit-growth): Drop to 15%.
219 * invoke.texi (inline-unit-growth): Document change.
221 2015-01-19 Martin Liska <mliska@suse.cz>
224 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
225 function for second argument of OBJ_TYPE_REF.
227 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
230 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
231 whether function is an alias.
233 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
235 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
238 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
240 PR rtl-optimization/64671
241 * lra-remat.c (operand_to_remat): Don't consider jump and call
244 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
246 * config/rs6000/default64.h: Include rs6000-cpus.def.
247 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
248 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
249 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
251 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
253 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
254 pseudo-op to specify assembler dialect.
256 2015-01-19 Martin Liska <mliska@suse.cz>
259 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
260 Handle safe potentially removed nodes during filtering.
262 2015-01-19 Martin Liska <mliska@suse.cz>
264 * doc/extend.texi (no_icf): Add new attribute description.
265 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
266 where the pass attempts to merge a function with no_icf attribute.
268 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
271 * doc/md.texi (ARM Options): Document register constraints.
273 2015-01-19 Jiong Wang <jiong.wang@arm.com>
274 Andrew Pinski <apinski@cavium.com>
277 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
278 (ashl<mode>3): Don't expand if operands[2] is not constant.
280 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
283 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
284 Match xor-and-xor RTL pattern.
286 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
288 PR rtl-optimization/64081
289 * loop-iv.c (def_pred_latch_p): New function.
290 (latch_dominating_def): Allow specific cases with non-single
292 (iv_get_reaching_def): Likewise.
293 (check_complex_exit_p): New function.
294 (check_simple_exit): Use check_complex_exit_p to allow certain cases
295 with exits not executing on any iteration.
297 2015-01-19 Jakub Jelinek <jakub@redhat.com>
299 * common.opt (fgraphite): Fix a typo.
301 2015-01-19 Felix Yang <felix.yang@huawei.com>
303 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
305 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
306 uminp, smax_nanp, smin_nanp): New builtins.
307 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
308 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
309 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
310 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
311 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
312 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
313 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
314 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
315 vpminnms_f32): Rewrite using builtin functions.
317 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
320 * omp-low.c (offload_symbol_decl): Remove variable.
321 (get_offload_symbol_decl): Remove function.
322 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
323 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
324 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
325 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
326 BUILT_IN_GOACC_UPDATE don't pass it at all.
328 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
330 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
333 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
335 * ipa-chkp.c (chkp_produce_thunks): Add early param
336 to split thunks production into two passes. Keep
337 'always_inline' function bodies after the first pass.
338 (pass_data_ipa_chkp_early_produce_thunks): New.
339 (pass_ipa_chkp_early_produce_thunks): New.
340 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
341 chkp_produce_thunks signature.
342 (make_pass_ipa_chkp_early_produce_thunks): New.
343 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
344 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
345 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
347 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
349 * cgraph.c (cgraph_node::dump): Dump profile flags.
351 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
354 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
355 reg appear first in the parallel.
357 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
359 * ipa-reference.c (set_reference_optimization_summary,
360 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
362 (ignore_module_statics): New static var.
363 (propagate_bits): If ipa-reference is disabled, do not look into local
365 (analyze_function): Disable analysis when ipa_reference is disabled.
366 (generate_summary): Do not dump when reference is disabled;
367 collect vars accessed from functions with ipa-reference disabled.
368 (get_read_write_all_from_node): When ipa-reference is disabled, use the
370 (gate): Enable for LTO.
371 (ignore_edge_p): New function.
372 (propagate): Skip functions w/o ipa-reference analysis.
373 * optc-save-gen.awk: Handle optimize_debug correctly.
374 * opth-gen.awk: Likewise.
375 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
376 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
377 fira-share-save-slots, fira-share-spill-slots,
378 fmodulo-sched-allow-regmoves, fpartial-inlining,
379 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
380 ftracer, ftree-parallelize-loops, fassociative-math,
381 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
383 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
384 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
386 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
389 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
392 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
394 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
396 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
398 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
399 Remove duplicate option listings.
401 2015-01-18 Felix Yang <felix.yang@huawei.com>
403 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
404 (autofdo_source_profile::get_callsite_total_count,
405 function_instance::get_function_instance_by_decl,
406 string_table::get_index, string_table::get_index_by_decl,
407 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
408 Fix comment typos. Reformatting and minor code rearrangement.
410 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
412 * config/rs6000/rs6000.md (probe_stack): Delete.
413 (probe_stack_address): New.
415 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
417 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
418 to test for 32-bit ABIs, not !TARGET_POWERPC64.
420 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
422 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
423 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
424 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
426 (rs6000_libcall_value): Use the new function.
428 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
430 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
432 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
434 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
435 implement a more precise life analysis for it during backward scan.
437 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
439 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
441 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
443 PR rtl-optimization/52773
444 * calls.c (emit_library_call_value): When pushing arguments use
445 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
446 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
447 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
449 2015-01-17 Jeff Law <law@redhat.com>
451 PR rtl-optimization/32790
452 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
453 not ZERO_EXTEND in SET_DESTs.
455 2015-01-17 Alan Modra <amodra@gmail.com>
457 * cprop.c (do_local_cprop): Revert last change.
459 2015-01-16 DJ Delorie <dj@redhat.com>
460 Nick Clifton <nickc@redhat.com>
462 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
463 (addhi3_real): Likewise. Fix [HL+0] syntax.
464 (subqi3_real): Likewise.
465 (subhi3_real): Likewise.
466 (cbranchqi4_real): Likewise. Allow saddr,#imm.
467 (cbranchhi4_real): Likewise.
468 (cbranchhi4_real_inverted): Likewise.
469 (cbranchsi4_real_lt): Likewise.
470 (cbranchsi4_real_ge): Likewise.
471 (cbranchsi4_real_ge): Likewise.
472 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
473 (sub<mode>3_virt): Likewise.
474 (cbranchqi4_virt): Likewise.
475 (cbranchhi4_virt): Likewise.
476 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
477 always use '[reg+imm]' even when imm is zero.
478 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
479 (rl78_general_operand): New.
480 (rl78_nonimmediate_operand): New.
481 (rl78_nonfar_operand): Use them.
482 (rl78_nonfar_nonimm_operand): Likewise.
483 (rl78_stack_based_mem): Fix.
484 * config/rl78/constraints.md (Ibqi): New.
489 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
492 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
494 * config/rl78/constrains (Qs8): New constraint.
495 * config/rl78/rl78.c (rl78_flags_already_set): New function.
496 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
497 * config/rl78/rl78-real.md (update_Z): New attribute.
498 Update patterns to set it.
499 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
500 shorter compare and branch sequence can be used.
501 (cbranchhi4_real): Likewise.
502 (cbranchhi4_real_inverted): Likewise.
504 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
505 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
507 * config/rl78/rl78.c (rl78_get_name_encoding): New.
508 (rl78_option_override): Allow -mes0 only if C.
509 (characterize_address): Support subregs of symbol_refs.
510 (rl78_addr_space_address_mode): Move. Add __near.
511 (rl78_far_p): Likewise.
512 (rl78_addr_space_pointer_mode): Likewise.
513 (rl78_as_legitimate_address): Likewise.
514 (rl78_addr_space_subset_p): Likewise.
515 (rl78_addr_space_convert): Likewise.
516 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
518 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
520 (rl78_alloc_physical_registers_op1): Change logic to prefer
521 symbol[BC] addressing.
522 (frodata_section): New.
523 (rl78_asm_init_sections): Initialize it.
524 (rl78_select_section): Put __far readonly symbols in .frodata.
525 (rl78_make_type_far): New.
526 (rl78_insert_attributes): Force all readonly symbols to be __far when -mes0.
527 (rl78_asm_out_integer): New.
528 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
529 * config/rl78/rl78.opt (-mes0): New.
531 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
532 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
533 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
534 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
536 (rl78_output_aligned_common): New.
537 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
538 (rl78_handle_saddr_attribute): New.
539 (rl78_handle_naked_attribute): New.
540 (rl78_attribute_table): Add saddr.
541 (rl78_print_operand_1): Don't print '!' on saddr operands.
542 (rl78_print_operand_1): Strip encodings.
544 (rl78_strip_name_encoding): New.
545 (rl78_attrlist_to_encoding): New.
546 (rl78_encode_section_info): New.
547 (rl78_asm_init_sections): New.
548 (rl78_select_section): New.
549 (rl78_output_labelref): New.
550 (rl78_output_aligned_common): New.
551 (rl78_asm_out_integer): New.
552 (rl78_asm_ctor_dtor): New.
553 (rl78_asm_constructor): New.
554 (rl78_asm_destructor): New.
556 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
557 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
558 (transcode_memory_rtx): Update.
559 (rl78_expand_epilogue): Use A_REG instead of 0.
561 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
563 * config/arm/arm-protos.h (struct tune_params): New field
564 sched_autopref_queue_depth.
565 * config/arm/arm.c (sched-int.h): Include header.
566 (arm_first_cycle_multipass_dfa_lookahead_guard,)
567 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
568 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
569 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
570 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
571 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
572 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
573 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
574 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
575 * config/arm/t-arm (arm.o): Update.
576 * haifa-sched.c (update_insn_after_change): Update.
577 (rank_for_schedule): Use auto-prefetcher model, if requested.
578 (autopref_multipass_init): New static function.
579 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
580 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
581 variable for debug dumps.
582 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
583 (autopref_multipass_dfa_lookahead_guard): New global function that
584 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
585 (init_h_i_d): Update.
586 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
587 * sched-int.h (enum autopref_multipass_data_status): New const enum.
588 (autopref_multipass_data_): Structure for auto-prefetcher data.
589 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
590 (struct _haifa_insn_data:autopref_multipass_data): New field.
591 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
592 (autopref_multipass_dfa_lookahead_guard): Declare.
594 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
596 * rtlanal.c (get_base_term): Handle SCRATCH.
598 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
600 * config/aarch64/aarch64.c
601 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
602 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
604 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
605 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
607 2015-01-17 Alan Modra <amodra@gmail.com>
609 * cprop.c (do_local_cprop): Disallow replacement of fixed
612 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
615 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
618 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
620 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
621 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
623 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
625 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
626 * config/arm/thumb1.md: ... Here.
628 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
630 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
631 TImode for TARGET_32BIT.
633 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
635 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
636 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
638 (rs6000_abi_word_mode): New function.
640 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
642 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
643 instead of UNITS_PER_WORD to describe the size of stack slots.
645 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
647 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
648 as rs6000_promote_function_mode. Move comment to there.
649 (rs6000_promote_function_mode): New function.
651 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
653 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
654 -mpowerpc64 is active.
656 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
659 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
662 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
664 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
665 introduced in revision 219724.
667 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
668 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
671 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
672 destination is not a GP reg.
673 (*movdi_aarch64): Likewise.
675 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
678 * config/rs6000/default64.h: Revert ISA change.
680 2015-01-16 Richard Biener <rguenther@suse.de>
683 * tree-ssa-uninit.c: Include tree-cfg.h.
684 (MAX_SWITCH_CASES): New define.
685 (convert_control_dep_chain_into_preds): Handle switch statements.
686 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
687 (normalize_one_pred_1): Do not split bit-manipulations.
690 2015-01-16 Richard Biener <rguenther@suse.de>
692 PR tree-optimization/64568
693 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
694 complex load rewriting for TARGET_MEM_REFs.
696 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
698 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
700 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
703 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
705 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
706 (aarch64_lra_p): Remove.
708 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
711 * ipa-chkp.h (chkp_instrumentable_p): New.
712 * ipa-chkp.c: Include tree-inline.h.
713 (chkp_instrumentable_p): New.
714 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
715 Fix processing of not instrumentable functions.
716 (chkp_versioning): Use chkp_instrumentable_p. Warn about
717 not instrumentable functions.
718 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
719 chkp_instrumentable_p.
720 * tree-inline.h (copy_forbidden): New.
721 * tree-inline.c (copy_forbidden): Not static anymore.
723 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
725 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
728 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
730 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
731 type OP_OUT to OP_INOUT.
733 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
735 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
736 (high x) y) to y if x and y have the same base.
738 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
740 * config/arm/cortex-a57.md: New.
741 * config/aarch64/aarch64.md: Include it.
742 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
743 * config/aarch64/aarch64-tune.md: Regenerate.
745 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
748 * ccmp.c (expand_ccmp_next): New function.
749 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
750 and compare insn sequence.
751 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
752 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
753 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
754 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
755 (*ccmp_ior): Changed to ccmp_ior<mode>.
756 (cmp<mode>): New pattern.
757 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
759 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
761 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
763 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
764 _mm256_bsrli_epi128): New.
765 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
767 2015-01-15 Jiong Wang <jiong.wang@arm.com>
769 * expmed.c (store_bit_field_using_insv): Improve warning message.
770 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
772 2015-01-15 Jiong Wang <jiong.wang@arm.com>
774 PR rtl-optimization/64011
775 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
776 there is partial overflow.
778 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
780 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
782 (nds32_expand_epilogue_v3pop): Likewise.
783 * config/nds32/nds32.md (sibcall): Define this for sibling call
785 (sibcall_register): Likewise.
786 (sibcall_immediate): Likewise.
787 (sibcall_value): Likewise.
788 (sibcall_value_register): Likewise.
789 (sibcall_value_immediate): Likewise.
790 (sibcall_epilogue): Likewise.
791 (epilogue): Pass false to indicate this is not a sibcall epilogue.
792 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
793 (nds32_expand_epilogue_v3pop): Likewise.
795 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
797 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
798 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
799 (return_internal): New.
800 (return): Define this named pattern.
801 (simple_return): Define this named pattern.
802 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
803 pattern instead of unspec_volatile_func_return.
804 (nds32_expand_epilogue_v3pop): Likewise.
805 (nds32_can_use_return_insn): New function.
807 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
809 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
810 * config/nds32/nds32.md (pop25return): New.
811 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
814 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
816 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
817 -mforbid-fp-as-gp, and -mex9 options.
819 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
821 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
822 remove -mgp-direct option.
824 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
826 * doc/invoke.texi (--param early-inlining-insns): Update default value.
827 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
829 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
831 * ipa-inline.c (inline_small_functions): Work around hints
834 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
837 * doc/invoke.texi (Option Summary): Document new Nios II
839 (Nios II Options): Likewise.
840 * config/nios2/nios2.opt: Add -mgpopt= option support.
841 Modify existing -mgpopt and -mno-gpopt options to be aliases.
842 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
843 * config/nios2/nios2.c (nios2_option_override): Adjust
845 (nios2_in_small_data_p): Return true for explicit small data
846 sections even with -G0.
847 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
850 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
853 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
855 (inline_call): Fix removal of aliases.
857 2015-01-15 Jakub Jelinek <jakub@redhat.com>
859 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
860 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
861 * opts.c (common_handle_option): Add -fsanitize=vptr.
862 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
863 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
864 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
865 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
866 (ubsan_expand_vptr_ifn): New prototype.
867 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
868 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
869 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
870 expand_LOOP_VECTORIZED): Make argument nameless, remove
872 (expand_UBSAN_VPTR): New function.
873 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
875 (UBSAN_VPTR): New internal function.
876 * sanopt.c (tree_map_traits): Renamed to ...
877 (sanopt_tree_map_traits): ... this.
878 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
879 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
880 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
881 (maybe_optimize_ubsan_vptr_ifn): New function.
882 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
883 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
885 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
886 internal calls like pure functions for aliasing, even when they
887 have other side-effects that prevent making them ECF_PURE.
888 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
889 (ubsan_expand_vptr_ifn): New function.
891 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
893 PR rtl-optimization/64110
894 * stmt.c (parse_output_constraint): Process '^' and '$'.
895 (parse_input_constraint): Ditto.
896 * lra-constraints.c (process_alt_operands): Process the new
898 * ira-costs.c (record_reg_classes): Process the new constraint
900 * genoutput.c (indep_constraints): Add '^' and '$'.
901 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
902 * doc/md.texi: Add description of the new constraints.
904 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
905 Bernd Schmidt <bernds@codesourcery.com>
906 Cesar Philippidis <cesar@codesourcery.com>
907 James Norris <jnorris@codesourcery.com>
908 Tom de Vries <tom@codesourcery.com>
909 Ilmir Usmanov <i.usmanov@samsung.com>
910 Dmitry Bocharnikov <dmitry.b@samsung.com>
911 Evgeny Gavrin <e.gavrin@samsung.com>
912 Jakub Jelinek <jakub@redhat.com>
914 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
915 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
916 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
918 * builtins.c: Include "gomp-constants.h".
919 (expand_builtin_acc_on_device): New function.
920 (expand_builtin, is_inexpensive_builtin): Handle
921 BUILT_IN_ACC_ON_DEVICE.
922 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
924 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
926 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
927 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
928 i386/intelmic-offload.h.
929 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
930 to libgomp and its dependencies.
931 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
932 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
933 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
934 * config/ia64/hpux.h (LIB_SPEC): Likewise.
935 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
936 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
937 * doc/generic.texi: Update for OpenACC changes.
938 * doc/gimple.texi: Likewise.
939 * doc/invoke.texi: Likewise.
940 * doc/sourcebuild.texi: Likewise.
941 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
942 GF_OMP_FOR_KIND_OACC_LOOP.
943 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
944 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
945 GF_OMP_TARGET_KIND_OACC_UPDATE,
946 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
948 * gimple.c: Update comments for OpenACC changes.
949 * gimple.def: Likewise.
950 * gimple.h: Likewise.
951 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
952 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
953 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
954 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
955 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
957 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
958 * gimplify.c: Include "gomp-constants.h".
959 Update comments for OpenACC changes.
960 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
961 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
962 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
963 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
964 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
965 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
966 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
967 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
968 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
970 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
971 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
972 OMP_CLAUSE_SET_MAP_KIND.
973 (gimplify_oacc_cache): New function.
974 (gimplify_omp_for): Handle OACC_LOOP.
975 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
977 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
978 OACC_EXIT_DATA, OACC_UPDATE.
979 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
980 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
981 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
982 (gimplify_body): Consider flag_openacc next to flag_openmp.
983 * lto-streamer-out.c: Include "gomp-constants.h".
984 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
985 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
986 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
987 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
988 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
989 (BUILT_IN_ACC_ON_DEVICE): New builtins.
990 * omp-low.c: Include "gomp-constants.h".
991 Update comments for OpenACC changes.
992 (struct omp_context): Add reduction_map, gwv_below, gwv_this
994 (extract_omp_for_data, use_pointer_for_field, install_var_field)
995 (new_omp_context, delete_omp_context, scan_sharing_clauses)
996 (create_omp_child_function, scan_omp_for, scan_omp_target)
997 (check_omp_nesting_restrictions, lower_reduction_clauses)
998 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
999 Update for OpenACC changes.
1000 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
1001 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
1002 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
1003 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
1004 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
1005 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
1007 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1008 Handle GF_OMP_FOR_KIND_OACC_LOOP.
1009 (expand_omp_target, lower_omp_target): Handle
1010 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
1011 GF_OMP_TARGET_KIND_OACC_UPDATE,
1012 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
1013 GF_OMP_TARGET_KIND_OACC_DATA.
1014 (pass_expand_omp::execute, execute_lower_omp)
1015 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
1017 (offload_symbol_decl): New variable.
1018 (oacc_get_reduction_array_id, oacc_max_threads)
1019 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
1020 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
1021 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
1022 (oacc_gimple_assign, oacc_initialize_reduction_data)
1023 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
1025 (is_targetreg_ctx): Remove function.
1026 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
1027 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
1028 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
1029 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
1030 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
1031 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
1032 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
1033 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
1034 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
1035 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
1036 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
1037 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
1038 * tree-core.h: Update comments for OpenACC changes.
1039 (enum omp_clause_map_kind): Remove.
1040 (struct tree_omp_clause): Change type of map_kind member from enum
1041 omp_clause_map_kind to unsigned char.
1042 * tree-inline.c: Update comments for OpenACC changes.
1043 * tree-nested.c: Likewise. Include "gomp-constants.h".
1044 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
1045 (convert_tramp_reference_stmt, convert_gimple_call): Update for
1046 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
1047 OMP_CLAUSE_SET_MAP_KIND.
1048 * tree-pretty-print.c: Include "gomp-constants.h".
1049 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
1050 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
1051 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
1052 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
1053 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
1054 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
1055 instead of OMP_CLAUSE_MAP_*.
1056 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
1057 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
1058 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
1059 * tree-streamer-in.c: Include "gomp-constants.h".
1060 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
1061 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
1062 * tree-streamer-out.c: Include "gomp-constants.h".
1063 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
1065 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
1066 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
1067 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
1068 * tree.c (omp_clause_num_ops): Update accordingly.
1069 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
1071 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
1072 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
1073 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
1074 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
1075 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
1076 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
1077 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
1078 (OMP_CLAUSE_SET_MAP_KIND): New macro.
1079 * varpool.c (varpool_node::get_create): Consider flag_openacc next
1081 * config/i386/intelmic-offload.h: New file.
1082 * config/nvptx/offload.h: Likewise.
1084 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1086 * explow.h: Remove duplicate contents.
1087 * dojump.h: Likewise.
1089 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
1091 * arm.c (arm_xgene_tune): Add default initializer for instruction
1094 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1098 * ipa.c (symbol_table::remove_unreachable_nodes):
1099 Do not put abstract origins into boundary.
1101 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
1103 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
1104 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
1106 2015-01-15 Steve Ellcey <sellcey@mips.com>
1108 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
1109 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
1110 builtins.def, and chkp-builtins.def.
1112 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
1114 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
1117 2015-01-15 Richard Biener <rguenther@suse.de>
1119 PR tree-optimization/61743
1120 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
1121 information on PHIs for some simple cases.
1123 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1125 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
1127 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
1128 * config/arm/arm-cores.def (xgene1): New entry.
1129 * config/arm/arm-tables.opt: Regenerate.
1130 * config/arm/arm-tune.md: Regenerate.
1131 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
1133 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
1135 * tree-if-conv.c: Include hash-map.h.
1136 (aggressive_if_conv): New variable.
1137 (fold_build_cond_expr): Add simplification of non-zero condition.
1138 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
1139 destination block is not always executed.
1140 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
1141 than two predecessors if AGGRESSIVE_IF_CONV is true.
1142 (if_convertible_stmt_p): Fix commentary.
1143 (all_preds_critical_p): New function.
1144 (has_pred_critical_p): New function.
1145 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
1146 BB can have more than two predecessors and all incoming edges can be
1148 (predicate_bbs): Skip predication for loop exit block, use build2_loc
1149 to compute predicate for true edge.
1150 (find_phi_replacement_condition): Delete this function.
1151 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
1152 Allow interchange PHI arguments if EXTENDED is false.
1153 Change check that block containing reduction statement candidate
1154 is predecessor of phi-block since phi may have more than two arguments.
1155 (phi_args_hash_traits): New helper structure.
1156 (struct phi_args_hash_traits): New type.
1157 (phi_args_hash_traits::hash): New function.
1158 (phi_args_hash_traits::equal_keys): New function.
1159 (gen_phi_arg_condition): New function.
1160 (predicate_scalar_phi): Add handling of phi nodes with more than two
1161 arguments, delete COND and TRUE_BB arguments, insert body of
1162 find_phi_replacement_condition to predicate ordinary phi nodes.
1163 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
1164 delete call of find_phi_replacement_condition and invoke
1165 predicate_scalar_phi with two arguments.
1166 (insert_gimplified_predicates): Add assert that non-predicated block
1167 don't have statements to insert.
1168 (ifcvt_split_critical_edges): New function.
1169 (ifcvt_split_def_stmt): Likewise.
1170 (ifcvt_walk_pattern_tree): Likewise.
1171 (stmt_is_root_of_bool_pattern): Likewise.
1172 (ifcvt_repair_bool_pattern): Likewise.
1173 (ifcvt_local_dce): Likewise.
1174 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
1175 is copy of inner or outer loop force_vectorize field, invoke
1176 ifcvt_split_critical_edges, ifcvt_local_dce and
1177 ifcvt_repair_bool_pattern for aggressive if-conversion.
1179 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
1181 * config/aarch64/aarch64.md: Include xgene1.md.
1182 * config/aarch64/xgene1.md: New file.
1184 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1186 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
1187 xgene1 (APM XGene-1) core definition.
1188 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
1189 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
1190 * doc/invoke.texi: Document -mcpu=xgene1.
1192 2015-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1194 * dojump.h: New header file.
1195 * explow.h: Likewise.
1196 * expr.h: Remove includes.
1197 Move expmed.c prototypes to expmed.h.
1198 Move dojump.c prototypes to dojump.h.
1199 Move alias.c prototypes to alias.h.
1200 Move explow.c prototypes to explow.h.
1201 Move calls.c prototypes to calls.h.
1202 Move emit-rtl.c prototypes to emit-rtl.h.
1203 Move varasm.c prototypes to varasm.h.
1204 Move stmt.c prototypes to stmt.h.
1205 (saved_pending_stack_adjust): Move to dojump.h.
1206 (adjust_address): Move to explow.h.
1207 (adjust_address_nv): Move to emit-rtl.h.
1208 (adjust_bitfield_address): Likewise.
1209 (adjust_bitfield_address_size): Likewise.
1210 (adjust_bitfield_address_nv): Likewise.
1211 (adjust_automodify_address_nv): Likewise.
1212 * explow.c (expr_size): Move to expr.c.
1213 (int_expr_size): Likewise.
1214 (tree_expr_size): Likewise.
1215 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1216 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
1217 * genemit.c (main): Generate includes statistics.h, real.h, fixed-value.h,
1218 insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
1219 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h, function.h,
1220 statistics.h, real.h, fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
1222 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
1223 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
1224 * genemit.c (open_base_files): Generate includes flags.h, statistics.h, real.h,
1225 fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h,
1227 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h, hash-set.h, vec.h,
1228 machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h, flags.h, statistics.h,
1229 double-int.h, real.h, fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h,
1230 insn-config.h, expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
1231 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
1232 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
1233 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
1234 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
1235 tm.h tree.h varasm.h vec.h wide-int.h.
1236 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1237 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
1238 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
1239 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
1240 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1241 explow.h expmed.h fixed-value.h flags.h inchash.h insn-config.h
1242 real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
1243 * loop-iv.c: Likewise.
1244 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1245 explow.h expmed.h fixed-value.h flags.h inchash.h real.h
1246 statistics.h stmt.h tree.h varasm.h wide-int.h.
1247 * lra-constraints.c: Likewise.
1248 * lra-eliminations.c: Likewise.
1249 * lra-lives.c: Likewise.
1250 * lra-remat.c: Likewise.
1251 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1252 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
1253 statistics.h stmt.h tree.h varasm.h wide-int.h.
1254 * hw-doloop.c: Likewise.
1255 * ira-color.c: Likewise.
1256 * ira-emit.c: Likewise.
1257 * loop-doloop.c: Likewise.
1258 * loop-invariant.c: Likewise.
1259 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1260 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
1261 statistics.h stmt.h tree.h varasm.h wide-int.h.
1262 * caller-save.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1263 explow.h expmed.h fixed-value.h inchash.h real.h statistics.h
1264 stmt.h tree.h varasm.h wide-int.h.
1265 * combine-stack-adj.c: Likewise.
1268 * ifcvt.c: Likewise.
1269 * ira-costs.c: Likewise.
1271 * lra-coalesce.c: Likewise.
1272 * lra-spills.c: Likewise.
1273 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1274 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
1275 stmt.h varasm.h wide-int.h.
1276 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1277 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
1279 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
1280 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
1281 statistics.h stmt.h varasm.h wide-int.h.
1282 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
1283 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
1284 varasm.h wide-int.h.
1285 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
1286 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1287 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
1288 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
1289 statistics.h stmt.h.
1290 * config/tilepro/tilepro.c: Likewise.
1291 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
1292 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
1293 * config/pdp11/pdp11.c: Likewise.
1294 * config/xtensa/xtensa.c: Likewise.
1295 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
1296 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
1298 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1299 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
1300 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
1301 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1302 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
1303 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
1304 * rtl-chkp.c: Likewise.
1305 * tree-chkp-opt.c: Likewise.
1306 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h explow.h
1307 expmed.h fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
1308 insn-config.h real.h statistics.h stmt.h varasm.h.
1309 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1310 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
1311 statistics.h stmt.h.
1312 * tree-vect-data-refs.c: Likewise.
1313 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
1314 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1315 rtl.h statistics.h stmt.h varasm.h.
1316 * internal-fn.c: Likewise.
1317 * ipa-icf-gimple.c: Likewise.
1318 * lto-section-out.c: Likewise.
1319 * tree-data-ref.c: Likewise.
1320 * tree-nested.c: Likewise.
1321 * tree-outof-ssa.c: Likewise.
1322 * tree-predcom.c: Likewise.
1323 * tree-pretty-print.c: Likewise.
1324 * tree-scalar-evolution.c: Likewise.
1325 * tree-ssa-strlen.c: Likewise.
1326 * tree-vect-loop.c: Likewise.
1327 * tree-vect-patterns.c: Likewise.
1328 * tree-vect-slp.c: Likewise.
1329 * tree-vect-stmts.c: Likewise.
1331 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1332 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
1334 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
1335 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1336 statistics.h stmt.h varasm.h.
1337 * loop-unroll.c: Likewise.
1338 * ubsan.c: Likewise.
1339 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
1340 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
1342 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1343 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
1344 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
1345 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
1346 statistics.h stmt.h.
1347 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
1348 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
1349 statistics.h stmt.h varasm.h.
1350 * gimple-match-head.c: Likewise.
1351 * lto-cgraph.c: Likewise.
1352 * lto-section-in.c: Likewise.
1353 * lto-streamer-in.c: Likewise.
1354 * lto-streamer-out.c: Likewise.
1355 * tree-affine.c: Likewise.
1356 * tree-cfg.c: Likewise.
1357 * tree-cfgcleanup.c: Likewise.
1358 * tree-if-conv.c: Likewise.
1359 * tree-into-ssa.c: Likewise.
1360 * tree-ssa-alias.c: Likewise.
1361 * tree-ssa-copyrename.c: Likewise.
1362 * tree-ssa-dse.c: Likewise.
1363 * tree-ssa-forwprop.c: Likewise.
1364 * tree-ssa-live.c: Likewise.
1365 * tree-ssa-math-opts.c: Likewise.
1366 * tree-ssa-pre.c: Likewise.
1367 * tree-ssa-sccvn.c: Likewise.
1368 * tree-tailcall.c: Likewise.
1369 * tree-vect-generic.c: Likewise.
1370 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1371 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
1372 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1373 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
1374 * varasm.c: Likewise.
1375 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1376 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
1378 * init-regs.c: Likewise.
1380 * omp-low.c: Likewise.
1381 * stack-ptr-mod.c: Likewise.
1382 * tree-ssa-reassoc.c: Likewise.
1383 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1384 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
1386 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1387 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
1388 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1389 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
1390 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1391 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
1392 * tree-ssa-phiopt.c: Likewise.
1393 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1394 fixed-value.h hashtab.h real.h statistics.h stmt.h.
1395 * config/fr30/fr30.c: Likewise.
1396 * config/frv/frv.c: Likewise.
1398 * final.c: Likewise.
1399 * optabs.c: Likewise.
1400 * passes.c: Likewise.
1401 * simplify-rtx.c: Likewise.
1403 * toplev.c: Likewise.
1404 * var-tracking.c: Likewise.
1405 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1406 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1407 * lower-subreg.c: Likewise.
1408 * postreload-gcse.c: Likewise.
1410 * reginfo.c: Likewise.
1411 * store-motion.c: Likewise.
1412 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1413 fixed-value.h hashtab.h real.h stmt.h varasm.h.
1414 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1415 fixed-value.h hashtab.h statistics.h stmt.h.
1416 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1417 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
1418 * except.c: Likewise.
1419 * explow.c: Likewise.
1420 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1421 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
1423 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1424 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
1425 * tree-ssa-structalias.c: Likewise.
1426 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1427 fixed-value.h insn-config.h real.h statistics.h.
1428 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1429 fixed-value.h insn-config.h real.h statistics.h stmt.h.
1430 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1431 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
1432 * cfgbuild.c: Likewise.
1433 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1434 fixed-value.h real.h rtl.h statistics.h stmt.h.
1435 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1436 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1437 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1438 fixed-value.h real.h statistics.h stmt.h.
1439 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1440 fixed-value.h real.h statistics.h stmt.h varasm.h.
1441 * cprop.c: Likewise.
1442 * modulo-sched.c: Likewise.
1443 * postreload.c: Likewise.
1444 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
1445 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
1446 statistics.h stmt.h varasm.h.
1447 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
1448 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1449 rtl.h statistics.h stmt.h varasm.h.
1450 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
1451 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
1453 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
1454 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
1456 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
1457 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
1459 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
1460 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1461 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1462 function.h real.h statistics.h stmt.h varasm.h.
1463 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1464 insn-config.h real.h statistics.h stmt.h.
1465 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1466 statistics.h stmt.h.
1467 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
1468 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
1469 statistics.h stmt.h varasm.h.
1470 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1471 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
1472 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1473 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
1474 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
1475 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
1476 statistics.h stmt.h varasm.h.
1477 * ipa-polymorphic-call.c: Likewise.
1478 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h expmed.h
1479 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
1481 * config/c6x/c6x.c: Likewise.
1482 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h explow.h
1483 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1484 statistics.h stmt.h varasm.h.
1485 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1486 hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h varasm.h.
1487 * ipa-split.c: Likewise.
1488 * tree-eh.c: Likewise.
1489 * tree-ssa-dce.c: Likewise.
1490 * tree-ssa-loop-niter.c: Likewise.
1491 * tree-vrp.c: Likewise.
1492 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
1493 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
1495 * config/nds32/nds32-fp-as-gp.c: Likewise.
1496 * config/nds32/nds32-intrinsic.c: Likewise.
1497 * config/nds32/nds32-isr.c: Likewise.
1498 * config/nds32/nds32-md-auxiliary.c: Likewise.
1499 * config/nds32/nds32-memory-manipulation.c: Likewise.
1500 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1501 * config/nds32/nds32-predicates.c: Likewise.
1502 * config/nds32/nds32.c: Likewise.
1503 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
1504 fixed-value.h hashtab.h real.h statistics.h.
1505 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
1506 fixed-value.h hashtab.h real.h statistics.h stmt.h.
1507 * config/arm/arm.c: Likewise.
1508 * config/avr/avr.c: Likewise.
1509 * config/bfin/bfin.c: Likewise.
1510 * config/h8300/h8300.c: Likewise.
1511 * config/i386/i386.c: Likewise.
1512 * config/ia64/ia64.c: Likewise.
1513 * config/iq2000/iq2000.c: Likewise.
1514 * config/m32c/m32c.c: Likewise.
1515 * config/m32r/m32r.c: Likewise.
1516 * config/m68k/m68k.c: Likewise.
1517 * config/mcore/mcore.c: Likewise.
1518 * config/mep/mep.c: Likewise.
1519 * config/mips/mips.c: Likewise.
1520 * config/mn10300/mn10300.c: Likewise.
1521 * config/moxie/moxie.c: Likewise.
1522 * config/pa/pa.c: Likewise.
1523 * config/rl78/rl78.c: Likewise.
1524 * config/rx/rx.c: Likewise.
1525 * config/s390/s390.c: Likewise.
1526 * config/sh/sh.c: Likewise.
1527 * config/sparc/sparc.c: Likewise.
1528 * config/spu/spu.c: Likewise.
1529 * config/stormy16/stormy16.c: Likewise.
1530 * config/v850/v850.c: Likewise.
1531 * config/vax/vax.c: Likewise.
1532 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
1533 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1534 * config/msp430/msp430.c: Likewise.
1535 * predict.c: Likewise.
1536 * value-prof.c: Likewise.
1537 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
1538 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
1539 * config/microblaze/microblaze.c: Likewise.
1540 * config/nios2/nios2.c: Likewise.
1541 * config/rs6000/rs6000.c: Likewise.
1542 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1543 insn-config.h real.h rtl.h statistics.h stmt.h.
1544 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1545 insn-config.h real.h statistics.h stmt.h.
1546 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
1547 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
1548 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
1549 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1550 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1551 real.h statistics.h stmt.h.
1552 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
1553 fixed-value.h statistics.h stmt.h.
1554 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
1557 2015-01-15 Jakub Jelinek <jakub@redhat.com>
1559 * gengtype.c (create_user_defined_type): Workaround
1560 -Wmaybe-uninitialized false positives.
1561 * cse.c (fold_rtx): Likewise.
1562 * loop-invariant.c (gain_for_invariant): Likewise.
1564 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
1566 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
1567 set the memory attributes in all cases but clear MEM_EXPR if need be.
1569 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
1571 PR tree-optimization/64434
1572 * cfgexpand.c (reorder_operands): New function.
1573 (expand_gimple_basic_block): Insert call of reorder_operands if
1576 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
1578 * config/mips/micromips.md (*swp): Remove explicit parallel.
1579 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
1580 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
1581 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
1582 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
1583 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
1584 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
1585 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
1586 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
1587 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
1588 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
1589 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
1590 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
1591 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
1592 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
1593 (mips_wrdsp): Likewise.
1594 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
1596 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
1597 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
1598 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
1599 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
1600 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
1601 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
1602 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
1603 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
1604 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
1606 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
1608 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
1609 (mips_print_operand): Support 'y' to print exact log2 in decimal
1611 * config/mips/mips.h (ISA_HAS_LSA): New define.
1612 (ISA_HAS_DLSA): Likewise.
1613 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
1614 * config/mips/predicates.md (const_immlsa_operand): New predicate.
1616 2015-01-15 Martin Liska <mliska@suse.cz>
1619 * optc-save-gen.awk: Add support for array types.
1621 2015-01-15 Richard Biener <rguenther@suse.de>
1624 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
1625 for MEM_REF access functions with the same base can never partially
1628 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1630 * common.opt: New option -fstack-protector-explicit.
1631 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
1632 (stack_protect_decl_phase): Handle stack_protect attribute for
1633 explicit stack protection requests.
1634 (expand_used_vars): Similarly.
1635 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
1636 * doc/extend.texi: Add documentation for "stack_protect" attribute.
1637 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
1639 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
1642 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
1644 (sh_extending_set_of_reg): New struct.
1645 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
1646 sh_remove_reg_dead_or_unused_notes): New Declarations.
1647 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
1648 sh_find_extending_set_of_reg, sh_split_tst_subregs,
1649 sh_extending_set_of_reg::use_as_extended_reg): New functions.
1650 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
1651 convert to insn_and_split and use new function sh_split_tst_subregs.
1653 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
1655 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
1657 (Optimization Options): Move -fuse-ld documentation to...
1658 (Link Options): ...here.
1660 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
1662 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
1664 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
1665 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
1666 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
1667 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
1668 instead of ZR for the memory operand of LL/SC.
1669 (compare_and_swap_12, sync_add<mode>): Likewise.
1670 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
1671 (sync_new_<optab>_12, sync_nand_12): Likewise.
1672 (sync_old_nand_12, sync_new_nand_12): Likewise.
1673 (sync_sub<mode>, sync_old_add<mode>): Likewise.
1674 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
1675 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
1676 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
1677 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
1678 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
1679 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
1680 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
1681 * doc/md.texi (ZC): Update description.
1683 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
1685 * builtins.c (expand_builtin_atomic_exchange): Remove error when
1686 memory model is CONSUME.
1687 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
1688 expand_builtin_atomic_store): Change invalid memory model errors to
1690 (expand_builtin_atomic_clear): Change invalid model errors to warnings
1691 and issue warning for CONSUME.
1693 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
1695 * lto-cgraph: Update function comments for
1696 lto_symtab_encoder_encode_*.
1698 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
1700 * Makefile.in (site.exp): Do not set ENABLE_LTO.
1702 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
1704 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
1705 * lto-cgraph.c (select_what_to_stream): Remove argument, use
1706 lto_stream_offload_p instead.
1707 * lto-streamer.h (select_what_to_stream): Remove argument.
1708 * passes.c (ipa_write_summaries): Likewise.
1709 * tree-pass.h (ipa_write_summaries): Likewise.
1711 2015-01-14 Richard Biener <rguenther@suse.de>
1713 PR tree-optimization/59354
1714 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
1715 groups larger than the slp group size as having gaps.
1717 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
1720 * builtins.c (get_memmodel): Promote consume to acquire always.
1722 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
1725 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
1728 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
1731 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
1733 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
1734 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
1735 AVX512VBMI, as it implies AVX512BW.
1737 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
1740 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
1741 (vec_unpacks_hi_v16sf): Ditto.
1743 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1745 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
1748 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1750 * doc/invoke.texi (mapcs): Mention deprecation.
1751 (mapcs-frame): Likewise.
1753 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1756 * config/arm/arm.c (callee_saved_reg_p): Define.
1757 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
1758 register is callee saved instead of !call_used_regs[reg].
1759 (thumb1_compute_save_reg_mask): Likewise.
1761 2015-01-14 Hale Wang <hale.wang@arm.com>
1763 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
1766 2015-01-14 Richard Biener <rguenther@suse.de>
1769 * tree-inline.c (insert_debug_decl_map): Check destination
1770 function MAY_HAVE_DEBUG_STMTS.
1771 (insert_init_debug_bind): Likewise.
1772 (insert_init_stmt): Remove redundant check.
1773 (remap_gimple_stmt): Drop debug stmts if the destination
1774 function has var-tracking assignments disabled.
1776 2015-01-14 Martin Liska <mliska@suse.cz>
1778 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
1779 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
1781 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1784 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
1785 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
1787 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
1789 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
1790 level from an ARCH; do not inject the default.
1791 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
1792 MIPS_ISA_LEVEL_SPEC.
1793 (MIPS_ISA_NAN2008_SPEC): Update comment.
1794 (BASE_DRIVER_SELF_SPECS): Likewise.
1795 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
1796 MIPS_DEFAULT_ISA_LEVEL_SPEC.
1797 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
1798 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
1799 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
1801 2015-01-14 Richard Biener <rguenther@suse.de>
1803 PR tree-optimization/64493
1804 PR tree-optimization/64495
1805 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
1806 assign the proper vectorized PHI to the inner loop exit PHIs.
1808 2015-01-14 Joey Ye <joey.ye@arm.com>
1810 * config/arm/arm.c (arm_compute_save_reg_mask):
1811 Do not save lr in case of tail call.
1812 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
1814 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
1816 * tree-vrp.c (check_array_ref): Emit more warnings
1817 for warn_array_bounds >= 2.
1818 * common.opt: New option -Warray-bounds=.
1819 * doc/invoke.texi: Document -Warray-bounds=.
1821 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
1823 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
1824 (mforbid-fp-as-gp): Remove.
1826 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
1827 (nds32_symbol_load_store_p): Remove.
1828 (nds32_fp_as_gp_check_available): Clean up implementation.
1829 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
1831 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
1832 fp-as-gp and ex9 cases.
1834 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
1836 * tree-profile.c (init_ic_make_global_vars): Drop workaround
1837 for bintuils bug 14342.
1838 (init_ic_make_global_vars): Likewise.
1839 (gimple_init_edge_profiler): Likewise.
1840 (gimple_gen_ic_func_profiler): Likewise.
1842 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1844 * ipa-inline.c (inline_small_functions): Swap the operands in
1847 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
1850 * ipa-inline-analysis.c (node_growth_cache): Remove.
1851 (initialize_growth_caches): Do not initialize it.
1852 (free_growth_caches): Do not free it.
1853 (do_estimate_growth): Rename to ...
1854 (estimate_growth): ... this one; drop growth cache code.
1855 (growth_likely_positive): Always go the heuristics way.
1856 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
1857 (reset_edge_caches): Do not reset node growth.
1858 (heap_edge_removal_hook): Do not maintain cache.
1859 (inline_small_functions): Likewise; strenghten sanity check.
1860 (ipa_inline): Do not maintain caches.
1861 * ipa-inline.h (node_growth_cache): Remove.
1862 (do_estimate_growth): Remove to ...
1863 (estimate_growth): this one; remove inline version.
1864 (reset_node_growth_cache): Remove.
1866 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
1869 * ipa-inline.c (inline_small_functions): Update callee keys after
1870 resolving speculation
1871 (inline_small_functions): Always check monotonicity of the queue.
1873 2015-01-13 Marek Polacek <polacek@redhat.com>
1876 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
1878 2015-01-13 Jakub Jelinek <jakub@redhat.com>
1880 PR rtl-optimization/64286
1881 * ree.c (combine_reaching_defs): Move part of comment earlier,
1882 remove !SCALAR_INT_MODE_P check.
1883 (add_removable_extension): Don't add vector mode
1884 extensions if all uses of the source register aren't the same
1887 2015-01-13 Renlin Li <renlin.li@arm.com>
1889 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
1890 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
1892 2015-01-13 Martin Liska <mliska@suse.cz>
1894 * ipa-icf.c (sem_function::equals_private): Call new functions
1895 cl_target_option_print_diff and cl_optimization_print_diff.
1896 * optc-save-gen.awk (cl_target_option_print_diff): New function.
1897 (cl_optimization_print_diff): Likewise.
1898 * opth-gen.awk: Likewise.
1900 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
1902 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
1903 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
1904 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
1905 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
1906 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
1907 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
1909 2015-01-13 Andrew Pinski <apinski@cavium.com>
1911 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
1912 instead of src mode.
1914 2015-01-13 Richard Biener <rguenther@suse.de>
1917 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
1920 2015-01-13 Andrew Pinski <apinski@cavium.com>
1922 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
1924 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
1926 2015-01-13 Jakub Jelinek <jakub@redhat.com>
1929 * cfgexpand.c (expand_computed_goto): Don't call
1930 convert_memory_address here.
1932 2015-01-13 Richard Biener <rguenther@suse.de>
1934 PR tree-optimization/64406
1935 * tree-loop-distibution.c (pass_loop_distribution::execute):
1936 Reset the SCEV hashtable if we distributed anything.
1938 2015-01-13 Richard Biener <rguenther@suse.de>
1940 PR tree-optimization/64404
1941 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
1942 SLP types for CSEd loads.
1944 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1946 PR tree-optimization/64436
1947 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
1948 merge of two symbolic numbers for a bitwise OR to ...
1949 (perform_symbolic_merge): This. Also fix computation of the range and
1950 end of the symbolic number corresponding to the result of a bitwise OR.
1952 2015-01-13 Richard Biener <rguenther@suse.de>
1954 PR tree-optimization/64568
1955 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
1956 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
1958 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1960 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
1961 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
1963 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1965 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
1966 target-specific symbol_ref flag.
1967 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
1968 resides in rodata section.
1969 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
1970 (nds32_encode_section_info): New function.
1972 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1974 * config/nds32/nds32.md (call): Use pseudo instruction bal which
1975 clobbers TA_REGNUM if large code model is specified.
1976 (call_register): Likewise.
1977 (call_immediate): Likewise.
1978 (call_value): Likewise.
1979 (call_value_register): Likewise.
1980 (call_value_immediate): Likewise.
1982 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1984 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
1985 (TARGET_CMODEL_MEDIUM): New macro.
1986 (TARGET_CMODEL_LARGE): New macro.
1987 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
1988 code model setting in assembly code.
1990 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1992 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
1993 Remove MASK_GP_DIRECT flag.
1994 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
1995 one of the multilib default options.
1996 * config/nds32/nds32.opt (mgp-direct): Remove.
1997 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
1998 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
2000 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2002 * config/nds32/nds32.opt (mcmodel): Add new option.
2003 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
2004 to describe code model.
2006 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
2009 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
2011 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
2013 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
2014 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
2015 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
2016 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
2017 __builtin_sh_set_fpscr.
2019 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
2021 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
2022 after a funtion name just to indicate it is a function.
2023 ([-fsanitize-undefined-trap-on-error]): Likewise.
2024 ([-fdbg-cnt=]): Likewise.
2025 ([-mmemcpy]): Likewise.
2026 ([-mflush-func]): Likewise.
2027 ([-msynci]): Likewise.
2029 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
2031 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
2034 2015-01-12 Jakub Jelinek <jakub@redhat.com>
2036 PR tree-optimization/64563
2037 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
2038 instead of != VR_VARYING.
2041 * config/i386/i386.c (ix86_expand_prologue): Add
2042 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
2044 PR tree-optimization/64454
2045 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
2046 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
2047 for signed or [0, op1 - 1] for unsigned modulo.
2048 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
2049 even if op1 does not satisfy integer_pow2p.
2052 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
2054 2015-01-12 Jeff Law <law@redhat.com>
2057 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
2058 (trunchiqi2, truncsihi2): Similarly.
2060 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
2061 rather than calling F.
2063 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
2065 * tsan.c (instrument_expr): Use force_gimple_operand.
2066 Use may_be_nonaddressable_p instead of is_gimple_addressable.
2068 2015-01-12 Richard Biener <rguenther@suse.de>
2070 PR tree-optimization/64530
2071 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
2074 2015-01-12 Richard Biener <rguenther@suse.de>
2077 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
2080 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2082 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
2083 Cortex-A17 tuning parameters.
2084 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
2086 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2088 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
2089 * config/arm/arm.c (arm_macro_fusion_p): New function.
2090 (arm_macro_fusion_pair_p): Likewise.
2091 (TARGET_SCHED_MACRO_FUSION_P): Define.
2092 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
2093 (ARM_FUSE_NOTHING): Likewise.
2094 (ARM_FUSE_MOVW_MOVT): Likewise.
2095 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
2096 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
2097 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
2098 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
2099 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
2100 arm_cortex_a5_tune): Specify fuseable_ops value.
2102 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
2105 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
2106 test for PIE with copy reloc.
2107 * configure: Regenerated.
2109 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2111 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
2113 (arm_tls_descseq_addr): Likewise.
2114 (arm_gen_movmemqi): Likewise.
2115 (arm_expand_epilogue_apcs_frame): Likewise.
2116 (arm_expand_epilogue): Likewise.
2117 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
2120 2015-01-12 Martin Liska <mliska@suse.cz>
2123 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
2124 volatility for correct operands.
2126 2015-01-12 Martin Liska <mliska@suse.cz>
2128 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
2129 that a function is not leaf.
2130 (sem_function::compare_polymorphic_p): Likewise.
2132 2015-01-12 Martin Liska <mliska@suse.cz>
2134 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
2135 that a function is not leaf.
2136 (sem_function::compare_polymorphic_p): Likewise.
2138 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2140 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
2141 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
2142 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
2143 fold-const.h, tree-check.h.
2145 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
2149 * ipa-inline.c (compute_uninlined_call_time,
2150 compute_inlined_call_time): Use counts for extra precision when
2152 (big_speedup_p): Fix formating.
2153 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
2154 (relative_time_benefit): Remove.
2155 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
2156 merge guessed and read profile paths.
2157 (inline_small_functions): Count only !optimize_size functions into
2158 initial size; be more lax about sanity check when profile is used;
2159 be sure to update inlined function profile when profile is read.
2161 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
2164 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
2165 cost when edge becomes direct.
2166 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
2167 is resolved or when introducing new speculation.
2169 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
2173 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
2174 '||' to fix typo issue.
2176 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
2177 accept and return NULL.
2179 2015-01-12 Martin Liska <mliska@suse.cz>
2181 * cgraph.c (cgraph_edge::remove_callee): Move function to header
2182 file for being inlined.
2183 (cgraph_set_edge_callee): Delete.
2184 (cgraph_edge::redirect_callee): Move function to header file
2186 (cgraph_edge::make_direct): Use new function.
2187 (cgraph_edge::dump_edge_flags): New function created from
2188 static dump_edge_flags function.
2189 (cgraph_node::dump): Use new function.
2190 (cgraph_edge::verify_count_and_frequency): New function created
2191 from verify_edge_count_and_frequency.
2192 (cgraph_edge::verify_corresponds_to_fndecl): New function created
2193 from verify_edge_corresponds_to_fndecl.
2194 (verify_edge_corresponds_to_fndecl): Delete.
2195 (cgraph_node::verify_node): Use new function.
2196 * cgraph.h (cgraph_edge::set_callee): New function.
2197 (cgraph_edge::dump_edge_flags): Likewise.
2198 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
2200 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
2202 * ipa-utils.c (estimate_function_body_sizes): Do not
2203 free node params when called late with early=true.
2205 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
2207 * doc/md.texi (Instruction Patterns): Rewrite text for
2209 (Example): Likewise.
2211 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
2213 * doc/invoke.texi (Option Summary): Break long lines.
2214 [(-fdiagnostics-color)]: Put long literal in @smallexample
2216 [(-fsanitize-recover)]: Likewise.
2217 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
2218 [(-ffast-math)]: Likewise.
2219 [(--param max-inline-insns-recursive)]: Likewise.
2220 [(--param max-inline-recursive-depth)]: Likewise.
2221 [(-mno-text-section-literals)]: Likewise.
2223 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
2225 * doc/install.texi: Update for libgomp being renamed from "GNU
2226 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
2228 * doc/sourcebuild.texi: Likewise.
2230 2015-01-10 Anthony Green <green@moxielogic.com>
2232 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
2233 mul.x availability for moxiebox configuration.
2235 2015-01-09 Anthony Green <green@moxielogic.com>
2237 * config/moxie/moxie.md: Tabify assembly output.
2239 2015-01-09 Anthony Green <green@moxielogic.com>
2241 * config/moxie/moxie.md (CC_REG): Correct register definition.
2243 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
2245 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
2246 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
2249 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2251 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
2253 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
2254 Jakub Jelinek <jakub@redhat.com>
2257 * lto-streamer.h (lto_stream_offload_p): New declaration.
2258 * lto-streamer.c (lto_stream_offload_p): New variable.
2259 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
2260 at the same time as section_name_prefix.
2261 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
2262 if lto_stream_offload_p.
2263 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
2264 stream TREE_TARGET_OPTION if lto_stream_offload_p.
2265 (write_ts_function_decl_tree_pointers): Don't
2266 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
2267 * tree-streamer-in.c (unpack_value_fields): Don't stream
2268 TREE_TARGET_OPTION in if ACCEL_COMPILER.
2269 (lto_input_ts_function_decl_tree_pointers): Don't stream
2270 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
2271 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
2272 instead of section_name_prefix string comparisons.
2274 2015-01-09 Jakub Jelinek <jakub@redhat.com>
2276 PR rtl-optimization/64536
2277 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
2280 2015-01-09 Michael Collison <michael.collison@linaro.org>
2282 PR tree-optimization/64322
2283 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
2284 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
2286 2015-01-09 Tom de Vries <tom@codesourcery.com>
2288 PR rtl-optimization/64539
2289 * regcprop.c (kill_clobbered_values): Factor out of ...
2290 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
2291 instead of note_stores with kill_clobbered_value.
2293 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2295 * ginclude/unwind-arm-common.h: Revert previous commit.
2297 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2299 * config.gcc (arm*-*-freebsd*): New configuration.
2300 * config/arm/freebsd.h: New file.
2301 * config.host: Add extra components for arm*-*-freebsd*.
2302 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
2303 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
2305 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2307 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
2309 * config/rs6000/t-rtems: Add e6500 multilibs.
2311 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2313 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
2316 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2318 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
2319 MULTILIB_EXCEPTIONS.
2321 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2323 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
2324 MULTILIB_EXCEPTIONS.
2326 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2328 * config/arm/t-rtems-eabi: Rename to...
2329 * config/arm/t-rtems: ...this.
2330 * config/arm/rtems-eabi.h: Rename to...
2331 * config/arm/rtems.h: ...this.
2332 * config.gcc (arm*-*-rtems*): Reflect changes above.
2334 2015-01-09 Richard Biener <rguenther@suse.de>
2336 PR tree-optimization/64410
2337 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
2339 (execute_update_addresses_taken): Deal with that.
2340 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
2341 loads/stores for complex variables.
2343 2015-01-09 Martin Liska <mliska@suse.cz>
2345 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
2347 (func_checker::compare_memory_operand): New function.
2348 (func_checker::compare_operand): Split case to newly
2350 (func_checker::compare_cst_or_decl): New function.
2351 (func_checker::compare_gimple_call): Identify
2353 (func_checker::compare_gimple_assign): Likewise.
2354 * ipa-icf-gimple.h: New function.
2356 2015-01-09 Martin Liska <mliska@suse.cz>
2359 * sreal.c (sreal::dump): Change unsigned format to signed for
2361 (sreal::to_double): Replace exp2 with scalbln.
2363 2015-01-09 Martin Liska <mliska@suse.cz>
2365 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
2366 * ipa-icf.c (sem_function::equals_private): Add support for target and
2367 (sem_item_optimizer::merge_classes): Remove redundant function
2368 optimization flags comparison.
2369 * tree.h (target_opts_for_fn): New function.
2371 2015-01-09 Tom de Vries <tom@codesourcery.com>
2373 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
2375 2015-01-09 Kito Cheng <kito@0xlab.org>
2377 PR rtl-optimization/64348
2378 * lra-constraints.c (split_reg): Fix caller-save store/restore
2379 instruction generation.
2381 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
2383 PR gcov-profile/61790
2384 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
2385 long long. Fallback to int64_t if host doesn't have long long and
2386 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
2388 2015-01-08 Jakub Jelinek <jakub@redhat.com>
2390 PR tree-optimization/63989
2391 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
2393 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
2394 (get_stridx): If we don't have a record for certain SSA_NAME,
2395 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
2396 constant offset, call get_stridx_plus_constant.
2397 (get_stridx_plus_constant): New function.
2398 (zero_length_string): Don't use get_stridx here.
2402 * dse.c (struct insn_info): Mention frame_read set also
2403 before reload for tail calls on some targets.
2404 (scan_insn): Revert 2014-12-22 change. Set frame_read
2405 also before reload for tail calls if
2406 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
2407 instead of add_non_frame_wild_read for non-const/memset
2408 tail calls after reload.
2410 2015-01-08 Jason Merrill <jason@redhat.com>
2412 * ubsan.c (do_ubsan_in_current_function): New.
2413 (pass_ubsan::gate): Use it.
2414 * ubsan.h: Declare it.
2415 * convert.c (convert_to_integer): Use it.
2417 2015-01-08 Jakub Jelinek <jakub@redhat.com>
2420 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
2421 compare_code when it is unconditionally overwritten afterwards.
2422 Use ix86_reverse_condition instead of reverse_condition. Don't
2423 change code if *reverse_condition* returned UNKNOWN and don't
2424 swap ct/cf and negate diff in that case.
2426 2015-01-08 Mike Stump <mikestump@comcast.net>
2428 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
2429 (pass_tsan_O0::gate): Likewise.
2430 * extend.texi (Function Attributes): Add no_sanitize_thread
2433 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
2435 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
2436 for registering builtins.
2437 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
2438 add -fopenmp to the argv_obstack used when invoking
2441 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
2442 add "-m32" or "-m64" to argv_obstack.
2443 (generate_host_descr_file): Likewise, when invoking host_compiler.
2444 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
2447 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
2449 * config/sh/sh-mem.cc: Use constant as second operand when emitting
2452 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
2455 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
2456 constant load if constant operand fits into I08.
2458 2015-01-08 Jakub Jelinek <jakub@redhat.com>
2461 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
2462 and TREE_THIS_VOLATILE for MEM_REFs.
2463 (build5_stat): Fix up initialization of TREE_READONLY and
2464 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
2466 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
2469 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
2470 of r for the second alternative of the destination operand.
2472 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
2475 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
2477 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
2479 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
2481 ([-fivar-visibility], [-fvisibility]): Likewise.
2483 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
2485 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
2486 the file where @code, @command, etc is more appropriate.
2488 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
2490 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
2491 of -mrecip= documentation.
2493 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2496 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
2497 correct reload handler if -m32 -mpowerpc64 is used.
2499 2015-01-06 Tom de Vries <tom@codesourcery.com>
2501 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
2503 2015-01-08 Christian Bruel <christian.bruel@st.com>
2506 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
2508 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
2510 PR tree-optimization/63259
2511 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
2512 if optab exists for 16bit byteswap.
2514 2015-01-06 Jakub Jelinek <jakub@redhat.com>
2516 * opts.c (common_handle_option): Add support for
2517 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
2518 * doc/invoke.texi: Document -fno-sanitize=all,
2519 -f{,no-}sanitize-recover=all. Document that
2520 -fsanitize=float-cast-overflow is not enabled
2521 by -fsanitize=undefined. Fix up documentation
2522 of -f{,no-}sanitize-recover.
2524 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
2526 * config.gcc: Add Visium support.
2527 * configure.ac: Likewise.
2528 * configure: Regenerate.
2529 * doc/extend.texi (interrupt attribute): Add Visium.
2530 * doc/invoke.texi: Document Visium options.
2531 * doc/install.texi: Document Visium target.
2532 * doc/md.texi: Document Visium constraints.
2533 * common/config/visium: New directory.
2534 * config/visium: Likewise.
2536 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
2538 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
2539 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
2541 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
2543 * combine.c (combine_validate_cost): Do not count the cost of a
2544 split I2 twice. Do not display it twice in the dump, either.
2546 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
2548 Revert parts of r219199.
2549 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
2551 ([-Wtraditional]): Restore markup on <limits.h>.
2553 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2556 * doc/invoke.texi: Document -Wsuggest-override.
2558 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
2560 PR rtl-optimization/64287
2561 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
2562 (process_options): Disable flag_ipa_ra if profiling.
2564 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
2566 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
2568 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
2570 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
2571 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
2572 put under #if TARGET_LOOPS guard.
2574 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
2576 * config/i386/i386.c (output_387_binary_op): Use std::swap.
2578 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
2580 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
2581 * rtl.h (refers_to_regno_p): Add overload.
2583 * bt-load.c: Likewise.
2584 * combine.c: Likewise.
2585 * df-scan.c: Likewise.
2586 * sched-deps.c: Likewise.
2587 * config/s390/s390.c: Likewise.
2588 * config/m32r/m32r.c: Likewise.
2589 * config/rs6000/spe.md: Likewise.
2590 * config/rs6000/rs6000.c: Likewise.
2591 * config/pa/pa.c: Likewise.
2592 * config/stormy16/stormy16.c: Likewise.
2593 * config/cris/cris.c: Likewise.
2594 * config/arc/arc.md: Likewise.
2595 * config/arc/arc.c: Likewise.
2596 * config/sh/sh.md: Likewise.
2597 * config/sh/sh.c: Likewise.
2598 * config/frv/frv.c: Likewise.
2600 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2603 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
2604 call as cleanup of the whole body.
2605 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
2606 * tsan.c (replace_func_exit): New function.
2607 (instrument_func_exit): Moved earlier.
2608 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
2609 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
2611 (tsan_pass): Don't call instrument_func_exit.
2612 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
2613 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
2617 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
2618 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
2619 it to libubsan handler instead of EXPR. Fold comparisons earlier,
2620 if the result is integer_zerop, return NULL_TREE.
2621 * convert.c (convert_to_integer): Pass expr as ARG.
2623 PR tree-optimization/64465
2624 * tree-inline.c (redirect_all_calls): During inlining
2625 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
2626 changed the stmt to a non-throwing call.
2628 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
2630 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
2631 etc markup throughout the file.
2633 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
2635 Enable experimental TSAN support for Ada.
2636 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
2638 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2640 PR tree-optimization/64494
2641 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
2642 clear SSA_NAME_ANTI_RANGE_P flag.
2644 2015-01-05 Marek Polacek <polacek@redhat.com>
2646 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
2648 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2650 Update copyright years.
2652 * gcc.c (process_command): Update copyright notice dates.
2653 * gcov-dump.c: Ditto.
2655 * doc/cpp.texi: Bump @copying's copyright year.
2656 * doc/cppinternals.texi: Ditto.
2657 * doc/gcc.texi: Ditto.
2658 * doc/gccint.texi: Ditto.
2659 * doc/gcov.texi: Ditto.
2660 * doc/install.texi: Ditto.
2661 * doc/invoke.texi: Ditto.
2663 * auto-profile.c, auto-profile.h: Fix up Copyright line.
2665 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
2667 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
2669 ([-fvtable-verify], [-fvtv-debug]): Likewise.
2670 ([-Wabi]): Likewise.
2671 ([-fmessage-length]): Likewise.
2672 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
2673 ([-Wno-discarded-qualifiers]): Likewise.
2674 ([-Wnodiscarded-array-qualifiers]): Likewise.
2675 ([-Wno-virtual-move-assign]): Likewise.
2676 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
2677 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
2678 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
2679 ([-fsanitize-undefined-trap-on-error]): Likewise.
2680 ([-floop-interchange]): Likewise.
2681 ([-ftree-coalesce-inlined-vars]): Likewise.
2682 ([-fvect-cost-model]): Likewise.
2683 ([-flto]): Likewise.
2684 ([--param]): Likewise.
2685 (Spec Files): Likewise.
2686 ([-mstrict-align]): Likewise.
2687 ([-mfix-cortex-a53-835769]): Likewise.
2688 ([-march], [-mtune]): Likewise.
2689 ([-mpic-register]): Likewise.
2690 ([-munaligned-access]): Likewise.
2691 ([-msp8]): Likewise.
2692 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
2693 (AVR Built-in Macros): Likewise.
2694 ([-mpreferred-stack-boundary]): Likewise.
2695 ([-mtune-crtl]): Likewise.
2696 ([-mashf]): Likewise.
2697 ([-mmcu=]): Likewise.
2698 ([-minrt]): Likewise.
2699 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
2700 ([-mupper-regs]): Likewise.
2701 ([-matomic-model]): Likewise.
2702 ([-mdiv]): Likewise.
2703 ([-mzdcbranch]): Likewise.
2704 ([-mdisable-callt]): Likewise.
2705 ([-msoft-float]): Likewise.
2706 ([-m8byte-align]): Likewise.
2707 ([-fstack-reuse]): Likewise.
2709 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
2711 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
2712 Fix markup, light copy-editing.
2713 ([-fauto-profile]): Rewrite to fix formatting and content
2716 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
2718 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
2719 Copy-edit description.
2720 ([-fisolate-erroneous-paths-attribute]): Likewise.
2721 * common.opt (fisolate-erroneous-paths-dereference):
2722 Copy-edit description.
2723 (fisolate-erroneous-paths-attribute): Likewise.
2725 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
2727 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
2730 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
2732 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
2733 ([-fvtv-debug]): Likewise.
2734 ([-Wc++-compat]): Likewise.
2735 ([-Wc++11-compat]): Likewise.
2736 ([-Wc++14-compat]): Likewise.
2737 ([-Wno-sized-deallocation]): Likewise.
2738 ([-femit-class-debug-always]): Likewise.
2739 ([-femit-struct-debug-detailed]): Likewise.
2740 ([-fno-keep-inline-dllexport]): Likewise.
2741 ([-fira-algorithm]): Likewise.
2742 ([-fira-region]): Likewise.
2743 ([-flra-remat]): Likewise.
2744 ([-fipa-ra]): Likewise.
2745 ([-fhoist-adjacent-loads]): Likewise.
2746 ([-fisolate-erroneous-paths-dereference]): Likewise.
2747 ([-fisolate-erroneous-paths-attribute]): Likewise.
2748 ([-ftree-switch-conversion]): Likewise.
2749 ([-ftree-tail-merge]): Likewise.
2750 ([-ftree-loop-if-convert]): Likewise.
2751 ([-ftree-loop-if-convert-stores]): Likewise.
2752 ([-ftree-loop-distribution]): Likewise.
2753 ([-ftree-loop-distribute-patterns]): Likewise.
2754 ([-flto-compression-level]): Likewise.
2755 ([-flto-report]): Likewise.
2756 ([-flto-report-wpa]): Likewise.
2757 ([-fuse-linker-plugin]): Likewise.
2758 ([-mfix-cortex-a53-835769]): Likewise.
2759 ([-mno-fix-cortex-a53-835769]): Likewise.
2760 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
2761 explicit listing; add a note to the discussion indicating they
2762 exist. Reorder table to group similar options. Add missing
2763 @opindex entries. Add @need commands throughout the table to
2764 allow it to be split across multiple pages.
2765 ([-m8bit-idiv]): Fix @opindex.
2766 ([-mavx256-split-unaligned-load]): Likewise.
2767 ([-mavx256-split-unaligned-store]): Likewise.
2768 ([-mstack-protector-guard]): Likewise.
2769 ([-mcpu=]): Likewise.
2770 ([-mcpu]): Likewise.
2771 ([-mpointer-size=]): Likewise.
2773 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
2775 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
2776 instead of `m' constraint. Likewise for unnamed movb comparison
2777 patterns using reg_before_reload_operand predicate.
2778 * config/pa/predicates.md (reg_before_reload_operand): Tighten
2779 predicate to reject register index and LO_SUM DLT memory forms
2782 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
2784 * doc/invoke.texi (Option Summary): Fix spelling of
2785 -fdevirtualize-at-ltrans.
2786 ([-fdevirtualize]): Fix markup.
2787 ([-fdevirtualize-speculatively]): Fix typo.
2788 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
2790 * common.opt (fdevirtualize-at-ltrans): Likewise.
2791 * ipa-devirt.c: Fix typos in comments throughout the file.
2792 (ipa_devirt): Fix typos in format strings for dump output.
2794 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
2796 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
2797 discussion of defaults, light copy-editing.
2799 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2801 * tsan.c (instrument_expr): corrected previous checkin.
2803 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2805 Instrument bit field and unaligned accesses for TSAN.
2806 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
2807 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
2808 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
2809 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
2810 unaligned memory regions.
2812 2015-01-01 Anthony Green <green@moxielogic.com>
2814 * config/moxie/predicates.md (moxie_general_movsrc_operand):
2815 Restrict move source register offsets to 16 bits.
2817 Copyright (C) 2015 Free Software Foundation, Inc.
2819 Copying and distribution of this file, with or without modification,
2820 are permitted in any medium without royalty provided the copyright
2821 notice and this notice are preserved.