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