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