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