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