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