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