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