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