1 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
4 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
6 2015-01-26 Terry Guo <terry.guo@arm.com>
8 * config/arm/arm.c (arm_file_start): Update the assignment of
11 2014-01-25 James Greenhalgh <james.greenhalgh@arm.com>
13 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
15 config/arm/arm.md: Include the new Cortex-A57 model.
16 (generic_sched): Don't use generic_sched when tuning for
19 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
20 Uros Bizjak <ubizjak@gmail.com>
22 * config/i386/i386.c (get_builtin_code_for_version): Add
23 support for BMI and BMI2 multiversion functions.
25 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
28 (extract_bit_field): Likewise.
29 (extract_low_bits): Likewise.
30 (expand_mult): Likewise.
31 (expand_mult_highpart_adjust): Likewise.
33 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
35 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
36 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
37 * config/i386/i386.c (processor_model): Add
38 M_INTEL_COREI7_BROADWELL.
39 (arch_names_table): Add "broadwell".
41 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
50 * config/sh/sh-protos.h
51 (sh_extending_set_of_reg::can_use_as_unextended_reg,
52 sh_extending_set_of_reg::use_as_unextended_reg,
53 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
54 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
55 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
56 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
57 (sh_treg_insns): New class.
58 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
59 (scope_counter): New class.
60 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
61 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
62 sh_extending_set_of_reg::can_use_as_unextended_reg,
63 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
64 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
65 sh_split_treg_set_expr): New functions.
66 (addsubcosts): Handle treg_set_expr.
67 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
68 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
69 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
70 (sh_insn_operands_modified_between_p): Make non-static.
71 * config/sh/predicates.md (zero_extend_movu_operand): Allow
72 simple_mem_operand in addition to displacement_mem_operand.
73 (zero_extend_operand): Don't allow zero_extend_movu_operand.
74 (treg_set_expr, treg_set_expr_not_const01,
75 arith_reg_or_treg_set_expr): New predicates.
76 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
77 arith_or_int_operand instead of logical_operand. Convert to
78 insn_and_split. Try to optimize constant operand in splitter.
79 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
80 (*tstqi_t_zero): Delete.
81 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
82 (tstsi_t_and_not): Delete.
83 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
84 Convert to insn_and_split.
85 (unnamed split, tstsi_t_zero_extract_xor,
86 tstsi_t_zero_extract_subreg_xor_little,
87 tstsi_t_zero_extract_subreg_xor_big): Delete.
88 (*tstsi_t_shift_mask): New insn_and_split.
89 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
90 to recombine with surrounding insns when splitting.
91 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
92 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
93 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
94 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
95 (*cbranch_div0s: Delete.
96 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
97 Try to recombine with surrounding insns when splitting. Add operand
99 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
100 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
101 *addc_r_r_msb, *addc_2r_msb): Delete.
102 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
104 (*addc_negreg_t): New insn_and_split.
105 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
106 Try to recombine with surrounding insns when splitting.
107 Add operand order variants.
108 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
109 insn_and_split patterns.
110 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
111 surrounding insns when splitting.
112 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
113 (*rotcl): Likewise. Add zero_extract variant.
114 (*ashrsi2_31): New insn_and_split.
115 (*negc): Convert to insn_and_split. Use treg_set_expr.
116 (*zero_extend<mode>si2_disp_mem): Update comment.
117 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
119 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
120 with surrounding insns when splitting.
121 (any_treg_expr_to_reg): New insn_and_split.
122 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
123 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
124 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
125 *zero_extract_2): New single bit zero extract patterns.
126 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
127 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
128 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
129 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
131 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
132 register_operand for set source.
134 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
136 * i386.opt (prefetch_sse): New targetsave.
137 * i386.c (ix86_function_specific_save): Save prefetch_sse.
138 (ix86_function_specific_restore): Restore prefetch_sse and initialize
139 ix86_cost/ix86_tune_cost.
141 2015-01-23 David Malcolm <dmalcolm@redhat.com>
143 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
144 Support the JIT by using 0 as the language type.
146 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
149 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
150 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
151 (mark_regno_live, process_bb_lives): Pass new parameter value to
152 make_hard_regno_born.
154 2015-01-23 Jakub Jelinek <jakub@redhat.com>
156 PR rtl-optimization/63637
157 PR rtl-optimization/60663
158 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
159 if elt->cost is MAX_COST for ASM_OPERANDS.
160 (find_sets_in_insn): Fix up comment typo.
161 (cse_insn): Don't set src_volatile for all non-volatile
162 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
163 or with "memory" clobber. Set elt->cost to MAX_COST
164 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
165 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
167 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
169 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
172 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
174 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
175 libgcc/config/i386/elf-lib.h.
177 2015-01-23 Jakub Jelinek <jakub@redhat.com>
180 * gcc.c (print_configuration): Don't print a blank line at the end
182 (run_attempt): ... but here unstead.
185 * omp-low.c (scan_sharing_clauses): Don't ignore
186 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
187 on target data/update constructs.
189 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
192 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
193 (DEBUG_RELOAD): Removed define.
194 (m32c_limit_reload_class): Enable traces with if DEBUG0.
195 (m32c_function_arg): Added a type cast.
196 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
197 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
198 * config/m32c/bitops.md (andqi3_16): Likewise.
199 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
200 (push_a01_l): Likewise.
202 2015-01-23 David Malcolm <dmalcolm@redhat.com>
205 * main.c (main): Construct toplev instances with init_signals=true.
206 * toplev.c (general_init): Add param "init_signals", and use it to
207 conditionalize the calls to signal and host_hooks.extra_signals.
208 (toplev::toplev): Add param "init_signals".
209 (toplev::main): When invoking general_init, pass m_init_signals
210 to control whether signal-handlers are installed.
211 * toplev.h (toplev::toplev): Add param "init_signals".
212 (toplev::m_init_signals): New field.
214 2015-01-23 David Malcolm <dmalcolm@redhat.com>
217 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
218 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
219 latter may be affected by the former (e.g. on i686).
221 2015-01-23 Martin Liska <mliska@suse.cz>
223 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
224 false positive during profiledbootstrap.
226 2015-01-23 Tom de Vries <tom@codesourcery.com>
229 * lto-opts.c (lto_write_options): Output non-explicit conservative
231 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
232 (append_compiler_options): Pass -fopenacc through.
234 2015-01-23 Tom de Vries <tom@codesourcery.com>
237 * lto-opts.c (lto_write_options): Output non-explicit conservative
239 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
240 (append_compiler_options): Pass -fopenmp through.
242 2015-01-23 Jakub Jelinek <jakub@redhat.com>
245 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
248 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
249 * diagnostic.def (DK_ICE_NOBT): New kind.
250 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
251 like DK_ICE, but never print backtrace.
252 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
253 (internal_error_no_backtrace): New function.
254 * gcc.c (execute): Use internal_error_no_backtrace instead of
257 2015-01-22 Jeff Law <law@redhat.com>
260 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
261 improve code density for small immediate to memory case.
262 (insv): Better handle bitfield assignments when the field is
263 being set to all ones.
264 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
267 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
268 Jakub Jelinek <jakub@redhat.com>
270 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
271 for !TARGET_LIBC_PROVIDES_SSP version and
272 -fstack-protector-{all,strong,explicit} otherwise.
273 * config/freebsd.h (LINK_SSP_SPEC): Handle
274 -fstack-protector-{strong,explicit}.
276 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
277 H.J. Lu <hongjiu.lu@intel.com>
280 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
283 2015-01-22 Wei Mi <wmi@google.com>
285 PR rtl-optimization/64557
286 * dse.c (record_store): Call get_addr for mem_addr.
287 (check_mem_read_rtx): Likewise.
289 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
291 * fold-const.c (const_binop): Add early return for non-tcc_binary.
293 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
295 * toplev.c (init_local_tick): Process the failure when read
296 fails for random_seed.
298 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
299 'pretty_name' to avoid memory overflow.
301 2015-01-22 Richard Biener <rguenther@suse.de>
304 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
305 abnormal coalescing on undefined SSA names.
307 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
311 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
313 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
315 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
318 * fold-const.c (fold_checksum_tree): Don't include value of
319 expr->decl_with_vis.symtab_node in the checksum.
321 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
323 * config/s390/s390.md (atomic code attribute): Fix typo "ior" ->
326 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
329 * gcc.c (insert_comments): New function.
330 (try_generate_repro): Call it.
331 (append_text): Removed.
333 2015-01-22 Richard Biener <rguenther@suse.de>
335 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
336 with IL incompatible options. Properly honor user optimize
339 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
341 PR rtl-optimization/64682
342 * combine.c (distribute_notes): When moving a death note for
343 a register that is set in the new I2, make sure to put it
346 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
348 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
351 2015-01-21 Jakub Jelinek <jakub@redhat.com>
354 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
355 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
356 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
359 * doc/invoke.texi (-fsanitize=vptr): Document.
361 PR rtl-optimization/62078
362 * dse.c: Include cfgcleanup.h.
363 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
364 anything call purge_all_dead_edges and cleanup_cfg at the end
367 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
369 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
372 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
374 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
377 2015-01-21 David Sherwood <david.sherwood@arm.com>
378 Tejas Belagod <Tejas.Belagod@arm.com>
380 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
381 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
382 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
385 2015-01-21 David Sherwood <david.sherwood@arm.com>
386 Tejas Belagod <Tejas.Belagod@arm.com>
388 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
389 (aarch64_reverse_mask): New decls.
390 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
391 (insn_count): New mode_attr.
392 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
393 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
394 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
395 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
396 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
397 (aarch64_simd_st4): New patterns.
398 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
399 (aarch64_reverse_mask): New functions.
401 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
403 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
405 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
406 addressing modes for BE.
407 (aarch64_print_operand): Add 'R' specifier.
408 (aarch64_simd_disambiguate_copy): Delete.
409 (aarch64_simd_emit_reg_reg_move): New function.
410 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
411 in define_splits for structural moves.
412 (mov<mode>): Use less restrictive predicates.
413 (*aarch64_mov<mode>): Simplify and only allow for LE.
414 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
416 2015-01-21 Alan Hayward <alan.hayward@arm.com>
418 * rtlanal.c (subreg_get_info): Exit early for simple and common
421 2015-01-21 Richard Henderson <rth@redhat.com>
424 * ccmp.c (used_in_cond_stmt_p): Remove.
425 (expand_ccmp_expr): Don't use it.
427 2015-01-21 Nick Clifton <nickc@redhat.com>
429 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
432 2015-01-21 Richard Biener <rguenther@suse.de>
435 * tree-core.h (builtin_info, builtin_info_type): Turn from
436 an object with two arrays into an array of an object with
437 decl and two flags, implicit_p and declared_p.
438 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
439 set_builtin_decl, set_builtin_decl_implicit_p,
440 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
441 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
442 * builtins.c (builtin_info): Adjust.
443 * gimplify.c (gimplify_addr_expr): References to builtins
444 that have been declared by the user makes them eligible for
445 use by the compiler. Call set_builtin_decl_implicit_p on them.
447 2015-01-20 Jeff Law <law@redhat.com>
450 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
451 allow pc-relative addresses in operand predicates or constraints.
453 2015-01-21 Bin Cheng <bin.cheng@arm.com>
455 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
456 neon on aarch32 processors for stringops.
458 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
461 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
463 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
466 * ipa-inline.c: Include lto-streamer.h
467 (report_inline_failed_reason): Output source file differences and
468 flags on optimization/target node mismatch.
469 (can_inline_edge_p): Consider caller to be the outer inline function;
470 be less restrictive about matching opimize and optimize_size attributes.
471 (inline_account_function_p): Break out from ...
472 (inline_small_functions): ... here.
473 * ipa-inline-transform.c (clone_inlined_nodes): Use
474 inline_account_function_p.
475 (inline_call): Use optimize attribution; use inline_account_function_p.
476 (inline_transform): Use opt_for_fn.
477 * ipa-inline.h (inline_account_function_p): Declare.
479 2015-01-20 Jakub Jelinek <jakub@redhat.com>
482 * dwarf2out.c (decl_piece_node): Don't put bitsize into
483 mode if bitsize <= 0.
484 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
485 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
488 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
490 * config/nios2/nios2.c (nios2_asm_file_end): Implement
491 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
493 (TARGET_ASM_FILE_END): Define.
495 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
497 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
498 (struct tune_params): Use the enum.
499 * arm.c (arm_*_tune): Update.
500 (arm_option_override): Update.
502 2015-01-20 Richard Biener <rguenther@suse.de>
505 * ipa-reference.c (add_static_var): Inline ...
506 (analyze_function): ... here after splitting out from ...
507 (is_proper_for_analysis): ... this.
509 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
512 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
513 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
514 replace the conditional with it's true branch.
515 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
518 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
520 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
522 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
524 * config/tilegx/mul-tables.c: Move symtab.h include after coretypes.h include.
525 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h, vec.h,
526 machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h, flags.h, statistics.h,
527 double-int.h, real.h, fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h,
528 insn-config.h, expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
530 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
534 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
536 PR rtl-optimization/64081
537 * loop-iv.c (def_pred_latch_p): New function.
538 (latch_dominating_def): Allow specific cases with non-single
540 (iv_get_reaching_def): Likewise.
541 (check_complex_exit_p): New function.
542 (check_simple_exit): Use check_complex_exit_p to allow certain cases
543 with exits not executing on any iteration.
545 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
548 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
551 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
554 * i386.c (gate): Check flag_expensive_optimizations and
556 (ix86_option_override_internal): Drop optimize_size condition
557 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
558 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
560 (ix86_avx256_split_vector_move_misalign,
561 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
562 * sse.md (all uses of TARGET_PREFER_AVX128): Add
563 optimize_insn_for_speed_p check.
565 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
567 * config/mips/mips.h (FP_ASM_SPEC): New define.
568 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
571 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
574 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
575 nullptr for insn when reaching the first insn.
576 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
577 (sh_insn_operands_modified_between_p): Add nullptr check.
578 (sh_find_extending_set_of_reg): Fix log message. Don't accept
579 sign extending mem load if the insn contains any UNSPEC or
582 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
584 * params.def (inline-unit-growth): Drop to 15%.
585 * invoke.texi (inline-unit-growth): Document change.
587 2015-01-19 Martin Liska <mliska@suse.cz>
590 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
591 function for second argument of OBJ_TYPE_REF.
593 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
596 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
597 whether function is an alias.
599 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
601 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
604 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
606 PR rtl-optimization/64671
607 * lra-remat.c (operand_to_remat): Don't consider jump and call
610 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
612 * config/rs6000/default64.h: Include rs6000-cpus.def.
613 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
614 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
615 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
617 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
619 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
620 pseudo-op to specify assembler dialect.
622 2015-01-19 Martin Liska <mliska@suse.cz>
625 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
626 Handle safe potentially removed nodes during filtering.
628 2015-01-19 Martin Liska <mliska@suse.cz>
630 * doc/extend.texi (no_icf): Add new attribute description.
631 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
632 where the pass attempts to merge a function with no_icf attribute.
634 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
637 * doc/md.texi (ARM Options): Document register constraints.
639 2015-01-19 Jiong Wang <jiong.wang@arm.com>
640 Andrew Pinski <apinski@cavium.com>
643 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
644 (ashl<mode>3): Don't expand if operands[2] is not constant.
646 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
649 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
650 Match xor-and-xor RTL pattern.
652 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
654 PR rtl-optimization/64081
655 * loop-iv.c (def_pred_latch_p): New function.
656 (latch_dominating_def): Allow specific cases with non-single
658 (iv_get_reaching_def): Likewise.
659 (check_complex_exit_p): New function.
660 (check_simple_exit): Use check_complex_exit_p to allow certain cases
661 with exits not executing on any iteration.
663 2015-01-19 Jakub Jelinek <jakub@redhat.com>
665 * common.opt (fgraphite): Fix a typo.
667 2015-01-19 Felix Yang <felix.yang@huawei.com>
669 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
671 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
672 uminp, smax_nanp, smin_nanp): New builtins.
673 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
674 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
675 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
676 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
677 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
678 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
679 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
680 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
681 vpminnms_f32): Rewrite using builtin functions.
683 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
686 * omp-low.c (offload_symbol_decl): Remove variable.
687 (get_offload_symbol_decl): Remove function.
688 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
689 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
690 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
691 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
692 BUILT_IN_GOACC_UPDATE don't pass it at all.
694 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
696 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
699 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
701 * ipa-chkp.c (chkp_produce_thunks): Add early param
702 to split thunks production into two passes. Keep
703 'always_inline' function bodies after the first pass.
704 (pass_data_ipa_chkp_early_produce_thunks): New.
705 (pass_ipa_chkp_early_produce_thunks): New.
706 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
707 chkp_produce_thunks signature.
708 (make_pass_ipa_chkp_early_produce_thunks): New.
709 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
710 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
711 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
713 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
715 * cgraph.c (cgraph_node::dump): Dump profile flags.
717 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
720 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
721 reg appear first in the parallel.
723 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
725 * ipa-reference.c (set_reference_optimization_summary,
726 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
728 (ignore_module_statics): New static var.
729 (propagate_bits): If ipa-reference is disabled, do not look into local
731 (analyze_function): Disable analysis when ipa_reference is disabled.
732 (generate_summary): Do not dump when reference is disabled;
733 collect vars accessed from functions with ipa-reference disabled.
734 (get_read_write_all_from_node): When ipa-reference is disabled, use the
736 (gate): Enable for LTO.
737 (ignore_edge_p): New function.
738 (propagate): Skip functions w/o ipa-reference analysis.
739 * optc-save-gen.awk: Handle optimize_debug correctly.
740 * opth-gen.awk: Likewise.
741 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
742 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
743 fira-share-save-slots, fira-share-spill-slots,
744 fmodulo-sched-allow-regmoves, fpartial-inlining,
745 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
746 ftracer, ftree-parallelize-loops, fassociative-math,
747 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
749 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
750 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
752 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
755 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
758 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
760 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
762 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
764 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
765 Remove duplicate option listings.
767 2015-01-18 Felix Yang <felix.yang@huawei.com>
769 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
770 (autofdo_source_profile::get_callsite_total_count,
771 function_instance::get_function_instance_by_decl,
772 string_table::get_index, string_table::get_index_by_decl,
773 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
774 Fix comment typos. Reformatting and minor code rearrangement.
776 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
778 * config/rs6000/rs6000.md (probe_stack): Delete.
779 (probe_stack_address): New.
781 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
783 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
784 to test for 32-bit ABIs, not !TARGET_POWERPC64.
786 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
788 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
789 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
790 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
792 (rs6000_libcall_value): Use the new function.
794 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
796 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
798 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
800 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
801 implement a more precise life analysis for it during backward scan.
803 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
805 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
807 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
809 PR rtl-optimization/52773
810 * calls.c (emit_library_call_value): When pushing arguments use
811 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
812 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
813 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
815 2015-01-17 Jeff Law <law@redhat.com>
817 PR rtl-optimization/32790
818 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
819 not ZERO_EXTEND in SET_DESTs.
821 2015-01-17 Alan Modra <amodra@gmail.com>
823 * cprop.c (do_local_cprop): Revert last change.
825 2015-01-16 DJ Delorie <dj@redhat.com>
826 Nick Clifton <nickc@redhat.com>
828 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
829 (addhi3_real): Likewise. Fix [HL+0] syntax.
830 (subqi3_real): Likewise.
831 (subhi3_real): Likewise.
832 (cbranchqi4_real): Likewise. Allow saddr,#imm.
833 (cbranchhi4_real): Likewise.
834 (cbranchhi4_real_inverted): Likewise.
835 (cbranchsi4_real_lt): Likewise.
836 (cbranchsi4_real_ge): Likewise.
837 (cbranchsi4_real_ge): Likewise.
838 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
839 (sub<mode>3_virt): Likewise.
840 (cbranchqi4_virt): Likewise.
841 (cbranchhi4_virt): Likewise.
842 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
843 always use '[reg+imm]' even when imm is zero.
844 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
845 (rl78_general_operand): New.
846 (rl78_nonimmediate_operand): New.
847 (rl78_nonfar_operand): Use them.
848 (rl78_nonfar_nonimm_operand): Likewise.
849 (rl78_stack_based_mem): Fix.
850 * config/rl78/constraints.md (Ibqi): New.
855 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
858 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
860 * config/rl78/constrains (Qs8): New constraint.
861 * config/rl78/rl78.c (rl78_flags_already_set): New function.
862 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
863 * config/rl78/rl78-real.md (update_Z): New attribute.
864 Update patterns to set it.
865 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
866 shorter compare and branch sequence can be used.
867 (cbranchhi4_real): Likewise.
868 (cbranchhi4_real_inverted): Likewise.
870 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
871 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
873 * config/rl78/rl78.c (rl78_get_name_encoding): New.
874 (rl78_option_override): Allow -mes0 only if C.
875 (characterize_address): Support subregs of symbol_refs.
876 (rl78_addr_space_address_mode): Move. Add __near.
877 (rl78_far_p): Likewise.
878 (rl78_addr_space_pointer_mode): Likewise.
879 (rl78_as_legitimate_address): Likewise.
880 (rl78_addr_space_subset_p): Likewise.
881 (rl78_addr_space_convert): Likewise.
882 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
884 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
886 (rl78_alloc_physical_registers_op1): Change logic to prefer
887 symbol[BC] addressing.
888 (frodata_section): New.
889 (rl78_asm_init_sections): Initialize it.
890 (rl78_select_section): Put __far readonly symbols in .frodata.
891 (rl78_make_type_far): New.
892 (rl78_insert_attributes): Force all readonly symbols to be __far when -mes0.
893 (rl78_asm_out_integer): New.
894 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
895 * config/rl78/rl78.opt (-mes0): New.
897 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
898 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
899 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
900 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
902 (rl78_output_aligned_common): New.
903 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
904 (rl78_handle_saddr_attribute): New.
905 (rl78_handle_naked_attribute): New.
906 (rl78_attribute_table): Add saddr.
907 (rl78_print_operand_1): Don't print '!' on saddr operands.
908 (rl78_print_operand_1): Strip encodings.
910 (rl78_strip_name_encoding): New.
911 (rl78_attrlist_to_encoding): New.
912 (rl78_encode_section_info): New.
913 (rl78_asm_init_sections): New.
914 (rl78_select_section): New.
915 (rl78_output_labelref): New.
916 (rl78_output_aligned_common): New.
917 (rl78_asm_out_integer): New.
918 (rl78_asm_ctor_dtor): New.
919 (rl78_asm_constructor): New.
920 (rl78_asm_destructor): New.
922 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
923 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
924 (transcode_memory_rtx): Update.
925 (rl78_expand_epilogue): Use A_REG instead of 0.
927 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
929 * config/arm/arm-protos.h (struct tune_params): New field
930 sched_autopref_queue_depth.
931 * config/arm/arm.c (sched-int.h): Include header.
932 (arm_first_cycle_multipass_dfa_lookahead_guard,)
933 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
934 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
935 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
936 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
937 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
938 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
939 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
940 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
941 * config/arm/t-arm (arm.o): Update.
942 * haifa-sched.c (update_insn_after_change): Update.
943 (rank_for_schedule): Use auto-prefetcher model, if requested.
944 (autopref_multipass_init): New static function.
945 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
946 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
947 variable for debug dumps.
948 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
949 (autopref_multipass_dfa_lookahead_guard): New global function that
950 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
951 (init_h_i_d): Update.
952 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
953 * sched-int.h (enum autopref_multipass_data_status): New const enum.
954 (autopref_multipass_data_): Structure for auto-prefetcher data.
955 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
956 (struct _haifa_insn_data:autopref_multipass_data): New field.
957 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
958 (autopref_multipass_dfa_lookahead_guard): Declare.
960 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
962 * rtlanal.c (get_base_term): Handle SCRATCH.
964 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
966 * config/aarch64/aarch64.c
967 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
968 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
970 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
971 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
973 2015-01-17 Alan Modra <amodra@gmail.com>
975 * cprop.c (do_local_cprop): Disallow replacement of fixed
978 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
981 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
984 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
986 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
987 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
989 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
991 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
992 * config/arm/thumb1.md: ... Here.
994 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
996 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
997 TImode for TARGET_32BIT.
999 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1001 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
1002 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
1004 (rs6000_abi_word_mode): New function.
1006 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1008 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
1009 instead of UNITS_PER_WORD to describe the size of stack slots.
1011 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1013 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
1014 as rs6000_promote_function_mode. Move comment to there.
1015 (rs6000_promote_function_mode): New function.
1017 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1019 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
1020 -mpowerpc64 is active.
1022 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
1025 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
1028 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
1030 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
1031 introduced in revision 219724.
1033 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1034 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1037 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
1038 destination is not a GP reg.
1039 (*movdi_aarch64): Likewise.
1041 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
1044 * config/rs6000/default64.h: Revert ISA change.
1046 2015-01-16 Richard Biener <rguenther@suse.de>
1049 * tree-ssa-uninit.c: Include tree-cfg.h.
1050 (MAX_SWITCH_CASES): New define.
1051 (convert_control_dep_chain_into_preds): Handle switch statements.
1052 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
1053 (normalize_one_pred_1): Do not split bit-manipulations.
1056 2015-01-16 Richard Biener <rguenther@suse.de>
1058 PR tree-optimization/64568
1059 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
1060 complex load rewriting for TARGET_MEM_REFs.
1062 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
1064 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
1066 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
1069 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
1071 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
1072 (aarch64_lra_p): Remove.
1074 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
1077 * ipa-chkp.h (chkp_instrumentable_p): New.
1078 * ipa-chkp.c: Include tree-inline.h.
1079 (chkp_instrumentable_p): New.
1080 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
1081 Fix processing of not instrumentable functions.
1082 (chkp_versioning): Use chkp_instrumentable_p. Warn about
1083 not instrumentable functions.
1084 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
1085 chkp_instrumentable_p.
1086 * tree-inline.h (copy_forbidden): New.
1087 * tree-inline.c (copy_forbidden): Not static anymore.
1089 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1091 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
1094 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
1096 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
1097 type OP_OUT to OP_INOUT.
1099 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
1101 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
1102 (high x) y) to y if x and y have the same base.
1104 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
1106 * config/arm/cortex-a57.md: New.
1107 * config/aarch64/aarch64.md: Include it.
1108 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
1109 * config/aarch64/aarch64-tune.md: Regenerate.
1111 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
1114 * ccmp.c (expand_ccmp_next): New function.
1115 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
1116 and compare insn sequence.
1117 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
1118 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
1119 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
1120 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
1121 (*ccmp_ior): Changed to ccmp_ior<mode>.
1122 (cmp<mode>): New pattern.
1123 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
1125 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
1127 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
1129 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
1130 _mm256_bsrli_epi128): New.
1131 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
1133 2015-01-15 Jiong Wang <jiong.wang@arm.com>
1135 * expmed.c (store_bit_field_using_insv): Improve warning message.
1136 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
1138 2015-01-15 Jiong Wang <jiong.wang@arm.com>
1140 PR rtl-optimization/64011
1141 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
1142 there is partial overflow.
1144 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1146 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
1148 (nds32_expand_epilogue_v3pop): Likewise.
1149 * config/nds32/nds32.md (sibcall): Define this for sibling call
1151 (sibcall_register): Likewise.
1152 (sibcall_immediate): Likewise.
1153 (sibcall_value): Likewise.
1154 (sibcall_value_register): Likewise.
1155 (sibcall_value_immediate): Likewise.
1156 (sibcall_epilogue): Likewise.
1157 (epilogue): Pass false to indicate this is not a sibcall epilogue.
1158 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
1159 (nds32_expand_epilogue_v3pop): Likewise.
1161 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1163 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
1164 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
1165 (return_internal): New.
1166 (return): Define this named pattern.
1167 (simple_return): Define this named pattern.
1168 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
1169 pattern instead of unspec_volatile_func_return.
1170 (nds32_expand_epilogue_v3pop): Likewise.
1171 (nds32_can_use_return_insn): New function.
1173 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1175 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
1176 * config/nds32/nds32.md (pop25return): New.
1177 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
1178 pop25return pattern.
1180 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1182 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
1183 -mforbid-fp-as-gp, and -mex9 options.
1185 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1187 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
1188 remove -mgp-direct option.
1190 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1192 * doc/invoke.texi (--param early-inlining-insns): Update default value.
1193 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
1195 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1197 * ipa-inline.c (inline_small_functions): Work around hints
1200 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
1203 * doc/invoke.texi (Option Summary): Document new Nios II
1205 (Nios II Options): Likewise.
1206 * config/nios2/nios2.opt: Add -mgpopt= option support.
1207 Modify existing -mgpopt and -mno-gpopt options to be aliases.
1208 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
1209 * config/nios2/nios2.c (nios2_option_override): Adjust
1211 (nios2_in_small_data_p): Return true for explicit small data
1212 sections even with -G0.
1213 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
1216 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1219 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
1221 (inline_call): Fix removal of aliases.
1223 2015-01-15 Jakub Jelinek <jakub@redhat.com>
1225 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
1226 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
1227 * opts.c (common_handle_option): Add -fsanitize=vptr.
1228 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
1229 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
1230 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
1231 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
1232 (ubsan_expand_vptr_ifn): New prototype.
1233 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
1234 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
1235 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
1236 expand_LOOP_VECTORIZED): Make argument nameless, remove
1238 (expand_UBSAN_VPTR): New function.
1239 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
1241 (UBSAN_VPTR): New internal function.
1242 * sanopt.c (tree_map_traits): Renamed to ...
1243 (sanopt_tree_map_traits): ... this.
1244 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
1245 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
1246 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
1247 (maybe_optimize_ubsan_vptr_ifn): New function.
1248 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
1249 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
1251 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
1252 internal calls like pure functions for aliasing, even when they
1253 have other side-effects that prevent making them ECF_PURE.
1254 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
1255 (ubsan_expand_vptr_ifn): New function.
1257 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
1259 PR rtl-optimization/64110
1260 * stmt.c (parse_output_constraint): Process '^' and '$'.
1261 (parse_input_constraint): Ditto.
1262 * lra-constraints.c (process_alt_operands): Process the new
1264 * ira-costs.c (record_reg_classes): Process the new constraint
1266 * genoutput.c (indep_constraints): Add '^' and '$'.
1267 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
1268 * doc/md.texi: Add description of the new constraints.
1270 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1271 Bernd Schmidt <bernds@codesourcery.com>
1272 Cesar Philippidis <cesar@codesourcery.com>
1273 James Norris <jnorris@codesourcery.com>
1274 Tom de Vries <tom@codesourcery.com>
1275 Ilmir Usmanov <i.usmanov@samsung.com>
1276 Dmitry Bocharnikov <dmitry.b@samsung.com>
1277 Evgeny Gavrin <e.gavrin@samsung.com>
1278 Jakub Jelinek <jakub@redhat.com>
1280 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
1281 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
1282 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
1284 * builtins.c: Include "gomp-constants.h".
1285 (expand_builtin_acc_on_device): New function.
1286 (expand_builtin, is_inexpensive_builtin): Handle
1287 BUILT_IN_ACC_ON_DEVICE.
1288 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
1290 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
1292 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
1293 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
1294 i386/intelmic-offload.h.
1295 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
1296 to libgomp and its dependencies.
1297 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
1298 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
1299 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
1300 * config/ia64/hpux.h (LIB_SPEC): Likewise.
1301 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
1302 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
1303 * doc/generic.texi: Update for OpenACC changes.
1304 * doc/gimple.texi: Likewise.
1305 * doc/invoke.texi: Likewise.
1306 * doc/sourcebuild.texi: Likewise.
1307 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
1308 GF_OMP_FOR_KIND_OACC_LOOP.
1309 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
1310 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
1311 GF_OMP_TARGET_KIND_OACC_UPDATE,
1312 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
1314 * gimple.c: Update comments for OpenACC changes.
1315 * gimple.def: Likewise.
1316 * gimple.h: Likewise.
1317 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
1318 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
1319 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
1320 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
1321 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
1323 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
1324 * gimplify.c: Include "gomp-constants.h".
1325 Update comments for OpenACC changes.
1326 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
1327 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
1328 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
1329 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
1330 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
1331 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
1332 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
1333 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
1334 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
1336 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
1337 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
1338 OMP_CLAUSE_SET_MAP_KIND.
1339 (gimplify_oacc_cache): New function.
1340 (gimplify_omp_for): Handle OACC_LOOP.
1341 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
1343 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
1344 OACC_EXIT_DATA, OACC_UPDATE.
1345 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
1346 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
1347 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
1348 (gimplify_body): Consider flag_openacc next to flag_openmp.
1349 * lto-streamer-out.c: Include "gomp-constants.h".
1350 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
1351 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
1352 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
1353 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
1354 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
1355 (BUILT_IN_ACC_ON_DEVICE): New builtins.
1356 * omp-low.c: Include "gomp-constants.h".
1357 Update comments for OpenACC changes.
1358 (struct omp_context): Add reduction_map, gwv_below, gwv_this
1360 (extract_omp_for_data, use_pointer_for_field, install_var_field)
1361 (new_omp_context, delete_omp_context, scan_sharing_clauses)
1362 (create_omp_child_function, scan_omp_for, scan_omp_target)
1363 (check_omp_nesting_restrictions, lower_reduction_clauses)
1364 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
1365 Update for OpenACC changes.
1366 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
1367 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
1368 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
1369 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
1370 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
1371 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
1373 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1374 Handle GF_OMP_FOR_KIND_OACC_LOOP.
1375 (expand_omp_target, lower_omp_target): Handle
1376 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
1377 GF_OMP_TARGET_KIND_OACC_UPDATE,
1378 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
1379 GF_OMP_TARGET_KIND_OACC_DATA.
1380 (pass_expand_omp::execute, execute_lower_omp)
1381 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
1383 (offload_symbol_decl): New variable.
1384 (oacc_get_reduction_array_id, oacc_max_threads)
1385 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
1386 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
1387 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
1388 (oacc_gimple_assign, oacc_initialize_reduction_data)
1389 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
1391 (is_targetreg_ctx): Remove function.
1392 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
1393 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
1394 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
1395 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
1396 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
1397 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
1398 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
1399 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
1400 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
1401 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
1402 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
1403 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
1404 * tree-core.h: Update comments for OpenACC changes.
1405 (enum omp_clause_map_kind): Remove.
1406 (struct tree_omp_clause): Change type of map_kind member from enum
1407 omp_clause_map_kind to unsigned char.
1408 * tree-inline.c: Update comments for OpenACC changes.
1409 * tree-nested.c: Likewise. Include "gomp-constants.h".
1410 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
1411 (convert_tramp_reference_stmt, convert_gimple_call): Update for
1412 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
1413 OMP_CLAUSE_SET_MAP_KIND.
1414 * tree-pretty-print.c: Include "gomp-constants.h".
1415 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
1416 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
1417 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
1418 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
1419 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
1420 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
1421 instead of OMP_CLAUSE_MAP_*.
1422 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
1423 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
1424 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
1425 * tree-streamer-in.c: Include "gomp-constants.h".
1426 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
1427 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
1428 * tree-streamer-out.c: Include "gomp-constants.h".
1429 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
1431 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
1432 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
1433 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
1434 * tree.c (omp_clause_num_ops): Update accordingly.
1435 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
1437 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
1438 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
1439 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
1440 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
1441 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
1442 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
1443 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
1444 (OMP_CLAUSE_SET_MAP_KIND): New macro.
1445 * varpool.c (varpool_node::get_create): Consider flag_openacc next
1447 * config/i386/intelmic-offload.h: New file.
1448 * config/nvptx/offload.h: Likewise.
1450 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1452 * explow.h: Remove duplicate contents.
1453 * dojump.h: Likewise.
1455 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
1457 * arm.c (arm_xgene_tune): Add default initializer for instruction
1460 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1464 * ipa.c (symbol_table::remove_unreachable_nodes):
1465 Do not put abstract origins into boundary.
1467 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
1469 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
1470 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
1472 2015-01-15 Steve Ellcey <sellcey@mips.com>
1474 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
1475 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
1476 builtins.def, and chkp-builtins.def.
1478 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
1480 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
1483 2015-01-15 Richard Biener <rguenther@suse.de>
1485 PR tree-optimization/61743
1486 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
1487 information on PHIs for some simple cases.
1489 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1491 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
1493 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
1494 * config/arm/arm-cores.def (xgene1): New entry.
1495 * config/arm/arm-tables.opt: Regenerate.
1496 * config/arm/arm-tune.md: Regenerate.
1497 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
1499 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
1501 * tree-if-conv.c: Include hash-map.h.
1502 (aggressive_if_conv): New variable.
1503 (fold_build_cond_expr): Add simplification of non-zero condition.
1504 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
1505 destination block is not always executed.
1506 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
1507 than two predecessors if AGGRESSIVE_IF_CONV is true.
1508 (if_convertible_stmt_p): Fix commentary.
1509 (all_preds_critical_p): New function.
1510 (has_pred_critical_p): New function.
1511 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
1512 BB can have more than two predecessors and all incoming edges can be
1514 (predicate_bbs): Skip predication for loop exit block, use build2_loc
1515 to compute predicate for true edge.
1516 (find_phi_replacement_condition): Delete this function.
1517 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
1518 Allow interchange PHI arguments if EXTENDED is false.
1519 Change check that block containing reduction statement candidate
1520 is predecessor of phi-block since phi may have more than two arguments.
1521 (phi_args_hash_traits): New helper structure.
1522 (struct phi_args_hash_traits): New type.
1523 (phi_args_hash_traits::hash): New function.
1524 (phi_args_hash_traits::equal_keys): New function.
1525 (gen_phi_arg_condition): New function.
1526 (predicate_scalar_phi): Add handling of phi nodes with more than two
1527 arguments, delete COND and TRUE_BB arguments, insert body of
1528 find_phi_replacement_condition to predicate ordinary phi nodes.
1529 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
1530 delete call of find_phi_replacement_condition and invoke
1531 predicate_scalar_phi with two arguments.
1532 (insert_gimplified_predicates): Add assert that non-predicated block
1533 don't have statements to insert.
1534 (ifcvt_split_critical_edges): New function.
1535 (ifcvt_split_def_stmt): Likewise.
1536 (ifcvt_walk_pattern_tree): Likewise.
1537 (stmt_is_root_of_bool_pattern): Likewise.
1538 (ifcvt_repair_bool_pattern): Likewise.
1539 (ifcvt_local_dce): Likewise.
1540 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
1541 is copy of inner or outer loop force_vectorize field, invoke
1542 ifcvt_split_critical_edges, ifcvt_local_dce and
1543 ifcvt_repair_bool_pattern for aggressive if-conversion.
1545 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
1547 * config/aarch64/aarch64.md: Include xgene1.md.
1548 * config/aarch64/xgene1.md: New file.
1550 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1552 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
1553 xgene1 (APM XGene-1) core definition.
1554 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
1555 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
1556 * doc/invoke.texi: Document -mcpu=xgene1.
1558 2015-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1560 * dojump.h: New header file.
1561 * explow.h: Likewise.
1562 * expr.h: Remove includes.
1563 Move expmed.c prototypes to expmed.h.
1564 Move dojump.c prototypes to dojump.h.
1565 Move alias.c prototypes to alias.h.
1566 Move explow.c prototypes to explow.h.
1567 Move calls.c prototypes to calls.h.
1568 Move emit-rtl.c prototypes to emit-rtl.h.
1569 Move varasm.c prototypes to varasm.h.
1570 Move stmt.c prototypes to stmt.h.
1571 (saved_pending_stack_adjust): Move to dojump.h.
1572 (adjust_address): Move to explow.h.
1573 (adjust_address_nv): Move to emit-rtl.h.
1574 (adjust_bitfield_address): Likewise.
1575 (adjust_bitfield_address_size): Likewise.
1576 (adjust_bitfield_address_nv): Likewise.
1577 (adjust_automodify_address_nv): Likewise.
1578 * explow.c (expr_size): Move to expr.c.
1579 (int_expr_size): Likewise.
1580 (tree_expr_size): Likewise.
1581 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1582 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
1583 * genemit.c (main): Generate includes statistics.h, real.h, fixed-value.h,
1584 insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
1585 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h, function.h,
1586 statistics.h, real.h, fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
1588 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
1589 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
1590 * genemit.c (open_base_files): Generate includes flags.h, statistics.h, real.h,
1591 fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h,
1593 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h, hash-set.h, vec.h,
1594 machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h, flags.h, statistics.h,
1595 double-int.h, real.h, fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h,
1596 insn-config.h, expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
1597 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
1598 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
1599 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
1600 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
1601 tm.h tree.h varasm.h vec.h wide-int.h.
1602 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1603 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
1604 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
1605 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
1606 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1607 explow.h expmed.h fixed-value.h flags.h inchash.h insn-config.h
1608 real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
1609 * loop-iv.c: Likewise.
1610 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1611 explow.h expmed.h fixed-value.h flags.h inchash.h real.h
1612 statistics.h stmt.h tree.h varasm.h wide-int.h.
1613 * lra-constraints.c: Likewise.
1614 * lra-eliminations.c: Likewise.
1615 * lra-lives.c: Likewise.
1616 * lra-remat.c: Likewise.
1617 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1618 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
1619 statistics.h stmt.h tree.h varasm.h wide-int.h.
1620 * hw-doloop.c: Likewise.
1621 * ira-color.c: Likewise.
1622 * ira-emit.c: Likewise.
1623 * loop-doloop.c: Likewise.
1624 * loop-invariant.c: Likewise.
1625 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1626 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
1627 statistics.h stmt.h tree.h varasm.h wide-int.h.
1628 * caller-save.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1629 explow.h expmed.h fixed-value.h inchash.h real.h statistics.h
1630 stmt.h tree.h varasm.h wide-int.h.
1631 * combine-stack-adj.c: Likewise.
1634 * ifcvt.c: Likewise.
1635 * ira-costs.c: Likewise.
1637 * lra-coalesce.c: Likewise.
1638 * lra-spills.c: Likewise.
1639 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1640 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
1641 stmt.h varasm.h wide-int.h.
1642 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1643 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
1645 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
1646 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
1647 statistics.h stmt.h varasm.h wide-int.h.
1648 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
1649 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
1650 varasm.h wide-int.h.
1651 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
1652 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1653 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
1654 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
1655 statistics.h stmt.h.
1656 * config/tilepro/tilepro.c: Likewise.
1657 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
1658 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
1659 * config/pdp11/pdp11.c: Likewise.
1660 * config/xtensa/xtensa.c: Likewise.
1661 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
1662 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
1664 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1665 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
1666 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
1667 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1668 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
1669 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
1670 * rtl-chkp.c: Likewise.
1671 * tree-chkp-opt.c: Likewise.
1672 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h explow.h
1673 expmed.h fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
1674 insn-config.h real.h statistics.h stmt.h varasm.h.
1675 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1676 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
1677 statistics.h stmt.h.
1678 * tree-vect-data-refs.c: Likewise.
1679 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
1680 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1681 rtl.h statistics.h stmt.h varasm.h.
1682 * internal-fn.c: Likewise.
1683 * ipa-icf-gimple.c: Likewise.
1684 * lto-section-out.c: Likewise.
1685 * tree-data-ref.c: Likewise.
1686 * tree-nested.c: Likewise.
1687 * tree-outof-ssa.c: Likewise.
1688 * tree-predcom.c: Likewise.
1689 * tree-pretty-print.c: Likewise.
1690 * tree-scalar-evolution.c: Likewise.
1691 * tree-ssa-strlen.c: Likewise.
1692 * tree-vect-loop.c: Likewise.
1693 * tree-vect-patterns.c: Likewise.
1694 * tree-vect-slp.c: Likewise.
1695 * tree-vect-stmts.c: Likewise.
1697 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1698 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
1700 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
1701 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1702 statistics.h stmt.h varasm.h.
1703 * loop-unroll.c: Likewise.
1704 * ubsan.c: Likewise.
1705 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
1706 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
1708 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1709 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
1710 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
1711 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
1712 statistics.h stmt.h.
1713 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
1714 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
1715 statistics.h stmt.h varasm.h.
1716 * gimple-match-head.c: Likewise.
1717 * lto-cgraph.c: Likewise.
1718 * lto-section-in.c: Likewise.
1719 * lto-streamer-in.c: Likewise.
1720 * lto-streamer-out.c: Likewise.
1721 * tree-affine.c: Likewise.
1722 * tree-cfg.c: Likewise.
1723 * tree-cfgcleanup.c: Likewise.
1724 * tree-if-conv.c: Likewise.
1725 * tree-into-ssa.c: Likewise.
1726 * tree-ssa-alias.c: Likewise.
1727 * tree-ssa-copyrename.c: Likewise.
1728 * tree-ssa-dse.c: Likewise.
1729 * tree-ssa-forwprop.c: Likewise.
1730 * tree-ssa-live.c: Likewise.
1731 * tree-ssa-math-opts.c: Likewise.
1732 * tree-ssa-pre.c: Likewise.
1733 * tree-ssa-sccvn.c: Likewise.
1734 * tree-tailcall.c: Likewise.
1735 * tree-vect-generic.c: Likewise.
1736 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1737 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
1738 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1739 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
1740 * varasm.c: Likewise.
1741 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1742 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
1744 * init-regs.c: Likewise.
1746 * omp-low.c: Likewise.
1747 * stack-ptr-mod.c: Likewise.
1748 * tree-ssa-reassoc.c: Likewise.
1749 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1750 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
1752 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1753 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
1754 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1755 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
1756 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1757 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
1758 * tree-ssa-phiopt.c: Likewise.
1759 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1760 fixed-value.h hashtab.h real.h statistics.h stmt.h.
1761 * config/fr30/fr30.c: Likewise.
1762 * config/frv/frv.c: Likewise.
1764 * final.c: Likewise.
1765 * optabs.c: Likewise.
1766 * passes.c: Likewise.
1767 * simplify-rtx.c: Likewise.
1769 * toplev.c: Likewise.
1770 * var-tracking.c: Likewise.
1771 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1772 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1773 * lower-subreg.c: Likewise.
1774 * postreload-gcse.c: Likewise.
1776 * reginfo.c: Likewise.
1777 * store-motion.c: Likewise.
1778 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1779 fixed-value.h hashtab.h real.h stmt.h varasm.h.
1780 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1781 fixed-value.h hashtab.h statistics.h stmt.h.
1782 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1783 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
1784 * except.c: Likewise.
1785 * explow.c: Likewise.
1786 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1787 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
1789 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1790 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
1791 * tree-ssa-structalias.c: Likewise.
1792 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1793 fixed-value.h insn-config.h real.h statistics.h.
1794 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1795 fixed-value.h insn-config.h real.h statistics.h stmt.h.
1796 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1797 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
1798 * cfgbuild.c: Likewise.
1799 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1800 fixed-value.h real.h rtl.h statistics.h stmt.h.
1801 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1802 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1803 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1804 fixed-value.h real.h statistics.h stmt.h.
1805 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1806 fixed-value.h real.h statistics.h stmt.h varasm.h.
1807 * cprop.c: Likewise.
1808 * modulo-sched.c: Likewise.
1809 * postreload.c: Likewise.
1810 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
1811 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
1812 statistics.h stmt.h varasm.h.
1813 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
1814 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1815 rtl.h statistics.h stmt.h varasm.h.
1816 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
1817 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
1819 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
1820 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
1822 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
1823 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
1825 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
1826 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1827 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1828 function.h real.h statistics.h stmt.h varasm.h.
1829 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1830 insn-config.h real.h statistics.h stmt.h.
1831 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1832 statistics.h stmt.h.
1833 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
1834 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
1835 statistics.h stmt.h varasm.h.
1836 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1837 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
1838 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1839 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
1840 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
1841 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
1842 statistics.h stmt.h varasm.h.
1843 * ipa-polymorphic-call.c: Likewise.
1844 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h expmed.h
1845 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
1847 * config/c6x/c6x.c: Likewise.
1848 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h explow.h
1849 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1850 statistics.h stmt.h varasm.h.
1851 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1852 hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h varasm.h.
1853 * ipa-split.c: Likewise.
1854 * tree-eh.c: Likewise.
1855 * tree-ssa-dce.c: Likewise.
1856 * tree-ssa-loop-niter.c: Likewise.
1857 * tree-vrp.c: Likewise.
1858 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
1859 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
1861 * config/nds32/nds32-fp-as-gp.c: Likewise.
1862 * config/nds32/nds32-intrinsic.c: Likewise.
1863 * config/nds32/nds32-isr.c: Likewise.
1864 * config/nds32/nds32-md-auxiliary.c: Likewise.
1865 * config/nds32/nds32-memory-manipulation.c: Likewise.
1866 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1867 * config/nds32/nds32-predicates.c: Likewise.
1868 * config/nds32/nds32.c: Likewise.
1869 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
1870 fixed-value.h hashtab.h real.h statistics.h.
1871 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
1872 fixed-value.h hashtab.h real.h statistics.h stmt.h.
1873 * config/arm/arm.c: Likewise.
1874 * config/avr/avr.c: Likewise.
1875 * config/bfin/bfin.c: Likewise.
1876 * config/h8300/h8300.c: Likewise.
1877 * config/i386/i386.c: Likewise.
1878 * config/ia64/ia64.c: Likewise.
1879 * config/iq2000/iq2000.c: Likewise.
1880 * config/m32c/m32c.c: Likewise.
1881 * config/m32r/m32r.c: Likewise.
1882 * config/m68k/m68k.c: Likewise.
1883 * config/mcore/mcore.c: Likewise.
1884 * config/mep/mep.c: Likewise.
1885 * config/mips/mips.c: Likewise.
1886 * config/mn10300/mn10300.c: Likewise.
1887 * config/moxie/moxie.c: Likewise.
1888 * config/pa/pa.c: Likewise.
1889 * config/rl78/rl78.c: Likewise.
1890 * config/rx/rx.c: Likewise.
1891 * config/s390/s390.c: Likewise.
1892 * config/sh/sh.c: Likewise.
1893 * config/sparc/sparc.c: Likewise.
1894 * config/spu/spu.c: Likewise.
1895 * config/stormy16/stormy16.c: Likewise.
1896 * config/v850/v850.c: Likewise.
1897 * config/vax/vax.c: Likewise.
1898 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
1899 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1900 * config/msp430/msp430.c: Likewise.
1901 * predict.c: Likewise.
1902 * value-prof.c: Likewise.
1903 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
1904 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
1905 * config/microblaze/microblaze.c: Likewise.
1906 * config/nios2/nios2.c: Likewise.
1907 * config/rs6000/rs6000.c: Likewise.
1908 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1909 insn-config.h real.h rtl.h statistics.h stmt.h.
1910 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1911 insn-config.h real.h statistics.h stmt.h.
1912 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
1913 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
1914 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
1915 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1916 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1917 real.h statistics.h stmt.h.
1918 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
1919 fixed-value.h statistics.h stmt.h.
1920 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
1923 2015-01-15 Jakub Jelinek <jakub@redhat.com>
1925 * gengtype.c (create_user_defined_type): Workaround
1926 -Wmaybe-uninitialized false positives.
1927 * cse.c (fold_rtx): Likewise.
1928 * loop-invariant.c (gain_for_invariant): Likewise.
1930 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
1932 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
1933 set the memory attributes in all cases but clear MEM_EXPR if need be.
1935 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
1937 PR tree-optimization/64434
1938 * cfgexpand.c (reorder_operands): New function.
1939 (expand_gimple_basic_block): Insert call of reorder_operands if
1942 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
1944 * config/mips/micromips.md (*swp): Remove explicit parallel.
1945 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
1946 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
1947 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
1948 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
1949 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
1950 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
1951 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
1952 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
1953 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
1954 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
1955 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
1956 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
1957 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
1958 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
1959 (mips_wrdsp): Likewise.
1960 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
1962 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
1963 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
1964 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
1965 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
1966 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
1967 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
1968 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
1969 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
1970 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
1972 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
1974 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
1975 (mips_print_operand): Support 'y' to print exact log2 in decimal
1977 * config/mips/mips.h (ISA_HAS_LSA): New define.
1978 (ISA_HAS_DLSA): Likewise.
1979 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
1980 * config/mips/predicates.md (const_immlsa_operand): New predicate.
1982 2015-01-15 Martin Liska <mliska@suse.cz>
1985 * optc-save-gen.awk: Add support for array types.
1987 2015-01-15 Richard Biener <rguenther@suse.de>
1990 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
1991 for MEM_REF access functions with the same base can never partially
1994 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1996 * common.opt: New option -fstack-protector-explicit.
1997 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
1998 (stack_protect_decl_phase): Handle stack_protect attribute for
1999 explicit stack protection requests.
2000 (expand_used_vars): Similarly.
2001 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
2002 * doc/extend.texi: Add documentation for "stack_protect" attribute.
2003 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
2005 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
2008 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
2010 (sh_extending_set_of_reg): New struct.
2011 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
2012 sh_remove_reg_dead_or_unused_notes): New Declarations.
2013 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
2014 sh_find_extending_set_of_reg, sh_split_tst_subregs,
2015 sh_extending_set_of_reg::use_as_extended_reg): New functions.
2016 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
2017 convert to insn_and_split and use new function sh_split_tst_subregs.
2019 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
2021 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
2023 (Optimization Options): Move -fuse-ld documentation to...
2024 (Link Options): ...here.
2026 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2028 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
2030 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
2031 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
2032 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
2033 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
2034 instead of ZR for the memory operand of LL/SC.
2035 (compare_and_swap_12, sync_add<mode>): Likewise.
2036 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
2037 (sync_new_<optab>_12, sync_nand_12): Likewise.
2038 (sync_old_nand_12, sync_new_nand_12): Likewise.
2039 (sync_sub<mode>, sync_old_add<mode>): Likewise.
2040 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
2041 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
2042 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
2043 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
2044 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
2045 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
2046 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
2047 * doc/md.texi (ZC): Update description.
2049 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
2051 * builtins.c (expand_builtin_atomic_exchange): Remove error when
2052 memory model is CONSUME.
2053 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
2054 expand_builtin_atomic_store): Change invalid memory model errors to
2056 (expand_builtin_atomic_clear): Change invalid model errors to warnings
2057 and issue warning for CONSUME.
2059 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
2061 * lto-cgraph: Update function comments for
2062 lto_symtab_encoder_encode_*.
2064 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
2066 * Makefile.in (site.exp): Do not set ENABLE_LTO.
2068 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
2070 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
2071 * lto-cgraph.c (select_what_to_stream): Remove argument, use
2072 lto_stream_offload_p instead.
2073 * lto-streamer.h (select_what_to_stream): Remove argument.
2074 * passes.c (ipa_write_summaries): Likewise.
2075 * tree-pass.h (ipa_write_summaries): Likewise.
2077 2015-01-14 Richard Biener <rguenther@suse.de>
2079 PR tree-optimization/59354
2080 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
2081 groups larger than the slp group size as having gaps.
2083 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
2086 * builtins.c (get_memmodel): Promote consume to acquire always.
2088 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2091 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
2094 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2097 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
2099 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
2100 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
2101 AVX512VBMI, as it implies AVX512BW.
2103 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2106 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
2107 (vec_unpacks_hi_v16sf): Ditto.
2109 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2111 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
2114 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2116 * doc/invoke.texi (mapcs): Mention deprecation.
2117 (mapcs-frame): Likewise.
2119 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
2122 * config/arm/arm.c (callee_saved_reg_p): Define.
2123 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
2124 register is callee saved instead of !call_used_regs[reg].
2125 (thumb1_compute_save_reg_mask): Likewise.
2127 2015-01-14 Hale Wang <hale.wang@arm.com>
2129 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
2132 2015-01-14 Richard Biener <rguenther@suse.de>
2135 * tree-inline.c (insert_debug_decl_map): Check destination
2136 function MAY_HAVE_DEBUG_STMTS.
2137 (insert_init_debug_bind): Likewise.
2138 (insert_init_stmt): Remove redundant check.
2139 (remap_gimple_stmt): Drop debug stmts if the destination
2140 function has var-tracking assignments disabled.
2142 2015-01-14 Martin Liska <mliska@suse.cz>
2144 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
2145 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
2147 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2150 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
2151 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
2153 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2155 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
2156 level from an ARCH; do not inject the default.
2157 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
2158 MIPS_ISA_LEVEL_SPEC.
2159 (MIPS_ISA_NAN2008_SPEC): Update comment.
2160 (BASE_DRIVER_SELF_SPECS): Likewise.
2161 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
2162 MIPS_DEFAULT_ISA_LEVEL_SPEC.
2163 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
2164 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
2165 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
2167 2015-01-14 Richard Biener <rguenther@suse.de>
2169 PR tree-optimization/64493
2170 PR tree-optimization/64495
2171 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
2172 assign the proper vectorized PHI to the inner loop exit PHIs.
2174 2015-01-14 Joey Ye <joey.ye@arm.com>
2176 * config/arm/arm.c (arm_compute_save_reg_mask):
2177 Do not save lr in case of tail call.
2178 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
2180 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
2182 * tree-vrp.c (check_array_ref): Emit more warnings
2183 for warn_array_bounds >= 2.
2184 * common.opt: New option -Warray-bounds=.
2185 * doc/invoke.texi: Document -Warray-bounds=.
2187 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
2189 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
2190 (mforbid-fp-as-gp): Remove.
2192 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
2193 (nds32_symbol_load_store_p): Remove.
2194 (nds32_fp_as_gp_check_available): Clean up implementation.
2195 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
2197 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
2198 fp-as-gp and ex9 cases.
2200 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
2202 * tree-profile.c (init_ic_make_global_vars): Drop workaround
2203 for bintuils bug 14342.
2204 (init_ic_make_global_vars): Likewise.
2205 (gimple_init_edge_profiler): Likewise.
2206 (gimple_gen_ic_func_profiler): Likewise.
2208 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2210 * ipa-inline.c (inline_small_functions): Swap the operands in
2213 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
2216 * ipa-inline-analysis.c (node_growth_cache): Remove.
2217 (initialize_growth_caches): Do not initialize it.
2218 (free_growth_caches): Do not free it.
2219 (do_estimate_growth): Rename to ...
2220 (estimate_growth): ... this one; drop growth cache code.
2221 (growth_likely_positive): Always go the heuristics way.
2222 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
2223 (reset_edge_caches): Do not reset node growth.
2224 (heap_edge_removal_hook): Do not maintain cache.
2225 (inline_small_functions): Likewise; strenghten sanity check.
2226 (ipa_inline): Do not maintain caches.
2227 * ipa-inline.h (node_growth_cache): Remove.
2228 (do_estimate_growth): Remove to ...
2229 (estimate_growth): this one; remove inline version.
2230 (reset_node_growth_cache): Remove.
2232 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
2235 * ipa-inline.c (inline_small_functions): Update callee keys after
2236 resolving speculation
2237 (inline_small_functions): Always check monotonicity of the queue.
2239 2015-01-13 Marek Polacek <polacek@redhat.com>
2242 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
2244 2015-01-13 Jakub Jelinek <jakub@redhat.com>
2246 PR rtl-optimization/64286
2247 * ree.c (combine_reaching_defs): Move part of comment earlier,
2248 remove !SCALAR_INT_MODE_P check.
2249 (add_removable_extension): Don't add vector mode
2250 extensions if all uses of the source register aren't the same
2253 2015-01-13 Renlin Li <renlin.li@arm.com>
2255 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
2256 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
2258 2015-01-13 Martin Liska <mliska@suse.cz>
2260 * ipa-icf.c (sem_function::equals_private): Call new functions
2261 cl_target_option_print_diff and cl_optimization_print_diff.
2262 * optc-save-gen.awk (cl_target_option_print_diff): New function.
2263 (cl_optimization_print_diff): Likewise.
2264 * opth-gen.awk: Likewise.
2266 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
2268 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
2269 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
2270 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
2271 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
2272 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
2273 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
2275 2015-01-13 Andrew Pinski <apinski@cavium.com>
2277 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
2278 instead of src mode.
2280 2015-01-13 Richard Biener <rguenther@suse.de>
2283 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
2286 2015-01-13 Andrew Pinski <apinski@cavium.com>
2288 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
2290 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
2292 2015-01-13 Jakub Jelinek <jakub@redhat.com>
2295 * cfgexpand.c (expand_computed_goto): Don't call
2296 convert_memory_address here.
2298 2015-01-13 Richard Biener <rguenther@suse.de>
2300 PR tree-optimization/64406
2301 * tree-loop-distibution.c (pass_loop_distribution::execute):
2302 Reset the SCEV hashtable if we distributed anything.
2304 2015-01-13 Richard Biener <rguenther@suse.de>
2306 PR tree-optimization/64404
2307 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
2308 SLP types for CSEd loads.
2310 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
2312 PR tree-optimization/64436
2313 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
2314 merge of two symbolic numbers for a bitwise OR to ...
2315 (perform_symbolic_merge): This. Also fix computation of the range and
2316 end of the symbolic number corresponding to the result of a bitwise OR.
2318 2015-01-13 Richard Biener <rguenther@suse.de>
2320 PR tree-optimization/64568
2321 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
2322 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
2324 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2326 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
2327 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
2329 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2331 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
2332 target-specific symbol_ref flag.
2333 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
2334 resides in rodata section.
2335 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
2336 (nds32_encode_section_info): New function.
2338 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2340 * config/nds32/nds32.md (call): Use pseudo instruction bal which
2341 clobbers TA_REGNUM if large code model is specified.
2342 (call_register): Likewise.
2343 (call_immediate): Likewise.
2344 (call_value): Likewise.
2345 (call_value_register): Likewise.
2346 (call_value_immediate): Likewise.
2348 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2350 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
2351 (TARGET_CMODEL_MEDIUM): New macro.
2352 (TARGET_CMODEL_LARGE): New macro.
2353 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
2354 code model setting in assembly code.
2356 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2358 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
2359 Remove MASK_GP_DIRECT flag.
2360 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
2361 one of the multilib default options.
2362 * config/nds32/nds32.opt (mgp-direct): Remove.
2363 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
2364 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
2366 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2368 * config/nds32/nds32.opt (mcmodel): Add new option.
2369 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
2370 to describe code model.
2372 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
2375 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
2377 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
2379 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
2380 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
2381 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
2382 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
2383 __builtin_sh_set_fpscr.
2385 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
2387 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
2388 after a funtion name just to indicate it is a function.
2389 ([-fsanitize-undefined-trap-on-error]): Likewise.
2390 ([-fdbg-cnt=]): Likewise.
2391 ([-mmemcpy]): Likewise.
2392 ([-mflush-func]): Likewise.
2393 ([-msynci]): Likewise.
2395 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
2397 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
2400 2015-01-12 Jakub Jelinek <jakub@redhat.com>
2402 PR tree-optimization/64563
2403 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
2404 instead of != VR_VARYING.
2407 * config/i386/i386.c (ix86_expand_prologue): Add
2408 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
2410 PR tree-optimization/64454
2411 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
2412 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
2413 for signed or [0, op1 - 1] for unsigned modulo.
2414 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
2415 even if op1 does not satisfy integer_pow2p.
2418 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
2420 2015-01-12 Jeff Law <law@redhat.com>
2423 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
2424 (trunchiqi2, truncsihi2): Similarly.
2426 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
2427 rather than calling F.
2429 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
2431 * tsan.c (instrument_expr): Use force_gimple_operand.
2432 Use may_be_nonaddressable_p instead of is_gimple_addressable.
2434 2015-01-12 Richard Biener <rguenther@suse.de>
2436 PR tree-optimization/64530
2437 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
2440 2015-01-12 Richard Biener <rguenther@suse.de>
2443 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
2446 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2448 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
2449 Cortex-A17 tuning parameters.
2450 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
2452 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2454 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
2455 * config/arm/arm.c (arm_macro_fusion_p): New function.
2456 (arm_macro_fusion_pair_p): Likewise.
2457 (TARGET_SCHED_MACRO_FUSION_P): Define.
2458 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
2459 (ARM_FUSE_NOTHING): Likewise.
2460 (ARM_FUSE_MOVW_MOVT): Likewise.
2461 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
2462 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
2463 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
2464 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
2465 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
2466 arm_cortex_a5_tune): Specify fuseable_ops value.
2468 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
2471 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
2472 test for PIE with copy reloc.
2473 * configure: Regenerated.
2475 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2477 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
2479 (arm_tls_descseq_addr): Likewise.
2480 (arm_gen_movmemqi): Likewise.
2481 (arm_expand_epilogue_apcs_frame): Likewise.
2482 (arm_expand_epilogue): Likewise.
2483 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
2486 2015-01-12 Martin Liska <mliska@suse.cz>
2489 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
2490 volatility for correct operands.
2492 2015-01-12 Martin Liska <mliska@suse.cz>
2494 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
2495 that a function is not leaf.
2496 (sem_function::compare_polymorphic_p): Likewise.
2498 2015-01-12 Martin Liska <mliska@suse.cz>
2500 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
2501 that a function is not leaf.
2502 (sem_function::compare_polymorphic_p): Likewise.
2504 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2506 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
2507 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
2508 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
2509 fold-const.h, tree-check.h.
2511 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
2515 * ipa-inline.c (compute_uninlined_call_time,
2516 compute_inlined_call_time): Use counts for extra precision when
2518 (big_speedup_p): Fix formating.
2519 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
2520 (relative_time_benefit): Remove.
2521 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
2522 merge guessed and read profile paths.
2523 (inline_small_functions): Count only !optimize_size functions into
2524 initial size; be more lax about sanity check when profile is used;
2525 be sure to update inlined function profile when profile is read.
2527 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
2530 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
2531 cost when edge becomes direct.
2532 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
2533 is resolved or when introducing new speculation.
2535 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
2539 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
2540 '||' to fix typo issue.
2542 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
2543 accept and return NULL.
2545 2015-01-12 Martin Liska <mliska@suse.cz>
2547 * cgraph.c (cgraph_edge::remove_callee): Move function to header
2548 file for being inlined.
2549 (cgraph_set_edge_callee): Delete.
2550 (cgraph_edge::redirect_callee): Move function to header file
2552 (cgraph_edge::make_direct): Use new function.
2553 (cgraph_edge::dump_edge_flags): New function created from
2554 static dump_edge_flags function.
2555 (cgraph_node::dump): Use new function.
2556 (cgraph_edge::verify_count_and_frequency): New function created
2557 from verify_edge_count_and_frequency.
2558 (cgraph_edge::verify_corresponds_to_fndecl): New function created
2559 from verify_edge_corresponds_to_fndecl.
2560 (verify_edge_corresponds_to_fndecl): Delete.
2561 (cgraph_node::verify_node): Use new function.
2562 * cgraph.h (cgraph_edge::set_callee): New function.
2563 (cgraph_edge::dump_edge_flags): Likewise.
2564 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
2566 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
2568 * ipa-utils.c (estimate_function_body_sizes): Do not
2569 free node params when called late with early=true.
2571 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
2573 * doc/md.texi (Instruction Patterns): Rewrite text for
2575 (Example): Likewise.
2577 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
2579 * doc/invoke.texi (Option Summary): Break long lines.
2580 [(-fdiagnostics-color)]: Put long literal in @smallexample
2582 [(-fsanitize-recover)]: Likewise.
2583 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
2584 [(-ffast-math)]: Likewise.
2585 [(--param max-inline-insns-recursive)]: Likewise.
2586 [(--param max-inline-recursive-depth)]: Likewise.
2587 [(-mno-text-section-literals)]: Likewise.
2589 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
2591 * doc/install.texi: Update for libgomp being renamed from "GNU
2592 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
2594 * doc/sourcebuild.texi: Likewise.
2596 2015-01-10 Anthony Green <green@moxielogic.com>
2598 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
2599 mul.x availability for moxiebox configuration.
2601 2015-01-09 Anthony Green <green@moxielogic.com>
2603 * config/moxie/moxie.md: Tabify assembly output.
2605 2015-01-09 Anthony Green <green@moxielogic.com>
2607 * config/moxie/moxie.md (CC_REG): Correct register definition.
2609 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
2611 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
2612 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
2615 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2617 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
2619 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
2620 Jakub Jelinek <jakub@redhat.com>
2623 * lto-streamer.h (lto_stream_offload_p): New declaration.
2624 * lto-streamer.c (lto_stream_offload_p): New variable.
2625 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
2626 at the same time as section_name_prefix.
2627 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
2628 if lto_stream_offload_p.
2629 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
2630 stream TREE_TARGET_OPTION if lto_stream_offload_p.
2631 (write_ts_function_decl_tree_pointers): Don't
2632 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
2633 * tree-streamer-in.c (unpack_value_fields): Don't stream
2634 TREE_TARGET_OPTION in if ACCEL_COMPILER.
2635 (lto_input_ts_function_decl_tree_pointers): Don't stream
2636 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
2637 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
2638 instead of section_name_prefix string comparisons.
2640 2015-01-09 Jakub Jelinek <jakub@redhat.com>
2642 PR rtl-optimization/64536
2643 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
2646 2015-01-09 Michael Collison <michael.collison@linaro.org>
2648 PR tree-optimization/64322
2649 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
2650 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
2652 2015-01-09 Tom de Vries <tom@codesourcery.com>
2654 PR rtl-optimization/64539
2655 * regcprop.c (kill_clobbered_values): Factor out of ...
2656 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
2657 instead of note_stores with kill_clobbered_value.
2659 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2661 * ginclude/unwind-arm-common.h: Revert previous commit.
2663 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2665 * config.gcc (arm*-*-freebsd*): New configuration.
2666 * config/arm/freebsd.h: New file.
2667 * config.host: Add extra components for arm*-*-freebsd*.
2668 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
2669 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
2671 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2673 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
2675 * config/rs6000/t-rtems: Add e6500 multilibs.
2677 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2679 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
2682 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2684 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
2685 MULTILIB_EXCEPTIONS.
2687 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2689 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
2690 MULTILIB_EXCEPTIONS.
2692 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2694 * config/arm/t-rtems-eabi: Rename to...
2695 * config/arm/t-rtems: ...this.
2696 * config/arm/rtems-eabi.h: Rename to...
2697 * config/arm/rtems.h: ...this.
2698 * config.gcc (arm*-*-rtems*): Reflect changes above.
2700 2015-01-09 Richard Biener <rguenther@suse.de>
2702 PR tree-optimization/64410
2703 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
2705 (execute_update_addresses_taken): Deal with that.
2706 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
2707 loads/stores for complex variables.
2709 2015-01-09 Martin Liska <mliska@suse.cz>
2711 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
2713 (func_checker::compare_memory_operand): New function.
2714 (func_checker::compare_operand): Split case to newly
2716 (func_checker::compare_cst_or_decl): New function.
2717 (func_checker::compare_gimple_call): Identify
2719 (func_checker::compare_gimple_assign): Likewise.
2720 * ipa-icf-gimple.h: New function.
2722 2015-01-09 Martin Liska <mliska@suse.cz>
2725 * sreal.c (sreal::dump): Change unsigned format to signed for
2727 (sreal::to_double): Replace exp2 with scalbln.
2729 2015-01-09 Martin Liska <mliska@suse.cz>
2731 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
2732 * ipa-icf.c (sem_function::equals_private): Add support for target and
2733 (sem_item_optimizer::merge_classes): Remove redundant function
2734 optimization flags comparison.
2735 * tree.h (target_opts_for_fn): New function.
2737 2015-01-09 Tom de Vries <tom@codesourcery.com>
2739 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
2741 2015-01-09 Kito Cheng <kito@0xlab.org>
2743 PR rtl-optimization/64348
2744 * lra-constraints.c (split_reg): Fix caller-save store/restore
2745 instruction generation.
2747 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
2749 PR gcov-profile/61790
2750 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
2751 long long. Fallback to int64_t if host doesn't have long long and
2752 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
2754 2015-01-08 Jakub Jelinek <jakub@redhat.com>
2756 PR tree-optimization/63989
2757 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
2759 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
2760 (get_stridx): If we don't have a record for certain SSA_NAME,
2761 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
2762 constant offset, call get_stridx_plus_constant.
2763 (get_stridx_plus_constant): New function.
2764 (zero_length_string): Don't use get_stridx here.
2768 * dse.c (struct insn_info): Mention frame_read set also
2769 before reload for tail calls on some targets.
2770 (scan_insn): Revert 2014-12-22 change. Set frame_read
2771 also before reload for tail calls if
2772 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
2773 instead of add_non_frame_wild_read for non-const/memset
2774 tail calls after reload.
2776 2015-01-08 Jason Merrill <jason@redhat.com>
2778 * ubsan.c (do_ubsan_in_current_function): New.
2779 (pass_ubsan::gate): Use it.
2780 * ubsan.h: Declare it.
2781 * convert.c (convert_to_integer): Use it.
2783 2015-01-08 Jakub Jelinek <jakub@redhat.com>
2786 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
2787 compare_code when it is unconditionally overwritten afterwards.
2788 Use ix86_reverse_condition instead of reverse_condition. Don't
2789 change code if *reverse_condition* returned UNKNOWN and don't
2790 swap ct/cf and negate diff in that case.
2792 2015-01-08 Mike Stump <mikestump@comcast.net>
2794 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
2795 (pass_tsan_O0::gate): Likewise.
2796 * extend.texi (Function Attributes): Add no_sanitize_thread
2799 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
2801 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
2802 for registering builtins.
2803 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
2804 add -fopenmp to the argv_obstack used when invoking
2807 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
2808 add "-m32" or "-m64" to argv_obstack.
2809 (generate_host_descr_file): Likewise, when invoking host_compiler.
2810 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
2813 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
2815 * config/sh/sh-mem.cc: Use constant as second operand when emitting
2818 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
2821 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
2822 constant load if constant operand fits into I08.
2824 2015-01-08 Jakub Jelinek <jakub@redhat.com>
2827 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
2828 and TREE_THIS_VOLATILE for MEM_REFs.
2829 (build5_stat): Fix up initialization of TREE_READONLY and
2830 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
2832 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
2835 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
2836 of r for the second alternative of the destination operand.
2838 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
2841 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
2843 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
2845 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
2847 ([-fivar-visibility], [-fvisibility]): Likewise.
2849 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
2851 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
2852 the file where @code, @command, etc is more appropriate.
2854 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
2856 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
2857 of -mrecip= documentation.
2859 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2862 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
2863 correct reload handler if -m32 -mpowerpc64 is used.
2865 2015-01-06 Tom de Vries <tom@codesourcery.com>
2867 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
2869 2015-01-08 Christian Bruel <christian.bruel@st.com>
2872 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
2874 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
2876 PR tree-optimization/63259
2877 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
2878 if optab exists for 16bit byteswap.
2880 2015-01-06 Jakub Jelinek <jakub@redhat.com>
2882 * opts.c (common_handle_option): Add support for
2883 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
2884 * doc/invoke.texi: Document -fno-sanitize=all,
2885 -f{,no-}sanitize-recover=all. Document that
2886 -fsanitize=float-cast-overflow is not enabled
2887 by -fsanitize=undefined. Fix up documentation
2888 of -f{,no-}sanitize-recover.
2890 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
2892 * config.gcc: Add Visium support.
2893 * configure.ac: Likewise.
2894 * configure: Regenerate.
2895 * doc/extend.texi (interrupt attribute): Add Visium.
2896 * doc/invoke.texi: Document Visium options.
2897 * doc/install.texi: Document Visium target.
2898 * doc/md.texi: Document Visium constraints.
2899 * common/config/visium: New directory.
2900 * config/visium: Likewise.
2902 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
2904 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
2905 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
2907 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
2909 * combine.c (combine_validate_cost): Do not count the cost of a
2910 split I2 twice. Do not display it twice in the dump, either.
2912 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
2914 Revert parts of r219199.
2915 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
2917 ([-Wtraditional]): Restore markup on <limits.h>.
2919 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2922 * doc/invoke.texi: Document -Wsuggest-override.
2924 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
2926 PR rtl-optimization/64287
2927 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
2928 (process_options): Disable flag_ipa_ra if profiling.
2930 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
2932 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
2934 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
2936 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
2937 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
2938 put under #if TARGET_LOOPS guard.
2940 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
2942 * config/i386/i386.c (output_387_binary_op): Use std::swap.
2944 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
2946 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
2947 * rtl.h (refers_to_regno_p): Add overload.
2949 * bt-load.c: Likewise.
2950 * combine.c: Likewise.
2951 * df-scan.c: Likewise.
2952 * sched-deps.c: Likewise.
2953 * config/s390/s390.c: Likewise.
2954 * config/m32r/m32r.c: Likewise.
2955 * config/rs6000/spe.md: Likewise.
2956 * config/rs6000/rs6000.c: Likewise.
2957 * config/pa/pa.c: Likewise.
2958 * config/stormy16/stormy16.c: Likewise.
2959 * config/cris/cris.c: Likewise.
2960 * config/arc/arc.md: Likewise.
2961 * config/arc/arc.c: Likewise.
2962 * config/sh/sh.md: Likewise.
2963 * config/sh/sh.c: Likewise.
2964 * config/frv/frv.c: Likewise.
2966 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2969 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
2970 call as cleanup of the whole body.
2971 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
2972 * tsan.c (replace_func_exit): New function.
2973 (instrument_func_exit): Moved earlier.
2974 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
2975 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
2977 (tsan_pass): Don't call instrument_func_exit.
2978 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
2979 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
2983 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
2984 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
2985 it to libubsan handler instead of EXPR. Fold comparisons earlier,
2986 if the result is integer_zerop, return NULL_TREE.
2987 * convert.c (convert_to_integer): Pass expr as ARG.
2989 PR tree-optimization/64465
2990 * tree-inline.c (redirect_all_calls): During inlining
2991 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
2992 changed the stmt to a non-throwing call.
2994 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
2996 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
2997 etc markup throughout the file.
2999 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3001 Enable experimental TSAN support for Ada.
3002 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
3004 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3006 PR tree-optimization/64494
3007 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
3008 clear SSA_NAME_ANTI_RANGE_P flag.
3010 2015-01-05 Marek Polacek <polacek@redhat.com>
3012 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
3014 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3016 Update copyright years.
3018 * gcc.c (process_command): Update copyright notice dates.
3019 * gcov-dump.c: Ditto.
3021 * doc/cpp.texi: Bump @copying's copyright year.
3022 * doc/cppinternals.texi: Ditto.
3023 * doc/gcc.texi: Ditto.
3024 * doc/gccint.texi: Ditto.
3025 * doc/gcov.texi: Ditto.
3026 * doc/install.texi: Ditto.
3027 * doc/invoke.texi: Ditto.
3029 * auto-profile.c, auto-profile.h: Fix up Copyright line.
3031 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
3033 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
3035 ([-fvtable-verify], [-fvtv-debug]): Likewise.
3036 ([-Wabi]): Likewise.
3037 ([-fmessage-length]): Likewise.
3038 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
3039 ([-Wno-discarded-qualifiers]): Likewise.
3040 ([-Wnodiscarded-array-qualifiers]): Likewise.
3041 ([-Wno-virtual-move-assign]): Likewise.
3042 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
3043 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
3044 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
3045 ([-fsanitize-undefined-trap-on-error]): Likewise.
3046 ([-floop-interchange]): Likewise.
3047 ([-ftree-coalesce-inlined-vars]): Likewise.
3048 ([-fvect-cost-model]): Likewise.
3049 ([-flto]): Likewise.
3050 ([--param]): Likewise.
3051 (Spec Files): Likewise.
3052 ([-mstrict-align]): Likewise.
3053 ([-mfix-cortex-a53-835769]): Likewise.
3054 ([-march], [-mtune]): Likewise.
3055 ([-mpic-register]): Likewise.
3056 ([-munaligned-access]): Likewise.
3057 ([-msp8]): Likewise.
3058 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
3059 (AVR Built-in Macros): Likewise.
3060 ([-mpreferred-stack-boundary]): Likewise.
3061 ([-mtune-crtl]): Likewise.
3062 ([-mashf]): Likewise.
3063 ([-mmcu=]): Likewise.
3064 ([-minrt]): Likewise.
3065 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
3066 ([-mupper-regs]): Likewise.
3067 ([-matomic-model]): Likewise.
3068 ([-mdiv]): Likewise.
3069 ([-mzdcbranch]): Likewise.
3070 ([-mdisable-callt]): Likewise.
3071 ([-msoft-float]): Likewise.
3072 ([-m8byte-align]): Likewise.
3073 ([-fstack-reuse]): Likewise.
3075 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3077 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
3078 Fix markup, light copy-editing.
3079 ([-fauto-profile]): Rewrite to fix formatting and content
3082 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3084 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
3085 Copy-edit description.
3086 ([-fisolate-erroneous-paths-attribute]): Likewise.
3087 * common.opt (fisolate-erroneous-paths-dereference):
3088 Copy-edit description.
3089 (fisolate-erroneous-paths-attribute): Likewise.
3091 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3093 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
3096 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3098 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
3099 ([-fvtv-debug]): Likewise.
3100 ([-Wc++-compat]): Likewise.
3101 ([-Wc++11-compat]): Likewise.
3102 ([-Wc++14-compat]): Likewise.
3103 ([-Wno-sized-deallocation]): Likewise.
3104 ([-femit-class-debug-always]): Likewise.
3105 ([-femit-struct-debug-detailed]): Likewise.
3106 ([-fno-keep-inline-dllexport]): Likewise.
3107 ([-fira-algorithm]): Likewise.
3108 ([-fira-region]): Likewise.
3109 ([-flra-remat]): Likewise.
3110 ([-fipa-ra]): Likewise.
3111 ([-fhoist-adjacent-loads]): Likewise.
3112 ([-fisolate-erroneous-paths-dereference]): Likewise.
3113 ([-fisolate-erroneous-paths-attribute]): Likewise.
3114 ([-ftree-switch-conversion]): Likewise.
3115 ([-ftree-tail-merge]): Likewise.
3116 ([-ftree-loop-if-convert]): Likewise.
3117 ([-ftree-loop-if-convert-stores]): Likewise.
3118 ([-ftree-loop-distribution]): Likewise.
3119 ([-ftree-loop-distribute-patterns]): Likewise.
3120 ([-flto-compression-level]): Likewise.
3121 ([-flto-report]): Likewise.
3122 ([-flto-report-wpa]): Likewise.
3123 ([-fuse-linker-plugin]): Likewise.
3124 ([-mfix-cortex-a53-835769]): Likewise.
3125 ([-mno-fix-cortex-a53-835769]): Likewise.
3126 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
3127 explicit listing; add a note to the discussion indicating they
3128 exist. Reorder table to group similar options. Add missing
3129 @opindex entries. Add @need commands throughout the table to
3130 allow it to be split across multiple pages.
3131 ([-m8bit-idiv]): Fix @opindex.
3132 ([-mavx256-split-unaligned-load]): Likewise.
3133 ([-mavx256-split-unaligned-store]): Likewise.
3134 ([-mstack-protector-guard]): Likewise.
3135 ([-mcpu=]): Likewise.
3136 ([-mcpu]): Likewise.
3137 ([-mpointer-size=]): Likewise.
3139 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
3141 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
3142 instead of `m' constraint. Likewise for unnamed movb comparison
3143 patterns using reg_before_reload_operand predicate.
3144 * config/pa/predicates.md (reg_before_reload_operand): Tighten
3145 predicate to reject register index and LO_SUM DLT memory forms
3148 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
3150 * doc/invoke.texi (Option Summary): Fix spelling of
3151 -fdevirtualize-at-ltrans.
3152 ([-fdevirtualize]): Fix markup.
3153 ([-fdevirtualize-speculatively]): Fix typo.
3154 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
3156 * common.opt (fdevirtualize-at-ltrans): Likewise.
3157 * ipa-devirt.c: Fix typos in comments throughout the file.
3158 (ipa_devirt): Fix typos in format strings for dump output.
3160 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
3162 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
3163 discussion of defaults, light copy-editing.
3165 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3167 * tsan.c (instrument_expr): corrected previous checkin.
3169 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3171 Instrument bit field and unaligned accesses for TSAN.
3172 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
3173 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
3174 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
3175 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
3176 unaligned memory regions.
3178 2015-01-01 Anthony Green <green@moxielogic.com>
3180 * config/moxie/predicates.md (moxie_general_movsrc_operand):
3181 Restrict move source register offsets to 16 bits.
3183 Copyright (C) 2015 Free Software Foundation, Inc.
3185 Copying and distribution of this file, with or without modification,
3186 are permitted in any medium without royalty provided the copyright
3187 notice and this notice are preserved.