2015-01-20 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blob763f105f6ba658a42d1bd280c167b744541d019a
1 2015-01-20  Richard Biener  <rguenther@suse.de>
3         PR ipa/64684
4         * ipa-reference.c (add_static_var): Inline ...
5         (analyze_function): ... here after splitting out from ...
6         (is_proper_for_analysis): ... this.
8 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
10         PR target/64149
11         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
12         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
13         replace the conditional with it's true branch.
14         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
15         (arm_lra_p): Remove.
17 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
19         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
21 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23         * config/tilegx/mul-tables.c: Move symtab.h include after coretypes.h include.
24         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h, vec.h,
25         machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h, flags.h, statistics.h,
26         double-int.h, real.h, fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h,
27         insn-config.h, expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
29 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
31         PR bootstrap/64676
32         Revert:
33         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
35         PR rtl-optimization/64081
36         * loop-iv.c (def_pred_latch_p): New function.
37         (latch_dominating_def): Allow specific cases with non-single
38         definitions.
39         (iv_get_reaching_def): Likewise.
40         (check_complex_exit_p): New function.
41         (check_simple_exit): Use check_complex_exit_p to allow certain cases
42         with exits not executing on any iteration.
44 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
46         PR lto/45375
47         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
48         to set branch cost.
50 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
52         PR lto/45375
53         * i386.c (gate): Check flag_expensive_optimizations and
54         optimize_size.
55         (ix86_option_override_internal): Drop optimize_size condition
56         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
57         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
58         MASK_PREFER_AVX128.
59         (ix86_avx256_split_vector_move_misalign,
60         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
61         * sse.md (all uses of TARGET_PREFER_AVX128): Add
62         optimize_insn_for_speed_p check.
64 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
66         * config/mips/mips.h (FP_ASM_SPEC): New define.
67         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
68         instead.
70 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
72         PR target/53988
73         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
74         nullptr for insn when reaching the first insn.
75         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
76         (sh_insn_operands_modified_between_p): Add nullptr check.
77         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
78         sign extending mem load if the insn contains any UNSPEC or
79         UNSPEC_VOLATILE.
81 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
83         * params.def (inline-unit-growth): Drop to 15%.
84         * invoke.texi (inline-unit-growth): Document change.
86 2015-01-19  Martin Liska  <mliska@suse.cz>
88         PR ipa/64668
89         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
90         function for second argument of OBJ_TYPE_REF.
92 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
94         PR ipa/64218
95         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
96         whether function is an alias.
98 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
100         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
101         cases.
103 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
105         PR rtl-optimization/64671
106         * lra-remat.c (operand_to_remat): Don't consider jump and call
107         insns.
109 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
111         * config/rs6000/default64.h: Include rs6000-cpus.def.
112         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
113         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
114         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
115         and POWER8.
116         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
117         POWER8.
118         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
119         pseudo-op to specify assembler dialect.
121 2015-01-19  Martin Liska  <mliska@suse.cz>
123         PR ipa/64664
124         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
125         Handle safe potentially removed nodes during filtering.
127 2015-01-19  Martin Liska  <mliska@suse.cz>
129         * doc/extend.texi (no_icf): Add new attribute description.
130         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
131         where the pass attempts to merge a function with no_icf attribute.
133 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
135         PR target/64532
136         * doc/md.texi (ARM Options): Document register constraints.
138 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
139             Andrew Pinski  <apinski@cavium.com>
141         PR target/64304
142         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
143         (ashl<mode>3): Don't expand if operands[2] is not constant.
145 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
147         PR target/64448
148         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
149         Match xor-and-xor RTL pattern.
151 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
153         PR rtl-optimization/64081
154         * loop-iv.c (def_pred_latch_p): New function.
155         (latch_dominating_def): Allow specific cases with non-single
156         definitions.
157         (iv_get_reaching_def): Likewise.
158         (check_complex_exit_p): New function.
159         (check_simple_exit): Use check_complex_exit_p to allow certain cases
160         with exits not executing on any iteration.
162 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
164         * common.opt (fgraphite): Fix a typo.
166 2015-01-19  Felix Yang  <felix.yang@huawei.com>
168         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
169         pattern.
170         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
171         uminp, smax_nanp, smin_nanp): New builtins.
172         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
173         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
174         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
175         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
176         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
177         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
178         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
179         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
180         vpminnms_f32): Rewrite using builtin functions.
182 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
184         PR libgomp/64625
185         * omp-low.c (offload_symbol_decl): Remove variable.
186         (get_offload_symbol_decl): Remove function.
187         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
188         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
189         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
190         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
191         BUILT_IN_GOACC_UPDATE don't pass it at all.
193 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
195         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
196         callers.
198 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
200         * ipa-chkp.c (chkp_produce_thunks): Add early param
201         to split thunks production into two passes.  Keep
202         'always_inline' function bodies after the first pass.
203         (pass_data_ipa_chkp_early_produce_thunks): New.
204         (pass_ipa_chkp_early_produce_thunks): New.
205         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
206         chkp_produce_thunks signature.
207         (make_pass_ipa_chkp_early_produce_thunks): New.
208         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
209         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
210         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
212 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
214         * cgraph.c (cgraph_node::dump): Dump profile flags.
216 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
218         PR target/64652
219         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
220         reg appear first in the parallel.
222 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
224         * ipa-reference.c (set_reference_optimization_summary,
225         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
226         disabled.
227         (ignore_module_statics): New static var.
228         (propagate_bits): If ipa-reference is disabled, do not look into local
229         properties.
230         (analyze_function): Disable analysis when ipa_reference is disabled.
231         (generate_summary): Do not dump when reference is disabled;
232         collect vars accessed from functions with ipa-reference disabled.
233         (get_read_write_all_from_node): When ipa-reference is disabled, use the
234         node flags.
235         (gate): Enable for LTO.
236         (ignore_edge_p): New function.
237         (propagate): Skip functions w/o ipa-reference analysis.
238         * optc-save-gen.awk: Handle optimize_debug correctly.
239         * opth-gen.awk: Likewise.
240         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
241         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
242         fira-share-save-slots, fira-share-spill-slots,
243         fmodulo-sched-allow-regmoves, fpartial-inlining,
244         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
245         ftracer, ftree-parallelize-loops, fassociative-math,
246         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
247         Optimization
248         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
249         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
250         Optimization.
251         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
252         Fix for IPA.
254 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
256         PR ipa/64378
257         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
258         flag correctly.
259         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
261 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
263         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
264         Remove duplicate option listings.
266 2015-01-18  Felix Yang  <felix.yang@huawei.com>
268         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
269         (autofdo_source_profile::get_callsite_total_count,
270         function_instance::get_function_instance_by_decl,
271         string_table::get_index, string_table::get_index_by_decl,
272         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
273         Fix comment typos. Reformatting and minor code rearrangement.
275 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
277         * config/rs6000/rs6000.md (probe_stack): Delete.
278         (probe_stack_address): New.
280 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
282         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
283         to test for 32-bit ABIs, not !TARGET_POWERPC64.
285 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
287         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
288         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
289         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
290         snafu.
291         (rs6000_libcall_value): Use the new function.
293 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
295         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
297 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
299         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
300         implement a more precise life analysis for it during backward scan.
302 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
304         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
306 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
308         PR rtl-optimization/52773
309         * calls.c (emit_library_call_value): When pushing arguments use
310         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
311         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
312         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
314 2015-01-17  Jeff Law  <law@redhat.com>
316         PR rtl-optimization/32790
317         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
318         not ZERO_EXTEND in SET_DESTs.
320 2015-01-17  Alan Modra  <amodra@gmail.com>
322         * cprop.c (do_local_cprop): Revert last change.
324 2015-01-16  DJ Delorie  <dj@redhat.com>
325             Nick Clifton  <nickc@redhat.com>
327         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
328         (addhi3_real): Likewise.  Fix [HL+0] syntax.
329         (subqi3_real): Likewise.
330         (subhi3_real): Likewise.
331         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
332         (cbranchhi4_real): Likewise.
333         (cbranchhi4_real_inverted): Likewise.
334         (cbranchsi4_real_lt): Likewise.
335         (cbranchsi4_real_ge): Likewise.
336         (cbranchsi4_real_ge): Likewise.
337         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
338         (sub<mode>3_virt): Likewise.
339         (cbranchqi4_virt): Likewise.
340         (cbranchhi4_virt): Likewise.
341         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
342         always use '[reg+imm]' even when imm is zero.
343         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
344         (rl78_general_operand): New.
345         (rl78_nonimmediate_operand): New.
346         (rl78_nonfar_operand): Use them.
347         (rl78_nonfar_nonimm_operand): Likewise.
348         (rl78_stack_based_mem): Fix.
349         * config/rl78/constraints.md (Ibqi): New.
350         (IBqi): New.
351         (Wsa): New.
352         (Wsf): New.
353         (Cs1): Fix.
354         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
355         (iorqi3): Likewise.
356         (xorqi3): Likewise.
357         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
359         * config/rl78/constrains (Qs8): New constraint.
360         * config/rl78/rl78.c (rl78_flags_already_set): New function.
361         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
362         * config/rl78/rl78-real.md (update_Z): New attribute.
363         Update patterns to set it.
364         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
365         shorter compare and branch sequence can be used.
366         (cbranchhi4_real): Likewise.
367         (cbranchhi4_real_inverted): Likewise.
369         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
370         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
371         address space.
372         * config/rl78/rl78.c (rl78_get_name_encoding): New.
373         (rl78_option_override): Allow -mes0 only if C.
374         (characterize_address): Support subregs of symbol_refs.
375         (rl78_addr_space_address_mode): Move.  Add __near.
376         (rl78_far_p): Likewise.
377         (rl78_addr_space_pointer_mode): Likewise.
378         (rl78_as_legitimate_address): Likewise.
379         (rl78_addr_space_subset_p): Likewise.
380         (rl78_addr_space_convert): Likewise.
381         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
382         symbols with -mes0.
383         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
384         addressing.
385         (rl78_alloc_physical_registers_op1): Change logic to prefer
386         symbol[BC] addressing.
387         (frodata_section): New.
388         (rl78_asm_init_sections): Initialize it.
389         (rl78_select_section): Put __far readonly symbols in .frodata.
390         (rl78_make_type_far): New.
391         (rl78_insert_attributes): Force all readonly symbols to be __far when -mes0.
392         (rl78_asm_out_integer): New.
393         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
394         * config/rl78/rl78.opt (-mes0): New.
396         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
397         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
398         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
399         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
400         (rl78_saddr_p): New.
401         (rl78_output_aligned_common): New.
402         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
403         (rl78_handle_saddr_attribute): New.
404         (rl78_handle_naked_attribute): New.
405         (rl78_attribute_table): Add saddr.
406         (rl78_print_operand_1): Don't print '!' on saddr operands.
407         (rl78_print_operand_1): Strip encodings.
408         (rl78_sfr_p): New.
409         (rl78_strip_name_encoding): New.
410         (rl78_attrlist_to_encoding): New.
411         (rl78_encode_section_info): New.
412         (rl78_asm_init_sections): New.
413         (rl78_select_section): New.
414         (rl78_output_labelref): New.
415         (rl78_output_aligned_common): New.
416         (rl78_asm_out_integer): New.
417         (rl78_asm_ctor_dtor): New.
418         (rl78_asm_constructor): New.
419         (rl78_asm_destructor): New.
421         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
422         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
423         (transcode_memory_rtx): Update.
424         (rl78_expand_epilogue): Use A_REG instead of 0.
426 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
428         * config/arm/arm-protos.h (struct tune_params): New field
429         sched_autopref_queue_depth.
430         * config/arm/arm.c (sched-int.h): Include header.
431         (arm_first_cycle_multipass_dfa_lookahead_guard,)
432         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
433         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
434         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
435         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
436         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
437         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
438         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
439         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
440         * config/arm/t-arm (arm.o): Update.
441         * haifa-sched.c (update_insn_after_change): Update.
442         (rank_for_schedule): Use auto-prefetcher model, if requested.
443         (autopref_multipass_init): New static function.
444         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
445         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
446         variable for debug dumps.
447         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
448         (autopref_multipass_dfa_lookahead_guard): New global function that
449         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
450         (init_h_i_d): Update.
451         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
452         * sched-int.h (enum autopref_multipass_data_status): New const enum.
453         (autopref_multipass_data_): Structure for auto-prefetcher data.
454         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
455         (struct _haifa_insn_data:autopref_multipass_data): New field.
456         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
457         (autopref_multipass_dfa_lookahead_guard): Declare.
459 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
461         * rtlanal.c (get_base_term): Handle SCRATCH.
463 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
465         * config/aarch64/aarch64.c
466         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
467         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
468         * config/arm/arm.c
469         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
470         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
472 2015-01-17  Alan Modra  <amodra@gmail.com>
474         * cprop.c (do_local_cprop): Disallow replacement of fixed
475         hard registers.
477 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
479         PR target/62066
480         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
481         early return 0.
483 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
485         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
486         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
488 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
490         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
491         * config/arm/thumb1.md: ... Here.
493 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
495         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
496         TImode for TARGET_32BIT.
498 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
500         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
501         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
502         as ...
503         (rs6000_abi_word_mode): New function.
505 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
507         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
508         instead of UNITS_PER_WORD to describe the size of stack slots.
510 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
512         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
513         as rs6000_promote_function_mode.  Move comment to there.
514         (rs6000_promote_function_mode): New function.
516 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
518         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
519         -mpowerpc64 is active.
521 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
523         PR middle-end/64353
524         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
525         virtuals on start.
527 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
529         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
530         introduced in revision 219724.
532 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
533             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
535         PR target/64263
536         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
537         destination is not a GP reg.
538         (*movdi_aarch64): Likewise.
540 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
542         PR target/64623
543         * config/rs6000/default64.h: Revert ISA change.
545 2015-01-16  Richard Biener  <rguenther@suse.de>
547         PR middle-end/64614
548         * tree-ssa-uninit.c: Include tree-cfg.h.
549         (MAX_SWITCH_CASES): New define.
550         (convert_control_dep_chain_into_preds): Handle switch statements.
551         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
552         (normalize_one_pred_1): Do not split bit-manipulations.
553         Record (x & CST).
555 2015-01-16  Richard Biener  <rguenther@suse.de>
557         PR tree-optimization/64568
558         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
559         complex load rewriting for TARGET_MEM_REFs.
561 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
563         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
565 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
567         PR target/64149
568         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
569         variable.
570         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
571         (aarch64_lra_p): Remove.
573 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
575         PR target/64363
576         * ipa-chkp.h (chkp_instrumentable_p): New.
577         * ipa-chkp.c: Include tree-inline.h.
578         (chkp_instrumentable_p): New.
579         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
580         Fix processing of not instrumentable functions.
581         (chkp_versioning): Use chkp_instrumentable_p. Warn about
582         not instrumentable functions.
583         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
584         chkp_instrumentable_p.
585         * tree-inline.h (copy_forbidden): New.
586         * tree-inline.c (copy_forbidden): Not static anymore.
588 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
590         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
591         ptr1, ptr2 unused.
593 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
595         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
596         type OP_OUT to OP_INOUT.
598 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
600         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
601         (high x) y) to y if x and y have the same base.
603 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
605         * config/arm/cortex-a57.md: New.
606         * config/aarch64/aarch64.md: Include it.
607         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
608         * config/aarch64/aarch64-tune.md: Regenerate.
610 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
612         PR target/64015
613         * ccmp.c (expand_ccmp_next): New function.
614         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
615         and compare insn sequence.
616         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
617         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
618         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
619         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
620         (*ccmp_ior): Changed to ccmp_ior<mode>.
621         (cmp<mode>): New pattern.
622         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
623         parameters.
624         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
626 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
628         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
629         _mm256_bsrli_epi128): New.
630         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
632 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
634         * expmed.c (store_bit_field_using_insv): Improve warning message.
635         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
637 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
639         PR rtl-optimization/64011
640         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
641         there is partial overflow.
643 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
645         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
646         prototype.
647         (nds32_expand_epilogue_v3pop): Likewise.
648         * config/nds32/nds32.md (sibcall): Define this for sibling call
649         optimization.
650         (sibcall_register): Likewise.
651         (sibcall_immediate): Likewise.
652         (sibcall_value): Likewise.
653         (sibcall_value_register): Likewise.
654         (sibcall_value_immediate): Likewise.
655         (sibcall_epilogue): Likewise.
656         (epilogue): Pass false to indicate this is not a sibcall epilogue.
657         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
658         (nds32_expand_epilogue_v3pop): Likewise.
660 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
662         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
663         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
664         (return_internal): New.
665         (return): Define this named pattern.
666         (simple_return): Define this named pattern.
667         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
668         pattern instead of unspec_volatile_func_return.
669         (nds32_expand_epilogue_v3pop): Likewise.
670         (nds32_can_use_return_insn): New function.
672 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
674         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
675         * config/nds32/nds32.md (pop25return): New.
676         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
677         pop25return pattern.
679 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
681         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
682         -mforbid-fp-as-gp, and -mex9 options.
684 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
686         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
687         remove -mgp-direct option.
689 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
690         
691         * doc/invoke.texi (--param early-inlining-insns): Update default value.
692         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
694 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
696         * ipa-inline.c (inline_small_functions): Work around hints
697         cache issue.
699 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
701         PR target/59710
702         * doc/invoke.texi (Option Summary): Document new Nios II
703         -mgpopt= syntax.
704         (Nios II Options): Likewise.
705         * config/nios2/nios2.opt: Add -mgpopt= option support.
706         Modify existing -mgpopt and -mno-gpopt options to be aliases.
707         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
708         * config/nios2/nios2.c (nios2_option_override): Adjust
709         -mgpopt defaulting.
710         (nios2_in_small_data_p): Return true for explicit small data
711         sections even with -G0.
712         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
713         option choices.
715 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
717         PR ipa/64612
718         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
719         of comdat locals.
720         (inline_call): Fix removal of aliases.
722 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
724         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
725         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
726         * opts.c (common_handle_option): Add -fsanitize=vptr.
727         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
728         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
729         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
730         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
731         (ubsan_expand_vptr_ifn): New prototype.
732         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
733         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
734         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
735         expand_LOOP_VECTORIZED): Make argument nameless, remove
736         ATTRIBUTE_UNUSED.
737         (expand_UBSAN_VPTR): New function.
738         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
739         in fn spec.
740         (UBSAN_VPTR): New internal function.
741         * sanopt.c (tree_map_traits): Renamed to ...
742         (sanopt_tree_map_traits): ... this.
743         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
744         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
745         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
746         (maybe_optimize_ubsan_vptr_ifn): New function.
747         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
748         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
749         -fsanitize=vptr.
750         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
751         internal calls like pure functions for aliasing, even when they
752         have other side-effects that prevent making them ECF_PURE.
753         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
754         (ubsan_expand_vptr_ifn): New function.
756 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
758         PR rtl-optimization/64110
759         * stmt.c (parse_output_constraint): Process '^' and '$'.
760         (parse_input_constraint): Ditto.
761         * lra-constraints.c (process_alt_operands): Process the new
762         constraints.
763         * ira-costs.c (record_reg_classes): Process the new constraint
764         '^'.
765         * genoutput.c (indep_constraints): Add '^' and '$'.
766         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
767         * doc/md.texi: Add description of the new constraints.
769 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
770             Bernd Schmidt  <bernds@codesourcery.com>
771             Cesar Philippidis  <cesar@codesourcery.com>
772             James Norris  <jnorris@codesourcery.com>
773             Tom de Vries  <tom@codesourcery.com>
774             Ilmir Usmanov  <i.usmanov@samsung.com>
775             Dmitry Bocharnikov  <dmitry.b@samsung.com>
776             Evgeny Gavrin  <e.gavrin@samsung.com>
777             Jakub Jelinek  <jakub@redhat.com>
779         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
780         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
781         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
782         New function types.
783         * builtins.c: Include "gomp-constants.h".
784         (expand_builtin_acc_on_device): New function.
785         (expand_builtin, is_inexpensive_builtin): Handle
786         BUILT_IN_ACC_ON_DEVICE.
787         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
788         New macros.
789         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
790         flag_openmp.
791         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
792         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
793         i386/intelmic-offload.h.
794         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
795         to libgomp and its dependencies.
796         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
797         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
798         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
799         * config/ia64/hpux.h (LIB_SPEC): Likewise.
800         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
801         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
802         * doc/generic.texi: Update for OpenACC changes.
803         * doc/gimple.texi: Likewise.
804         * doc/invoke.texi: Likewise.
805         * doc/sourcebuild.texi: Likewise.
806         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
807         GF_OMP_FOR_KIND_OACC_LOOP.
808         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
809         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
810         GF_OMP_TARGET_KIND_OACC_UPDATE,
811         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
812         Dump more data.
813         * gimple.c: Update comments for OpenACC changes.
814         * gimple.def: Likewise.
815         * gimple.h: Likewise.
816         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
817         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
818         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
819         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
820         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
821         appropriate place.
822         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
823         * gimplify.c: Include "gomp-constants.h".
824         Update comments for OpenACC changes.
825         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
826         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
827         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
828         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
829         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
830         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
831         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
832         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
833         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
834         OMP_CLAUSE_SEQ.
835         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
836         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
837         OMP_CLAUSE_SET_MAP_KIND.
838         (gimplify_oacc_cache): New function.
839         (gimplify_omp_for): Handle OACC_LOOP.
840         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
841         OACC_DATA.
842         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
843         OACC_EXIT_DATA, OACC_UPDATE.
844         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
845         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
846         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
847         (gimplify_body): Consider flag_openacc next to flag_openmp.
848         * lto-streamer-out.c: Include "gomp-constants.h".
849         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
850         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
851         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
852         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
853         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
854         (BUILT_IN_ACC_ON_DEVICE): New builtins.
855         * omp-low.c: Include "gomp-constants.h".
856         Update comments for OpenACC changes.
857         (struct omp_context): Add reduction_map, gwv_below, gwv_this
858         members.
859         (extract_omp_for_data, use_pointer_for_field, install_var_field)
860         (new_omp_context, delete_omp_context, scan_sharing_clauses)
861         (create_omp_child_function, scan_omp_for, scan_omp_target)
862         (check_omp_nesting_restrictions, lower_reduction_clauses)
863         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
864         Update for OpenACC changes.
865         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
866         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
867         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
868         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
869         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
870         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
871         OMP_CLAUSE_MAP_*.
872         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
873         Handle GF_OMP_FOR_KIND_OACC_LOOP.
874         (expand_omp_target, lower_omp_target): Handle
875         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
876         GF_OMP_TARGET_KIND_OACC_UPDATE,
877         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
878         GF_OMP_TARGET_KIND_OACC_DATA.
879         (pass_expand_omp::execute, execute_lower_omp)
880         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
881         flag_openmp.
882         (offload_symbol_decl): New variable.
883         (oacc_get_reduction_array_id, oacc_max_threads)
884         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
885         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
886         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
887         (oacc_gimple_assign, oacc_initialize_reduction_data)
888         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
889         functions.
890         (is_targetreg_ctx): Remove function.
891         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
892         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
893         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
894         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
895         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
896         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
897         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
898         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
899         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
900         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
901         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
902         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
903         * tree-core.h: Update comments for OpenACC changes.
904         (enum omp_clause_map_kind): Remove.
905         (struct tree_omp_clause): Change type of map_kind member from enum
906         omp_clause_map_kind to unsigned char.
907         * tree-inline.c: Update comments for OpenACC changes.
908         * tree-nested.c: Likewise.  Include "gomp-constants.h".
909         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
910         (convert_tramp_reference_stmt, convert_gimple_call): Update for
911         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
912         OMP_CLAUSE_SET_MAP_KIND.
913         * tree-pretty-print.c: Include "gomp-constants.h".
914         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
915         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
916         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
917         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
918         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
919         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
920         instead of OMP_CLAUSE_MAP_*.
921         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
922         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
923         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
924         * tree-streamer-in.c: Include "gomp-constants.h".
925         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
926         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
927         * tree-streamer-out.c: Include "gomp-constants.h".
928         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
929         OMP_CLAUSE_MAP_*.
930         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
931         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
932         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
933         * tree.c (omp_clause_num_ops): Update accordingly.
934         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
935         Likewise.
936         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
937         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
938         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
939         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
940         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
941         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
942         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
943         (OMP_CLAUSE_SET_MAP_KIND): New macro.
944         * varpool.c (varpool_node::get_create): Consider flag_openacc next
945         to flag_openmp.
946         * config/i386/intelmic-offload.h: New file.
947         * config/nvptx/offload.h: Likewise.
949 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
951         * explow.h: Remove duplicate contents.
952         * dojump.h: Likewise.
954 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
956         * arm.c (arm_xgene_tune): Add default initializer for instruction
957         fusion.
959 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
961         PR ipa/64068
962         PR ipa/64559
963         * ipa.c (symbol_table::remove_unreachable_nodes):
964         Do not put abstract origins into boundary.
966 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
968         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
969         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
971 2015-01-15  Steve Ellcey  <sellcey@mips.com>
973         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
974         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
975         builtins.def, and chkp-builtins.def.
977 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
979         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
980         ISA 2.7 (POWER8).
982 2015-01-15  Richard Biener  <rguenther@suse.de>
984         PR tree-optimization/61743
985         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
986         information on PHIs for some simple cases.
988 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
990         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
991         Include xgene1.md.
992         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
993         * config/arm/arm-cores.def (xgene1): New entry.
994         * config/arm/arm-tables.opt: Regenerate.
995         * config/arm/arm-tune.md: Regenerate.
996         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
998 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
1000         * tree-if-conv.c: Include hash-map.h.
1001         (aggressive_if_conv): New variable.
1002         (fold_build_cond_expr): Add simplification of non-zero condition.
1003         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
1004         destination block is not always executed.
1005         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
1006         than two predecessors if AGGRESSIVE_IF_CONV is true.
1007         (if_convertible_stmt_p): Fix commentary.
1008         (all_preds_critical_p): New function.
1009         (has_pred_critical_p): New function.
1010         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
1011         BB can have more than two predecessors and all incoming edges can be
1012         critical.
1013         (predicate_bbs): Skip predication for loop exit block, use build2_loc
1014         to compute predicate for true edge.
1015         (find_phi_replacement_condition): Delete this function.
1016         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
1017         Allow interchange PHI arguments if EXTENDED is false.
1018         Change check that block containing reduction statement candidate
1019         is predecessor of phi-block since phi may have more than two arguments.
1020         (phi_args_hash_traits): New helper structure.
1021         (struct phi_args_hash_traits): New type.
1022         (phi_args_hash_traits::hash): New function.
1023         (phi_args_hash_traits::equal_keys): New function.
1024         (gen_phi_arg_condition): New function.
1025         (predicate_scalar_phi): Add handling of phi nodes with more than two
1026         arguments, delete COND and TRUE_BB arguments, insert body of
1027         find_phi_replacement_condition to predicate ordinary phi nodes.
1028         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
1029         delete call of find_phi_replacement_condition and invoke
1030         predicate_scalar_phi with two arguments.
1031         (insert_gimplified_predicates): Add assert that non-predicated block
1032         don't have statements to insert.
1033         (ifcvt_split_critical_edges): New function.
1034         (ifcvt_split_def_stmt): Likewise.
1035         (ifcvt_walk_pattern_tree): Likewise.
1036         (stmt_is_root_of_bool_pattern): Likewise.
1037         (ifcvt_repair_bool_pattern): Likewise.
1038         (ifcvt_local_dce): Likewise.
1039         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
1040         is copy of inner or outer loop force_vectorize field, invoke
1041         ifcvt_split_critical_edges, ifcvt_local_dce and
1042         ifcvt_repair_bool_pattern for aggressive if-conversion.
1044 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
1046         * config/aarch64/aarch64.md: Include xgene1.md.
1047         * config/aarch64/xgene1.md: New file.
1049 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
1051         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
1052         xgene1 (APM XGene-1) core definition.
1053         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
1054         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
1055         * doc/invoke.texi: Document -mcpu=xgene1.
1057 2015-10-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1059         * dojump.h: New header file.
1060         * explow.h: Likewise.
1061         * expr.h: Remove includes.
1062         Move expmed.c prototypes to expmed.h.
1063         Move dojump.c prototypes to dojump.h.
1064         Move alias.c prototypes to alias.h.
1065         Move explow.c prototypes to explow.h.
1066         Move calls.c prototypes to calls.h.
1067         Move emit-rtl.c prototypes to emit-rtl.h.
1068         Move varasm.c prototypes to varasm.h.
1069         Move stmt.c prototypes to stmt.h.
1070         (saved_pending_stack_adjust): Move to dojump.h.
1071         (adjust_address): Move to explow.h.
1072         (adjust_address_nv): Move to emit-rtl.h.
1073         (adjust_bitfield_address): Likewise.
1074         (adjust_bitfield_address_size): Likewise.
1075         (adjust_bitfield_address_nv): Likewise.
1076         (adjust_automodify_address_nv): Likewise.
1077         * explow.c (expr_size): Move to expr.c.
1078         (int_expr_size): Likewise.
1079         (tree_expr_size): Likewise.
1080         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1081         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
1082         * genemit.c (main): Generate includes statistics.h, real.h, fixed-value.h,
1083         insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
1084         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h, function.h,
1085         statistics.h, real.h, fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
1086         stmt.h.
1087         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
1088         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
1089         * genemit.c (open_base_files): Generate includes flags.h, statistics.h, real.h,
1090         fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h,
1091         stmt.h.
1092         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h, hash-set.h, vec.h,
1093         machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h, flags.h, statistics.h,
1094         double-int.h, real.h, fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h,
1095         insn-config.h, expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
1096         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
1097         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
1098         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
1099         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
1100         tm.h tree.h varasm.h vec.h wide-int.h.
1101         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1102         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
1103         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
1104         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
1105         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1106         explow.h expmed.h fixed-value.h flags.h inchash.h insn-config.h
1107         real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
1108         * loop-iv.c: Likewise.
1109         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1110         explow.h expmed.h fixed-value.h flags.h inchash.h real.h
1111         statistics.h stmt.h tree.h varasm.h wide-int.h.
1112         * lra-constraints.c: Likewise.
1113         * lra-eliminations.c: Likewise.
1114         * lra-lives.c: Likewise.
1115         * lra-remat.c: Likewise.
1116         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1117         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
1118         statistics.h stmt.h tree.h varasm.h wide-int.h.
1119         * hw-doloop.c: Likewise.
1120         * ira-color.c: Likewise.
1121         * ira-emit.c: Likewise.
1122         * loop-doloop.c: Likewise.
1123         * loop-invariant.c: Likewise.
1124         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1125         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
1126         statistics.h stmt.h tree.h varasm.h wide-int.h.
1127         * caller-save.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1128         explow.h expmed.h fixed-value.h inchash.h real.h statistics.h
1129         stmt.h tree.h varasm.h wide-int.h.
1130         * combine-stack-adj.c: Likewise.
1131         * cse.c: Likewise.
1132         * ddg.c: Likewise.
1133         * ifcvt.c: Likewise.
1134         * ira-costs.c: Likewise.
1135         * jump.c: Likewise.
1136         * lra-coalesce.c: Likewise.
1137         * lra-spills.c: Likewise.
1138         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1139         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
1140         stmt.h varasm.h wide-int.h.
1141         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1142         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
1143         varasm.h.
1144         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
1145         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
1146         statistics.h stmt.h varasm.h wide-int.h.
1147         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
1148         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
1149         varasm.h wide-int.h.
1150         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
1151         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1152         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
1153         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
1154         statistics.h stmt.h.
1155         * config/tilepro/tilepro.c: Likewise.
1156         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
1157         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
1158         * config/pdp11/pdp11.c: Likewise.
1159         * config/xtensa/xtensa.c: Likewise.
1160         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
1161         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
1162         varasm.h.
1163         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1164         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
1165         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
1166         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1167         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
1168         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
1169         * rtl-chkp.c: Likewise.
1170         * tree-chkp-opt.c: Likewise.
1171         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h explow.h
1172         expmed.h fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
1173         insn-config.h real.h statistics.h stmt.h varasm.h.
1174         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1175         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
1176         statistics.h stmt.h.
1177         * tree-vect-data-refs.c: Likewise.
1178         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
1179         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1180         rtl.h statistics.h stmt.h varasm.h.
1181         * internal-fn.c: Likewise.
1182         * ipa-icf-gimple.c: Likewise.
1183         * lto-section-out.c: Likewise.
1184         * tree-data-ref.c: Likewise.
1185         * tree-nested.c: Likewise.
1186         * tree-outof-ssa.c: Likewise.
1187         * tree-predcom.c: Likewise.
1188         * tree-pretty-print.c: Likewise.
1189         * tree-scalar-evolution.c: Likewise.
1190         * tree-ssa-strlen.c: Likewise.
1191         * tree-vect-loop.c: Likewise.
1192         * tree-vect-patterns.c: Likewise.
1193         * tree-vect-slp.c: Likewise.
1194         * tree-vect-stmts.c: Likewise.
1195         * tsan.c: Likewise.
1196         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1197         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
1198         stmt.h.
1199         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
1200         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1201         statistics.h stmt.h varasm.h.
1202         * loop-unroll.c: Likewise.
1203         * ubsan.c: Likewise.
1204         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
1205         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
1206         stmt.h varasm.h.
1207         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1208         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
1209         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
1210         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
1211         statistics.h stmt.h.
1212         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
1213         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
1214         statistics.h stmt.h varasm.h.
1215         * gimple-match-head.c: Likewise.
1216         * lto-cgraph.c: Likewise.
1217         * lto-section-in.c: Likewise.
1218         * lto-streamer-in.c: Likewise.
1219         * lto-streamer-out.c: Likewise.
1220         * tree-affine.c: Likewise.
1221         * tree-cfg.c: Likewise.
1222         * tree-cfgcleanup.c: Likewise.
1223         * tree-if-conv.c: Likewise.
1224         * tree-into-ssa.c: Likewise.
1225         * tree-ssa-alias.c: Likewise.
1226         * tree-ssa-copyrename.c: Likewise.
1227         * tree-ssa-dse.c: Likewise.
1228         * tree-ssa-forwprop.c: Likewise.
1229         * tree-ssa-live.c: Likewise.
1230         * tree-ssa-math-opts.c: Likewise.
1231         * tree-ssa-pre.c: Likewise.
1232         * tree-ssa-sccvn.c: Likewise.
1233         * tree-tailcall.c: Likewise.
1234         * tree-vect-generic.c: Likewise.
1235         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1236         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
1237         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1238         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
1239         * varasm.c: Likewise.
1240         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1241         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
1242         varasm.h.
1243         * init-regs.c: Likewise.
1244         * ira.c: Likewise.
1245         * omp-low.c: Likewise.
1246         * stack-ptr-mod.c: Likewise.
1247         * tree-ssa-reassoc.c: Likewise.
1248         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1249         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
1250         varasm.h.
1251         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1252         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
1253         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1254         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
1255         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1256         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
1257         * tree-ssa-phiopt.c: Likewise.
1258         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1259         fixed-value.h hashtab.h real.h statistics.h stmt.h.
1260         * config/fr30/fr30.c: Likewise.
1261         * config/frv/frv.c: Likewise.
1262         * expr.c: Likewise.
1263         * final.c: Likewise.
1264         * optabs.c: Likewise.
1265         * passes.c: Likewise.
1266         * simplify-rtx.c: Likewise.
1267         * stmt.c: Likewise.
1268         * toplev.c: Likewise.
1269         * var-tracking.c: Likewise.
1270         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1271         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1272         * lower-subreg.c: Likewise.
1273         * postreload-gcse.c: Likewise.
1274         * ree.c: Likewise.
1275         * reginfo.c: Likewise.
1276         * store-motion.c: Likewise.
1277         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1278         fixed-value.h hashtab.h real.h stmt.h varasm.h.
1279         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1280         fixed-value.h hashtab.h statistics.h stmt.h.
1281         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1282         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
1283         * except.c: Likewise.
1284         * explow.c: Likewise.
1285         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1286         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
1287         varasm.h.
1288         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1289         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
1290         * tree-ssa-structalias.c: Likewise.
1291         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1292         fixed-value.h insn-config.h real.h statistics.h.
1293         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1294         fixed-value.h insn-config.h real.h statistics.h stmt.h.
1295         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1296         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
1297         * cfgbuild.c: Likewise.
1298         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1299         fixed-value.h real.h rtl.h statistics.h stmt.h.
1300         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1301         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1302         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1303         fixed-value.h real.h statistics.h stmt.h.
1304         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1305         fixed-value.h real.h statistics.h stmt.h varasm.h.
1306         * cprop.c: Likewise.
1307         * modulo-sched.c: Likewise.
1308         * postreload.c: Likewise.
1309         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
1310         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
1311         statistics.h stmt.h varasm.h.
1312         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
1313         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1314         rtl.h statistics.h stmt.h varasm.h.
1315         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
1316         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
1317         varasm.h.
1318         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
1319         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
1320         varasm.h.
1321         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
1322         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
1323         varasm.h.
1324         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
1325         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1326         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1327         function.h real.h statistics.h stmt.h varasm.h.
1328         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1329         insn-config.h real.h statistics.h stmt.h.
1330         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1331         statistics.h stmt.h.
1332         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
1333         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
1334         statistics.h stmt.h varasm.h.
1335         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1336         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
1337         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1338         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
1339         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
1340         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
1341         statistics.h stmt.h varasm.h.
1342         * ipa-polymorphic-call.c: Likewise.
1343         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h expmed.h
1344         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
1345         stmt.h.
1346         * config/c6x/c6x.c: Likewise.
1347         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h explow.h
1348         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1349         statistics.h stmt.h varasm.h.
1350         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1351         hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h varasm.h.
1352         * ipa-split.c: Likewise.
1353         * tree-eh.c: Likewise.
1354         * tree-ssa-dce.c: Likewise.
1355         * tree-ssa-loop-niter.c: Likewise.
1356         * tree-vrp.c: Likewise.
1357         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
1358         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
1359         stmt.h.
1360         * config/nds32/nds32-fp-as-gp.c: Likewise.
1361         * config/nds32/nds32-intrinsic.c: Likewise.
1362         * config/nds32/nds32-isr.c: Likewise.
1363         * config/nds32/nds32-md-auxiliary.c: Likewise.
1364         * config/nds32/nds32-memory-manipulation.c: Likewise.
1365         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1366         * config/nds32/nds32-predicates.c: Likewise.
1367         * config/nds32/nds32.c: Likewise.
1368         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
1369         fixed-value.h hashtab.h real.h statistics.h.
1370         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
1371         fixed-value.h hashtab.h real.h statistics.h stmt.h.
1372         * config/arm/arm.c: Likewise.
1373         * config/avr/avr.c: Likewise.
1374         * config/bfin/bfin.c: Likewise.
1375         * config/h8300/h8300.c: Likewise.
1376         * config/i386/i386.c: Likewise.
1377         * config/ia64/ia64.c: Likewise.
1378         * config/iq2000/iq2000.c: Likewise.
1379         * config/m32c/m32c.c: Likewise.
1380         * config/m32r/m32r.c: Likewise.
1381         * config/m68k/m68k.c: Likewise.
1382         * config/mcore/mcore.c: Likewise.
1383         * config/mep/mep.c: Likewise.
1384         * config/mips/mips.c: Likewise.
1385         * config/mn10300/mn10300.c: Likewise.
1386         * config/moxie/moxie.c: Likewise.
1387         * config/pa/pa.c: Likewise.
1388         * config/rl78/rl78.c: Likewise.
1389         * config/rx/rx.c: Likewise.
1390         * config/s390/s390.c: Likewise.
1391         * config/sh/sh.c: Likewise.
1392         * config/sparc/sparc.c: Likewise.
1393         * config/spu/spu.c: Likewise.
1394         * config/stormy16/stormy16.c: Likewise.
1395         * config/v850/v850.c: Likewise.
1396         * config/vax/vax.c: Likewise.
1397         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
1398         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1399         * config/msp430/msp430.c: Likewise.
1400         * predict.c: Likewise.
1401         * value-prof.c: Likewise.
1402         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
1403         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
1404         * config/microblaze/microblaze.c: Likewise.
1405         * config/nios2/nios2.c: Likewise.
1406         * config/rs6000/rs6000.c: Likewise.
1407         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1408         insn-config.h real.h rtl.h statistics.h stmt.h.
1409         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1410         insn-config.h real.h statistics.h stmt.h.
1411         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
1412         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
1413         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
1414         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1415         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1416         real.h statistics.h stmt.h.
1417         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
1418         fixed-value.h statistics.h stmt.h.
1419         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
1420         stmt.h.
1422 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
1424         * gengtype.c (create_user_defined_type): Workaround
1425         -Wmaybe-uninitialized false positives.
1426         * cse.c (fold_rtx): Likewise.
1427         * loop-invariant.c (gain_for_invariant): Likewise.
1429 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
1431         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
1432         set the memory attributes in all cases but clear MEM_EXPR if need be.
1434 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
1436         PR tree-optimization/64434
1437         * cfgexpand.c (reorder_operands): New function.
1438         (expand_gimple_basic_block): Insert call of reorder_operands if
1439         optimized is true.
1441 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
1443         * config/mips/micromips.md (*swp): Remove explicit parallel.
1444         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
1445         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
1446         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
1447         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
1448         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
1449         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
1450         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
1451         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
1452         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
1453         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
1454         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
1455         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
1456         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
1457         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
1458         (mips_wrdsp): Likewise.
1459         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
1460         parallel.
1461         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
1462         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
1463         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
1464         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
1465         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
1466         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
1467         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
1468         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
1469         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
1471 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
1473         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
1474         (mips_print_operand): Support 'y' to print exact log2 in decimal
1475         of a const_int.
1476         * config/mips/mips.h (ISA_HAS_LSA): New define.
1477         (ISA_HAS_DLSA): Likewise.
1478         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
1479         * config/mips/predicates.md (const_immlsa_operand): New predicate.
1481 2015-01-15  Martin Liska  <mliska@suse.cz>
1483         PR target/64377
1484         * optc-save-gen.awk: Add support for array types.
1486 2015-01-15  Richard Biener  <rguenther@suse.de>
1488         PR middle-end/64365
1489         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
1490         for MEM_REF access functions with the same base can never partially
1491         overlap.
1493 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
1495         * common.opt: New option -fstack-protector-explicit.
1496         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
1497         (stack_protect_decl_phase): Handle stack_protect attribute for
1498         explicit stack protection requests.
1499         (expand_used_vars): Similarly.
1500         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
1501         * doc/extend.texi: Add documentation for "stack_protect" attribute.
1502         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
1504 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
1506         PR target/53988
1507         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
1508         reg-reg copies.
1509         (sh_extending_set_of_reg): New struct.
1510         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
1511         sh_remove_reg_dead_or_unused_notes): New Declarations.
1512         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
1513         sh_find_extending_set_of_reg, sh_split_tst_subregs,
1514         sh_extending_set_of_reg::use_as_extended_reg): New functions.
1515         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
1516         convert to insn_and_split and use new function sh_split_tst_subregs.
1518 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
1520         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
1521         option.
1522         (Optimization Options): Move -fuse-ld documentation to...
1523         (Link Options): ...here.
1525 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
1527         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
1528         offsets.
1529         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
1530         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
1531         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
1532         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
1533         instead of ZR for the memory operand of LL/SC.
1534         (compare_and_swap_12, sync_add<mode>): Likewise.
1535         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
1536         (sync_new_<optab>_12, sync_nand_12): Likewise.
1537         (sync_old_nand_12, sync_new_nand_12): Likewise.
1538         (sync_sub<mode>, sync_old_add<mode>): Likewise.
1539         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
1540         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
1541         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
1542         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
1543         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
1544         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
1545         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
1546         * doc/md.texi (ZC): Update description.
1548 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
1550         * builtins.c (expand_builtin_atomic_exchange): Remove error when
1551         memory model is CONSUME.
1552         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
1553         expand_builtin_atomic_store): Change invalid memory model errors to
1554         warnings.
1555         (expand_builtin_atomic_clear): Change invalid model errors to warnings
1556         and issue warning for CONSUME.
1558 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
1560         * lto-cgraph: Update function comments for
1561         lto_symtab_encoder_encode_*.
1563 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
1565         * Makefile.in (site.exp): Do not set ENABLE_LTO.
1567 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
1569         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
1570         * lto-cgraph.c (select_what_to_stream): Remove argument, use
1571         lto_stream_offload_p instead.
1572         * lto-streamer.h (select_what_to_stream): Remove argument.
1573         * passes.c (ipa_write_summaries): Likewise.
1574         * tree-pass.h (ipa_write_summaries): Likewise.
1576 2015-01-14  Richard Biener  <rguenther@suse.de>
1578         PR tree-optimization/59354
1579         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
1580         groups larger than the slp group size as having gaps.
1582 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
1584         PR middle-end/59448
1585         * builtins.c (get_memmodel): Promote consume to acquire always.
1587 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
1589         PR target/64386
1590         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
1591         V32HImode. 
1593 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
1595         PR target/64393
1596         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
1597         Enable AVX512BW.
1598         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
1599         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
1600         AVX512VBMI, as it implies AVX512BW.
1602 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
1604         PR target/64387
1605         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
1606         (vec_unpacks_hi_v16sf): Ditto.
1608 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1610         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
1611         is not available.
1613 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1615         * doc/invoke.texi (mapcs): Mention deprecation.
1616         (mapcs-frame): Likewise.
1618 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1620         PR target/64453
1621         * config/arm/arm.c (callee_saved_reg_p): Define.
1622         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
1623         register is callee saved instead of !call_used_regs[reg].
1624         (thumb1_compute_save_reg_mask): Likewise.
1626 2015-01-14  Hale Wang  <hale.wang@arm.com>
1628         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
1629         Cortex-M7.
1631 2015-01-14  Richard Biener  <rguenther@suse.de>
1633         PR lto/64415
1634         * tree-inline.c (insert_debug_decl_map): Check destination
1635         function MAY_HAVE_DEBUG_STMTS.
1636         (insert_init_debug_bind): Likewise.
1637         (insert_init_stmt): Remove redundant check.
1638         (remap_gimple_stmt): Drop debug stmts if the destination
1639         function has var-tracking assignments disabled.
1641 2015-01-14  Martin Liska  <mliska@suse.cz>
1643         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
1644         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
1646 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1648         PR target/64460
1649         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
1650         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
1652 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
1654         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
1655         level from an ARCH; do not inject the default.
1656         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
1657         MIPS_ISA_LEVEL_SPEC.
1658         (MIPS_ISA_NAN2008_SPEC): Update comment.
1659         (BASE_DRIVER_SELF_SPECS): Likewise.
1660         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
1661         MIPS_DEFAULT_ISA_LEVEL_SPEC.
1662         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
1663         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
1664         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
1666 2015-01-14  Richard Biener  <rguenther@suse.de>
1668         PR tree-optimization/64493
1669         PR tree-optimization/64495
1670         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
1671         assign the proper vectorized PHI to the inner loop exit PHIs.
1673 2015-01-14  Joey Ye  <joey.ye@arm.com>
1675         * config/arm/arm.c (arm_compute_save_reg_mask):
1676         Do not save lr in case of tail call.
1677         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
1679 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
1681         * tree-vrp.c (check_array_ref): Emit more warnings
1682         for warn_array_bounds >= 2.
1683         * common.opt: New option -Warray-bounds=.
1684         * doc/invoke.texi: Document -Warray-bounds=.
1686 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
1688         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
1689         (mforbid-fp-as-gp): Remove.
1690         (mex9): Remove.
1691         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
1692         (nds32_symbol_load_store_p): Remove.
1693         (nds32_fp_as_gp_check_available): Clean up implementation.
1694         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
1695         cases.
1696         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
1697         fp-as-gp and ex9 cases.
1699 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
1701         * tree-profile.c (init_ic_make_global_vars): Drop workaround
1702         for bintuils bug 14342.
1703         (init_ic_make_global_vars): Likewise.
1704         (gimple_init_edge_profiler): Likewise.
1705         (gimple_gen_ic_func_profiler): Likewise.
1707 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1709         * ipa-inline.c (inline_small_functions): Swap the operands in
1710         enum.
1712 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
1714         PR ipa/64481
1715         * ipa-inline-analysis.c (node_growth_cache): Remove.
1716         (initialize_growth_caches): Do not initialize it.
1717         (free_growth_caches): Do not free it.
1718         (do_estimate_growth): Rename to ...
1719         (estimate_growth): ... this one; drop growth cache code.
1720         (growth_likely_positive): Always go the heuristics way.
1721         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
1722         (reset_edge_caches): Do not reset node growth.
1723         (heap_edge_removal_hook): Do not maintain cache.
1724         (inline_small_functions): Likewise; strenghten sanity check.
1725         (ipa_inline): Do not maintain caches.
1726         * ipa-inline.h (node_growth_cache): Remove.
1727         (do_estimate_growth): Remove to ...
1728         (estimate_growth): this one; remove inline version.
1729         (reset_node_growth_cache): Remove.
1731 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
1733         PR ipa/64565
1734         * ipa-inline.c (inline_small_functions): Update callee keys after
1735         resolving speculation
1736         (inline_small_functions): Always check monotonicity of the queue.
1738 2015-01-13  Marek Polacek  <polacek@redhat.com>
1740         PR middle-end/64391
1741         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
1743 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
1745         PR rtl-optimization/64286
1746         * ree.c (combine_reaching_defs): Move part of comment earlier,
1747         remove !SCALAR_INT_MODE_P check.
1748         (add_removable_extension): Don't add vector mode
1749         extensions if all uses of the source register aren't the same
1750         vector extensions.
1752 2015-01-13  Renlin Li  <renlin.li@arm.com>
1754         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
1755         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
1757 2015-01-13  Martin Liska  <mliska@suse.cz>
1759         * ipa-icf.c (sem_function::equals_private): Call new functions
1760         cl_target_option_print_diff and cl_optimization_print_diff.
1761         * optc-save-gen.awk (cl_target_option_print_diff): New function.
1762         (cl_optimization_print_diff): Likewise.
1763         * opth-gen.awk: Likewise.
1765 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
1767         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
1768         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
1769         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
1770         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
1771         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
1772         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
1774 2015-01-13  Andrew Pinski   <apinski@cavium.com>
1776         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
1777         instead of src mode.    
1779 2015-01-13  Richard Biener  <rguenther@suse.de>
1781         PR lto/64373
1782         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
1783         DECL_CONTEXT.
1785 2015-01-13  Andrew Pinski   <apinski@cavium.com>
1787         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
1788         volatile mems.
1789         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
1791 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
1793         PR middle-end/63974
1794         * cfgexpand.c (expand_computed_goto): Don't call
1795         convert_memory_address here.
1797 2015-01-13  Richard Biener  <rguenther@suse.de>
1799         PR tree-optimization/64406
1800         * tree-loop-distibution.c (pass_loop_distribution::execute):
1801         Reset the SCEV hashtable if we distributed anything.
1803 2015-01-13  Richard Biener  <rguenther@suse.de>
1805         PR tree-optimization/64404
1806         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
1807         SLP types for CSEd loads.
1809 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1811         PR tree-optimization/64436
1812         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
1813         merge of two symbolic numbers for a bitwise OR to ...
1814         (perform_symbolic_merge): This. Also fix computation of the range and
1815         end of the symbolic number corresponding to the result of a bitwise OR.
1817 2015-01-13  Richard Biener  <rguenther@suse.de>
1819         PR tree-optimization/64568
1820         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
1821         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
1823 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
1825         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
1826         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
1828 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
1830         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
1831         target-specific symbol_ref flag.
1832         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
1833         resides in rodata section.
1834         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
1835         (nds32_encode_section_info): New function.
1837 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
1839         * config/nds32/nds32.md (call): Use pseudo instruction bal which
1840         clobbers TA_REGNUM if large code model is specified.
1841         (call_register): Likewise.
1842         (call_immediate): Likewise.
1843         (call_value): Likewise.
1844         (call_value_register): Likewise.
1845         (call_value_immediate): Likewise.
1847 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
1849         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
1850         (TARGET_CMODEL_MEDIUM): New macro.
1851         (TARGET_CMODEL_LARGE): New macro.
1852         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
1853         code model setting in assembly code.
1855 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
1857         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
1858         Remove MASK_GP_DIRECT flag.
1859         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
1860         one of the multilib default options.
1861         * config/nds32/nds32.opt (mgp-direct): Remove.
1862         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
1863         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
1865 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
1867         * config/nds32/nds32.opt (mcmodel): Add new option.
1868         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
1869         to describe code model.
1871 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
1873         PR target/64479
1874         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
1876 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
1878         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
1879         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
1880         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
1881         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
1882         __builtin_sh_set_fpscr.
1884 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
1886         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
1887         after a funtion name just to indicate it is a function.
1888         ([-fsanitize-undefined-trap-on-error]): Likewise.
1889         ([-fdbg-cnt=]): Likewise.
1890         ([-mmemcpy]): Likewise.
1891         ([-mflush-func]): Likewise.
1892         ([-msynci]): Likewise.
1894 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
1896         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
1897         example.
1898         
1899 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
1901         PR tree-optimization/64563
1902         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
1903         instead of != VR_VARYING.
1905         PR target/64513
1906         * config/i386/i386.c (ix86_expand_prologue): Add
1907         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
1909         PR tree-optimization/64454
1910         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
1911         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
1912         for signed or [0, op1 - 1] for unsigned modulo.
1913         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
1914         even if op1 does not satisfy integer_pow2p.
1916         PR other/64370
1917         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
1919 2015-01-12  Jeff Law  <law@redhat.com>
1921         PR target/64461
1922         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
1923         (trunchiqi2, truncsihi2): Similarly.
1925         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
1926         rather than calling F.
1928 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1930         * tsan.c (instrument_expr): Use force_gimple_operand.
1931         Use may_be_nonaddressable_p instead of is_gimple_addressable.
1933 2015-01-12  Richard Biener  <rguenther@suse.de>
1935         PR tree-optimization/64530
1936         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
1937         back dr1.
1939 2015-01-12  Richard Biener  <rguenther@suse.de>
1941         PR middle-end/64357
1942         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
1943         latches properly.
1945 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1947         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
1948         Cortex-A17 tuning parameters.
1949         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
1951 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1953         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
1954         * config/arm/arm.c (arm_macro_fusion_p): New function.
1955         (arm_macro_fusion_pair_p): Likewise.
1956         (TARGET_SCHED_MACRO_FUSION_P): Define.
1957         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
1958         (ARM_FUSE_NOTHING): Likewise.
1959         (ARM_FUSE_MOVW_MOVT): Likewise.
1960         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
1961         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
1962         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
1963         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
1964         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
1965         arm_cortex_a5_tune): Specify fuseable_ops value.
1967 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1969         PR bootstrap/64561
1970         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
1971         test for PIE with copy reloc.
1972         * configure: Regenerated.
1974 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1976         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
1977         in gen_rtx_REG.
1978         (arm_tls_descseq_addr): Likewise.
1979         (arm_gen_movmemqi): Likewise.
1980         (arm_expand_epilogue_apcs_frame): Likewise.
1981         (arm_expand_epilogue): Likewise.
1982         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
1983         in gen_rtx_REG.
1985 2015-01-12  Martin Liska  <mliska@suse.cz>
1987         PR ipa/64550
1988         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
1989         volatility for correct operands.
1991 2015-01-12  Martin Liska  <mliska@suse.cz>
1993         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
1994         that a function is not leaf.
1995         (sem_function::compare_polymorphic_p): Likewise.
1997 2015-01-12  Martin Liska  <mliska@suse.cz>
1999         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
2000         that a function is not leaf.
2001         (sem_function::compare_polymorphic_p): Likewise.
2003 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2005         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
2006         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
2007         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
2008         fold-const.h, tree-check.h.
2010 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
2012         PR ipa/63967
2013         PR ipa/64425
2014         * ipa-inline.c (compute_uninlined_call_time,
2015         compute_inlined_call_time): Use counts for extra precision when
2016         needed possible.
2017         (big_speedup_p): Fix formating.
2018         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
2019         (relative_time_benefit): Remove.
2020         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
2021         merge guessed and read profile paths.
2022         (inline_small_functions): Count only !optimize_size functions into
2023         initial size; be more lax about sanity check when profile is used;
2024         be sure to update inlined function profile when profile is read.
2026 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
2028         PR ipa/63470
2029         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
2030         cost when edge becomes direct.
2031         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
2032         is resolved or when introducing new speculation.
2034 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
2036         PR ipa/64551
2037         PR ipa/64552
2038         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
2039         '||' to fix typo issue.
2041         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
2042         accept and return NULL.
2044 2015-01-12  Martin Liska  <mliska@suse.cz>
2046         * cgraph.c (cgraph_edge::remove_callee): Move function to header
2047         file for being inlined.
2048         (cgraph_set_edge_callee): Delete.
2049         (cgraph_edge::redirect_callee): Move function to header file
2050         for being inlined.
2051         (cgraph_edge::make_direct): Use new function.
2052         (cgraph_edge::dump_edge_flags): New function created from
2053         static dump_edge_flags function.
2054         (cgraph_node::dump): Use new function.
2055         (cgraph_edge::verify_count_and_frequency): New function created
2056         from verify_edge_count_and_frequency.
2057         (cgraph_edge::verify_corresponds_to_fndecl): New function created
2058         from verify_edge_corresponds_to_fndecl.
2059         (verify_edge_corresponds_to_fndecl): Delete.
2060         (cgraph_node::verify_node): Use new function.
2061         * cgraph.h (cgraph_edge::set_callee): New function.
2062         (cgraph_edge::dump_edge_flags): Likewise.
2063         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
2065 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
2067         * ipa-utils.c (estimate_function_body_sizes): Do not
2068         free node params when called late with early=true.
2070 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
2072         * doc/md.texi (Instruction Patterns): Rewrite text for
2073         clarity.
2074         (Example): Likewise.
2076 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
2078         * doc/invoke.texi (Option Summary): Break long lines.
2079         [(-fdiagnostics-color)]: Put long literal in @smallexample
2080         instead of inline.
2081         [(-fsanitize-recover)]: Likewise.
2082         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
2083         [(-ffast-math)]: Likewise.
2084         [(--param max-inline-insns-recursive)]: Likewise.
2085         [(--param max-inline-recursive-depth)]: Likewise.
2086         [(-mno-text-section-literals)]: Likewise.
2087         
2088 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
2090         * doc/install.texi: Update for libgomp being renamed from "GNU
2091         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
2092         Runtime Library".
2093         * doc/sourcebuild.texi: Likewise.
2095 2015-01-10  Anthony Green  <green@moxielogic.com>
2097         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
2098         mul.x availability for moxiebox configuration.
2100 2015-01-09  Anthony Green  <green@moxielogic.com>
2102         * config/moxie/moxie.md: Tabify assembly output.
2104 2015-01-09  Anthony Green  <green@moxielogic.com>
2106         * config/moxie/moxie.md (CC_REG): Correct register definition.
2108 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
2110         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
2111         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
2112         of log files.
2114 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
2116         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
2118 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
2119             Jakub Jelinek  <jakub@redhat.com>
2121         PR middle-end/64412
2122         * lto-streamer.h (lto_stream_offload_p): New declaration.
2123         * lto-streamer.c (lto_stream_offload_p): New variable.
2124         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
2125         at the same time as section_name_prefix.
2126         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
2127         if lto_stream_offload_p.
2128         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
2129         stream TREE_TARGET_OPTION if lto_stream_offload_p.
2130         (write_ts_function_decl_tree_pointers): Don't
2131         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
2132         * tree-streamer-in.c (unpack_value_fields): Don't stream
2133         TREE_TARGET_OPTION in if ACCEL_COMPILER.
2134         (lto_input_ts_function_decl_tree_pointers): Don't stream
2135         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
2136         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
2137         instead of section_name_prefix string comparisons.
2139 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
2141         PR rtl-optimization/64536
2142         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
2143         tablejumps.
2145 2015-01-09  Michael Collison  <michael.collison@linaro.org>
2147         PR tree-optimization/64322
2148         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
2149         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
2151 2015-01-09  Tom de Vries  <tom@codesourcery.com>
2153         PR rtl-optimization/64539
2154         * regcprop.c (kill_clobbered_values): Factor out of ...
2155         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
2156         instead of note_stores with kill_clobbered_value.
2158 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
2160          * ginclude/unwind-arm-common.h: Revert previous commit.
2162 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
2164         * config.gcc (arm*-*-freebsd*): New configuration.
2165         * config/arm/freebsd.h: New file.
2166         * config.host: Add extra components for arm*-*-freebsd*.
2167         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
2168         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
2170 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2172         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
2173         for -mcpu=e6500.
2174         * config/rs6000/t-rtems: Add e6500 multilibs.
2176 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2178         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
2179         MPC8540.
2181 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2183         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
2184         MULTILIB_EXCEPTIONS.
2186 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2188         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
2189         MULTILIB_EXCEPTIONS.
2191 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2193         * config/arm/t-rtems-eabi: Rename to...
2194         * config/arm/t-rtems: ...this.
2195         * config/arm/rtems-eabi.h: Rename to...
2196         * config/arm/rtems.h: ...this.
2197         * config.gcc (arm*-*-rtems*): Reflect changes above.
2199 2015-01-09  Richard Biener  <rguenther@suse.de>
2201         PR tree-optimization/64410
2202         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
2203         on the LHS.
2204         (execute_update_addresses_taken): Deal with that.
2205         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
2206         loads/stores for complex variables.
2208 2015-01-09  Martin Liska  <mliska@suse.cz>
2210         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
2211         name comparison.
2212         (func_checker::compare_memory_operand): New function.
2213         (func_checker::compare_operand): Split case to newly
2214         added functions.
2215         (func_checker::compare_cst_or_decl): New function.
2216         (func_checker::compare_gimple_call): Identify
2217         memory operands.
2218         (func_checker::compare_gimple_assign): Likewise.
2219         * ipa-icf-gimple.h: New function.
2221 2015-01-09  Martin Liska  <mliska@suse.cz>
2223         PR ipa/64503
2224         * sreal.c (sreal::dump): Change unsigned format to signed for
2225         m_exp value.
2226         (sreal::to_double): Replace exp2 with scalbln.
2228 2015-01-09  Martin Liska  <mliska@suse.cz>
2230         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
2231         * ipa-icf.c (sem_function::equals_private): Add support for target and
2232         (sem_item_optimizer::merge_classes): Remove redundant function
2233         optimization flags comparison.
2234         * tree.h (target_opts_for_fn): New function.
2236 2015-01-09  Tom de Vries  <tom@codesourcery.com>
2238         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
2240 2015-01-09  Kito Cheng  <kito@0xlab.org>
2242         PR rtl-optimization/64348
2243         * lra-constraints.c (split_reg): Fix caller-save store/restore
2244         instruction generation.
2246 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
2248         PR gcov-profile/61790
2249         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
2250         long long.  Fallback to int64_t if host doesn't have long long and
2251         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
2253 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
2255         PR tree-optimization/63989
2256         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
2257         from 1000 to 10000.
2258         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
2259         (get_stridx): If we don't have a record for certain SSA_NAME,
2260         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
2261         constant offset, call get_stridx_plus_constant.
2262         (get_stridx_plus_constant): New function.
2263         (zero_length_string): Don't use get_stridx here.
2265         PR target/55023
2266         PR middle-end/64388
2267         * dse.c (struct insn_info): Mention frame_read set also
2268         before reload for tail calls on some targets.
2269         (scan_insn): Revert 2014-12-22 change.  Set frame_read
2270         also before reload for tail calls if
2271         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
2272         instead of add_non_frame_wild_read for non-const/memset
2273         tail calls after reload.
2275 2015-01-08  Jason Merrill  <jason@redhat.com>
2277         * ubsan.c (do_ubsan_in_current_function): New.
2278         (pass_ubsan::gate): Use it.
2279         * ubsan.h: Declare it.
2280         * convert.c (convert_to_integer): Use it.
2282 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
2284         PR target/64338
2285         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
2286         compare_code when it is unconditionally overwritten afterwards.
2287         Use ix86_reverse_condition instead of reverse_condition.  Don't
2288         change code if *reverse_condition* returned UNKNOWN and don't
2289         swap ct/cf and negate diff in that case.
2291 2015-01-08  Mike Stump  <mikestump@comcast.net>
2293         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
2294         (pass_tsan_O0::gate): Likewise.
2295         * extend.texi (Function Attributes): Add no_sanitize_thread
2296         documentation.
2298 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
2300         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
2301         for registering builtins.
2302         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
2303         add -fopenmp to the argv_obstack used when invoking
2304         compile_for_target.
2306         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
2307         add "-m32" or "-m64" to argv_obstack.
2308         (generate_host_descr_file): Likewise, when invoking host_compiler.
2309         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
2310         ld.
2312 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
2314         * config/sh/sh-mem.cc: Use constant as second operand when emitting
2315         tstsi_t insns.
2317 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
2319         PR target/55212
2320         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
2321         constant load if constant operand fits into I08.
2323 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
2325         PR sanitizer/64336
2326         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
2327         and TREE_THIS_VOLATILE for MEM_REFs.
2328         (build5_stat): Fix up initialization of TREE_READONLY and
2329         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
2331 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
2333         PR target/64533
2334         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
2335         of r for the second alternative of the destination operand.
2337 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
2339         PR target/36557
2340         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
2342 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
2344         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
2345         keywords.
2346         ([-fivar-visibility], [-fvisibility]): Likewise.
2348 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
2350         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
2351         the file where @code, @command, etc is more appropriate.
2353 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
2355         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
2356         of -mrecip= documentation.
2358 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2360         PR target/64505
2361         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
2362         correct reload handler if -m32 -mpowerpc64 is used.
2364 2015-01-06  Tom de Vries  <tom@codesourcery.com>
2366         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
2368 2015-01-08  Christian Bruel  <christian.bruel@st.com>
2370         PR target/64507
2371         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
2373 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2375         PR tree-optimization/63259
2376         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
2377         if optab exists for 16bit byteswap.
2379 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
2381         * opts.c (common_handle_option): Add support for
2382         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
2383         * doc/invoke.texi: Document -fno-sanitize=all,
2384         -f{,no-}sanitize-recover=all.  Document that
2385         -fsanitize=float-cast-overflow is not enabled
2386         by -fsanitize=undefined.  Fix up documentation
2387         of -f{,no-}sanitize-recover.
2389 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
2391         * config.gcc: Add Visium support.
2392         * configure.ac: Likewise.
2393         * configure: Regenerate.
2394         * doc/extend.texi (interrupt attribute): Add Visium.
2395         * doc/invoke.texi: Document Visium options.
2396         * doc/install.texi: Document Visium target.
2397         * doc/md.texi: Document Visium constraints.
2398         * common/config/visium: New directory.
2399         * config/visium: Likewise.
2401 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
2403         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
2404         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
2406 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
2408         * combine.c (combine_validate_cost): Do not count the cost of a
2409         split I2 twice.  Do not display it twice in the dump, either.
2411 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
2413         Revert parts of r219199.
2414         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
2415         <inttypes.h>.
2416         ([-Wtraditional]): Restore markup on <limits.h>.
2418 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
2420         PR c++/31397
2421         * doc/invoke.texi: Document -Wsuggest-override.
2423 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
2425         PR rtl-optimization/64287
2426         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
2427         (process_options): Disable flag_ipa_ra if profiling.
2429 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
2431         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
2433 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
2435         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
2436         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
2437         put under #if TARGET_LOOPS guard.
2439 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
2441         * config/i386/i386.c (output_387_binary_op): Use std::swap.
2443 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
2445         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
2446         * rtl.h (refers_to_regno_p): Add overload.
2447         * cse.c: Use it.
2448         * bt-load.c: Likewise.
2449         * combine.c: Likewise.
2450         * df-scan.c: Likewise.
2451         * sched-deps.c: Likewise.
2452         * config/s390/s390.c: Likewise.
2453         * config/m32r/m32r.c: Likewise.
2454         * config/rs6000/spe.md: Likewise.
2455         * config/rs6000/rs6000.c: Likewise.
2456         * config/pa/pa.c: Likewise.
2457         * config/stormy16/stormy16.c: Likewise.
2458         * config/cris/cris.c: Likewise.
2459         * config/arc/arc.md: Likewise.
2460         * config/arc/arc.c: Likewise.
2461         * config/sh/sh.md: Likewise.
2462         * config/sh/sh.c: Likewise.
2463         * config/frv/frv.c: Likewise.
2465 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
2467         PR sanitizer/64265
2468         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
2469         call as cleanup of the whole body.
2470         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
2471         * tsan.c (replace_func_exit): New function.
2472         (instrument_func_exit): Moved earlier.
2473         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
2474         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
2475         been found.
2476         (tsan_pass): Don't call instrument_func_exit.
2477         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
2478         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
2479         inlining.
2481         PR sanitizer/64344
2482         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
2483         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
2484         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
2485         if the result is integer_zerop, return NULL_TREE.
2486         * convert.c (convert_to_integer): Pass expr as ARG.
2488         PR tree-optimization/64465
2489         * tree-inline.c (redirect_all_calls): During inlining
2490         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
2491         changed the stmt to a non-throwing call.
2493 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
2495         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
2496         etc markup throughout the file.
2498 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2500         Enable experimental TSAN support for Ada.
2501         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
2503 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
2505         PR tree-optimization/64494
2506         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
2507         clear SSA_NAME_ANTI_RANGE_P flag.
2509 2015-01-05  Marek Polacek  <polacek@redhat.com>
2511         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
2513 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
2515         Update copyright years.
2517         * gcc.c (process_command): Update copyright notice dates.
2518         * gcov-dump.c: Ditto.
2519         * gcov.c: Ditto.
2520         * doc/cpp.texi: Bump @copying's copyright year.
2521         * doc/cppinternals.texi: Ditto.
2522         * doc/gcc.texi: Ditto.
2523         * doc/gccint.texi: Ditto.
2524         * doc/gcov.texi: Ditto.
2525         * doc/install.texi: Ditto.
2526         * doc/invoke.texi: Ditto.
2528         * auto-profile.c, auto-profile.h: Fix up Copyright line.
2530 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
2532         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
2533         verb tense, etc.
2534         ([-fvtable-verify], [-fvtv-debug]): Likewise.
2535         ([-Wabi]): Likewise.
2536         ([-fmessage-length]): Likewise.
2537         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
2538         ([-Wno-discarded-qualifiers]): Likewise.
2539         ([-Wnodiscarded-array-qualifiers]): Likewise.
2540         ([-Wno-virtual-move-assign]): Likewise.
2541         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
2542         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
2543         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
2544         ([-fsanitize-undefined-trap-on-error]): Likewise.
2545         ([-floop-interchange]): Likewise.
2546         ([-ftree-coalesce-inlined-vars]): Likewise.
2547         ([-fvect-cost-model]): Likewise.
2548         ([-flto]): Likewise.
2549         ([--param]): Likewise.
2550         (Spec Files): Likewise.
2551         ([-mstrict-align]): Likewise.
2552         ([-mfix-cortex-a53-835769]): Likewise.
2553         ([-march], [-mtune]): Likewise.
2554         ([-mpic-register]): Likewise.
2555         ([-munaligned-access]): Likewise.
2556         ([-msp8]): Likewise.
2557         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
2558         (AVR Built-in Macros): Likewise.
2559         ([-mpreferred-stack-boundary]): Likewise.
2560         ([-mtune-crtl]): Likewise.
2561         ([-mashf]): Likewise.
2562         ([-mmcu=]): Likewise.
2563         ([-minrt]): Likewise.
2564         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
2565         ([-mupper-regs]): Likewise.
2566         ([-matomic-model]): Likewise.
2567         ([-mdiv]): Likewise.
2568         ([-mzdcbranch]): Likewise.
2569         ([-mdisable-callt]): Likewise.
2570         ([-msoft-float]): Likewise.
2571         ([-m8byte-align]): Likewise.
2572         ([-fstack-reuse]): Likewise.
2574 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
2576         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
2577         Fix markup, light copy-editing.
2578         ([-fauto-profile]): Rewrite to fix formatting and content
2579         problems.
2581 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
2583         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
2584         Copy-edit description.
2585         ([-fisolate-erroneous-paths-attribute]): Likewise.
2586         * common.opt (fisolate-erroneous-paths-dereference):
2587         Copy-edit description.
2588         (fisolate-erroneous-paths-attribute): Likewise.
2590 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
2592         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
2593         tidy grammar.
2595 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
2597         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
2598         ([-fvtv-debug]): Likewise.
2599         ([-Wc++-compat]): Likewise.
2600         ([-Wc++11-compat]): Likewise.
2601         ([-Wc++14-compat]): Likewise.
2602         ([-Wno-sized-deallocation]): Likewise.
2603         ([-femit-class-debug-always]): Likewise.
2604         ([-femit-struct-debug-detailed]): Likewise.
2605         ([-fno-keep-inline-dllexport]): Likewise.
2606         ([-fira-algorithm]): Likewise.
2607         ([-fira-region]): Likewise.
2608         ([-flra-remat]): Likewise.
2609         ([-fipa-ra]): Likewise.
2610         ([-fhoist-adjacent-loads]): Likewise.
2611         ([-fisolate-erroneous-paths-dereference]): Likewise.
2612         ([-fisolate-erroneous-paths-attribute]): Likewise.
2613         ([-ftree-switch-conversion]): Likewise.
2614         ([-ftree-tail-merge]): Likewise.
2615         ([-ftree-loop-if-convert]): Likewise.
2616         ([-ftree-loop-if-convert-stores]): Likewise.
2617         ([-ftree-loop-distribution]): Likewise.
2618         ([-ftree-loop-distribute-patterns]): Likewise.
2619         ([-flto-compression-level]): Likewise.
2620         ([-flto-report]): Likewise.
2621         ([-flto-report-wpa]): Likewise.
2622         ([-fuse-linker-plugin]): Likewise.
2623         ([-mfix-cortex-a53-835769]): Likewise.
2624         ([-mno-fix-cortex-a53-835769]): Likewise.
2625         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
2626         explicit listing; add a note to the discussion indicating they
2627         exist.  Reorder table to group similar options.  Add missing
2628         @opindex entries.  Add @need commands throughout the table to
2629         allow it to be split across multiple pages.
2630         ([-m8bit-idiv]): Fix @opindex.
2631         ([-mavx256-split-unaligned-load]): Likewise.
2632         ([-mavx256-split-unaligned-store]): Likewise.
2633         ([-mstack-protector-guard]): Likewise.
2634         ([-mcpu=]): Likewise.
2635         ([-mcpu]): Likewise.
2636         ([-mpointer-size=]): Likewise.
2638 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
2640         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
2641         instead of `m' constraint.  Likewise for unnamed movb comparison
2642         patterns using reg_before_reload_operand predicate.
2643         * config/pa/predicates.md (reg_before_reload_operand): Tighten
2644         predicate to reject register index and LO_SUM DLT memory forms
2645         after reload.
2647 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
2649         * doc/invoke.texi (Option Summary): Fix spelling of
2650         -fdevirtualize-at-ltrans.
2651         ([-fdevirtualize]): Fix markup.
2652         ([-fdevirtualize-speculatively]): Fix typo.
2653         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
2654         implementor-speaky.
2655         * common.opt (fdevirtualize-at-ltrans): Likewise.
2656         * ipa-devirt.c: Fix typos in comments throughout the file.
2657         (ipa_devirt): Fix typos in format strings for dump output.
2659 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
2661         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
2662         discussion of defaults, light copy-editing.
2664 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2666         * tsan.c (instrument_expr): corrected previous checkin.
2668 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2670         Instrument bit field and unaligned accesses for TSAN.
2671         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
2672         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
2673         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
2674         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
2675         unaligned memory regions.
2677 2015-01-01  Anthony Green  <green@moxielogic.com>
2679         * config/moxie/predicates.md (moxie_general_movsrc_operand):
2680         Restrict move source register offsets to 16 bits.
2682 Copyright (C) 2015 Free Software Foundation, Inc.
2684 Copying and distribution of this file, with or without modification,
2685 are permitted in any medium without royalty provided the copyright
2686 notice and this notice are preserved.