1 2015-01-19 Jiong Wang <jiong.wang@arm.com>
2 Andrew Pinski <apinski@cavium.com>
5 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
6 (ashl<mode>3): Don't expand if operands[2] is not constant.
8 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
12 Match xor-and-xor RTL pattern.
14 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
16 PR rtl-optimization/64081
17 * loop-iv.c (def_pred_latch_p): New function.
18 (latch_dominating_def): Allow specific cases with non-single
20 (iv_get_reaching_def): Likewise.
21 (check_complex_exit_p): New function.
22 (check_simple_exit): Use check_complex_exit_p to allow certain cases
23 with exits not executing on any iteration.
25 2015-01-19 Jakub Jelinek <jakub@redhat.com>
27 * common.opt (fgraphite): Fix a typo.
29 2015-01-19 Felix Yang <felix.yang@huawei.com>
31 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
33 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
34 uminp, smax_nanp, smin_nanp): New builtins.
35 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
36 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
37 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
38 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
39 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
40 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
41 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
42 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
43 vpminnms_f32): Rewrite using builtin functions.
45 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
48 * omp-low.c (offload_symbol_decl): Remove variable.
49 (get_offload_symbol_decl): Remove function.
50 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
51 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
52 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
53 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
54 BUILT_IN_GOACC_UPDATE don't pass it at all.
56 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
58 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
61 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
63 * ipa-chkp.c (chkp_produce_thunks): Add early param
64 to split thunks production into two passes. Keep
65 'always_inline' function bodies after the first pass.
66 (pass_data_ipa_chkp_early_produce_thunks): New.
67 (pass_ipa_chkp_early_produce_thunks): New.
68 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
69 chkp_produce_thunks signature.
70 (make_pass_ipa_chkp_early_produce_thunks): New.
71 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
72 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
73 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
75 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
77 * cgraph.c (cgraph_node::dump): Dump profile flags.
79 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
82 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
83 reg appear first in the parallel.
85 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
87 * ipa-reference.c (set_reference_optimization_summary,
88 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
90 (ignore_module_statics): New static var.
91 (propagate_bits): If ipa-reference is disabled, do not look into local
93 (analyze_function): Disable analysis when ipa_reference is disabled.
94 (generate_summary): Do not dump when reference is disabled;
95 collect vars accessed from functions with ipa-reference disabled.
96 (get_read_write_all_from_node): When ipa-reference is disabled, use the
98 (gate): Enable for LTO.
99 (ignore_edge_p): New function.
100 (propagate): Skip functions w/o ipa-reference analysis.
101 * optc-save-gen.awk: Handle optimize_debug correctly.
102 * opth-gen.awk: Likewise.
103 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
104 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
105 fira-share-save-slots, fira-share-spill-slots,
106 fmodulo-sched-allow-regmoves, fpartial-inlining,
107 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
108 ftracer, ftree-parallelize-loops, fassociative-math,
109 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
111 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
112 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
114 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
117 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
120 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
122 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
124 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
126 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
127 Remove duplicate option listings.
129 2015-01-18 Felix Yang <felix.yang@huawei.com>
131 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
132 (autofdo_source_profile::get_callsite_total_count,
133 function_instance::get_function_instance_by_decl,
134 string_table::get_index, string_table::get_index_by_decl,
135 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
136 Fix comment typos. Reformatting and minor code rearrangement.
138 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
140 * config/rs6000/rs6000.md (probe_stack): Delete.
141 (probe_stack_address): New.
143 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
145 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
146 to test for 32-bit ABIs, not !TARGET_POWERPC64.
148 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
150 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
151 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
152 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
154 (rs6000_libcall_value): Use the new function.
156 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
158 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
160 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
162 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
163 implement a more precise life analysis for it during backward scan.
165 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
167 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
169 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
171 PR rtl-optimization/52773
172 * calls.c (emit_library_call_value): When pushing arguments use
173 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
174 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
175 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
177 2015-01-17 Jeff Law <law@redhat.com>
179 PR rtl-optimization/32790
180 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
181 not ZERO_EXTEND in SET_DESTs.
183 2015-01-17 Alan Modra <amodra@gmail.com>
185 * cprop.c (do_local_cprop): Revert last change.
187 2015-01-16 DJ Delorie <dj@redhat.com>
188 Nick Clifton <nickc@redhat.com>
190 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
191 (addhi3_real): Likewise. Fix [HL+0] syntax.
192 (subqi3_real): Likewise.
193 (subhi3_real): Likewise.
194 (cbranchqi4_real): Likewise. Allow saddr,#imm.
195 (cbranchhi4_real): Likewise.
196 (cbranchhi4_real_inverted): Likewise.
197 (cbranchsi4_real_lt): Likewise.
198 (cbranchsi4_real_ge): Likewise.
199 (cbranchsi4_real_ge): Likewise.
200 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
201 (sub<mode>3_virt): Likewise.
202 (cbranchqi4_virt): Likewise.
203 (cbranchhi4_virt): Likewise.
204 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
205 always use '[reg+imm]' even when imm is zero.
206 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
207 (rl78_general_operand): New.
208 (rl78_nonimmediate_operand): New.
209 (rl78_nonfar_operand): Use them.
210 (rl78_nonfar_nonimm_operand): Likewise.
211 (rl78_stack_based_mem): Fix.
212 * config/rl78/constraints.md (Ibqi): New.
217 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
220 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
222 * config/rl78/constrains (Qs8): New constraint.
223 * config/rl78/rl78.c (rl78_flags_already_set): New function.
224 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
225 * config/rl78/rl78-real.md (update_Z): New attribute.
226 Update patterns to set it.
227 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
228 shorter compare and branch sequence can be used.
229 (cbranchhi4_real): Likewise.
230 (cbranchhi4_real_inverted): Likewise.
232 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
233 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
235 * config/rl78/rl78.c (rl78_get_name_encoding): New.
236 (rl78_option_override): Allow -mes0 only if C.
237 (characterize_address): Support subregs of symbol_refs.
238 (rl78_addr_space_address_mode): Move. Add __near.
239 (rl78_far_p): Likewise.
240 (rl78_addr_space_pointer_mode): Likewise.
241 (rl78_as_legitimate_address): Likewise.
242 (rl78_addr_space_subset_p): Likewise.
243 (rl78_addr_space_convert): Likewise.
244 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
246 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
248 (rl78_alloc_physical_registers_op1): Change logic to prefer
249 symbol[BC] addressing.
250 (frodata_section): New.
251 (rl78_asm_init_sections): Initialize it.
252 (rl78_select_section): Put __far readonly symbols in .frodata.
253 (rl78_make_type_far): New.
254 (rl78_insert_attributes): Force all readonly symbols to be __far when -mes0.
255 (rl78_asm_out_integer): New.
256 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
257 * config/rl78/rl78.opt (-mes0): New.
259 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
260 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
261 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
262 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
264 (rl78_output_aligned_common): New.
265 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
266 (rl78_handle_saddr_attribute): New.
267 (rl78_handle_naked_attribute): New.
268 (rl78_attribute_table): Add saddr.
269 (rl78_print_operand_1): Don't print '!' on saddr operands.
270 (rl78_print_operand_1): Strip encodings.
272 (rl78_strip_name_encoding): New.
273 (rl78_attrlist_to_encoding): New.
274 (rl78_encode_section_info): New.
275 (rl78_asm_init_sections): New.
276 (rl78_select_section): New.
277 (rl78_output_labelref): New.
278 (rl78_output_aligned_common): New.
279 (rl78_asm_out_integer): New.
280 (rl78_asm_ctor_dtor): New.
281 (rl78_asm_constructor): New.
282 (rl78_asm_destructor): New.
284 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
285 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
286 (transcode_memory_rtx): Update.
287 (rl78_expand_epilogue): Use A_REG instead of 0.
289 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
291 * config/arm/arm-protos.h (struct tune_params): New field
292 sched_autopref_queue_depth.
293 * config/arm/arm.c (sched-int.h): Include header.
294 (arm_first_cycle_multipass_dfa_lookahead_guard,)
295 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
296 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
297 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
298 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
299 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
300 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
301 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
302 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
303 * config/arm/t-arm (arm.o): Update.
304 * haifa-sched.c (update_insn_after_change): Update.
305 (rank_for_schedule): Use auto-prefetcher model, if requested.
306 (autopref_multipass_init): New static function.
307 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
308 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
309 variable for debug dumps.
310 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
311 (autopref_multipass_dfa_lookahead_guard): New global function that
312 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
313 (init_h_i_d): Update.
314 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
315 * sched-int.h (enum autopref_multipass_data_status): New const enum.
316 (autopref_multipass_data_): Structure for auto-prefetcher data.
317 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
318 (struct _haifa_insn_data:autopref_multipass_data): New field.
319 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
320 (autopref_multipass_dfa_lookahead_guard): Declare.
322 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
324 * rtlanal.c (get_base_term): Handle SCRATCH.
326 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
328 * config/aarch64/aarch64.c
329 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
330 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
332 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
333 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
335 2015-01-17 Alan Modra <amodra@gmail.com>
337 * cprop.c (do_local_cprop): Disallow replacement of fixed
340 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
343 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
346 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
348 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
349 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
351 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
353 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
354 * config/arm/thumb1.md: ... Here.
356 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
358 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
359 TImode for TARGET_32BIT.
361 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
363 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
364 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
366 (rs6000_abi_word_mode): New function.
368 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
370 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
371 instead of UNITS_PER_WORD to describe the size of stack slots.
373 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
375 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
376 as rs6000_promote_function_mode. Move comment to there.
377 (rs6000_promote_function_mode): New function.
379 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
381 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
382 -mpowerpc64 is active.
384 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
387 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
390 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
392 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
393 introduced in revision 219724.
395 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
396 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
399 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
400 destination is not a GP reg.
401 (*movdi_aarch64): Likewise.
403 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
406 * config/rs6000/default64.h: Revert ISA change.
408 2015-01-16 Richard Biener <rguenther@suse.de>
411 * tree-ssa-uninit.c: Include tree-cfg.h.
412 (MAX_SWITCH_CASES): New define.
413 (convert_control_dep_chain_into_preds): Handle switch statements.
414 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
415 (normalize_one_pred_1): Do not split bit-manipulations.
418 2015-01-16 Richard Biener <rguenther@suse.de>
420 PR tree-optimization/64568
421 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
422 complex load rewriting for TARGET_MEM_REFs.
424 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
426 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
428 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
431 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
433 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
434 (aarch64_lra_p): Remove.
436 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
439 * ipa-chkp.h (chkp_instrumentable_p): New.
440 * ipa-chkp.c: Include tree-inline.h.
441 (chkp_instrumentable_p): New.
442 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
443 Fix processing of not instrumentable functions.
444 (chkp_versioning): Use chkp_instrumentable_p. Warn about
445 not instrumentable functions.
446 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
447 chkp_instrumentable_p.
448 * tree-inline.h (copy_forbidden): New.
449 * tree-inline.c (copy_forbidden): Not static anymore.
451 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
453 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
456 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
458 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
459 type OP_OUT to OP_INOUT.
461 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
463 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
464 (high x) y) to y if x and y have the same base.
466 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
468 * config/arm/cortex-a57.md: New.
469 * config/aarch64/aarch64.md: Include it.
470 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
471 * config/aarch64/aarch64-tune.md: Regenerate.
473 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
476 * ccmp.c (expand_ccmp_next): New function.
477 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
478 and compare insn sequence.
479 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
480 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
481 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
482 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
483 (*ccmp_ior): Changed to ccmp_ior<mode>.
484 (cmp<mode>): New pattern.
485 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
487 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
489 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
491 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
492 _mm256_bsrli_epi128): New.
493 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
495 2015-01-15 Jiong Wang <jiong.wang@arm.com>
497 * expmed.c (store_bit_field_using_insv): Improve warning message.
498 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
500 2015-01-15 Jiong Wang <jiong.wang@arm.com>
502 PR rtl-optimization/64011
503 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
504 there is partial overflow.
506 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
508 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
510 (nds32_expand_epilogue_v3pop): Likewise.
511 * config/nds32/nds32.md (sibcall): Define this for sibling call
513 (sibcall_register): Likewise.
514 (sibcall_immediate): Likewise.
515 (sibcall_value): Likewise.
516 (sibcall_value_register): Likewise.
517 (sibcall_value_immediate): Likewise.
518 (sibcall_epilogue): Likewise.
519 (epilogue): Pass false to indicate this is not a sibcall epilogue.
520 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
521 (nds32_expand_epilogue_v3pop): Likewise.
523 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
525 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
526 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
527 (return_internal): New.
528 (return): Define this named pattern.
529 (simple_return): Define this named pattern.
530 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
531 pattern instead of unspec_volatile_func_return.
532 (nds32_expand_epilogue_v3pop): Likewise.
533 (nds32_can_use_return_insn): New function.
535 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
537 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
538 * config/nds32/nds32.md (pop25return): New.
539 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
542 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
544 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
545 -mforbid-fp-as-gp, and -mex9 options.
547 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
549 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
550 remove -mgp-direct option.
552 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
554 * doc/invoke.texi (--param early-inlining-insns): Update default value.
555 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
557 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
559 * ipa-inline.c (inline_small_functions): Work around hints
562 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
565 * doc/invoke.texi (Option Summary): Document new Nios II
567 (Nios II Options): Likewise.
568 * config/nios2/nios2.opt: Add -mgpopt= option support.
569 Modify existing -mgpopt and -mno-gpopt options to be aliases.
570 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
571 * config/nios2/nios2.c (nios2_option_override): Adjust
573 (nios2_in_small_data_p): Return true for explicit small data
574 sections even with -G0.
575 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
578 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
581 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
583 (inline_call): Fix removal of aliases.
585 2015-01-15 Jakub Jelinek <jakub@redhat.com>
587 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
588 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
589 * opts.c (common_handle_option): Add -fsanitize=vptr.
590 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
591 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
592 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
593 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
594 (ubsan_expand_vptr_ifn): New prototype.
595 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
596 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
597 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
598 expand_LOOP_VECTORIZED): Make argument nameless, remove
600 (expand_UBSAN_VPTR): New function.
601 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
603 (UBSAN_VPTR): New internal function.
604 * sanopt.c (tree_map_traits): Renamed to ...
605 (sanopt_tree_map_traits): ... this.
606 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
607 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
608 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
609 (maybe_optimize_ubsan_vptr_ifn): New function.
610 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
611 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
613 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
614 internal calls like pure functions for aliasing, even when they
615 have other side-effects that prevent making them ECF_PURE.
616 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
617 (ubsan_expand_vptr_ifn): New function.
619 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
621 PR rtl-optimization/64110
622 * stmt.c (parse_output_constraint): Process '^' and '$'.
623 (parse_input_constraint): Ditto.
624 * lra-constraints.c (process_alt_operands): Process the new
626 * ira-costs.c (record_reg_classes): Process the new constraint
628 * genoutput.c (indep_constraints): Add '^' and '$'.
629 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
630 * doc/md.texi: Add description of the new constraints.
632 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
633 Bernd Schmidt <bernds@codesourcery.com>
634 Cesar Philippidis <cesar@codesourcery.com>
635 James Norris <jnorris@codesourcery.com>
636 Tom de Vries <tom@codesourcery.com>
637 Ilmir Usmanov <i.usmanov@samsung.com>
638 Dmitry Bocharnikov <dmitry.b@samsung.com>
639 Evgeny Gavrin <e.gavrin@samsung.com>
640 Jakub Jelinek <jakub@redhat.com>
642 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
643 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
644 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
646 * builtins.c: Include "gomp-constants.h".
647 (expand_builtin_acc_on_device): New function.
648 (expand_builtin, is_inexpensive_builtin): Handle
649 BUILT_IN_ACC_ON_DEVICE.
650 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
652 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
654 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
655 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
656 i386/intelmic-offload.h.
657 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
658 to libgomp and its dependencies.
659 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
660 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
661 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
662 * config/ia64/hpux.h (LIB_SPEC): Likewise.
663 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
664 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
665 * doc/generic.texi: Update for OpenACC changes.
666 * doc/gimple.texi: Likewise.
667 * doc/invoke.texi: Likewise.
668 * doc/sourcebuild.texi: Likewise.
669 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
670 GF_OMP_FOR_KIND_OACC_LOOP.
671 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
672 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
673 GF_OMP_TARGET_KIND_OACC_UPDATE,
674 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
676 * gimple.c: Update comments for OpenACC changes.
677 * gimple.def: Likewise.
678 * gimple.h: Likewise.
679 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
680 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
681 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
682 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
683 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
685 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
686 * gimplify.c: Include "gomp-constants.h".
687 Update comments for OpenACC changes.
688 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
689 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
690 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
691 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
692 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
693 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
694 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
695 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
696 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
698 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
699 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
700 OMP_CLAUSE_SET_MAP_KIND.
701 (gimplify_oacc_cache): New function.
702 (gimplify_omp_for): Handle OACC_LOOP.
703 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
705 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
706 OACC_EXIT_DATA, OACC_UPDATE.
707 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
708 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
709 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
710 (gimplify_body): Consider flag_openacc next to flag_openmp.
711 * lto-streamer-out.c: Include "gomp-constants.h".
712 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
713 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
714 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
715 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
716 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
717 (BUILT_IN_ACC_ON_DEVICE): New builtins.
718 * omp-low.c: Include "gomp-constants.h".
719 Update comments for OpenACC changes.
720 (struct omp_context): Add reduction_map, gwv_below, gwv_this
722 (extract_omp_for_data, use_pointer_for_field, install_var_field)
723 (new_omp_context, delete_omp_context, scan_sharing_clauses)
724 (create_omp_child_function, scan_omp_for, scan_omp_target)
725 (check_omp_nesting_restrictions, lower_reduction_clauses)
726 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
727 Update for OpenACC changes.
728 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
729 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
730 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
731 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
732 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
733 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
735 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
736 Handle GF_OMP_FOR_KIND_OACC_LOOP.
737 (expand_omp_target, lower_omp_target): Handle
738 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
739 GF_OMP_TARGET_KIND_OACC_UPDATE,
740 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
741 GF_OMP_TARGET_KIND_OACC_DATA.
742 (pass_expand_omp::execute, execute_lower_omp)
743 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
745 (offload_symbol_decl): New variable.
746 (oacc_get_reduction_array_id, oacc_max_threads)
747 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
748 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
749 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
750 (oacc_gimple_assign, oacc_initialize_reduction_data)
751 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
753 (is_targetreg_ctx): Remove function.
754 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
755 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
756 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
757 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
758 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
759 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
760 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
761 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
762 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
763 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
764 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
765 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
766 * tree-core.h: Update comments for OpenACC changes.
767 (enum omp_clause_map_kind): Remove.
768 (struct tree_omp_clause): Change type of map_kind member from enum
769 omp_clause_map_kind to unsigned char.
770 * tree-inline.c: Update comments for OpenACC changes.
771 * tree-nested.c: Likewise. Include "gomp-constants.h".
772 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
773 (convert_tramp_reference_stmt, convert_gimple_call): Update for
774 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
775 OMP_CLAUSE_SET_MAP_KIND.
776 * tree-pretty-print.c: Include "gomp-constants.h".
777 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
778 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
779 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
780 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
781 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
782 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
783 instead of OMP_CLAUSE_MAP_*.
784 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
785 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
786 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
787 * tree-streamer-in.c: Include "gomp-constants.h".
788 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
789 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
790 * tree-streamer-out.c: Include "gomp-constants.h".
791 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
793 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
794 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
795 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
796 * tree.c (omp_clause_num_ops): Update accordingly.
797 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
799 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
800 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
801 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
802 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
803 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
804 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
805 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
806 (OMP_CLAUSE_SET_MAP_KIND): New macro.
807 * varpool.c (varpool_node::get_create): Consider flag_openacc next
809 * config/i386/intelmic-offload.h: New file.
810 * config/nvptx/offload.h: Likewise.
812 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
814 * explow.h: Remove duplicate contents.
815 * dojump.h: Likewise.
817 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
819 * arm.c (arm_xgene_tune): Add default initializer for instruction
822 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
826 * ipa.c (symbol_table::remove_unreachable_nodes):
827 Do not put abstract origins into boundary.
829 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
831 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
832 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
834 2015-01-15 Steve Ellcey <sellcey@mips.com>
836 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
837 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
838 builtins.def, and chkp-builtins.def.
840 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
842 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
845 2015-01-15 Richard Biener <rguenther@suse.de>
847 PR tree-optimization/61743
848 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
849 information on PHIs for some simple cases.
851 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
853 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
855 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
856 * config/arm/arm-cores.def (xgene1): New entry.
857 * config/arm/arm-tables.opt: Regenerate.
858 * config/arm/arm-tune.md: Regenerate.
859 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
861 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
863 * tree-if-conv.c: Include hash-map.h.
864 (aggressive_if_conv): New variable.
865 (fold_build_cond_expr): Add simplification of non-zero condition.
866 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
867 destination block is not always executed.
868 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
869 than two predecessors if AGGRESSIVE_IF_CONV is true.
870 (if_convertible_stmt_p): Fix commentary.
871 (all_preds_critical_p): New function.
872 (has_pred_critical_p): New function.
873 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
874 BB can have more than two predecessors and all incoming edges can be
876 (predicate_bbs): Skip predication for loop exit block, use build2_loc
877 to compute predicate for true edge.
878 (find_phi_replacement_condition): Delete this function.
879 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
880 Allow interchange PHI arguments if EXTENDED is false.
881 Change check that block containing reduction statement candidate
882 is predecessor of phi-block since phi may have more than two arguments.
883 (phi_args_hash_traits): New helper structure.
884 (struct phi_args_hash_traits): New type.
885 (phi_args_hash_traits::hash): New function.
886 (phi_args_hash_traits::equal_keys): New function.
887 (gen_phi_arg_condition): New function.
888 (predicate_scalar_phi): Add handling of phi nodes with more than two
889 arguments, delete COND and TRUE_BB arguments, insert body of
890 find_phi_replacement_condition to predicate ordinary phi nodes.
891 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
892 delete call of find_phi_replacement_condition and invoke
893 predicate_scalar_phi with two arguments.
894 (insert_gimplified_predicates): Add assert that non-predicated block
895 don't have statements to insert.
896 (ifcvt_split_critical_edges): New function.
897 (ifcvt_split_def_stmt): Likewise.
898 (ifcvt_walk_pattern_tree): Likewise.
899 (stmt_is_root_of_bool_pattern): Likewise.
900 (ifcvt_repair_bool_pattern): Likewise.
901 (ifcvt_local_dce): Likewise.
902 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
903 is copy of inner or outer loop force_vectorize field, invoke
904 ifcvt_split_critical_edges, ifcvt_local_dce and
905 ifcvt_repair_bool_pattern for aggressive if-conversion.
907 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
909 * config/aarch64/aarch64.md: Include xgene1.md.
910 * config/aarch64/xgene1.md: New file.
912 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
914 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
915 xgene1 (APM XGene-1) core definition.
916 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
917 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
918 * doc/invoke.texi: Document -mcpu=xgene1.
920 2015-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
922 * dojump.h: New header file.
923 * explow.h: Likewise.
924 * expr.h: Remove includes.
925 Move expmed.c prototypes to expmed.h.
926 Move dojump.c prototypes to dojump.h.
927 Move alias.c prototypes to alias.h.
928 Move explow.c prototypes to explow.h.
929 Move calls.c prototypes to calls.h.
930 Move emit-rtl.c prototypes to emit-rtl.h.
931 Move varasm.c prototypes to varasm.h.
932 Move stmt.c prototypes to stmt.h.
933 (saved_pending_stack_adjust): Move to dojump.h.
934 (adjust_address): Move to explow.h.
935 (adjust_address_nv): Move to emit-rtl.h.
936 (adjust_bitfield_address): Likewise.
937 (adjust_bitfield_address_size): Likewise.
938 (adjust_bitfield_address_nv): Likewise.
939 (adjust_automodify_address_nv): Likewise.
940 * explow.c (expr_size): Move to expr.c.
941 (int_expr_size): Likewise.
942 (tree_expr_size): Likewise.
943 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
944 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
945 * genemit.c (main): Generate includes statistics.h, real.h, fixed-value.h,
946 insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
947 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h, function.h,
948 statistics.h, real.h, fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
950 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
951 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
952 * genemit.c (open_base_files): Generate includes flags.h, statistics.h, real.h,
953 fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h,
955 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h, hash-set.h, vec.h,
956 machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h, flags.h, statistics.h,
957 double-int.h, real.h, fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h,
958 insn-config.h, expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
959 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
960 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
961 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
962 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
963 tm.h tree.h varasm.h vec.h wide-int.h.
964 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
965 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
966 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
967 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
968 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
969 explow.h expmed.h fixed-value.h flags.h inchash.h insn-config.h
970 real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
971 * loop-iv.c: Likewise.
972 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
973 explow.h expmed.h fixed-value.h flags.h inchash.h real.h
974 statistics.h stmt.h tree.h varasm.h wide-int.h.
975 * lra-constraints.c: Likewise.
976 * lra-eliminations.c: Likewise.
977 * lra-lives.c: Likewise.
978 * lra-remat.c: Likewise.
979 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
980 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
981 statistics.h stmt.h tree.h varasm.h wide-int.h.
982 * hw-doloop.c: Likewise.
983 * ira-color.c: Likewise.
984 * ira-emit.c: Likewise.
985 * loop-doloop.c: Likewise.
986 * loop-invariant.c: Likewise.
987 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
988 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
989 statistics.h stmt.h tree.h varasm.h wide-int.h.
990 * caller-save.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
991 explow.h expmed.h fixed-value.h inchash.h real.h statistics.h
992 stmt.h tree.h varasm.h wide-int.h.
993 * combine-stack-adj.c: Likewise.
997 * ira-costs.c: Likewise.
999 * lra-coalesce.c: Likewise.
1000 * lra-spills.c: Likewise.
1001 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1002 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
1003 stmt.h varasm.h wide-int.h.
1004 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1005 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
1007 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
1008 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
1009 statistics.h stmt.h varasm.h wide-int.h.
1010 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
1011 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
1012 varasm.h wide-int.h.
1013 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
1014 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1015 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
1016 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
1017 statistics.h stmt.h.
1018 * config/tilepro/tilepro.c: Likewise.
1019 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
1020 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
1021 * config/pdp11/pdp11.c: Likewise.
1022 * config/xtensa/xtensa.c: Likewise.
1023 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
1024 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
1026 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1027 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
1028 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
1029 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1030 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
1031 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
1032 * rtl-chkp.c: Likewise.
1033 * tree-chkp-opt.c: Likewise.
1034 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h explow.h
1035 expmed.h fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
1036 insn-config.h real.h statistics.h stmt.h varasm.h.
1037 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1038 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
1039 statistics.h stmt.h.
1040 * tree-vect-data-refs.c: Likewise.
1041 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
1042 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1043 rtl.h statistics.h stmt.h varasm.h.
1044 * internal-fn.c: Likewise.
1045 * ipa-icf-gimple.c: Likewise.
1046 * lto-section-out.c: Likewise.
1047 * tree-data-ref.c: Likewise.
1048 * tree-nested.c: Likewise.
1049 * tree-outof-ssa.c: Likewise.
1050 * tree-predcom.c: Likewise.
1051 * tree-pretty-print.c: Likewise.
1052 * tree-scalar-evolution.c: Likewise.
1053 * tree-ssa-strlen.c: Likewise.
1054 * tree-vect-loop.c: Likewise.
1055 * tree-vect-patterns.c: Likewise.
1056 * tree-vect-slp.c: Likewise.
1057 * tree-vect-stmts.c: Likewise.
1059 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1060 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
1062 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
1063 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1064 statistics.h stmt.h varasm.h.
1065 * loop-unroll.c: Likewise.
1066 * ubsan.c: Likewise.
1067 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
1068 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
1070 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1071 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
1072 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
1073 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
1074 statistics.h stmt.h.
1075 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
1076 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
1077 statistics.h stmt.h varasm.h.
1078 * gimple-match-head.c: Likewise.
1079 * lto-cgraph.c: Likewise.
1080 * lto-section-in.c: Likewise.
1081 * lto-streamer-in.c: Likewise.
1082 * lto-streamer-out.c: Likewise.
1083 * tree-affine.c: Likewise.
1084 * tree-cfg.c: Likewise.
1085 * tree-cfgcleanup.c: Likewise.
1086 * tree-if-conv.c: Likewise.
1087 * tree-into-ssa.c: Likewise.
1088 * tree-ssa-alias.c: Likewise.
1089 * tree-ssa-copyrename.c: Likewise.
1090 * tree-ssa-dse.c: Likewise.
1091 * tree-ssa-forwprop.c: Likewise.
1092 * tree-ssa-live.c: Likewise.
1093 * tree-ssa-math-opts.c: Likewise.
1094 * tree-ssa-pre.c: Likewise.
1095 * tree-ssa-sccvn.c: Likewise.
1096 * tree-tailcall.c: Likewise.
1097 * tree-vect-generic.c: Likewise.
1098 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1099 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
1100 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1101 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
1102 * varasm.c: Likewise.
1103 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1104 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
1106 * init-regs.c: Likewise.
1108 * omp-low.c: Likewise.
1109 * stack-ptr-mod.c: Likewise.
1110 * tree-ssa-reassoc.c: Likewise.
1111 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1112 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
1114 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1115 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
1116 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1117 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
1118 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1119 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
1120 * tree-ssa-phiopt.c: Likewise.
1121 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1122 fixed-value.h hashtab.h real.h statistics.h stmt.h.
1123 * config/fr30/fr30.c: Likewise.
1124 * config/frv/frv.c: Likewise.
1126 * final.c: Likewise.
1127 * optabs.c: Likewise.
1128 * passes.c: Likewise.
1129 * simplify-rtx.c: Likewise.
1131 * toplev.c: Likewise.
1132 * var-tracking.c: Likewise.
1133 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1134 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1135 * lower-subreg.c: Likewise.
1136 * postreload-gcse.c: Likewise.
1138 * reginfo.c: Likewise.
1139 * store-motion.c: Likewise.
1140 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1141 fixed-value.h hashtab.h real.h stmt.h varasm.h.
1142 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1143 fixed-value.h hashtab.h statistics.h stmt.h.
1144 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1145 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
1146 * except.c: Likewise.
1147 * explow.c: Likewise.
1148 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1149 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
1151 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1152 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
1153 * tree-ssa-structalias.c: Likewise.
1154 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1155 fixed-value.h insn-config.h real.h statistics.h.
1156 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1157 fixed-value.h insn-config.h real.h statistics.h stmt.h.
1158 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1159 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
1160 * cfgbuild.c: Likewise.
1161 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1162 fixed-value.h real.h rtl.h statistics.h stmt.h.
1163 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1164 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1165 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1166 fixed-value.h real.h statistics.h stmt.h.
1167 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1168 fixed-value.h real.h statistics.h stmt.h varasm.h.
1169 * cprop.c: Likewise.
1170 * modulo-sched.c: Likewise.
1171 * postreload.c: Likewise.
1172 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
1173 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
1174 statistics.h stmt.h varasm.h.
1175 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
1176 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1177 rtl.h statistics.h stmt.h varasm.h.
1178 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
1179 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
1181 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
1182 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
1184 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
1185 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
1187 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
1188 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1189 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1190 function.h real.h statistics.h stmt.h varasm.h.
1191 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1192 insn-config.h real.h statistics.h stmt.h.
1193 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1194 statistics.h stmt.h.
1195 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
1196 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
1197 statistics.h stmt.h varasm.h.
1198 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1199 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
1200 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1201 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
1202 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
1203 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
1204 statistics.h stmt.h varasm.h.
1205 * ipa-polymorphic-call.c: Likewise.
1206 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h expmed.h
1207 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
1209 * config/c6x/c6x.c: Likewise.
1210 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h explow.h
1211 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1212 statistics.h stmt.h varasm.h.
1213 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1214 hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h varasm.h.
1215 * ipa-split.c: Likewise.
1216 * tree-eh.c: Likewise.
1217 * tree-ssa-dce.c: Likewise.
1218 * tree-ssa-loop-niter.c: Likewise.
1219 * tree-vrp.c: Likewise.
1220 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
1221 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
1223 * config/nds32/nds32-fp-as-gp.c: Likewise.
1224 * config/nds32/nds32-intrinsic.c: Likewise.
1225 * config/nds32/nds32-isr.c: Likewise.
1226 * config/nds32/nds32-md-auxiliary.c: Likewise.
1227 * config/nds32/nds32-memory-manipulation.c: Likewise.
1228 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1229 * config/nds32/nds32-predicates.c: Likewise.
1230 * config/nds32/nds32.c: Likewise.
1231 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
1232 fixed-value.h hashtab.h real.h statistics.h.
1233 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
1234 fixed-value.h hashtab.h real.h statistics.h stmt.h.
1235 * config/arm/arm.c: Likewise.
1236 * config/avr/avr.c: Likewise.
1237 * config/bfin/bfin.c: Likewise.
1238 * config/h8300/h8300.c: Likewise.
1239 * config/i386/i386.c: Likewise.
1240 * config/ia64/ia64.c: Likewise.
1241 * config/iq2000/iq2000.c: Likewise.
1242 * config/m32c/m32c.c: Likewise.
1243 * config/m32r/m32r.c: Likewise.
1244 * config/m68k/m68k.c: Likewise.
1245 * config/mcore/mcore.c: Likewise.
1246 * config/mep/mep.c: Likewise.
1247 * config/mips/mips.c: Likewise.
1248 * config/mn10300/mn10300.c: Likewise.
1249 * config/moxie/moxie.c: Likewise.
1250 * config/pa/pa.c: Likewise.
1251 * config/rl78/rl78.c: Likewise.
1252 * config/rx/rx.c: Likewise.
1253 * config/s390/s390.c: Likewise.
1254 * config/sh/sh.c: Likewise.
1255 * config/sparc/sparc.c: Likewise.
1256 * config/spu/spu.c: Likewise.
1257 * config/stormy16/stormy16.c: Likewise.
1258 * config/v850/v850.c: Likewise.
1259 * config/vax/vax.c: Likewise.
1260 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
1261 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1262 * config/msp430/msp430.c: Likewise.
1263 * predict.c: Likewise.
1264 * value-prof.c: Likewise.
1265 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
1266 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
1267 * config/microblaze/microblaze.c: Likewise.
1268 * config/nios2/nios2.c: Likewise.
1269 * config/rs6000/rs6000.c: Likewise.
1270 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1271 insn-config.h real.h rtl.h statistics.h stmt.h.
1272 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1273 insn-config.h real.h statistics.h stmt.h.
1274 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
1275 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
1276 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
1277 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1278 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1279 real.h statistics.h stmt.h.
1280 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
1281 fixed-value.h statistics.h stmt.h.
1282 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
1285 2015-01-15 Jakub Jelinek <jakub@redhat.com>
1287 * gengtype.c (create_user_defined_type): Workaround
1288 -Wmaybe-uninitialized false positives.
1289 * cse.c (fold_rtx): Likewise.
1290 * loop-invariant.c (gain_for_invariant): Likewise.
1292 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
1294 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
1295 set the memory attributes in all cases but clear MEM_EXPR if need be.
1297 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
1299 PR tree-optimization/64434
1300 * cfgexpand.c (reorder_operands): New function.
1301 (expand_gimple_basic_block): Insert call of reorder_operands if
1304 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
1306 * config/mips/micromips.md (*swp): Remove explicit parallel.
1307 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
1308 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
1309 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
1310 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
1311 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
1312 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
1313 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
1314 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
1315 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
1316 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
1317 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
1318 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
1319 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
1320 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
1321 (mips_wrdsp): Likewise.
1322 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
1324 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
1325 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
1326 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
1327 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
1328 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
1329 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
1330 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
1331 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
1332 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
1334 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
1336 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
1337 (mips_print_operand): Support 'y' to print exact log2 in decimal
1339 * config/mips/mips.h (ISA_HAS_LSA): New define.
1340 (ISA_HAS_DLSA): Likewise.
1341 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
1342 * config/mips/predicates.md (const_immlsa_operand): New predicate.
1344 2015-01-15 Martin Liska <mliska@suse.cz>
1347 * optc-save-gen.awk: Add support for array types.
1349 2015-01-15 Richard Biener <rguenther@suse.de>
1352 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
1353 for MEM_REF access functions with the same base can never partially
1356 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1358 * common.opt: New option -fstack-protector-explicit.
1359 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
1360 (stack_protect_decl_phase): Handle stack_protect attribute for
1361 explicit stack protection requests.
1362 (expand_used_vars): Similarly.
1363 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
1364 * doc/extend.texi: Add documentation for "stack_protect" attribute.
1365 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
1367 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
1370 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
1372 (sh_extending_set_of_reg): New struct.
1373 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
1374 sh_remove_reg_dead_or_unused_notes): New Declarations.
1375 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
1376 sh_find_extending_set_of_reg, sh_split_tst_subregs,
1377 sh_extending_set_of_reg::use_as_extended_reg): New functions.
1378 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
1379 convert to insn_and_split and use new function sh_split_tst_subregs.
1381 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
1383 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
1385 (Optimization Options): Move -fuse-ld documentation to...
1386 (Link Options): ...here.
1388 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
1390 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
1392 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
1393 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
1394 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
1395 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
1396 instead of ZR for the memory operand of LL/SC.
1397 (compare_and_swap_12, sync_add<mode>): Likewise.
1398 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
1399 (sync_new_<optab>_12, sync_nand_12): Likewise.
1400 (sync_old_nand_12, sync_new_nand_12): Likewise.
1401 (sync_sub<mode>, sync_old_add<mode>): Likewise.
1402 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
1403 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
1404 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
1405 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
1406 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
1407 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
1408 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
1409 * doc/md.texi (ZC): Update description.
1411 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
1413 * builtins.c (expand_builtin_atomic_exchange): Remove error when
1414 memory model is CONSUME.
1415 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
1416 expand_builtin_atomic_store): Change invalid memory model errors to
1418 (expand_builtin_atomic_clear): Change invalid model errors to warnings
1419 and issue warning for CONSUME.
1421 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
1423 * lto-cgraph: Update function comments for
1424 lto_symtab_encoder_encode_*.
1426 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
1428 * Makefile.in (site.exp): Do not set ENABLE_LTO.
1430 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
1432 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
1433 * lto-cgraph.c (select_what_to_stream): Remove argument, use
1434 lto_stream_offload_p instead.
1435 * lto-streamer.h (select_what_to_stream): Remove argument.
1436 * passes.c (ipa_write_summaries): Likewise.
1437 * tree-pass.h (ipa_write_summaries): Likewise.
1439 2015-01-14 Richard Biener <rguenther@suse.de>
1441 PR tree-optimization/59354
1442 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
1443 groups larger than the slp group size as having gaps.
1445 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
1448 * builtins.c (get_memmodel): Promote consume to acquire always.
1450 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
1453 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
1456 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
1459 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
1461 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
1462 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
1463 AVX512VBMI, as it implies AVX512BW.
1465 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
1468 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
1469 (vec_unpacks_hi_v16sf): Ditto.
1471 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1473 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
1476 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1478 * doc/invoke.texi (mapcs): Mention deprecation.
1479 (mapcs-frame): Likewise.
1481 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1484 * config/arm/arm.c (callee_saved_reg_p): Define.
1485 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
1486 register is callee saved instead of !call_used_regs[reg].
1487 (thumb1_compute_save_reg_mask): Likewise.
1489 2015-01-14 Hale Wang <hale.wang@arm.com>
1491 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
1494 2015-01-14 Richard Biener <rguenther@suse.de>
1497 * tree-inline.c (insert_debug_decl_map): Check destination
1498 function MAY_HAVE_DEBUG_STMTS.
1499 (insert_init_debug_bind): Likewise.
1500 (insert_init_stmt): Remove redundant check.
1501 (remap_gimple_stmt): Drop debug stmts if the destination
1502 function has var-tracking assignments disabled.
1504 2015-01-14 Martin Liska <mliska@suse.cz>
1506 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
1507 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
1509 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1512 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
1513 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
1515 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
1517 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
1518 level from an ARCH; do not inject the default.
1519 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
1520 MIPS_ISA_LEVEL_SPEC.
1521 (MIPS_ISA_NAN2008_SPEC): Update comment.
1522 (BASE_DRIVER_SELF_SPECS): Likewise.
1523 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
1524 MIPS_DEFAULT_ISA_LEVEL_SPEC.
1525 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
1526 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
1527 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
1529 2015-01-14 Richard Biener <rguenther@suse.de>
1531 PR tree-optimization/64493
1532 PR tree-optimization/64495
1533 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
1534 assign the proper vectorized PHI to the inner loop exit PHIs.
1536 2015-01-14 Joey Ye <joey.ye@arm.com>
1538 * config/arm/arm.c (arm_compute_save_reg_mask):
1539 Do not save lr in case of tail call.
1540 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
1542 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
1544 * tree-vrp.c (check_array_ref): Emit more warnings
1545 for warn_array_bounds >= 2.
1546 * common.opt: New option -Warray-bounds=.
1547 * doc/invoke.texi: Document -Warray-bounds=.
1549 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
1551 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
1552 (mforbid-fp-as-gp): Remove.
1554 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
1555 (nds32_symbol_load_store_p): Remove.
1556 (nds32_fp_as_gp_check_available): Clean up implementation.
1557 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
1559 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
1560 fp-as-gp and ex9 cases.
1562 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
1564 * tree-profile.c (init_ic_make_global_vars): Drop workaround
1565 for bintuils bug 14342.
1566 (init_ic_make_global_vars): Likewise.
1567 (gimple_init_edge_profiler): Likewise.
1568 (gimple_gen_ic_func_profiler): Likewise.
1570 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1572 * ipa-inline.c (inline_small_functions): Swap the operands in
1575 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
1578 * ipa-inline-analysis.c (node_growth_cache): Remove.
1579 (initialize_growth_caches): Do not initialize it.
1580 (free_growth_caches): Do not free it.
1581 (do_estimate_growth): Rename to ...
1582 (estimate_growth): ... this one; drop growth cache code.
1583 (growth_likely_positive): Always go the heuristics way.
1584 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
1585 (reset_edge_caches): Do not reset node growth.
1586 (heap_edge_removal_hook): Do not maintain cache.
1587 (inline_small_functions): Likewise; strenghten sanity check.
1588 (ipa_inline): Do not maintain caches.
1589 * ipa-inline.h (node_growth_cache): Remove.
1590 (do_estimate_growth): Remove to ...
1591 (estimate_growth): this one; remove inline version.
1592 (reset_node_growth_cache): Remove.
1594 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
1597 * ipa-inline.c (inline_small_functions): Update callee keys after
1598 resolving speculation
1599 (inline_small_functions): Always check monotonicity of the queue.
1601 2015-01-13 Marek Polacek <polacek@redhat.com>
1604 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
1606 2015-01-13 Jakub Jelinek <jakub@redhat.com>
1608 PR rtl-optimization/64286
1609 * ree.c (combine_reaching_defs): Move part of comment earlier,
1610 remove !SCALAR_INT_MODE_P check.
1611 (add_removable_extension): Don't add vector mode
1612 extensions if all uses of the source register aren't the same
1615 2015-01-13 Renlin Li <renlin.li@arm.com>
1617 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
1618 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
1620 2015-01-13 Martin Liska <mliska@suse.cz>
1622 * ipa-icf.c (sem_function::equals_private): Call new functions
1623 cl_target_option_print_diff and cl_optimization_print_diff.
1624 * optc-save-gen.awk (cl_target_option_print_diff): New function.
1625 (cl_optimization_print_diff): Likewise.
1626 * opth-gen.awk: Likewise.
1628 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
1630 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
1631 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
1632 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
1633 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
1634 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
1635 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
1637 2015-01-13 Andrew Pinski <apinski@cavium.com>
1639 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
1640 instead of src mode.
1642 2015-01-13 Richard Biener <rguenther@suse.de>
1645 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
1648 2015-01-13 Andrew Pinski <apinski@cavium.com>
1650 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
1652 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
1654 2015-01-13 Jakub Jelinek <jakub@redhat.com>
1657 * cfgexpand.c (expand_computed_goto): Don't call
1658 convert_memory_address here.
1660 2015-01-13 Richard Biener <rguenther@suse.de>
1662 PR tree-optimization/64406
1663 * tree-loop-distibution.c (pass_loop_distribution::execute):
1664 Reset the SCEV hashtable if we distributed anything.
1666 2015-01-13 Richard Biener <rguenther@suse.de>
1668 PR tree-optimization/64404
1669 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
1670 SLP types for CSEd loads.
1672 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1674 PR tree-optimization/64436
1675 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
1676 merge of two symbolic numbers for a bitwise OR to ...
1677 (perform_symbolic_merge): This. Also fix computation of the range and
1678 end of the symbolic number corresponding to the result of a bitwise OR.
1680 2015-01-13 Richard Biener <rguenther@suse.de>
1682 PR tree-optimization/64568
1683 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
1684 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
1686 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1688 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
1689 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
1691 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1693 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
1694 target-specific symbol_ref flag.
1695 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
1696 resides in rodata section.
1697 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
1698 (nds32_encode_section_info): New function.
1700 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1702 * config/nds32/nds32.md (call): Use pseudo instruction bal which
1703 clobbers TA_REGNUM if large code model is specified.
1704 (call_register): Likewise.
1705 (call_immediate): Likewise.
1706 (call_value): Likewise.
1707 (call_value_register): Likewise.
1708 (call_value_immediate): Likewise.
1710 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1712 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
1713 (TARGET_CMODEL_MEDIUM): New macro.
1714 (TARGET_CMODEL_LARGE): New macro.
1715 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
1716 code model setting in assembly code.
1718 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1720 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
1721 Remove MASK_GP_DIRECT flag.
1722 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
1723 one of the multilib default options.
1724 * config/nds32/nds32.opt (mgp-direct): Remove.
1725 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
1726 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
1728 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1730 * config/nds32/nds32.opt (mcmodel): Add new option.
1731 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
1732 to describe code model.
1734 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
1737 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
1739 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
1741 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
1742 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
1743 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
1744 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
1745 __builtin_sh_set_fpscr.
1747 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
1749 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
1750 after a funtion name just to indicate it is a function.
1751 ([-fsanitize-undefined-trap-on-error]): Likewise.
1752 ([-fdbg-cnt=]): Likewise.
1753 ([-mmemcpy]): Likewise.
1754 ([-mflush-func]): Likewise.
1755 ([-msynci]): Likewise.
1757 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
1759 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
1762 2015-01-12 Jakub Jelinek <jakub@redhat.com>
1764 PR tree-optimization/64563
1765 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
1766 instead of != VR_VARYING.
1769 * config/i386/i386.c (ix86_expand_prologue): Add
1770 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
1772 PR tree-optimization/64454
1773 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
1774 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
1775 for signed or [0, op1 - 1] for unsigned modulo.
1776 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
1777 even if op1 does not satisfy integer_pow2p.
1780 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
1782 2015-01-12 Jeff Law <law@redhat.com>
1785 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
1786 (trunchiqi2, truncsihi2): Similarly.
1788 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
1789 rather than calling F.
1791 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
1793 * tsan.c (instrument_expr): Use force_gimple_operand.
1794 Use may_be_nonaddressable_p instead of is_gimple_addressable.
1796 2015-01-12 Richard Biener <rguenther@suse.de>
1798 PR tree-optimization/64530
1799 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
1802 2015-01-12 Richard Biener <rguenther@suse.de>
1805 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
1808 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1810 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
1811 Cortex-A17 tuning parameters.
1812 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
1814 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1816 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
1817 * config/arm/arm.c (arm_macro_fusion_p): New function.
1818 (arm_macro_fusion_pair_p): Likewise.
1819 (TARGET_SCHED_MACRO_FUSION_P): Define.
1820 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
1821 (ARM_FUSE_NOTHING): Likewise.
1822 (ARM_FUSE_MOVW_MOVT): Likewise.
1823 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
1824 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
1825 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
1826 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
1827 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
1828 arm_cortex_a5_tune): Specify fuseable_ops value.
1830 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
1833 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
1834 test for PIE with copy reloc.
1835 * configure: Regenerated.
1837 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1839 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
1841 (arm_tls_descseq_addr): Likewise.
1842 (arm_gen_movmemqi): Likewise.
1843 (arm_expand_epilogue_apcs_frame): Likewise.
1844 (arm_expand_epilogue): Likewise.
1845 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
1848 2015-01-12 Martin Liska <mliska@suse.cz>
1851 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
1852 volatility for correct operands.
1854 2015-01-12 Martin Liska <mliska@suse.cz>
1856 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
1857 that a function is not leaf.
1858 (sem_function::compare_polymorphic_p): Likewise.
1860 2015-01-12 Martin Liska <mliska@suse.cz>
1862 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
1863 that a function is not leaf.
1864 (sem_function::compare_polymorphic_p): Likewise.
1866 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1868 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
1869 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
1870 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
1871 fold-const.h, tree-check.h.
1873 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
1877 * ipa-inline.c (compute_uninlined_call_time,
1878 compute_inlined_call_time): Use counts for extra precision when
1880 (big_speedup_p): Fix formating.
1881 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
1882 (relative_time_benefit): Remove.
1883 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
1884 merge guessed and read profile paths.
1885 (inline_small_functions): Count only !optimize_size functions into
1886 initial size; be more lax about sanity check when profile is used;
1887 be sure to update inlined function profile when profile is read.
1889 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
1892 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
1893 cost when edge becomes direct.
1894 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
1895 is resolved or when introducing new speculation.
1897 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
1901 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
1902 '||' to fix typo issue.
1904 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
1905 accept and return NULL.
1907 2015-01-12 Martin Liska <mliska@suse.cz>
1909 * cgraph.c (cgraph_edge::remove_callee): Move function to header
1910 file for being inlined.
1911 (cgraph_set_edge_callee): Delete.
1912 (cgraph_edge::redirect_callee): Move function to header file
1914 (cgraph_edge::make_direct): Use new function.
1915 (cgraph_edge::dump_edge_flags): New function created from
1916 static dump_edge_flags function.
1917 (cgraph_node::dump): Use new function.
1918 (cgraph_edge::verify_count_and_frequency): New function created
1919 from verify_edge_count_and_frequency.
1920 (cgraph_edge::verify_corresponds_to_fndecl): New function created
1921 from verify_edge_corresponds_to_fndecl.
1922 (verify_edge_corresponds_to_fndecl): Delete.
1923 (cgraph_node::verify_node): Use new function.
1924 * cgraph.h (cgraph_edge::set_callee): New function.
1925 (cgraph_edge::dump_edge_flags): Likewise.
1926 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
1928 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
1930 * ipa-utils.c (estimate_function_body_sizes): Do not
1931 free node params when called late with early=true.
1933 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
1935 * doc/md.texi (Instruction Patterns): Rewrite text for
1937 (Example): Likewise.
1939 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
1941 * doc/invoke.texi (Option Summary): Break long lines.
1942 [(-fdiagnostics-color)]: Put long literal in @smallexample
1944 [(-fsanitize-recover)]: Likewise.
1945 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
1946 [(-ffast-math)]: Likewise.
1947 [(--param max-inline-insns-recursive)]: Likewise.
1948 [(--param max-inline-recursive-depth)]: Likewise.
1949 [(-mno-text-section-literals)]: Likewise.
1951 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
1953 * doc/install.texi: Update for libgomp being renamed from "GNU
1954 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
1956 * doc/sourcebuild.texi: Likewise.
1958 2015-01-10 Anthony Green <green@moxielogic.com>
1960 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
1961 mul.x availability for moxiebox configuration.
1963 2015-01-09 Anthony Green <green@moxielogic.com>
1965 * config/moxie/moxie.md: Tabify assembly output.
1967 2015-01-09 Anthony Green <green@moxielogic.com>
1969 * config/moxie/moxie.md (CC_REG): Correct register definition.
1971 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
1973 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
1974 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
1977 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
1979 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
1981 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
1982 Jakub Jelinek <jakub@redhat.com>
1985 * lto-streamer.h (lto_stream_offload_p): New declaration.
1986 * lto-streamer.c (lto_stream_offload_p): New variable.
1987 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
1988 at the same time as section_name_prefix.
1989 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
1990 if lto_stream_offload_p.
1991 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
1992 stream TREE_TARGET_OPTION if lto_stream_offload_p.
1993 (write_ts_function_decl_tree_pointers): Don't
1994 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
1995 * tree-streamer-in.c (unpack_value_fields): Don't stream
1996 TREE_TARGET_OPTION in if ACCEL_COMPILER.
1997 (lto_input_ts_function_decl_tree_pointers): Don't stream
1998 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
1999 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
2000 instead of section_name_prefix string comparisons.
2002 2015-01-09 Jakub Jelinek <jakub@redhat.com>
2004 PR rtl-optimization/64536
2005 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
2008 2015-01-09 Michael Collison <michael.collison@linaro.org>
2010 PR tree-optimization/64322
2011 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
2012 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
2014 2015-01-09 Tom de Vries <tom@codesourcery.com>
2016 PR rtl-optimization/64539
2017 * regcprop.c (kill_clobbered_values): Factor out of ...
2018 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
2019 instead of note_stores with kill_clobbered_value.
2021 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2023 * ginclude/unwind-arm-common.h: Revert previous commit.
2025 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2027 * config.gcc (arm*-*-freebsd*): New configuration.
2028 * config/arm/freebsd.h: New file.
2029 * config.host: Add extra components for arm*-*-freebsd*.
2030 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
2031 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
2033 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2035 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
2037 * config/rs6000/t-rtems: Add e6500 multilibs.
2039 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2041 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
2044 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2046 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
2047 MULTILIB_EXCEPTIONS.
2049 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2051 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
2052 MULTILIB_EXCEPTIONS.
2054 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2056 * config/arm/t-rtems-eabi: Rename to...
2057 * config/arm/t-rtems: ...this.
2058 * config/arm/rtems-eabi.h: Rename to...
2059 * config/arm/rtems.h: ...this.
2060 * config.gcc (arm*-*-rtems*): Reflect changes above.
2062 2015-01-09 Richard Biener <rguenther@suse.de>
2064 PR tree-optimization/64410
2065 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
2067 (execute_update_addresses_taken): Deal with that.
2068 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
2069 loads/stores for complex variables.
2071 2015-01-09 Martin Liska <mliska@suse.cz>
2073 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
2075 (func_checker::compare_memory_operand): New function.
2076 (func_checker::compare_operand): Split case to newly
2078 (func_checker::compare_cst_or_decl): New function.
2079 (func_checker::compare_gimple_call): Identify
2081 (func_checker::compare_gimple_assign): Likewise.
2082 * ipa-icf-gimple.h: New function.
2084 2015-01-09 Martin Liska <mliska@suse.cz>
2087 * sreal.c (sreal::dump): Change unsigned format to signed for
2089 (sreal::to_double): Replace exp2 with scalbln.
2091 2015-01-09 Martin Liska <mliska@suse.cz>
2093 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
2094 * ipa-icf.c (sem_function::equals_private): Add support for target and
2095 (sem_item_optimizer::merge_classes): Remove redundant function
2096 optimization flags comparison.
2097 * tree.h (target_opts_for_fn): New function.
2099 2015-01-09 Tom de Vries <tom@codesourcery.com>
2101 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
2103 2015-01-09 Kito Cheng <kito@0xlab.org>
2105 PR rtl-optimization/64348
2106 * lra-constraints.c (split_reg): Fix caller-save store/restore
2107 instruction generation.
2109 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
2111 PR gcov-profile/61790
2112 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
2113 long long. Fallback to int64_t if host doesn't have long long and
2114 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
2116 2015-01-08 Jakub Jelinek <jakub@redhat.com>
2118 PR tree-optimization/63989
2119 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
2121 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
2122 (get_stridx): If we don't have a record for certain SSA_NAME,
2123 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
2124 constant offset, call get_stridx_plus_constant.
2125 (get_stridx_plus_constant): New function.
2126 (zero_length_string): Don't use get_stridx here.
2130 * dse.c (struct insn_info): Mention frame_read set also
2131 before reload for tail calls on some targets.
2132 (scan_insn): Revert 2014-12-22 change. Set frame_read
2133 also before reload for tail calls if
2134 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
2135 instead of add_non_frame_wild_read for non-const/memset
2136 tail calls after reload.
2138 2015-01-08 Jason Merrill <jason@redhat.com>
2140 * ubsan.c (do_ubsan_in_current_function): New.
2141 (pass_ubsan::gate): Use it.
2142 * ubsan.h: Declare it.
2143 * convert.c (convert_to_integer): Use it.
2145 2015-01-08 Jakub Jelinek <jakub@redhat.com>
2148 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
2149 compare_code when it is unconditionally overwritten afterwards.
2150 Use ix86_reverse_condition instead of reverse_condition. Don't
2151 change code if *reverse_condition* returned UNKNOWN and don't
2152 swap ct/cf and negate diff in that case.
2154 2015-01-08 Mike Stump <mikestump@comcast.net>
2156 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
2157 (pass_tsan_O0::gate): Likewise.
2158 * extend.texi (Function Attributes): Add no_sanitize_thread
2161 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
2163 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
2164 for registering builtins.
2165 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
2166 add -fopenmp to the argv_obstack used when invoking
2169 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
2170 add "-m32" or "-m64" to argv_obstack.
2171 (generate_host_descr_file): Likewise, when invoking host_compiler.
2172 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
2175 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
2177 * config/sh/sh-mem.cc: Use constant as second operand when emitting
2180 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
2183 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
2184 constant load if constant operand fits into I08.
2186 2015-01-08 Jakub Jelinek <jakub@redhat.com>
2189 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
2190 and TREE_THIS_VOLATILE for MEM_REFs.
2191 (build5_stat): Fix up initialization of TREE_READONLY and
2192 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
2194 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
2197 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
2198 of r for the second alternative of the destination operand.
2200 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
2203 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
2205 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
2207 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
2209 ([-fivar-visibility], [-fvisibility]): Likewise.
2211 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
2213 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
2214 the file where @code, @command, etc is more appropriate.
2216 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
2218 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
2219 of -mrecip= documentation.
2221 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2224 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
2225 correct reload handler if -m32 -mpowerpc64 is used.
2227 2015-01-06 Tom de Vries <tom@codesourcery.com>
2229 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
2231 2015-01-08 Christian Bruel <christian.bruel@st.com>
2234 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
2236 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
2238 PR tree-optimization/63259
2239 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
2240 if optab exists for 16bit byteswap.
2242 2015-01-06 Jakub Jelinek <jakub@redhat.com>
2244 * opts.c (common_handle_option): Add support for
2245 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
2246 * doc/invoke.texi: Document -fno-sanitize=all,
2247 -f{,no-}sanitize-recover=all. Document that
2248 -fsanitize=float-cast-overflow is not enabled
2249 by -fsanitize=undefined. Fix up documentation
2250 of -f{,no-}sanitize-recover.
2252 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
2254 * config.gcc: Add Visium support.
2255 * configure.ac: Likewise.
2256 * configure: Regenerate.
2257 * doc/extend.texi (interrupt attribute): Add Visium.
2258 * doc/invoke.texi: Document Visium options.
2259 * doc/install.texi: Document Visium target.
2260 * doc/md.texi: Document Visium constraints.
2261 * common/config/visium: New directory.
2262 * config/visium: Likewise.
2264 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
2266 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
2267 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
2269 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
2271 * combine.c (combine_validate_cost): Do not count the cost of a
2272 split I2 twice. Do not display it twice in the dump, either.
2274 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
2276 Revert parts of r219199.
2277 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
2279 ([-Wtraditional]): Restore markup on <limits.h>.
2281 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2284 * doc/invoke.texi: Document -Wsuggest-override.
2286 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
2288 PR rtl-optimization/64287
2289 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
2290 (process_options): Disable flag_ipa_ra if profiling.
2292 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
2294 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
2296 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
2298 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
2299 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
2300 put under #if TARGET_LOOPS guard.
2302 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
2304 * config/i386/i386.c (output_387_binary_op): Use std::swap.
2306 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
2308 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
2309 * rtl.h (refers_to_regno_p): Add overload.
2311 * bt-load.c: Likewise.
2312 * combine.c: Likewise.
2313 * df-scan.c: Likewise.
2314 * sched-deps.c: Likewise.
2315 * config/s390/s390.c: Likewise.
2316 * config/m32r/m32r.c: Likewise.
2317 * config/rs6000/spe.md: Likewise.
2318 * config/rs6000/rs6000.c: Likewise.
2319 * config/pa/pa.c: Likewise.
2320 * config/stormy16/stormy16.c: Likewise.
2321 * config/cris/cris.c: Likewise.
2322 * config/arc/arc.md: Likewise.
2323 * config/arc/arc.c: Likewise.
2324 * config/sh/sh.md: Likewise.
2325 * config/sh/sh.c: Likewise.
2326 * config/frv/frv.c: Likewise.
2328 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2331 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
2332 call as cleanup of the whole body.
2333 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
2334 * tsan.c (replace_func_exit): New function.
2335 (instrument_func_exit): Moved earlier.
2336 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
2337 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
2339 (tsan_pass): Don't call instrument_func_exit.
2340 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
2341 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
2345 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
2346 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
2347 it to libubsan handler instead of EXPR. Fold comparisons earlier,
2348 if the result is integer_zerop, return NULL_TREE.
2349 * convert.c (convert_to_integer): Pass expr as ARG.
2351 PR tree-optimization/64465
2352 * tree-inline.c (redirect_all_calls): During inlining
2353 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
2354 changed the stmt to a non-throwing call.
2356 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
2358 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
2359 etc markup throughout the file.
2361 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
2363 Enable experimental TSAN support for Ada.
2364 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
2366 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2368 PR tree-optimization/64494
2369 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
2370 clear SSA_NAME_ANTI_RANGE_P flag.
2372 2015-01-05 Marek Polacek <polacek@redhat.com>
2374 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
2376 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2378 Update copyright years.
2380 * gcc.c (process_command): Update copyright notice dates.
2381 * gcov-dump.c: Ditto.
2383 * doc/cpp.texi: Bump @copying's copyright year.
2384 * doc/cppinternals.texi: Ditto.
2385 * doc/gcc.texi: Ditto.
2386 * doc/gccint.texi: Ditto.
2387 * doc/gcov.texi: Ditto.
2388 * doc/install.texi: Ditto.
2389 * doc/invoke.texi: Ditto.
2391 * auto-profile.c, auto-profile.h: Fix up Copyright line.
2393 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
2395 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
2397 ([-fvtable-verify], [-fvtv-debug]): Likewise.
2398 ([-Wabi]): Likewise.
2399 ([-fmessage-length]): Likewise.
2400 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
2401 ([-Wno-discarded-qualifiers]): Likewise.
2402 ([-Wnodiscarded-array-qualifiers]): Likewise.
2403 ([-Wno-virtual-move-assign]): Likewise.
2404 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
2405 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
2406 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
2407 ([-fsanitize-undefined-trap-on-error]): Likewise.
2408 ([-floop-interchange]): Likewise.
2409 ([-ftree-coalesce-inlined-vars]): Likewise.
2410 ([-fvect-cost-model]): Likewise.
2411 ([-flto]): Likewise.
2412 ([--param]): Likewise.
2413 (Spec Files): Likewise.
2414 ([-mstrict-align]): Likewise.
2415 ([-mfix-cortex-a53-835769]): Likewise.
2416 ([-march], [-mtune]): Likewise.
2417 ([-mpic-register]): Likewise.
2418 ([-munaligned-access]): Likewise.
2419 ([-msp8]): Likewise.
2420 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
2421 (AVR Built-in Macros): Likewise.
2422 ([-mpreferred-stack-boundary]): Likewise.
2423 ([-mtune-crtl]): Likewise.
2424 ([-mashf]): Likewise.
2425 ([-mmcu=]): Likewise.
2426 ([-minrt]): Likewise.
2427 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
2428 ([-mupper-regs]): Likewise.
2429 ([-matomic-model]): Likewise.
2430 ([-mdiv]): Likewise.
2431 ([-mzdcbranch]): Likewise.
2432 ([-mdisable-callt]): Likewise.
2433 ([-msoft-float]): Likewise.
2434 ([-m8byte-align]): Likewise.
2435 ([-fstack-reuse]): Likewise.
2437 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
2439 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
2440 Fix markup, light copy-editing.
2441 ([-fauto-profile]): Rewrite to fix formatting and content
2444 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
2446 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
2447 Copy-edit description.
2448 ([-fisolate-erroneous-paths-attribute]): Likewise.
2449 * common.opt (fisolate-erroneous-paths-dereference):
2450 Copy-edit description.
2451 (fisolate-erroneous-paths-attribute): Likewise.
2453 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
2455 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
2458 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
2460 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
2461 ([-fvtv-debug]): Likewise.
2462 ([-Wc++-compat]): Likewise.
2463 ([-Wc++11-compat]): Likewise.
2464 ([-Wc++14-compat]): Likewise.
2465 ([-Wno-sized-deallocation]): Likewise.
2466 ([-femit-class-debug-always]): Likewise.
2467 ([-femit-struct-debug-detailed]): Likewise.
2468 ([-fno-keep-inline-dllexport]): Likewise.
2469 ([-fira-algorithm]): Likewise.
2470 ([-fira-region]): Likewise.
2471 ([-flra-remat]): Likewise.
2472 ([-fipa-ra]): Likewise.
2473 ([-fhoist-adjacent-loads]): Likewise.
2474 ([-fisolate-erroneous-paths-dereference]): Likewise.
2475 ([-fisolate-erroneous-paths-attribute]): Likewise.
2476 ([-ftree-switch-conversion]): Likewise.
2477 ([-ftree-tail-merge]): Likewise.
2478 ([-ftree-loop-if-convert]): Likewise.
2479 ([-ftree-loop-if-convert-stores]): Likewise.
2480 ([-ftree-loop-distribution]): Likewise.
2481 ([-ftree-loop-distribute-patterns]): Likewise.
2482 ([-flto-compression-level]): Likewise.
2483 ([-flto-report]): Likewise.
2484 ([-flto-report-wpa]): Likewise.
2485 ([-fuse-linker-plugin]): Likewise.
2486 ([-mfix-cortex-a53-835769]): Likewise.
2487 ([-mno-fix-cortex-a53-835769]): Likewise.
2488 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
2489 explicit listing; add a note to the discussion indicating they
2490 exist. Reorder table to group similar options. Add missing
2491 @opindex entries. Add @need commands throughout the table to
2492 allow it to be split across multiple pages.
2493 ([-m8bit-idiv]): Fix @opindex.
2494 ([-mavx256-split-unaligned-load]): Likewise.
2495 ([-mavx256-split-unaligned-store]): Likewise.
2496 ([-mstack-protector-guard]): Likewise.
2497 ([-mcpu=]): Likewise.
2498 ([-mcpu]): Likewise.
2499 ([-mpointer-size=]): Likewise.
2501 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
2503 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
2504 instead of `m' constraint. Likewise for unnamed movb comparison
2505 patterns using reg_before_reload_operand predicate.
2506 * config/pa/predicates.md (reg_before_reload_operand): Tighten
2507 predicate to reject register index and LO_SUM DLT memory forms
2510 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
2512 * doc/invoke.texi (Option Summary): Fix spelling of
2513 -fdevirtualize-at-ltrans.
2514 ([-fdevirtualize]): Fix markup.
2515 ([-fdevirtualize-speculatively]): Fix typo.
2516 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
2518 * common.opt (fdevirtualize-at-ltrans): Likewise.
2519 * ipa-devirt.c: Fix typos in comments throughout the file.
2520 (ipa_devirt): Fix typos in format strings for dump output.
2522 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
2524 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
2525 discussion of defaults, light copy-editing.
2527 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2529 * tsan.c (instrument_expr): corrected previous checkin.
2531 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2533 Instrument bit field and unaligned accesses for TSAN.
2534 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
2535 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
2536 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
2537 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
2538 unaligned memory regions.
2540 2015-01-01 Anthony Green <green@moxielogic.com>
2542 * config/moxie/predicates.md (moxie_general_movsrc_operand):
2543 Restrict move source register offsets to 16 bits.
2545 Copyright (C) 2015 Free Software Foundation, Inc.
2547 Copying and distribution of this file, with or without modification,
2548 are permitted in any medium without royalty provided the copyright
2549 notice and this notice are preserved.