PR tree-optimization/65048
[official-gcc.git] / gcc / ChangeLog
blob73ef79d4ea484bcf27ba4b836701dbcaf7655e4f
1 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
3         PR tree-optimization/65048
4         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
5         (thread_through_all_blocks): Call valid_jump_thread_path.
6         Remove invalid FSM jump-thread paths.
8 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
10         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
11         (ipa_write_optimization_summaries): Likewise.
12         * tree-streamer.h: Include data-streamer.h.
13         (streamer_mode_table): Declare extern variable.
14         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
15         * lto-streamer-out.c (lto_output_init_mode_table,
16         lto_write_mode_table): New functions.
17         (produce_asm_for_decls): Call lto_write_mode_table when streaming
18         offloading LTO.
19         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
20         (lto_create_simple_input_block): Add mode_table argument to the
21         lto_input_block constructors.
22         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
23         Likewise.
24         * data-streamer-in.c (string_for_index): Likewise.
25         * ipa-inline-analysis.c (inline_read_section): Likewise.
26         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
27         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
28         * lto-streamer-in.c (lto_read_body_or_constructor,
29         lto_input_toplevel_asms): Likewise.
30         (lto_input_mode_table): New function.
31         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
32         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
33         Use bp_pack_machine_mode.
34         * real.h (struct real_format): Add name field.
35         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
36         (class lto_input_block): Add mode_table member.
37         (lto_input_block::lto_input_block): Add mode_table_ argument,
38         initialize mode_table.
39         (struct lto_file_decl_data): Add mode_table field.
40         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
41         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
42         unpack_ts_decl_common_value_fields,
43         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
44         * tree-streamer.c (streamer_mode_table): New variable.
45         * real.c (ieee_single_format, mips_single_format,
46         motorola_single_format, spu_single_format, ieee_double_format,
47         mips_double_format, motorola_double_format,
48         ieee_extended_motorola_format, ieee_extended_intel_96_format,
49         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
50         ibm_extended_format, mips_extended_format, ieee_quad_format,
51         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
52         decimal_single_format, decimal_double_format, decimal_quad_format,
53         ieee_half_format, arm_half_format, real_internal_format): Add name
54         field.
55         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
57 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
59         PR target/65161
60         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
61         reordering for selective scheduling.
63 2015-02-26  Terry Guo  <terry.guo@arm.com>
65         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
66         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
67         (arm_arch_no_volatile_ce): Declare new global variable.
68         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
69         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
70         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
71         (TARGET_NO_VOLATILE_CE): New macro.
72         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
73         volatile memory access in IT block
75 2015-02-25  Uros Bizjak  <ubizjak@gmail.com>
77         PR target/47230
78         * doc/install.texi (Specific, alpha*-*-*): Document that binutils 2.25
79         or newer are required.
81 2015-02-25  Kai Tietz  <ktietz@redhat.com>
83         PR tree-optimization/61917
84         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
85         that reduc_def_stmt is null.
87 2015-02-25  Martin Liska  <mliska@suse.cz>
89         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
90         hard register variables.
92 2015-02-25  Kai Tietz  <ktietz@redhat.com>
94         PR target/64212
95         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
96         (symtab::noninterposable_alias): Likewise.
98 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
100         PR target/65167
101         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
102         bounds registers.
103         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
105 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
107         PR target/64997
108         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
109         as split condition; force split via '#' in output pattern.
111 2015-02-25  Richard Biener  <rguenther@suse.de>
112         Kai Tietz  <ktietz@redhat.com>
114         PR tree-optimization/61917
115         * tree-vect-loop.c (vectorizable_reduction): Allow
116         vect_internal_def without reduction to exit graceful.
118 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
120         PR target/65196
121         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
122         only with NONDEBUG_INSN_P.
124 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
126         Use variadic macros with avr-log.c.
128         * config/avr/avr-protos.h (avr_vdump): New prototype.
129         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
130         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
131         * config/avr/avr-log.c: Adjust comments.
132         (avr_vdump): New function.
133         (avr_vadump): Pass caller as 2nd argument instead of format string.
134         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
135         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
137 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
139         PR lto/64374
140         * target.def (target_option_stream_in): New target hook.
141         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
142         targetm.target_option.post_stream_in if non-NULL.
143         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
144         * doc/tm.texi: Updated.
145         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
146         function.
147         (TARGET_OPTION_POST_STREAM_IN): Redefine.
149 2015-02-24  Jeff Law  <law@redhat.com>
151         PR target/65117
152         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
153         of operand 0 and operand 2.
154         (zero_cost_loop_end, loop_end): Similarly.
156 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
158         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
159         CXX_MEM_STAT_INFO.
161 2015-02-24  DJ Delorie  <dj@redhat.com>
163         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as
164         well.
165         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
166         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
167         instead of hardcoding SImode.
169 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
171         * omp-low.c (create_omp_child_function): Tag entrypoint
172         functions with a special attribute.
174 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
176         PR target/65058
177         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
179 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
181         PR rtl-optimization/65123
182         * lra-remat.c (operand_to_remat): Check hard regs in insn
183         definition too.
185 2015-02-24  Nick Clifton  <nickc@redhat.com>
187         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
188         to the assembler.
190 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
192         PR libgomp/64625
193         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
194         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
195         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
196         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
197         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
198         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
199         (BUILT_IN_GOACC_PARALLEL): Specify as
200         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
201         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
202         * builtin-types.def
203         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
204         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
205         Remove function types.
206         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
207         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
208         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
209         New function types.
211 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
213         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
215 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
217         PR tree-optimization/65170
218         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
219         if val[1] < 0, clear also val[2] and return 3.
221 2015-02-24  Alan Modra  <amodra@gmail.com>
223         PR target/65172
224         * config/rs6000/rs6000.c (get_memref_parts): Only return true
225         when *base is a reg.  Handle nested plus addresses.  Simplify
226         pre_modify test.
228 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
230         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
231         use natural alignment when optimizing for size.
233 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
235         PR target/65153
236         * config/sh/sh.md (movsicc_true+3): Remove peephole.
237         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
238         * config/sh/sh.c (replace_n_hard_rtx): Remove.
240 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
242         PR fortran/63427
243         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
244         too big for a wide_int.  Implement missing wrapping operation.
246 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
248         PR target/65163
249         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
250         instead of const_int 4294901760.
252 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
254         * config/avr/t-avr: Fix typo in comment.
256 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
258         * doc/rtl.texi (fma): Clarify documentation.
260 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
262         PR debug/58123
263         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
264         over input_location.
266 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
268         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
269         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
270         restrict alignments to absolute_biggest_alignment.
271         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
272         Define.
273         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
274         * doc/tm.texi: Regenerate.
275         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
277 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
279         PR target/64172
280         * ira-color.c (color_pass): Prevent splitting multi-register
281         pseudos.
283 2015-02-20  Richard Biener  <rguenther@suse.de>
285         PR tree-optimization/65136
286         * tree-ssa-propagate.c: Include cfgloop.h.
287         (replace_phi_args_in): Avoid replacing loop latch edge PHI
288         arguments with constants.
290 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
291             Martin Liska  <mliska@suse.cz>
293         PR target/63892
294         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
295         don't try to create_thunk if stdarg_p.  If
296         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
297         redirect_callers if possible.
298         (sem_item_optimizer::execute): Call unregister_hooks here...
299         (ipa_icf_driver): ... instead of here.
301 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
303         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
304         Mark operand 0 as earlyclobber in 2nd alternative.
305         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
306         Write negated shift amount into QI lowpart operand 0 and use it
307         in the shift step.
308         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
310 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
312         * cgraph.h (clone_function_name_1): Declare.
313         * cgraphclones.c (clone_function_name_1): New function.
314         (clone_function_name): Use it.
315         * lto-partition.c: Include "stringpool.h".
316         (must_not_rename, maybe_rewrite_identifier,
317         validize_symbol_for_target): New static functions.
318         (privatize_symbol_name): Use must_not_rename.
319         (promote_symbol): Call validize_symbol_for_target.
320         (lto_promote_cross_file_statics): Likewise.
321         (lto_promote_statics_nonwpa): Likewise.
323 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
325         PR target/64452
326         * config/avr/avr.md (pushhi_insn): New insn.
327         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
329 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
330             Jakub Jelinek  <jakub@redhat.com>
332         * tree-streamer.c (preload_common_nodes): Don't preload
333         TI_VA_LIST* for offloading.
334         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
335         in_lto_p.
337 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
339         * config/pa/pa.c (pa_emit_move_sequence): Always force
340         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
341         note on insn.
343         * config/pa/pa.c (pa_reloc_rw_mask): New function.
344         (TARGET_ASM_RELOC_RW_MASK): Define.
345         (pa_cannot_force_const_mem): Revert previous change.
347 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
348             Jan Hubicka  <hubicka@ucw.cz>
350         PR ipa/65028
351         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
352         across jump functions.
354 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
356         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
358 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
360         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
362 2015-02-19  Richard Henderson  <rth@redhat.com>
364         PR middle-end/65074
365         * varasm.c (default_binds_local_p_2): Don't test node->definition;
366         test DECL_EXTERNAL independent of symtab_node.
368 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
370         PR lto/65012
371         * varpool.c (varpool_node::get_constructor): Return early
372         if this->lto_file_data is NULL.
374 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
376         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
377         (rank_for_schedule_debug): Update.
378         (ready_sort): Make static.  Move sorting logic to ...
379         (ready_sort_debug, ready_sort_real): New static functions.
380         (schedule_block): Sort both debug insns and real insns in preparation
381         for ready list trimming.  Improve debug output.
382         * sched-int.h (ready_sort): Remove global declaration.
384 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
386         * ipa-icf.c (sem_function::equals_private): Adjust.
387         (sem_function::bb_dict_test): Take a vec<int> * instead of
388         auto_vec<int>.
389         * ipa-icf.h (bb_dict_test): Likewise.
391 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
393         PR gcov-profile/64634
394         * tree-eh.c (frob_into_branch_around): Fix up typos
395         in function comment.
396         (lower_catch): Put eh_seq resulting from EH lowering of
397         the cleanup sequence after the cleanup rather than before it.
399 2015-02-18  Tom de Vries  <tom@codesourcery.com>
401         * common.opt (fstdarg-opt): New option.
402         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
403         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
404         (@item -fstdarg-opt): New item.
406 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
408         PR target/65064
409         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
410         for common symbols.
412 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
414         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
415         insn-modes.h.
416         (ALL_HOST_OBJS): Add mkoffload.o.
417         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
419 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
421         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
422         (compare_virtual_tables): Be smarter about skipping typeinfos;
423         do sane output on virtual table table mismatch.
424         (warn_odr): Be ready for forward declarations of enums;
425         output sane info on base mismatch and virtual table mismatch.
426         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
427         when only one type is polymorphic.
428         (get_odr_type): Fix hashtable corruption.
429         (dump_odr_type): Dump mangled names.
431 2015-02-18  Richard Biener  <rguenther@suse.de>
433         PR tree-optimization/65063
434         * tree-predcom.c (determine_unroll_factor): Return 1 if we
435         have replaced looparound PHIs.
437 2015-02-18  Martin Liska  <mliska@suse.cz>
439         * lto-streamer.c (lto_streamer_init): Encapsulate
440         streamer_check_handled_ts_structures with checking macro.
442 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
444         PR ipa/65087
445         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
446         section if !implicit_section.
447         (cgraph_node::create_version_clone_with_body): Likewise.
448         * trans-mem.c (ipa_tm_create_version): Likewise.
450 2015-02-18  Richard Biener  <rguenther@suse.de>
452         PR tree-optimization/62217
453         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
454         into BIVs.
456 2015-02-18  Marek Polacek  <polacek@redhat.com>
458         PR sanitizer/65081
459         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
460         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
461         is in range [-16K, -1].  Don't issue run-time error if
462         (ptr > ptr + offset).
464 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
466         * doc/install.texi (nvptx-*-none): New section.
467         * doc/invoke.texi (Nvidia PTX Options): Likewise.
468         * config/nvptx/nvptx.opt: Update.
470         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
471         (access_check): New functions, copied from
472         config/i386/intelmic-mkoffload.c.
473         (main): For non-installed testing, look in all COMPILER_PATHs for
474         GCC_INSTALL_NAME.
476         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
478 2015-02-18  Andrew Pinski  <apinski@cavium.com>
479             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
481         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
482         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
484 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
486         * ipa-visibility.c (function_and_variable_visibility): Only
487         check locality if node is not already local.
488         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
489         call_for_symbol_and_aliases instead of
490         call_for_symbol_thunks_and_aliases.
491         (ipa_inline): Likewise.
492         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
493         first walk aliases.
494         * ipa.c (symbol_table::remove_unreachable_nodes): Use
495         call_for_symbol_and_aliases.
496         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
497         (ipa_propagate_frequency_1): Use it; use opt_for_fn
498         (ipa_propagate_frequency): Update.
499         (ipa_profile): Add opt_for_fn gueards.
501 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
503         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
504         * doc/invoke.texi (SH options): Document it.
505         * config/sh/sh.c (sh_insn_length_adjustment): Check
506         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
508 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
510         * common.opt (fipa-cp-alignment): New.
511         * ipa-cp.c (ipcp_store_alignment_results): Check
512         flag_ipa_cp_alignment.
513         * opts.c (default_options_table): Enable -fipa-cp-alignment for
514         -O2.
515         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
516         * doc/invoke.texi: Document -fipa-cp-alignment.
518 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
520         PR target/64793
521         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
522         to nil.  Adjust comments.
524 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
526         * ipa-visibility.c (function_and_variable_visibility): Only
527         check locality if node is not already local.
528         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
529         call_for_symbol_and_aliases instead of
530         call_for_symbol_thunks_and_aliases.
531         (ipa_inline): Likewise.
532         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
533         first walk aliases.
534         * ipa.c (symbol_table::remove_unreachable_nodes): Use
535         call_for_symbol_and_aliases.
536         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
537         (ipa_propagate_frequency_1): Use it; use opt_for_fn
538         (ipa_propagate_frequency): Update.
539         (ipa_profile): Add opt_for_fn guards.
541 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
543         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
544         skipping of "strange" tokens.
546 2015-02-17  Jeff Law  <law@redhat.com>
548         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
549         obsolete comment.
551 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
553         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
554         as forcing a HARD_DEP between instructions, thereby
555         disallowing rewriting to break dependencies.
557 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
559         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
560         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
561         variables in boundary that have no inlitalizer encoded and are
562         not aliases.
563         * varasm.c (default_binds_local_p_2): External definitions do not
564         count as definitions here.
566 2015-02-16  Jeff Law  <law@redhat.com>
568         PR tree-optimization/64823
569         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
570         statements.
571         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
572         threading through blocks with PHIs, but no statements.
573         (thread_through_normal_block): Distinguish between blocks where
574         we did not process all the statements and blocks with no statements.
576 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
577             James Greenhalgh  <james.greenhalgh@arm.com>
579         PR ipa/64963
580         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
581         section if not linkonce.  Fix up formatting.
582         (cgraph_node::create_version_clone_with_body): Copy section.
583         * trans-mem.c (ipa_tm_create_version): Likewise.
585 2015-02-16  Richard Biener  <rguenther@suse.de>
587         PR tree-optimization/65077
588         * tree-ssa-structalias.c (get_constraint_for_1): Handle
589         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
590         (find_func_aliases): Allow float values to carry pointers again.
592 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
594         * doc/install.texi (Specific): Reorder targets list to put
595         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
596         from the top menu.
598 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
599             David Edelsohn  <dje.gcc@gmail.com>
601         PR target/65058
602         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
603         mapping class to external variable or function reference.
604         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
605         mapping class.
607 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
609         PR target/53348
610         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
611         ASM_WEAKEN_DECL if defined.
613 2015-02-16  Richard Biener  <rguenther@suse.de>
615         PR lto/65015
616         * varasm.c (default_file_start): For LTO produced units
617         emit <artificial> as file directive.
619 2015-02-16  Richard Biener  <rguenther@suse.de>
621         PR tree-optimization/63593
622         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
623         stmts and releasing SSA names until...
624         (execute_pred_commoning): ... after processing all chains.
626 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
628         PR ipa/65059
629         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
630         external functions.
632 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
634         * doc/bugreport.texi: Adjust section titles throughout the file
635         to use "Title Case".
636         * doc/extend.texi: Likewise.
637         * doc/gcov.texi: Likewise.
638         * doc/implement-c.texi: Likewise.
639         * doc/implement-cxx.texi: Likewise.
640         * doc/invoke.texi: Likewise.
641         * doc/objc.texi: Likewise.
642         * doc/standards.texi: Likewise.
643         * doc/trouble.texi: Likewise.
645 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
647         * cgraph.h (symtab_node::has_aliases_p): Simplify.
648         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
649         * tree.c (lookup_binfo_at_offset): Make static.
650         (get_binfo_at_offset): Do not shadow offset; add explanatory
651         comment.
653 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
655         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
656         for all floading point loads and stores except those using a register
657         index address.
658         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
659         to a register.
661 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
663         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
664         (do_estimate_growth_1): Record if any uninlinable edge was seen.
665         (estimate_growth): Handle uninlinable edges correctly.
666         (check_callers): New.
667         (growth_likely_positive): Handle aliases correctly.
669 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
671         * ipa-chkp.c: Use iterate_direct_aliases.
672         * symtab.c (resolution_used_from_other_file_p): Move inline.
673         (symtab_node::create_reference): Fix formating.
674         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
675         (symtab_node::iterate_reference): Move inline.
676         (symtab_node::iterate_referring): Move inline.
677         (symtab_node::iterate_direct_aliases): Move inline.
678         (symtab_node::used_from_object_file_p_worker): Inline into ...
679         (symtab_node::used_from_object_file_p): ... this one; move inline.
680         (symtab_node::call_for_symbol_and_aliases): Move inline;
681         use iterate_direct_aliases.
682         (symtab_node::call_for_symbol_and_aliases_1): New method.
683         (cgraph_node::call_for_symbol_and_aliases): Move inline;
684         use iterate_direct_aliases.
685         (cgraph_node::call_for_symbol_and_aliases_1): New method.
686         (varpool_node::call_for_node_and_aliases): Rename to ...
687         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
688         use iterate_direct_aliases.
689         (varpool_node::call_for_symbol_and_aliases_1): New method.
690         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
691         (ipa_discover_readonly_nonaddressable_var): Update.
692         * ipa-devirt.c: Fix formating.
693         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
694         Move inline.
695         (cgraph_node::call_for_symbol_and_aliases): Move inline.
696         (cgraph_node::call_for_symbol_and_aliases_1): New function..
697         * cgraph.h (used_from_object_file_p_worker): Remove.
698         (resolution_used_from_other_file_p): Move inline.
699         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
700         (symtab_node::iterate_reference): Move inline.
701         (symtab_node::iterate_referring): Move inline.
702         (symtab_node::iterate_direct_aliases): Move inline.
703         (symtab_node::used_from_object_file_p_worker): Inline into ...
704         (symtab_node::used_from_object_file_p): Move inline.
705         * tree-emutls.c (ipa_lower_emutls): Update.
706         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
707         (varpool_node::call_for_node_and_aliases): Remove.
709 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
711         PR tree-optimization/62209
712         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
713         op == range->exp, insert seq and gimplified code after labels
714         instead of after the phi.
716 2015-02-13  Jeff Law  <law@redhat.com>
718         PR bootstrap/65060
719         Revert my change for tree-optimization/64823.
721 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
723         PR tree-optimization/65053
724         * tree-ssa-phiopt.c (value_replacement): When moving assign before
725         cond, either reset VR on lhs or set it to phi result VR.
727 2015-02-13  Jeff Law  <law@redhat.com>
729         PR tree-optimization/64823
730         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
731         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
732         threading through blocks with PHIs, but no statements.
733         (thread_through_normal_block): Distinguish between blocks where
734         we did not process all the statements and blocks with no statements.
736         PR rtl-optimization/47477
737         * match.pd (convert (plus/minus (convert @0) (convert @1): New
738         simplifier to narrow arithmetic.
740 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
742         PR ipa/65028
743         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
744         polymorphic call info when type is not known to be preserved.
746 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
748         PR ipa/65028
749         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
750         (inline_call): Use it.
752 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
754         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
755         GOMP_DEVICE_NVIDIA_PTX.
757 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
759         PR ipa/65034
760         * stmt.c (emit_case_nodes): Use void_type_node instead of
761         NULL_TREE as LABEL_DECL type.
763 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
765         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
766         constraints.
767         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
768         symbolic references to data to be forced to constant memory on the
769         SOM target.
771 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
773         PR tree-optimization/65002
774         * tree-cfg.c (pass_data_fixup_cfg): Don't update
775         SSA on start.
776         * tree-sra.c (some_callers_have_no_vuse_p): New.
777         (ipa_early_sra): Reject functions whose callers
778         assume function is read only.
780 2015-02-13  Richard Biener  <rguenther@suse.de>
782         PR lto/65015
783         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
784         for LTO produced CUs.
786 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
788         PR tree-optimization/64705
789         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
790         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
791         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
792         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
793         expand_simple_operations.
795 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
796             Richard Henderson  <rth@redhat.com>
798         PR rtl/32219
799         * cgraphunit.c (cgraph_node::finalize_function): Set definition
800         before notice_global_symbol.
801         (varpool_node::finalize_decl): Likewise.
802         * varasm.c (default_binds_local_p_2): Rename from
803         default_binds_local_p_1, add weak_dominate argument.  Use direct
804         returns instead of assigning to local variable.  Unify varpool and
805         cgraph paths via symtab_node.  Reject undef weak variables before
806         testing visibility.  Reorder tests for simplicity.
807         (default_binds_local_p): Use default_binds_local_p_2.
808         (default_binds_local_p_1): Likewise.
809         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
810         via symtab_node.
811         (default_elf_asm_output_external): Emit visibility when specified.
813 2015-02-13  Alan Modra  <amodra@gmail.com>
815         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
816         code setting up r11 for out-of-line fp restore.
818 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
820         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
821         (muser-mode): Likewise.
823 2015-02-13  Alan Modra  <amodra@gmail.com>
825         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
826         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
828 2015-02-12  David Howells  <dhowells@redhat.com>
830         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
831         warning.
832         * tree-ssa-uninit.c (dump_predicates): Likewise.
833         * opts.c (print_filtered_help): Likewise.
835 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
837         * dwarf2out.c (output_die): Use "%s", name instead of name to
838         avoid -Wformat-security warning.
840         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
841         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
842         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
843         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
845 2015-02-12  Jason Merrill  <jason@redhat.com>
847         * common.opt (-flifetime-dse): New.
849 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
851         PR sanitizer/65019
852         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
854         PR tree-optimization/65014
855         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
856         use original second operand of arg0 or arg1 instead of
857         that adjusted by STRIP_NOPS.
859 2015-02-11  Jeff Law  <law@redhat.com>
861         PR target/63347
862         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
863         that needs to be queued, just queue it for a single cycle.
865 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
867         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
868         bodies of thunks; comment on why.
869         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
870         symbols are extern.
872 2015-02-11  Richard Henderson  <rth@redhat.com>
874         PR sanitize/65000
875         * tree-eh.c (mark_reachable_handlers): Mark source and destination
876         regions of __builtin_eh_copy_values.
878 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
880         PR middle-end/65003
881         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
882         ultimate alias is MEM with SYMBOL_REF satisfying
883         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
884         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
886 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
888         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
889         "diagnostic-core.h".
890         (main): Initialize progname, and call diagnostic_initialize.
892         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
893         instead of __OPENMP_TARGET__.
895         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
896         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
897         hard-coding PTX_ID.
899 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
901         * doc/sourcebuild.texi (pie_enabled): Document.
903 2015-02-11  Martin Liska  <mliska@suse.cz>
905         PR ipa/64813
906         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
907         a return value for call to a function that is noreturn.
909 2015-02-11  Richard Biener  <rguenther@suse.de>
911         PR lto/65015
912         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
913         and -fresolution.
915 2015-02-11  Andrew Pinski  <apinski@cavium.com>
917         PR target/64893
918         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
919         Change the first argument type to size_type_node and add another
920         size_type_node.
921         (aarch64_simd_expand_builtin): Handle the new argument to
922         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
923         print an out when the first two arguments are not
924         nonzero integer constants.
925         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
926         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
928 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
930         PR target/61925
931         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
932         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
933         (ix86_set_current_function): Rewritten.
934         (ix86_add_new_builtins): Temporarily clear current_target_pragma
935         when creating builtin fndecls.
937 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
939         PR ipa/65005
940         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
941         function.
942         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
943         have no comdat group.
944         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
945         (lto_output_varpool_node): Always output alias info.
946         (output_refs): Output refs of boundary aliases, too.
947         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
948         (output_symtab): Output call eges in thunks in boundary.
949         (get_alias_symbol): Remove.
950         (input_node, input_varpool_node): Do not special case weakrefs.
951         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
952         alias and thunks targets in the boundary; do not take removed symbols
953         from their comdat groups.
954         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
955         (cgraph_node::global_info): Remove.
956         (cgraph_node::rtl_info): Look through aliases and thunks.
957         * cgrpah.h (global_info): Remove.
958         (non_local_p): Remove.
960 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
961             Sandra Loosemore  <sandra@codesourcery.com>
963         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
964         to inline asm.  List dialects in proper order.
966 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
967             Sandra Loosemore  <sandra@codesourcery.com>
969         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
971 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
973         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
974         modified) reference to Solaris.
976 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
978         * doc/extend.texi (Extended Asm): Fix typos.
980 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
982         PR sanitizer/65004
983         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
985 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
987         PR target/64661
988         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
989         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
990         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
991         * config/sh/constraints.md (Ara, Add): New constraints.
992         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
993         predicates.
994         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
995         atomic_mem_operand_0.  Don't use force_reg on the memory address.
996         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
997         Sra constraint.  Convert to insn_and_split.  Add workaround for
998         PR 64974.
999         (atomic_compare_and_swap<mode>_hard): Copy to
1000         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
1001         Use atomic_mem_operand_0 predicate.
1002         (atomic_compare_and_swap<mode>_soft_gusa,
1003         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
1004         AraAdd constraints.
1005         (atomic_compare_and_swap<mode>_soft_tcb,
1006         atomic_compare_and_swap<mode>_soft_imask,
1007         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
1008         atomic_mem_operand_0 predicate and SraSdd constraints.
1009         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
1010         constraint.
1011         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
1012         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
1013         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
1014         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
1015         force_reg on the memory address.
1016         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
1017         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
1018         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
1019         atomic_mem_operand_1 predicate and Sra constraint.
1020         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
1021         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
1022         Use atomic_mem_operand_1 predicate.
1023         (atomic_<fetchop_name><mode>_hard): Copy to
1024         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
1025         Use atomic_mem_operand_1 predicate.
1026         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
1027         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
1028         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
1029         insn_and_split.  Use atomic_mem_operand_1 predicate.
1030         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
1031         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
1032         Use atomic_mem_operand_1 predicate.
1033         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
1034         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
1035         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
1036         in generated insn with original mem operand before emitting the insn.
1037         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
1038         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
1039         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
1040         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
1041         Use atomic_mem_operand_1 predicate and AraAdd constraints.
1042         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
1043         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
1044         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
1045         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
1046         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
1047         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
1048         atomic_not_fetch<mode>_soft_tcb,
1049         atomic_<fetchop_name>_fetch<mode>_soft_imask,
1050         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
1051         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
1052         Use atomic_mem_operand_1 predicate and SraSdd constraints.
1054 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
1056         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
1057         and 3 earlyclobber operands.
1059 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
1061         * common.opt (fstack-reuse): Mark as optimization.
1063 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
1065         PR ipa/64982
1066         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
1068 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
1070         PR tree-optimization/64326
1071         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
1073 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
1075         PR gcov-profile/61889
1076         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
1078 2015-02-10  Richard Biener  <rguenther@suse.de>
1080         PR tree-optimization/64995
1081         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
1082         value we use is final.
1083         (visit_reference_op_store): Always valueize op.
1084         (visit_use): Properly valueize vuses.
1086 2015-02-10  Richard Biener  <rguenther@suse.de>
1088         PR tree-optimization/64909
1089         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
1090         pass a scalar-stmt count estimate to the cost model.
1091         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
1093 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
1095         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
1096         enabled by default together with var-tracking.
1098 2015-02-10  Nick Clifton  <nickc@redhat.com>
1100         * config/rl78/rl78.c: Remove DIV attribute code accidentally
1101         included in previous rl78 commit.
1103 2015-02-10  Richard Biener  <rguenther@suse.de>
1105         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
1106         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
1107         return the bitpack.
1109 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
1111         PR gcov-profile/61889
1112         * config.in: regenerate.
1113         * configure.in: Likewise.
1114         * configure.ac: Check for ftw.h.
1115         * gcov-tool.c: Check for ftw.h before using nftw.
1117 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
1119         PR lto/64076
1120         * ipa-visibility.c (update_visibility_by_resolution_info): Only
1121         assert when not in lto mode.
1123 2015-02-09  Zhouyi Zhou   <yizhouzhou@ict.ac.cn>
1125         * ira-color.c (setup_left_conflict_sizes_p): Simplify
1126         initialization/assignment of conflict_size.
1128 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
1130         PR ipa/64978
1131         * ipa-cp.c (gather_caller_stats): Skip thunks.
1132         (propagate_constants_topo): Skip aliases.
1134 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
1136         PR target/64761
1137         * config/sh/sh.c (sh_option_override): Don't change
1138         -freorder-blocks-and-partition to -freorder-blocks even when
1139         unwinding is enabled.
1140         (sh_can_follow_jump): Return false if the followee jump is
1141         a crossing jump when -freorder-blocks-and-partition is specified.
1142         * config/sh/sh.md (*jump_compact_crossing): New insn.
1144 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
1145             Kaz Kojima  <kkojima@gcc.gnu.org>
1147         PR target/64761
1148         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
1149         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
1150         (sh_can_redirect_branch): Rename to ...
1151         (sh_can_follow_jump): ... this.  Constify argument types.
1152         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
1153         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
1154         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
1155         * doc/tm.texi: Regenerate.
1157 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
1159         PR sanitizer/64981
1160         * builtins.c (expand_builtin): Call targetm.expand_builtin
1161         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
1163 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
1165         PR ipa/61548
1166         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
1168 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
1170         PR ipa/63566
1171         * ipa-icf.c (set_local): New function.
1172         (sem_function::merge): Use it.
1174 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
1176         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
1177         (add_type_duplicate): Fix comparison of BINFOs.
1179 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
1181         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
1182         on getting VOID pointer.
1184 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
1186         PR target/64979
1187         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
1188         va_list escapes.
1190 2015-02-09  Richard Biener  <rguenther@suse.de>
1192         * genmatch.c (replace_id): Copy expr_type.
1194 2015-02-09  Richard Biener  <rguenther@suse.de>
1196         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
1197         (streamer_write_tree_bitfields): Declare.
1198         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
1199         properly unpack padding.
1200         (unpack_value_fields): Inline ...
1201         (streamer_read_tree_bitfields): ... here.
1202         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
1203         and properly add padding bits.
1204         (streamer_pack_tree_bitfields): Fold into ...
1205         (streamer_write_tree_bitfields): ... this new function,
1206         exposing the bitpack object.
1207         * lto-streamer-out.c (lto_write_tree_1): Call
1208         streamer_write_tree_bitfields.
1210 2015-02-09  Richard Biener  <rguenther@suse.de>
1212         PR tree-optimization/54000
1213         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
1214         (struct ivopts_data): Add loop_loc member.
1215         (tree_ssa_iv_optimize_loop): Dump loop location.
1216         (create_new_ivs): Likewise, also dump number of IVs generated.
1218 2015-02-09  Martin Liska  <mliska@suse.cz>
1220         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
1221         just if not yet registered.
1222         (ipa_icf_generate_summary): Register callgraph hooks.
1224 2015-02-08  Andrew Pinski  <apinski@cavium.com>
1226         * config/aarch64/aarch64.c (gty_dummy): Delete.
1228 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
1230         PR ipa/63566
1231         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
1232         (cgraph_node::local_p): Remove thunk related FIXME.
1234 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
1236         PR ipa/63566
1237         * i386.c (ix86_function_regparm): Look through aliases to see if callee
1238         is local and optimized.
1239         (ix86_function_sseregparm): Likewise; also use target's SSE math
1240         settings; error out instead of silently generating wrong code
1241         on mismatches.
1242         (init_cumulative_args): Look through aliases.
1244 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
1246         PR ipa/63566
1247         * ipa-split.c (execute_split_functions): Split if function has aliases.
1249 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
1251         PR ipa/63566
1252         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
1253         aliases before trying to expand it.
1254         (cgraph_node::expand_thunk): Fix formating.
1256 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
1258         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
1259         (Using Assembly Language with C): Expand introduction.
1260         (Basic Asm): Copy-edit.  Add more information about uses of
1261         basic asm.
1262         (Extended Asm): Copy-edit.  Document new escape syntax and
1263         %l[label] syntax.
1264         (Global Reg Vars): Copy-edit.
1265         (Local Reg Vars): Likewise.
1267 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
1269         PR debug/2714
1270         PR bootstrap/64256
1271         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
1272         (DBX_CONTIN_CHAR): Define.
1274 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
1275             Brian Rzycki  <b.rzycki@samsung.com>
1277         PR tree-optimization/64878
1278         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
1279         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
1280         Stop recursion at loop phi nodes after having visited a loop phi node.
1282 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
1284         * toplev.c (process_options): Change flag_ipa_ra before creating
1285         optimization_{default,current}_node.
1287         PR ipa/64896
1288         * cgraphunit.c (cgraph_node::expand_thunk): If
1289         restype is not is_gimple_reg_type nor the thunk_fndecl
1290         returns aggregate_value_p, set restmp to a temporary variable
1291         instead of resdecl.
1293 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
1295         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
1297 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1299         PR target/64205
1300         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
1301         add a general secondary reload handler for SDmode, unless we have
1302         both read/write support for SDmode.
1304 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
1306         PR middle-end/64937
1307         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
1308         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
1309         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
1310         1 before, push it to abstract_vec.
1311         (dwarf2out_abstract_function): Adjust caller.  Don't call
1312         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
1313         DECL_ABSTRACT_P flags for all abstract_vec elts.
1315 2015-02-06  Renlin Li  <renlin.li@arm.com>
1317         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
1318         complex gimple.
1319         * tree-ssa.c (execute_update_addresses_taken): Likewise.
1321 2015-02-06  Jeff Law  <law@redhat.com>
1323         PR target/64889
1324         * config/h8300/h8300.c (push): New argument "in_prologue".
1325         Pass "in_prologue" along to "F".
1326         (h8300_push_pop): Corresponding changes.
1327         (h8300_expand_prologue): Likewise.
1328         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
1330 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
1332         PR rtl-optimization/64957
1333         PR debug/64817
1334         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
1335         IOR rather than for AND.
1337 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
1339         PR target/62631
1340         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
1341         of shift-add and (add + shift) operations.  Rename local variable.
1343 2015-02-05  Jeff Law  <law@redhat.com>
1345         PR target/17306
1346         * config/h8300/constraints.md (U): Correctly dectect
1347         "eightbit_data" memory addresses.
1348         * config/h8300/h8300.c (eightbit_constant_address_p): Also
1349         handle (const (plus (symbol_ref (x)))) where x is declared
1350         as an 8-bit data memory address.
1351         * config/h8300/h8300.md (call, call_value): Correctly detect
1352         "funcvec" functions.
1354         PR target/43264
1355         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
1356         24 to 28 bits for the H8/300.
1358 2015-02-06  Alan Modra  <amodra@gmail.com>
1360         PR target/64876
1361         * config/rs6000/rs6000.c (chain_already_loaded): New function.
1362         (rs6000_call_aix): Use it.
1364 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
1366         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
1367         check.
1369 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
1371         * config/h8300/constraints.md ("U" constraint): Use strict
1372         variant of REG_OK_FOR_BASE_P after reload has started.
1374 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
1376         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
1377         define to zero if !TARGET_NEON.
1378         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
1380 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1381             Trevor Saunders  <tsaunders@mozilla.com>
1383         PR ipa/61548
1384         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
1386 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1388         PR ipa/61548
1389         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
1390         when removing varpool nodes.
1392 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1394         PR ipa/61548
1395         * varpool.c (varpool_node::remove): Fix order of variables.
1397 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1399         PR ipa/64686
1400         * ipa-inline.c (inline_small_functions): Fix ordering issue between
1401         speculation resolution and key updates.
1403 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1405         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
1406         about not letting any speculative edges unupdated.
1408 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1410         PR gcov/64123
1411         * gcov-io.c (gcov_var): Export.
1413 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1415         PR middle-end/64922
1416         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
1417         edges that become speculative.
1419 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
1421         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
1422         or DW_LANG_Fortran08.
1423         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
1424         DW_LANG_Fortran08.
1425         (gen_compile_unit_die): Handle "GNU Fortran2003" and
1426         "GNU Fortran2008" language strings.
1427         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
1428         * langhooks.h (lang_GNU_Fortran): New prototype.
1429         * langhooks.c (lang_GNU_Fortran): New function.
1430         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
1431         lang_GNU_Fortran.
1433 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
1435         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
1436         (RTX_OK_FOR_OLO10_P): Likewise.
1438 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
1440         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
1442 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1444         PR middle-end/64922
1445         * gimple.c: Include gimple-ssa.h.
1446         (maybe_remove_unused_call_args): New function.
1447         * gimple.h (maybe_remove_unused_call_args): Declare.
1448         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
1449         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
1450         * gimple-fold.c (gimple_fold_call): Likewise.
1452 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
1454         PR rtl-optimization/64905
1455         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
1456         pointer alignment if it isn't needed.
1458 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
1460         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
1461         cortex-a72.cortex-a53.
1462         * config/aarch64/aarch64-tune.md: Regenerate.
1463         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
1465 2015-02-04  Nick Clifton  <nickc@redhat.com>
1467         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
1468         inside a MEM.
1470 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
1472         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
1473         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
1474         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
1475         of DEF_BUILTIN.
1476         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
1477         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
1478         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
1479         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
1480         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
1481         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
1482         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
1483         * tree-core.h (enum built_in_function): In between
1484         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
1485         for builtins that use DEF_BUILTIN_CHKP macro.
1487 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
1489         PR debug/64817
1490         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
1491         operands for tcc_comparison exprs.  Fix typos.
1493         PR debug/64817
1494         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
1495         of two XORs that have an intervening AND or IOR.
1497         PR debug/64817
1498         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
1499         simplification of XOR of AND to not allocate new rtx before
1500         committing to a simplification.
1502 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1504         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
1505         manual swaps in all peepholes.
1507 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1509         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
1510         of manual swapping implementation.
1511         (aarch64_expand_vec_perm_const_1): Likewise.
1513 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
1515         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
1516         (generic_addrcost_table): Remove NAMED_PARAM.
1517         (cortexa57_addrcost_table): Likewise.
1518         (xgene1_addrcost_table): Likewise.
1519         (generic_regmove_table): Likewise.
1520         (cortexa53_regmove_table): Likewise.
1521         (xgene1_regmove_table): Likewise.
1522         (generic_vector_table): Likewise.
1523         (cortexa57_vector_table): Likewise.
1524         (xgene1_vector_table): Likewise.
1525         (generic_tunings): Likewise.
1526         (cortexa53_tunings): Likewise.
1527         (cortexa57_tunings): Likewise.
1528         (xgene1_tunings): Likewise.
1530 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
1532         * config/arm/arm-cores.def: Add cortex-a72 and
1533         cortex-a72.cortex-a53.
1534         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
1535         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
1536         * config/arm/arm-tune.md: Regenerate.
1537         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
1538         "cortex-a72.cortex-a53".
1539         * doc/invoke.texi (ARM Options/-mtune): Likewise.
1541 2015-02-04  Nick Clifton  <nickc@redhat.com>
1543         PR target/64408
1544         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
1545         of accepted codes.
1546         (nonimmediate_di_operand): Likewise.
1548         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
1549         prefixes of known F5 using MSP430 MCUs.
1551 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1553         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
1554         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
1555         instead of __builtin_sqrt.
1557 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
1559         * varasm.c (do_assemble_alias): Follow transparent alias
1560         chain for target.
1561         (default_assemble_visibility): Follow transparent alias
1562         chain for decl name.
1564 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1566         PR middle-end/62103
1567         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
1568         to compute size of referenced value in the constant case.
1570 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
1572         PR rtl-optimization/64756
1573         * cse.c (invalidate_dest): New function.
1574         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
1575         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
1576         invalidate and do not record it.
1578 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
1580         PR target/64660
1581         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
1582         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
1583         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
1584         atomic_nand<mode>_soft_tcb): New insns.
1585         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
1586         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
1587         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
1588         Split into atomic_not_fetchsi_hard if operands[0] is unused.
1589         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
1590         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
1591         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
1592         atomic_not<mode>_hard if operands[0] is unused.
1593         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
1594         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
1595         if operands[0] is unused.
1596         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
1597         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
1598         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
1599         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
1600         unused.
1601         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
1602         into atomic_not<mode>_soft_tcb if operands[0] is unused.
1603         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
1604         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
1605         if operands[0] is unused.
1606         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
1607         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
1608         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
1609         atomic_nand_fetchsi_hard if operands[0] is unused.
1610         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
1611         atomic_nand<mode>_hard if operands[0] is unused.
1612         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
1613         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
1614         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
1615         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
1616         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
1617         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
1618         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
1619         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
1620         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
1621         atomic_not<mode>_hard if operands[0] is unused.
1622         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
1623         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
1624         unused.
1625         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
1626         into atomic_not<mode>_soft_tcb if operands[0] is unused.
1627         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
1628         atomic_nand<mode>_hard if operands[0] is unused.
1629         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
1630         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
1632 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
1634         PR jit/64810
1635         * Makefile.in (GCC_OBJS): Add gcc-main.o.
1636         * gcc-main.c: New file, containing "main" taken from gcc.c.
1637         * gcc.c (do_self_spec): Free decoded_options.
1638         (class driver): Move declaration to gcc.h.
1639         (main): Move declaration and implementation to new file
1640         gcc-main.c.
1641         (driver_get_configure_time_options): New function.
1642         * gcc.h (class driver): Move this declaration here, from
1643         gcc.c.
1644         (driver_get_configure_time_options): New declaration.
1646 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
1648         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
1649         cross-module inlining.
1650         * cgraph.h (cgraph_node): Add flag merged.
1651         * ipa-icf.c (sem_function::merge): Maintain it.
1653 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
1655         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
1656         instead of OBJECT_P.
1658 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
1660         PR target/62631
1661         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
1662         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
1663         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
1664         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
1666 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
1668         PR other/63504
1669         * combine.c (reg_n_sets_max): New variable.
1670         (can_change_dest_mode, reg_nonzero_bits_for_combine,
1671         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
1672         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
1673         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
1674         (rest_of_handle_combine): Initialize reg_n_sets_max.
1676 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
1678         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
1679         if some always_inline was inlined, apply changes before inlining
1680         heuristically.
1682 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
1684         PR jit/64810
1685         * config/arm/arm.c (arm_option_override): Set
1686         arm_selected_arch/cpu/tune to NULL on entry.
1688 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
1689             Andrew Pinski  <pinskia@gcc.gnu.org>
1690             Jakub Jelinek  <jakub@gcc.gnu.org>
1692         PR target/64231
1693         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
1694         integer typing for small model. Use IN_RANGE.
1696 2015-02-02  Richard Biener  <rguenther@suse.de>
1698         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
1699         * tree-vrp.c (vrp_valueize_1): Likewise.
1701 2015-02-02  Alan Modra  <amodra@gmail.com>
1703         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
1704         than mem for toc_restore.
1705         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
1706         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
1707         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
1709 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
1711         PR target/64047
1712         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
1713         explicit default options.
1715 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
1717         PR ipa/64872
1718         * ipa-utils.c (ipa_merge_profiles): Add release argument.
1719         * ipa-icf.c (sem_function::merge): Do not release body when merging.
1720         * ipa-utils.h (ipa_merge_profiles): Update prototype.
1722 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
1724         PR debug/64817
1725         * cfgexpand.c (deep_ter_debug_map): New variable.
1726         (avoid_deep_ter_for_debug): New function.
1727         (expand_debug_expr): If TERed SSA_NAME is in
1728         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
1729         instead of trying to expand SSA_NAME's def stmt.
1730         (expand_debug_locations): When expanding debug bind
1731         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
1732         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
1733         value.
1734         (pass_expand::execute): Call avoid_deep_ter_for_debug on
1735         all debug bind stmts.  Delete deep_ter_debug_map after
1736         expand_debug_location if non-NULL and clear it.
1738 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
1740         PR target/64851
1741         * config/sh/sync.md (atomic_fetch_notsi_hard,
1742         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
1743         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
1744         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
1745         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
1746         atomic_not_fetch<mode>_soft_imask): New insns.
1748 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
1750         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
1751         (rank_for_schedule_debug): Split from ...
1752         (rank_for_schedule): ... this.
1753         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
1754         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
1756 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
1758         * doc/md.texi (Machine Constraints): Alphabetize table by target.
1759         * doc/extend.texi (x86 Variable Attributes): Move section to
1760         correct alphabetization after renaming.
1761         (x86 Type Attributes): Likewise.
1762         (Target Builtins): Re-alphabetize menu.
1763         (x86 Built-in Functions): Move section to correct alphabetization
1764         after renaming.
1765         (x86 transactional memory intrinsics): Likewise.
1766         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
1767         and x86 Windows Options in table and menu.
1768         (x86 Options): Move section to correct alphabetization after
1769         renaming.
1770         (x86 Windows Options): Likewise.
1772 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
1774         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
1775         preferred names of the architecture and its 32- and 64-bit
1776         variants.
1777         * doc/invoke.texi: Likewise.
1778         * doc/md.texi: Likewise.
1780 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
1782         PR target/64882
1783         * config/i386/predicates.md (address_no_seg_operand): Reject
1784         non-CONST_INT_P operands in invalid mode.
1786 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
1788         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
1789         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
1790         * config/i386/predicates.md (address_no_seg_operand): Call
1791         address_operand with VOIDmode.
1792         (vsib_address_operand): Ditto.
1793         (address_mpx_no_base_operand): Ditto.
1794         (address_mpx_no_index_operand): Ditto.
1796 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
1798         PR target/64688
1799         * lra-constraints.c (original_subreg_reg_mode): New.
1800         (simplify_operand_subreg): Try to simplify subreg of const.  Use
1801         original_subreg_reg_mode for it.
1802         (swap_operands): Update original_subreg_reg_mode.
1803         (curr_insn_transform): Set up original_subreg_reg_mode.
1805 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
1807         PR target/64617
1808         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
1809         function.
1810         (process_alt_operands): Use it.
1811         (curr_insn_transform): Check the optional reload pseudo class is
1812         ok for the mode.
1814 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
1816         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
1817         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
1818         prototype.
1819         * toplev.h (init_asm_output): Update comment on use of
1820         UNKNOWN_LOCATION with fatal_error.
1821         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
1822         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
1823         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
1824         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
1825         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
1826         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
1827         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
1828         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
1829         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
1830         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
1831         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
1832         fatal_error changed to pass input_location as first argument.
1834 2015-01-30  Martin Liska  <mliska@suse.cz>
1836         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
1837         in #pragma GCC diagnostic guards.
1839 2015-01-30  Richard Biener  <rguenther@suse.de>
1841         PR tree-optimization/64829
1842         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
1843         not add a widening conversion pattern but hand off extra
1844         widenings to callers.
1845         (vect_recog_widen_mult_pattern): Handle extra widening produced
1846         by vect_handle_widen_op_by_const.
1847         (vect_recog_widen_shift_pattern): Likewise.
1848         (vect_pattern_recog_1): Remove excess vertical space in dumping.
1849         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
1850         (vect_init_vector_1): Likewise.
1851         (vect_get_vec_def_for_operand): Likewise.
1852         (vect_finish_stmt_generation): Likewise.
1853         (vectorizable_load): Likewise.
1854         (vect_analyze_stmt): Likewise.
1855         (vect_is_simple_use): Likewise.
1857 2015-01-29  Jeff Law  <law@redhat.com>
1859         * combine.c (try_combine): Fix typo in comment.
1861 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
1863         PR target/64580
1864         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
1865         (rs6000_stack_info): Add assert.
1866         (rs6000_output_savres_externs): New function, split off from...
1867         (rs6000_output_function_prologue): ... here.  Do not call it for
1868         thunks.
1870 2015-01-29  Jeff Law  <law@redhat.com>
1872         PR target/15184
1873         * combine.c (try_combine): If I0 is a memory load and I3 a store
1874         to a related address, increase the "goodness" of doing a 4-insn
1875         combination with I0-I3.
1876         (make_field_assignment): Handle SUBREGs in the ior+and case.
1878 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
1880         PR tree-optimization/64746
1881         * tree-if-conv.c (mask_exists): New function.
1882         (predicate_mem_writes): Save created mask with given size for further
1883         use.
1884         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
1885         (ifcvt_repair_bool_pattern): Collect all statements that are root
1886         of bool pattern and use iterative algorithm to remove multiple uses
1887         of predicates, display number of required iterations.
1889 2015-01-29  Richard Biener  <rguenther@suse.de>
1891         PR tree-optimization/64853
1892         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
1893         stmt will get simulated again.
1894         * tree-ssa-ccp.c (valueize_op_1): Likewise.
1896 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1898         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
1899         return_in_pc.  Remove redundant assignments.
1900         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
1901         (arm_expand_epilogue): Don't compare boolean with true in if condition.
1903 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
1905         * config/i386/i386.c (ix86_mode_after): Make static.
1907 2015-01-29  Richard Biener  <rguenther@suse.de>
1909         PR tree-optimization/64844
1910         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
1911         dump cost model analysis.
1912         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1913         Do not register adjusted load/store costs here.
1915 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
1916             Uros Bizjak  <ubizjak@gmail.com>
1918         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
1919         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
1920         using x86_use_pseudo_pic_reg.
1921         * config/i386/i386.c (ix86_conditional_register_usage): Remove
1922         support for fixed PIC register.
1923         (ix86_use_pseudo_pic_reg): Not static any more.
1925 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
1927         PR middle-end/64805
1928         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
1929         to avoid error in cgraph node verification.
1931 2015-01-29  Marek Polacek  <polacek@redhat.com>
1933         * doc/standards.texi: Reflect that the default for C is gnu11.
1935 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1937         PR target/64761
1938         * reorg.c (switch_text_sections_between_p): New function.
1939         (relax_delay_slots): Call it when testing if the jump insn
1940         is removable.  Use targetm.can_follow_jump when testing if
1941         the conditional branch can follow an unconditional jump.
1943 2015-01-27  Caroline Tice  <cmtice@google.com>
1945         Committing VTV Cywin/Ming patch for Patrick Wollgast
1946         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
1947         if -fvtable-verify=preinit/std is used.
1948         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
1949         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
1950         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
1951         if -fvtable-verify=preinit/std is used.
1952         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
1953         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
1954         if -fvtable-verify=preinit/std is used.
1955         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
1956         * config/i386/mingw32.h (LIB_SPEC): Likewise.
1957         * varasm.c (assemble_variable): Add code to properly set the comdat
1958         section and name for the .vtable_map_vars section in case the
1959         target is PE or COFF.
1961 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
1963         PR ipa/64801
1964         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
1965         make sane BB profile.
1966         (cgraph_node::expand_thunk): Make sane BB profile.
1967         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
1968         * cgraph.h (init_lowered_empty_function): Update prototype.
1969         * config/i386/i386.c (make_resolver_func): Update call.
1970         * predict.c (gate): Disable branch prediction pass if
1971         profile is already there.
1973 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
1975         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
1976         * opth-gen.awk: Likewise.
1977         * common.opt: Mark flag_fp_contract_mode as Optimization.
1979 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1981         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
1982         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
1984 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
1986         PR target/64659
1987         * config/sh/predicates.md (atomic_arith_operand,
1988         atomic_logical_operand): Remove.
1989         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
1990         (atomic_arith_operand_0): New predicate.
1991         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
1992         Use atomic_arith_operand_0 for input values.
1993         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
1994         atomic_compare_and_swap<mode>_soft_gusa,
1995         atomic_compare_and_swap<mode>_soft_tcb,
1996         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
1997         arith_reg_operand instead of register_operand.
1998         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
1999         atomic_arith_operand_0 for newval input.
2000         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2001         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
2002         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
2003         arith_reg_operand instead of register_operand.
2004         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
2005         fetchop_predicate_1, fetchop_constraint_1_llcs,
2006         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
2007         fetchop_constraint_1_imask): New code iterator attributes.
2008         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
2009         register_operand.  Use fetchop_predicate_1.
2010         (atomic_fetch_<fetchop_name>si_hard,
2011         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
2012         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
2013         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
2014         and arith_reg_operand instead of register_operand.  Use
2015         fetchop_predicate_1, fetchop_constraint_1_gusa.
2016         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
2017         and arith_reg_operand instead of register_operand.  Use
2018         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
2019         to allow R0 usage.
2020         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
2021         and arith_reg_operand instead of register_operand.  Use
2022         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
2023         to allow R0 usage.
2024         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
2025         register_operand.  Use atomic_logical_operand_1.
2026         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
2027         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
2028         arith_reg_operand instead of register_operand.
2029         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
2030         Use arith_reg_dest and arith_reg_operand instead of register_operand.
2031         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
2032         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
2033         register_operand.  Use fetchop_predicate_1.
2034         (atomic_<fetchop_name>_fetchsi_hard,
2035         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
2036         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
2037         fetchop_constraint_1_llcs.
2038         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
2039         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
2040         fetchop_constraint_1_gusa.
2041         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
2042         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
2043         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
2044         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
2045         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
2046         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
2047         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
2048         register_operand.  Use atomic_logical_operand_1.
2049         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
2050         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
2051         arith_reg_operand instead of register_operand.
2052         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
2053         arith_reg_operand instead of register_operand.  Use logical_operand
2054         and K08.  Adjust asm sequence to allow R0 usage.
2055         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
2056         arith_reg_operand instead of register_operand.  Use logical_operand
2057         and K08.
2059 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
2061         PR other/63504
2062         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
2063         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
2064         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
2065         only get_full_len HOST_WIDE_INTs from get_val () array rather than
2066         all bits in *val_wide.
2068 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
2070         * varpool.c (tls_model_names): Fix names.
2071         (varpool_node::dump): Dump tls- prefix for tls models.
2073 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
2074             Bernd Schmidt  <bernds@codesourcery.com>
2075             Nathan Sidwell  <nathan@codesourcery.com>
2077         * config/nvptx/mkoffload.c: New file.
2078         * config/nvptx/t-nvptx: Add build rules for it.
2079         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
2080         (extra_programs): Add mkoffload.
2081         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
2082         function.
2083         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
2085 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
2087         PR middle-end/64809
2088         * cfgexpand.c (reorder_operands): Skip debug gimples.
2090 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
2092         PR tree-optimization/64277
2093         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
2094         range info when possible to refine estimation.
2096 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2098         PR tree-optimization/64718
2099         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
2100         be a 16bit unsigned integer when n->range is 16.
2101         (bswap_replace): Convert src to that type if necessary for all bswap
2102         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
2103         set in pass_optimize_bswap::execute ().
2105 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
2107         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
2108         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
2109         integer and floating point variants.
2110         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
2112 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
2114         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
2115         for all vector modes.
2117 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
2119         PR bootstrap/64612
2120         * doc/sourcebuild.texi (comdat_group): Document.
2122 2015-01-28  Terry Guo  <terry.guo@arm.com>
2124         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
2126 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
2128         * toplev.c (print_version): Add param "show_global_state", and
2129         only print GGC and plugin information if it is true.
2130         (init_asm_output): Pass in "true" for the new param when calling
2131         print_version.
2132         (process_options): Likewise.
2133         (toplev::main): Likewise.
2134         * toplev.h (print_version): Add new param to decl.
2136 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
2138         PR ipa/60871
2139         PR ipa/64139
2140         * tree.c (lookup_binfo_at_offset): New function.
2141         (get_binfo_at_offset): Use it.
2143 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
2145         PR ipa/64282
2146         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
2147         on vtable being vtable.
2149 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2151         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
2152         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
2153         -mhotpatch= option.
2154         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
2155         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
2156         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
2157         Renamed.
2158         (s390_hotpatch_trampoline_halfwords_max): Renamed.
2159         (s390_hotpatch_hw_max): New name.
2160         (s390_hotpatch_trampoline_halfwords): Renamed.
2161         (s390_hotpatch_hw_before_label): New name.
2162         (get_hotpatch_attribute): Removed.
2163         (s390_hotpatch_hw_after_label): New name.
2164         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
2165         attribute.
2166         (s390_attribute_table): Ditto.
2167         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
2168         (s390_function_num_hotpatch_hw): New name.
2169         Remove special handling of inline functions and hotpatching.
2170         Return number of nops before and after the function label.
2171         (s390_can_inline_p): Removed.
2172         (s390_asm_output_function_label): Emit a configurable number of nops
2173         after the function label.
2174         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
2175         (TARGET_CAN_INLINE_P) Removed.
2176         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
2178 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2179             Jiong Wang  <jiong.wang@arm.com>
2181         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
2182         of scratch reg.
2183         (cb<optab><mode>1): Likewise.
2184         * config/aarch64/iterators.md (bcond): New define_code_attr.
2186 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2188         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
2189         memory accesses.
2191 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2193         * config/s390/s390.c (s390_register_move_cost): Increase costs for
2194         FPR->GPR moves.
2196 2015-01-27  Richard Biener  <rguenther@suse.de>
2198         * tree-vrp.c (update_value_range): Intersect the range with
2199         old recorded SSA name range information.
2201 2015-01-27  Nick Clifton  <nickc@redhat.com>
2203         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
2204         BC, DE and HL registers directly, not via AX.
2205         When decrementing the stack pointer by a large amount, transfer SP
2206         into AX and perform the subtraction there.
2207         (rl78_expand_epilogue): Perform the inverse of the above
2208         enhancements.
2210 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2212         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
2214 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
2215             Yury Gribov  <y.gribov@samsung.com>
2217         PR ubsan/64741
2218         * ubsan.c (ubsan_source_location): Refactor code.
2219         (ubsan_type_descriptor): Update type size. Refactor code.
2221 2015-01-27  Richard Biener  <rguenther@suse.de>
2223         PR tree-optimization/56273
2224         PR tree-optimization/59124
2225         PR tree-optimization/64277
2226         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
2227         from the first VRP pass.
2229 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
2231         PR ipa/64776
2232         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
2233         handle the first argument in the same loop as all the other arguments.
2235         PR rtl-optimization/61058
2236         * jump.c (cleanup_barriers): Update basic block boundaries
2237         if BLOCK_FOR_INSN is non-NULL on PREV.
2239 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
2241         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
2242         bounds narrowing, already instrumented calls and calls to
2243         not instrumentable functions.
2245 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
2247         PR tree-optimization/64807
2248         * wide-int.cc (wi::divmod_internal): Clear
2249         b_dividend[dividend_blocks_needed].
2251 2015-01-26  DJ Delorie  <dj@redhat.com>
2253         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
2254         volatile memory references.
2256 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
2258         PR target/49263
2259         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
2260         remove_insn.
2261         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
2262         shifts if it already fits into K08.
2264 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
2266         PR ipa/64730
2267         * ipa-inline.c (inline_small_functions): Print "unknown" even
2268         if edge->call_stmt is non-NULL, but has builtins or unknown
2269         location.
2271         PR middle-end/64421
2272         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
2273         with asterisk, skip the first character.
2275 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
2277         PR target/64806
2278         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
2279         order change.
2281 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
2283         PR target/64795
2284         * config/i386/i386.md (*movdi_internal): Also check operand 0
2285         to determine TYPE_LEA operand.
2286         (*movsi_internal): Ditto.
2288 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
2290         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
2291         OPTION_MASK_QUAD_MEMORY_ATOMIC.
2293 2015-01-26  Renlin Li  <renlin.li@arm.com>
2295         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
2296         the comment.
2297         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
2298         for higher part.
2300 2015-01-26  Richard Biener  <rguenther@suse.de>
2302         PR middle-end/64764
2303         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
2304         combining two BIT_AND_EXPR predicates.
2306 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
2308         PR bootstrap/64754
2309         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
2311 2015-01-26  Terry Guo  <terry.guo@arm.com>
2313         * config/arm/arm.c (arm_file_start): Update the assignment of
2314         Tag_ABI_HardFP_use.
2316 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
2318         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
2319         pipeline model.
2320         config/arm/arm.md: Include the new Cortex-A57 model.
2321         (generic_sched): Don't use generic_sched when tuning for
2322         Cortex-A57.
2324 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
2325             Uros Bizjak  <ubizjak@gmail.com>
2327         * config/i386/i386.c (get_builtin_code_for_version): Add
2328         support for BMI and BMI2 multiversion functions.
2330 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2332         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
2333         (extract_bit_field): Likewise.
2334         (extract_low_bits): Likewise.
2335         (expand_mult): Likewise.
2336         (expand_mult_highpart_adjust): Likewise.
2338 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
2340         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
2341         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
2342         * config/i386/i386.c (processor_model): Add
2343         M_INTEL_COREI7_BROADWELL.
2344         (arch_names_table): Add "broadwell".
2346 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
2348         PR target/49263
2349         PR target/53987
2350         PR target/64345
2351         PR target/59533
2352         PR target/52933
2353         PR target/54236
2354         PR target/51244
2355         * config/sh/sh-protos.h
2356         (sh_extending_set_of_reg::can_use_as_unextended_reg,
2357         sh_extending_set_of_reg::use_as_unextended_reg,
2358         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
2359         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
2360         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
2361         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
2362         (sh_treg_insns): New class.
2363         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
2364         (scope_counter): New class.
2365         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
2366         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
2367         sh_extending_set_of_reg::can_use_as_unextended_reg,
2368         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
2369         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
2370         sh_split_treg_set_expr): New functions.
2371         (addsubcosts): Handle treg_set_expr.
2372         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
2373         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
2374         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
2375         (sh_insn_operands_modified_between_p): Make non-static.
2376         * config/sh/predicates.md (zero_extend_movu_operand): Allow
2377         simple_mem_operand in addition to displacement_mem_operand.
2378         (zero_extend_operand): Don't allow zero_extend_movu_operand.
2379         (treg_set_expr, treg_set_expr_not_const01,
2380         arith_reg_or_treg_set_expr): New predicates.
2381         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
2382         arith_or_int_operand instead of logical_operand.  Convert to
2383         insn_and_split.  Try to optimize constant operand in splitter.
2384         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
2385         (*tstqi_t_zero): Delete.
2386         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
2387         (tstsi_t_and_not): Delete.
2388         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
2389         Convert to insn_and_split.
2390         (unnamed split, tstsi_t_zero_extract_xor,
2391         tstsi_t_zero_extract_subreg_xor_little,
2392         tstsi_t_zero_extract_subreg_xor_big): Delete.
2393         (*tstsi_t_shift_mask): New insn_and_split.
2394         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
2395         to recombine with surrounding insns when splitting.
2396         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
2397         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
2398         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
2399         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
2400         (*cbranch_div0s: Delete.
2401         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
2402         Try to recombine with surrounding insns when splitting.  Add operand
2403         order variants.
2404         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
2405         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
2406         *addc_r_r_msb, *addc_2r_msb): Delete.
2407         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
2408         order variant.
2409         (*addc_negreg_t): New insn_and_split.
2410         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
2411         Try to recombine with surrounding insns when splitting.
2412         Add operand order variants.
2413         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
2414         insn_and_split patterns.
2415         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
2416         surrounding insns when splitting.
2417         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
2418         (*rotcl): Likewise.  Add zero_extract variant.
2419         (*ashrsi2_31): New insn_and_split.
2420         (*negc): Convert to insn_and_split.  Use treg_set_expr.
2421         (*zero_extend<mode>si2_disp_mem): Update comment.
2422         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
2423         condition.
2424         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
2425         with surrounding insns when splitting.
2426         (any_treg_expr_to_reg): New insn_and_split.
2427         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
2428         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
2429         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
2430         *zero_extract_2): New single bit zero extract patterns.
2431         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
2432         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
2433         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
2434         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
2435         set destination.
2436         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
2437         register_operand for set source.
2439 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
2441         * i386.opt (prefetch_sse): New targetsave.
2442         * i386.c (ix86_function_specific_save): Save prefetch_sse.
2443         (ix86_function_specific_restore): Restore prefetch_sse and initialize
2444         ix86_cost/ix86_tune_cost.
2446 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
2448         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
2449         Support the JIT by using 0 as the language type.
2451 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
2453         PR target/64317
2454         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
2455         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
2456         (mark_regno_live, process_bb_lives): Pass new parameter value to
2457         make_hard_regno_born.
2459 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
2461         PR rtl-optimization/63637
2462         PR rtl-optimization/60663
2463         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
2464         if elt->cost is MAX_COST for ASM_OPERANDS.
2465         (find_sets_in_insn): Fix up comment typo.
2466         (cse_insn): Don't set src_volatile for all non-volatile
2467         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
2468         or with "memory" clobber.  Set elt->cost to MAX_COST
2469         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
2470         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
2472 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
2474         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
2475         alternative 1.
2477 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
2479         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
2480         libgcc/config/i386/elf-lib.h.
2482 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
2484         PR driver/64737
2485         * gcc.c (print_configuration): Don't print a blank line at the end
2486         here...
2487         (run_attempt): ... but here unstead.
2489         PR middle-end/64734
2490         * omp-low.c (scan_sharing_clauses): Don't ignore
2491         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
2492         on target data/update constructs.
2494 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2496         PR target/50928
2497         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
2498         (DEBUG_RELOAD): Removed define.
2499         (m32c_limit_reload_class): Enable traces with if DEBUG0.
2500         (m32c_function_arg): Added a type cast.
2501         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
2502         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
2503         * config/m32c/bitops.md (andqi3_16): Likewise.
2504         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
2505         (push_a01_l): Likewise.
2507 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
2509         PR jit/64721
2510         * main.c (main): Construct toplev instances with init_signals=true.
2511         * toplev.c (general_init): Add param "init_signals", and use it to
2512         conditionalize the calls to signal and host_hooks.extra_signals.
2513         (toplev::toplev): Add param "init_signals".
2514         (toplev::main): When invoking general_init, pass m_init_signals
2515         to control whether signal-handlers are installed.
2516         * toplev.h (toplev::toplev): Add param "init_signals".
2517         (toplev::m_init_signals): New field.
2519 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
2521         PR jit/64722
2522         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
2523         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
2524         latter may be affected by the former (e.g. on i686).
2526 2015-01-23  Martin Liska  <mliska@suse.cz>
2528         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
2529         false positive during profiledbootstrap.
2531 2015-01-23  Tom de Vries  <tom@codesourcery.com>
2533         PR libgomp/64672
2534         * lto-opts.c (lto_write_options): Output non-explicit conservative
2535         -fno-openacc.
2536         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
2537         (append_compiler_options): Pass -fopenacc through.
2539 2015-01-23  Tom de Vries  <tom@codesourcery.com>
2541         PR libgomp/64707
2542         * lto-opts.c (lto_write_options): Output non-explicit conservative
2543         -fno-openmp.
2544         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
2545         (append_compiler_options): Pass -fopenmp through.
2547 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
2549         PR debug/64511
2550         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
2551         GTY markup.
2553         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
2554         * diagnostic.def (DK_ICE_NOBT): New kind.
2555         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
2556         like DK_ICE, but never print backtrace.
2557         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
2558         (internal_error_no_backtrace): New function.
2559         * gcc.c (execute): Use internal_error_no_backtrace instead of
2560         internal_error.
2562 2015-01-22  Jeff Law  <law@redhat.com>
2564         PR target/52076
2565         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
2566         improve code density for small immediate to memory case.
2567         (insv): Better handle bitfield assignments when the field is
2568         being set to all ones.
2569         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
2570         operand predicate.
2572 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2573             Jakub Jelinek  <jakub@redhat.com>
2575         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
2576         for !TARGET_LIBC_PROVIDES_SSP version and
2577         -fstack-protector-{all,strong,explicit} otherwise.
2578         * config/freebsd.h (LINK_SSP_SPEC): Handle
2579         -fstack-protector-{strong,explicit}.
2581 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
2582             H.J. Lu  <hongjiu.lu@intel.com>
2584         PR ipa/64694
2585         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
2586         heap.
2588 2015-01-22  Wei Mi  <wmi@google.com>
2590         PR rtl-optimization/64557
2591         * dse.c (record_store): Call get_addr for mem_addr.
2592         (check_mem_read_rtx): Likewise.
2594 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
2596         * fold-const.c (const_binop): Add early return for non-tcc_binary.
2598 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
2600         * toplev.c (init_local_tick): Process the failure when read
2601         fails for random_seed.
2603         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
2604         'pretty_name' to avoid memory overflow.
2606 2015-01-22  Richard Biener  <rguenther@suse.de>
2608         PR middle-end/64728
2609         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
2610         abnormal coalescing on undefined SSA names.
2612 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
2614         PR target/64688
2615         PR target/64477
2616         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
2617         for alternative 3.
2618         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
2620 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
2622         PR middle-end/63325
2623         * fold-const.c (fold_checksum_tree): Don't include value of
2624         expr->decl_with_vis.symtab_node in the checksum.
2626 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2628         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
2630 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
2632         PR driver/64690
2633         * gcc.c (insert_comments): New function.
2634         (try_generate_repro): Call it.
2635         (append_text): Removed.
2637 2015-01-22  Richard Biener  <rguenther@suse.de>
2639         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
2640         with IL incompatible options.  Properly honor user optimize
2641         attributes.
2643 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
2645         PR rtl-optimization/64682
2646         * combine.c (distribute_notes): When moving a death note for
2647         a register that is set in the new I2, make sure to put it
2648         before that new I2.
2650 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
2652         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
2653         not TARGET_DEFAULT.
2655 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
2657         PR debug/64511
2658         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
2659         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
2660         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
2662         PR sanitizer/64706
2663         * doc/invoke.texi (-fsanitize=vptr): Document.
2665         PR rtl-optimization/62078
2666         * dse.c: Include cfgcleanup.h.
2667         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
2668         anything call purge_all_dead_edges and cleanup_cfg at the end
2669         of the pass.
2671 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
2673         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
2674         edges.
2676 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2678         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
2679         decl attribute.
2681 2015-01-21  David Sherwood  <david.sherwood@arm.com>
2682             Tejas Belagod <Tejas.Belagod@arm.com>
2684         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
2685         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
2686         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
2687         Removed.
2689 2015-01-21  David Sherwood  <david.sherwood@arm.com>
2690             Tejas Belagod <Tejas.Belagod@arm.com>
2692         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
2693         (aarch64_reverse_mask): New decls.
2694         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
2695         (insn_count): New mode_attr.
2696         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
2697         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
2698         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
2699         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
2700         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
2701         (aarch64_simd_st4): New patterns.
2702         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
2703         (aarch64_reverse_mask): New functions.
2705 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
2707         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
2708         Declare.
2709         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
2710         addressing modes for BE.
2711         (aarch64_print_operand): Add 'R' specifier.
2712         (aarch64_simd_disambiguate_copy): Delete.
2713         (aarch64_simd_emit_reg_reg_move): New function.
2714         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
2715         in define_splits for structural moves.
2716         (mov<mode>): Use less restrictive predicates.
2717         (*aarch64_mov<mode>): Simplify and only allow for LE.
2718         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
2720 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
2722         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
2724 2015-01-21  Richard Henderson  <rth@redhat.com>
2726         PR target/64669
2727         * ccmp.c (used_in_cond_stmt_p): Remove.
2728         (expand_ccmp_expr): Don't use it.
2730 2015-01-21  Nick Clifton  <nickc@redhat.com>
2732         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
2733         PARALLELs.
2735 2015-01-21  Richard Biener  <rguenther@suse.de>
2737         PR middle-end/64313
2738         * tree-core.h (builtin_info, builtin_info_type): Turn from
2739         an object with two arrays into an array of an object with
2740         decl and two flags, implicit_p and declared_p.
2741         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
2742         set_builtin_decl, set_builtin_decl_implicit_p,
2743         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
2744         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
2745         * builtins.c (builtin_info): Adjust.
2746         * gimplify.c (gimplify_addr_expr): References to builtins
2747         that have been declared by the user makes them eligible for
2748         use by the compiler.  Call set_builtin_decl_implicit_p on them.
2750 2015-01-20  Jeff Law  <law@redhat.com>
2752         PR target/59946
2753         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
2754         allow pc-relative addresses in operand predicates or constraints.
2756 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
2758         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
2759         neon on aarch32 processors for stringops.
2761 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2763         PR ipa/63576
2764         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
2766 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2768         PR lto/45375
2769         * ipa-inline.c: Include lto-streamer.h
2770         (report_inline_failed_reason): Output source file differences and
2771         flags on optimization/target node mismatch.
2772         (can_inline_edge_p): Consider caller to be the outer inline function;
2773         be less restrictive about matching opimize and optimize_size attributes.
2774         (inline_account_function_p): Break out from ...
2775         (inline_small_functions): ... here.
2776         * ipa-inline-transform.c (clone_inlined_nodes): Use
2777         inline_account_function_p.
2778         (inline_call): Use optimize attribution; use inline_account_function_p.
2779         (inline_transform): Use opt_for_fn.
2780         * ipa-inline.h (inline_account_function_p): Declare.
2782 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
2784         PR debug/64663
2785         * dwarf2out.c (decl_piece_node): Don't put bitsize into
2786         mode if bitsize <= 0.
2787         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
2788         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
2789         sizes and positions.
2791 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
2793         * config/nios2/nios2.c (nios2_asm_file_end): Implement
2794         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
2795         needed.
2796         (TARGET_ASM_FILE_END): Define.
2798 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
2800         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
2801         (struct tune_params): Use the enum.
2802         * arm.c (arm_*_tune): Update.
2803         (arm_option_override): Update.
2805 2015-01-20  Richard Biener  <rguenther@suse.de>
2807         PR ipa/64684
2808         * ipa-reference.c (add_static_var): Inline ...
2809         (analyze_function): ... here after splitting out from ...
2810         (is_proper_for_analysis): ... this.
2812 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
2814         PR target/64149
2815         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
2816         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
2817         replace the conditional with it's true branch.
2818         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
2819         (arm_lra_p): Remove.
2821 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
2823         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
2825 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2827         * config/tilegx/mul-tables.c: Move symtab.h include after
2828         coretypes.h include.
2829         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
2830         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
2831         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
2832         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
2833         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
2835 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
2837         PR bootstrap/64676
2838         Revert:
2839         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
2841         PR rtl-optimization/64081
2842         * loop-iv.c (def_pred_latch_p): New function.
2843         (latch_dominating_def): Allow specific cases with non-single
2844         definitions.
2845         (iv_get_reaching_def): Likewise.
2846         (check_complex_exit_p): New function.
2847         (check_simple_exit): Use check_complex_exit_p to allow certain cases
2848         with exits not executing on any iteration.
2850 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2852         PR lto/45375
2853         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
2854         to set branch cost.
2856 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2858         PR lto/45375
2859         * i386.c (gate): Check flag_expensive_optimizations and
2860         optimize_size.
2861         (ix86_option_override_internal): Drop optimize_size condition
2862         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
2863         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
2864         MASK_PREFER_AVX128.
2865         (ix86_avx256_split_vector_move_misalign,
2866         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
2867         * sse.md (all uses of TARGET_PREFER_AVX128): Add
2868         optimize_insn_for_speed_p check.
2870 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
2872         * config/mips/mips.h (FP_ASM_SPEC): New define.
2873         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
2874         instead.
2876 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
2878         PR target/53988
2879         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
2880         nullptr for insn when reaching the first insn.
2881         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
2882         (sh_insn_operands_modified_between_p): Add nullptr check.
2883         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
2884         sign extending mem load if the insn contains any UNSPEC or
2885         UNSPEC_VOLATILE.
2887 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2889         * params.def (inline-unit-growth): Drop to 15%.
2890         * invoke.texi (inline-unit-growth): Document change.
2892 2015-01-19  Martin Liska  <mliska@suse.cz>
2894         PR ipa/64668
2895         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
2896         function for second argument of OBJ_TYPE_REF.
2898 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2900         PR ipa/64218
2901         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
2902         whether function is an alias.
2904 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2906         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
2907         cases.
2909 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
2911         PR rtl-optimization/64671
2912         * lra-remat.c (operand_to_remat): Don't consider jump and call
2913         insns.
2915 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
2917         * config/rs6000/default64.h: Include rs6000-cpus.def.
2918         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
2919         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
2920         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
2921         and POWER8.
2922         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
2923         POWER8.
2924         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
2925         pseudo-op to specify assembler dialect.
2927 2015-01-19  Martin Liska  <mliska@suse.cz>
2929         PR ipa/64664
2930         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
2931         Handle safe potentially removed nodes during filtering.
2933 2015-01-19  Martin Liska  <mliska@suse.cz>
2935         * doc/extend.texi (no_icf): Add new attribute description.
2936         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
2937         where the pass attempts to merge a function with no_icf attribute.
2939 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2941         PR target/64532
2942         * doc/md.texi (ARM Options): Document register constraints.
2944 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
2945             Andrew Pinski  <apinski@cavium.com>
2947         PR target/64304
2948         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
2949         (ashl<mode>3): Don't expand if operands[2] is not constant.
2951 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2953         PR target/64448
2954         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
2955         Match xor-and-xor RTL pattern.
2957 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
2959         PR rtl-optimization/64081
2960         * loop-iv.c (def_pred_latch_p): New function.
2961         (latch_dominating_def): Allow specific cases with non-single
2962         definitions.
2963         (iv_get_reaching_def): Likewise.
2964         (check_complex_exit_p): New function.
2965         (check_simple_exit): Use check_complex_exit_p to allow certain cases
2966         with exits not executing on any iteration.
2968 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
2970         * common.opt (fgraphite): Fix a typo.
2972 2015-01-19  Felix Yang  <felix.yang@huawei.com>
2974         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
2975         pattern.
2976         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
2977         uminp, smax_nanp, smin_nanp): New builtins.
2978         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
2979         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
2980         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
2981         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
2982         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
2983         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
2984         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
2985         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
2986         vpminnms_f32): Rewrite using builtin functions.
2988 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
2990         PR libgomp/64625
2991         * omp-low.c (offload_symbol_decl): Remove variable.
2992         (get_offload_symbol_decl): Remove function.
2993         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
2994         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
2995         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
2996         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
2997         BUILT_IN_GOACC_UPDATE don't pass it at all.
2999 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
3001         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
3002         callers.
3004 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
3006         * ipa-chkp.c (chkp_produce_thunks): Add early param
3007         to split thunks production into two passes.  Keep
3008         'always_inline' function bodies after the first pass.
3009         (pass_data_ipa_chkp_early_produce_thunks): New.
3010         (pass_ipa_chkp_early_produce_thunks): New.
3011         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
3012         chkp_produce_thunks signature.
3013         (make_pass_ipa_chkp_early_produce_thunks): New.
3014         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
3015         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
3016         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
3018 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
3020         * cgraph.c (cgraph_node::dump): Dump profile flags.
3022 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
3024         PR target/64652
3025         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
3026         reg appear first in the parallel.
3028 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
3030         * ipa-reference.c (set_reference_optimization_summary,
3031         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
3032         disabled.
3033         (ignore_module_statics): New static var.
3034         (propagate_bits): If ipa-reference is disabled, do not look into local
3035         properties.
3036         (analyze_function): Disable analysis when ipa_reference is disabled.
3037         (generate_summary): Do not dump when reference is disabled;
3038         collect vars accessed from functions with ipa-reference disabled.
3039         (get_read_write_all_from_node): When ipa-reference is disabled, use the
3040         node flags.
3041         (gate): Enable for LTO.
3042         (ignore_edge_p): New function.
3043         (propagate): Skip functions w/o ipa-reference analysis.
3044         * optc-save-gen.awk: Handle optimize_debug correctly.
3045         * opth-gen.awk: Likewise.
3046         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
3047         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
3048         fira-share-save-slots, fira-share-spill-slots,
3049         fmodulo-sched-allow-regmoves, fpartial-inlining,
3050         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
3051         ftracer, ftree-parallelize-loops, fassociative-math,
3052         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
3053         Optimization
3054         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
3055         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
3056         Optimization.
3057         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
3058         Fix for IPA.
3060 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
3062         PR ipa/64378
3063         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
3064         flag correctly.
3065         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
3067 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
3069         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
3070         Remove duplicate option listings.
3072 2015-01-18  Felix Yang  <felix.yang@huawei.com>
3074         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
3075         (autofdo_source_profile::get_callsite_total_count,
3076         function_instance::get_function_instance_by_decl,
3077         string_table::get_index, string_table::get_index_by_decl,
3078         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
3079         Fix comment typos. Reformatting and minor code rearrangement.
3081 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
3083         * config/rs6000/rs6000.md (probe_stack): Delete.
3084         (probe_stack_address): New.
3086 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
3088         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
3089         to test for 32-bit ABIs, not !TARGET_POWERPC64.
3091 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
3093         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
3094         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
3095         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
3096         snafu.
3097         (rs6000_libcall_value): Use the new function.
3099 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
3101         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
3103 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
3105         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
3106         implement a more precise life analysis for it during backward scan.
3108 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3110         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
3112 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
3114         PR rtl-optimization/52773
3115         * calls.c (emit_library_call_value): When pushing arguments use
3116         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
3117         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
3118         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
3120 2015-01-17  Jeff Law  <law@redhat.com>
3122         PR rtl-optimization/32790
3123         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
3124         not ZERO_EXTEND in SET_DESTs.
3126 2015-01-17  Alan Modra  <amodra@gmail.com>
3128         * cprop.c (do_local_cprop): Revert last change.
3130 2015-01-16  DJ Delorie  <dj@redhat.com>
3131             Nick Clifton  <nickc@redhat.com>
3133         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
3134         (addhi3_real): Likewise.  Fix [HL+0] syntax.
3135         (subqi3_real): Likewise.
3136         (subhi3_real): Likewise.
3137         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
3138         (cbranchhi4_real): Likewise.
3139         (cbranchhi4_real_inverted): Likewise.
3140         (cbranchsi4_real_lt): Likewise.
3141         (cbranchsi4_real_ge): Likewise.
3142         (cbranchsi4_real_ge): Likewise.
3143         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
3144         (sub<mode>3_virt): Likewise.
3145         (cbranchqi4_virt): Likewise.
3146         (cbranchhi4_virt): Likewise.
3147         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
3148         always use '[reg+imm]' even when imm is zero.
3149         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
3150         (rl78_general_operand): New.
3151         (rl78_nonimmediate_operand): New.
3152         (rl78_nonfar_operand): Use them.
3153         (rl78_nonfar_nonimm_operand): Likewise.
3154         (rl78_stack_based_mem): Fix.
3155         * config/rl78/constraints.md (Ibqi): New.
3156         (IBqi): New.
3157         (Wsa): New.
3158         (Wsf): New.
3159         (Cs1): Fix.
3160         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
3161         (iorqi3): Likewise.
3162         (xorqi3): Likewise.
3163         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
3165         * config/rl78/constrains (Qs8): New constraint.
3166         * config/rl78/rl78.c (rl78_flags_already_set): New function.
3167         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
3168         * config/rl78/rl78-real.md (update_Z): New attribute.
3169         Update patterns to set it.
3170         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
3171         shorter compare and branch sequence can be used.
3172         (cbranchhi4_real): Likewise.
3173         (cbranchhi4_real_inverted): Likewise.
3175         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
3176         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
3177         address space.
3178         * config/rl78/rl78.c (rl78_get_name_encoding): New.
3179         (rl78_option_override): Allow -mes0 only if C.
3180         (characterize_address): Support subregs of symbol_refs.
3181         (rl78_addr_space_address_mode): Move.  Add __near.
3182         (rl78_far_p): Likewise.
3183         (rl78_addr_space_pointer_mode): Likewise.
3184         (rl78_as_legitimate_address): Likewise.
3185         (rl78_addr_space_subset_p): Likewise.
3186         (rl78_addr_space_convert): Likewise.
3187         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
3188         symbols with -mes0.
3189         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
3190         addressing.
3191         (rl78_alloc_physical_registers_op1): Change logic to prefer
3192         symbol[BC] addressing.
3193         (frodata_section): New.
3194         (rl78_asm_init_sections): Initialize it.
3195         (rl78_select_section): Put __far readonly symbols in .frodata.
3196         (rl78_make_type_far): New.
3197         (rl78_insert_attributes): Force all readonly symbols to be
3198         __far when -mes0.
3199         (rl78_asm_out_integer): New.
3200         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
3201         * config/rl78/rl78.opt (-mes0): New.
3203         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
3204         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
3205         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3206         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
3207         (rl78_saddr_p): New.
3208         (rl78_output_aligned_common): New.
3209         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
3210         (rl78_handle_saddr_attribute): New.
3211         (rl78_handle_naked_attribute): New.
3212         (rl78_attribute_table): Add saddr.
3213         (rl78_print_operand_1): Don't print '!' on saddr operands.
3214         (rl78_print_operand_1): Strip encodings.
3215         (rl78_sfr_p): New.
3216         (rl78_strip_name_encoding): New.
3217         (rl78_attrlist_to_encoding): New.
3218         (rl78_encode_section_info): New.
3219         (rl78_asm_init_sections): New.
3220         (rl78_select_section): New.
3221         (rl78_output_labelref): New.
3222         (rl78_output_aligned_common): New.
3223         (rl78_asm_out_integer): New.
3224         (rl78_asm_ctor_dtor): New.
3225         (rl78_asm_constructor): New.
3226         (rl78_asm_destructor): New.
3228         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
3229         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
3230         (transcode_memory_rtx): Update.
3231         (rl78_expand_epilogue): Use A_REG instead of 0.
3233 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
3235         * config/arm/arm-protos.h (struct tune_params): New field
3236         sched_autopref_queue_depth.
3237         * config/arm/arm.c (sched-int.h): Include header.
3238         (arm_first_cycle_multipass_dfa_lookahead_guard,)
3239         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
3240         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
3241         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
3242         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
3243         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
3244         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
3245         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
3246         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
3247         * config/arm/t-arm (arm.o): Update.
3248         * haifa-sched.c (update_insn_after_change): Update.
3249         (rank_for_schedule): Use auto-prefetcher model, if requested.
3250         (autopref_multipass_init): New static function.
3251         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
3252         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
3253         variable for debug dumps.
3254         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
3255         (autopref_multipass_dfa_lookahead_guard): New global function that
3256         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
3257         (init_h_i_d): Update.
3258         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
3259         * sched-int.h (enum autopref_multipass_data_status): New const enum.
3260         (autopref_multipass_data_): Structure for auto-prefetcher data.
3261         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
3262         (struct _haifa_insn_data:autopref_multipass_data): New field.
3263         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
3264         (autopref_multipass_dfa_lookahead_guard): Declare.
3266 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
3268         * rtlanal.c (get_base_term): Handle SCRATCH.
3270 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
3272         * config/aarch64/aarch64.c
3273         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
3274         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3275         * config/arm/arm.c
3276         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
3277         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3279 2015-01-17  Alan Modra  <amodra@gmail.com>
3281         * cprop.c (do_local_cprop): Disallow replacement of fixed
3282         hard registers.
3284 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3286         PR target/62066
3287         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
3288         early return 0.
3290 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3292         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
3293         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
3295 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3297         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
3298         * config/arm/thumb1.md: ... Here.
3300 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
3302         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
3303         TImode for TARGET_32BIT.
3305 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
3307         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
3308         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
3309         as ...
3310         (rs6000_abi_word_mode): New function.
3312 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
3314         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
3315         instead of UNITS_PER_WORD to describe the size of stack slots.
3317 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
3319         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
3320         as rs6000_promote_function_mode.  Move comment to there.
3321         (rs6000_promote_function_mode): New function.
3323 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
3325         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
3326         -mpowerpc64 is active.
3328 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
3330         PR middle-end/64353
3331         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
3332         virtuals on start.
3334 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
3336         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
3337         introduced in revision 219724.
3339 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3340             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3342         PR target/64263
3343         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
3344         destination is not a GP reg.
3345         (*movdi_aarch64): Likewise.
3347 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
3349         PR target/64623
3350         * config/rs6000/default64.h: Revert ISA change.
3352 2015-01-16  Richard Biener  <rguenther@suse.de>
3354         PR middle-end/64614
3355         * tree-ssa-uninit.c: Include tree-cfg.h.
3356         (MAX_SWITCH_CASES): New define.
3357         (convert_control_dep_chain_into_preds): Handle switch statements.
3358         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
3359         (normalize_one_pred_1): Do not split bit-manipulations.
3360         Record (x & CST).
3362 2015-01-16  Richard Biener  <rguenther@suse.de>
3364         PR tree-optimization/64568
3365         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
3366         complex load rewriting for TARGET_MEM_REFs.
3368 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
3370         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
3372 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
3374         PR target/64149
3375         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
3376         variable.
3377         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
3378         (aarch64_lra_p): Remove.
3380 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
3382         PR target/64363
3383         * ipa-chkp.h (chkp_instrumentable_p): New.
3384         * ipa-chkp.c: Include tree-inline.h.
3385         (chkp_instrumentable_p): New.
3386         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
3387         Fix processing of not instrumentable functions.
3388         (chkp_versioning): Use chkp_instrumentable_p. Warn about
3389         not instrumentable functions.
3390         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
3391         chkp_instrumentable_p.
3392         * tree-inline.h (copy_forbidden): New.
3393         * tree-inline.c (copy_forbidden): Not static anymore.
3395 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3397         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
3398         ptr1, ptr2 unused.
3400 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
3402         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
3403         type OP_OUT to OP_INOUT.
3405 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
3407         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
3408         (high x) y) to y if x and y have the same base.
3410 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
3412         * config/arm/cortex-a57.md: New.
3413         * config/aarch64/aarch64.md: Include it.
3414         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
3415         * config/aarch64/aarch64-tune.md: Regenerate.
3417 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3419         PR target/64015
3420         * ccmp.c (expand_ccmp_next): New function.
3421         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
3422         and compare insn sequence.
3423         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
3424         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
3425         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
3426         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
3427         (*ccmp_ior): Changed to ccmp_ior<mode>.
3428         (cmp<mode>): New pattern.
3429         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
3430         parameters.
3431         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
3433 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
3435         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
3436         _mm256_bsrli_epi128): New.
3437         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
3439 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
3441         * expmed.c (store_bit_field_using_insv): Improve warning message.
3442         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
3444 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
3446         PR rtl-optimization/64011
3447         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
3448         there is partial overflow.
3450 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
3452         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
3453         prototype.
3454         (nds32_expand_epilogue_v3pop): Likewise.
3455         * config/nds32/nds32.md (sibcall): Define this for sibling call
3456         optimization.
3457         (sibcall_register): Likewise.
3458         (sibcall_immediate): Likewise.
3459         (sibcall_value): Likewise.
3460         (sibcall_value_register): Likewise.
3461         (sibcall_value_immediate): Likewise.
3462         (sibcall_epilogue): Likewise.
3463         (epilogue): Pass false to indicate this is not a sibcall epilogue.
3464         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
3465         (nds32_expand_epilogue_v3pop): Likewise.
3467 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
3469         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
3470         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
3471         (return_internal): New.
3472         (return): Define this named pattern.
3473         (simple_return): Define this named pattern.
3474         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
3475         pattern instead of unspec_volatile_func_return.
3476         (nds32_expand_epilogue_v3pop): Likewise.
3477         (nds32_can_use_return_insn): New function.
3479 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
3481         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
3482         * config/nds32/nds32.md (pop25return): New.
3483         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
3484         pop25return pattern.
3486 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
3488         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
3489         -mforbid-fp-as-gp, and -mex9 options.
3491 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
3493         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
3494         remove -mgp-direct option.
3496 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
3498         * doc/invoke.texi (--param early-inlining-insns): Update default value.
3499         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
3501 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
3503         * ipa-inline.c (inline_small_functions): Work around hints
3504         cache issue.
3506 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
3508         PR target/59710
3509         * doc/invoke.texi (Option Summary): Document new Nios II
3510         -mgpopt= syntax.
3511         (Nios II Options): Likewise.
3512         * config/nios2/nios2.opt: Add -mgpopt= option support.
3513         Modify existing -mgpopt and -mno-gpopt options to be aliases.
3514         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
3515         * config/nios2/nios2.c (nios2_option_override): Adjust
3516         -mgpopt defaulting.
3517         (nios2_in_small_data_p): Return true for explicit small data
3518         sections even with -G0.
3519         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
3520         option choices.
3522 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
3524         PR ipa/64612
3525         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
3526         of comdat locals.
3527         (inline_call): Fix removal of aliases.
3529 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
3531         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
3532         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
3533         * opts.c (common_handle_option): Add -fsanitize=vptr.
3534         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
3535         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
3536         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
3537         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
3538         (ubsan_expand_vptr_ifn): New prototype.
3539         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
3540         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
3541         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
3542         expand_LOOP_VECTORIZED): Make argument nameless, remove
3543         ATTRIBUTE_UNUSED.
3544         (expand_UBSAN_VPTR): New function.
3545         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
3546         in fn spec.
3547         (UBSAN_VPTR): New internal function.
3548         * sanopt.c (tree_map_traits): Renamed to ...
3549         (sanopt_tree_map_traits): ... this.
3550         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
3551         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
3552         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
3553         (maybe_optimize_ubsan_vptr_ifn): New function.
3554         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
3555         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
3556         -fsanitize=vptr.
3557         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
3558         internal calls like pure functions for aliasing, even when they
3559         have other side-effects that prevent making them ECF_PURE.
3560         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
3561         (ubsan_expand_vptr_ifn): New function.
3563 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
3565         PR rtl-optimization/64110
3566         * stmt.c (parse_output_constraint): Process '^' and '$'.
3567         (parse_input_constraint): Ditto.
3568         * lra-constraints.c (process_alt_operands): Process the new
3569         constraints.
3570         * ira-costs.c (record_reg_classes): Process the new constraint
3571         '^'.
3572         * genoutput.c (indep_constraints): Add '^' and '$'.
3573         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
3574         * doc/md.texi: Add description of the new constraints.
3576 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
3577             Bernd Schmidt  <bernds@codesourcery.com>
3578             Cesar Philippidis  <cesar@codesourcery.com>
3579             James Norris  <jnorris@codesourcery.com>
3580             Tom de Vries  <tom@codesourcery.com>
3581             Ilmir Usmanov  <i.usmanov@samsung.com>
3582             Dmitry Bocharnikov  <dmitry.b@samsung.com>
3583             Evgeny Gavrin  <e.gavrin@samsung.com>
3584             Jakub Jelinek  <jakub@redhat.com>
3586         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
3587         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
3588         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
3589         New function types.
3590         * builtins.c: Include "gomp-constants.h".
3591         (expand_builtin_acc_on_device): New function.
3592         (expand_builtin, is_inexpensive_builtin): Handle
3593         BUILT_IN_ACC_ON_DEVICE.
3594         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
3595         New macros.
3596         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
3597         flag_openmp.
3598         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
3599         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
3600         i386/intelmic-offload.h.
3601         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
3602         to libgomp and its dependencies.
3603         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
3604         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
3605         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
3606         * config/ia64/hpux.h (LIB_SPEC): Likewise.
3607         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
3608         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
3609         * doc/generic.texi: Update for OpenACC changes.
3610         * doc/gimple.texi: Likewise.
3611         * doc/invoke.texi: Likewise.
3612         * doc/sourcebuild.texi: Likewise.
3613         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
3614         GF_OMP_FOR_KIND_OACC_LOOP.
3615         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
3616         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
3617         GF_OMP_TARGET_KIND_OACC_UPDATE,
3618         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
3619         Dump more data.
3620         * gimple.c: Update comments for OpenACC changes.
3621         * gimple.def: Likewise.
3622         * gimple.h: Likewise.
3623         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
3624         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
3625         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
3626         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
3627         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
3628         appropriate place.
3629         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
3630         * gimplify.c: Include "gomp-constants.h".
3631         Update comments for OpenACC changes.
3632         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
3633         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
3634         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
3635         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
3636         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
3637         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
3638         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
3639         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
3640         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
3641         OMP_CLAUSE_SEQ.
3642         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
3643         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
3644         OMP_CLAUSE_SET_MAP_KIND.
3645         (gimplify_oacc_cache): New function.
3646         (gimplify_omp_for): Handle OACC_LOOP.
3647         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
3648         OACC_DATA.
3649         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
3650         OACC_EXIT_DATA, OACC_UPDATE.
3651         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
3652         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
3653         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
3654         (gimplify_body): Consider flag_openacc next to flag_openmp.
3655         * lto-streamer-out.c: Include "gomp-constants.h".
3656         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
3657         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
3658         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
3659         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
3660         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
3661         (BUILT_IN_ACC_ON_DEVICE): New builtins.
3662         * omp-low.c: Include "gomp-constants.h".
3663         Update comments for OpenACC changes.
3664         (struct omp_context): Add reduction_map, gwv_below, gwv_this
3665         members.
3666         (extract_omp_for_data, use_pointer_for_field, install_var_field)
3667         (new_omp_context, delete_omp_context, scan_sharing_clauses)
3668         (create_omp_child_function, scan_omp_for, scan_omp_target)
3669         (check_omp_nesting_restrictions, lower_reduction_clauses)
3670         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
3671         Update for OpenACC changes.
3672         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
3673         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
3674         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
3675         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
3676         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
3677         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
3678         OMP_CLAUSE_MAP_*.
3679         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3680         Handle GF_OMP_FOR_KIND_OACC_LOOP.
3681         (expand_omp_target, lower_omp_target): Handle
3682         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
3683         GF_OMP_TARGET_KIND_OACC_UPDATE,
3684         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
3685         GF_OMP_TARGET_KIND_OACC_DATA.
3686         (pass_expand_omp::execute, execute_lower_omp)
3687         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
3688         flag_openmp.
3689         (offload_symbol_decl): New variable.
3690         (oacc_get_reduction_array_id, oacc_max_threads)
3691         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
3692         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
3693         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
3694         (oacc_gimple_assign, oacc_initialize_reduction_data)
3695         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
3696         functions.
3697         (is_targetreg_ctx): Remove function.
3698         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
3699         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
3700         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
3701         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
3702         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
3703         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
3704         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
3705         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
3706         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
3707         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
3708         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
3709         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
3710         * tree-core.h: Update comments for OpenACC changes.
3711         (enum omp_clause_map_kind): Remove.
3712         (struct tree_omp_clause): Change type of map_kind member from enum
3713         omp_clause_map_kind to unsigned char.
3714         * tree-inline.c: Update comments for OpenACC changes.
3715         * tree-nested.c: Likewise.  Include "gomp-constants.h".
3716         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
3717         (convert_tramp_reference_stmt, convert_gimple_call): Update for
3718         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
3719         OMP_CLAUSE_SET_MAP_KIND.
3720         * tree-pretty-print.c: Include "gomp-constants.h".
3721         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
3722         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
3723         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
3724         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
3725         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
3726         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
3727         instead of OMP_CLAUSE_MAP_*.
3728         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
3729         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
3730         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
3731         * tree-streamer-in.c: Include "gomp-constants.h".
3732         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
3733         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
3734         * tree-streamer-out.c: Include "gomp-constants.h".
3735         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
3736         OMP_CLAUSE_MAP_*.
3737         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
3738         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
3739         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
3740         * tree.c (omp_clause_num_ops): Update accordingly.
3741         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
3742         Likewise.
3743         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
3744         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
3745         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
3746         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
3747         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
3748         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
3749         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
3750         (OMP_CLAUSE_SET_MAP_KIND): New macro.
3751         * varpool.c (varpool_node::get_create): Consider flag_openacc next
3752         to flag_openmp.
3753         * config/i386/intelmic-offload.h: New file.
3754         * config/nvptx/offload.h: Likewise.
3756 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3758         * explow.h: Remove duplicate contents.
3759         * dojump.h: Likewise.
3761 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
3763         * arm.c (arm_xgene_tune): Add default initializer for instruction
3764         fusion.
3766 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
3768         PR ipa/64068
3769         PR ipa/64559
3770         * ipa.c (symbol_table::remove_unreachable_nodes):
3771         Do not put abstract origins into boundary.
3773 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
3775         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
3776         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
3778 2015-01-15  Steve Ellcey  <sellcey@mips.com>
3780         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
3781         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
3782         builtins.def, and chkp-builtins.def.
3784 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
3786         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
3787         ISA 2.7 (POWER8).
3789 2015-01-15  Richard Biener  <rguenther@suse.de>
3791         PR tree-optimization/61743
3792         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
3793         information on PHIs for some simple cases.
3795 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
3797         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
3798         Include xgene1.md.
3799         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
3800         * config/arm/arm-cores.def (xgene1): New entry.
3801         * config/arm/arm-tables.opt: Regenerate.
3802         * config/arm/arm-tune.md: Regenerate.
3803         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
3805 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
3807         * tree-if-conv.c: Include hash-map.h.
3808         (aggressive_if_conv): New variable.
3809         (fold_build_cond_expr): Add simplification of non-zero condition.
3810         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
3811         destination block is not always executed.
3812         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
3813         than two predecessors if AGGRESSIVE_IF_CONV is true.
3814         (if_convertible_stmt_p): Fix commentary.
3815         (all_preds_critical_p): New function.
3816         (has_pred_critical_p): New function.
3817         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
3818         BB can have more than two predecessors and all incoming edges can be
3819         critical.
3820         (predicate_bbs): Skip predication for loop exit block, use build2_loc
3821         to compute predicate for true edge.
3822         (find_phi_replacement_condition): Delete this function.
3823         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
3824         Allow interchange PHI arguments if EXTENDED is false.
3825         Change check that block containing reduction statement candidate
3826         is predecessor of phi-block since phi may have more than two arguments.
3827         (phi_args_hash_traits): New helper structure.
3828         (struct phi_args_hash_traits): New type.
3829         (phi_args_hash_traits::hash): New function.
3830         (phi_args_hash_traits::equal_keys): New function.
3831         (gen_phi_arg_condition): New function.
3832         (predicate_scalar_phi): Add handling of phi nodes with more than two
3833         arguments, delete COND and TRUE_BB arguments, insert body of
3834         find_phi_replacement_condition to predicate ordinary phi nodes.
3835         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
3836         delete call of find_phi_replacement_condition and invoke
3837         predicate_scalar_phi with two arguments.
3838         (insert_gimplified_predicates): Add assert that non-predicated block
3839         don't have statements to insert.
3840         (ifcvt_split_critical_edges): New function.
3841         (ifcvt_split_def_stmt): Likewise.
3842         (ifcvt_walk_pattern_tree): Likewise.
3843         (stmt_is_root_of_bool_pattern): Likewise.
3844         (ifcvt_repair_bool_pattern): Likewise.
3845         (ifcvt_local_dce): Likewise.
3846         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
3847         is copy of inner or outer loop force_vectorize field, invoke
3848         ifcvt_split_critical_edges, ifcvt_local_dce and
3849         ifcvt_repair_bool_pattern for aggressive if-conversion.
3851 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
3853         * config/aarch64/aarch64.md: Include xgene1.md.
3854         * config/aarch64/xgene1.md: New file.
3856 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
3858         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
3859         xgene1 (APM XGene-1) core definition.
3860         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
3861         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
3862         * doc/invoke.texi: Document -mcpu=xgene1.
3864 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3866         * dojump.h: New header file.
3867         * explow.h: Likewise.
3868         * expr.h: Remove includes.
3869         Move expmed.c prototypes to expmed.h.
3870         Move dojump.c prototypes to dojump.h.
3871         Move alias.c prototypes to alias.h.
3872         Move explow.c prototypes to explow.h.
3873         Move calls.c prototypes to calls.h.
3874         Move emit-rtl.c prototypes to emit-rtl.h.
3875         Move varasm.c prototypes to varasm.h.
3876         Move stmt.c prototypes to stmt.h.
3877         (saved_pending_stack_adjust): Move to dojump.h.
3878         (adjust_address): Move to explow.h.
3879         (adjust_address_nv): Move to emit-rtl.h.
3880         (adjust_bitfield_address): Likewise.
3881         (adjust_bitfield_address_size): Likewise.
3882         (adjust_bitfield_address_nv): Likewise.
3883         (adjust_automodify_address_nv): Likewise.
3884         * explow.c (expr_size): Move to expr.c.
3885         (int_expr_size): Likewise.
3886         (tree_expr_size): Likewise.
3887         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3888         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
3889         * genemit.c (main): Generate includes statistics.h, real.h,
3890         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
3891         stmt.h.
3892         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
3893         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
3894         explow.h, emit-rtl.h, stmt.h.
3895         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
3896         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
3897         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
3898         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
3899         emit-rtl.h, varasm.h, stmt.h.
3900         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
3901         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
3902         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
3903         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
3904         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
3905         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
3906         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
3907         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
3908         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
3909         tm.h tree.h varasm.h vec.h wide-int.h.
3910         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3911         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3912         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
3913         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
3914         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
3915         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
3916         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
3917         * loop-iv.c: Likewise.
3918         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
3919         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
3920         statistics.h stmt.h tree.h varasm.h wide-int.h.
3921         * lra-constraints.c: Likewise.
3922         * lra-eliminations.c: Likewise.
3923         * lra-lives.c: Likewise.
3924         * lra-remat.c: Likewise.
3925         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3926         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
3927         statistics.h stmt.h tree.h varasm.h wide-int.h.
3928         * hw-doloop.c: Likewise.
3929         * ira-color.c: Likewise.
3930         * ira-emit.c: Likewise.
3931         * loop-doloop.c: Likewise.
3932         * loop-invariant.c: Likewise.
3933         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3934         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
3935         statistics.h stmt.h tree.h varasm.h wide-int.h.
3936         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
3937         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
3938         statistics.h stmt.h tree.h varasm.h wide-int.h.
3939         * combine-stack-adj.c: Likewise.
3940         * cse.c: Likewise.
3941         * ddg.c: Likewise.
3942         * ifcvt.c: Likewise.
3943         * ira-costs.c: Likewise.
3944         * jump.c: Likewise.
3945         * lra-coalesce.c: Likewise.
3946         * lra-spills.c: Likewise.
3947         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3948         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
3949         stmt.h varasm.h wide-int.h.
3950         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3951         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3952         varasm.h.
3953         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
3954         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
3955         statistics.h stmt.h varasm.h wide-int.h.
3956         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
3957         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
3958         varasm.h wide-int.h.
3959         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
3960         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3961         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
3962         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
3963         statistics.h stmt.h.
3964         * config/tilepro/tilepro.c: Likewise.
3965         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
3966         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
3967         * config/pdp11/pdp11.c: Likewise.
3968         * config/xtensa/xtensa.c: Likewise.
3969         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
3970         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3971         varasm.h.
3972         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3973         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3974         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
3975         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3976         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3977         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
3978         * rtl-chkp.c: Likewise.
3979         * tree-chkp-opt.c: Likewise.
3980         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
3981         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3982         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
3983         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3984         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
3985         statistics.h stmt.h.
3986         * tree-vect-data-refs.c: Likewise.
3987         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
3988         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3989         rtl.h statistics.h stmt.h varasm.h.
3990         * internal-fn.c: Likewise.
3991         * ipa-icf-gimple.c: Likewise.
3992         * lto-section-out.c: Likewise.
3993         * tree-data-ref.c: Likewise.
3994         * tree-nested.c: Likewise.
3995         * tree-outof-ssa.c: Likewise.
3996         * tree-predcom.c: Likewise.
3997         * tree-pretty-print.c: Likewise.
3998         * tree-scalar-evolution.c: Likewise.
3999         * tree-ssa-strlen.c: Likewise.
4000         * tree-vect-loop.c: Likewise.
4001         * tree-vect-patterns.c: Likewise.
4002         * tree-vect-slp.c: Likewise.
4003         * tree-vect-stmts.c: Likewise.
4004         * tsan.c: Likewise.
4005         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4006         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
4007         stmt.h.
4008         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
4009         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4010         statistics.h stmt.h varasm.h.
4011         * loop-unroll.c: Likewise.
4012         * ubsan.c: Likewise.
4013         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
4014         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
4015         stmt.h varasm.h.
4016         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4017         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
4018         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
4019         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
4020         statistics.h stmt.h.
4021         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
4022         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
4023         statistics.h stmt.h varasm.h.
4024         * gimple-match-head.c: Likewise.
4025         * lto-cgraph.c: Likewise.
4026         * lto-section-in.c: Likewise.
4027         * lto-streamer-in.c: Likewise.
4028         * lto-streamer-out.c: Likewise.
4029         * tree-affine.c: Likewise.
4030         * tree-cfg.c: Likewise.
4031         * tree-cfgcleanup.c: Likewise.
4032         * tree-if-conv.c: Likewise.
4033         * tree-into-ssa.c: Likewise.
4034         * tree-ssa-alias.c: Likewise.
4035         * tree-ssa-copyrename.c: Likewise.
4036         * tree-ssa-dse.c: Likewise.
4037         * tree-ssa-forwprop.c: Likewise.
4038         * tree-ssa-live.c: Likewise.
4039         * tree-ssa-math-opts.c: Likewise.
4040         * tree-ssa-pre.c: Likewise.
4041         * tree-ssa-sccvn.c: Likewise.
4042         * tree-tailcall.c: Likewise.
4043         * tree-vect-generic.c: Likewise.
4044         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4045         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
4046         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4047         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
4048         * varasm.c: Likewise.
4049         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4050         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
4051         varasm.h.
4052         * init-regs.c: Likewise.
4053         * ira.c: Likewise.
4054         * omp-low.c: Likewise.
4055         * stack-ptr-mod.c: Likewise.
4056         * tree-ssa-reassoc.c: Likewise.
4057         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4058         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
4059         varasm.h.
4060         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4061         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
4062         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4063         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
4064         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4065         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
4066         * tree-ssa-phiopt.c: Likewise.
4067         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4068         fixed-value.h hashtab.h real.h statistics.h stmt.h.
4069         * config/fr30/fr30.c: Likewise.
4070         * config/frv/frv.c: Likewise.
4071         * expr.c: Likewise.
4072         * final.c: Likewise.
4073         * optabs.c: Likewise.
4074         * passes.c: Likewise.
4075         * simplify-rtx.c: Likewise.
4076         * stmt.c: Likewise.
4077         * toplev.c: Likewise.
4078         * var-tracking.c: Likewise.
4079         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4080         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4081         * lower-subreg.c: Likewise.
4082         * postreload-gcse.c: Likewise.
4083         * ree.c: Likewise.
4084         * reginfo.c: Likewise.
4085         * store-motion.c: Likewise.
4086         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4087         fixed-value.h hashtab.h real.h stmt.h varasm.h.
4088         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4089         fixed-value.h hashtab.h statistics.h stmt.h.
4090         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4091         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
4092         * except.c: Likewise.
4093         * explow.c: Likewise.
4094         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4095         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
4096         varasm.h.
4097         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4098         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
4099         * tree-ssa-structalias.c: Likewise.
4100         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4101         fixed-value.h insn-config.h real.h statistics.h.
4102         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4103         fixed-value.h insn-config.h real.h statistics.h stmt.h.
4104         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4105         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
4106         * cfgbuild.c: Likewise.
4107         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4108         fixed-value.h real.h rtl.h statistics.h stmt.h.
4109         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4110         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4111         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4112         fixed-value.h real.h statistics.h stmt.h.
4113         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4114         fixed-value.h real.h statistics.h stmt.h varasm.h.
4115         * cprop.c: Likewise.
4116         * modulo-sched.c: Likewise.
4117         * postreload.c: Likewise.
4118         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
4119         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
4120         statistics.h stmt.h varasm.h.
4121         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
4122         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4123         rtl.h statistics.h stmt.h varasm.h.
4124         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
4125         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
4126         varasm.h.
4127         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
4128         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
4129         varasm.h.
4130         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
4131         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
4132         varasm.h.
4133         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
4134         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4135         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4136         function.h real.h statistics.h stmt.h varasm.h.
4137         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4138         insn-config.h real.h statistics.h stmt.h.
4139         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4140         statistics.h stmt.h.
4141         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
4142         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
4143         statistics.h stmt.h varasm.h.
4144         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
4145         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
4146         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4147         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
4148         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
4149         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
4150         statistics.h stmt.h varasm.h.
4151         * ipa-polymorphic-call.c: Likewise.
4152         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
4153         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4154         statistics.h stmt.h.
4155         * config/c6x/c6x.c: Likewise.
4156         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
4157         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4158         statistics.h stmt.h varasm.h.
4159         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
4160         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
4161         stmt.h varasm.h.
4162         * ipa-split.c: Likewise.
4163         * tree-eh.c: Likewise.
4164         * tree-ssa-dce.c: Likewise.
4165         * tree-ssa-loop-niter.c: Likewise.
4166         * tree-vrp.c: Likewise.
4167         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
4168         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
4169         stmt.h.
4170         * config/nds32/nds32-fp-as-gp.c: Likewise.
4171         * config/nds32/nds32-intrinsic.c: Likewise.
4172         * config/nds32/nds32-isr.c: Likewise.
4173         * config/nds32/nds32-md-auxiliary.c: Likewise.
4174         * config/nds32/nds32-memory-manipulation.c: Likewise.
4175         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4176         * config/nds32/nds32-predicates.c: Likewise.
4177         * config/nds32/nds32.c: Likewise.
4178         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
4179         fixed-value.h hashtab.h real.h statistics.h.
4180         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
4181         fixed-value.h hashtab.h real.h statistics.h stmt.h.
4182         * config/arm/arm.c: Likewise.
4183         * config/avr/avr.c: Likewise.
4184         * config/bfin/bfin.c: Likewise.
4185         * config/h8300/h8300.c: Likewise.
4186         * config/i386/i386.c: Likewise.
4187         * config/ia64/ia64.c: Likewise.
4188         * config/iq2000/iq2000.c: Likewise.
4189         * config/m32c/m32c.c: Likewise.
4190         * config/m32r/m32r.c: Likewise.
4191         * config/m68k/m68k.c: Likewise.
4192         * config/mcore/mcore.c: Likewise.
4193         * config/mep/mep.c: Likewise.
4194         * config/mips/mips.c: Likewise.
4195         * config/mn10300/mn10300.c: Likewise.
4196         * config/moxie/moxie.c: Likewise.
4197         * config/pa/pa.c: Likewise.
4198         * config/rl78/rl78.c: Likewise.
4199         * config/rx/rx.c: Likewise.
4200         * config/s390/s390.c: Likewise.
4201         * config/sh/sh.c: Likewise.
4202         * config/sparc/sparc.c: Likewise.
4203         * config/spu/spu.c: Likewise.
4204         * config/stormy16/stormy16.c: Likewise.
4205         * config/v850/v850.c: Likewise.
4206         * config/vax/vax.c: Likewise.
4207         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
4208         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4209         * config/msp430/msp430.c: Likewise.
4210         * predict.c: Likewise.
4211         * value-prof.c: Likewise.
4212         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
4213         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
4214         * config/microblaze/microblaze.c: Likewise.
4215         * config/nios2/nios2.c: Likewise.
4216         * config/rs6000/rs6000.c: Likewise.
4217         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4218         insn-config.h real.h rtl.h statistics.h stmt.h.
4219         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4220         insn-config.h real.h statistics.h stmt.h.
4221         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
4222         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
4223         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
4224         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4225         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
4226         fixed-value.h real.h statistics.h stmt.h.
4227         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
4228         fixed-value.h statistics.h stmt.h.
4229         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
4230         stmt.h.
4232 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
4234         * gengtype.c (create_user_defined_type): Workaround
4235         -Wmaybe-uninitialized false positives.
4236         * cse.c (fold_rtx): Likewise.
4237         * loop-invariant.c (gain_for_invariant): Likewise.
4239 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
4241         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
4242         set the memory attributes in all cases but clear MEM_EXPR if need be.
4244 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
4246         PR tree-optimization/64434
4247         * cfgexpand.c (reorder_operands): New function.
4248         (expand_gimple_basic_block): Insert call of reorder_operands if
4249         optimized is true.
4251 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
4253         * config/mips/micromips.md (*swp): Remove explicit parallel.
4254         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
4255         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
4256         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
4257         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
4258         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
4259         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
4260         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
4261         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
4262         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
4263         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
4264         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
4265         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
4266         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
4267         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
4268         (mips_wrdsp): Likewise.
4269         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
4270         parallel.
4271         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
4272         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
4273         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
4274         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
4275         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
4276         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
4277         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
4278         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
4279         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
4281 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4283         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
4284         (mips_print_operand): Support 'y' to print exact log2 in decimal
4285         of a const_int.
4286         * config/mips/mips.h (ISA_HAS_LSA): New define.
4287         (ISA_HAS_DLSA): Likewise.
4288         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
4289         * config/mips/predicates.md (const_immlsa_operand): New predicate.
4291 2015-01-15  Martin Liska  <mliska@suse.cz>
4293         PR target/64377
4294         * optc-save-gen.awk: Add support for array types.
4296 2015-01-15  Richard Biener  <rguenther@suse.de>
4298         PR middle-end/64365
4299         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
4300         for MEM_REF access functions with the same base can never partially
4301         overlap.
4303 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
4305         * common.opt: New option -fstack-protector-explicit.
4306         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
4307         (stack_protect_decl_phase): Handle stack_protect attribute for
4308         explicit stack protection requests.
4309         (expand_used_vars): Similarly.
4310         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
4311         * doc/extend.texi: Add documentation for "stack_protect" attribute.
4312         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
4314 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
4316         PR target/53988
4317         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
4318         reg-reg copies.
4319         (sh_extending_set_of_reg): New struct.
4320         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
4321         sh_remove_reg_dead_or_unused_notes): New Declarations.
4322         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
4323         sh_find_extending_set_of_reg, sh_split_tst_subregs,
4324         sh_extending_set_of_reg::use_as_extended_reg): New functions.
4325         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
4326         convert to insn_and_split and use new function sh_split_tst_subregs.
4328 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
4330         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
4331         option.
4332         (Optimization Options): Move -fuse-ld documentation to...
4333         (Link Options): ...here.
4335 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4337         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
4338         offsets.
4339         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
4340         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
4341         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
4342         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
4343         instead of ZR for the memory operand of LL/SC.
4344         (compare_and_swap_12, sync_add<mode>): Likewise.
4345         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
4346         (sync_new_<optab>_12, sync_nand_12): Likewise.
4347         (sync_old_nand_12, sync_new_nand_12): Likewise.
4348         (sync_sub<mode>, sync_old_add<mode>): Likewise.
4349         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
4350         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
4351         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
4352         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
4353         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
4354         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
4355         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
4356         * doc/md.texi (ZC): Update description.
4358 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
4360         * builtins.c (expand_builtin_atomic_exchange): Remove error when
4361         memory model is CONSUME.
4362         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
4363         expand_builtin_atomic_store): Change invalid memory model errors to
4364         warnings.
4365         (expand_builtin_atomic_clear): Change invalid model errors to warnings
4366         and issue warning for CONSUME.
4368 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
4370         * lto-cgraph: Update function comments for
4371         lto_symtab_encoder_encode_*.
4373 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
4375         * Makefile.in (site.exp): Do not set ENABLE_LTO.
4377 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
4379         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
4380         * lto-cgraph.c (select_what_to_stream): Remove argument, use
4381         lto_stream_offload_p instead.
4382         * lto-streamer.h (select_what_to_stream): Remove argument.
4383         * passes.c (ipa_write_summaries): Likewise.
4384         * tree-pass.h (ipa_write_summaries): Likewise.
4386 2015-01-14  Richard Biener  <rguenther@suse.de>
4388         PR tree-optimization/59354
4389         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
4390         groups larger than the slp group size as having gaps.
4392 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
4394         PR middle-end/59448
4395         * builtins.c (get_memmodel): Promote consume to acquire always.
4397 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
4399         PR target/64386
4400         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
4401         V32HImode.
4403 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
4405         PR target/64393
4406         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
4407         Enable AVX512BW.
4408         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
4409         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
4410         AVX512VBMI, as it implies AVX512BW.
4412 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
4414         PR target/64387
4415         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
4416         (vec_unpacks_hi_v16sf): Ditto.
4418 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4420         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
4421         is not available.
4423 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4425         * doc/invoke.texi (mapcs): Mention deprecation.
4426         (mapcs-frame): Likewise.
4428 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4430         PR target/64453
4431         * config/arm/arm.c (callee_saved_reg_p): Define.
4432         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
4433         register is callee saved instead of !call_used_regs[reg].
4434         (thumb1_compute_save_reg_mask): Likewise.
4436 2015-01-14  Hale Wang  <hale.wang@arm.com>
4438         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
4439         Cortex-M7.
4441 2015-01-14  Richard Biener  <rguenther@suse.de>
4443         PR lto/64415
4444         * tree-inline.c (insert_debug_decl_map): Check destination
4445         function MAY_HAVE_DEBUG_STMTS.
4446         (insert_init_debug_bind): Likewise.
4447         (insert_init_stmt): Remove redundant check.
4448         (remap_gimple_stmt): Drop debug stmts if the destination
4449         function has var-tracking assignments disabled.
4451 2015-01-14  Martin Liska  <mliska@suse.cz>
4453         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
4454         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
4456 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4458         PR target/64460
4459         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
4460         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
4462 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4464         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
4465         level from an ARCH; do not inject the default.
4466         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
4467         MIPS_ISA_LEVEL_SPEC.
4468         (MIPS_ISA_NAN2008_SPEC): Update comment.
4469         (BASE_DRIVER_SELF_SPECS): Likewise.
4470         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
4471         MIPS_DEFAULT_ISA_LEVEL_SPEC.
4472         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
4473         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
4474         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
4476 2015-01-14  Richard Biener  <rguenther@suse.de>
4478         PR tree-optimization/64493
4479         PR tree-optimization/64495
4480         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
4481         assign the proper vectorized PHI to the inner loop exit PHIs.
4483 2015-01-14  Joey Ye  <joey.ye@arm.com>
4485         * config/arm/arm.c (arm_compute_save_reg_mask):
4486         Do not save lr in case of tail call.
4487         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
4489 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
4491         * tree-vrp.c (check_array_ref): Emit more warnings
4492         for warn_array_bounds >= 2.
4493         * common.opt: New option -Warray-bounds=.
4494         * doc/invoke.texi: Document -Warray-bounds=.
4496 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
4498         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
4499         (mforbid-fp-as-gp): Remove.
4500         (mex9): Remove.
4501         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
4502         (nds32_symbol_load_store_p): Remove.
4503         (nds32_fp_as_gp_check_available): Clean up implementation.
4504         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
4505         cases.
4506         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
4507         fp-as-gp and ex9 cases.
4509 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
4511         * tree-profile.c (init_ic_make_global_vars): Drop workaround
4512         for bintuils bug 14342.
4513         (init_ic_make_global_vars): Likewise.
4514         (gimple_init_edge_profiler): Likewise.
4515         (gimple_gen_ic_func_profiler): Likewise.
4517 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4519         * ipa-inline.c (inline_small_functions): Swap the operands in
4520         enum.
4522 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
4524         PR ipa/64481
4525         * ipa-inline-analysis.c (node_growth_cache): Remove.
4526         (initialize_growth_caches): Do not initialize it.
4527         (free_growth_caches): Do not free it.
4528         (do_estimate_growth): Rename to ...
4529         (estimate_growth): ... this one; drop growth cache code.
4530         (growth_likely_positive): Always go the heuristics way.
4531         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
4532         (reset_edge_caches): Do not reset node growth.
4533         (heap_edge_removal_hook): Do not maintain cache.
4534         (inline_small_functions): Likewise; strenghten sanity check.
4535         (ipa_inline): Do not maintain caches.
4536         * ipa-inline.h (node_growth_cache): Remove.
4537         (do_estimate_growth): Remove to ...
4538         (estimate_growth): this one; remove inline version.
4539         (reset_node_growth_cache): Remove.
4541 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
4543         PR ipa/64565
4544         * ipa-inline.c (inline_small_functions): Update callee keys after
4545         resolving speculation
4546         (inline_small_functions): Always check monotonicity of the queue.
4548 2015-01-13  Marek Polacek  <polacek@redhat.com>
4550         PR middle-end/64391
4551         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
4553 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
4555         PR rtl-optimization/64286
4556         * ree.c (combine_reaching_defs): Move part of comment earlier,
4557         remove !SCALAR_INT_MODE_P check.
4558         (add_removable_extension): Don't add vector mode
4559         extensions if all uses of the source register aren't the same
4560         vector extensions.
4562 2015-01-13  Renlin Li  <renlin.li@arm.com>
4564         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
4565         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
4567 2015-01-13  Martin Liska  <mliska@suse.cz>
4569         * ipa-icf.c (sem_function::equals_private): Call new functions
4570         cl_target_option_print_diff and cl_optimization_print_diff.
4571         * optc-save-gen.awk (cl_target_option_print_diff): New function.
4572         (cl_optimization_print_diff): Likewise.
4573         * opth-gen.awk: Likewise.
4575 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
4577         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
4578         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
4579         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
4580         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
4581         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
4582         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
4584 2015-01-13  Andrew Pinski   <apinski@cavium.com>
4586         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
4587         instead of src mode.
4589 2015-01-13  Richard Biener  <rguenther@suse.de>
4591         PR lto/64373
4592         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
4593         DECL_CONTEXT.
4595 2015-01-13  Andrew Pinski   <apinski@cavium.com>
4597         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
4598         volatile mems.
4599         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
4601 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
4603         PR middle-end/63974
4604         * cfgexpand.c (expand_computed_goto): Don't call
4605         convert_memory_address here.
4607 2015-01-13  Richard Biener  <rguenther@suse.de>
4609         PR tree-optimization/64406
4610         * tree-loop-distibution.c (pass_loop_distribution::execute):
4611         Reset the SCEV hashtable if we distributed anything.
4613 2015-01-13  Richard Biener  <rguenther@suse.de>
4615         PR tree-optimization/64404
4616         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
4617         SLP types for CSEd loads.
4619 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4621         PR tree-optimization/64436
4622         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
4623         merge of two symbolic numbers for a bitwise OR to ...
4624         (perform_symbolic_merge): This. Also fix computation of the range and
4625         end of the symbolic number corresponding to the result of a bitwise OR.
4627 2015-01-13  Richard Biener  <rguenther@suse.de>
4629         PR tree-optimization/64568
4630         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
4631         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
4633 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4635         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
4636         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
4638 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4640         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
4641         target-specific symbol_ref flag.
4642         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
4643         resides in rodata section.
4644         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
4645         (nds32_encode_section_info): New function.
4647 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4649         * config/nds32/nds32.md (call): Use pseudo instruction bal which
4650         clobbers TA_REGNUM if large code model is specified.
4651         (call_register): Likewise.
4652         (call_immediate): Likewise.
4653         (call_value): Likewise.
4654         (call_value_register): Likewise.
4655         (call_value_immediate): Likewise.
4657 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4659         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
4660         (TARGET_CMODEL_MEDIUM): New macro.
4661         (TARGET_CMODEL_LARGE): New macro.
4662         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
4663         code model setting in assembly code.
4665 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4667         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
4668         Remove MASK_GP_DIRECT flag.
4669         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
4670         one of the multilib default options.
4671         * config/nds32/nds32.opt (mgp-direct): Remove.
4672         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
4673         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
4675 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4677         * config/nds32/nds32.opt (mcmodel): Add new option.
4678         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
4679         to describe code model.
4681 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
4683         PR target/64479
4684         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
4686 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
4688         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
4689         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
4690         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
4691         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
4692         __builtin_sh_set_fpscr.
4694 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
4696         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
4697         after a funtion name just to indicate it is a function.
4698         ([-fsanitize-undefined-trap-on-error]): Likewise.
4699         ([-fdbg-cnt=]): Likewise.
4700         ([-mmemcpy]): Likewise.
4701         ([-mflush-func]): Likewise.
4702         ([-msynci]): Likewise.
4704 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
4706         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
4707         example.
4709 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
4711         PR tree-optimization/64563
4712         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
4713         instead of != VR_VARYING.
4715         PR target/64513
4716         * config/i386/i386.c (ix86_expand_prologue): Add
4717         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
4719         PR tree-optimization/64454
4720         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
4721         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
4722         for signed or [0, op1 - 1] for unsigned modulo.
4723         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
4724         even if op1 does not satisfy integer_pow2p.
4726         PR other/64370
4727         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
4729 2015-01-12  Jeff Law  <law@redhat.com>
4731         PR target/64461
4732         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
4733         (trunchiqi2, truncsihi2): Similarly.
4735         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
4736         rather than calling F.
4738 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4740         * tsan.c (instrument_expr): Use force_gimple_operand.
4741         Use may_be_nonaddressable_p instead of is_gimple_addressable.
4743 2015-01-12  Richard Biener  <rguenther@suse.de>
4745         PR tree-optimization/64530
4746         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
4747         back dr1.
4749 2015-01-12  Richard Biener  <rguenther@suse.de>
4751         PR middle-end/64357
4752         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
4753         latches properly.
4755 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4757         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
4758         Cortex-A17 tuning parameters.
4759         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
4761 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4763         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
4764         * config/arm/arm.c (arm_macro_fusion_p): New function.
4765         (arm_macro_fusion_pair_p): Likewise.
4766         (TARGET_SCHED_MACRO_FUSION_P): Define.
4767         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
4768         (ARM_FUSE_NOTHING): Likewise.
4769         (ARM_FUSE_MOVW_MOVT): Likewise.
4770         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
4771         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
4772         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
4773         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
4774         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
4775         arm_cortex_a5_tune): Specify fuseable_ops value.
4777 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
4779         PR bootstrap/64561
4780         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
4781         test for PIE with copy reloc.
4782         * configure: Regenerated.
4784 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4786         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
4787         in gen_rtx_REG.
4788         (arm_tls_descseq_addr): Likewise.
4789         (arm_gen_movmemqi): Likewise.
4790         (arm_expand_epilogue_apcs_frame): Likewise.
4791         (arm_expand_epilogue): Likewise.
4792         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
4793         in gen_rtx_REG.
4795 2015-01-12  Martin Liska  <mliska@suse.cz>
4797         PR ipa/64550
4798         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
4799         volatility for correct operands.
4801 2015-01-12  Martin Liska  <mliska@suse.cz>
4803         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4804         that a function is not leaf.
4805         (sem_function::compare_polymorphic_p): Likewise.
4807 2015-01-12  Martin Liska  <mliska@suse.cz>
4809         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4810         that a function is not leaf.
4811         (sem_function::compare_polymorphic_p): Likewise.
4813 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4815         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
4816         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
4817         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
4818         fold-const.h, tree-check.h.
4820 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
4822         PR ipa/63967
4823         PR ipa/64425
4824         * ipa-inline.c (compute_uninlined_call_time,
4825         compute_inlined_call_time): Use counts for extra precision when
4826         needed possible.
4827         (big_speedup_p): Fix formating.
4828         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
4829         (relative_time_benefit): Remove.
4830         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
4831         merge guessed and read profile paths.
4832         (inline_small_functions): Count only !optimize_size functions into
4833         initial size; be more lax about sanity check when profile is used;
4834         be sure to update inlined function profile when profile is read.
4836 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
4838         PR ipa/63470
4839         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
4840         cost when edge becomes direct.
4841         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
4842         is resolved or when introducing new speculation.
4844 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
4846         PR ipa/64551
4847         PR ipa/64552
4848         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
4849         '||' to fix typo issue.
4851         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
4852         accept and return NULL.
4854 2015-01-12  Martin Liska  <mliska@suse.cz>
4856         * cgraph.c (cgraph_edge::remove_callee): Move function to header
4857         file for being inlined.
4858         (cgraph_set_edge_callee): Delete.
4859         (cgraph_edge::redirect_callee): Move function to header file
4860         for being inlined.
4861         (cgraph_edge::make_direct): Use new function.
4862         (cgraph_edge::dump_edge_flags): New function created from
4863         static dump_edge_flags function.
4864         (cgraph_node::dump): Use new function.
4865         (cgraph_edge::verify_count_and_frequency): New function created
4866         from verify_edge_count_and_frequency.
4867         (cgraph_edge::verify_corresponds_to_fndecl): New function created
4868         from verify_edge_corresponds_to_fndecl.
4869         (verify_edge_corresponds_to_fndecl): Delete.
4870         (cgraph_node::verify_node): Use new function.
4871         * cgraph.h (cgraph_edge::set_callee): New function.
4872         (cgraph_edge::dump_edge_flags): Likewise.
4873         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
4875 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
4877         * ipa-utils.c (estimate_function_body_sizes): Do not
4878         free node params when called late with early=true.
4880 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
4882         * doc/md.texi (Instruction Patterns): Rewrite text for
4883         clarity.
4884         (Example): Likewise.
4886 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
4888         * doc/invoke.texi (Option Summary): Break long lines.
4889         [(-fdiagnostics-color)]: Put long literal in @smallexample
4890         instead of inline.
4891         [(-fsanitize-recover)]: Likewise.
4892         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
4893         [(-ffast-math)]: Likewise.
4894         [(--param max-inline-insns-recursive)]: Likewise.
4895         [(--param max-inline-recursive-depth)]: Likewise.
4896         [(-mno-text-section-literals)]: Likewise.
4898 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
4900         * doc/install.texi: Update for libgomp being renamed from "GNU
4901         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
4902         Runtime Library".
4903         * doc/sourcebuild.texi: Likewise.
4905 2015-01-10  Anthony Green  <green@moxielogic.com>
4907         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
4908         mul.x availability for moxiebox configuration.
4910 2015-01-09  Anthony Green  <green@moxielogic.com>
4912         * config/moxie/moxie.md: Tabify assembly output.
4914 2015-01-09  Anthony Green  <green@moxielogic.com>
4916         * config/moxie/moxie.md (CC_REG): Correct register definition.
4918 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
4920         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
4921         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
4922         of log files.
4924 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
4926         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
4928 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
4929             Jakub Jelinek  <jakub@redhat.com>
4931         PR middle-end/64412
4932         * lto-streamer.h (lto_stream_offload_p): New declaration.
4933         * lto-streamer.c (lto_stream_offload_p): New variable.
4934         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
4935         at the same time as section_name_prefix.
4936         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
4937         if lto_stream_offload_p.
4938         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
4939         stream TREE_TARGET_OPTION if lto_stream_offload_p.
4940         (write_ts_function_decl_tree_pointers): Don't
4941         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
4942         * tree-streamer-in.c (unpack_value_fields): Don't stream
4943         TREE_TARGET_OPTION in if ACCEL_COMPILER.
4944         (lto_input_ts_function_decl_tree_pointers): Don't stream
4945         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
4946         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
4947         instead of section_name_prefix string comparisons.
4949 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
4951         PR rtl-optimization/64536
4952         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
4953         tablejumps.
4955 2015-01-09  Michael Collison  <michael.collison@linaro.org>
4957         PR tree-optimization/64322
4958         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
4959         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
4961 2015-01-09  Tom de Vries  <tom@codesourcery.com>
4963         PR rtl-optimization/64539
4964         * regcprop.c (kill_clobbered_values): Factor out of ...
4965         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
4966         instead of note_stores with kill_clobbered_value.
4968 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
4970          * ginclude/unwind-arm-common.h: Revert previous commit.
4972 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
4974         * config.gcc (arm*-*-freebsd*): New configuration.
4975         * config/arm/freebsd.h: New file.
4976         * config.host: Add extra components for arm*-*-freebsd*.
4977         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
4978         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
4980 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4982         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
4983         for -mcpu=e6500.
4984         * config/rs6000/t-rtems: Add e6500 multilibs.
4986 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4988         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
4989         MPC8540.
4991 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4993         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
4994         MULTILIB_EXCEPTIONS.
4996 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4998         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
4999         MULTILIB_EXCEPTIONS.
5001 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5003         * config/arm/t-rtems-eabi: Rename to...
5004         * config/arm/t-rtems: ...this.
5005         * config/arm/rtems-eabi.h: Rename to...
5006         * config/arm/rtems.h: ...this.
5007         * config.gcc (arm*-*-rtems*): Reflect changes above.
5009 2015-01-09  Richard Biener  <rguenther@suse.de>
5011         PR tree-optimization/64410
5012         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
5013         on the LHS.
5014         (execute_update_addresses_taken): Deal with that.
5015         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
5016         loads/stores for complex variables.
5018 2015-01-09  Martin Liska  <mliska@suse.cz>
5020         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
5021         name comparison.
5022         (func_checker::compare_memory_operand): New function.
5023         (func_checker::compare_operand): Split case to newly
5024         added functions.
5025         (func_checker::compare_cst_or_decl): New function.
5026         (func_checker::compare_gimple_call): Identify
5027         memory operands.
5028         (func_checker::compare_gimple_assign): Likewise.
5029         * ipa-icf-gimple.h: New function.
5031 2015-01-09  Martin Liska  <mliska@suse.cz>
5033         PR ipa/64503
5034         * sreal.c (sreal::dump): Change unsigned format to signed for
5035         m_exp value.
5036         (sreal::to_double): Replace exp2 with scalbln.
5038 2015-01-09  Martin Liska  <mliska@suse.cz>
5040         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
5041         * ipa-icf.c (sem_function::equals_private): Add support for target and
5042         (sem_item_optimizer::merge_classes): Remove redundant function
5043         optimization flags comparison.
5044         * tree.h (target_opts_for_fn): New function.
5046 2015-01-09  Tom de Vries  <tom@codesourcery.com>
5048         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
5050 2015-01-09  Kito Cheng  <kito@0xlab.org>
5052         PR rtl-optimization/64348
5053         * lra-constraints.c (split_reg): Fix caller-save store/restore
5054         instruction generation.
5056 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
5058         PR gcov-profile/61790
5059         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
5060         long long.  Fallback to int64_t if host doesn't have long long and
5061         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
5063 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
5065         PR tree-optimization/63989
5066         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
5067         from 1000 to 10000.
5068         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
5069         (get_stridx): If we don't have a record for certain SSA_NAME,
5070         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
5071         constant offset, call get_stridx_plus_constant.
5072         (get_stridx_plus_constant): New function.
5073         (zero_length_string): Don't use get_stridx here.
5075         PR target/55023
5076         PR middle-end/64388
5077         * dse.c (struct insn_info): Mention frame_read set also
5078         before reload for tail calls on some targets.
5079         (scan_insn): Revert 2014-12-22 change.  Set frame_read
5080         also before reload for tail calls if
5081         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
5082         instead of add_non_frame_wild_read for non-const/memset
5083         tail calls after reload.
5085 2015-01-08  Jason Merrill  <jason@redhat.com>
5087         * ubsan.c (do_ubsan_in_current_function): New.
5088         (pass_ubsan::gate): Use it.
5089         * ubsan.h: Declare it.
5090         * convert.c (convert_to_integer): Use it.
5092 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
5094         PR target/64338
5095         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
5096         compare_code when it is unconditionally overwritten afterwards.
5097         Use ix86_reverse_condition instead of reverse_condition.  Don't
5098         change code if *reverse_condition* returned UNKNOWN and don't
5099         swap ct/cf and negate diff in that case.
5101 2015-01-08  Mike Stump  <mikestump@comcast.net>
5103         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
5104         (pass_tsan_O0::gate): Likewise.
5105         * extend.texi (Function Attributes): Add no_sanitize_thread
5106         documentation.
5108 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
5110         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
5111         for registering builtins.
5112         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
5113         add -fopenmp to the argv_obstack used when invoking
5114         compile_for_target.
5116         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
5117         add "-m32" or "-m64" to argv_obstack.
5118         (generate_host_descr_file): Likewise, when invoking host_compiler.
5119         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
5120         ld.
5122 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
5124         * config/sh/sh-mem.cc: Use constant as second operand when emitting
5125         tstsi_t insns.
5127 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
5129         PR target/55212
5130         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
5131         constant load if constant operand fits into I08.
5133 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
5135         PR sanitizer/64336
5136         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
5137         and TREE_THIS_VOLATILE for MEM_REFs.
5138         (build5_stat): Fix up initialization of TREE_READONLY and
5139         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
5141 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5143         PR target/64533
5144         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
5145         of r for the second alternative of the destination operand.
5147 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
5149         PR target/36557
5150         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
5152 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
5154         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
5155         keywords.
5156         ([-fivar-visibility], [-fvisibility]): Likewise.
5158 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
5160         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
5161         the file where @code, @command, etc is more appropriate.
5163 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
5165         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
5166         of -mrecip= documentation.
5168 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
5170         PR target/64505
5171         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
5172         correct reload handler if -m32 -mpowerpc64 is used.
5174 2015-01-06  Tom de Vries  <tom@codesourcery.com>
5176         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
5178 2015-01-08  Christian Bruel  <christian.bruel@st.com>
5180         PR target/64507
5181         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
5183 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5185         PR tree-optimization/63259
5186         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
5187         if optab exists for 16bit byteswap.
5189 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
5191         * opts.c (common_handle_option): Add support for
5192         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
5193         * doc/invoke.texi: Document -fno-sanitize=all,
5194         -f{,no-}sanitize-recover=all.  Document that
5195         -fsanitize=float-cast-overflow is not enabled
5196         by -fsanitize=undefined.  Fix up documentation
5197         of -f{,no-}sanitize-recover.
5199 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
5201         * config.gcc: Add Visium support.
5202         * configure.ac: Likewise.
5203         * configure: Regenerate.
5204         * doc/extend.texi (interrupt attribute): Add Visium.
5205         * doc/invoke.texi: Document Visium options.
5206         * doc/install.texi: Document Visium target.
5207         * doc/md.texi: Document Visium constraints.
5208         * common/config/visium: New directory.
5209         * config/visium: Likewise.
5211 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
5213         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
5214         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
5216 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
5218         * combine.c (combine_validate_cost): Do not count the cost of a
5219         split I2 twice.  Do not display it twice in the dump, either.
5221 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
5223         Revert parts of r219199.
5224         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
5225         <inttypes.h>.
5226         ([-Wtraditional]): Restore markup on <limits.h>.
5228 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
5230         PR c++/31397
5231         * doc/invoke.texi: Document -Wsuggest-override.
5233 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
5235         PR rtl-optimization/64287
5236         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
5237         (process_options): Disable flag_ipa_ra if profiling.
5239 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
5241         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
5243 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
5245         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
5246         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
5247         put under #if TARGET_LOOPS guard.
5249 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
5251         * config/i386/i386.c (output_387_binary_op): Use std::swap.
5253 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
5255         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
5256         * rtl.h (refers_to_regno_p): Add overload.
5257         * cse.c: Use it.
5258         * bt-load.c: Likewise.
5259         * combine.c: Likewise.
5260         * df-scan.c: Likewise.
5261         * sched-deps.c: Likewise.
5262         * config/s390/s390.c: Likewise.
5263         * config/m32r/m32r.c: Likewise.
5264         * config/rs6000/spe.md: Likewise.
5265         * config/rs6000/rs6000.c: Likewise.
5266         * config/pa/pa.c: Likewise.
5267         * config/stormy16/stormy16.c: Likewise.
5268         * config/cris/cris.c: Likewise.
5269         * config/arc/arc.md: Likewise.
5270         * config/arc/arc.c: Likewise.
5271         * config/sh/sh.md: Likewise.
5272         * config/sh/sh.c: Likewise.
5273         * config/frv/frv.c: Likewise.
5275 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
5277         PR sanitizer/64265
5278         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
5279         call as cleanup of the whole body.
5280         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
5281         * tsan.c (replace_func_exit): New function.
5282         (instrument_func_exit): Moved earlier.
5283         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
5284         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
5285         been found.
5286         (tsan_pass): Don't call instrument_func_exit.
5287         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
5288         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
5289         inlining.
5291         PR sanitizer/64344
5292         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
5293         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
5294         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
5295         if the result is integer_zerop, return NULL_TREE.
5296         * convert.c (convert_to_integer): Pass expr as ARG.
5298         PR tree-optimization/64465
5299         * tree-inline.c (redirect_all_calls): During inlining
5300         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
5301         changed the stmt to a non-throwing call.
5303 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
5305         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
5306         etc markup throughout the file.
5308 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5310         Enable experimental TSAN support for Ada.
5311         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
5313 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
5315         PR tree-optimization/64494
5316         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
5317         clear SSA_NAME_ANTI_RANGE_P flag.
5319 2015-01-05  Marek Polacek  <polacek@redhat.com>
5321         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
5323 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
5325         Update copyright years.
5327         * gcc.c (process_command): Update copyright notice dates.
5328         * gcov-dump.c: Ditto.
5329         * gcov.c: Ditto.
5330         * doc/cpp.texi: Bump @copying's copyright year.
5331         * doc/cppinternals.texi: Ditto.
5332         * doc/gcc.texi: Ditto.
5333         * doc/gccint.texi: Ditto.
5334         * doc/gcov.texi: Ditto.
5335         * doc/install.texi: Ditto.
5336         * doc/invoke.texi: Ditto.
5338         * auto-profile.c, auto-profile.h: Fix up Copyright line.
5340 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
5342         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
5343         verb tense, etc.
5344         ([-fvtable-verify], [-fvtv-debug]): Likewise.
5345         ([-Wabi]): Likewise.
5346         ([-fmessage-length]): Likewise.
5347         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
5348         ([-Wno-discarded-qualifiers]): Likewise.
5349         ([-Wnodiscarded-array-qualifiers]): Likewise.
5350         ([-Wno-virtual-move-assign]): Likewise.
5351         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
5352         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
5353         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
5354         ([-fsanitize-undefined-trap-on-error]): Likewise.
5355         ([-floop-interchange]): Likewise.
5356         ([-ftree-coalesce-inlined-vars]): Likewise.
5357         ([-fvect-cost-model]): Likewise.
5358         ([-flto]): Likewise.
5359         ([--param]): Likewise.
5360         (Spec Files): Likewise.
5361         ([-mstrict-align]): Likewise.
5362         ([-mfix-cortex-a53-835769]): Likewise.
5363         ([-march], [-mtune]): Likewise.
5364         ([-mpic-register]): Likewise.
5365         ([-munaligned-access]): Likewise.
5366         ([-msp8]): Likewise.
5367         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
5368         (AVR Built-in Macros): Likewise.
5369         ([-mpreferred-stack-boundary]): Likewise.
5370         ([-mtune-crtl]): Likewise.
5371         ([-mashf]): Likewise.
5372         ([-mmcu=]): Likewise.
5373         ([-minrt]): Likewise.
5374         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
5375         ([-mupper-regs]): Likewise.
5376         ([-matomic-model]): Likewise.
5377         ([-mdiv]): Likewise.
5378         ([-mzdcbranch]): Likewise.
5379         ([-mdisable-callt]): Likewise.
5380         ([-msoft-float]): Likewise.
5381         ([-m8byte-align]): Likewise.
5382         ([-fstack-reuse]): Likewise.
5384 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
5386         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
5387         Fix markup, light copy-editing.
5388         ([-fauto-profile]): Rewrite to fix formatting and content
5389         problems.
5391 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
5393         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
5394         Copy-edit description.
5395         ([-fisolate-erroneous-paths-attribute]): Likewise.
5396         * common.opt (fisolate-erroneous-paths-dereference):
5397         Copy-edit description.
5398         (fisolate-erroneous-paths-attribute): Likewise.
5400 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
5402         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
5403         tidy grammar.
5405 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
5407         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
5408         ([-fvtv-debug]): Likewise.
5409         ([-Wc++-compat]): Likewise.
5410         ([-Wc++11-compat]): Likewise.
5411         ([-Wc++14-compat]): Likewise.
5412         ([-Wno-sized-deallocation]): Likewise.
5413         ([-femit-class-debug-always]): Likewise.
5414         ([-femit-struct-debug-detailed]): Likewise.
5415         ([-fno-keep-inline-dllexport]): Likewise.
5416         ([-fira-algorithm]): Likewise.
5417         ([-fira-region]): Likewise.
5418         ([-flra-remat]): Likewise.
5419         ([-fipa-ra]): Likewise.
5420         ([-fhoist-adjacent-loads]): Likewise.
5421         ([-fisolate-erroneous-paths-dereference]): Likewise.
5422         ([-fisolate-erroneous-paths-attribute]): Likewise.
5423         ([-ftree-switch-conversion]): Likewise.
5424         ([-ftree-tail-merge]): Likewise.
5425         ([-ftree-loop-if-convert]): Likewise.
5426         ([-ftree-loop-if-convert-stores]): Likewise.
5427         ([-ftree-loop-distribution]): Likewise.
5428         ([-ftree-loop-distribute-patterns]): Likewise.
5429         ([-flto-compression-level]): Likewise.
5430         ([-flto-report]): Likewise.
5431         ([-flto-report-wpa]): Likewise.
5432         ([-fuse-linker-plugin]): Likewise.
5433         ([-mfix-cortex-a53-835769]): Likewise.
5434         ([-mno-fix-cortex-a53-835769]): Likewise.
5435         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
5436         explicit listing; add a note to the discussion indicating they
5437         exist.  Reorder table to group similar options.  Add missing
5438         @opindex entries.  Add @need commands throughout the table to
5439         allow it to be split across multiple pages.
5440         ([-m8bit-idiv]): Fix @opindex.
5441         ([-mavx256-split-unaligned-load]): Likewise.
5442         ([-mavx256-split-unaligned-store]): Likewise.
5443         ([-mstack-protector-guard]): Likewise.
5444         ([-mcpu=]): Likewise.
5445         ([-mcpu]): Likewise.
5446         ([-mpointer-size=]): Likewise.
5448 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
5450         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
5451         instead of `m' constraint.  Likewise for unnamed movb comparison
5452         patterns using reg_before_reload_operand predicate.
5453         * config/pa/predicates.md (reg_before_reload_operand): Tighten
5454         predicate to reject register index and LO_SUM DLT memory forms
5455         after reload.
5457 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
5459         * doc/invoke.texi (Option Summary): Fix spelling of
5460         -fdevirtualize-at-ltrans.
5461         ([-fdevirtualize]): Fix markup.
5462         ([-fdevirtualize-speculatively]): Fix typo.
5463         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
5464         implementor-speaky.
5465         * common.opt (fdevirtualize-at-ltrans): Likewise.
5466         * ipa-devirt.c: Fix typos in comments throughout the file.
5467         (ipa_devirt): Fix typos in format strings for dump output.
5469 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
5471         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
5472         discussion of defaults, light copy-editing.
5474 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5476         * tsan.c (instrument_expr): corrected previous checkin.
5478 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5480         Instrument bit field and unaligned accesses for TSAN.
5481         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
5482         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
5483         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
5484         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
5485         unaligned memory regions.
5487 2015-01-01  Anthony Green  <green@moxielogic.com>
5489         * config/moxie/predicates.md (moxie_general_movsrc_operand):
5490         Restrict move source register offsets to 16 bits.
5492 Copyright (C) 2015 Free Software Foundation, Inc.
5494 Copying and distribution of this file, with or without modification,
5495 are permitted in any medium without royalty provided the copyright
5496 notice and this notice are preserved.