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