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