Implement TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS hook.
[official-gcc.git] / gcc / ChangeLog
blob1888fc2910aa40c2c2ca89c6e9a18e8417db4d6a
1 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
3         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
4         function.
5         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
7 2015-06-17  Richard Biener  <rguenther@suse.de>
9         PR tree-optimization/66251
10         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
11         stmts for SLP strided stores.
13         Revert
14         2015-05-22  Richard Biener  <rguenther@suse.de>
16         PR tree-optimization/66251
17         * tree-vect-stmts.c (vectorizable_conversion): Properly
18         set STMT_VINFO_VEC_STMT even for the SLP case.
20         2015-05-26  Michael Matz  <matz@suse.de>
22         PR middle-end/66251
23         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
24         STMT_VINFO_VEC_STMT, also with SLP.
26 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
28         PR target/56766
29         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
30         (*avx_addsubv4df3_1s): Ditto.
31         (*sse3_addsubv2df3_1): Ditto.
32         (*sse3_addsubv2df3_1s): Ditto.
33         (*avx_addsubv8sf3_1): Ditto.
34         (*avx_addsubv8sf3_1s): Ditto.
35         (*sse3_addsubv4sf3_1): Ditto.
36         (*sse3_addsubv4sf3_1s): Ditto.
38 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
40         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
41         (SYSROOT_SUFFIX_SPEC): Update.
42         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
43         (STARTFILE_PREFIX_SPEC): Update.
44         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
45         (MULTILIB_REQUIRED): New.
46         (MULTILIB_OSDIRNAMES): New.
47         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
48         (MULTILIB_REQUIRED): New.
49         (MULTILIB_OSDIRNAMES): New.
51 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
53         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
54         * config/aarch64/aarch64-options-extensions.def: Update "fP",
55         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
56         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
57         (AARCH64_FL_PAN): New.
58         (AARCH64_FL_LOR): New.
59         (AARCH64_FL_RDMA): New.
60         (AARCH64_FL_FOR_ARCH8_1): New.
61         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
62         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
64 2015-06-16  Martin Liska  <mliska@suse.cz>
66         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
67         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
68         guard.
70 2015-06-16  Richard Biener  <rguenther@suse.de>
72         * tree-vect-stmts.c (vectorizable_store): Adjust.
73         (vectorizable_load): Likewise.
74         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
75         Simplify.
76         (vect_create_data_ref_ptr): Likewise.
77         (bump_vector_ptr): Adjust.
79 2015-06-16  Richard Biener  <rguenther@suse.de>
81         * tree-vect-stmts.c (vectorizable_load): Properly start loads
82         with the first element if this is grouped loads.
84 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
86         * config/arm/arm-protos.h (struct tune_params): Rename
87         log_op_non_sc to log_op_non_short_circuit, and rename enum
88         values to expand SC to SHORT_CIRCUIT.
89         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
90         to LOG_OP_NON_SHORT_CIRCUIT.
91         (arm_fastmul_tune):Likewise
92         (arm_strongarm_tune): Likewise.
93         (arm_xscale_tune): Likewise.
94         (arm_9e_tune): Likewise.
95         (arm_marvell_pj4_tune): Likewise.
96         (arm_v6t2_tune): Likewise.
97         (arm_cortex_tune): Likewise.
98         (arm_cortex_a8_tune): Likewise.
99         (arm_cortex_a7_tune): Likewise.
100         (arm_cortex_a15_tune): Likewise.
101         (arm_cortex_a53_tune): Likewise.
102         (arm_cortex_a57_tune): Likewise.
103         (arm_xgene1_tune): Likewise.
104         (arm_cortex_a5_tune): Likewise.
105         (arm_cortex_a9_tune): Likewise.
106         (arm_cortex_a12_tune): Likewise.
107         (arm_v7m_tune): Likewise.
108         (arm_cortex_m7_tune): Likewise.
109         (arm_v6m_tune): Likewise.
110         (arm_fa726te_tune): Likewise.
112 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
114         * altivec.md: Delete UNSPEC_VMLADDUHM.
115         (mulv4si3_p8): New pattern.
116         (mulv4si3): Use it for POWER8.
117         (mulv8hi3): Use vmladduhm with zero addend.
118         (altivec_vmladduhm): Descriptive RTL.
120 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
122         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
123         to use neon_move instead of mov_imm.
124         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
125         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
127         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
128         aarch64_float_const_zero_rtx_p check before TFmode check.
129         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
130         an fp zero.
131         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
132         code and attributes to match.  Change condition from register_operand
133         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
134         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
135         to store2.
137 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
139         PR debug/66535
140         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
141         there is no parent.
143 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
145         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
146         HOST_WIDE_INT parameter.
148 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
150         PR ipa/66181
151         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
152         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
153         TYPE_NO_FORCE_BLK.
154         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
156 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
158         * rtl.h (classify_insn): Declare.
159         * emit-rtl.c (classify_insn): Move to...
160         * rtl.c: ...here and add generator support.
161         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
162         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
163         * genemit.c (gen_emit_seq): New function.
164         (gen_expand, gen_split): Use it.
166 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
168         * tree.c (make_vector_stat): Fix comment to state that the
169         function returns a VECTOR_CST.
171 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
173         * gensupport.h (add_implicit_parallel): Declare.
174         * genrecog.c (add_implicit_parallel): Move to...
175         * gensupport.c (add_implicit_parallel): ...here.
176         (process_one_cond_exec): Use it.
177         * genemit.c (gen_insn): Likewise.
179 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
181         PR bootstrap/66448
182         * passes.c (rest_of_decl_compilation): Do not register globals for
183         early debug if they are declared in built-ins.
185 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
187         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
189 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
191         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
192         manually swapping.
193         (noce_try_cmove_arith): Likewise.
194         (noce_get_alt_condition): Likewise.
196 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
198         * common/config/i386/i386-common.c
199         (OPTION_MASK_ISA_MWAITX_SET): New.
200         (ix86_handle_option): Handle mwaitx.
201         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
202         (x86_64-*-*): Likewise.
203         * config/i386/mwaitxintrin.h: New header.
204         * config/i386/cpuid.h (bit_MWAITX):  Define.
205         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
206         MWAITX support.
207         * config/i386/i386.opt (mwaitx): New.
208         * config/i386/i386-builtin-types.def
209         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
210         * config/i386/i386-c.c: Define __MWAITX__ if needed.
211         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
212         (PTA_MWAITX): New.
213         (ix86_option_override_internal): Handle new option.
214         (processor_alias_table): Added PTA_MWAITX.
215         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
216         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
217         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
218         IX86_BUILTIN_MONITORX  built-ins.
219         * config/i386/i386.h (TARGET_MWAITX): New.
220         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
221         UNSPEC_MONITORX.
222         (mwaitx):  New pattern.
223         (monitorx_<mode>): New pattern.
224         * config/i386/x86intrin.h: Include mwaitxintrin.h.
225         * doc/extend.texi: Document monitorx and mwaitx builtins.
226         * doc/invoke.texi: Document -mmwaitx option.
228 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
230         * emit-rtl.c (need_atomic_barrier_p): Mask model with
231         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
233 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
235         * dbxout.c (xcoff_debug_hooks): Provide a function for
236         register_main_translation_unit hook.
238 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
240         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
241         variants cases from switch.
242         (rs6000_post_atomic_barrier): Same.
243         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
244         (rs6000_expand_atomic_exchange): Same.
245         (rs6000_expand_atomic_op): Same.
246         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
247         SYNC variants cases from switch.
248         (atomic_load): Same.
249         (atomic_store): Same.
251 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
253         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
254         CONST_INT for goto.
256 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
258         PR bootstrap/66448
259         * dwarf2out.c (check_die): Check for common duplicate attributes.
260         (add_location_or_const_value_attribute): Do not add duplicate
261         attributes.
262         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
263         time around.
264         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
265         (gen_type_die_with_usage): Call check_die.
266         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
268 2015-06-11  Jason Merrill  <jason@redhat.com>
270         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
271         dies.
273 2015-06-11  Marek Polacek  <polacek@redhat.com>
275         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
277 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
279         PR bootstrap/66252
280         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
281         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
282         (*addx_extend_sp32): Fix pasto.
283         (*subx_extend): Rename into...
284         (*subx_extend_sp32): ...this.
285         (*adddi3_extend_sp32): Add earlyclobber.
286         (*subdi3_insn_sp32): Likewise.
287         (*subdi3_extend_sp32): Likewise.
288         (*and_not_di_sp32): Likewise.
289         (*or_not_di_sp32): Likewise.
290         (*xor_not_di_sp32): Likewise.
291         (*negdi2_sp32): Likewise.
292         (*one_cmpldi2_sp32): Likewise.
294 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
296         * debug.h (struct gcc_debug_hooks): Add a
297         register_main_translation_unit hook.
298         * debug.c (do_nothing_debug_hooks): Provide a function for this
299         new hook.
300         * dbxout.c (dbx_debug_hooks): Likewise.
301         * sdbout.c (sdb_debug_hooks): Likewise.
302         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
303         * dwarf2out.c (main_translation_unit): New global variable.
304         (dwarf2out_register_main_translation_unit): New function
305         implementing the new hook.
306         (dwarf2_debug_hooks): Assign
307         dwarf2out_register_main_translation_unit to this new hook.
308         (dwarf2out_init): Associate any main translation unit to
309         comp_unit_die ().
311 2015-06-11  Marek Polacek  <polacek@redhat.com>
313         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
315 2015-06-11  Marek Polacek  <polacek@redhat.com>
317         * match.pd: Use single_use throughout.
319 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
321         * config/arm/arm.c (arm_option_params_internal): When optimising
322         for speed set max_insns_skipped when arm_restrict_it.
324 2015-06-11  Christian Bruel  <christian.bruel@st.com>
326         PR target/52144
327         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
328          macros in ...
329         (arm_cpu_builtins): New function.
330         (arm_pragma_target_parse): Call arm_cpu_builtins.
331         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
332         (arm_register_target_pragmas): Likewise.
333         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
334          Call arm_register_target_pragmas.
335         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
336         (arm_pragma_target_parse): Likewise.
338 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
340         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
341         of the second operand.
343 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
345         PR target/66473
346         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
347         to prepare mask operand for AVX512 modes.
349 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
351         PR target/66474
352         * doc/md.texi (Machine Constraints): Document that on the PowerPC
353         if you use a constraint that targets a VSX register, you must use
354         %x<n> in the template.
356 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
358         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
359         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
360         (define_insn "trap"): New definition.
362 2015-06-10  Richard Biener  <rguenther@suse.de>
364         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
365         out from ...
366         (vect_supported_load_permutation_p): ... here.  Handle
367         supportable permutations in reductions.
368         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
369         for vectorizing strided group loads.
371 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
373         PR target/66470
374         * config/i386/i386.c (ix86_split_long_move): For collisions
375         involving direct tls segment refs, move the UNSPEC_TP possibly
376         wrapped in ZERO_EXTEND out of the address for lea, to each of
377         the memory loads.
379 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
381         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
382         dmb sy. Adjust tabs.
384 2015-06-10  Tom de Vries  <tom@codesourcery.com>
386         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
388 2015-06-10  Martin Liska  <mliska@suse.cz>
390         PR bootstrap/66471
391         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
392         all enum values in mem_alloc_origin.
393         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
394         name.
395         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
396         * bitmap.c (bitmap_register): Likewise.
397         (dump_bitmap_statistics): Likewise.
398         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
399         (ggc_record_overhead): Likewise.
400         * hash-map.h: Likewise.
401         * hash-set.h: Likewise.
402         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
403         * hash-table.h: Likewise.
404         * vec.c (vec_prefix::register_overhead): Likewise.
405         (vec_prefix::release_overhead): Likewise.
406         (dump_vec_loc_statistics): Likewise.
408 2015-06-09  Christian Bruel  <christian.bruel@st.com>
410         PR target/52144
411         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
412         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
413         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
414         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
415         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
416         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
417         (arm_valid_target_attribute_p): Likewise.
418         (arm_set_current_function, arm_can_inline_p): Likewise.
419         (arm_valid_target_attribute_rec): Likewise.
420         (arm_previous_fndecl): New variable.
421         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
422         (TARGET_CAN_INLINE_P): Define.
423         (arm_asm_trampoline_template): Emit mode.
424         (arm_file_start): Don't set unified syntax.
425         (arm_declare_function_name): Set unified syntax and mode.
426         (arm_option_override): Init target_option_default_node.
427         and target_option_current_node.
428         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
429         (*call_symbol): Likewise.
430         * doc/extend.texi: Document ARM/Thumb target attribute.
431         * doc/invoke.texi: Likewise.
433 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
435         Revert:
436         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
437         PR rtl-optimization/64164
438         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
439         * tree-ssa-copyrename.c: Removed.
440         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
441         -ftree-coalesce-vars.
442         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
443         * common.opt (ftree-copyrename): Ignore.
444         (ftree-coalesce-inlined-vars): Likewise.
445         * doc/invoke.texi: Remove the ignored options above.
446         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
447         * tree-ssa-coalesce.h: ... here.
448         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
449         headers required by it.
450         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
451         across variables when flag_tree_coalesce_vars.  Check register
452         use and promoted modes to allow coalescing.  Moved to
453         tree-ssa-coalesce.c.
454         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
455         with its member functions to tree-ssa-coalesce.c.
456         (var_map_base_init): Likewise.  Renamed to
457         compute_samebase_partition_bases.
458         (partition_view_normal): Drop want_bases parameter.
459         (partition_view_bitmap): Likewise.
460         * tree-ssa-live.h: Adjust declarations.
461         * tree-ssa-coalesce.c: Include explow.h.
462         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
463         default defs at the entry point.
464         (dump_part_var_map): New.
465         (compute_optimized_partition_bases): New, called by...
466         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
467         of compute_samebase_partition_bases.  Adjust.
468         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
469         * cfgexpand.c (leader_merge): New.
470         (get_rtl_for_parm_ssa_default_def): New.
471         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
472         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
473         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
474         redundant MEM attr setting.
475         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
476         from...
477         (expand_one_stack_var): ... this.  New wrapper to check and
478         skip already expanded SSA partitions.
479         (record_alignment_for_reg_var): New, factored out of...
480         (expand_one_var): ... this.
481         (expand_one_ssa_partition): New.
482         (adjust_one_expanded_partition_var): New.
483         (expand_one_register_var): Check and skip already expanded SSA
484         partitions.
485         (expand_used_vars): Don't create DECLs for anonymous SSA
486         names.  Expand all SSA partitions, then adjust all SSA names.
487         (pass::execute): Replace the loops that set
488         SA.partition_to_pseudo from partition leaders and cleared
489         DECL_RTL for multi-location variables, and that which used to
490         rename vars and set attrs, with one that clears DECL_RTL and
491         checks that PARMs and RESULTs default_defs match DECL_RTL.
492         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
493         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
494         * explow.c (promote_ssa_mode): New.
495         * explow.h (promote_ssa_mode): Declare.
496         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
497         * function.c: Include cfgexpand.h.
498         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
499         (use_register_for_parm_decl): Wrapper for the above to
500         special-case the result_ptr.
501         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
502         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
503         multiple locations.
504         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
505         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
506         (assign_parm_setup_block): Prefer SSA-assigned location.
507         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
508         if stack_parm is NULL.
509         (assign_parm_setup_stack): Prefer SSA-assigned location.
510         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
511         rtl before testing for pointer bounds.  Special-case result_ptr.
512         (expand_function_start): Maybe reset DECL_RTL of result.
513         Prefer SSA-assigned location for result and static chain.
514         Factor out DECL_RESULT and SET_DECL_RTL.
515         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
516         anonymous SSA names.  Use promote_ssa_mode.
517         (get_temp_reg): Likewise.
518         (remove_ssa_form): Adjust.
519         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
520         and get its reg_usage for reg invalidation.
521         (compute_bb_dataflow): Pass it insn.
522         (emit_notes_in_bb): Likewise.
523         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
524         fail assert on conversion between unsigned types.
526 2015-06-09  Tom de Vries  <tom@codesourcery.com>
528         PR tree-optimization/65460
529         * omp-low.c (expand_omp_target): Set parallelized_function on
530         cgraph_node for child_fn.
532 2015-06-09  Tom de Vries  <tom@codesourcery.com>
534         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
535         parallelized_function before add_new_function.
537 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
539         * gcc-plugin.h: Move decls to plugin.h and include it.
540         * plugin.h: Relocate decls from gcc-plugin.h
541         * ggc-page.c: Include required header files.
542         * passes.c: Likewise.
543         * cgraphunit.c: Likewise.
545 2015-06-09  Tom de Vries  <tom@codesourcery.com>
547         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
549 2015-06-09  Jason Merrill  <jason@redhat.com>
551         PR bootstrap/66448
552         * toplev.c (check_global_declaration): Don't warn about a clone.
554 2015-06-09  Marek Polacek  <polacek@redhat.com>
556         PR tree-optimization/66299
557         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
558         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
559         patterns.
561 2015-06-09  Richard Biener  <rguenther@suse.de>
563         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
564         (vect_analyze_slp_instance): Instead do not falsely drop
565         load permutations.
567 2015-06-09  Richard Biener  <rguenther@suse.de>
569         PR middle-end/66423
570         * match.pd: Handle A % (unsigned)(1 << B).
572 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
574         * varasm.c (output_object_block_htab): Remove.
575         (output_object_block_compare): New.
576         (output_object_blocks): Sort named object_blocks before outputting
577         them.
579 2015-06-09  Richard Biener  <rguenther@suse.de>
581         PR tree-optimization/66419
582         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
583         consider GROUP_GAP when detecting a perfect subchain.
585 2015-06-09  Nick Clifton  <nickc@redhat.com>
587         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
588         place read only data in the .frodata section.
590 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
592         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
593         (atomic_store<mode>): Likewise.
595 2015-06-09  Richard Biener  <rguenther@suse.de>
597         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
599 2015-06-09  Richard Biener  <rguenther@suse.de>
601         PR middle-end/66413
602         * tree-inline.c (insert_init_debug_bind): Unshare value.
604 2015-06-09  Richard Biener  <rguenther@suse.de>
606         PR tree-optimization/66396
607         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
608         Rename virtual operands.
610 2015-06-09  Tom de Vries  <tom@codesourcery.com>
612         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
613         always return false.
615 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
617         PR rtl-optimization/64164
618         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
619         * tree-ssa-copyrename.c: Removed.
620         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
621         -ftree-coalesce-vars.
622         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
623         * common.opt (ftree-copyrename): Ignore.
624         (ftree-coalesce-inlined-vars): Likewise.
625         * doc/invoke.texi: Remove the ignored options above.
626         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
627         * tree-ssa-coalesce.h: ... here.
628         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
629         headers required by it.
630         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
631         across variables when flag_tree_coalesce_vars.  Check register
632         use and promoted modes to allow coalescing.  Moved to
633         tree-ssa-coalesce.c.
634         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
635         with its member functions to tree-ssa-coalesce.c.
636         (var_map_base_init): Likewise.  Renamed to
637         compute_samebase_partition_bases.
638         (partition_view_normal): Drop want_bases parameter.
639         (partition_view_bitmap): Likewise.
640         * tree-ssa-live.h: Adjust declarations.
641         * tree-ssa-coalesce.c: Include explow.h.
642         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
643         default defs at the entry point.
644         (dump_part_var_map): New.
645         (compute_optimized_partition_bases): New, called by...
646         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
647         of compute_samebase_partition_bases.  Adjust.
648         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
649         * cfgexpand.c (leader_merge): New.
650         (get_rtl_for_parm_ssa_default_def): New.
651         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
652         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
653         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
654         redundant MEM attr setting.
655         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
656         from...
657         (expand_one_stack_var): ... this.  New wrapper to check and
658         skip already expanded SSA partitions.
659         (record_alignment_for_reg_var): New, factored out of...
660         (expand_one_var): ... this.
661         (expand_one_ssa_partition): New.
662         (adjust_one_expanded_partition_var): New.
663         (expand_one_register_var): Check and skip already expanded SSA
664         partitions.
665         (expand_used_vars): Don't create DECLs for anonymous SSA
666         names.  Expand all SSA partitions, then adjust all SSA names.
667         (pass::execute): Replace the loops that set
668         SA.partition_to_pseudo from partition leaders and cleared
669         DECL_RTL for multi-location variables, and that which used to
670         rename vars and set attrs, with one that clears DECL_RTL and
671         checks that PARMs and RESULTs default_defs match DECL_RTL.
672         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
673         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
674         * explow.c (promote_ssa_mode): New.
675         * explow.h (promote_ssa_mode): Declare.
676         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
677         * function.c: Include cfgexpand.h.
678         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
679         (use_register_for_parm_decl): Wrapper for the above to
680         special-case the result_ptr.
681         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
682         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
683         multiple locations.
684         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
685         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
686         (assign_parm_setup_block): Prefer SSA-assigned location.
687         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
688         if stack_parm is NULL.
689         (assign_parm_setup_stack): Prefer SSA-assigned location.
690         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
691         rtl before testing for pointer bounds.  Special-case result_ptr.
692         (expand_function_start): Maybe reset DECL_RTL of result.
693         Prefer SSA-assigned location for result and static chain.
694         Factor out DECL_RESULT and SET_DECL_RTL.
695         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
696         anonymous SSA names.  Use promote_ssa_mode.
697         (get_temp_reg): Likewise.
698         (remove_ssa_form): Adjust.
699         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
700         and get its reg_usage for reg invalidation.
701         (compute_bb_dataflow): Pass it insn.
702         (emit_notes_in_bb): Likewise.
703         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
704         fail assert on conversion between unsigned types.
706 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
708         PR debug/58315
709         * tree-inline.c (reset_debug_binding): New.
710         (reset_debug_bindings): Likewise.
711         (expand_call_inline): Call it.
713 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
715         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
716         TYPE_STRING_FLAG.
718 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
720         * lto-streamer-out.c (lto_output_location): Stream
721         reserved locations correctly.
722         * lto-streamer-in.c (lto_output_location): Likewise.
724 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
726         * coretypes.h: Include hash-table.h and hash-set.h for host files.
727         * ggc.h: Don't include statistics.h>
728         * hash-map.h: Remove all includes.
729         * hash-set.h: Likewise.
730         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
731         the include list. Remove <new>.
732         * inchash.h: Remove all includes.
733         * mem-stats.h: Likewise.
734         * vec.h: No special processing for generators or ggc.  
735         * alias.c : Adjust include files.
736         * alloc-pool.c : Likewise.
737         * alloc-pool.h : Likewise.
738         * asan.c : Likewise.
739         * attribs.c : Likewise.
740         * auto-inc-dec.c : Likewise.
741         * auto-profile.c : Likewise.
742         * bb-reorder.c : Likewise.
743         * bitmap.c : Likewise.
744         * bitmap.h : Likewise.
745         * bt-load.c : Likewise.
746         * builtins.c : Likewise.
747         * caller-save.c : Likewise.
748         * calls.c : Likewise.
749         * ccmp.c : Likewise.
750         * cfg.c : Likewise.
751         * cfganal.c : Likewise.
752         * cfgbuild.c : Likewise.
753         * cfgcleanup.c : Likewise.
754         * cfgexpand.c : Likewise.
755         * cfghooks.c : Likewise.
756         * cfgloop.c : Likewise.
757         * cfgloop.h : Likewise.
758         * cfgloopanal.c : Likewise.
759         * cfgloopmanip.c : Likewise.
760         * cfgrtl.c : Likewise.
761         * cgraph.c : Likewise.
762         * cgraphbuild.c : Likewise.
763         * cgraphclones.c : Likewise.
764         * cgraphunit.c : Likewise.
765         * cilk-common.c : Likewise.
766         * combine-stack-adj.c : Likewise.
767         * combine.c : Likewise.
768         * compare-elim.c : Likewise.
769         * context.c : Likewise.
770         * convert.c : Likewise.
771         * coverage.c : Likewise.
772         * cppbuiltin.c : Likewise.
773         * cprop.c : Likewise.
774         * cse.c : Likewise.
775         * cselib.c : Likewise.
776         * data-streamer-in.c : Likewise.
777         * data-streamer-out.c : Likewise.
778         * data-streamer.c : Likewise.
779         * data-streamer.h : Likewise.
780         * dbxout.c : Likewise.
781         * dce.c : Likewise.
782         * ddg.c : Likewise.
783         * debug.c : Likewise.
784         * df-core.c : Likewise.
785         * df-problems.c : Likewise.
786         * df-scan.c : Likewise.
787         * df.h : Likewise.
788         * dfp.c : Likewise.
789         * dojump.c : Likewise.
790         * dominance.c : Likewise.
791         * domwalk.c : Likewise.
792         * double-int.c : Likewise.
793         * dse.c : Likewise.
794         * dumpfile.c : Likewise.
795         * dwarf2asm.c : Likewise.
796         * dwarf2cfi.c : Likewise.
797         * dwarf2out.c : Likewise.
798         * emit-rtl.c : Likewise.
799         * et-forest.c : Likewise.
800         * except.c : Likewise.
801         * except.h : Likewise.
802         * explow.c : Likewise.
803         * expmed.c : Likewise.
804         * expr.c : Likewise.
805         * final.c : Likewise.
806         * fixed-value.c : Likewise.
807         * fold-const.c : Likewise.
808         * function.c : Likewise.
809         * fwprop.c : Likewise.
810         * gcc-plugin.h : Likewise.
811         * gcc.c : Likewise.
812         * gcse-common.c : Likewise.
813         * gcse.c : Likewise.
814         * genattrtab.c : Likewise.
815         * genautomata.c : Likewise.
816         * genconditions.c : Likewise.
817         * genemit.c : Likewise.
818         * generic-match-head.c : Likewise.
819         * genextract.c : Likewise.
820         * gengtype-state.c : Likewise.
821         * gengtype.c : Likewise.
822         * genhooks.c : Likewise.
823         * genmatch.c : Likewise.
824         * genmodes.c : Likewise.
825         * genrecog.c : Likewise.
826         * gensupport.c : Likewise.
827         * ggc-common.c : Likewise.
828         * ggc-internal.h : Likewise.
829         * ggc-none.c : Likewise.
830         * ggc-page.c : Likewise.
831         * gimple-builder.c : Likewise.
832         * gimple-expr.c : Likewise.
833         * gimple-fold.c : Likewise.
834         * gimple-iterator.c : Likewise.
835         * gimple-low.c : Likewise.
836         * gimple-match-head.c : Likewise.
837         * gimple-pretty-print.c : Likewise.
838         * gimple-ssa-isolate-paths.c : Likewise.
839         * gimple-ssa-strength-reduction.c : Likewise.
840         * gimple-ssa.h : Likewise.
841         * gimple-streamer-in.c : Likewise.
842         * gimple-streamer-out.c : Likewise.
843         * gimple-streamer.h : Likewise.
844         * gimple-walk.c : Likewise.
845         * gimple.c : Likewise.
846         * gimplify-me.c : Likewise.
847         * gimplify.c : Likewise.
848         * godump.c : Likewise.
849         * graph.c : Likewise.
850         * graphds.c : Likewise.
851         * graphite-blocking.c : Likewise.
852         * graphite-dependences.c : Likewise.
853         * graphite-interchange.c : Likewise.
854         * graphite-isl-ast-to-gimple.c : Likewise.
855         * graphite-optimize-isl.c : Likewise.
856         * graphite-poly.c : Likewise.
857         * graphite-scop-detection.c : Likewise.
858         * graphite-sese-to-poly.c : Likewise.
859         * graphite.c : Likewise.
860         * haifa-sched.c : Likewise.
861         * hard-reg-set.h : Likewise.
862         * hw-doloop.c : Likewise.
863         * ifcvt.c : Likewise.
864         * inchash.c : Likewise.
865         * incpath.c : Likewise.
866         * init-regs.c : Likewise.
867         * input.c : Likewise.
868         * internal-fn.c : Likewise.
869         * ipa-chkp.c : Likewise.
870         * ipa-comdats.c : Likewise.
871         * ipa-cp.c : Likewise.
872         * ipa-devirt.c : Likewise.
873         * ipa-icf-gimple.c : Likewise.
874         * ipa-icf.c : Likewise.
875         * ipa-inline-analysis.c : Likewise.
876         * ipa-inline-transform.c : Likewise.
877         * ipa-inline.c : Likewise.
878         * ipa-polymorphic-call.c : Likewise.
879         * ipa-profile.c : Likewise.
880         * ipa-prop.c : Likewise.
881         * ipa-pure-const.c : Likewise.
882         * ipa-ref.c : Likewise.
883         * ipa-reference.c : Likewise.
884         * ipa-split.c : Likewise.
885         * ipa-utils.c : Likewise.
886         * ipa-visibility.c : Likewise.
887         * ipa.c : Likewise.
888         * ira-build.c : Likewise.
889         * ira-color.c : Likewise.
890         * ira-conflicts.c : Likewise.
891         * ira-costs.c : Likewise.
892         * ira-emit.c : Likewise.
893         * ira-lives.c : Likewise.
894         * ira.c : Likewise.
895         * jump.c : Likewise.
896         * langhooks.c : Likewise.
897         * lcm.c : Likewise.
898         * libfuncs.h : Likewise.
899         * lists.c : Likewise.
900         * loop-doloop.c : Likewise.
901         * loop-init.c : Likewise.
902         * loop-invariant.c : Likewise.
903         * loop-iv.c : Likewise.
904         * loop-unroll.c : Likewise.
905         * lower-subreg.c : Likewise.
906         * lra-assigns.c : Likewise.
907         * lra-coalesce.c : Likewise.
908         * lra-constraints.c : Likewise.
909         * lra-eliminations.c : Likewise.
910         * lra-lives.c : Likewise.
911         * lra-remat.c : Likewise.
912         * lra-spills.c : Likewise.
913         * lra.c : Likewise.
914         * lto-cgraph.c : Likewise.
915         * lto-compress.c : Likewise.
916         * lto-opts.c : Likewise.
917         * lto-section-in.c : Likewise.
918         * lto-section-out.c : Likewise.
919         * lto-streamer-in.c : Likewise.
920         * lto-streamer-out.c : Likewise.
921         * lto-streamer.c : Likewise.
922         * lto-streamer.h : Likewise.
923         * mcf.c : Likewise.
924         * mode-switching.c : Likewise.
925         * modulo-sched.c : Likewise.
926         * omega.c : Likewise.
927         * omp-low.c : Likewise.
928         * optabs.c : Likewise.
929         * opts-global.c : Likewise.
930         * opts.h : Likewise.
931         * passes.c : Likewise.
932         * plugin.c : Likewise.
933         * postreload-gcse.c : Likewise.
934         * postreload.c : Likewise.
935         * predict.c : Likewise.
936         * print-rtl.c : Likewise.
937         * print-tree.c : Likewise.
938         * profile.c : Likewise.
939         * read-md.c : Likewise.
940         * read-md.h : Likewise.
941         * read-rtl.c : Likewise.
942         * real.c : Likewise.
943         * realmpfr.c : Likewise.
944         * recog.c : Likewise.
945         * ree.c : Likewise.
946         * reg-stack.c : Likewise.
947         * regcprop.c : Likewise.
948         * reginfo.c : Likewise.
949         * regrename.c : Likewise.
950         * regstat.c : Likewise.
951         * reload.c : Likewise.
952         * reload1.c : Likewise.
953         * reorg.c : Likewise.
954         * resource.c : Likewise.
955         * rtl-chkp.c : Likewise.
956         * rtl.c : Likewise.
957         * rtl.h : Likewise.
958         * rtlanal.c : Likewise.
959         * rtlhash.c : Likewise.
960         * rtlhash.h : Likewise.
961         * rtlhooks.c : Likewise.
962         * sanopt.c : Likewise.
963         * sched-deps.c : Likewise.
964         * sched-ebb.c : Likewise.
965         * sched-rgn.c : Likewise.
966         * sched-vis.c : Likewise.
967         * sdbout.c : Likewise.
968         * sel-sched-dump.c : Likewise.
969         * sel-sched-ir.c : Likewise.
970         * sel-sched-ir.h : Likewise.
971         * sel-sched.c : Likewise.
972         * sese.c : Likewise.
973         * shrink-wrap.c : Likewise.
974         * shrink-wrap.h : Likewise.
975         * simplify-rtx.c : Likewise.
976         * stack-ptr-mod.c : Likewise.
977         * statistics.c : Likewise.
978         * stmt.c : Likewise.
979         * stor-layout.c : Likewise.
980         * store-motion.c : Likewise.
981         * stringpool.c : Likewise.
982         * symtab.c : Likewise.
983         * target-globals.c : Likewise.
984         * targhooks.c : Likewise.
985         * tlink.c : Likewise.
986         * toplev.c : Likewise.
987         * tracer.c : Likewise.
988         * trans-mem.c : Likewise.
989         * tree-affine.c : Likewise.
990         * tree-affine.h : Likewise.
991         * tree-browser.c : Likewise.
992         * tree-call-cdce.c : Likewise.
993         * tree-cfg.c : Likewise.
994         * tree-cfgcleanup.c : Likewise.
995         * tree-chkp-opt.c : Likewise.
996         * tree-chkp.c : Likewise.
997         * tree-chrec.c : Likewise.
998         * tree-complex.c : Likewise.
999         * tree-data-ref.c : Likewise.
1000         * tree-dfa.c : Likewise.
1001         * tree-diagnostic.c : Likewise.
1002         * tree-dump.c : Likewise.
1003         * tree-eh.c : Likewise.
1004         * tree-eh.h : Likewise.
1005         * tree-emutls.c : Likewise.
1006         * tree-hasher.h : Likewise.
1007         * tree-if-conv.c : Likewise.
1008         * tree-inline.c : Likewise.
1009         * tree-inline.h : Likewise.
1010         * tree-into-ssa.c : Likewise.
1011         * tree-iterator.c : Likewise.
1012         * tree-loop-distribution.c : Likewise.
1013         * tree-nested.c : Likewise.
1014         * tree-nrv.c : Likewise.
1015         * tree-object-size.c : Likewise.
1016         * tree-outof-ssa.c : Likewise.
1017         * tree-parloops.c : Likewise.
1018         * tree-phinodes.c : Likewise.
1019         * tree-predcom.c : Likewise.
1020         * tree-pretty-print.c : Likewise.
1021         * tree-profile.c : Likewise.
1022         * tree-scalar-evolution.c : Likewise.
1023         * tree-sra.c : Likewise.
1024         * tree-ssa-address.c : Likewise.
1025         * tree-ssa-alias.c : Likewise.
1026         * tree-ssa-ccp.c : Likewise.
1027         * tree-ssa-coalesce.c : Likewise.
1028         * tree-ssa-copy.c : Likewise.
1029         * tree-ssa-copyrename.c : Likewise.
1030         * tree-ssa-dce.c : Likewise.
1031         * tree-ssa-dom.c : Likewise.
1032         * tree-ssa-dse.c : Likewise.
1033         * tree-ssa-forwprop.c : Likewise.
1034         * tree-ssa-ifcombine.c : Likewise.
1035         * tree-ssa-live.c : Likewise.
1036         * tree-ssa-loop-ch.c : Likewise.
1037         * tree-ssa-loop-im.c : Likewise.
1038         * tree-ssa-loop-ivcanon.c : Likewise.
1039         * tree-ssa-loop-ivopts.c : Likewise.
1040         * tree-ssa-loop-manip.c : Likewise.
1041         * tree-ssa-loop-niter.c : Likewise.
1042         * tree-ssa-loop-prefetch.c : Likewise.
1043         * tree-ssa-loop-unswitch.c : Likewise.
1044         * tree-ssa-loop.c : Likewise.
1045         * tree-ssa-math-opts.c : Likewise.
1046         * tree-ssa-operands.c : Likewise.
1047         * tree-ssa-phiopt.c : Likewise.
1048         * tree-ssa-phiprop.c : Likewise.
1049         * tree-ssa-pre.c : Likewise.
1050         * tree-ssa-propagate.c : Likewise.
1051         * tree-ssa-reassoc.c : Likewise.
1052         * tree-ssa-sccvn.c : Likewise.
1053         * tree-ssa-scopedtables.c : Likewise.
1054         * tree-ssa-sink.c : Likewise.
1055         * tree-ssa-strlen.c : Likewise.
1056         * tree-ssa-structalias.c : Likewise.
1057         * tree-ssa-tail-merge.c : Likewise.
1058         * tree-ssa-ter.c : Likewise.
1059         * tree-ssa-threadedge.c : Likewise.
1060         * tree-ssa-threadupdate.c : Likewise.
1061         * tree-ssa-uncprop.c : Likewise.
1062         * tree-ssa-uninit.c : Likewise.
1063         * tree-ssa.c : Likewise.
1064         * tree-ssanames.c : Likewise.
1065         * tree-stdarg.c : Likewise.
1066         * tree-streamer-in.c : Likewise.
1067         * tree-streamer-out.c : Likewise.
1068         * tree-streamer.c : Likewise.
1069         * tree-streamer.h : Likewise.
1070         * tree-switch-conversion.c : Likewise.
1071         * tree-tailcall.c : Likewise.
1072         * tree-vect-data-refs.c : Likewise.
1073         * tree-vect-generic.c : Likewise.
1074         * tree-vect-loop-manip.c : Likewise.
1075         * tree-vect-loop.c : Likewise.
1076         * tree-vect-patterns.c : Likewise.
1077         * tree-vect-slp.c : Likewise.
1078         * tree-vect-stmts.c : Likewise.
1079         * tree-vectorizer.c : Likewise.
1080         * tree-vectorizer.h : Likewise.
1081         * tree-vrp.c : Likewise.
1082         * tree.c : Likewise.
1083         * tsan.c : Likewise.
1084         * ubsan.c : Likewise.
1085         * valtrack.c : Likewise.
1086         * valtrack.h : Likewise.
1087         * value-prof.c : Likewise.
1088         * var-tracking.c : Likewise.
1089         * varasm.c : Likewise.
1090         * varpool.c : Likewise.
1091         * vec.c: Likewise.
1092         * vmsdbgout.c : Likewise.
1093         * vtable-verify.c : Likewise.
1094         * vtable-verify.h : Likewise.
1095         * web.c : Likewise.
1096         * wide-int.cc : Likewise.
1097         * xcoffout.c : Likewise.
1098         * config/aarch64/aarch64-builtins.c : Likewise.
1099         * config/aarch64/aarch64.c : Likewise.
1100         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
1101         * config/alpha/alpha.c : Likewise.
1102         * config/arc/arc.c : Likewise.
1103         * config/arm/aarch-common.c : Likewise.
1104         * config/arm/arm-builtins.c : Likewise.
1105         * config/arm/arm-c.c : Likewise.
1106         * config/arm/arm.c : Likewise.
1107         * config/avr/avr-c.c : Likewise.
1108         * config/avr/avr-log.c : Likewise.
1109         * config/avr/avr.c : Likewise.
1110         * config/bfin/bfin.c : Likewise.
1111         * config/c6x/c6x.c : Likewise.
1112         * config/cr16/cr16.c : Likewise.
1113         * config/cris/cris.c : Likewise.
1114         * config/darwin-c.c : Likewise.
1115         * config/darwin.c : Likewise.
1116         * config/default-c.c : Likewise.
1117         * config/epiphany/epiphany.c : Likewise.
1118         * config/epiphany/mode-switch-use.c : Likewise.
1119         * config/epiphany/resolve-sw-modes.c : Likewise.
1120         * config/fr30/fr30.c : Likewise.
1121         * config/frv/frv.c : Likewise.
1122         * config/ft32/ft32.c : Likewise.
1123         * config/glibc-c.c : Likewise.
1124         * config/h8300/h8300.c : Likewise.
1125         * config/i386/i386-c.c : Likewise.
1126         * config/i386/i386.c : Likewise.
1127         * config/i386/msformat-c.c : Likewise.
1128         * config/i386/winnt-cxx.c : Likewise.
1129         * config/i386/winnt-stubs.c : Likewise.
1130         * config/i386/winnt.c : Likewise.
1131         * config/ia64/ia64-c.c : Likewise.
1132         * config/ia64/ia64.c : Likewise.
1133         * config/iq2000/iq2000.c : Likewise.
1134         * config/lm32/lm32.c : Likewise.
1135         * config/m32c/m32c-pragma.c : Likewise.
1136         * config/m32c/m32c.c : Likewise.
1137         * config/m32r/m32r.c : Likewise.
1138         * config/m68k/m68k.c : Likewise.
1139         * config/mcore/mcore.c : Likewise.
1140         * config/mep/mep-pragma.c : Likewise.
1141         * config/mep/mep.c : Likewise.
1142         * config/microblaze/microblaze-c.c : Likewise.
1143         * config/microblaze/microblaze.c : Likewise.
1144         * config/mips/mips.c : Likewise.
1145         * config/mmix/mmix.c : Likewise.
1146         * config/mn10300/mn10300.c : Likewise.
1147         * config/moxie/moxie.c : Likewise.
1148         * config/msp430/msp430-c.c : Likewise.
1149         * config/msp430/msp430.c : Likewise.
1150         * config/nds32/nds32-cost.c : Likewise.
1151         * config/nds32/nds32-fp-as-gp.c : Likewise.
1152         * config/nds32/nds32-intrinsic.c : Likewise.
1153         * config/nds32/nds32-isr.c : Likewise.
1154         * config/nds32/nds32-md-auxiliary.c : Likewise.
1155         * config/nds32/nds32-memory-manipulation.c : Likewise.
1156         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
1157         * config/nds32/nds32-predicates.c : Likewise.
1158         * config/nds32/nds32.c : Likewise.
1159         * config/nios2/nios2.c : Likewise.
1160         * config/nvptx/nvptx.c : Likewise.
1161         * config/pa/pa.c : Likewise.
1162         * config/pdp11/pdp11.c : Likewise.
1163         * config/rl78/rl78-c.c : Likewise.
1164         * config/rl78/rl78.c : Likewise.
1165         * config/rs6000/rs6000-c.c : Likewise.
1166         * config/rs6000/rs6000.c : Likewise.
1167         * config/rx/rx.c : Likewise.
1168         * config/s390/s390-c.c : Likewise.
1169         * config/s390/s390.c : Likewise.
1170         * config/sh/sh-c.c : Likewise.
1171         * config/sh/sh-mem.cc : Likewise.
1172         * config/sh/sh.c : Likewise.
1173         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
1174         * config/sh/sh_treg_combine.cc : Likewise.
1175         * config/sol2-c.c : Likewise.
1176         * config/sol2-cxx.c : Likewise.
1177         * config/sol2-stubs.c : Likewise.
1178         * config/sol2.c : Likewise.
1179         * config/sparc/sparc-c.c : Likewise.
1180         * config/sparc/sparc.c : Likewise.
1181         * config/spu/spu-c.c : Likewise.
1182         * config/spu/spu.c : Likewise.
1183         * config/stormy16/stormy16.c : Likewise.
1184         * config/tilegx/mul-tables.c : Likewise.
1185         * config/tilegx/tilegx-c.c : Likewise.
1186         * config/tilegx/tilegx.c : Likewise.
1187         * config/tilepro/mul-tables.c : Likewise.
1188         * config/tilepro/tilepro-c.c : Likewise.
1189         * config/tilepro/tilepro.c : Likewise.
1190         * config/v850/v850-c.c : Likewise.
1191         * config/v850/v850.c : Likewise.
1192         * config/vax/vax.c : Likewise.
1193         * config/visium/visium.c : Likewise.
1194         * config/vms/vms-c.c : Likewise.
1195         * config/vms/vms.c : Likewise.
1196         * config/vxworks.c : Likewise.
1197         * config/winnt-c.c : Likewise.
1198         * config/xtensa/xtensa.c : Likewise.
1200 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
1202         PR lto/65378
1203         * ipa-utils.h (warn_types_mismatch): Update prototype.
1204         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
1205         parameters.
1206         (type_mismatch_p): New function.
1207         (warn_types_mismatch): Reorg to work better on non-C++ types.
1208         (odr_types_equivalent_p): Add loc1/loc2 parameters.
1209         (add_type_duplicate): Update.
1211 2015-06-08  Tom de Vries  <tom@codesourcery.com>
1213         PR rtl-optimization/66444
1214         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
1215         call_used_regs.
1217 2015-06-08  Richard Biener  <rguenther@suse.de>
1219         PR tree-optimization/66422
1220         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
1221         block after inserted gcc_unreachable.
1223 2015-06-08  Nick Clifton  <nickc@redhat.com>
1225         * config/rx/rx.c (rx_function_value): Do not promote vector types.
1226         (rx_promote_function_mode): Likewise.
1227         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
1229 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
1231         * genattrtab.c (insn_alternatives): Change type from int *
1232         to uint64_t *.
1233         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
1234         (get_attr_value): Change type of num_alt to uint64_t.
1235         (compute_alternative_mask): Change return type from
1236         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
1237         (make_alternative_compare, mk_attr_alt): Change argument type
1238         from int to uint64_t.
1239         (simplify_test_exp): Change type of i from int to uint64_t.
1240         Shift ((uint64_t) 1) instead of 1 up.
1241         (main): Adjust oballocvec first argument from int to uint64_t.
1242         Shift ((uint64_t) 1) instead of 1 up.
1244 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
1246         PR other/65366
1247         * gdbhooks.py: Import sys.
1248         (intptr): New function.  Replace int(...) by intptr(...).
1250 2015-06-08  Richard Biener  <rguenther@suse.de>
1252         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
1253         adjustment for gaps at the end of a SLP load group properly.
1254         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
1255         all permutations we can generate.
1256         (vect_transform_slp_perm_load): Use the correct group-size.
1258 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
1260         * genmatch.c (expr::gen_transform): For conditions, guess the type
1261         from the second operand.
1263 2015-06-08  Tom de Vries  <tom@codesourcery.com>
1265         PR tree-optimization/66442
1266         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
1267         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
1268         if the loop latch is not a singleton.  Use
1269         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
1271 2015-06-08  Marek Polacek  <polacek@redhat.com>
1273         PR sanitizer/66452
1274         * toplev.c (check_global_declaration): Don't warn about artificial
1275         decls.
1277 2015-06-08  Tom de Vries  <tom@codesourcery.com>
1279         PR tree-optimization/66436
1280         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
1281         dump file.
1282         * gimplify.c: Add tree-dump.h include.
1283         (gimplify_function_tree): Dump function to gimple dump file.
1284         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
1285         dump file.
1287 2015-06-08  Tom de Vries  <tom@codesourcery.com>
1289         PR tree-optimization/66435
1290         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
1291         function.
1293 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
1295         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
1296         of ptr_type_node to not be ptr_to_node.
1297         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
1298         TREE_TYPE of pointers.
1299         * gimple-expr.c (useless_type_conversion): Reorder the check for
1300         function pointers and TYPE_CANONICAL.
1302 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
1304         PR bootstrap/66319
1305         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
1306         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
1307         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
1308         later.
1309         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
1310         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
1311         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
1312         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
1313         and non iso if unix2003.
1315 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
1317         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
1319 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
1321         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
1322         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
1323         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
1324         except.c, final.c, function.c, gcse-common.c, genemit.c,
1325         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
1326         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
1327         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
1328         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
1329         more derived ones.
1331 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
1333         * combine.c (combine_split_insns): Remove cast.
1334         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
1335         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
1336         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
1337         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
1338         * genemit.c (gen_split): Change return type of generated functions to
1339         rtx_insn.
1340         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
1341         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
1342         gen_peephole2_* functions.
1343         (print_subroutine, main): Likewise.
1344         * recog.c (peephole2_optimize): Remove cast.
1345         (peep2_next_insn): Promote return type to rtx_insn.
1346         * recog.h (peep2_next_insn): Fix prototype.
1347         * rtl.h (try_split, split_insns): Likewise.
1349 2015-06-06  DJ Delorie  <dj@redhat.com>
1351         * config/msp430/msp430.c (msp430_asm_integer): Support addition
1352         and subtraction too.
1354 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
1356         PR target/66410
1357         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
1358         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
1359         instead of Snd.  Disparage Sid/z alternative with '^'.
1361 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
1363         * dwarf2out.c: Remove deferred_locations*.
1364         (dwarf2_debug_hooks): Add early_finish hook.
1365         Remove global_decl hook.
1366         Add early_global_decl and late_global_decl hook.
1367         New global early_dwarf.
1368         New structure set_early_dwarf.
1369         (output_die): Indicate whether a DIE was generated early
1370         when generating assembly with -dA.
1371         (struct limbo_die_struct): Document created_for field.
1372         Remove file_table_last_lookup.
1373         (remove_AT): Return TRUE if successful.
1374         (remove_child_TAG): Clear die_parent.
1375         (reparent_child): New function abstracted from...
1376         (splice_child_die): ...here.
1377         (new_die): ICE if a DIE ends up in limbo too late.
1378         (check_die): New.
1379         (defer_location): Remove.
1380         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
1381         (fill_variable_array_bounds): New.
1382         (decl_start_label): Call fill_variable_array_bounds.
1383         (gen_formal_parameter_die): Rewrite to reuse previously generated
1384         DIEs.
1385         (gen_subprogram_die): Same.
1386         (gen_variable_die): Same.
1387         (gen_const_die): Same.
1388         (gen_label_die): Same.
1389         (gen_lexical_block_die): Same.
1390         (decl_will_get_specification_p): New.
1391         (local_function_static): New.
1392         (gen_struct_or_union_type_die): Fill in variable-length fields.
1393         (gen_typedef_die): Fill in variable-length typedefs.
1394         (gen_tagged_type_die): Gracefully return on error_mark_node.
1395         Handle re-entrancy.
1396         (gen_type_die_with_usage): Handle variable-length types.
1397         Remove duplicate code for ARRAY_TYPE case.
1398         (process_scope_var): Only process imported modules during early
1399         dwarf.
1400         (dwarf2out_early_global_decl): New.
1401         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
1402         (dwarf2out_type_decl): Set early_dwarf while calling
1403         dwarf2out_decl.
1404         (dwarf2out_decl): Verify that we did not recreate a previously
1405         generated DIE.
1406         Do not return on DECL_EXTERNALs in VAR_DECLs.
1407         Abstract some code to local_function_static.
1408         (lookup_filename): Remove use of file_table_last_lookup.
1409         Gracefully exit on missing file_name.
1410         (dwarf2out_finish): Verify limbo list.
1411         Remove deferred_locations_list use.
1412         Move deferred_asm_name and limbo flushing to...
1413         (dwarf2out_early_finish): ...here.  New.
1414         (dwarf2out_c_finalize): Remove set of deferred_location_list,
1415         deferred_asm_name, and file_table_last_lookup.
1416         * cgraph.h (referred_to_p): Add default argument.
1417         * cgraphunit.c (referred_to_p): Add and handle include_self
1418         argument.
1419         (analyze_functions): Add first_time argument.
1420         Call check_global_declaration for all symbols.
1421         Call late_global_decl for nodes for moribund nodes.
1422         (finalize_compilation_unit): Add new argument to
1423         analyze_functions.
1424         Call early_global_decl for functions.
1425         Call early_finish debug hook.
1426         * dbxout.c (dbxout_early_global_decl): New.
1427         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
1428         (dbx_debug_hooks): Add new hooks.
1429         (xcoff_debug_hooks): Same.
1430         * debug.c (do_nothing_debug_hooks): Add early_finish field.
1431         Add early and late debug hooks.
1432         Remove global_decl hook.
1433         * debug.h (struct gcc_debug_hooks): Add early_finish,
1434         early_global_decl, and late_global_decl fields.
1435         Remove global_decl field.
1436         Document gcc_debug_hooks.
1437         * gengtype.c (output_typename): Remove.
1438         * godump.c (go_early_global_decl): New.
1439         (go_late_global_decl): New.
1440         (go_global_decl): Remove.
1441         (dump_go_spec_init): Remove global_decl.  Add
1442         {early,late}_global_decl.
1443         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
1444         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
1445         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
1446         (write_global_declarations): Remove.
1447         (global_decl_processing): New.
1448         * langhooks.h (struct lang_hooks_for_decls): Remove
1449         final_write_globals field.
1450         Add post_compilation_parsing_cleanups field.
1451         * passes.c (rest_of_decl_compilation): Call early_global_decl.
1452         * sdbout.c: Add early and late_global_decl hooks.  Remove
1453         sdbout_global_decl hook.
1454         Add early_finish field for sdb_debug_hooks.
1455         (sdbout_global_decl): Remove.
1456         (sdbout_early_global_decl): New.
1457         (sdbout_late_global_decl): New.
1458         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
1459         * toplev.c (check_global_declaration): Rename from
1460         check_global_declaration_1.
1461         Adapt to use symtab infrastructure.
1462         (check_global_declarations): Remove.
1463         (emit_debug_global_declarations): Remove.
1464         (compile_file): Remove call to final_write_globals langhook.
1465         Run the actual compilation process.
1466         Perform any post compilation parser cleanups.
1467         Generate late debug info.
1468         * toplev.h (check_global_declaration): New.
1469         (check_global_declaration_1): Remove.
1470         (check_global_declarations): Remove.
1471         (write_global_declarations): Remove.
1472         (emit_debug_global_declarations): Remove.
1473         (global_decl_processing): New.
1474         * tree-core.h (struct tree_block): Add DIE field.
1475         * tree.h (BLOCK_DIE): New.
1476         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
1477         throughout.
1478         (vmsdbgout_early_global_decl): New.
1479         (vmsdbgout_late_global_decl): New.
1480         Add early_finish debug hook field to vmsdbg_debug_hooks.
1481         Remove vmsdbgout_decl to vmsdbgout_function_decl.
1482         Add early and late_global_decl debug hooks.
1484 2015-06-05  Julian Brown  <julian@codesourcery.com>
1485             Sandra Loosemore  <sandra@codesourcery.com>
1487         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
1488         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
1489         to print-sysroot-suffix.sh script.
1491 2015-06-05  Tom de Vries  <tom@codesourcery.com>
1493         merge from gomp4 branch:
1494         2015-05-28  Tom de Vries  <tom@codesourcery.com>
1496         PR tree-optimization/65443
1497         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
1498         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
1499         (try_transform_to_exit_first_loop_alt): New function.
1500         (transform_to_exit_first_loop): Use
1501         try_transform_to_exit_first_loop_alt.
1503 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
1505         * builtins.c (expand_builtin_atomic_compare_exchange): Call
1506         emit_cmp_and_jump_insns with the mode of target.
1508 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1510         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
1512 2015-06-04  DJ Delorie  <dj@redhat.com>
1514         * config/msp430/msp430.md (movsi_s): New.  Special case for
1515         storing a 20-bit symbol into a 32-bit register.
1516         * config/msp430/msp430.c (msp430_subreg): Add support for it.
1517         * config/msp430/predicates.md (msp430_symbol_operand): New.
1519 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
1521         * c-family/c-common.c (noplt): New attribute.
1522         (handle_noplt_attribute): New handler.
1523         * calls.c (prepare_call_address): Check for noplt
1524         attribute.
1525         * config/i386/i386.c (ix86_expand_call): Check
1526         for noplt attribute.
1527         (ix86_nopic_noplt_attribute_p): New function.
1528         (ix86_output_call_insn): Output indirect call for non-pic
1529         no plt calls.
1530         * doc/extend.texi (noplt): Document new attribute.
1531         * doc/invoke.texi: Document new attribute.
1533 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
1535         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
1536         real.h, and fixed-value.h when included in host source files.
1537         * double-int.h: Remove redundant #includes listed above.
1538         * fixed-value.h: Likewise.
1539         * real.h: Likewise.
1540         * wide-int.h: Likewise.
1541         * inchash.h: Likewise.
1542         * rtl.h: Add some include files When included from a generator file.
1543         * target.h: Remove wide-int.h and insn-modes.h from the include list.
1544         * internal-fn.h: Don't include coretypes.h.
1545         * alias.c: Adjust includes for restructured coretypes.h.
1546         * asan.c: Likewise.
1547         * attribs.c: Likewise.
1548         * auto-inc-dec.c: Likewise.
1549         * auto-profile.c: Likewise.
1550         * bb-reorder.c: Likewise.
1551         * bt-load.c: Likewise.
1552         * builtins.c: Likewise.
1553         * caller-save.c: Likewise.
1554         * calls.c: Likewise.
1555         * ccmp.c: Likewise.
1556         * cfg.c: Likewise.
1557         * cfganal.c: Likewise.
1558         * cfgbuild.c: Likewise.
1559         * cfgcleanup.c: Likewise.
1560         * cfgexpand.c: Likewise.
1561         * cfghooks.c: Likewise.
1562         * cfgloop.c: Likewise.
1563         * cfgloop.h: Likewise.
1564         * cfgloopanal.c: Likewise.
1565         * cfgloopmanip.c: Likewise.
1566         * cfgrtl.c: Likewise.
1567         * cgraph.c: Likewise.
1568         * cgraphbuild.c: Likewise.
1569         * cgraphclones.c: Likewise.
1570         * cgraphunit.c: Likewise.
1571         * cilk-common.c: Likewise.
1572         * combine-stack-adj.c: Likewise.
1573         * combine.c: Likewise.
1574         * compare-elim.c: Likewise.
1575         * convert.c: Likewise.
1576         * coverage.c: Likewise.
1577         * cppbuiltin.c: Likewise.
1578         * cprop.c: Likewise.
1579         * cse.c: Likewise.
1580         * cselib.c: Likewise.
1581         * data-streamer-in.c: Likewise.
1582         * data-streamer-out.c: Likewise.
1583         * data-streamer.c: Likewise.
1584         * dbxout.c: Likewise.
1585         * dce.c: Likewise.
1586         * ddg.c: Likewise.
1587         * debug.c: Likewise.
1588         * df-core.c: Likewise.
1589         * df-problems.c: Likewise.
1590         * df-scan.c: Likewise.
1591         * df.h: Likewise.
1592         * dfp.c: Likewise.
1593         * dojump.c: Likewise.
1594         * dominance.c: Likewise.
1595         * domwalk.c: Likewise.
1596         * double-int.c: Likewise.
1597         * dse.c: Likewise.
1598         * dumpfile.c: Likewise.
1599         * dwarf2asm.c: Likewise.
1600         * dwarf2cfi.c: Likewise.
1601         * dwarf2out.c: Likewise.
1602         * dwarf2out.h: Likewise.
1603         * emit-rtl.c: Likewise.
1604         * et-forest.c: Likewise.
1605         * except.c: Likewise.
1606         * explow.c: Likewise.
1607         * expmed.c: Likewise.
1608         * expr.c: Likewise.
1609         * final.c: Likewise.
1610         * fixed-value.c: Likewise.
1611         * fold-const.c: Likewise.
1612         * function.c: Likewise.
1613         * fwprop.c: Likewise.
1614         * gcc-plugin.h: Likewise.
1615         * gcse.c: Likewise.
1616         * generic-match-head.c: Likewise.
1617         * ggc-page.c: Likewise.
1618         * gimple-builder.c: Likewise.
1619         * gimple-expr.c: Likewise.
1620         * gimple-fold.c: Likewise.
1621         * gimple-iterator.c: Likewise.
1622         * gimple-low.c: Likewise.
1623         * gimple-match-head.c: Likewise.
1624         * gimple-pretty-print.c: Likewise.
1625         * gimple-ssa-isolate-paths.c: Likewise.
1626         * gimple-ssa-strength-reduction.c: Likewise.
1627         * gimple-streamer-in.c: Likewise.
1628         * gimple-streamer-out.c: Likewise.
1629         * gimple-streamer.h: Likewise.
1630         * gimple-walk.c: Likewise.
1631         * gimple.c: Likewise.
1632         * gimplify-me.c: Likewise.
1633         * gimplify.c: Likewise.
1634         * godump.c: Likewise.
1635         * graph.c: Likewise.
1636         * graphite-blocking.c: Likewise.
1637         * graphite-dependences.c: Likewise.
1638         * graphite-interchange.c: Likewise.
1639         * graphite-isl-ast-to-gimple.c: Likewise.
1640         * graphite-optimize-isl.c: Likewise.
1641         * graphite-poly.c: Likewise.
1642         * graphite-scop-detection.c: Likewise.
1643         * graphite-sese-to-poly.c: Likewise.
1644         * graphite.c: Likewise.
1645         * haifa-sched.c: Likewise.
1646         * hooks.h: Likewise.
1647         * hw-doloop.c: Likewise.
1648         * ifcvt.c: Likewise.
1649         * incpath.c: Likewise.
1650         * init-regs.c: Likewise.
1651         * internal-fn.c: Likewise.
1652         * ipa-chkp.c: Likewise.
1653         * ipa-comdats.c: Likewise.
1654         * ipa-cp.c: Likewise.
1655         * ipa-devirt.c: Likewise.
1656         * ipa-icf-gimple.c: Likewise.
1657         * ipa-icf.c: Likewise.
1658         * ipa-inline-analysis.c: Likewise.
1659         * ipa-inline-transform.c: Likewise.
1660         * ipa-inline.c: Likewise.
1661         * ipa-polymorphic-call.c: Likewise.
1662         * ipa-profile.c: Likewise.
1663         * ipa-prop.c: Likewise.
1664         * ipa-pure-const.c: Likewise.
1665         * ipa-ref.c: Likewise.
1666         * ipa-reference.c: Likewise.
1667         * ipa-split.c: Likewise.
1668         * ipa-utils.c: Likewise.
1669         * ipa-visibility.c: Likewise.
1670         * ipa.c: Likewise.
1671         * ira-build.c: Likewise.
1672         * ira-color.c: Likewise.
1673         * ira-conflicts.c: Likewise.
1674         * ira-costs.c: Likewise.
1675         * ira-emit.c: Likewise.
1676         * ira-lives.c: Likewise.
1677         * ira.c: Likewise.
1678         * jump.c: Likewise.
1679         * langhooks.c: Likewise.
1680         * lcm.c: Likewise.
1681         * loop-doloop.c: Likewise.
1682         * loop-init.c: Likewise.
1683         * loop-invariant.c: Likewise.
1684         * loop-iv.c: Likewise.
1685         * loop-unroll.c: Likewise.
1686         * lower-subreg.c: Likewise.
1687         * lra-assigns.c: Likewise.
1688         * lra-coalesce.c: Likewise.
1689         * lra-constraints.c: Likewise.
1690         * lra-eliminations.c: Likewise.
1691         * lra-lives.c: Likewise.
1692         * lra-remat.c: Likewise.
1693         * lra-spills.c: Likewise.
1694         * lra.c: Likewise.
1695         * lto-cgraph.c: Likewise.
1696         * lto-compress.c: Likewise.
1697         * lto-opts.c: Likewise.
1698         * lto-section-in.c: Likewise.
1699         * lto-section-out.c: Likewise.
1700         * lto-streamer-in.c: Likewise.
1701         * lto-streamer-out.c: Likewise.
1702         * lto-streamer.c: Likewise.
1703         * mcf.c: Likewise.
1704         * mode-switching.c: Likewise.
1705         * modulo-sched.c: Likewise.
1706         * omega.c: Likewise.
1707         * omp-low.c: Likewise.
1708         * optabs.c: Likewise.
1709         * opts-global.c: Likewise.
1710         * passes.c: Likewise.
1711         * plugin.c: Likewise.
1712         * postreload-gcse.c: Likewise.
1713         * postreload.c: Likewise.
1714         * predict.c: Likewise.
1715         * print-rtl.c: Likewise.
1716         * print-tree.c: Likewise.
1717         * profile.c: Likewise.
1718         * real.c: Likewise.
1719         * realmpfr.c: Likewise.
1720         * realmpfr.h: Likewise.
1721         * recog.c: Likewise.
1722         * ree.c: Likewise.
1723         * reg-stack.c: Likewise.
1724         * regcprop.c: Likewise.
1725         * reginfo.c: Likewise.
1726         * regrename.c: Likewise.
1727         * regs.h: Likewise.
1728         * regstat.c: Likewise.
1729         * reload.c: Likewise.
1730         * reload1.c: Likewise.
1731         * reorg.c: Likewise.
1732         * resource.c: Likewise.
1733         * rtl-chkp.c: Likewise.
1734         * rtlanal.c: Likewise.
1735         * rtlhooks.c: Likewise.
1736         * sanopt.c: Likewise.
1737         * sched-deps.c: Likewise.
1738         * sched-ebb.c: Likewise.
1739         * sched-rgn.c: Likewise.
1740         * sched-vis.c: Likewise.
1741         * sdbout.c: Likewise.
1742         * sel-sched-dump.c: Likewise.
1743         * sel-sched-ir.c: Likewise.
1744         * sel-sched.c: Likewise.
1745         * sese.c: Likewise.
1746         * shrink-wrap.c: Likewise.
1747         * shrink-wrap.h: Likewise.
1748         * simplify-rtx.c: Likewise.
1749         * stack-ptr-mod.c: Likewise.
1750         * statistics.c: Likewise.
1751         * stmt.c: Likewise.
1752         * stor-layout.c: Likewise.
1753         * store-motion.c: Likewise.
1754         * stringpool.c: Likewise.
1755         * symtab.c: Likewise.
1756         * target-globals.c: Likewise.
1757         * targhooks.c: Likewise.
1758         * toplev.c: Likewise.
1759         * tracer.c: Likewise.
1760         * trans-mem.c: Likewise.
1761         * tree-affine.c: Likewise.
1762         * tree-affine.h: Likewise.
1763         * tree-browser.c: Likewise.
1764         * tree-call-cdce.c: Likewise.
1765         * tree-cfg.c: Likewise.
1766         * tree-cfgcleanup.c: Likewise.
1767         * tree-chkp-opt.c: Likewise.
1768         * tree-chkp.c: Likewise.
1769         * tree-chrec.c: Likewise.
1770         * tree-complex.c: Likewise.
1771         * tree-data-ref.c: Likewise.
1772         * tree-dfa.c: Likewise.
1773         * tree-diagnostic.c: Likewise.
1774         * tree-dump.c: Likewise.
1775         * tree-eh.c: Likewise.
1776         * tree-emutls.c: Likewise.
1777         * tree-if-conv.c: Likewise.
1778         * tree-inline.c: Likewise.
1779         * tree-into-ssa.c: Likewise.
1780         * tree-iterator.c: Likewise.
1781         * tree-loop-distribution.c: Likewise.
1782         * tree-nested.c: Likewise.
1783         * tree-nrv.c: Likewise.
1784         * tree-object-size.c: Likewise.
1785         * tree-outof-ssa.c: Likewise.
1786         * tree-parloops.c: Likewise.
1787         * tree-phinodes.c: Likewise.
1788         * tree-predcom.c: Likewise.
1789         * tree-pretty-print.c: Likewise.
1790         * tree-pretty-print.h: Likewise.
1791         * tree-profile.c: Likewise.
1792         * tree-scalar-evolution.c: Likewise.
1793         * tree-sra.c: Likewise.
1794         * tree-ssa-address.c: Likewise.
1795         * tree-ssa-alias.c: Likewise.
1796         * tree-ssa-ccp.c: Likewise.
1797         * tree-ssa-coalesce.c: Likewise.
1798         * tree-ssa-copy.c: Likewise.
1799         * tree-ssa-copyrename.c: Likewise.
1800         * tree-ssa-dce.c: Likewise.
1801         * tree-ssa-dom.c: Likewise.
1802         * tree-ssa-dse.c: Likewise.
1803         * tree-ssa-forwprop.c: Likewise.
1804         * tree-ssa-ifcombine.c: Likewise.
1805         * tree-ssa-live.c: Likewise.
1806         * tree-ssa-loop-ch.c: Likewise.
1807         * tree-ssa-loop-im.c: Likewise.
1808         * tree-ssa-loop-ivcanon.c: Likewise.
1809         * tree-ssa-loop-ivopts.c: Likewise.
1810         * tree-ssa-loop-manip.c: Likewise.
1811         * tree-ssa-loop-niter.c: Likewise.
1812         * tree-ssa-loop-prefetch.c: Likewise.
1813         * tree-ssa-loop-unswitch.c: Likewise.
1814         * tree-ssa-loop.c: Likewise.
1815         * tree-ssa-loop.h: Likewise.
1816         * tree-ssa-math-opts.c: Likewise.
1817         * tree-ssa-operands.c: Likewise.
1818         * tree-ssa-phiopt.c: Likewise.
1819         * tree-ssa-phiprop.c: Likewise.
1820         * tree-ssa-pre.c: Likewise.
1821         * tree-ssa-propagate.c: Likewise.
1822         * tree-ssa-reassoc.c: Likewise.
1823         * tree-ssa-sccvn.c: Likewise.
1824         * tree-ssa-scopedtables.c: Likewise.
1825         * tree-ssa-sink.c: Likewise.
1826         * tree-ssa-strlen.c: Likewise.
1827         * tree-ssa-structalias.c: Likewise.
1828         * tree-ssa-tail-merge.c: Likewise.
1829         * tree-ssa-ter.c: Likewise.
1830         * tree-ssa-threadedge.c: Likewise.
1831         * tree-ssa-threadupdate.c: Likewise.
1832         * tree-ssa-uncprop.c: Likewise.
1833         * tree-ssa-uninit.c: Likewise.
1834         * tree-ssa.c: Likewise.
1835         * tree-ssanames.c: Likewise.
1836         * tree-stdarg.c: Likewise.
1837         * tree-streamer-in.c: Likewise.
1838         * tree-streamer-out.c: Likewise.
1839         * tree-streamer.c: Likewise.
1840         * tree-switch-conversion.c: Likewise.
1841         * tree-tailcall.c: Likewise.
1842         * tree-vect-data-refs.c: Likewise.
1843         * tree-vect-generic.c: Likewise.
1844         * tree-vect-loop-manip.c: Likewise.
1845         * tree-vect-loop.c: Likewise.
1846         * tree-vect-patterns.c: Likewise.
1847         * tree-vect-slp.c: Likewise.
1848         * tree-vect-stmts.c: Likewise.
1849         * tree-vectorizer.c: Likewise.
1850         * tree-vrp.c: Likewise.
1851         * tree.c: Likewise.
1852         * tsan.c: Likewise.
1853         * ubsan.c: Likewise.
1854         * valtrack.c: Likewise.
1855         * value-prof.c: Likewise.
1856         * var-tracking.c: Likewise.
1857         * varasm.c: Likewise.
1858         * varpool.c: Likewise.
1859         * vmsdbgout.c: Likewise.
1860         * vtable-verify.c: Likewise.
1861         * web.c: Likewise.
1862         * wide-int-print.cc: Likewise.
1863         * wide-int-print.h: Likewise.
1864         * wide-int.cc: Likewise.
1865         * xcoffout.c: Likewise.
1866         * config/aarch64/aarch64-builtins.c: Likewise.
1867         * config/aarch64/aarch64.c: Likewise.
1868         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1869         * config/alpha/alpha.c: Likewise.
1870         * config/arc/arc.c: Likewise.
1871         * config/arm/aarch-common.c: Likewise.
1872         * config/arm/arm-builtins.c: Likewise.
1873         * config/arm/arm-c.c: Likewise.
1874         * config/arm/arm.c: Likewise.
1875         * config/avr/avr-c.c: Likewise.
1876         * config/avr/avr-log.c: Likewise.
1877         * config/avr/avr.c: Likewise.
1878         * config/bfin/bfin.c: Likewise.
1879         * config/c6x/c6x.c: Likewise.
1880         * config/cr16/cr16.c: Likewise.
1881         * config/cris/cris.c: Likewise.
1882         * config/darwin-c.c: Likewise.
1883         * config/darwin.c: Likewise.
1884         * config/default-c.c: Likewise.
1885         * config/epiphany/epiphany.c: Likewise.
1886         * config/epiphany/mode-switch-use.c: Likewise.
1887         * config/epiphany/resolve-sw-modes.c: Likewise.
1888         * config/fr30/fr30.c: Likewise.
1889         * config/frv/frv.c: Likewise.
1890         * config/ft32/ft32.c: Likewise.
1891         * config/glibc-c.c: Likewise.
1892         * config/h8300/h8300.c: Likewise.
1893         * config/i386/i386-c.c: Likewise.
1894         * config/i386/i386.c: Likewise.
1895         * config/i386/msformat-c.c: Likewise.
1896         * config/i386/winnt-cxx.c: Likewise.
1897         * config/i386/winnt-stubs.c: Likewise.
1898         * config/i386/winnt.c: Likewise.
1899         * config/ia64/ia64-c.c: Likewise.
1900         * config/ia64/ia64.c: Likewise.
1901         * config/iq2000/iq2000.c: Likewise.
1902         * config/lm32/lm32.c: Likewise.
1903         * config/m32c/m32c-pragma.c: Likewise.
1904         * config/m32c/m32c.c: Likewise.
1905         * config/m32r/m32r.c: Likewise.
1906         * config/m68k/m68k.c: Likewise.
1907         * config/mcore/mcore.c: Likewise.
1908         * config/mep/mep-pragma.c: Likewise.
1909         * config/mep/mep.c: Likewise.
1910         * config/microblaze/microblaze-c.c: Likewise.
1911         * config/microblaze/microblaze.c: Likewise.
1912         * config/mips/mips.c: Likewise.
1913         * config/mmix/mmix.c: Likewise.
1914         * config/mn10300/mn10300.c: Likewise.
1915         * config/moxie/moxie.c: Likewise.
1916         * config/msp430/msp430-c.c: Likewise.
1917         * config/msp430/msp430.c: Likewise.
1918         * config/nds32/nds32-cost.c: Likewise.
1919         * config/nds32/nds32-fp-as-gp.c: Likewise.
1920         * config/nds32/nds32-intrinsic.c: Likewise.
1921         * config/nds32/nds32-isr.c: Likewise.
1922         * config/nds32/nds32-md-auxiliary.c: Likewise.
1923         * config/nds32/nds32-memory-manipulation.c: Likewise.
1924         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1925         * config/nds32/nds32-predicates.c: Likewise.
1926         * config/nds32/nds32.c: Likewise.
1927         * config/nios2/nios2.c: Likewise.
1928         * config/nvptx/nvptx.c: Likewise.
1929         * config/pa/pa.c: Likewise.
1930         * config/pdp11/pdp11.c: Likewise.
1931         * config/rl78/rl78-c.c: Likewise.
1932         * config/rl78/rl78.c: Likewise.
1933         * config/rs6000/rs6000-c.c: Likewise.
1934         * config/rs6000/rs6000.c: Likewise.
1935         * config/rx/rx.c: Likewise.
1936         * config/s390/s390-c.c: Likewise.
1937         * config/s390/s390.c: Likewise.
1938         * config/sh/sh-c.c: Likewise.
1939         * config/sh/sh-mem.cc: Likewise.
1940         * config/sh/sh.c: Likewise.
1941         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1942         * config/sh/sh_treg_combine.cc: Likewise.
1943         * config/sol2-c.c: Likewise.
1944         * config/sol2-cxx.c: Likewise.
1945         * config/sol2-stubs.c: Likewise.
1946         * config/sol2.c: Likewise.
1947         * config/sparc/sparc-c.c: Likewise.
1948         * config/sparc/sparc.c: Likewise.
1949         * config/spu/spu-c.c: Likewise.
1950         * config/spu/spu.c: Likewise.
1951         * config/stormy16/stormy16.c: Likewise.
1952         * config/tilegx/mul-tables.c: Likewise.
1953         * config/tilegx/tilegx-c.c: Likewise.
1954         * config/tilegx/tilegx.c: Likewise.
1955         * config/tilepro/mul-tables.c: Likewise.
1956         * config/tilepro/tilepro-c.c: Likewise.
1957         * config/tilepro/tilepro.c: Likewise.
1958         * config/v850/v850-c.c: Likewise.
1959         * config/v850/v850.c: Likewise.
1960         * config/vax/vax.c: Likewise.
1961         * config/visium/visium.c: Likewise.
1962         * config/vms/vms-c.c: Likewise.
1963         * config/vms/vms.c: Likewise.
1964         * config/vxworks.c: Likewise.
1965         * config/winnt-c.c: Likewise.
1966         * config/xtensa/xtensa.c: Likewise.
1967         * common/config/bfin/bfin-common.c: Likewise.
1969 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
1971         * tree.h (tree_code_for_canonical_type_merging): New function.
1972         * tree.c (gimple_canonical_types_compatible_p): Use
1973         tree_code_for_canonical_type_merging..
1975 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1977         PR c++/66192
1978         PR target/66200
1979         * doc/tm.texi: Regenerate.
1980         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
1981         * target.def (TARGET_RELAXED_ORDERING): Likewise.
1982         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
1983         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
1984         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
1985         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
1986         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
1987         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
1988         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
1990 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1992         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
1993         register fma steering pass.
1994         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
1995         AARCH64_TUNE_FMA_STEERING.
1997 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
1999         * tree.c (verify_type_variant): Verify that type and variant is
2000         compatible.
2001         (gimple_canonical_types_compatible_p): Look for main variants.
2003 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
2005         * config.gcc (powerpc*-*-*): Add support for a new configure
2006         option --with-advance-toolchain=<xxx> which overrides using the
2007         default header files, libraries and dynamic linker.
2009         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
2010         specs to support the configure --with-advance-toolchain=<xxx>
2011         option.
2012         (INCLUDE_EXTRA_SPEC): Likewise.
2013         (LINK_OS_EXTRA_SPEC32): Likewise.
2014         (LINK_OK_EXTRA_SPEC64): Likewise.
2015         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
2016         (DYNAMIC_LINKER_PREFIX): Likewise.
2017         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
2018         toolchain support.
2019         (GLIBC_DYNAMIC_LINKER32): Likewise.
2020         (GLIBC_DYNAMIC_LINKER64): Likewise.
2021         (LINK_OS_LINUX_SPEC32): Likewise.
2022         (LINK_OS_LINUX_SPEC64): Likewise.
2024         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
2025         configuration option.
2027 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
2029         PR target/66275
2030         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
2031         to determine current function ABI.
2032         (ix86_function_value_regno_p): Ditto.
2034 2015-06-03  Martin Liska  <mliska@suse.cz>
2036         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
2037         * bitmap.h (struct bitmap_usage): Likewise.
2038         * ggc-common.c (struct ggc_usage): Likewise.
2039         * mem-stats.h (struct mem_location): Likewise.
2040         (struct mem_usage): Likewise.
2041         * vec.c (struct vec_usage): Likewise.
2043 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
2045         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
2046         -Bsymbolic.
2048 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
2050         * doc/plugins.texi (enum plugin_event): New event.
2051         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
2052         and PLUGIN_FINISH_FUNCTION.
2053         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
2054         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
2056 2015-06-03  Richard Biener  <rguenther@suse.de>
2058         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
2059         compute GROUP_GAP for the first element.
2060         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
2061         on in-group gaps.
2063 2015-06-03  Nick Clifton  <nickc@redhat.com>
2065         * config/rl78/rl78-real.md: Add peepholes to avoid a register
2066         copy when calling a function.
2067         * config/rl78/rl78.c (need_to_save): Do not push the frame
2068         pointer in an interrupt handler prologue if it is never used.
2070 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2072         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
2074 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
2076         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
2077         reference when cloning alias node.
2079 2015-06-03  Martin Liska  <mliska@suse.cz>
2081         * alloc-pool.h (struct pool_usage): Correct space padding.
2082         * ggc-page.c (ggc_print_statistics): Align columns in a report.
2083         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
2084         * tree.c (dump_tree_statistics): Align columns in a report.
2086 2015-06-03  Martin Liska  <mliska@suse.cz>
2088         * alloc-pool.c (allocate_pool_descriptor): Remove.
2089         (struct pool_output_info): Likewise.
2090         (print_alloc_pool_statistics): Likewise.
2091         (dump_alloc_pool_statistics): Likewise.
2092         * alloc-pool.h (struct pool_usage): New struct.
2093         (pool_allocator::initialize): Change usage of memory statistics
2094         to a new interface.
2095         (pool_allocator::release): Likewise.
2096         (pool_allocator::allocate): Likewise.
2097         (pool_allocator::remove): Likewise.
2098         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
2099         for a pool allocator.
2100         * mem-stats.h (struct mem_location): Add new ctor.
2101         (struct mem_usage): Add counter for number of
2102         instances.
2103         (mem_alloc_description::register_descriptor): New overload of
2104         * mem-stats.h (mem_location::to_string): New function.
2105         * bitmap.h (struct bitmap_usage): Use this new function.
2106         * ggc-common.c (struct ggc_usage): Likewise.
2107         the function.
2109 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
2111         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
2112         of GCC_INSN_FLAGS_H block.
2114 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
2116         * explow.c (plus_constant): Update check after force_const_mem call
2117         to see if the value returned is not a NULL_RTX.
2119 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
2121         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
2122         remove instumentation thunks calling reachable functions.
2123         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
2124         * lto/lto-partition.c (privatize_symbol_name_1): New.
2125         (privatize_symbol_name): Privatize both decl and orig_decl
2126         names for instrumented functions.
2127         * cgraph.c (cgraph_node::verify_node): Add transparent
2128         alias chain check for instrumented node.
2130 2015-06-03  Marek Polacek  <polacek@redhat.com>
2132         PR c/64223
2133         PR c/29358
2134         * tree.c (attribute_value_equal): Handle attribute format.
2135         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
2137 2015-06-03  Richard Biener  <rguenther@suse.de>
2139         PR tree-optimization/63916
2140         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
2141         Forward-propagate non-invariant addresses by splicing their
2142         reference ops if the result isn't going to be used by PRE.
2143         (vn_reference_lookup_3): Remove pointless assert.
2145 2015-06-03  Richard Biener  <rguenther@suse.de>
2147         PR tree-optimization/66375
2148         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
2149         add to the evolution before following SSA edges.
2151 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
2153         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
2154         (dump_use, dump_cand, find_induction_variables): Pass new argument
2155         to dump_iv.
2156         (record_use): Preserve the ssa name information in IV.
2158 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
2160         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
2161         NO_MODE_TEST.
2162         (add_mode_tests): Don't add mode tests if the predicate only
2163         accepts scalar constant integers.  Otherwise, allow the mode
2164         of "op" to be VOIDmode if the predicate does accept such integers.
2166 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
2168         PR target/66258
2169         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
2170         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
2171         (aarch64_secondary_reload): Likewise
2172         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
2173         to !TARGET_FLOAT.
2174         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
2175         Likewise.
2177 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
2178             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2180         PR target/65768
2181         * cprop.c (try_replace_reg): Check cost of constants before propagating.
2183 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
2185         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
2186         provide access to the IBM extended double floating point mode if
2187         long double is IEEE 128-bit floating point.
2188         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
2189         point if long double is the IBM extended double type.
2191         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
2192         enable adding IEEE 128-bit floating point support.
2193         (-mfloat128-software): Likewise.
2194         (-mfloat128-sw): Likewise.
2196         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
2197         128-bit floating point types to occupy any register if
2198         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
2199         -mfloat128-software is enabled.
2200         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
2201         support.
2202         (rs6000_option_override_internal): Add -mfloat128-* support.
2203         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
2205         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
2206         and float128 type nodes.
2207         (ieee128_float_type_node): Likewise.
2208         (ibm128_float_type_node): Likewise.
2210 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2212         PR target/66136
2213         * config/aarch64/geniterators.sh: Rewrite in awk.
2215 2015-06-02  Martin Liska  <mliska@suse.cz>
2217         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
2218         values to avoid -Wmaybe-uninitialized errors.
2220 2015-06-02  Richard Biener  <rguenther@suse.de>
2222         PR debug/65549
2223         * dwarf2out.c (lookup_context_die): New function.
2224         (resolve_addr): Avoid forcing a full DIE for the
2225         target of a DW_TAG_GNU_call_site during late compilation.
2226         Instead create a stub DIE without a type if we have a
2227         context DIE present.
2229 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
2231         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
2233 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
2235         PR tree-optimization/48052
2236         * cfgloop.h (struct control_iv): New.
2237         (struct loop): New field control_ivs.
2238         * tree-ssa-loop-niter.c : Include "stor-layout.h".
2239         (number_of_iterations_lt): Set no_overflow information.
2240         (number_of_iterations_exit): Init control iv in niter struct.
2241         (record_control_iv): New.
2242         (estimate_numbers_of_iterations_loop): Call record_control_iv.
2243         (loop_exits_before_overflow): New.  Interface factored out of
2244         scev_probably_wraps_p.
2245         (scev_probably_wraps_p): Factor loop niter related code into
2246         loop_exits_before_overflow.
2247         (free_numbers_of_iterations_estimates_loop): Free control ivs.
2248         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
2250 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
2252         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
2253         the target doesn't belong to the current function.
2255 2015-06-02  Marek Polacek  <polacek@redhat.com>
2257         PR middle-end/66345
2258         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
2259         get_maxval_strlen does not produce an INTEGER_CST.
2261 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
2263         * config/arc/constraints.md: Use lower-case names in match_code.
2264         * config/mmix/constraints.md: Likewise.
2266 2015-06-02  Richard Biener  <rguenther@suse.de>
2268         PR tree-optimization/65961
2269         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
2270         check and clarify dump message.
2271         (vect_build_slp_tree): If all children are built up from scalars
2272         build up the parent from scalars instead.
2273         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
2275 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2277         PR other/65366
2278         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
2279         instead of print ... .
2281 2015-06-02  Alan Modra  <amodra@gmail.com>
2283         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
2284         2014-08-11 change.
2286 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
2288         PR tree-optimization/52563
2289         PR tree-optimization/62173
2290         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
2291         (alloc_iv, set_iv): New parameter.
2292         (determine_biv_step): Delete.
2293         (find_bivs): Inline original determine_biv_step.  Pass new
2294         argument to set_iv.
2295         (idx_find_step): Use no_overflow information for conversion.
2296         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
2297         resolve_mixers handle folded_casts.
2298         (instantiate_scev_name): Change bool parameter to bool pointer.
2299         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
2300         (instantiate_array_ref, instantiate_scev_not): Ditto.
2301         (instantiate_scev_3, instantiate_scev_2): Ditto.
2302         (instantiate_scev_1, instantiate_scev_r): Ditto.
2303         (instantiate_scev_convert, ): Change parameter.  Pass argument
2304         to chrec_convert_aggressive.
2305         (instantiate_scev): Change argument.
2306         (resolve_mixers): New parameter and set it.
2307         (scev_const_prop): New argument.
2308         * tree-scalar-evolution.h (resolve_mixers): New parameter.
2309         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
2310         of chrec_conert_1.
2311         (chrec_convert): New parameter.  Move definition below.
2312         (chrec_convert_aggressive): New parameter and set it.  Call
2313         convert_affine_scev.
2314         * tree-chrec.h (chrec_convert): New parameter.
2315         (chrec_convert_aggressive): Ditto.
2317 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
2319         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
2320         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
2321         the LHS of a no-return call if its type has variable size.
2322         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
2323         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
2325 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
2327         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
2328         * config.in: Regenerate.
2330 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
2332         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
2333         consecutive accesses within outer-loop with force_vectorize
2334         for references with zero step in inner-loop.
2336 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
2338         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
2339         rather than from gcc/build directory.
2341 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
2343         PR target/65697
2344         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
2345         for __sync memory models, emit initial loads and final barriers as
2346         appropriate.
2348 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
2350         PR target/65697
2351         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
2352         (aarch64_split_atomic_op): Check for __sync memory models, emit
2353         appropriate initial loads and final barriers.
2355 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
2357         * Makefile.in: Fix gcov dependencies that should
2358         not point to a build folder.
2360 2015-06-01  Richard Biener  <rguenther@suse.de>
2362         Revert
2363         2015-05-29  Richard Biener  <rguenther@suse.de>
2365         PR tree-optimization/66314
2366         * tree-ssa-threadupdate.c (create_block_for_threading): Add
2367         parameter that says which loop the new block belongs to.
2368         (ssa_create_duplicates): Blocks duplicated for the threaded
2369         path belong to the loop of the thread destination.
2371 2015-06-01  Martin Liska  <mliska@suse.cz>
2373         * sched-deps.c: Include pool-alloc.h before
2374         cselib.h header file is included.
2376 2015-06-01  Richard Biener  <rguenther@suse.de>
2378         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
2379         functions.
2381 2015-06-01  Martin Liska  <mliska@suse.cz>
2383         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
2384         a function local variable.
2386 2015-06-01  Martin Liska  <mliska@suse.cz>
2388         * alloc-pool.c (create_alloc_pool): Remove.
2389         (empty_alloc_pool): Likewise.
2390         (free_alloc_pool): Likewise.
2391         (free_alloc_pool_if_empty): Likewise.
2392         (pool_alloc): Likewise.
2393         (pool_free): Likewise.
2394         * alloc-pool.h: Remove old declarations.
2396 2015-06-01  Martin Liska  <mliska@suse.cz>
2398         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
2399         (ira_create_object): Likewise.
2400         (ira_create_allocno): Likewise.
2401         (ira_create_live_range): Likewise.
2402         (copy_live_range): Likewise.
2403         (ira_finish_live_range): Likewise.
2404         (ira_free_allocno_costs): Likewise.
2405         (finish_allocno): Likewise.
2406         (finish_allocnos): Likewise.
2407         (initiate_prefs): Likewise.
2408         (ira_create_pref): Likewise.
2409         (finish_pref): Likewise.
2410         (finish_prefs): Likewise.
2411         (initiate_copies): Likewise.
2412         (ira_create_copy): Likewise.
2413         (finish_copy): Likewise.
2414         (finish_copies): Likewise.
2415         (finish_prefs): Likewise.
2417 2015-06-01  Martin Liska  <mliska@suse.cz>
2419         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
2420         (allocate_and_init_ipcp_value): Likewise.
2421         (ipcp_lattice::add_value): Likewise.
2422         (merge_agg_lats_step): Likewise.
2423         (ipcp_driver): Likewise.
2424         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
2425         (ipa_free_all_structures_after_iinln): Likewise.
2426         * ipa-prop.h: Likewise.
2428 2015-06-01  Martin Liska  <mliska@suse.cz>
2430         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
2431         pool allocator.
2432         (set_hint_predicate): Likewise.
2433         (inline_summary_alloc): Likewise.
2434         (reset_inline_edge_summary): Likewise.
2435         (reset_inline_summary): Likewise.
2436         (set_cond_stmt_execution_predicate): Likewise.
2437         (set_switch_stmt_execution_predicate): Likewise.
2438         (compute_bb_predicates): Likewise.
2439         (estimate_function_body_sizes): Likewise.
2440         (inline_free_summary): Likewise.
2442 2015-06-01  Martin Liska  <mliska@suse.cz>
2444         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
2445         (ipa_edge_duplication_hook): Likewise.
2446         (ipa_free_all_structures_after_ipa_cp): Likewise.
2447         (ipa_free_all_structures_after_iinln): Likewise.
2449 2015-06-01  Martin Liska  <mliska@suse.cz>
2451         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
2452         (ipa_profile_generate_summary): Likewise.
2453         (ipa_profile_read_summary): Likewise.
2454         (ipa_profile): Likewise.
2456 2015-06-01  Martin Liska  <mliska@suse.cz>
2458         * tree-ssa-structalias.c (new_var_info): Use new type-based
2459         pool allocator.
2460         (new_constraint): Likewise.
2461         (init_alias_vars): Likewise.
2462         (delete_points_to_sets): Likewise.
2464 2015-06-01  Martin Liska  <mliska@suse.cz>
2466         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
2467         (free_strinfo): Likewise.
2468         (pass_strlen::execute): Likewise.
2470 2015-06-01  Martin Liska  <mliska@suse.cz>
2472         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
2473         pool allocator.
2474         (vn_reference_insert_pieces): Likewise.
2475         (vn_phi_insert): Likewise.
2476         (visit_reference_op_call): Likewise.
2477         (copy_phi): Likewise.
2478         (copy_reference): Likewise.
2479         (process_scc): Likewise.
2480         (allocate_vn_table): Likewise.
2481         (free_vn_table): Likewise.
2483 2015-06-01  Martin Liska  <mliska@suse.cz>
2485         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
2486         pool allocator.
2487         (add_repeat_to_ops_vec): Likewise.
2488         (get_ops): Likewise.
2489         (maybe_optimize_range_tests): Likewise.
2490         (init_reassoc): Likewise.
2491         (fini_reassoc): Likewise.
2493 2015-06-01  Martin Liska  <mliska@suse.cz>
2495         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
2496         pool allocator.
2497         (bitmap_set_new): Likewise.
2498         (get_or_alloc_expr_for_constant): Likewise.
2499         (get_or_alloc_expr_for): Likewise.
2500         (phi_translate_1): Likewise.
2501         (compute_avail): Likewise.
2502         (init_pre): Likewise.
2503         (fini_pre): Likewise.
2505 2015-06-01  Martin Liska  <mliska@suse.cz>
2507         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
2508         (delete_dep_node): Likewise.
2509         (create_deps_list): Likewise.
2510         (free_deps_list): Likewise.
2511         (sched_deps_init): Likewise.
2512         (sched_deps_finish): Likewise.
2514 2015-06-01  Martin Liska  <mliska@suse.cz>
2516         * regcprop.c (free_debug_insn_changes): Use new type-based
2517         pool allocator.
2518         (replace_oldest_value_reg): Likewise.
2519         (pass_cprop_hardreg::execute): Likewise.
2521 2015-06-01  Martin Liska  <mliska@suse.cz>
2523         * ira-build.c (initiate_cost_vectors): Use new type-based
2524         pool allocator.
2525         (ira_allocate_cost_vector): Likewise.
2526         (ira_free_cost_vector): Likewise.
2527         (finish_cost_vectors): Likewise.
2529 2015-06-01  Martin Liska  <mliska@suse.cz>
2531         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
2532         pool allocator.
2533         (free_sched_pools): Likewise.
2534         * sel-sched-ir.h (_list_alloc): Likewise.
2535         (_list_remove): Likewise.
2537 2015-06-01  Martin Liska  <mliska@suse.cz>
2539         * stmt.c (add_case_node): Use new type-based pool allocator.
2540         (expand_case): Likewise.
2541         (expand_sjlj_dispatch_table): Likewise.
2543 2015-06-01  Martin Liska  <mliska@suse.cz>
2545         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
2546         (free_bb): Likewise.
2547         (pass_cse_reciprocals::execute): Likewise.
2549 2015-06-01  Martin Liska  <mliska@suse.cz>
2551         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
2552         (sra_deinitialize) Likewise.
2553         (create_access_1) Likewise.
2554         (build_accesses_from_assign) Likewise.
2555         (create_artificial_child_access) Likewise.
2557 2015-06-01  Martin Liska  <mliska@suse.cz>
2559         * dse.c (get_group_info):Use new type-based pool allocator.
2560         (dse_step0) Likewise.
2561         (free_store_info) Likewise.
2562         (delete_dead_store_insn) Likewise.
2563         (free_read_records) Likewise.
2564         (record_store) Likewise.
2565         (replace_read) Likewise.
2566         (check_mem_read_rtx) Likewise.
2567         (scan_insn) Likewise.
2568         (dse_step1) Likewise.
2569         (dse_step7) Likewise.
2571 2015-06-01  Martin Liska  <mliska@suse.cz>
2573         * df-scan.c (struct df_scan_problem_data):Use new type-based
2574         pool allocator.
2575         (df_scan_free_internal) Likewise.
2576         (df_scan_alloc) Likewise.
2577         (df_grow_reg_info) Likewise.
2578         (df_free_ref) Likewise.
2579         (df_insn_create_insn_record) Likewise.
2580         (df_mw_hardreg_chain_delete) Likewise.
2581         (df_insn_info_delete) Likewise.
2582         (df_free_collection_rec) Likewise.
2583         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
2584         (df_sort_and_compress_mws) Likewise.
2585         (df_ref_create_structure) Likewise.
2586         (df_ref_record) Likewise.
2588 2015-06-01  Martin Liska  <mliska@suse.cz>
2590         * df-problems.c (df_chain_create):Use new type-based pool allocator.
2591         (df_chain_unlink_1) Likewise.
2592         (df_chain_unlink) Likewise.
2593         (df_chain_remove_problem) Likewise.
2594         (df_chain_alloc) Likewise.
2595         (df_chain_free) Likewise.
2596         * df.h (struct dataflow) Likewise.
2598 2015-06-01  Martin Liska  <mliska@suse.cz>
2600         * cselib.c (new_elt_list):Use new type-based pool allocator.
2601         (new_elt_loc_list) Likewise.
2602         (unchain_one_elt_list) Likewise.
2603         (unchain_one_elt_loc_list) Likewise.
2604         (unchain_one_value) Likewise.
2605         (new_cselib_val) Likewise.
2606         (cselib_init) Likewise.
2607         (cselib_finish) Likewise.
2609 2015-06-01  Martin Liska  <mliska@suse.cz>
2611         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
2612         (sh_reorg) Likewise.
2614 2015-06-01  Martin Liska  <mliska@suse.cz>
2616         * cfg.c (initialize_original_copy_tables):Use new type-based
2617         pool allocator.
2618         (free_original_copy_tables) Likewise.
2619         (copy_original_table_clear) Likewise.
2620         (copy_original_table_set) Likewise.
2622 2015-06-01  Martin Liska  <mliska@suse.cz>
2624         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
2625         pool allocator.
2626         (asan_mem_ref_new) Likewise.
2627         (free_mem_ref_resources) Likewise.
2629 2015-06-01  Martin Liska  <mliska@suse.cz>
2631         * var-tracking.c (variable_htab_free):Use new type-based
2632         pool allocator.
2633         (attrs_list_clear) Likewise.
2634         (attrs_list_insert) Likewise.
2635         (attrs_list_copy) Likewise.
2636         (shared_hash_unshare) Likewise.
2637         (shared_hash_destroy) Likewise.
2638         (unshare_variable) Likewise.
2639         (var_reg_delete_and_set) Likewise.
2640         (var_reg_delete) Likewise.
2641         (var_regno_delete) Likewise.
2642         (drop_overlapping_mem_locs) Likewise.
2643         (variable_union) Likewise.
2644         (insert_into_intersection) Likewise.
2645         (canonicalize_values_star) Likewise.
2646         (variable_merge_over_cur) Likewise.
2647         (dataflow_set_merge) Likewise.
2648         (remove_duplicate_values) Likewise.
2649         (variable_post_merge_new_vals) Likewise.
2650         (dataflow_set_preserve_mem_locs) Likewise.
2651         (dataflow_set_remove_mem_locs) Likewise.
2652         (variable_from_dropped) Likewise.
2653         (variable_was_changed) Likewise.
2654         (set_slot_part) Likewise.
2655         (clobber_slot_part) Likewise.
2656         (delete_slot_part) Likewise.
2657         (loc_exp_insert_dep) Likewise.
2658         (notify_dependents_of_changed_value) Likewise.
2659         (emit_notes_for_differences_1) Likewise.
2660         (vt_emit_notes) Likewise.
2661         (vt_initialize) Likewise.
2662         (vt_finalize) Likewise.
2664 2015-06-01  Martin Liska  <mliska@suse.cz>
2666         * ira-color.c (init_update_cost_records):Use new type-based
2667         pool allocator.
2668         (get_update_cost_record) Likewise.
2669         (free_update_cost_record_list) Likewise.
2670         (finish_update_cost_records) Likewise.
2671         (initiate_cost_update) Likewise.
2673 2015-06-01  Martin Liska  <mliska@suse.cz>
2675         * lra.c (init_insn_regs): Use new type-based pool allocator.
2676         (new_insn_reg) Likewise.
2677         (free_insn_reg) Likewise.
2678         (free_insn_regs) Likewise.
2679         (finish_insn_regs) Likewise.
2680         (init_insn_recog_data) Likewise.
2681         (init_reg_info) Likewise.
2682         (finish_reg_info) Likewise.
2683         (lra_free_copies) Likewise.
2684         (lra_create_copy) Likewise.
2685         (invalidate_insn_data_regno_info) Likewise.
2687 2015-06-01  Martin Liska  <mliska@suse.cz>
2689         * lra-lives.c (free_live_range): Use new type-based pool allocator.
2690         (free_live_range_list) Likewise.
2691         (create_live_range) Likewise.
2692         (copy_live_range) Likewise.
2693         (lra_merge_live_ranges) Likewise.
2694         (remove_some_program_points_and_update_live_ranges) Likewise.
2695         (lra_live_ranges_init) Likewise.
2696         (lra_live_ranges_finish) Likewise.
2698 2015-06-01  Martin Liska  <mliska@suse.cz>
2700         * et-forest.c (et_new_occ): Use new type-based pool allocator.
2701         (et_new_tree): Likewise.
2702         (et_free_tree): Likewise.
2703         (et_free_tree_force): Likewise.
2704         (et_free_pools): Likewise.
2705         (et_split): Likewise.
2707 2015-06-01  Martin Liska  <mliska@suse.cz>
2709         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
2710         to header file.
2711         * alloc-pool.h (pool_allocator::pool_allocator): New function.
2712         (pool_allocator::release): Likewise.
2713         (inline pool_allocator::release_if_empty): Likewise.
2714         (inline pool_allocator::~pool_allocator): Likewise.
2715         (pool_allocator::allocate): Likewise.
2716         (pool_allocator::remove): Likewise.
2718 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
2720         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
2721         in comment.
2723 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
2725         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
2726         to fusible_ops.
2727         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
2728         (arm_macro_fusion_p): Likewise.
2729         (arm_macro_fusion_pair_p): Likewise.
2731 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
2733         * config/aarch64/aarch64-protos.h (tune_params): Rename
2734         fuseable_ops to fusible_ops.
2735         * config/aarch64/aarch64.c (generic_tunings): Rename
2736         fuseable_ops to fusible_ops.
2737         (cortexa53_tunings): Likewise.
2738         (cortexa57_tunings): Likewise.
2739         (thunderx_tunings): Likewise.
2740         (xgene1_tunings): Likewise.
2741         (aarch64_macro_fusion_p): Likewise.
2742         (aarch64_macro_fusion_pair_p): Likewise.
2744 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2746         * config/s390/driver-native.c: New file.
2747         * config/s390/x-native: New file.
2748         * config.host: Add new files for s390.
2749         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
2750         and -march=native
2751         * config.gcc: Likewise.
2752         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
2753         * config/s390/s390-opts.h (enum processor_type): Ditto.
2754         * config/s390/s390.c (s390_option_override): Catch unhandled
2755         PROCESSOR_NATIVE
2757 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
2759         PR target/65527
2760         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
2761         redirection for instrumented calls.
2762         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
2763         (append_compiler_options): Append -fcheck-pointer-bounds.
2764         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
2765         (chkp_redirect_edge): New.
2766         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
2767         (chkp_redirect_edge): New.
2769 2015-06-01  Richard Biener  <rguenther@suse.de>
2771         PR tree-optimization/66280
2772         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
2773         def-use walking.
2775 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2777         * config/aarch64/aarch64.md
2778         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
2779         logic_shift_imm.
2781 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
2783         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
2784         Remove obsolete kludge.
2786 2015-06-01  Richard Biener  <rguenther@suse.de>
2788         * tree-ssa-reassoc.c (get_rank): Simplify.
2790 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
2792         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
2793         * configure: Regenerated.
2795 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
2797         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
2798         issue (add space between string literal and macro).
2799         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
2801 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2803         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
2804         implict or explicit -fPIE or -fpie.
2806 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
2808         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
2810 2015-05-28  DJ Delorie  <dj@redhat.com>
2812         * expmed.c (extract_bit_field_1): Avoid clobbering a
2813         yet-to-be-used base/index register.
2815 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
2817         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
2818         (alias_stats): Add num_universal.
2819         (alias_set_subset_of): Special case pointers; be ready for NULL
2820         children.
2821         (alias_sets_conflict_p): Special case pointers; be ready for NULL
2822         children.
2823         (init_alias_set_entry): Break out from ...
2824         (record_alias_subset): ... here; propagate new fields;
2825         allocate children only when really needed.
2826         (get_alias_set): Do less generous pointer globbing.
2827         (dump_alias_stats_in_alias_c): Update statistics.
2829 2015-05-30  Alan Modra  <amodra@gmail.com>
2831         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
2832         correct block for use of r12.
2833         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
2835 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2837         PR target/66215
2838         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
2839         with -mhotpatch=.
2841 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
2843         PR tree-optimization/66142
2844         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
2845         virtual phis that feed themselves.
2847 2015-05-29  Richard Biener  <rguenther@suse.de>
2849         PR tree-optimization/66314
2850         * tree-ssa-threadupdate.c (create_block_for_threading): Add
2851         parameter that says which loop the new block belongs to.
2852         (ssa_create_duplicates): Blocks duplicated for the threaded
2853         path belong to the loop of the thread destination.
2855 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2857         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
2858         to cleanup-saved-temps.
2859         * doc/sourcebuild.texi (Clean up generated test files): Expand
2860         introduction.
2861         (dg-keep-saved-temps): Document new proc.
2862         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
2863         cleanup-saved-temps): Remove.
2865 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
2867         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
2868         gcc_AC_CHECK_DECLS.
2869         * configure: Regenerate.
2871 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
2873         * config/nios2/linux.h (CPP_SPEC): Define.
2875 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
2877         * config/microblaze/linux.h (CPP_SPEC): Define.
2879 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
2881         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
2882         -pthread is specified.
2884 2015-05-28  Richard Biener  <rguenther@suse.de>
2886         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
2887         (vect_fixup_scalar_cycles_with_patterns): Likewise.
2888         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
2889         after pattern recog.
2890         (vect_create_epilog_for_reduction): Properly handle reductions
2891         with patterns.
2892         (vectorizable_reduction): Likewise.
2893         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
2894         reduction chains.
2895         (vect_get_constant_vectors): Create the correct number of
2896         initial values for reductions.
2897         (vect_schedule_slp_instance): Handle reduction chains that are
2898         type changing properly.
2899         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
2901 2015-05-28  Richard Biener  <rguenther@suse.de>
2903         PR tree-optimization/66142
2904         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
2905         values better in memcpy destination handling.  Handle non-aliasing
2906         we discover here.
2908 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
2910         PR target/63810
2911         * config/darwin-c.c (version_components): New global enum.
2912         (parse_version, version_as_legacy_macro)
2913         (version_as_modern_macro, macosx_version_as_macro): New functions.
2914         (version_as_macro): Remove.
2915         (darwin_cpp_builtins): Use new function.
2917 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
2919         * builtins.c (expand_builtin_acc_on_device): Mark parameters
2920         with ATTRIBUTE_UNUSED.
2922 2015-05-28  Julian Brown  <julian@codesourcery.com>
2924         PR libgomp/65742
2926         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
2927         sequence for !ACCEL_COMPILER.
2929 2015-05-28  Nick Clifton  <nickc@redhat.com>
2931         * config/rx/rx.c (push_regs): New function.  Extracts code from...
2932         (rx_expand_prologue): ... here.  Use push_regs to push even small
2933         spans of registers.
2934         (pop_regs): New function.
2935         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
2936         registers.
2938 2015-05-28  Richard Biener  <rguenther@suse.de>
2940         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
2941         member.
2942         (SLP_INSTANCE_BODY_COST_VEC): Remove.
2943         (vect_update_slp_costs_according_to_vf): Likewise.
2944         (vect_slp_analyze_operations): Update prototype.
2945         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
2946         vect_update_slp_costs_according_to_vf, adjust.
2947         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
2948         (vect_analyze_slp_cost_1): Likewise.
2949         (vect_analyze_slp_cost): Likewise.  Properly deal with
2950         widening reduction ops.  Commit body costs.
2951         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
2952         cost for loops from here.
2953         (vect_slp_analyze_operations): But do it from here when
2954         the vectorization factor is known and stmts are analyzed.
2955         (vect_bb_vectorization_profitable_p): Simplify.
2956         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
2957         (vect_update_slp_costs_according_to_vf): Remove.
2959 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
2960             H.J. Lu  <hongjiu.lu@intel.com>
2962         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
2963         (BUILD_CFLAGS): Likewise.
2964         (BUILD_CXXFLAGS): Likewise.
2965         (LINKER): Add @NO_PIE_FLAG@.
2966         (BUILD_LDFLAGS): Likewise.
2967         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
2968         --enable-default-pie.
2969         * common.opt (fPIE): Initialize to -1.
2970         (fpie): Likewise.
2971         (no-pie): New option.
2972         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
2973         * configure.ac: Add --enable-default-pie.
2974         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
2975         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
2976         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
2977         * gcc.c (NO_PIE_SPEC): New.
2978         (PIE_SPEC): Likewise.
2979         (NO_FPIE1_SPEC): Likewise.
2980         (FPIE1_SPEC): Likewise.
2981         (NO_FPIE2_SPEC): Likewise.
2982         (FPIE2_SPEC): Likewise.
2983         (NO_FPIE2_SPEC): Likewise.
2984         (FPIE_SPEC): Likewise.
2985         (NO_FPIE_SPEC): Likewise.
2986         (NO_FPIC1_SPEC): Likewise.
2987         (FPIC1_SPEC): Likewise.
2988         (NO_FPIC2_SPEC): Likewise.
2989         (FPIC2_SPEC): Likewise.
2990         (NO_FPIC2_SPEC): Likewise.
2991         (FPIC_SPEC): Likewise.
2992         (NO_FPIC_SPEC): Likewise.
2993         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
2994         (FPIE1_OR_FPIC1_SPEC): Likewise.
2995         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
2996         (FPIE2_OR_FPIC2_SPEC): Likewise.
2997         (NO_FPIE_AND_FPIC_SPEC): Likewise.
2998         (FPIE_OR_FPIC_SPEC): Likewise.
2999         (LD_PIE_SPEC): Likewise.
3000         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
3001         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
3002         * config/darwin.h (PIE_SPEC): Renamed to ...
3003         (DARWIN_PIE_SPEC): This.
3004         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
3005         * config/darwin9.h (PIE_SPEC): Renamed to ...
3006         (DARWIN_PIE_SPEC): This.
3007         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
3008         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
3009         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
3010         FPIE2_OR_FPIC2_SPEC.
3011         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
3012         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
3013         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
3014         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
3015         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
3016         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
3017         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
3018         * config/m32r/m32r.h (ASM_SPEC): Likewise.
3019         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
3020         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
3021         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
3022         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
3023         * config/sparc/linux.h (ASM_SPEC): Likewise.
3024         * config/sparc/linux64.h (ASM_SPEC): Likewise.
3025         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
3026         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
3027         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
3028         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
3029         * config/sparc/sparc.h (ASM_SPEC): Likewise.
3030         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
3031         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
3032         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
3033         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
3034         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
3035         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
3036         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
3037         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
3038         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
3039         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
3040         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
3041         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
3042         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
3043         * config/vax/linux.h (ASM_SPEC): Likewise.
3044         * doc/install.texi: Document --enable-default-pie.
3045         * doc/invoke.texi: Document -no-pie.
3046         * config.in: Regenerated.
3047         * configure: Likewise.
3049 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3051         PR rtl-optimization/66168
3052         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
3053         can_move_invariant_reg.
3055 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
3057         PR target/66148
3058         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
3059         REG_EQUAL note when doing insert.
3061         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
3062         instead of "%d" for 'o' operand.
3064 2015-05-27  Nathan Sidwell  <nathan@acm.org>
3066         PR c++/66270
3067         * tree.c (build_pointer_type_for_mode): Canonical type does not
3068         inherit can_alias_all.
3069         (build_reference_type_for_mode): Likewise.
3071 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
3073         * expr.h (array_at_struct_end_p): Move to...
3074         (array_ref_element_size): Likewise.
3075         (component_ref_field_offset): Likewise.
3076         * tree.h (array_ref_element_size): ...here.
3077         (array_at_struct_end_p): Likewise.
3078         (component_ref_field_offset): Likewise.
3079         * expr.c (array_ref_element_size): Move to...
3080         (array_ref_low_bound): Likewise.
3081         (array_at_struct_end_p): Likewise.
3082         (array_ref_up_bound): Likewise.
3083         (component_ref_field_offset): Likewise.
3084         * tree.c (array_ref_element_size): ...here.
3085         (array_ref_low_bound): Likewise.
3086         (array_ref_up_bound): Likewise.
3087         (array_at_struct_end_p): Likewise.
3088         (component_ref_field_offset): Likewise.
3090 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
3091             Szabolcs Nagy  <szabolcs.nagy@arm.com>
3093         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
3095 2015-05-27  Jason Merrill  <jason@redhat.com>
3097         PR bootstrap/66304
3098         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
3099         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
3100         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
3102 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
3104         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
3105         is true.
3107         * statistics.c (statistics_fini_pass): Print pass name.
3109 2015-05-27  Richard Biener  <rguenther@suse.de>
3111         PR tree-optimization/66272
3112         Revert parts of
3113         2014-08-15  Richard Biener  <rguenther@suse.de>
3115         PR tree-optimization/62031
3116         * tree-data-ref.c (dr_analyze_indices): Do not set
3117         DR_UNCONSTRAINED_BASE.
3118         (dr_may_alias_p): All indirect accesses have to go the
3119         formerly DR_UNCONSTRAINED_BASE path.
3120         * tree-data-ref.h (struct indices): Remove
3121         unconstrained_base member.
3122         (DR_UNCONSTRAINED_BASE): Remove.
3124 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
3126         * dwarf2out.c: Remove block_map.
3127         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
3128         (gen_lexical_block_die): Same.
3129         (dwarf2out_function_decl): Remove block_map use.
3130         (dwarf2out_c_finalize): Same.
3131         * tree-core.h (struct tree_block): Add die field.
3132         * tree.h (BLOCK_DIE): New.
3134 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3136         PR target/65358
3137         * expr.c (memory_load_overlap): New function.
3138         (emit_push_insn): When pushing partial args to the stack would
3139         clobber the register part load the overlapping part into a pseudo
3140         and put it into the hard reg after pushing.  Change return type
3141         to bool.  Add bool argument.
3142         * expr.h (emit_push_insn): Change return type to bool.
3143         Add bool argument.
3144         * calls.c (expand_call): Cancel sibcall optimization when encountering
3145         partial argument on targets with ARGS_GROW_DOWNWARD and
3146         !STACK_GROWS_DOWNWARD.
3147         (emit_library_call_value_1): Update callsite of emit_push_insn.
3148         (store_one_arg): Likewise.
3150 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
3152         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
3154 2015-05-27  Martin Liska  <mliska@suse.cz>
3156         * Makefile.in: Add additional dependencies related to memory report
3157         enhancement.
3158         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
3159         * bitmap.c (struct bitmap_descriptor_d): Remove.
3160         (struct loc): Likewise.
3161         (struct bitmap_desc_hasher): Likewise.
3162         (bitmap_desc_hasher::hash): Likewise.
3163         (bitmap_desc_hasher::equal): Likewise.
3164         (get_bitmap_descriptor): Likewise.
3165         (bitmap_register): User new memory descriptor API.
3166         (register_overhead): Likewise.
3167         (bitmap_find_bit): Register nsearches and search_iter statistics.
3168         (struct bitmap_output_info): Remove.
3169         (print_statistics): Likewise.
3170         (dump_bitmap_statistics): Use new memory descriptor.
3171         * bitmap.h (struct bitmap_usage): New class.
3172         * genmatch.c: Extend header file inclusion.
3173         * genpreds.c: Likewise.
3174         * ggc-common.c (struct ggc_usage): New class.
3175         (struct ggc_loc_desc_hasher): Remove.
3176         (ggc_loc_desc_hasher::hash): Likewise.
3177         (ggc_loc_desc_hasher::equal): Likewise.
3178         (struct ggc_ptr_hash_entry): Likewise.
3179         (struct ptr_hash_hasher): Likewise.
3180         (ptr_hash_hasher::hash): Likewise.
3181         (ptr_hash_hasher::equal): Likewise.
3182         (make_loc_descriptor): Likewise.
3183         (ggc_prune_ptr): Likewise.
3184         (dump_ggc_loc_statistics): Use new memory descriptor.
3185         (ggc_record_overhead): Likewise.
3186         (ggc_free_overhead): Likewise.
3187         (final_cmp_statistic): Remove.
3188         (cmp_statistic): Likewise.
3189         (ggc_add_statistics): Liekwise.
3190         (ggc_prune_overhead_list): Likewise.
3191         * hash-map-traits.h: New file.
3192         * hash-map.h (struct default_hashmap_traits): Move the traits to a
3193         separate header file.
3194         * hash-set.h: Pass memory statistics info to ctor.
3195         * hash-table.c (void dump_hash_table_loc_statistics): New function.
3196         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
3197         (hash_table::~hash_table): Register memory release operation.
3198         (hash_table::alloc_entries): Handle memory allocation operation.
3199         (hash_table::expand): Likewise.
3200         * inchash.c (iterative_hash_hashval_t): Move implementation to header
3201         file.
3202         (iterative_hash_host_wide_int): Likewise.
3203         * inchash.h (class hash): Likewise.
3204         * mem-stats-traits.h: New file.
3205         * mem-stats.h: New file.
3206         (mem_location): Add new class.
3207         (mem_usage): Likewise.
3208         (mem_alloc_description): Likewise.
3209         * sese.c: Add new header file inclusision.
3210         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
3211         and hash_set.
3212         * tree-sra.c: Add new header file inclusision.
3213         * vec.c (struct vec_descriptor): Remove.
3214         (hash_descriptor): Likewise.
3215         (struct vec_usage): Likewise.
3216         (struct ptr_hash_entry): Likewise.
3217         (hash_ptr): Likewise.
3218         (eq_ptr): Likewise.
3219         (vec_prefix::register_overhead): Use new memory descriptor API.
3220         (vec_prefix::release_overhead): Likewise.
3221         (add_statistics): Remove.
3222         (dump_vec_loc_statistics): Use new memory descriptor API.
3223         * vec.h (struct vec_prefix): Likewise.
3224         (va_heap::reserve): Likewise.
3225         (va_heap::release): Likewise.
3226         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
3228 2015-05-27  Richard Biener  <rguenther@suse.de>
3230         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
3231         earlier and remove ??? comment.
3232         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
3233         and got called from loop analysis bail out.  Always pass the SLP
3234         node to the vectorizable_* functions.
3235         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
3236         the premature SLP check here.
3237         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
3238         detected SLP stmts.
3239         (vect_detect_hybrid_slp_1): Likewise.
3241 2015-05-26  Jeff Law  <law@redhat.com>
3243         * combine.c (find_split_point): Verify that the shift count is a
3244         constant when choosing (plus (ashift ...)) as a split point.
3246         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
3247         No functional changes.
3249 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
3251         * ipa-polymorphic-call.c
3252         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
3253         case when call target is already known.
3255 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
3257         PR target/65979
3258         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
3259         take into account the case that operands[1] and operands[2]
3260         are the same register.
3262 2015-05-26  Michael Matz  <matz@suse.de>
3264         PR middle-end/66251
3266         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
3267         stores.
3268         (vect_create_vectorized_demotion_stmts): Always set
3269         STMT_VINFO_VEC_STMT, also with SLP.
3270         (vectorizable_store): Handle strided group stores.
3272 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3274         PR target/66049
3275         * config/aarch64/aarch64.md
3276         (*adds_shift_imm_<mode>):  New pattern.
3277         (*subs_shift_imm_<mode>):  Likewise.
3278         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
3279         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
3280         (*add_uxt<mode>_shift2): Likewise.
3281         (*add_uxtsi_shift2_uxtw): Likewise.
3282         (*sub_uxt<mode>_shift2): Likewise.
3283         (*sub_uxtsi_shift2_uxtw): Likewise.
3285 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
3287         * config/rs6000/constraints.md (Y, U): Use match_test.
3289 2015-05-26  Christian Bruel  <christian.bruel@st.com>
3291         PR target/52144
3292         * config/arm/arm.c (arm_option_check_internal)
3293         (arm_option_params_internal): Check opts->target_flags to set macros.
3294         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
3295         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
3296         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
3297         (builtin_define): Replaced with def_or_undef_macro.
3298         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
3299         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
3300         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
3301         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
3302         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
3303         (TARGET_ARM_FEATURE_LDREX_P)
3304         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
3305         * config/arm/arm-c.c (def_or_undef_macro): New function.
3306         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
3308 2015-05-26  Christian Bruel  <christian.bruel@st.com>
3310         * c-common.h (builtin_define_with_int_value)
3311         (builtin_define_type_sizeof): Declare.
3312         * c-cppbuiltin.c (builtin_define_with_int_value)
3313         (builtin_define_type_sizeof): Externalize.
3314         (builtin_define_std): Cleanup declaration.
3315         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
3316         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
3317         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
3318         (builtin_define, builtin_assert): New macros.
3320 2015-05-26  Richard Biener  <rguenther@suse.de>
3322         PR tree-optimization/66142
3323         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
3324         MEM_REFs for the same base address.
3326 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3328         PR ipa/66181
3329         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
3331 2015-05-26  Jason Merrill  <jason@redhat.com>
3333         * configure.ac: Set CXXFLAGS for ISL test.
3334         * configure: Regenerate.
3336         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
3337         strstr and basename.
3338         * configure: Regenerate.
3340 2015-05-26  Richard Biener  <rguenther@suse.de>
3342         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
3343         X % C -> X & (C - 1) for C being a power-of two to ...
3344         * match.pd: ... patterns.
3346 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
3348         * match.pd (swapped_tcc_comparison): New operator list.
3349         (-A CMP -B): New simplification.
3350         * fold-const.c (fold_comparison): Remove corresponding code.
3352 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
3354         * caller-save.c (init_caller_save): Base temporary register numbers
3355         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
3356         * cfgloopanal.c (init_set_costs): Likewise.
3357         * dojump.c (prefer_and_bit_test): Likewise.
3358         * expr.c (init_expr_target): Likewise.
3359         * ira.c (setup_prohibited_mode_move_regs): Likewise.
3360         * lower-subreg.c (init_lower_subreg): Likewise.
3361         * postreload.c (reload_cse_regs_1): Likewise.
3363 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
3365         * gensupport.h (compute_test_codes): Declare.
3366         * gensupport.c (compute_predicate_codes): Rename to...
3367         (compute_test_codes): ...this.  Generalize error message.
3368         (process_define_predicate): Update accordingly.
3369         * genpreds.c (compute_maybe_allows): Delete.
3370         (add_constraint): Use compute_test_codes to determine whether
3371         something can accept a SUBREG, REG or MEM.
3373 2015-05-26  Torvald Riegel  <triegel@redhat.com>
3375         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
3376         'memory model' to align with C++11; fix description of memory orders;
3377         fix a few typos.
3379 2015-05-26  Richard Biener  <rguenther@suse.de>
3381         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
3382         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
3383         detect whether we apply SLP.  Remove call to
3384         vect_update_slp_costs_according_to_vf.
3385         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
3386         vect_update_slp_costs_according_to_vf from here.  Dispatch
3387         to vect_slp_analyze_operations to analyze SLP stmts.
3388         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
3389         unused bb_vec_info parameter, adjust assert.
3390         (vect_slp_analyze_operations): Pass in the slp instance tree
3391         instead of bb_vec_info.
3392         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
3393         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
3395 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
3397         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
3398         Q_REGS.  Expand comment.
3399         (REG_CLASS_NAMES): Ditto.
3400         (REG_CLASS_CONTENTS): Ditto.
3402 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
3404         PR target/66274
3405         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
3406         when LEGACY_INT_REGNO_P is processed.
3408 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
3410         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
3412 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3414         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
3415         register if not marked dead/unused, before return.
3417 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
3419         PR lto/66180
3420         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
3421         is set; check for assembler name at LTO time.
3422         (type_in_anonymous_namespace): Remove hacks, check that all
3423         anonymous types are called "<anon>"
3424         (odr_type_p): Simplify; add check for "<anon>"
3425         (odr_subtypes_equivalent): Add odr_type_p check.
3426         * tree.c (need_assembler_name_p): Even anonymous namespace needs
3427         assembler name.
3429 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
3431         * ipa-utils.h (method_class_type): Remove.
3432         * cgraphunit.c (walk_polymorphic_call_targets): Use
3433         TYPE_METHOD_BASETYPE.
3434         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
3435         on main variants only.
3436         (method_class_type): Remove.
3437         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
3438         (build_type_inheritance_graph): Likewise.
3439         * ipa-icf.c (sem_function::equals_wpa): Likewise.
3440         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
3441         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
3443 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
3445         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
3446         is_typedef_decl, typedef_variant_p): Constify.
3447         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
3448         is_typedef_decl, typedef_variant_p): Constify.
3450 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3452         * defaults.h (gen_tablejump): New function.
3453         (HAVE_tablejump): Add default value.
3454         * expr.c: Adjust.
3455         * stmt.c: Likewise.
3457 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3459         * defaults.h (gen_store_multiple): New function.
3460         (HAVE_store_multiple): Add default value.
3461         * expr.c (move_block_from_reg): Adjust.
3463 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3465         * defaults.h (gen_load_multiple): New function.
3466         (HAVE_load_multiple): Add default value.
3467         * expr.c (move_block_to_reg): Adjust.
3469 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3471         * defaults.h (gen_mem_signal_fence): New function.
3472         (HAVE_mem_signal_fence): Add default value.
3473         * optabs.c: Adjust.
3475 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3477         * defaults.h (gen_memory_barrier): New function.
3478         (HAVE_memory_barrier): Add default value.
3479         * optabs.c: Adjust.
3481 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3483         * defaults.h (gen_mem_thread_fence): New function.
3484         (HAVE_mem_thread_fence): Add default definition.
3485         * optabs.c: Adjust.
3487 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3489         * combine.c (find_split_point): Check the value of HAVE_lo_sum
3490         instead of if it is defined.
3491         (combine_simplify_rtx): Likewise.
3492         * lra-constraints.c (process_address_1): Likewise.
3493         * config/darwin.c: Adjust.
3494         * genconfig.c (main): Always define HAVE_lo_sum.
3496 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3498         * genmatch.c (parser::parse_operation): Reject expanding
3499         operator-list inside 'for'.
3501 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3503         * genmatch.c (parser::parse_for): Reject iterator if used as
3504         operator-list.
3506 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3508         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
3509         after end of id-list.
3511 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
3513         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
3514         we do not try to compute canonical type for type that does not need
3515         alias set.
3516         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
3517         FUNCITON_TYPE.
3518         * tree.h (type_with_alias_set_p): New.
3520 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
3522         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
3523         function attributes.
3524         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
3526 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
3528         * Makefile.in (check_gcc_parallelize): Delete.
3529         (lang_checks_parallelized): Update comment.
3531 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
3533         PR rtl-optimization/66237
3534         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
3535         location of an "as_a" cast.
3537 2015-05-22  Jeff Law  <law@redhat.com>
3539         * config/pa/pa.md (non-canonical shift-add insns): Remove.
3540         (peepholes with non-canonical RTL sources): Remove.
3541         (peepholes for indexed stores of FP regs in integer modes): Match and
3542         generate canonical RTL.
3544 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
3546         PR tree-optimization/63387
3547         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
3548         ((x ord x) & (y ord y) -> (x ord y),
3549         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
3550         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
3551         vectors like scalars.
3553 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
3555         * convert.c (convert_to_integer, convert_to_vector): Include the
3556         types in the error message.
3558 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
3560         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
3561         simplifications.
3563 2015-05-22  Jeff Law  <law@redhat.com>
3565         * config/pa/pa.md (integer_indexed_store splitters): Use
3566         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
3567         insns -- adjusting the constant 2nd operand accordingly.
3569         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
3570         (plus (ashift X log2) Y) if it is a split point.
3572         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
3573         out of hppa_legitimize_address to handle both forms of a multiply
3574         by 2, 4 or 8.
3575         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
3576         Always generate the ASHIFT variant as the result is not directly
3577         used in a MEM.  Update comments and refactor slightly to improve
3578         readability.
3580 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3582         PR target/65491
3583         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
3584         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
3585         (aarch64_composite_type_p): Return false if given type and mode are
3586         for a short vector.
3588 2015-05-22  Richard Biener  <rguenther@suse.de>
3590         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
3591         member.
3592         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
3593         patterns when determining whether SLP is pure.
3594         (vect_is_slp_reduction): Remove check for pattern stmts.
3595         (vect_is_simple_reduction_1): Remove dead code.
3596         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
3597         (vect_get_and_check_slp_defs): Pass in the stmt number.
3598         Allow the first def in a reduction to be not a pattern stmt when
3599         the rest of the stmts def are patterns.
3600         (vect_build_slp_tree_1): Allow tcc_expression codes like
3601         SAD_EXPR and DOT_PROD_EXPR.
3602         (vect_build_slp_tree): Adjust.
3603         (vect_analyze_slp): Refactor and move BB vect error message ...
3604         (vect_slp_analyze_bb_1): ... here.
3606 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
3608         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
3609         for CSWTCH temporary.
3611 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3613         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
3614         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
3615         unknown unspecs.
3617 2015-05-22  Richard Biener  <rguenther@suse.de>
3619         PR tree-optimization/66251
3620         * tree-vect-stmts.c (vectorizable_conversion): Properly
3621         set STMT_VINFO_VEC_STMT even for the SLP case.
3623 2015-05-22  Marek Polacek  <polacek@redhat.com>
3625         * doc/extend.texi: Use @pxref instead of @xref.
3627 2015-05-22  hiraditya  <hiraditya@msn.com>
3629         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
3630         redundant if.
3632 2015-05-22  Richard Biener  <rguenther@suse.de>
3634         PR tree-optimization/65701
3635         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3636         Move peeling cost models into one place.  Peel for alignment
3637         for single loads only if an aligned load is cheaper than
3638         an unaligned load.
3640 2015-05-22  Marek Polacek  <polacek@redhat.com>
3642         PR c/47043
3643         * doc/extend.texi (Enumerator Attributes): New section.
3644         Document syntax of enumerator attributes.
3646 2015-05-22  Richard Biener  <rguenther@suse.de>
3648         * tree-vect-loop.c (get_reduction_op): New function.
3649         (vect_model_reduction_cost): Use it, add reduc_index parameter.
3650         Make ready for BB reductions.
3651         (vect_create_epilog_for_reduction): Use get_reduction_op.
3652         (vectorizable_reduction): Init reduc_index to a valid value.
3653         Adjust vect_model_reduction_cost call.
3654         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
3655         operand for reduction defaults.  Add SAD_EXPR support.
3656         Assert we have a neutral op for SLP reductions.
3657         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
3658         walking pattern stmt ops only recurse to SSA names.
3660 2015-05-22  Richard Biener  <rguenther@suse.de>
3662         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
3663         assert with guard, remove check on detected reduction.
3664         (vect_recog_sad_pattern): Likewise.
3665         (vect_recog_widen_sum_pattern): Likewise.
3667 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3669         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
3670         __always_inline__ attribute.
3671         (vaesdq_u8): Likewise.
3672         (vaesmcq_u8): Likewise.
3673         (vaesimcq_u8): Likewise.
3674         (vsha1cq_u32): Likewise.
3675         (vsha1mq_u32): Likewise.
3676         (vsha1pq_u32): Likewise.
3677         (vsha1h_u32): Likewise.
3678         (vsha1su0q_u32): Likewise.
3679         (vsha1su1q_u32): Likewise.
3680         (vsha256hq_u32): Likewise.
3681         (vsha256h2q_u32): Likewise.
3682         (vsha256su0q_u32): Likewise.
3683         (vsha256su1q_u32): Likewise.
3684         (vmull_p64): Likewise.
3685         (vmull_high_p64): Likewise.
3687 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3689         * final.c (final_scan_insn): Don't check HAVE_peephole with the
3690         preprocessor.
3691         * output.h: Likewise.
3692         * genconfig.c (main): Alwways define HAVE_peephole.
3693         * genpeep.c: Don't emit checks of HAVE_peephole.
3695 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3697         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
3698         check HAVE_conditional_move with the preprocessor.
3700 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3702         * genconfig.c (main): Always define HAVE_conditional_move.
3703         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
3704         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
3705         is defined.
3707 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3709         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
3710         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
3711         and FRAME_POINTER_REGNUM with the preprocessor.
3713 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3715         * defaults.h: Add default for STACK_PUSH_CODE.
3716         * expr.c: Don't redefine STACK_PUSH_CODE.
3717         * recog.c: Likewise.
3719 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3721         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
3722         sched-deps.c: Use if instead of preprocessor checks with
3723         STACK_GROWS_DOWNWARD.
3725 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3727         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
3728         is defined.
3729         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
3730         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
3731         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
3732         * doc/tm.texi: Regenerate.
3734 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3736         PR target/66232
3737         * config/i386/constraints.md (Bg): New constraint for GOT memory
3738         operand.
3739         * config/i386/i386.md (*call_got_x32): New pattern.
3740         (*call_value_got_x32): Likewise.
3741         * config/i386/predicates.md (GOT_memory_operand): New predicate.
3743 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
3745         PR tree-optimization/66233
3746         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
3747         Simplify.
3749 2015-05-21  Jeff Law  <law@redhat.com>
3751         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
3752         than MULT for shadd sequences.
3754 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
3756         * alias.c (alias_stats): New static var.
3757         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
3758         (dump_alias_stats_in_alias_c): New function.
3759         * alias.h (dump_alias_stats_in_alias_c): Declare.
3760         * tree-ssa-alias.c (dump_alias_stats): Call it.
3762 2015-05-08  Michael Matz  <matz@suse.de>
3764         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
3765         to strided_p.
3766         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
3767         (STMT_VINFO_STRIDED_P): ... this.
3768         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
3769         (vect_verify_datarefs_alignment): Likewise.
3770         (vect_enhance_data_refs_alignment): Likewise.
3771         (vect_analyze_data_ref_access): Likewise.
3772         (vect_analyze_data_refs): Accept strided stores.
3773         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
3774         (vect_model_load_cost): Adjust for macro rename.
3775         (vectorizable_mask_load_store): Likewise.
3776         (vectorizable_load): Likewise.
3777         (vectorizable_store): Open code strided stores.
3779 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3781         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
3782         Document sqrt_insn.
3784 2015-05-21  Richard Biener  <rguenther@suse.de>
3786         PR c++/66211
3787         * match.pd: Guard pattern optimzing (int)(float)int
3788         conversions to apply only on GIMPLE.
3790 2015-05-21  Jeff Law  <law@redhat.com>
3792         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
3793         multiply-accumulate/shift-add insn generation.
3795 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
3797         PR target/54236
3798         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
3799         operands[1] are the same.
3801 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
3803         PR middle-end/66221
3804         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
3805         build_distinct_type_copy to copy bounds.
3807 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
3809         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
3810         Change to unsigned int.
3812 2015-05-20  Jeff Law  <law@redhat.com>
3814         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
3815         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
3816         (pa_shadd_constant_p): Allow constants for shadd insns rather
3817         than valid scaling constants for memory addresses.
3818         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
3819         * config/pa/predicates.md (mem_shadd_operand): New predicate.
3820         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
3821         (shift-add insns using ASHIFT): New patterns.
3823 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
3825         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
3826         feasible.
3827         (fix_up_fall_thru_edges): Likewise.
3828         (fix_crossing_conditional_branches): Likewise. Promote jump targets
3829         from to rtx_insn to rtx_code_label where feasible.
3830         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
3831         gen_move_insn (returned type changed to rtx_insn).
3832         * builtins.c (expand_errno_check): Fix arguments of
3833         do_compare_rtx_and_jump (now expects rtx_code_label).
3834         (expand_builtin_acc_on_device): Likewise.
3835         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
3836         invert_jump (now exprects rtx_jump_insn).
3837         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
3838         (construct_init_block): Use rtx_code_label.
3839         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
3840         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
3841         calling redirect_jump.
3842         (patch_jump_insn): Likewise.
3843         (redirect_branch_edge): Likewise.
3844         (force_nonfallthru_and_redirect): Likewise.
3845         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
3846         when suitable.
3847         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
3848         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
3849         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
3850         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
3851         to store the value retured by gen_label_rtx.
3852         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
3853         rtx_jump_insn.
3854         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
3855         (split_branches): Fix calls of redirect_jump.
3856         * dojump.c (jumpifnot): Promote argument type from rtx to
3857         rtx_code_label.
3858         (jumpifnot_1): Likewise.
3859         (jumpif): Likewise.
3860         (jumpif_1): Likewise.
3861         (do_jump_1): Likewise.
3862         (do_jump): Likewise. Use rtx_code_label when feasible.
3863         (do_jump_by_parts_greater_rtx): Likewise.
3864         (do_jump_by_parts_zero_rtx): Likewise.
3865         (do_jump_by_parts_equality_rtx): Likewise.
3866         (do_compare_rtx_and_jump): Likewise.
3867         * dojump.h: Update function prototypes.
3868         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
3869         returns rtx_insn).
3870         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
3871         rtx_jump_insn.
3872         (emit_label_before): Likewise.
3873         (emit_jump_insn_after_noloc): Likewise.
3874         (emit_jump_insn_after_setloc): Likewise.
3875         (emit_jump_insn_after): Likewise
3876         (emit_jump_insn_before_setloc): Likewise.
3877         (emit_jump_insn_before): Likewise.
3878         (emit_label_before): Promote return type to rtx_code_label.
3879         (emit_label): Likewise.
3880         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
3881         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
3882         gen_move_insn.
3883         (emit_stack_restore): Likewise.
3884         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
3885         (do_cmp_and_jump): Likewise.
3886         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
3887         from rtx to rtx_code_label.
3888         (gen_move_insn_uncast): New function.
3889         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
3890         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
3891         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
3892         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
3893         invert_jump_1 and redirect_jump_1.
3894         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
3895         do_compare_rtx_and_jump.
3896         (expand_addsub_overflow): Likewise.
3897         (expand_neg_overflow): Likewise.
3898         (expand_mul_overflow): Likewise.
3899         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
3900         return value of gen_move_insn.
3901         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
3902         * loop-doloop.c (add_test): Use rtx_code_label.
3903         (doloop_modify): Likewise.
3904         (doloop_optimize): Likewise.
3905         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
3906         * lra-constraints.c (emit_spill_move): Remove cast of value returned
3907         by gen_move_insn.
3908         (inherit_reload_reg): Add cast when calling dump_insn_slim.
3909         (split_reg): Likewise.
3910         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
3911         gen_move_insn.
3912         * optabs.c (expand_binop_directly): Remove casts of values returned by
3913         maybe_gen_insn.
3914         (expand_unop_direct): Likewise.
3915         (expand_abs): Likewise.
3916         (maybe_emit_unop_insn): Likewise.
3917         (maybe_gen_insn): Promote return type to rtx_insn.
3918         * optabs.h: Update prototype of maybe_gen_insn.
3919         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
3920         redundant cast.
3921         * recog.c (struct peep2_insn_data): Promote type of insn field to
3922         rtx_insn.
3923         (peep2_reinit_state): Use NULL instead of NULL_RTX.
3924         (peep2_attempt): Remove casts of insn in peep2_insn_data.
3925         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
3926         * recog.h (struct insn_gen_fn): Promote return types of function
3927         pointers and operator ().from rtx to rtx_insn.
3928         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
3929         (fill_eager_delay_slots): Likewise.
3930         (relax_delay_slots): Likewise.
3931         (make_return_insns): Likewise.
3932         (dbr_schedule): Likewise.
3933         (optimize_skips): Likewise.
3934         (reorg_redirect_jump): Likewise.
3935         (fill_slots_from_thread): Likewise.
3936         * reorg.h: Update prototypes.
3937         * resource.c (find_dead_or_set_registers): Use dyn_cast to
3938         rtx_jump_insn instead of check.  Use it's jump_target method.
3939         * rtl.h (rtx_jump_insn::jump_label): Define new method.
3940         (rtx_jump_insn::jump_target): Define new method.
3941         (rtx_jump_insn::set_jump_target): Define new method.
3942         * rtlanal.c (tablejump_p): Promote type of one local variable.
3943         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
3944         (sched_analyze_insn): Likewise.
3945         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
3946         (print_insn): Likewise.
3947         * stmt.c (label_rtx): Promote return type to rtx_insn.
3948         (force_label_rtx): Likewise.
3949         (jump_target_rtx): Define new function.
3950         (expand_label): Use it, get rid of one cast.
3951         (expand_naked_return): Promote rtx to rtx_code_label.
3952         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
3953         (expand_case): Use rtx_code_label instread of rtx where feasible.
3954         (expand_sjlj_dispatch_table): Likewise.
3955         (emit_case_nodes): Likewise.
3956         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
3957         * store-motion.c (insert_store): Make use of new return type of
3958         gen_move_insn and remove a cast.
3959         (replace_store_insn): Likewise.
3961 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
3963         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
3964         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
3966 2015-05-20  Jeff Law  <law@redhat.com>
3968         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
3969         dispose of the jump thread path when the jump threading
3970         opportunity is cancelled.
3972 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3974         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
3975         when printing the caret character.
3977 2015-05-20  Marek Polacek  <polacek@redhat.com>
3979         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
3981 2015-05-20  Marek Polacek  <polacek@redhat.com>
3983         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
3984         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
3985         * gimple-fold.c (canonicalize_bool): Likewise.
3986         (same_bool_result_p): Likewise.
3987         * tree-if-conv.c (parse_predicate): Likewise.
3989 2015-05-20  Marek Polacek  <polacek@redhat.com>
3991         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
3992         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
3994 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3996         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
3997         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
3998         values.
4000 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
4002         * config/mips/mips.h (micromips_globals): Declare.
4004 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
4006         * timevar.def (TV_INITIALIZE_RTL): New.
4007         * toplev.c (initialize_rtl): Use an auto_timevar to account this
4008         function's time to TV_INITIALIZE_RTL.
4010 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
4012         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
4013         gimple_build_nop calls.
4014         (chkp_find_bounds_for_elem): Likewise.
4015         (chkp_get_zero_bounds): Likewise.
4016         (chkp_get_none_bounds): Likewise.
4017         (chkp_get_bounds_by_definition): Likewise.
4018         (chkp_generate_extern_var_bounds): Likewise.
4019         (chkp_get_bounds_for_decl_addr): Likewise.
4020         (chkp_get_bounds_for_string_cst): Likewise.
4022 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
4024         PR tree-optimization/65447
4025         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
4026         (dump_use, dump_uses): Support to dump sub use.
4027         (record_use): New parameters to support sub use.  Remove call to
4028         dump_use.
4029         (record_sub_use, record_group_use): New functions.
4030         (compute_max_addr_offset, split_all_small_groups): New functions.
4031         (group_address_uses, rewrite_use_address): New functions.
4032         (strip_offset): New declaration.
4033         (find_interesting_uses_address): Call record_group_use.
4034         (add_candidate): New assertion.
4035         (infinite_cost_p): Move definition forward.
4036         (add_costs): Check INFTY cost and return immediately.
4037         (get_computation_cost_at): Clear setup cost and dependent bitmap
4038         for sub uses.
4039         (determine_use_iv_cost_address): Compute cost for sub uses.
4040         (rewrite_use_address_1): Rename from old rewrite_use_address.
4041         (free_loop_data): Free sub uses.
4042         (tree_ssa_iv_optimize_loop): Call group_address_uses.
4044 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
4045             Jim Wilson  <jim.wilson@linaro.org>
4047         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
4048         new  fields loadv and storev.
4049         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
4050         Initialize loadv and storev.
4051         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
4052         (cortexa53_extra_costs): Likewise.
4053         (cortexa57_extra_costs): Likewise.
4054         (xgene1_extra_costs): Likewise.
4055         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
4056         rtx_costs.
4058 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
4060         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
4061          storev.
4062         (cortexa8_extra_costs): Likewise.
4063         (cortexa5_extra_costs): Likewise.
4064         (cortexa7_extra_costs): Likewise.
4065         (cortexa12_extra_costs): Likewise.
4066         (cortexa15_extra_costs): Likewise.
4067         (v7m_extra_costs): Likewise.
4069 2015-05-20  Jeff Law  <law@redhat.com>
4071         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
4072         instead of open-coded version.  Also delete the jump thread created
4073         within this function.
4075 2015-05-20  Alan Modra  <amodra@gmail.com>
4077         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
4078         stack adjusting insn.  Formatting.
4079         (rs6000_emit_prologue): Track stack adjusting insn, and use of
4080         r12.  If possible, emit first -fsplit-stack arg pointer insn
4081         before stack adjust.  Don't use r12 to save cr if split-stack.
4083 2015-05-20  Alan Modra  <amodra@gmail.com>
4085         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
4086         Define.
4087         (rs6000_supports_split_stack): New function.
4088         * gcc/config/rs6000/rs6000.c (machine_function): Add
4089         split_stack_arg_pointer.
4090         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
4091         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
4092         rather than virtual_incoming_args_rtx.
4093         (rs6000_va_start): Likewise.
4094         (split_stack_arg_pointer_used_p): New function.
4095         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
4096         (morestack_ref): New var.
4097         (gen_add3_const, rs6000_expand_split_stack_prologue,
4098         rs6000_internal_arg_pointer, rs6000_live_on_entry,
4099         rs6000_split_stack_space_check): New functions.
4100         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
4101         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
4102         (UNSPECV_SPLIT_STACK_RETURN): Define.
4103         (split_stack_prologue, load_split_stack_limit,
4104         load_split_stack_limit_di, load_split_stack_limit_si,
4105         split_stack_return, split_stack_space_check): New expands and insns.
4106         * gcc/config/rs6000/rs6000-protos.h
4107         (rs6000_expand_split_stack_prologue): Declare.
4108         (rs6000_split_stack_space_check): Declare.
4110 2015-05-20  Alan Modra  <amodra@gmail.com>
4112         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
4113         (rs6000_stack_info): Don't zero offsets when not saving registers.
4114         (debug_stack_info): Adjust to omit printing unused offsets,
4115         as before.
4116         (direct_return): Test vrsave_size rather than vrsave_mask.
4117         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
4118         (rs6000_emit_epilogue): Likewise.
4120 2015-05-20  Alan Modra  <amodra@gmail.com>
4122         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
4123         when not saving registers.
4124         (debug_stack_info): Adjust to omit printing unused offsets,
4125         as before.
4126         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
4127         expression.
4129 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4131         PR c++/65835
4132         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
4133         value_type to const char *.
4135 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
4137         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
4138         to build a biarch toolchain again.
4140 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
4142         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
4143         or implicit declarations.
4144         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
4145         into it.
4146         (get_odr_type): Check type has linkage before adding bases.
4147         (register_odr_type): Check that type has linkage before adding it.
4148         (type_known_to_have_no_deriavations_p): Rename to ..
4149         (type_known_to_have_no_derivations_p): This one.
4150         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
4151         (type_known_to_have_no_derivations_p): This one.
4152         * ipa-polymorphic-call.c
4153         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
4154         type has linkage.
4156 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
4158         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
4159         (layout_type): Use RECORD_OR_UNION_TYPE_P.
4161 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4163         * config/s390/s390.c (s390_vector_bool_type_p): New function.
4164         (s390_invalid_binary_op): New function.
4165         (TARGET_INVALID_BINARY_OP): Define macro.
4167 2015-05-19  David Sherwood  <david.sherwood@arm.com>
4169         * loop-invariant.c (create_new_invariant): Don't calculate address cost
4170         if mode is not a scalar integer.
4171         (get_inv_cost): Increase computational cost for unused invariants.
4173 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4175         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
4176         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
4177         * config/s390/s390-builtin-types.def: New file.
4178         * config/s390/s390-builtins.def: New file.
4179         * config/s390/s390-builtins.h: New file.
4180         * config/s390/s390-c.c: New file.
4181         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
4182         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
4183         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
4184         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
4185         prototypes.
4186         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
4187         Include.
4188         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
4189         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
4190         variable definitions.
4191         (s390_const_operand_ok): New function.
4192         (s390_expand_builtin): Rewrite.
4193         (s390_init_builtins): New function.
4194         (s390_handle_vectorbool_attribute): New function.
4195         (s390_attribute_table): Add s390_vector_bool attribute.
4196         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
4197         (s390_branch_condition_mask): Generate masks for new modes.
4198         (s390_expand_vec_compare_cc): New function.
4199         (s390_mangle_type): Add mangling for vector bool types.
4200         (enum s390_builtin): Remove.
4201         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
4202         efpc builtins.
4203         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
4204         s390_cpu_cpp_builtins.
4205         (REGISTER_TARGET_PRAGMAS): New macro.
4206         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
4207         (insn_cmp mode attribute): Add new CC modes.
4208         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
4209         (lcbb): New pattern definition.
4210         * config/s390/s390intrin.h: Include vecintrin.h.
4211         * config/s390/t-s390: New file.
4212         * config/s390/vecintrin.h: New file.
4213         * config/s390/vector.md: Include vx-builtins.md.
4214         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
4215         support.
4217 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4219         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
4220         CCVFHE.
4221         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
4222         (s390_select_ccmode): Likewise.
4223         (s390_canonicalize_comparison): Swap operands if necessary.
4224         (s390_expand_vec_compare_scalar): Expand DFmode compare using
4225         single element vector instructions.
4226         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
4227         (s390_branch_condition_mask): Generate CC masks for the new modes.
4228         * config/s390/s390.md (v0, vf, vd): New mode attributes.
4229         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
4230         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
4231         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
4232         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
4233         (*extend<DSF:mode><BFP:mode>2): New insn definition.
4234         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
4235         (extend<DSF:mode><BFP:mode>2): Turn into expander.
4236         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
4237         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
4238         (sqrt<mode>2): Add vector instruction.
4240 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4242         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
4243         constraints.
4244         * config/s390/predicates.md (const0_operand, constm1_operand)
4245         (constable_operand): Accept vector operands.
4246         * config/s390/s390-modes.def: Add supported vector modes.
4247         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
4248         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
4249         (s390_bytemask_vector_p, s390_expand_vec_strlen)
4250         (s390_expand_vec_compare, s390_expand_vcond)
4251         (s390_expand_vec_init): Add prototypes.
4252         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
4253         (s390_vector_mode_supported_p): New function.
4254         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
4255         (s390_contiguous_bitmask_vector_p): New function.
4256         (s390_bytemask_vector_p): New function.
4257         (s390_split_ok_p): Vector regs don't work either.
4258         (regclass_map): Add VEC_REGS.
4259         (s390_legitimate_constant_p): Handle vector constants.
4260         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
4261         (legitimate_reload_vector_constant_p): New function.
4262         (s390_preferred_reload_class): Handle CONST_VECTOR.
4263         (s390_reload_symref_address):  Likewise.
4264         (s390_secondary_reload): Vector memory instructions only support
4265         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
4266         (s390_emit_ccraw_jump): New function.
4267         (s390_expand_vec_strlen): New function.
4268         (s390_expand_vec_compare): New function.
4269         (s390_expand_vcond): New function.
4270         (s390_expand_vec_init): New function.
4271         (s390_dwarf_frame_reg_mode): New function.
4272         (print_operand): Handle addresses with 'O' and 'R' constraints.
4273         (NR_C_MODES, constant_modes): Add vector modes.
4274         (s390_output_pool_entry): Handle vector constants.
4275         (s390_hard_regno_mode_ok): Handle vector registers.
4276         (s390_class_max_nregs): Likewise.
4277         (s390_cannot_change_mode_class): New function.
4278         (s390_invalid_arg_for_unprototyped_fn): New function.
4279         (s390_function_arg_vector): New function.
4280         (s390_function_arg_float): Remove size variable.
4281         (s390_pass_by_reference): Handle vector arguments.
4282         (s390_function_arg_advance): Likewise.
4283         (s390_function_arg): Likewise.
4284         (s390_return_in_memory): Vector values are returned in a VR if
4285         possible.
4286         (s390_function_and_libcall_value): Handle vector arguments.
4287         (s390_gimplify_va_arg): Likewise.
4288         (s390_call_saved_register_used): Consider the arguments named.
4289         (s390_conditional_register_usage): Disable v16-v31 for non-vec
4290         targets.
4291         (s390_preferred_simd_mode): New function.
4292         (s390_support_vector_misalignment): New function.
4293         (s390_vector_alignment): New function.
4294         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
4295         (TARGET_VECTOR_MODE_SUPPORTED_P)
4296         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
4297         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
4298         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
4299         (TARGET_VECTOR_ALIGNMENT): Define target macro.
4300         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
4301         (FIRST_PSEUDO_REGISTER): Increase value.
4302         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
4303         (VECTOR_REG_P): Define macros.
4304         (FIXED_REGISTERS, CALL_USED_REGISTERS)
4305         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
4306         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
4307         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
4308         Add vector registers.
4309         (CANNOT_CHANGE_MODE_CLASS): Call C function.
4310         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
4311         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
4312         memory.
4313         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
4314         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
4315         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
4316         (VR*_REGNUM): New constants.
4317         (ALL): New mode iterator.
4318         (INTALL): Remove mode iterator.
4319         Include vector.md.
4320         (movti): Implement TImode moves for VRs.
4321         Disable TImode splitter for VR targets.
4322         Implement splitting TImode GPR<->VR moves.
4323         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
4324         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
4325         reload<mode>_la_in, reload<mode>_la_out.
4326         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
4327         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
4328         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
4329         (mov<mode> SF SD): Prefer lder, lde for loading.
4330         Add lrl and strl instructions.
4331         Add vector instructions.
4332         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
4333         Call s390_expand_vec_strlen on z13.
4334         (*cc_to_int): Change predicate to nonimmediate_operand.
4335         (addti3): Rename to *addti3.  New expander.
4336         (subti3): Rename to *subti3.  New expander.
4337         * config/s390/vector.md: New file.
4339 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4341         * common/config/s390/s390-common.c (processor_flags_table): Add
4342         z13.
4343         * config.gcc: Add z13.
4344         * config/s390/s390-opts.h (enum processor_type): Add
4345         PROCESSOR_2964_Z13.
4346         * config/s390/s390.c (s390_adjust_priority): Check for
4347         PROCESSOR_2964_Z13.
4348         (s390_reorg): Likewise.
4349         (s390_sched_reorder): Likewise.
4350         (s390_sched_variable_issue): Likewise.
4351         (s390_loop_unroll_adjust): Likewise.
4352         (s390_option_override): Likewise. Default to -mvx when available.
4353         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
4354         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
4355         (TARGET_VX_ABI): Define macros.
4356         macros.
4357         (TARGET_DEFAULT): Add MASK_OPT_VX.
4358         * config/s390/s390.md ("cpu" attribute): Add z13.
4359         ("cpu_facility" attribute): Add vec.
4360         * config/s390/s390.opt (processor_type): Add z13.
4361         (mvx): New options.
4362         * doc/invoke.texi: Add z13 option for -march.
4364 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4366         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
4367         mode check to make sure that only scalar integer values are
4368         accepted.
4370 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
4372         * tree.c (verify_type_variant): Fix #undef.
4373         (gimple_canonical_types_compatible_p): Move here from lto.c
4374         (verify_type): Verify TYPE_CANONICAL compatibility.
4375         * tree.h (gimple_canonical_types_compatible_p): Declare.
4377 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
4379         PR middle-end/66199
4380         * tree.h (OMP_TEAMS_COMBINED): Define.
4381         * gimplify.c (enum gimplify_omp_var_data): Add
4382         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
4383         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
4384         (omp_notice_variable): Accept both ORT_TEAMS
4385         and ORT_COMBINED_TEAMS.  Don't recurse if
4386         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
4387         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
4388         GOVD_FIRSTPRIVATE.
4389         (omp_no_lastprivate): New function.
4390         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
4391         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
4392         notice_outer and set appropriate bits, otherwise make
4393         sure default(none) combined constructs won't complain.
4394         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
4395         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
4396         omp_no_lastprivate either remove the clause or turn it
4397         into OMP_CLAUSE_PRIVATE.
4398         (gimplify_omp_for): Fix up handling of implicit
4399         lastprivate or linear iterators.
4400         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
4401         ORT_COMBINED_TEAMS.
4402         * omp-low.c (lower_omp_for_lastprivate): For combined
4403         for simd use fd.loop.n2 from the for rather than simd.
4405 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
4407         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
4408         instead of gen_rtx_raw_REG.
4409         (cris_expand_epilogue): Likewise.
4410         * config/microblaze/microblaze.c (microblaze_classify_address):
4411         Likewise.
4412         * config/sparc/sparc.md: Likewise.
4414 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
4416         * config/alpha/alpha.c (alpha_legitimize_reload_address)
4417         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
4418         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
4419         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
4420         Use CASE_CONST_SCALAR_INT.
4421         (print_operand) <case 'M'>: Use mode_width_operand to check the
4422         value of the constant.
4423         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
4424         * config/alpha/predicates.md (input_operand): Use general_operand
4425         instead of match_code as operand check.
4426         (symbolic_operand): Use match_code with subexpression digits.
4427         * config/alpha/constraints.md (Q): Ditto.
4429 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4431         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
4433 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4435         * config/s390/s390.c (s390_secondary_reload): Fix check for
4436         load/store relative.
4438 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4440         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
4441         alternative_mask to uint64_t.
4443 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
4445         PR tree-optimization/66187
4446         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
4447         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
4448         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
4450 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
4452         * diagnostic.c (diagnostic_report_current_module): Strengthen
4453         local "new_map" from const line_map * to
4454         const line_map_ordinary *.
4455         * genmatch.c (error_cb): Likewise for local "map".
4456         (output_line_directive): Likewise for local "map".
4457         * input.c (expand_location_1): Likewise for local "map".
4458         Pass NULL rather than &map to
4459         linemap_unwind_to_first_non_reserved_loc, since the value is never
4460         read from there, and the value written back not read from here.
4461         (is_location_from_builtin_token): Strengthen local "map" from
4462         const line_map * to const line_map_ordinary *.
4463         (dump_location_info): Strengthen locals "map" from
4464         line_map *, one to const line_map_ordinary *, the other
4465         to const line_map_macro *.
4466         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
4467         const line_map * to const line_map_macro *.
4468         (maybe_unwind_expanded_macro_loc): Add a call to
4469         linemap_check_macro when writing to the "map" field of the
4470         loc_map_pair.
4471         Introduce local const line_map_ordinary * "ord_map", using it in
4472         place of "map" in the part of the function where we know we have
4473         an ordinary map.  Strengthen local "m" from const line_map * to
4474         const line_map_ordinary *.
4476 2015-05-19  Nick Clifton  <nickc@redhat.com>
4478         PR target/66156
4479         * config/msp430/msp430.md (zero_extendhisi2): Add support for
4480         separate source and destination registers.
4482 2015-05-19  Richard Biener  <rguenther@suse.de>
4484         PR tree-optimization/66165
4485         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
4486         for no load permutation.
4488         PR tree-optimization/66185
4489         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
4490         when building the SLP node from scalars.
4492 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
4493             Tristan Gingold  <gingold@adacore.com>
4495         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
4496         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
4497         (expand_stack_restore): Call record_new_stack_level.
4498         (expand_stack_save): Do not call do_pending_stack_adjust.
4499         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
4500         * calls.c (expand_call): Call record_new_stack_level for alloca.
4501         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
4502         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
4503         (update_sjlj_context): New global function.
4504         * except.h (update_sjlj_context): Declare.
4505         * explow.c (record_new_stack_level): New global function.
4506         (allocate_dynamic_stack_space): Call record_new_stack_level.
4507         * explow.h (record_new_stack_level): Declare.
4508         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
4509         * cfgrtl.c (duplicate_insn_chain): Likewise.
4511 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4513         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
4514         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
4515         STACK_GROWS_DOWNWARD as normal if.
4516         (expand_call): Likewise.
4518 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
4520         PR target/54236
4521         * config/sh/sh.md (*round_int_even): New insn_and_split and
4522         accompanying new unnamed split.
4524 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
4526         * bitmap.c (bitmap_set_range): Handle count==1 specially.
4527         (bitmap_clear_range): Likewise.
4528         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
4529         bitmap_set_range unconditionally.
4530         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
4531         * df-scan.c (df_mark_reg): Likewise.
4532         * haifa-sched.c (setup_ref_regs): Likewise.
4533         * sched-rgn.c (update_live_1): Likewise.
4535 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
4537         * regs.h (END_HARD_REGNO): Delete.
4538         (END_REGNO): Move to...
4539         * rtl.h: ...here.
4540         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
4541         * caller-save.c (mark_set_regs): Likewise.
4542         * combine.c (move_deaths, distribute_notes): Likewise.
4543         * cse.c (invalidate, invalidate_for_call): Likewise.
4544         * df-scan.c (df_ref_record): Likewise.
4545         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
4546         (record_last_reg_set_info): Likewise.
4547         * reg-stack.c (convert_regs_exit): Likewise.
4548         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
4549         * resource.c (update_live_status): Likewise.
4550         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
4552 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
4554         * rtl.h (reg_info): Add an nregs field.
4555         (REG_NREGS): Use it.
4556         (SET_REGNO_RAW): Delete.
4557         (set_regno_raw): New function.
4558         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
4559         (END_REGNO): Redefine in terms of REG_NREGS.
4560         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
4561         SET_REGNO_RAW.
4562         * emit-rtl.c (set_mode_and_regno): Likewise.
4563         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
4564         instead of SET_REGNO_RAW.
4566 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
4568         * rtl.h (PUT_MODE_RAW): New macro.
4569         (PUT_REG_NOTE_KIND): Use it.
4570         (set_mode_and_regno): Declare.
4571         (gen_raw_REG): Change regno to "unsigned int".
4572         (gen_rtx_REG): Change "unsigned" to "unsigned int".
4573         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
4574         use set_mode_and_regno to change the mode of registers.
4575         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
4576         * emit-rtl.c (set_mode_and_regno): New function.
4577         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
4578         * caller-save.c (reg_save_code): Use set_mode_and_regno.
4579         * expr.c (init_expr_target): Likewise.
4580         * ira.c (setup_prohibited_mode_move_regs): Likewise.
4581         * postreload.c (reload_cse_simplify_operands): Likewise.
4583 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
4585         * caller-save.c (init_caller_save): Use word_mode and
4586         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
4587         * expr.c (init_expr_target): Likewise.
4588         * ira.c (setup_prohibited_mode_move_regs): Likewise.
4589         * postreload.c (reload_cse_regs_1): Likewise.
4591 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
4593         * rtl.def (REG): Change format to "r".
4594         * rtl.h (rtunion): Remove rt_reg.
4595         (reg_info): New structure.
4596         (rtx_def): Add reg field to main union.
4597         (X0REGATTR): Delete.
4598         (REG_CHECK): New macro.
4599         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
4600         * rtl.c (rtx_format): Document "r".
4601         (rtx_code_size): Handle REG specially.
4602         * gengenrtl.c (special_format): Return true for formats
4603         that include 'r'.
4604         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
4605         Deal with REG_ATTRS after the field loop.
4606         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
4607         * expmed.c (init_expmed): Call gen_raw_REG instead of
4608         gen_rtx_raw_REG.
4609         * expr.c (init_expr_target): Likewise.
4610         * regcprop.c (maybe_mode_change): Likewise.
4611         * varasm.c (make_decl_rtl): Likewise.
4612         * final.c (leaf_renumber_regs_insn): Return early after
4613         handling REGs.
4614         * genemit.c (gen_exp): Handle 'r' fields.
4615         * genpeep.c (match_rtx): Likewise.
4616         * gensupport.c (subst_pattern_match): Likewise.
4617         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
4618         (alter_constraints, subst_dup): Likewise.
4619         * read-rtl.c (read_rtx_code): Likewise.
4620         * print-rtl.c (print_rtx): Likewise.
4621         * genrecog.c (find_operand, find_matching_operand): Likewise.
4622         (validate_pattern, match_pattern_2): Likewise.
4623         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
4624         (rtx_test::regno_field): New function.
4625         (operator ==, safe_to_hoist_p, transition_parameter_type)
4626         (parameter_type_string, print_parameter_value)
4627         (print_nonbool_test, print_test): Handle new enum values.
4628         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
4629         * lra-constraints.c (operands_match_p): Likewise.
4631 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
4633         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
4634         Change type of new_regno to unsigned int.
4635         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
4636         new_regno to unsigned int.
4637         (df_ref_change_reg_with_loc): Remove old_regno parameter.
4638         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
4639         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
4640         (SET_REGNO_RAW): Add space after ",".
4642 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
4644         * rtl.h (REG_NREGS): New macro
4645         * alias.c (record_set): Use it.
4646         * cfgcleanup.c (mark_effect): Likewise.
4647         * combine.c (likely_spilled_retval_1): Likewise.
4648         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
4649         (move_deaths, distribute_notes): Likewise.
4650         * cselib.c (cselib_record_set): Likewise.
4651         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
4652         * df-scan.c (df_mark_reg): Likewise.
4653         * dse.c (look_for_hardregs): Likewise.
4654         * dwarf2out.c (reg_loc_descriptor): Likewise.
4655         (multiple_reg_loc_descriptor): Likewise.
4656         * expr.c (write_complex_part, read_complex_part): Likewise.
4657         (emit_move_complex): Likewise.
4658         * haifa-sched.c (setup_ref_regs): Likewise.
4659         * ira-lives.c (mark_hard_reg_live): Likewise.
4660         * lra.c (lra_set_insn_recog_data): Likewise.
4661         * mode-switching.c (create_pre_exit): Likewise.
4662         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
4663         (reload_combine_recognize_pattern): Likewise.
4664         (reload_combine_note_use, move2add_record_mode): Likewise.
4665         (reload_cse_move2add): Likewise.
4666         * reg-stack.c (subst_stack_regs_pat): Likewise.
4667         * regcprop.c (kill_value, copy_value): Likewise.
4668         (copyprop_hardreg_forward_1): Likewise.
4669         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
4670         (build_def_use): Likewise.
4671         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
4672         (deps_analyze_insn): Likewise.
4673         * sched-rgn.c (check_live_1, update_live_1): Likewise.
4674         * sel-sched.c (count_occurrences_equiv): Likewise.
4675         * valtrack.c (dead_debug_insert_temp): Likewise.
4677 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
4679         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
4680         * dse.c (note_add_store): Likewise.
4681         * ira-lives.c (mark_hard_reg_dead): Likewise.
4682         * loop-invariant.c (mark_reg_store): Likewise.
4683         (mark_reg_death): Likewise.
4684         * postreload.c (reload_combine): Likewise.
4685         (reload_combine_note_store): Likewise.
4686         (reload_combine_note_use): Likewise.
4687         * recog.c (peep2_reg_dead_p): Likewise.
4689 2015-05-19  Alan Modra  <amodra@gmail.com>
4691         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
4692         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
4693         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
4694         unused predicates.
4695         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
4696         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
4697         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
4698         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
4700 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
4702         * config/mips/mips.md (JOIN_MODE): New mode iterator.
4703         (join2_load_Store<JOIN_MODE:mode>): New pattern.
4704         (join2_loadhi): Likewise.
4705         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
4706         load-load and store-stores.
4707         * config/mips/mips.opt (mload-store-pairs): New option.
4708         (TARGET_LOAD_STORE_PAIRS): New macro.
4709         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
4710         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
4711         * config/mips/mips.c (mips_load_store_bonding_p): New function.
4713 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
4715         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
4716         explicit swaps.
4717         * dojump.c (do_compare_rtx_and_jump): Likewise.
4718         * expmed.c (emit_store_flag_1): Likewise.
4719         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
4720         * final.c (sprint_ul): Use std::reverse for reversing a string.
4721         * fold-const.c (extract_muldiv_1): Use std::swap.
4722         * genmodes.c (emit_mode_int_n): Likewise.
4723         * ifcvt.c (dead_or_predicable): Likewise.
4724         * ira-build.c (ira_merge_live_ranges): Likewise.
4725         (swap_allocno_copy_ends_if_necessary): Likewise.
4726         * ira.c (ira_setup_alts): Likewise.
4727         * loop-iv.c (iv_analyze_expr): Likewise.
4728         (implies_p): Likewise.
4729         (canon_condition): Likewise.
4730         * lra-constraints.c (swap_operands): Likewise.
4731         * lra-lives.c (lra_merge_live_ranges): Likewise.
4732         * omega.c (swap): Remove.
4733         (bswap): Remove.
4734         (omega_unprotect_1): Use std::swap.
4735         (omega_solve_geq): Likewise.
4736         * optabs.c (expand_binop_directly): Likewise.
4737         (expand_binop): Likewise.
4738         (emit_conditional_move): Likewise.
4739         (emit_conditional_add): Likewise.
4740         * postreload.c (reload_cse_simplify_operands): Likewise.
4741         * reg-stack.c (emit_swap_insn): Likewise.
4742         (swap_to_top): Likewise.
4743         (compare_for_stack_reg): Likewise.
4744         (subst_asm_stack_regs): Likewise.
4745         * reload.c (find_reloads): Likewise.
4746         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
4747         * sel-sched.c (invoke_reorder_hooks): Likewise.
4748         (create_block_for_bookkeeping): Likewise.
4749         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
4750         (lambda_matrix_right_hermite): Use std::swap.
4751         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
4752         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4753         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
4754         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
4755         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
4756         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
4757         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
4758         * tree-vrp.c (compare_ranges): Likewise.
4759         * var-tracking.c (add_with_sets): Likewise.
4760         (vt_find_locations): Likewise.
4762 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
4764         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
4765         pie executables.
4766         (FBSD_ENDFILE_SPEC): Likewise.
4767         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
4768         config/freebsd-spec.h.
4769         (ENDFILE_SPEC): Likewise.
4771 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
4772             Richard Henderson  <rth@redhat.com>
4774         PR target/57032
4775         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
4776         Check for a memory location that is not a reference (using an AND)
4777         to an unaligned location here.
4778         * config/alpha/predicates.md (normal_memory_operand): Remove.
4780 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
4782         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
4783         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
4785 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
4787         * config/mips/mips.c (micromips_globals): New variable.
4788         (mips_set_compression_mode): Save and reinitialize target-dependent
4789         state for microMIPS.
4791 2015-05-18  Martin Liska  <mliska@suse.cz>
4793         * dbgcnt.def: Add new counter.
4794         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
4796 2015-05-18  Martin Liska  <mliska@suse.cz>
4798         * dbgcnt.def: Sort counters.
4799         * opts.c (common_handle_option): Do not compile if
4800         -fdbg-cnt-list is enabled.
4802 2015-05-18  Tom de Vries  <tom@codesourcery.com>
4804         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
4805         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
4806         address operator to va_list operand.
4807         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
4808         unconditionally.
4809         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
4810         operand.
4811         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
4812         * config/s390/s390.c (s390_gimplify_va_arg): Same.
4813         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
4815 2015-05-18  Tom de Vries  <tom@codesourcery.com>
4817         * tree-ssa-tail-merge.c: Fix whitespace.
4819 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
4821         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
4822         cortex-a17, and cortex-a17.cortex-a7.
4824 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
4826         PR target/54236
4827         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
4829 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
4831         PR target/66174
4832         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
4833         QImode inner modes for TARGET_AVX512BW.  Force mask operand
4834         to a register for AVX512F modes.
4836 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
4838         * toplev.c (emit_debug_global_declarations): Do not output debug info
4839         when doing slim LTO objects.
4841 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
4843         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
4844         odr_types_equivalent_p): Declare.
4845         (odr_type_p): Use gcc_checking_assert.
4846         (type_in_anonymous_namespace_p) Declare.
4847         (type_with_linkage_p): Declare.
4848         * common.opt (Wlto-type-mismatch): New warning.
4849         * ipa-devirt.c (compound_type_base): New function.
4850         (odr_or_derived_type_p): New function.
4851         (odr_types_equivalent_p): New function.
4852         (add_type_duplicate): Simplify.
4853         (type_with_linkage_p): Add hack to prevent false positives on C types
4854         (type_in_anonymous_namespace_p): Likewise.
4855         * tree.c (need_assembler_name_p): Use type_with_linkage.
4856         * tree.h (type_in_anonymous_namespace_p): Remove.
4857         * doc/invoke.texi (-Wlto-type-mismatch): Document
4859 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
4861         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
4862         (verify_type): Verify STRING_FLAG.
4864 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4866         PR fortran/44054
4867         * tree-pretty-print.c (percent_K_format): Replace locus pointer
4868         with accessor function.
4869         * tree-diagnostic.c (diagnostic_report_current_function): Use
4870         diagnostic_location function.
4871         (maybe_unwind_expanded_macro_loc): Likewise.
4872         (virt_loc_aware_diagnostic_finalizer): Likewise.
4873         (default_tree_printer): Replace locus pointer with accessor function.
4874         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
4875         (diagnostic_set_info_translated): Initialize second location.
4876         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
4877         (diagnostic_show_locus): Handle two locations. Call
4878         diagnostic_print_caret_line.
4879         (diagnostic_print_caret_line): New.
4880         (default_diagnostic_starter): Use diagnostic_location function.
4881         (diagnostic_report_diagnostic): Use diagnostic_location function.
4882         (verbatim): Do not set text.locus.
4883         * diagnostic.h (struct diagnostic_info): Remove location field.
4884         (struct diagnostic_context): Make caret_chars an array of two.
4885         (diagnostic_location): New inline.
4886         (diagnostic_expand_location): Handle two locations.
4887         (diagnostic_same_line): New inline.
4888         (diagnostic_print_caret_line): Declare.
4889         (CARET_LINE_MARGIN): New constant.
4890         * pretty-print.c (pp_printf): Do not set text.locus.
4891         (pp_verbatim): Do not set text.locus.
4892         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
4893         (struct text_info): Replace locus pointer with locations
4894         array. Add accessor functions.
4896 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
4897             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4899         PR target/65768
4900         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
4901         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
4902          large constants in register instead of splitting them.
4904 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
4906         PR target/66140
4907         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
4908         replacements in memory addresses.
4909         (get_unaligned_address): Ditto.
4911 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
4913         * config/ft32/*: New files for FT32 port.
4914         * doc/install.texi: Add FT32 information.
4915         * doc/invoke.texi: Add FT32 information.
4916         * doc/md.texi: Add FT32 information.
4917         * doc/contrib.texi: Self added.
4919 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
4921         PR tree-optimization/64454
4922         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
4923         (-1 - A -> ~A): Remove unnecessary condition.
4925 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
4927         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
4928         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
4929         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
4931 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
4933         * ipa-chkp.h (chkp_wrap_function): New.
4934         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
4935         (chkp_wrap_function_name): New.
4936         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
4937         to get wrapper name.
4938         * lto-cgraph.c: Include ipa-chkp.h.
4939         (input_cgraph_1): Avoid alias chain for wrappers.
4941 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
4943         PR middle-end/66134
4944         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
4945         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
4947 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4949         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
4950         (AARCH64_FL_SLOWMUL): Delete.
4951         (AARCH64_FL_CRC): Redefine to 1<<3.
4952         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
4954 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4956         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
4957         casting.
4959 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
4961         * config/alpha/alpha.md (extendqidi2): Use general_operand
4962         instead of some_operand for operand[1] predicate.
4963         (extendhidi2): Ditto.
4964         (cbranchdi4): Use general_operand instead of some_operand
4965         for operand[1] and operands[2] predicates.
4966         (cstoredi4): Ditto.
4967         * config/alpha/predicates.md (some_operand): Remove unused predicate.
4968         (some_ni_operand): Ditto.
4970 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
4972         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
4973         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
4974         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
4975         low part of the constant using alpha_emit_set_const_1.
4976         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
4978 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
4980         * varasm.c (output_constant_pool_1): Pass down alignment from
4981         constant pool entry's descriptor to output_constant_pool_2.
4982         (output_object_block): Add comment prior to call to
4983         output_constant_pool_1.
4985 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
4987         PR rtl-optimization/65862
4988         * target.def (ira_change_pseudo_allocno_class): New hook.
4989         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
4990         value of the hook.
4991         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
4992         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
4993         hook.
4994         * ira-costs.c (find_costs_and_classes): Call the hook and change
4995         classes when it is necessary.
4996         * doc/tm.texi: Update.
4998 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
5000         * config/i386/i386.md (sibcall_memory): Check that register with
5001         callee address is not also used as one of the arguments, instead
5002         of checking that it is not live after the sibcall.
5003         (sibcall_pop_memory): Ditto.
5004         (sibcall_value_memory): Ditto.
5005         (sibcall_value_pop_memory): Ditto.
5007 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
5009         * generic-match-head.c (types_match): Handle non-types.
5010         * gimple-match-head.c (types_match): Likewise.
5011         * match.pd: Remove unnecessary TREE_TYPE for types_match.
5013 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
5015         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
5016         (csneg3<mode>_insn): Enable expansion of pattern.
5018 2015-05-14  Nick Clifton  <nickc@redhat.com>
5020         * config/rl78/rl78.c (rl78_select_section): Select the correct
5021         default section based upon the category of the decl.
5023 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
5025         PR rtl-optimization/30967
5026         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
5027         destination mode for the cost of scc patterns.
5029 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
5031         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
5032         using SWIM248 mode iterator.
5033         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
5034         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
5035         for operand[2] constraint.
5036         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
5038 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
5040         PR middle-end/66133
5041         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
5042         make sure it is never noreturn, even when the task body does not
5043         return.
5044         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
5045         right before GIMPLE_OMP_RETURN.
5046         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
5047         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
5048         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
5050 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5052         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
5053         * tree-ssa-math-opts.c: Include params.h
5054         (pow_synth_sqrt_info): New struct.
5055         (representable_as_half_series_p): New function.
5056         (get_fn_chain): Likewise.
5057         (print_nested_fn): Likewise.
5058         (dump_fractional_sqrt_sequence): Likewise.
5059         (dump_integer_part): Likewise.
5060         (expand_pow_as_sqrts): Likewise.
5061         (gimple_expand_builtin_pow): Use above to attempt to expand
5062         pow as series of square roots.  Removed now unused variables.
5064 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
5066         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
5067         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
5068         Remove *p0 and *p1 arguments.  Rewrite function.
5069         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
5070         (alpha_split_const_mov): Update calls to alpha_extract_integer and
5071         alpha_emit_set_long_const.
5072         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
5073         (alpha_output_mi_thunk_osf): Ditto.
5074         * config/alpha/alpha.md (movti): Do not check operands[1]
5075         for CONST_DOUBLE.
5077 2015-05-13  Richard Biener  <rguenther@suse.de>
5079         PR tree-optimization/66129
5080         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
5081         commutative.
5082         (vect_schedule_slp_instance): Fix typo.
5084 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
5086         * common.opt (fdump-internal-locations): New option.
5087         * input.c: Include diagnostic-core.h.
5088         (get_end_location): New function.
5089         (write_digit): New function.
5090         (write_digit_row): New function.
5091         (dump_location_range): New function.
5092         (dump_labelled_location_range): New function.
5093         (dump_location_info): New function.
5094         * input.h (dump_location_info): New prototype.
5095         * toplev.c (compile_file): Handle flag_dump_locations.
5097 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
5099         * gimple-expr.h (is_gimple_constant): Reorder.
5100         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
5102 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
5104         * combine.c (simplify_set): When generating a CC set, if the
5105         source already is in the correct mode, do not wrap it in a
5106         compare.  Simplify the rest of that code.
5108 2015-05-13  Richard Biener  <rguenther@suse.de>
5110         PR tree-optimization/66123
5111         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
5112         a taken edge.
5114 2015-05-13  Richard Biener  <rguenther@suse.de>
5116         PR middle-end/66110
5117         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
5118         specially.
5119         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
5121 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
5123         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
5124         * aclocal.m4: Regenerated with automake-1.11.6.
5126 2015-05-13  Tom de Vries  <tom@codesourcery.com>
5128         PR tree-optimization/66010
5129         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
5130         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
5131         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
5132         and rval based on do_deref.
5134 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
5136         PR target/65103
5137         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
5138         link time constants into adress expressions and therefore set
5139         their cost to 0.
5141 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
5143         PR target/66112
5144         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
5145         Use SWI248 iterator instead of SWI.
5146         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
5147         Use eq_attr "alternative" "0" instead of match_test in
5148         length_immediate attribute computation.
5149         (*mulvhi4, *mulvhi4_1): New define_insns.
5151         PR target/66112
5152         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
5153         SIGNED to get precision of non-negative value.
5155 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
5157         PR target/66048
5158         * function.c (diddle_return_value_1): Process bounds first.
5159         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
5160         register.
5162 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5164         PR rtl-optimization/64616
5165         * loop-invariant.c (can_move_invariant_reg): New.
5166         (move_invariant_reg): Call above new function to decide whether
5167         instruction can just be moved, skipping creation of temporary
5168         register.
5170 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
5172         PR target/pr66047.c
5173         * i386.c (ix86_function_sseregparm): Only return -1 if local function
5174         with implied regparm is called from -mno-sse function.
5175         (init_cumulative_args): Output error if ix86_function_sseregparm
5176         return -1 and SSE register would be needed.
5177         (function_arg_advance_32): Likewise.
5178         (function_arg_32): Likewise.
5179         * i386.h (ix86_args): Add decl field.
5181 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
5183         PR ipa/65873
5184         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
5185         inlines across optimization boundary.
5187 2015-05-12  Jason Merrill  <jason@redhat.com>
5189         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
5190         string literal and macro name.
5192 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
5194         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
5195         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
5196         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
5198 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
5200         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
5201         (-Wmisleading-indentation): New option.
5202         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
5204 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
5206         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
5207         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
5208         (alpha_extract_integer): Ditto.
5209         (alpha_legitimate_constant_p): Ditto.
5210         (alpha_split_tmode_pair): Ditto.
5211         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
5212         (alpha_expand_mov): Ditto.
5213         (print_operand): Remove handling of 'H' modifier.
5214         <case 'm'>: Remove CONST_DOUBLE handling.
5215         (summarize_insn): Handle CONST_WIDE_INT.
5216         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
5217         (anddi3): Ditto.
5218         (movti): Handle CONST_WIDE_INT.
5219         * config/alpha/constraints.md ('H'): Remove constraint definition.
5220         ('G'): Do not match MODE_FLOAT class.
5221         * config/alpha/predicates.md (const0_operand): Also match
5222         const_wide_int.
5223         (non_add_const_operand): Ditto.
5224         (non_zero_const_operand): Ditto.
5225         (some_operand): Ditto.
5226         (input_operand): Ditto.  Handle CONST_WIDE_INT.
5227         (and_operand): Do not match const_double.
5228         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
5230 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
5232         PR target/65697
5233         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
5234         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
5235         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
5236         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
5237         is_mm_seq_cst, is_mm_sync): New accessor functions.
5238         * builtins.c (expand_builtin_sync_operation,
5239         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
5240         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
5241         (get_memmodel,  expand_builtin_atomic_compare_exchange,
5242         expand_builtin_atomic_load, expand_builtin_atomic_store,
5243         expand_builtin_atomic_clear): Use new accessor routines.
5244         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
5245         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
5246         (maybe_emit_sync_lock_test_and_set): Use new accessors and
5247         MEMMODEL_SYNC_ACQUIRE.
5248         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
5249         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
5250         expand_atomic_store): Use new accessors.
5251         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
5252         * tsan.c (instrument_builtin_call): Update check for memory model beyond
5253         final enum to use MEMMODEL_LAST.
5254         * c-family/c-common.c: Use new accessor for memmodel_base.
5255         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
5256         accessors.
5257         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
5258         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
5259         mem_thread_fence, *dmb): Likewise.
5260         * config/alpha/alpha.c (alpha_split_compare_and_swap,
5261         alpha_split_compare_and_swap_12): Likewise.
5262         * config/arm/arm.c (arm_expand_compare_and_swap,
5263         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
5264         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
5265         atomic_loaddi): Likewise.
5266         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
5267         Likewise.
5268         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
5269         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
5270         use new accessors.
5271         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
5272         atomic_store<mode>, atomic_compare_and_swap<mode>,
5273         atomic_exchange<mode>): Use new accessors.
5274         * config/mips/mips.c (mips_process_sync_loop): Likewise.
5275         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
5276         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
5277         rs6000_post_atomic_barrier): Add new cases.
5278         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
5279         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
5280         (atomic_load<mode>): Add new cases and use new accessors.
5281         (store_quadpti): Add new cases.
5282         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
5283         accessors.
5284         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
5285         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
5286         model, not 8.
5288 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
5290         * ipa-devirt.c (type_with_linkage_p): New function.
5291         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
5292         type has linkage.
5293         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
5294         (can_be_name_hashed_p): Simplify.
5295         (hash_odr_name): Check that type has linkage before checking if it is
5296         anonymous.
5297         (types_same_for_odr): Likewise.
5298         (odr_name_hasher::equal): Likewise.
5299         (odr_subtypes_equivalent_p): Likewise.
5300         (warn_types_mismatch): Likewise.
5301         (get_odr_type): Likewise.
5302         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
5303         * ipa-utils.h (odr_type_p): Move offline.
5304         * tree.c (need_assembler_name_p): Fix handling of types
5305         without linkages.
5306         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
5308 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
5310         * timevar.c (timevar_enable): Delete in favor of...
5311         (g_timer): New global.
5312         (struct timevar_def): Move to timevar.h inside class timer.
5313         (struct timevar_stack_def): Likewise.
5314         (timevars): Delete global in favor of field "m_timevars" within
5315         class timer in timevar.h
5316         (stack): Likewise, in favor of field "m_stack".
5317         (unused_stack_instances): Likewise, in favor of field
5318         "m_unused_stack_instances".
5319         (start_time): Likewise, in favor of field "m_start_time".
5320         (get_time): Eliminate check for timevar_enable.
5321         (timer::timer): New function, built from part of timevar_init.
5322         (timevar_init): Rewrite idempotency test from using
5323         "timevar_enable" bool to using dynamic allocation of "g_timer".
5324         Move rest of implementation into timer's constructor.
5325         (timevar_push_1): Rename to...
5326         (timer::push): ...this, adding "m_" prefixes to variables that
5327         are now fields of timer.
5328         (timevar_pop_1): Likewise, rename to...
5329         (timer::pop): ...this, and add "m_" prefixes.
5330         (timevar_start): Replace test for "timevar_enable" with one for
5331         "g_timer", and move bulk of implementation to...
5332         (timer::start): ...here, adding "m_" prefixes.
5333         (timevar_stop): Likewise, from here...
5334         (timer::stop): ...to here.
5335         (timevar_cond_start): Likewise, from here...
5336         (timer::cond_start): ...to here.
5337         (timevar_cond_stop): Likewise, from here...
5338         (timer::cond_stop): ...to here.
5339         (validate_phases): Rename to...
5340         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
5341         locals "total" and "tv" const.
5342         (timevar_print): Rename to...
5343         (timer::print): ...this, and add "m_" prefixes.  Make locals
5344         "total" and "tv" const.  Eliminate test for timevar_enable.
5345         * timevar.h (timevar_enable): Eliminate.
5346         (g_timer): New declaration.
5347         (timevar_push_1): Eliminate.
5348         (timevar_pop_1): Eliminate.
5349         (timevar_print): Eliminate.
5350         (class timer): New class.
5351         (timevar_push): Rewrite to use g_timer.
5352         (timevar_pop): Likewise.
5353         * toplev.c (toplev::~toplev): Likewise.
5355 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
5357         * arm-protos.h (arm_sched_autopref): Delete.
5358         (tune_params): Re-organize, use enums for flag values.
5359         (FUSE_OPS): New macro.
5360         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
5361         (ARM_PREFETCH_BENEFICIAL): Likewise.
5362         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
5363         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
5364         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
5365         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
5366         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
5367         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
5368         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
5369         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
5370         format.
5371         (arm_option_override, thumb2_reorg, arm_print_tune_info)
5372         (aarch_macro_fusion_pair_p): Update uses of current_tune.
5373         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
5375 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
5377         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
5378         "break".
5380 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
5381             Sandra Loosemore <sandra@codesourcery.com>
5383         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
5384         value.
5385         (REG_CLASS_NAMES): Add "IJMP_REGS".
5386         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
5387         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
5388         use new "c" register constraint.
5389         * config/nios2/constraint.md (c): New register constraint
5390         corresponding to IJMP_REGS.
5392 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
5394         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
5395         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
5396         define_splits): Delete, revamp, transmogrify into ...
5397         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
5398         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
5399         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
5400         New.
5402 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
5404         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
5405         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
5407 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
5409         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
5410         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
5411         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
5412         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
5413         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
5414         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
5415         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
5416         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
5417         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
5418         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
5419         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
5420         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
5421         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
5422         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
5423         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
5424         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
5425         and 30 corresponding splitters): Delete.
5427 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
5429         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
5430         zero_extract.
5432 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
5434         * combine.c (recog_for_combine_1): New function, factored out
5435         from recog_for_combine.
5436         (change_zero_ext): New function.
5437         (recog_for_combine): If recog fails, try again with the pattern
5438         modified by change_zero_ext; if that still fails, restore the
5439         pattern.
5441 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
5443         * combine.c (get_undo_marker): New function.
5444         (undo_to_marker): New function, largely factored out from ...
5445         (undo_all): ... this.  Adjust.
5447 2015-05-12  Richard Biener  <rguenther@suse.de>
5449         PR tree-optimization/66101
5450         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
5451         fixup if we turn a loop exit edge to a fallthru edge.
5453 2015-05-12  Richard Biener  <rguenther@suse.de>
5455         PR tree-optimization/37021
5456         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
5457         (SLP_TREE_TWO_OPERATORS): New define.
5458         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
5459         SLP_TREE_TWO_OPERATORS.
5460         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
5461         SLP node.
5462         (vect_build_slp_tree): Adjust.
5463         (vect_analyze_slp_cost_1): Likewise.
5464         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
5465         emitting two vector stmts and mixing the results.
5467 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5469         * call.c (print_z_candidates): Remove dead code.
5471 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5473         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
5474         and zEC12_simple_fp.
5475         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
5476         to 1.
5478 2015-05-12  Tom de Vries  <tom@codesourcery.com>
5480         PR tree-optimization/66010
5481         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
5482         ifn_va_arg.
5483         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
5484         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
5485         va_lists are passed, and remove corresponding handling.
5486         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
5487         do_deref argument to ifn_va_arg.
5488         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
5489         ifn_va_arg.
5491 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5493         PR target/65955
5494         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
5495         REG before taking its REGNO.
5497 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5499         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
5500         rsp->sign_bit_copies and rsp->nonzero_bits into ...
5501         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
5502         present to get more accurate information about the number of sign bit
5503         copies and non zero bits.
5505 2015-05-12  Richard Biener  <rguenther@suse.de>
5507         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
5508         do not allow unrolling.
5510 2015-05-11  Richard Henderson  <rth@redhat.com>
5512         * config/i386/i386-modes.def (CCP): New.
5513         * config/i386/i386.c (put_condition_code): Handle it.
5514         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
5516 2015-05-11  Richard Henderson  <rth@redhat.com>
5518         * target.def (md_asm_clobbers): Replace with...
5519         (md_asm_adjust): this.
5520         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
5521         (TARGET_MD_ASM_ADJUST): New.
5522         * tm.texi: Rebuild.
5523         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
5524         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
5525         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
5527         * cfgexpand.c (check_operand_nalternatives): Accept vector of
5528         constraints instead of lists of outputs and inputs.
5529         (expand_asm_stmt): Save and restore input_location around the
5530         body of the function.  Move asm data into vectors instead of
5531         building tree lists.  Generate cleanup sequences as needed,
5532         rather than waiting til the end.  Use new md_asm_adjust hook.
5534         * config/vxworks.c: Include vec.h before target.h.
5535         * gimple.c: Likewise.
5536         * incpath.c: Likewise.
5537         * mode-switching.c: Likewise.
5539         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
5540         (cris_md_asm_adjust): this.
5541         (TARGET_MD_ASM_CLOBBERS): Remove.
5542         (TARGET_MD_ASM_ADJUST): New.
5543         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
5544         (ix86_md_asm_adjust): this.
5545         (TARGET_MD_ASM_CLOBBERS): Remove.
5546         (TARGET_MD_ASM_ADJUST): New.
5547         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
5548         (mn10300_md_asm_adjust): this.
5549         (TARGET_MD_ASM_CLOBBERS): Remove.
5550         (TARGET_MD_ASM_ADJUST): New.
5551         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
5552         (rs6000_md_asm_adjust): this.
5553         (TARGET_MD_ASM_CLOBBERS): Remove.
5554         (TARGET_MD_ASM_ADJUST): New.
5555         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
5556         (visium_md_asm_adjust): this.
5557         (TARGET_MD_ASM_CLOBBERS): Remove.
5558         (TARGET_MD_ASM_ADJUST): New.
5560 2015-05-11  Richard Henderson  <rth@redhat.com>
5562         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
5563         if noutputs is zero.
5564         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
5566         * cfgexpand.c (expand_asm_operands): Merge into...
5567         (expand_asm_stmt): ... here.
5569         * cfgexpand.c (expand_asm_operands): Don't call
5570         resolve_asm_operand_names.
5571         * stmt.c (resolve_asm_operand_names): Clarify block comment.
5573 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
5575         * dwarf2out.c (gen_member_die): Sanity check that we access
5576         TYPE_MAIN_VARIANT for TYPE_METHODS.
5577         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
5578         checking TYPE_METHODS.
5579         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
5580         if non-null.
5581         (build_distinct_type_copy): Clear TYPE_METHODS.
5582         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
5583         (verify_type): Allow TYPE_METHODS to be error_mark_node.
5584         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
5586 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
5588         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
5589         (emit_pattern_before_setloc): Likewise.
5591 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
5593         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
5594         for define_peephole2s.
5595         (get_peephole2_pattern): New function.
5596         (main): Use it.  Call validate_pattern.
5598 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5600         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
5601         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
5602         (Last callee saved reg is different for AVR_TINY architecture)
5604 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
5606         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
5607         when looking for memory references.
5609 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
5611         PR target/65753
5612         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
5613         via function pointers.
5615 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
5617         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
5618         indirect call by forcing address into a pseudo with -fno-plt.
5619         * common.opt (flag_plt): New option.
5620         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
5621         ([-fno-plt]): Document.
5623 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
5625         PR bootstrap/66105
5626         * config/rs6000/option-defaults.h: Add space between string literal
5627         and macro name.
5629 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5631         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
5632         accross ARM targets.
5634 2015-05-11  Christian Bruel  <christian.bruel@st.com>
5636         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
5637         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
5639 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
5641         PR rtl-optimization/66076
5642         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
5643         Don't grow the heap array if it is already big enough from a
5644         previous iteration.
5646 2015-05-11  Christian Bruel  <christian.bruel@st.com>
5648         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
5649         (is_called_in_ARM_mode): Remove.
5650         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
5651         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
5652         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
5653          arm_declare_function_name.
5655 2015-05-11  Christian Bruel  <christian.bruel@st.com>
5657         * config/arm/arm.c (arm_option_override): Reoganized and split into :
5658         (arm_option_params_internal); New function.
5659         (arm_option_check_internal): New function.
5660         (arm_option_override_internal): New function.
5661         (thumb_code, thumb1_code): Remove.
5662         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
5663         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
5664         (thumb_code, thumb1_code): Remove.
5665         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
5667 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
5669         * config/alpha/alpha.c (alpha_emit_set_const_1)
5670         (alpha_emit_set_long_const, alpha_extract_integer)
5671         (alpha_legitimate_constant_p, alpha_split_const_mov)
5672         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
5673         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
5674         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
5675         HOST_WIDE_INT_1U.
5676         * config/alpha/predicates.md (mode_mask_operand): Do not match
5677         const_double RTX.
5678         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
5679         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
5680         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
5681         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
5682         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
5684 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
5686         PR target/65780
5687         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
5688         default_binds_local_p_2.
5689         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
5690         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
5692 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
5694         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
5696 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
5698         Patch by Richard Biener
5699         * coverage.c (coverage_obj_init): Delay building of type variant
5700         until the type is finished.
5702 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
5704         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
5705         mismatch between C and C++ type; compoare correctly ARG_TYPES
5706         for non-prototypes and output correctly parameter index for METHOD_TYPE.
5707         (odr_types_equivalent_p): Fix wording of warning about attributes;
5708         it is OK to match prototype and non-prototype.
5710 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
5712         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
5713         TYPE_ARG_TYPES list.
5714         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
5715         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
5717 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
5719         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
5720         * tree.h (is_lang_specific): Constify.
5722 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
5724         PR tree-optimization/64454
5725         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
5726         Rewrite.
5728 2015-05-08  Jason Merrill  <jason@redhat.com>
5730         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
5731         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
5732         config/darwin.h, config/darwin9.h, config/elfos.h,
5733         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
5734         config/microblaze/microblaze.h, config/mips/mips.h,
5735         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
5736         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
5737         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
5738         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
5739         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
5740         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
5741         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
5742         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
5743         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
5744         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
5745         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
5746         between string literal and macro name.
5748 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5750         * jump.c: Change argument types to rtx_insn *.
5751         * rtl.h: Adjust.
5753 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5755         * lra-constraints.c: Change argument type to rtx_insn *.
5757 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5759         * df-problems.c: Change argument type to rtx_insn *.
5761 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5763         * combine.c: Change argument type to rtx_insn *.
5765 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5767         * rtl.h: Adjust.
5768         * rtlanal.c: Change argument type to rtx_insn *.
5770 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5772         * sched-deps.c: Change argument types to rtx_insn *.
5773         * sched-int.h: Adjust.
5775 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5777         * dwarf2cfi.c: Change argument type to rtx_insn *.
5779 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5781         * ira.c (decrease_live_ranges_number): Changetype of local
5782         variable to rtx_insn *.
5783         * recog.c: Change argument types to rtx_insn *.
5784         * recog.h: Adjust.
5786 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5788         * reorg.c: Change argument types to rtx_insn *.
5790 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5792         * ira-color.c: Change argument types to rtx_insn *.
5793         * lra-eliminations.c: Likewise.
5794         * ira.h: Adjust.
5796 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5798         * gcse.c: Change argument types to rtx_insn *.
5800 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5802         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
5804 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5806         * emit-rtl.c (emit_debug_insn_before): Change argument type to
5807         rtx_insn *.
5808         * rtl.h: Adjust.
5810 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5812         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
5813         * rtl.h: Adjust.
5815 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5817         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
5818         * rtl.h: Adjust.
5820 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5822         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
5823         * rtl.h: Adjust.
5825 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5827         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
5828         * rtl.h: Adjust.
5830 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5832         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
5833         to rtx_insn *.
5834         * rtl.h: Adjust.
5836 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5838         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
5839         to rtx_insn *.
5840         * rtl.h: Likewise.
5842 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5844         * except.c (can_nonlocal_goto): Change type of argument to
5845         rtx_insn *.
5846         * rtl.h: Adjust.
5848 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5850         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
5851         * rtl.h: Adjust.
5853 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5855         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
5856         * cfgrtl.c (can_delete_label_p): Adjust.
5857         * rtl.h: likewise.
5859 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5861         * reorg.c (stop_search_p): Change argument to rtx_insn *.
5863 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5865         * except.c (make_reg_eh_region_note): Change argument to
5866         rtx_insn *.
5867         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
5868         * except.h: Adjust.
5870 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5872         * mode-switching.c (commit_mode_sets): Change type of local
5873         variable from rtx to rtx_insn *.
5875 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
5877         * doc/install.texi (--enable-languages): Add missing jit and lto info.
5878         Add ^ to grep command.
5879         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
5880         arg to last gimple_simplify declaration.  Add missing gimple_build
5881         declaration for built-in function case with four tree args.
5883 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
5884             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5886         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
5887         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
5888         (GNU_USER_DYNAMIC_LINKERN32): Update.
5890 2015-05-08  Richard Biener  <rguenther@suse.de>
5892         PR tree-optimization/66036
5893         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5894         Handle strided group loads.
5895         (vect_verify_datarefs_alignment): Likewise.
5896         (vect_enhance_data_refs_alignment): Likewise.
5897         (vect_analyze_group_access): Likewise.
5898         (vect_analyze_data_ref_access): Likewise.
5899         (vect_analyze_data_ref_accesses): Likewise.
5900         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
5901         (vectorizable_load): Likewise.
5903 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
5905         * config/rs6000/rs6000.md: Require operand inequality in one
5906         of the peepholes.
5908 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
5909             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5911         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
5912         from (set ...).
5913         * config/rx/rx.md (movdi, movdf): Likewise.
5914         Likewise for define_peephole2s.
5916 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
5918         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
5919         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
5920         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
5921         vtst_u64): Rewrite using gcc vector extensions.
5923 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
5925         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
5926         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
5928 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
5930         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
5932 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5934         * config/glibc-stdint.h (OPTION_MUSL): Define.
5935         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
5936         Change the definition based on OPTION_MUSL for 64 bit targets.
5937         * config/linux.h (OPTION_MUSL): Redefine.
5938         * config/alpha/linux.h (OPTION_MUSL): Redefine.
5939         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
5940         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
5942 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
5943             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5945         * config.gcc (LIBC_MUSL): New tm_defines macro.
5946         * config/linux.h (OPTION_MUSL): Define.
5947         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
5948         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
5949         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
5950         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
5951         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
5952         * config/linux.opt (mmusl): New option.
5953         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
5954         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
5955         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
5956         * configure: Regenerate.
5958 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
5959             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5961         PR target/48904
5962         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
5963         * config/i386/knetbsd-gnu64.h: New file.
5965 2015-05-08  Marek Polacek  <polacek@redhat.com>
5967         PR c/64918
5968         * doc/invoke.texi: Document -Woverride-init-side-effects.
5970 2015-05-07  Marek Polacek  <polacek@redhat.com>
5972         PR c/65179
5973         * doc/invoke.texi: Document -Wshift-negative-value.
5975 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
5977         * gcov-tool.c (do_merge): Refactore to remove int ret.
5978         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
5979         !type == FUNC to type != FUNC.
5980         * reload.h (struct target_reload): Changee to type of
5981         x_spill_indirect_levels from bool to unsigned char.
5983 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
5985         * rtl.h (always_void_p): New function.
5986         * gengenrtl.c (always_void_p): Likewise.
5987         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
5988         with code foo are always VOIDmode.
5989         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
5990         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
5991         compare-elim.c, config/aarch64/aarch64.c,
5992         config/aarch64/aarch64.md, config/alpha/alpha.c,
5993         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
5994         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
5995         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
5996         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
5997         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
5998         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
5999         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
6000         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
6001         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
6002         config/ia64/vect.md, config/iq2000/iq2000.c,
6003         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
6004         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
6005         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
6006         config/mep/mep.c, config/microblaze/microblaze.c,
6007         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
6008         config/mn10300/mn10300.c, config/msp430/msp430.c,
6009         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
6010         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
6011         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
6012         config/rs6000/altivec.md, config/rs6000/rs6000.c,
6013         config/rs6000/rs6000.md, config/rs6000/vector.md,
6014         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
6015         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
6016         config/sh/sh.md, config/sh/sh_treg_combine.cc,
6017         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
6018         config/spu/spu.md, config/stormy16/stormy16.c,
6019         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
6020         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
6021         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
6022         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
6023         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
6024         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
6025         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
6026         var-tracking.c: Update calls accordingly.
6028 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
6030         PR middle-end/192
6031         PR middle-end/54303
6032         * varasm.c (function_mergeable_rodata_prefix): New function.
6033         (mergeable_string_section): Use it.
6034         (mergeable_constant_section): Use it.
6036 2015-05-07  Jeff Law  <law@redhat.com>
6038         PR target/39726
6039         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
6040         simplifier to narrow arithmetic.
6041         * generic-match-head.c: (types_match, single_use): New functions.
6042         * gimple-match-head.c: (types_match, single_use): New functions.
6044 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6046         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
6047         rtx type.
6049 2015-05-07  Richard Biener  <rguenther@suse.de>
6051         PR tree-optimization/66002
6052         * passes.def: Schedule another pass_merge_phi after ifcombine, right
6053         before phiopt.
6055 2015-05-07  Marek Polacek  <polacek@redhat.com>
6056             Martin Uecker  <uecker@eecs.berkeley.edu>
6058         * doc/invoke.texi: Document -fsanitize=bounds-strict.
6059         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
6060         into SANITIZE_NONDEFAULT.
6061         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
6063 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
6065         PR target/66015
6066         * config/alpha/alpha.c (alpha_override_options_after_change): New.
6067         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
6068         (alpha_override_options): Move align_loops, align_jumps and
6069         align_functions handling into alpha_override_options_after_change.
6071 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
6072             Chris Jones  <chrisj@nvidia.com>
6073             Joshua Conner  <jconner@nvidia.com>
6075         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
6076         linking of crtfastmath.o.
6077         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
6079 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
6081         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
6082         (cstore<mode>4_unsigned_imm): New expander.
6083         (cstore<mode>4): Remove empty constraint strings.  Use the new
6084         expanders.
6086 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
6088         PR target/64208
6089         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
6090         alternatives.
6092 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6094         * config/aarch64/geniterators.sh: Use standard BRE in sed.
6096 2015-05-06  Alan Modra  <amodra@gmail.com>
6098         PR target/66033
6099         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
6100         (UNSPEC_NOP): Define.
6101         (reload_vsx_from_gpr<mode>): Add missing DONE.
6102         (reload_gpr_from_vsx<mode>): Likewise.
6103         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
6104         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
6106 2015-05-06  Christian Bruel  <christian.bruel@st.com>
6108         PR target/66015
6109         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
6110         align_jumps, align_functions into aarch64_override_options_after_change.
6112 2015-05-06  Richard Biener  <rguenther@suse.de>
6114         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
6115         vect_transform_slp_perm_load to check if we support a permutation
6116         for basic-block vectorization.
6118 2015-05-06  Nick Clifton  <nickc@redhat.com>
6120         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
6121         used, even if it is not being used as a frame pointer.
6123 2015-05-05  Jason Merrill  <jason@redhat.com>
6125         * dwarf2out.c (gen_member_die): Don't emit anything for an
6126         anonymous class constructor.
6128 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
6130         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
6131         that it reflects the block structure.
6132         (afdo_propagate_edge): Likewise.
6133         (afdo_calculate_branch_prob): Likewise.
6134         (afdo_annotate_cfg): Likewise.
6135         * cfgcleanup.c (equal_different_set_p): Likewise.
6136         (try_crossjump_to_edge): Likewise.
6137         * cgraph.c (cgraph_node::verify_node): Likewise.
6138         * cgraphunit.c (expand_all_functions): Likewise.
6139         * config/i386/i386.c (ix86_expand_copysign): Likewise.
6140         (exact_dependency_1): Likewise.
6141         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
6142         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
6143         * gensupport.c (process_define_subst): Likewise.
6144         * lto-wrapper.c (merge_and_complain): Likewise.
6145         * tree-if-conv.c (if_convertible_bb_p): Likewise.
6146         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
6147         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
6148         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
6149         * tree-vect-loop.c (vectorizable_reduction): Likewise.
6150         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
6151         * tree-vect-stmts.c (vectorizable_shift): Likewise.
6152         * tree-vrp.c (vrp_finalize): Likewise.
6153         * tree.c (variably_modified_type_p): Likewise.
6155 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
6157         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
6158         on darwin12 and later.
6159         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
6160         file to pass -rdynamic on darwin12 and later.
6161         * config/darwin.opt (rdynamic): Add.
6163 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
6165         * doc/extend.texi (C Extensions): Update menu for moved Variable
6166         Attributes and Type Attributes sections.
6168 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
6170         PR target/65990
6171         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
6172         if rep_8byte stringop strategy was specified for 32-bit target.
6174 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
6176         PR target/65915
6177         * config/i386/i386.md (vector convert to float spltiter): Check for
6178         xmm16+, when splitting scalar float conversion.
6179         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
6181 2015-05-05  Nick Clifton  <nickc@redhat.com>
6183         * config/msp430/msp430-opts.h (enum msp430_regions): New.
6184         * config/msp430/msp430.c (msp430_override_options): Complain if
6185         -mcode-region or -mdata-region is used on a non MSP430X.
6186         (msp430_section_attr): New function.  Checks lower, upper and
6187         either attributes.
6188         (msp430_attribute_table): Add lower, upper and either.
6189         (gen_prefix): New function.  Generates a prefix for a section
6190         name.
6191         (msp430_select_section): New function - handles the choice of
6192         section for an object.  Takes into account memory region
6193         attributes and options.
6194         (msp430_function_section): Use gen_prefix.
6195         (TARGET_SECTION_TYPE_FLAGS): Define.
6196         (msp430_section_type_flags): New function.
6197         (TARGET_ASM_UNIQUE_SECTION): Define.
6198         (msp430_unique_section): New function.
6199         (msp430_output_aligned_decl_common): New function.
6200         (msp430_do_not_relax_short_jumps): New function.
6201         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
6202         Define.
6203         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6204         * config/msp430/msp430-protos.h
6205         (msp430_do_not_relax_short_jumps): New prototype.
6206         (msp430_output_aligned_decl_common): New prototype.
6207         * config/msp430/msp430.md (length): New attribute.
6208         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
6209         then use a long code sequence for short jumps.
6210         * config/msp430/msp430.opt (mcode-region): New.
6211         (mdata-region): New.
6212         * doc/invoke.texi: Document new options.
6213         * doc/extend.texi: Document new attributes.
6215 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
6217         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
6218         (tune_params): Add field branch_costs.
6219         (aarch64_branch_cost): Declare.
6220         * gcc/config/aarch64.c (generic_branch_cost): New.
6221         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
6222         (cortexa53_tunings): Likewise.
6223         (cortexa57_tunings): Likewise.
6224         (thunderx_tunings): Likewise.
6225         (xgene1_tunings): Likewise.
6226         (aarch64_branch_cost): Define.
6227         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
6229 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
6231         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
6232         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
6233         * config/i386/i386.md: Ditto.
6234         * config/i386/winnt.c: Ditto.
6236 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
6238         * doc/extend.texi (__atomic Builtins): Move implementation details
6239         to the end of the description, rewrite opening paragraphs, state
6240         difference with __sync builtins, state C11/C++11 assumptions,
6241         weaken itemized descriptions, add explanation of memory model
6242         behaviour, expand description of compare-exchange, simplify text.
6244 2015-05-05  Renlin Li  <renlin.li@arm.com>
6246         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
6248 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
6250         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
6251         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
6252         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
6253         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
6254         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
6255         * configure: Regenerate.
6256         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
6257         * doc/install.texi (aarch64*-*-*): Document new
6258         --enable-fix-cortex-a53-843419 option.
6259         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
6260         and -mno-fix-cortex-a53-843419 options.
6262 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
6264         PR target/65871
6265         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
6267 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
6269         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
6270         fix overactive TYPE_MIN_VALUE check and add FIXME for type
6271         compatibility problems.
6273 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
6275         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
6276         constraints.
6277         (cbranchsi4_reg): New.
6278         * config/microblaze/microblaze.c
6279         (microblaze_expand_conditional_branch_reg): New.
6280         * config/microblaze/microblaze-protos.h
6281         (microblaze_expand_conditional_branch_reg): New prototype.
6283 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
6285         * config/microblaze/microblaze.md (peephole2): New.
6287 2015-05-04  Jeff Law  <law@redhat.com>
6289         Revert:
6290         2015-05-04  Jeff Law  <law@redhat.com>
6292         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
6293         simplifier to narrow arithmetic.
6294         * generic-match-head.c: (types_match, single_use): New functions.
6295         * gimple-match-head.c: (types_match, single_use): New functions.
6297 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
6299         PR target/65987
6300         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
6301         (split_branches): Likewise.
6303 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
6305         * common.opt (fdelete-null-pointer-checks): Init to -1.
6306         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
6307         override flag_delete_null_pointer_checks default.
6308         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
6309         behavior re address zero.  Better document target-specific behavior.
6310         (-fisolate-errneous-paths-dereference): Mention relationship to
6311         -fdelete-null-pointer-checks.
6313 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
6315         PR tree-optimization/65984
6316         * ubsan.c: Include tree-cfg.h.
6317         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
6318         stmt_could_throw_p test, rename can_throw variable to ends_bb.
6320 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
6322         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
6323         to CONST_DOUBLE_P predicate.
6324         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
6325         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
6326         allow only operands that satisfy standard_sse_constant_p predicate.
6327         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
6328         to CONST_DOUBLE_P predicate.
6330 2015-05-04  Jeff Law  <law@redhat.com>
6332         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
6333         simplifier to narrow arithmetic.
6334         * generic-match-head.c: (types_match, single_use): New functions.
6335         * gimple-match-head.c: (types_match, single_use): New functions.
6337 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
6339         * config/arm/arm.c: Restore bootstrap.
6341 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
6343         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
6344         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
6345         as CONST_WIDE_INT, not CONST_DOUBLE.
6346         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
6347         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
6348         (ix86_find_base_term): Do not check for CONST_DOUBLE.
6349         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
6350         (ix86_build_signbit_mask): Rewrite using wide ints.
6351         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
6352         (ix86_rtx_costs): Handle CONST_WIDE_INT.
6353         (find_constant): Ditto.
6354         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
6355         using gen_int_mode.
6356         * config/i386/predicates.md (x86_64_immediate_operand)
6357         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
6358         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
6359         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
6360         (const0_operand): Also match const_wide_int.
6361         (constm1_operand): Ditto.
6362         (const1_operand): Ditto.
6364 2015-05-04  Richard Biener  <rguenther@suse.de>
6366         PR tree-optimization/65965
6367         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
6368         store groups at gaps.
6370 2015-05-04  Richard Biener  <rguenther@suse.de>
6372         PR tree-optimization/65935
6373         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
6374         then make sure to apply that swapping to the IL.
6376 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
6378         * Makefile.in (PATCHLEVEL_c): New variable.
6379         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
6380         expand the same way as if DEVPHASE_c was non-empty.
6382 2015-05-04  Kai Tietz  <ktietz@redhat.com>
6384         PR target/65559
6385         * lto-wrapper.c (run_gcc): Open filename
6386         in binary-mode.
6388 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
6390         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
6391         sections up in file, to immediately after the Function Attributes
6392         section.
6394 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
6396         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
6398 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6400         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
6401         (insert_partition_copy_on_edge): Adjust.
6402         (insert_rtx_to_part_on_edge): Likewise.
6403         (insert_part_to_rtx_on_edge): Likewise.
6405 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6407         * function.c (set_return_jump_label): Change type of argument to
6408         rtx_insn *.
6409         * function.h (set_return_jump_label): Adjust.
6411 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6413         * reload.h (struct reg_equivs_t): Change type of init to
6414         rtx_insn *.
6415         * ira.c (fix_reg_equiv_init): Adjust.
6416         * reload1.c (eliminate_regs_1): Likewise.
6417         (init_eliminable_invariants): Likewise.
6419 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6421         * cselib.c (fp_setter_insn): Take a rtx_insn *.
6422         * cselib.h (fp_setter_insn): Adjust.
6424 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6426         * recog.c (struct validate_replace_src_data): Change type of
6427         insn field to rtx_insn *.
6428         (validate_replace_src_group): Change type of argument to rtx_insn *.
6429         * recog.h (validate_replace_src_group): Adjust.
6431 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6433         * haifa-sched.c: Change the type of some variables to rtx_insn *.
6434         * sched-deps.c: Likewise.
6435         * sched-int.h: Likewise.
6436         * sched-rgn.c: Likewise.
6437         * sel-sched.c: Likewise.
6439 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6441         to rtx_insn *.
6442         * config/i386/i386.c: Change the type of some arguments to
6443         rtx_insn *.
6444         * config/arm/arm.c: Likewise.
6446 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6448         * lra-constraints.c: Change type of some arguments to rtx_insn *.
6450 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6452         * regcprop.c (kill_autoinc_value): Change type of argument to
6453         rtx_insn *.
6455 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6457         * genrecog.c (print_subroutine): Adjust.
6458         * recog.c (get_bool_attr_mask_uncached): Likewise.
6459         * recog.h (struct recog_data_d): Change the type of insn to
6460         rtx_insn *.
6462 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6464         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
6466 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6468         * df-problems.c (df_set_note): Change type of argument to
6469         rtx_insn *.
6471 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6473         * builtins.c (expand_builtin_trap): Change type of local
6474         variable to rtx_insn *.
6475         (add_sched_insns_for_speculation): Likewise.
6476         (ix86_emit_save_regs): Likewise.
6477         (get_scratch_register_on_entry): Likewise.
6478         (ix86_emit_restore_reg_using_pop): Likewise.
6479         (ix86_emit_leave): Likewise.
6480         (ix86_emit_restore_regs_using_mov): Likewise.
6481         (ix86_expand_epilogue): Likewise.
6482         Likewise.
6483         (rl78_alloc_physical_registers_umul): Likewise.
6484         * cselib.c (discard_useless_locs): Likewise.
6485         (cselib_invalidate_regno): Likewise.
6486         (cselib_invalidate_mem): Likewise.
6487         * function.c (expand_function_start): Likewise.
6488         (emit_use_return_register_into_block): Likewise.
6489         * gcse.c: Likewise.
6490         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
6491         * ifcvt.c (noce_get_alt_condition): Likewise.
6492         * loop-doloop.c (doloop_condition_get): Likewise.
6493         * lra-constraints.c (inherit_in_ebb): Likewise.
6494         * modulo-sched.c (sms_schedule_by_order): Likewise.
6495         * recog.c (next_insn_tests_no_inequality): Likewise.
6496         * reorg.c (emit_delay_sequence): Likewise.
6497         (update_reg_dead_notes): Likewise.
6498         (fix_reg_dead_note): Likewise.
6499         (fill_slots_from_thread): Likewise.
6500         (delete_computation): Likewise.
6502 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
6504         * doc/extend.texi (Variable Attributes): Add menu and proper
6505         @nodes to subsections.  Move Microsoft Windows attributes to
6506         their own subsection.
6507         (Type Attributes): Reorganize introduction to remove duplicate
6508         list of attributes.  Add menu and proper @nodes to subsections.
6509         Alphabetize the main table of common attributes.
6511 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
6513         * match.pd: New simplification patterns.
6514         (x + (x & 1))  -> ((x + 1) & ~1)
6515         (x & ~(x & y)) -> ((x & ~y))
6516         (x | ~(x | y)) -> ((x | ~y))
6518 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6520         * target.def (attribute_table): Mention that struct attribute_spec
6521         is defined in tree-core.h rather than tree.h
6522         * doc/tm.texi: Regenerate.
6524 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
6526         * genrecog.c (test): Rename to rtx_test.  Update rest of file
6527         accordingly.
6529 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6531         PR translation/65959
6532         * params.h (DEFPARAM): Rename msgid to nocmsgid.
6534 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
6536         * gcc/config/aarch64/aarch64-protos.h (tune_params):
6537         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
6538         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
6539         Return value depending on target.
6540         (generic_tunings): Initialize new target settings.
6541         (cortexa53_tunings): Likewise.
6542         (cortexa57_tunings): Likewise.
6543         (thunderx_tunings): Likewise.
6544         (xgene1_tunings): Likewise.
6546 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
6548         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
6549         Make Cortex-A53 shift costs more accurate.
6551 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6553         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
6554         UNSIGNED_FLOAT.
6556 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
6558         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
6559         Calculate cost of op0 and op1 in PLUS and MINUS cases.
6561 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6563         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
6564         Add cost of op0 in the compare-with-fpzero case.
6566 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
6568         * builtins.c (fold_builtin_1): Remove spurious second
6569         semicolon.
6570         * cgraph.h (symtab_node::get_availability): Likewise.
6571         * opts.c (common_handle_option): Remove spurious second semicolon.
6572         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
6573         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
6575 2015-04-30  Caroline Tice  <cmtice@google.com>
6577         PR gcov-profile/65929
6578         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
6579         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
6580         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
6581         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
6582         * doc/tm.texi: Regenerate.
6583         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
6584         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
6585         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
6586         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
6588 2015-04-30  Marek Polacek  <polacek@redhat.com>
6590         * varasm.c (handle_cache_entry): Fix logic.
6592 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6594         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
6595         (*extrsi5_insn_uxtw_alt): Likewise.
6596         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
6597         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
6598         operations.
6600 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6602         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
6603         fabd in ABS case.
6605 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6607         * config/aarch64/aarch64.md
6608         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
6609         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
6610         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
6611         appropriately.  Handle alternative EON form.
6613 2015-04-30  Renlin Li  <renlin.li@arm.com>
6615         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
6616         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
6618 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
6620         PR ipa/65873
6621         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
6622         -fstrict-aliasing boundaries.
6624 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6626         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
6627         and [SU]MNEGL patterns.
6629 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6631         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
6632         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
6633         combined arithmetic-shift ops.  Properly handle all shift and extend
6634         operations that can occur in combination with PLUS/MINUS.
6635         Rename maybe_fma to compound_p.
6636         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
6637         arithmetic and shift operations.
6639 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6641         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
6642         rather than arith_shift cost when costing ADD/MINUS of an
6643         extended value.
6645 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
6647         PR lto/65948
6648         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
6649         to itself.
6651 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
6653         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
6654         are for the same position.
6656 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
6658         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
6659         vectorize_loops.
6660         (vectorize_loops): Use it.
6662 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
6664         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
6665         for aggregate types.
6666         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
6667         type to be non_ODR.
6668         * tree.c (need_assembler_name_p): Compute mangled name for
6669         non-fundamental types and integer types.
6671 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
6673         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
6674         manual swaps.
6675         * expr.c (expand_expr_real_2): Likewise.
6677 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
6679         * tree.c (build_common_builtin_nodes): Do not build
6680         __builtin_alloca_with_align as equivalent of library alloca.
6682 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
6684         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
6685         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
6686         bugus variants.
6687         * tree.c: Include print-tree.h and ipa-utils.h
6688         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
6689         (free_lang_data_in_cgraph): Call verify_type.
6690         (verify_type_variant): New function.
6691         (verify_type): New function.
6692         * tree.h (verify_type): Declare.
6694 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
6696         * config/mips/mips-cpus.def: (mips4): Change default processor
6697         from PROCESSOR_R8000 to PROCESSOR_R10000.
6699 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
6701         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
6702         la/jalr instead of jal.
6704 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
6706         PR target/65871
6707         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
6708         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
6709         (setcc+movzbl peephole2): Check also clobbered reg.
6710         (setcc+andl peephole2): Ditto.
6712 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
6714         PR libgomp/65099
6715         * config/nvptx/mkoffload.c (target_ilp32): New variable.
6716         (main): Set it depending on "-foffload-abi=[...]".
6717         (compile_native, main): Use it to pass "-m32" or "-m64" to the
6718         compiler.
6720 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
6722         PR target/65770
6723         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
6724         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
6725         Flip lane index back at assembly time for bigendian.
6727 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
6729         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
6730         * gimplify.c (gimplify_omp_workshare): Use it.
6732 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
6734         * Makefile.in (build/genrecog.o): Depend on inchash.h.
6735         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
6736         build/inchash.o
6737         * genrecog.c: Rewrite most of the code except for the third page.
6739 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
6741         * inchash.h, inchash.c: Include bconfig.h for build objects.
6742         * Makefile.in (build/inchash.o): New rule.
6744 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
6746         PR target/65924
6747         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
6748         number in type attribute expression.
6750 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
6752         * loop-iv.c (canon_condition): Generalize to all types of integer
6753         constant.
6755 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
6757         * gimple-walk.c: Prune duplicate or unneeded includes.
6758         (walk_gimple_asm): Only call parse_input_constraint or
6759         parse_output_constraint if their findings are used.
6760         Honour parse_input_constraint and parse_output_constraint
6761         result.
6763 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
6765         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
6767 2015-04-29  Tom de Vries  <tom@codesourcery.com>
6769         PR tree-optimization/65893
6770         * passes.def (pass_all_optimizations): Move pass_stdarg to after
6771         pass_dce.
6773 2015-04-29  Richard Biener  <rguenther@suse.de>
6775         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6776         compute GROUP_SIZE for basic-block SLP.
6777         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
6778         take into account gaps.
6779         (vect_get_mask_element): Properly reject references to previous
6780         vectors.
6781         (vect_transform_slp_perm_load): Likewise.
6783 2015-04-29  Christian Bruel  <christian.bruel@st.com>
6785         PR target/64835
6786         * config/i386/i386.c (ix86_default_align): New function.
6787         (ix86_override_options_after_change): Call ix86_default_align.
6788         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
6789         (ix86_override_options_after_change): New function.
6791 2015-04-28  Jeff Law  <law@redhat.com>
6793         * tree-ssa-dom.c (record_equality); Fix comment typos.
6795 2015-04-28  Tom de Vries  <tom@codesourcery.com>
6797         PR tree-optimization/65887
6798         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
6800 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
6802         * doc/extend.texi (Declaring Attributes of Functions): Split into
6803         subsections by target.  Alphabetize the table of common attributes.
6804         Rewrite some of the introductory text to reflect the new structure.
6805         Update some cross-references to point to the new subsections.
6806         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
6807         duplicate copies in the discussion of function, label, and type
6808         attributes.
6810 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
6812         PR bootstrap/65910
6813         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
6815 2015-04-28  Jason Merrill  <jason@redhat.com>
6817         PR c++/65734
6818         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
6819         (finalize_type_size): Respect TYPE_USER_ALIGN.
6820         (layout_type) [ARRAY_TYPE]: Likewise.
6822 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
6824         * config/arm/arm.md (*arm_movt): Fix type attribute.
6825         (*cmpsi_shiftsi): Likewise.
6826         (*cmpsi_shiftsi_swp): Likewise.
6827         (*movsicc_insn): Likewise.
6828         (*cond_move): Likewise.
6829         (*if_plus_move): Likewise.
6830         (*if_move_plus): Likewise.
6831         (*if_arith_move): Likewise.
6832         (*if_move_arith): Likewise.
6833         (*if_shift_move): Likewise.
6834         (*if_move_shift): Likewise.
6835         (*arm_movtas_ze): Likewise.
6836         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
6837         redundancy and type attribute.
6838         (*thumb2_movsi_insn): Fix type attribute.
6839         (*thumb2_addsi_short): Likewise.
6840         (thumb2_addsi3_compare0): Likewise.
6841         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
6842         attributes accordingly.
6844 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
6846         PR other/65911
6847         * function.c (pad_to_arg_alignment): Add parentheses.
6849 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
6851         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
6852         libgcc/config/frv/elf-lib.h.
6854 2015-04-28  Tom de Vries  <tom@codesourcery.com>
6856         * tree-call-cdce.c: Fix example in header comment.
6858 2015-04-28  Richard Biener  <rguenther@suse.de>
6860         PR tree-optimization/62283
6861         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
6862         fails fatally and we are vectorizing a basic-block simply
6863         cause the child to be constructed piecewise.
6864         (vect_analyze_slp_cost_1): Adjust.
6865         (vect_detect_hybrid_slp_stmts): Likewise.
6866         (vect_bb_slp_scalar_cost): Likewise.
6867         (vect_get_constant_vectors): For piecewise constructed
6868         constants place them after the last def.
6869         (vect_get_slp_defs): Adjust.
6870         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
6871         externals for basic-block vectorization.
6873 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6875         PR target/63503
6876         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
6877         aarch64-*-*.
6878         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
6879         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
6880         (AARCH64_TUNE_FMA_STEERING): Likewise.
6881         * config/aarch64/aarch64-cores.def: Set
6882         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
6883         FMUL/FMADD instructions.
6884         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
6885         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
6886         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
6887         * config/aarch64/cortex-a57-fma-steering.h: New file.
6888         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
6890 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
6892         * gensupport.c (std_preds): Add missing codes to address_operand entry.
6894 2015-04-28  Richard Biener  <rguenther@suse.de>
6896         PR tree-optimization/65851
6897         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
6898         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
6899         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
6900         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
6901         (ccp_visit_phi_node): Adjust.
6902         (evaluate_stmt): For simplifications to SSA names return its
6903         lattice value if that isn't VARYING.  Return immediately when
6904         simplified to a constant.
6905         (visit_assignment): Adjust.
6906         (ccp_visit_stmt): Likewise.
6908 2015-04-28  Tom de Vries  <tom@codesourcery.com>
6910         PR tree-optimization/65818
6911         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
6912         evaluated.
6914 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6916         * calls.c (save_fixed_argument_area): Don't check
6917         ARGS_GROW_DOWNWARD with the preprocessor.
6918         (restore_fixed_argument_area): Likewise.
6919         (mem_overlaps_already_clobbered_arg_p): Likewise.
6920         (check_sibcall_argument_overlap): Likewise.
6921         (expand_call): Likewise.
6922         (emit_library_call_value_1): Likewise.
6923         (store_one_arg): Likewise.
6924         * function.c (assign_parms): Likewise.
6925         (locate_and_pad_parm): Likewise.
6926         (pad_to_arg_alignment): Likewise.
6927         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
6929 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6931         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
6932         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
6933         * calls.c (save_fixed_argument_area): Don't chekc if
6934         ARGS_GROW_DOWNWARD is defined.
6935         (restore_fixed_argument_area): Likewise.
6936         (mem_overlaps_already_clobbered_arg_p): Likewise.
6937         (check_sibcall_argument_overlap): Likewise.
6938         (expand_call): Likewise.
6939         (emit_library_call_value_1): Likewise.
6940         (store_one_arg): Likewise.
6941         * function.c (assign_parms): Likewise.
6942         (locate_and_pad_parm): Likewise.
6943         (pad_to_arg_alignment): Likewise.
6944         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
6946 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6948         * defaults.h (gen_epilogue): New function.
6949         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
6950         defined.
6951         * cfgrtl.c (cfg_layout_finalize): Likewise.
6952         * df-scan.c: Likewise.
6953         * function.c (thread_prologue_and_epilogue_insns): Likewise.
6954         (reposition_prologue_and_epilogue_notes): Likewise.
6955         * reorg.c (find_end_label): Likewise.
6956         * toplev.c: Likewise.
6958 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6960         * bb-reorder.c (HAVE_return): Don't check if its undefined.
6961         * defaults.h (gen_simple_return): New function.
6962         (gen_simple_return): Likewise.
6963         (HAVE_return): Add default definition to false.
6964         (HAVE_simple_return): Likewise.
6965         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
6966         HAVE_return and HAVE_simple_return are defined.
6967         * function.c (gen_return_pattern): Likewise.
6968         (convert_jumps_to_returns): Likewise.
6969         (thread_prologue_and_epilogue_insns): Likewise.
6970         * reorg.c (find_end_label): Likewise.
6971         (dbr_schedule): Likewise.
6972         * shrink-wrap.c: Likewise.
6973         * shrink-wrap.h: Likewise.
6975 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6977         * defaults.h (EPILOGUE_USES): Add default definition of false.
6978         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
6979         * resource.c (init_resource_info): Likewise.
6981 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6983         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
6984         to false.
6985         * dwarf2out.c (field_byte_offset): REmove check if
6986         PCC_BITFIELD_TYPE_MATTERS is defined.
6987         * stor-layout.c (layout_decl): Likewise.
6988         (update_alignment_for_field): Likewise.
6989         (place_field): Likewise.
6991 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6993         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
6994         true.
6995         * regrename.c (check_new_reg_p): Remove check if
6996         HARD_REGNO_RENAME_OK is defined.
6997         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
6999 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7001         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
7002         * cse.c (fold_rtx): Likewise.
7003         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
7004         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
7005         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
7006         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
7007         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
7008         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
7009         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
7010         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
7011         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
7012         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
7013         * Likewise.
7014         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
7015         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
7016         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
7017         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
7018         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
7019         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
7020         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
7021         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
7022         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
7023         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
7024         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
7025         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
7026         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
7027         * doc/tm.texi: Regenerate.
7028         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
7029         either true or false.
7031 2015-04-27  Jeff Law  <law@redhat.com>
7033         PR tree-optimization/65217
7034         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
7035         of them has a single use, make sure it is the LHS of the implied
7036         copy.
7038 2015-04-28  Alan Modra  <amodra@gmail.com>
7040         PR target/65810
7041         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
7042         (offsettable_ok_by_alignment): Use minimum of decl and toc
7043         pointer alignment.  Replace dead code with assertion.
7044         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
7045         case if size exceeds toc pointer alignment.
7046         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
7047         (rs6000_emit_move): Likewise.
7048         * configure.ac: Add linker toc pointer alignment check.
7049         * configure: Regenerate.
7050         * config.in: Regenerate.
7052 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
7054         * config.gcc: Add h8300-*-linux.
7055         * config/h8300/linux.h: New.
7056         * config/h8300/t-linux: New.
7057         * config/h8300/h8300.c (h8300_option_override): Normal mode
7058         is not supported for h8300-*-linux.
7059         (h8300_file_start): Target priority change.
7060         (get_shift_alg): Likewise.
7061         (h8300_shift_need_scratch_p): Likewise.
7062         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
7063         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
7065 2015-04-27  Caroline Tice  <cmtice@google.com>
7067         * final.c (final_scan_insn):  Output cold_function_name as function
7068         type.
7069         * varasm.c (cold_function_name):  Make global.
7070         (assemble_start_function):  Re-set cold_function_name.
7071         (assemble_end_function): Output cold partition size.
7072         * varasm.h (cold_function_name):  Declare global.
7074 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
7076         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
7077         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
7078         constraint.
7079         (*movxi_internal_avx512f): Ditto.
7080         (define_split): Check for xmm16+, when splitting scalar float_extend.
7081         (*extendsfdf2_mixed): Use "v" constraint.
7082         (define_split): Check for xmm16+, when splitting scalar float_truncate.
7083         (*truncdfsf_fast_sse): Use "v" constraint.
7084         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
7085         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
7086         (define_peephole2): Check for xmm16+, when converting scalar
7087         float_truncate.
7088         (define_peephole2): Check for xmm16+, when converting scalar
7089         float_extend.
7090         (*fop_<mode>_comm_mixed): Use "v" constraint.
7091         (*fop_<mode>_comm_sse): Ditto.
7092         (*fop_<mode>_1_mixed): Ditto.
7093         (*sqrt<mode>2_sse): Ditto.
7094         (*ieee_s<ieee_maxmin><mode>3): Ditto.
7096 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7098         * combine.c (simplify_if_then_else): Use std::swap instead
7099         of manually swapping.
7100         (known_cond): Likewise.
7101         (simplify_comparison): Likewise.
7103 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
7105         PR target/64579
7106         * config/rs6000/htm.md: Remove all define_expands.
7107         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
7108         UNSPECV_HTM_TABORTWCI): Remove.
7109         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
7110         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
7111         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
7112         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
7113         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
7114         tabortwci_internal): Remove define_insns.
7115         (tabort<wd>c, tabort<wd>ci): New define_insns.
7116         (tabort): Use gpc_reg_operand.
7117         (tcheck): Remove operand.
7118         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
7119         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
7120         expected value.
7121         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
7122         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
7123         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
7124         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
7125         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
7126         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
7127         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
7128         (tcheck): Remove builtin argument.
7129         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
7130         not TARGET_64BIT.
7131         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
7132         tabortdc and tabortdci builtins when not in 64-bit mode.
7133         Modify code to handle the loss of the HTM define_expands.
7134         Emit code to copy the CR register to TARGET.
7135         (htm_init_builtins): Modify code to handle the loss of the HTM
7136         define_expands.
7137         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
7138         (RS6000_BTC_64BIT): Likewise.
7139         (RS6000_BTC_CR): New macro.
7140         * doc/extend.texi: Update documentation for htm builtins.
7142 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7144         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
7145         of manually swapping.
7146         (simplify_associative_operation): Likewise.
7147         (simplify_binary_operation): Likewise.
7148         (simplify_plus_minus): Likewise.
7149         (simplify_relational_operation): Likewise.
7150         (simplify_ternary_operation): Likewise.
7152 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
7154         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
7155         (xs_hi_nonmemory_operand): Remove error.
7156         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
7157         general_operand rather than xs_hi_general_operand.
7159 2015-04-27  Richard Biener  <rguenther@suse.de>
7161         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
7162         (record_equivalences_from_stmt): Valueize rhs.
7163         (record_equality): Canonicalize x and y order via
7164         tree_swap_operands_p.  Do not swap operands for same loop depth.
7166 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
7168         PR target/65296
7169         PR target/65895
7170         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
7171         Add hint how to use own spec file.
7173 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
7175         PR tree-optimization/65875
7176         * tree-vrp.c (update_value_range): If in is_new case setting
7177         old_vr to VR_VARYING, also set new_vr to it.  Remove
7178         old_vr->type == VR_VARYING test.
7179         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
7180         SSA_PROP_INTERESTING if update_value_range returned true,
7181         but new range is VR_VARYING.
7183 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7185         * combine.c (sign_extend_short_imm): New.
7186         (set_nonzero_bits_and_sign_copies): Use above new function for sign
7187         extension of src short immediate.
7188         (reg_nonzero_bits_for_combine): Likewise for tem.
7190 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
7192         * stor-layout.c (self_referential_component_ref_p): New predicate.
7193         (copy_self_referential_tree_r): Use it.
7194         (self_referential_size): Punt for simple operations directly involving
7195         self-referential component references.
7196         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
7198 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
7200         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
7202 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
7204         * vec.h (vec): Make splice arguments const.  Update definitions
7205         accordingly.
7207 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
7209         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
7210         alternatives.
7212 2015-04-26  Tom de Vries  <tom@codesourcery.com>
7214         PR tree-optimization/65826
7215         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
7217 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
7219         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
7220         (*madd3<mode>): Ditto.
7221         (*msub4<mode>): Ditto.
7222         (*msub3<mode>): Ditto.
7223         (*nmadd4<mode>): Ditto.
7224         (*nmadd3<mode>): Ditto.
7225         (*nmadd4<mode>_fastmath): Ditto.
7226         (*nmadd3<mode>_fastmath): Ditto.
7227         (*nmsub4<mode>): Ditto.
7228         (*nmsub3<mode>): Ditto.
7229         (*nmsub4<mode>_fastmath): Ditto.
7230         (*nmsub3<mode>_fastmath): Ditto.
7232 2015-04-24  Jason Merrill  <jason@redhat.com>
7234         PR c++/50800
7235         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
7236         down when building TYPE_CANONICAL.
7237         (build_pointer_type_for_mode): Likewise.
7239 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
7241         * genrecog.c (validate_pattern): Check matching constraint refers
7242         to a lower numbered operand.
7244 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
7246         PR target/65849
7247         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
7248         save to independent variables use the Save attribute.  This will
7249         allow these options to be modified with the #pragma/attribute
7250         target support.
7251         (-mallow-movmisalign): Likewise.
7252         (-mallow-df-permute): Likewise.
7253         (-msched-groups): Likewise.
7254         (-malways-hint): Likewise.
7255         (-malign-branch-targets): Likewise.
7256         (-mvectorize-builtins): Likewise.
7257         (-msave-toc-indirect): Likewise.
7259         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
7260         can be set via the #pragma/attribute target support.
7261         (rs6000_opt_vars): Likewise.
7262         (rs6000_inner_target_options): If VSX was set, also set
7263         -mno-avoid-indexed-addresses.
7265 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7267         * config/arm/iterators.md (shiftable_ops): Rename to...
7268         (SHIFTABLE_OPS): ... This.  Update use in comments.
7269         (ior_xor): Rename to...
7270         (IOR_XOR): ... This.
7271         (vqh_ops): Rename to...
7272         (VQH_OPS): ... This.
7273         (vqhs_ops): Rename to...
7274         (VQHS_OPS): ... This.
7275         (rshifts): Rename to...
7276         (RSHIFTS): ... This.
7277         (returns): Rename to...
7278         (RETURNS): ... This.
7279         * config/arm/arm.md: Update uses of the above.
7280         * config/arm/neon.md: Likewise.
7282 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7284         * config.host (case ${host}): Add aarch64*-*-linux case.
7285         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
7286         fields to all the cores.
7287         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
7288         Add MCPU_MTUNE_NATIVE_SPECS.
7289         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
7290         field to all extensions.
7291         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
7292         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
7293         Adjust definition of AARCH64_OPT_EXTENSION.
7294         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
7295         (MCPU_MTUNE_NATIVE_SPECS): Define.
7296         * config/aarch64/driver-aarch64.c: New file.
7297         * config/aarch64/x-arch64: New file.
7298         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
7299         -mtune and -march.
7301 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
7302             Wei Mi  <wmi@google.com>
7304         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
7305         * config/i386/i386.c (extract_base_offset_in_addr): New function.
7306         (ix86_operands_ok_for_move_multiple): Ditto.
7307         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
7308         (movlpd/movhpd to movupd peephole2): Ditto.
7310 2015-04-24  Marek Polacek  <polacek@redhat.com>
7312         PR c/61534
7313         * input.h (from_macro_expansion_at): Define.
7315         PR c/63357
7316         * doc/invoke.texi: Update description of -Wlogical-op.
7318 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7320         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
7321         ternary operator in fprintf and harmonize spacing.
7323 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
7325         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
7326         Mark operand1 commutative.
7328 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
7330         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
7331         input operands in memory.
7332         (*vec_concatv2si_sse4_1): Ditto.
7333         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
7334         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
7335         register_operand.
7336         (vec_extract_hi_v32hi): Ditto.
7337         (vec_extract_hi_v64hi): Ditto.
7338         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
7340 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7341             Steven Bosscher <steven@gcc.gnu.org>
7343         PR rtl-optimization/34503
7344         * cprop.c (cprop_reg_p): New.
7345         (hash_scan_set): Use above function to check if register can be
7346         propagated.
7347         (find_avail_set): Return up to two sets, one whose source is a
7348         register and one whose source is a constant.  Sets are returned in an
7349         array passed as parameter rather than as a return value.
7350         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
7351         sets returned by find_avail_set, starting with the one whose source is
7352         a constant. Use cprop_reg_p to check if register can be propagated.
7353         (do_local_cprop): Use cprop_reg_p to check if register can be
7354         propagated.
7355         (implicit_set_cond_p): Likewise.
7357 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
7359         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
7360         (sem_function::equals): IGNORED_NODES parameter is now unused;
7361         update call of equals_private.
7362         (sem_function::equals_private): Do not call equals_wpa; skip
7363         gimple body matching if there is no body.
7364         (sem_function::init): Add logic to hash tthunk info.
7365         (sem_function::parse): Also parse thunks.
7366         * ipa-icf.h (equals_private): Update declaration.
7368 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7370         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
7371         asterisk from name so this can be generated directly.
7372         (*altivec_stvx_<mode>_internal): Likewise.
7373         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
7374         that this is never called during or after reload/lra.
7375         (rs6000_frame_related): Remove split_reg
7376         argument and logic that references it.
7377         (emit_frame_save): Remove last parameter from call to
7378         rs6000_frame_related.
7379         (rs6000_emit_prologue): Remove last parameter from eight calls to
7380         rs6000_frame_related.  Force generation of stvx instruction for
7381         Altivec register saves.  Remove split_reg handling, which is no
7382         longer needed.
7383         (rs6000_emit_epilogue):  Force generation of lvx instruction for
7384         Altivec register restores.
7386 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7388         * config/rs6000/rs6000.opt (mcrypto): Change option description to
7389         match category changes in ISA 2.07B.
7391 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7393         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
7394         iterators.
7395         (cmp_op, cmp_type): New code attributes.
7396         (NEON_VCMP, NEON_VACMP): New int iterators.
7397         (cmp_op_unsp): New int attribute.
7398         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
7399         (neon_vceq<mode>): Delete.
7400         (neon_vc<cmp_op><mode>_insn): New pattern.
7401         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
7402         (neon_vcgeu<mode>): Delete.
7403         (neon_vcle<mode>): Likewise.
7404         (neon_vclt<mode>: Likewise.
7405         (neon_vcage<mode>): Likewise.
7406         (neon_vcagt<mode>): Likewise.
7407         (neon_vca<cmp_op><mode>): New define_expand.
7408         (neon_vca<cmp_op><mode>_insn): New pattern.
7409         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
7411 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
7413         * tree.h (attribute_value_equal): Declare.
7414         * tree.c (attribute_value_equal): Export.
7416 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
7418         * ipa-icf.c (sem_item::compare_attributes): New function.
7419         (sem_item::compare_referenced_symbol_properties): Compare variable
7420         attributes.
7421         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
7422         (sem_function::param_used_p): New function.
7423         (sem_function::equals_wpa): Fix attribute comparsion; match
7424         parameter type codes; do not compare paremter flags when
7425         they are not used; compare edge flags; compare indirect calls.
7426         (sem_item::update_hash_by_addr_refs): Hash reference type.
7427         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
7428         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
7429         reference use type.
7430         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
7431         * ipa-icf.h (compare_attributes, param_used_p): Declare.
7433 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
7435         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
7436         cleanup.
7437         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
7438         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
7439         (sem_item::compare_referenced_symbol_properties): New.
7440         (sem_item::hash_referenced_symbol_properties): New.
7441         (sem_item::compare_cgraph_references): Rename to ...
7442         (sem_item::compare_symbol_references): ... this one; use
7443         compare_referenced_symbol_properties.
7444         (sem_function::equals_wpa): Do not compare
7445         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
7446         DECL_IS_OPERATOR_NEW; compare pointer sizes.
7447         (sem_item::update_hash_by_addr_refs): Call
7448         hash_referenced_symbol_properties.
7449         (sem_item::update_hash_by_local_refs): Cleanup.
7450         (sem_function::merge): Do not mix up symbol properties.
7451         (sem_variable::equals_wpa): Use compare_symbol_references.
7452         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
7453         (sem_item::hash_referenced_symbol_properties): New.
7454         (sem_item::compare_symbol_references): New.
7455         (sem_item::compare_cgraph_references): Remove.
7457 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
7459         PR target/26702
7460         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
7461         Emit size of local.
7463 2015-04-23  Nick Clifton  <nickc@redhat.com>
7465         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
7466         ATTRIBUTE_UNUSED to x parameter.
7467         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
7469 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7471         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
7472         TARGET_CRYPTO to TARGET_P8_VECTOR>
7473         (crypto_vpermxor_<mode>): Likewise.
7474         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
7475         (BU_CRYPTO_3A): Likewise.
7476         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
7477         (BU_CRYPTO_OVERLOAD_3A): New #define.
7478         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
7479         (VPMSUMH): Likewise.
7480         (VPMSUMW): Likewise.
7481         (VPMSUMD): Likewise.
7482         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
7483         (VPERMXOR_V4SI): Likewise.
7484         (VPERMXOR_V8HI): Likewise.
7485         (VPERMXOR_V16QI): Likewise.
7486         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
7487         BU_CRYPTO_OVERLOAD_2A.
7488         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
7489         BU_CRYPTO_OVERLOAD_3A.
7490         * config/rs6000/rs6000.opt (mcrypto): Change description of
7491         option.
7493 2015-04-23  Richard Biener  <rguenther@suse.de>
7495         * passes.def: Remove copy propagation passes run directly after CCP.
7496         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
7497         SSA names.
7498         (ccp_visit_phi_node): Rework to handle first executable edge
7499         specially.
7501 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
7503         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
7504         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
7505         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
7506         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
7507         (thumb_legimitimize_reload_address): Remove.
7508         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
7509         Remove.
7510         (thumb_legimitimize_reload_address): Remove.
7512 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7514         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
7516 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7518         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
7519         MAX_LDM_STM_OPS.
7520         (store_multiple): Likewise.
7522 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7524         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
7525         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
7526         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
7527         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
7528         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
7529         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
7530         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
7531         Specify issue_rate value.
7532         (arm_issue_rate): Look up issue rate from tuning structs. Remove
7533         large switch statement.
7534         (arm_marvell_pj4_tune): New struct.
7535         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
7536         struct.
7538 2015-04-23  Richard Biener  <rguenther@suse.de>
7540         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
7541         (vect_find_last_store_in_slp_instance): Rename to ...
7542         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
7543         (vect_analyze_slp_cost_1): Use vector_load for constant defs
7544         and vec_construct for external defs when estimating prologue cost.
7545         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
7546         Compute costs here only when vectorizing loops.
7547         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
7548         have been determined.
7549         (vect_schedule_slp_instance): Simplify vectorized code placement
7550         and prepare for in-BB external defs.
7551         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
7552         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
7553         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
7554         guard.
7555         (vect_model_load_cost): Likewise.
7556         (vectorizable_store): Instead add it here.
7557         (vectorizable_load): Likewise.
7558         (vect_is_simple_use): Dump def type textually.
7560 2015-04-23  Richard Biener  <rguenther@suse.de>
7562         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
7563         * cfgloop.c (verify_loop_structure): Verify the root loop node.
7564         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
7565         instead of get_eh_region_from_lp_number.
7566         * loop-init.c (fix_loop_structure): If we removed a loop, reset
7567         the SCEV cache.
7569 2015-04-23  Anton Blanchard  <anton@samba.org>
7571         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
7572         need for -mprofile-kernel to save LR to stack.
7574 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7576         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
7577         adjustments.
7578         (insn_is_swappable_p): Return 1 for a convert from double to
7579         single precision when all of its uses are splats of BE element
7580         zero.
7582 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
7584         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
7586 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7588         PR target/65456
7589         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
7590         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
7591         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
7592         option.
7593         (rs6000_builtin_mask_for_load): Return 0 for targets with
7594         efficient unaligned VSX accesses so that the vectorizer will use
7595         direct unaligned loads.
7596         (rs6000_builtin_support_vector_misalignment): Always return true
7597         for targets with efficient unaligned VSX accesses.
7598         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
7599         stores on targets with efficient unaligned VSX accesses is almost
7600         always the same as the cost of an aligned load or store, so model
7601         it that way.
7602         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
7603         unaligned vectors if we have efficient unaligned VSX accesses.
7604         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
7605         undocumented option.
7607 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7609         Revert:
7610         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
7612         * config.gcc (LIBC_MUSL): New tm_defines macro.
7613         * config/linux.h (OPTION_MUSL): Define.
7614         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7615         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7616         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7618         * config/linux.opt (mmusl): New option.
7619         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
7620         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
7622         * configure: Regenerate.
7624 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
7626         * config.gcc (LIBC_MUSL): New tm_defines macro.
7627         * config/linux.h (OPTION_MUSL): Define.
7628         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7629         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7630         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7632         * config/linux.opt (mmusl): New option.
7633         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
7634         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
7636         * configure: Regenerate.
7638 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
7640         * doc/invoke.texi (-fsanitize-sections): Update description.
7641         * asan.c (set_sanitized_sections): Parse incoming arg.
7642         (section_sanitized_p): Support wildcards.
7644 2015-04-22  Tom de Vries  <tom@codesourcery.com>
7646         PR tree-optimization/65823
7647         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
7648         equality between ap_copy and ap.
7650 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7652         PR target/47098
7653         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
7655 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7657         PR target/47122
7658         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
7660 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7662         PR target/55144
7663         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
7664         remove already contained t-files.
7666 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7668         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
7669         Remove unneeded forward declarations.
7670         (suitable_for_tail_call_opt_p): Commentary typo fix.
7672 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7674         * varasm.c (emit_bss): Remove redundant guard.
7676 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7678         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
7680 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7682         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
7684 2015-04-22  Hale Wang  <hale.wang@arm.com>
7685             Terry Guo  <terry.guo@arm.com>
7687         PR rtl-optimization/64818
7688         * combine.c (can_combine_p): Don't combine user-specified
7689         register if it is in an asm input.
7691 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
7693         PR ipa/65076
7694         * passes.def (early_optimizations): Add pass_dse.
7696 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7698         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
7699         * reorg.c (redundant_insn): Remove ifdef
7700         INSN_REFERENCES_ARE_DELAYED.
7701         * resource.c (mark_referenced_resources): Likewise.
7703 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7705         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
7706         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
7707         * resource.c (mark_set_resources): Likewise.
7709 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7711         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
7712         * cfgcleanup.c (flow_find_cross_jump): Likewise.
7713         (flow_find_head_matching_sequence): Likewise.
7714         (try_head_merge_bb): Likewise.
7715         * combine.c (can_combine_p): Likewise.
7716         (try_combine): Likewise.
7717         (distribute_notes): Likewise.
7718         * df-problems.c (can_move_insns_across): Likewise.
7719         * final.c (final): Likewise.
7720         * gcse.c (insert_insn_end_basic_block): Likewise.
7721         * ira.c (find_moveable_pseudos): Likewise.
7722         * reorg.c (try_merge_delay_insns): Likewise.
7723         (fill_simple_delay_slots): Likewise.
7724         (fill_slots_from_thread): Likewise.
7725         * sched-deps.c (sched_analyze_2): Likewise.
7727 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7729         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
7730         PIC_OFFSET_TABLE_REGNUM.
7732 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7734         * alias.c (init_alias_target): Remove ifdef
7735         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
7736         * df-scan.c (df_insn_refs_collect): Likewise.
7737         (df_get_regular_block_artificial_uses): Likewise.
7738         (df_get_eh_block_artificial_uses): Likewise.
7739         (df_get_entry_block_def_set): Likewise.
7740         (df_get_exit_block_use_set): Likewise.
7741         * emit-rtl.c (gen_rtx_REG): Likewise.
7742         * ira.c (ira_setup_eliminable_regset): Likewise.
7743         * reginfo.c (init_reg_sets_1): Likewise.
7744         * regrename.c (rename_chains): Likewise.
7745         * reload1.c (reload): Likewise.
7746         (eliminate_regs_in_insn): Likewise.
7747         * resource.c (mark_referenced_resources): Likewise.
7748         (init_resource_info): Likewise.
7750 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7752         * defaults.h (MASK_RETURN_ADDR): New definition.
7753         * except.c (expand_builtin_extract_return_addr): Remove ifdef
7754         MASK_RETURN_ADDR.
7756 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7758         * defaults.h (RETURN_ADDR_OFFSET): New definition.
7759         * except.c (expand_builtin_extract_return_addr): Remove ifdef
7760         RETURN_ADDR_OFFSET.
7761         (expand_builtin_frob_return_addr): Likewise.
7763 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7765         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
7766         (try_redirect_by_replacing_jump): Likewise.
7767         (rtl_tidy_fallthru_edge): Likewise.
7768         * combine.c (insn_a_feeds_b): Likewise.
7769         (find_split_point): Likewise.
7770         (simplify_set): Likewise.
7771         * cprop.c (cprop_jump): Likewise.
7772         * cse.c (cse_extended_basic_block): Likewise.
7773         * df-problems.c (can_move_insns_across): Likewise.
7774         * function.c (emit_use_return_register_into_block): Likewise.
7775         * haifa-sched.c (sched_init): Likewise.
7776         * ira.c (find_moveable_pseudos): Likewise.
7777         * loop-invariant.c (find_invariant_insn): Likewise.
7778         * lra-constraints.c (curr_insn_transform): Likewise.
7779         * postreload.c (reload_combine_recognize_const_pattern):
7780         * Likewise.
7781         * reload.c (find_reloads): Likewise.
7782         * reorg.c (delete_scheduled_jump): Likewise.
7783         (steal_delay_list_from_target): Likewise.
7784         (steal_delay_list_from_fallthrough): Likewise.
7785         (redundant_insn): Likewise.
7786         (fill_simple_delay_slots): Likewise.
7787         (fill_slots_from_thread): Likewise.
7788         (delete_computation): Likewise.
7789         * sched-rgn.c (add_branch_dependences): Likewise.
7791 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7793         * genconfig.c (main): Always define HAVE_cc0.
7794         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
7795         HAVE_cc0.
7796         * cfgcleanup.c (flow_find_cross_jump): Likewise.
7797         (flow_find_head_matching_sequence): Likewise.
7798         (try_head_merge_bb): Likewise.
7799         * cfgrtl.c (rtl_merge_blocks): Likewise.
7800         (try_redirect_by_replacing_jump): Likewise.
7801         (rtl_tidy_fallthru_edge): Likewise.
7802         * combine.c (do_SUBST_MODE): Likewise.
7803         (insn_a_feeds_b): Likewise.
7804         (combine_instructions): Likewise.
7805         (can_combine_p): Likewise.
7806         (try_combine): Likewise.
7807         (find_split_point): Likewise.
7808         (subst): Likewise.
7809         (simplify_set): Likewise.
7810         (distribute_notes): Likewise.
7811         * cprop.c (cprop_jump): Likewise.
7812         * cse.c (cse_extended_basic_block): Likewise.
7813         * df-problems.c (can_move_insns_across): Likewise.
7814         * final.c (final): Likewise.
7815         (final_scan_insn): Likewise.
7816         * function.c (emit_use_return_register_into_block): Likewise.
7817         * gcse.c (insert_insn_end_basic_block): Likewise.
7818         * haifa-sched.c (sched_init): Likewise.
7819         * ira.c (find_moveable_pseudos): Likewise.
7820         * loop-invariant.c (find_invariant_insn): Likewise.
7821         * lra-constraints.c (curr_insn_transform): Likewise.
7822         * optabs.c (prepare_cmp_insn): Likewise.
7823         * postreload.c (reload_combine_recognize_const_pattern):
7824         * Likewise.
7825         * reload.c (find_reloads): Likewise.
7826         (find_reloads_address_1): Likewise.
7827         * reorg.c (delete_scheduled_jump): Likewise.
7828         (steal_delay_list_from_target): Likewise.
7829         (steal_delay_list_from_fallthrough): Likewise.
7830         (try_merge_delay_insns): Likewise.
7831         (redundant_insn): Likewise.
7832         (fill_simple_delay_slots): Likewise.
7833         (fill_slots_from_thread): Likewise.
7834         (delete_computation): Likewise.
7835         (relax_delay_slots): Likewise.
7836         * sched-deps.c (sched_analyze_2): Likewise.
7837         * sched-rgn.c (add_branch_dependences): Likewise.
7839 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7841         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
7842         that is trivially ded on non cc0 targets.
7843         (simplify_set): Likewise.
7844         (mark_used_regs_combine): Likewise.
7845         * cse.c (new_basic_block): Likewise.
7846         (fold_rtx): Likewise.
7847         (cse_insn): Likewise.
7848         (cse_extended_basic_block): Likewise.
7849         (set_live_p): Likewise.
7850         * rtlanal.c (canonicalize_condition): Likewise.
7851         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7853 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7855         * conditions.h: Define macros even if HAVE_cc0 is undefined.
7856         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
7857         * final.c: Likewise.
7858         * jump.c: Likewise.
7859         * recog.c: Likewise.
7860         * recog.h: Declare functions even when HAVE_cc0 is undefined.
7861         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
7863 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7865         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
7866         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
7867         * builtins.c (expand_builtin): Remove check if
7868         EH_RETURN_DATA_REGNO is defined.
7869         * df-scan.c (df_bb_refs_collect): Likewise.
7870         (df_get_exit_block_use_set): Likewise.
7871         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
7872         * ira-lives.c (process_bb_node_lives): Likewise.
7873         * lra-lives.c (process_bb_lives): Likewise.
7875 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
7877         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
7878         FIRST_PSEUDO_REG): New.
7879         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
7880         (ARG_POINTER_REGNUM): Define to ARGP_REG.
7881         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
7882         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
7883         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
7884         (FIRST_INT_REG): New.
7885         (LAST_INT_REG): New.
7886         (FIRST_*_REG): Define using *_REG.
7887         (LAST_*_REG): Ditto.
7888         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
7889         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
7890         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
7892 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7894         * expmed.c: (synth_mult): Only assume overlapping
7895         shift with previous steps in alg_sub_t_m2 case.
7897 2015-04-21  Richard Biener  <rguenther@suse.de>
7899         PR tree-optimization/65650
7900         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
7901         transitions involving copies.
7902         (set_lattice_value): Adjust for copy lattice state.
7903         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
7904         if that doesn't dominate the merge point.
7905         (bit_value_unop): Adjust what we treat as varying mask.
7906         (bit_value_binop): Likewise.
7907         (bit_value_assume_aligned): Likewise.
7908         (evaluate_stmt): When we simplified to a SSA name record a copy
7909         instead of dropping to varying.
7910         (visit_assignment): Simplify.
7912         * gimple-match.h (gimple_simplify): Add another callback.
7913         * gimple-fold.c (fold_stmt_1): Adjust caller.
7914         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
7915         for the 2nd callback.
7916         * gimple-match-head.c (gimple_simplify): Add a callback that is
7917         used to valueize the stmt operands and use it that way.
7919 2015-04-21  Richard Biener  <rguenther@suse.de>
7921         PR tree-optimization/65788
7922         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
7924 2015-04-21  Richard Biener  <rguenther@suse.de>
7926         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
7927         vec_construct cost by vec_stmt_cost.
7929 2015-04-21  Richard Biener  <rguenther@suse.de>
7931         * cfghooks.h (create_basic_block): Replace with two overloads
7932         for RTL and GIMPLE.
7933         (split_block): Likewise.
7934         * cfghooks.c (split_block): Rename to ...
7935         (split_block_1): ... this.
7936         (split_block): Add two type-safe overloads for RTL and GIMPLE.
7937         (split_block_after_labels): Call split_block_1.
7938         (create_basic_block): Rename to ...
7939         (create_basic_block_1): ... this.
7940         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
7941         (create_empty_bb): Call create_basic_block_1.
7942         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
7943         split_block_after_labels.
7944         * omp-low.c (expand_parallel_call): Likewise.
7945         (expand_omp_target): Likewise.
7946         (simd_clone_adjust): Likewise.
7947         * tree-chkp.c (chkp_get_entry_block): Likewise.
7948         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
7949         create_basic_block overload.
7950         (cgraph_node::expand_thunk): Likewise.
7951         * tree-cfg.c (make_blocks): Likewise.
7952         (handle_abnormal_edges): Likewise.
7953         * tree-inline.c (copy_bb): Likewise.
7955 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7957         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
7958         New pattern.
7959         (*xor_one_cmplsidi3_ze): Likewise.
7961 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7963         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
7964         use df_remove_problem rather than manually removing problems, leaving
7965         holes in df->problems_in_order[].
7967 2015-04-21  Tom de Vries  <tom@codesourcery.com>
7969         PR tree-optimization/65802
7970         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
7972 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7974         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
7975         Increase to 128.
7976         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
7977         at '.'.  Assert that there's enough space for everything.
7979 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
7981         PR tree-optimization/64950
7982         Revert:
7983         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
7985         PR target/41089
7986         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
7987         as volatile.
7989 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
7991         PR rtl-optimization/64916
7992         * cfgcleanup.c (values_equal_p): New function.
7993         (can_replace_by): Use it.
7995 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
7997         PR c++/65801
7998         * doc/invoke.texi ([-Wnarrowing]): Update.
8000 2015-04-20  Jeff Law  <law@redhat.com>
8002         PR tree-optimization/65658
8003         * tree-ssa-threadupdate.c (redirection_block_p): Remove
8004         redundant test for GIMPLE_ASSIGN in last change.
8006 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
8008         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
8009         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
8010         (legitimize_tls_address): Ditto.
8011         (ix86_expand_move): Ditto.
8012         (ix86_expand_binary_operator): Remove reload_in_progress checks.
8013         (ix86_expand_unary_operator): Ditto.
8014         * config/i386/predicates.md (index_register_operand): Ditto.
8016 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
8018         * reorg.c (try_merge_delay_insns): Improve correctness checking
8019         for targets with multiple delay slots.
8021 2015-04-20  Jeff Law  <law@redhat.com>
8023         PR tree-optimization/65658
8024         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
8025         statements too.
8027 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
8029         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
8030         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
8031         Delete.
8033 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
8035         PR debug/65807
8036         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
8038 2015-04-20  Richard Biener  <rguenther@suse.de>
8040         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
8041         * gimple-fold.c (gimple_build_valueize): New function.
8042         (gimple_build): Always use gimple_build_valueize as valueize hook.
8044 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
8046         PR target/64134
8047         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
8048         and overwrite variable parts if <= 1/2 the elements are variable.
8050 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
8052         PR rtl-optimization/65805
8053         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
8054         Don't use difference of offset and previous offset if
8055         update_sp_offset is non-zero.
8056         (eliminate_regs_in_insn): Ditto.
8057         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
8058         lra_eliminate_regs_1 call.
8059         * lra-constraints.c (get_equiv_with_elimination): Ditto.
8061 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
8063         * hash-table.h: Remove version of hash_table that stored value_type *.
8064         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
8065         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
8066         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
8067         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
8068         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
8069         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
8070         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
8071         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
8072         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
8073         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
8074         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
8075         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
8076         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
8077         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
8078         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
8079         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
8081 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8082             Jakub Jelinek  <jakub@redhat.com>
8084         PR target/65787
8085         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
8086         subsequent SH_NONE operand does not overwrite an existing *special
8087         value.
8088         (adjust_extract): Handle case where a vec_extract operation is
8089         wrapped in a PARALLEL.
8091 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
8093         PR target/65780
8094         * config/i386/i386.c (ix86_binds_local_p): Define only if
8095         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
8097 2015-04-17  Jeff Law  <law@redhat.com>
8099         PR tree-optimization/47679
8100         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
8101         * tree-ssa-scopedtables.c: New file.
8102         * tree-ssa-scopedtables.h: New file.
8103         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
8104         (const_and_copies): Change name/type.
8105         (record_const_or_copy): Move into tree-ssa-scopedtables.c
8106         (record_const_or_copy_1): Similarly.
8107         (restore_vars_to_original_value): Similarly.
8108         (pass_dominator::execute): Create and destroy const_and_copies table.
8109         (thread_across_edge): Update passing of const_and_copies.
8110         (record_temporary_equivalence): Use method calls rather than
8111         manipulating const_and_copies directly.
8112         (record_equality, cprop_into_successor_phis): Similarly.
8113         (dom_opt_dom_walker::before_dom_children): Similarly.
8114         (dom_opt_dom_walker::after_dom_children): Similarly.
8115         (eliminate_redundant_computations): Similarly.
8116         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
8117         (record_temporary_equivalence): Likewise.
8118         (invalidate_equivalences): Likewise.
8119         (record_temporary_equivalences_from_phis): Update due to type
8120         change of const_and_copies.  Use method calls rather than
8121         manipulating the stack directly.
8122         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
8123         (thread_through_normal_block, thread_across_edge): Likewise.
8124         (thread_across_edge): Likewise.
8125         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
8126         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
8127         of equiv_stack.
8128         (identify_jump_threads): Update due to type change of equiv_stack.
8129         (finalize_jump_threads): Delete the equiv_stack when complete.
8131 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
8133         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
8134         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
8135         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
8137 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
8139         PR target/65535
8140         * config.gcc: Exit with a comment when we do not have a major version
8141         number for the FreeBSD target.
8143 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
8145         PR target/65689
8146         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
8147         maybe_allows_mem bitfields.
8148         (maybe_allows_none_start, maybe_allows_none_end,
8149         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
8150         maybe_allows_mem_end): New variables.
8151         (compute_maybe_allows): New function.
8152         (add_constraint): Use it to initialize maybe_allows_reg and
8153         maybe_allows_mem fields.
8154         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
8155         is_address constraints such that those that allow neither mem nor
8156         reg come first, then those that only allow reg but not mem, then
8157         those that only allow mem but not reg, then the rest.
8158         (write_allows_reg_mem_function): New function.
8159         (write_tm_preds_h): Call it.
8160         * stmt.c (parse_output_constraint, parse_input_constraint): Use
8161         the generated insn_extra_constraint_allows_reg_mem function
8162         instead of always setting *allows_reg = true; *allows_mem = true;
8163         for unknown extra constraints.
8165 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
8167         PR target/65780
8168         * output.h (default_binds_local_p_3): New.
8169         * varasm.c (default_binds_local_p_3): Make it public.  Take an
8170         argument to indicate if common symbol may be local.  If common
8171         symbol may be local, treat non-external variable as defined
8172         locally.
8173         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
8174         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
8175         * config/i386/i386.c (ix86_binds_local_p): New.
8176         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
8177         ix86_binds_local_p.
8179 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
8181         PR debug/65771
8182         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
8183         trying mem_loc_descriptor on XEXP (rtl, 0).
8185 2015-04-17  Martin Liska  <mliska@suse.cz>
8187         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
8188         Release symbol_compare_collection.
8189         * ipa-reference.c: Add TODO that a vector should be released.
8191 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
8193         PR target/65296
8194         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
8195         to new AVR-LibC file layout (bug #44574).
8196         (*avrlibc_devicelib): Same.
8197         * config/avr/avr-mcus.def: Adjust comments.
8198         * config/avr/avr.opt (nodevicelib): Adjust help.
8200 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
8202         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
8204 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
8206         PR c++/64527
8207         * gimplify.c (gimplify_init_constructor): Always emit a
8208         side-effecting constructor.
8210 2015-04-17  Tom de Vries  <tom@codesourcery.com>
8212         PR tree-optimization/64950
8213         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
8214         in cfun->curr_properties.
8215         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
8216         if we generate an IFN_VA_ARG.
8217         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
8218         function if PROP_gimple_lva is not set in src function.
8220 2015-04-17  Tom de Vries  <tom@codesourcery.com>
8221             Michael Matz  <matz@suse.de>
8223         PR tree-optimization/64950
8224         * gimple-iterator.c (update_modified_stmts): Remove static.
8225         * gimple-iterator.h (update_modified_stmts): Declare.
8226         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
8227         (gimplify_va_arg_internal): New function.
8228         (gimplify_va_arg_expr): Use IFN_VA_ARG.
8229         * gimplify.h (gimplify_va_arg_internal): Declare.
8230         * internal-fn.c (expand_VA_ARG): New unreachable function.
8231         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
8232         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
8233         (expand_ifn_va_arg): New function.
8234         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
8235         (pass_stdarg::execute): Call expand_ifn_va_arg.
8236         (pass_data_lower_vaarg): New pass_data.
8237         (pass_lower_vaarg): New gimple_opt_pass.
8238         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
8239         (make_pass_lower_vaarg): New function.
8240         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
8241         properties_required field.
8242         * passes.def (all_passes): Add pass_lower_vaarg.
8243         * tree-pass.h (PROP_gimple_lva): Add define.
8244         (make_pass_lower_vaarg): Declare.
8246 2015-04-17  Tom de Vries  <tom@codesourcery.com>
8248         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
8249         * calls.c (call_expr_flags): Same.
8251 2015-04-17  Tom de Vries  <tom@codesourcery.com>
8253         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
8254         (pass_stdarg::execute): ... here.
8256 2015-04-17  Tom de Vries  <tom@codesourcery.com>
8257             Michael Matz  <matz@suse.de>
8259         * tree-cfg.c (make_blocks_1): Factor out of ...
8260         (make_blocks): ... here.
8261         (make_edges_bb): Factor out of ...
8262         (make_edges): ... here.
8263         (gimple_find_sub_bbs): New function.
8264         * tree-cfg.h (gimple_find_sub_bbs): Declare.
8266 2015-04-17  Tom de Vries  <tom@codesourcery.com>
8268         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
8270 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
8272         * asan.c (set_sanitized_sections): New function.
8273         (section_sanitized_p): Ditto.
8274         (asan_protect_global): Optionally sanitize user-defined
8275         sections.
8276         * asan.h (set_sanitized_sections): Declare new function.
8277         * common.opt (fsanitize-sections): New option.
8278         * doc/invoke.texi (-fsanitize-sections): Document new option.
8279         * opts-global.c (handle_common_deferred_options): Handle new
8280         option.
8282 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
8284         PR debug/65771
8285         * dwarf2out.c (loc_list_from_tree): Return NULL
8286         for DEBUG_EXPR_DECL.
8288 2015-04-17  Christian Bruel  <christian.bruel@st.com>
8290         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
8291         same attributes.
8293 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
8295         * ira-color.c (setup_left_conflict_sizes_p): Do not process
8296         node itself when computing left conflict subnode size.
8298 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
8300         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
8301         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
8302         *fop_<mode>_1_sse using enabled attribute.  Use
8303         register_mixssei387nonimm_operand operand 1 predicate. Change
8304         alternative 3 constraints from "x" to "v".
8306 2015-04-16  Richard Biener  <rguenther@suse.de>
8308         PR tree-optimization/65774
8309         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
8310         bit-value tracking on.
8312 2015-04-16  Richard Biener  <rguenther@suse.de>
8314         PR tree-optimization/64277
8315         * tree-vrp.c (check_array_ref): Fix anti-range handling,
8316         simplify upper bound handling.
8317         (search_for_addr_array): Simplify.
8318         (check_array_bounds): Handle ADDR_EXPRs here.
8319         (check_all_array_refs): Simplify.
8321 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
8323         * config/i386/i386.c (print_reg): Rewrite function.
8325 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8327         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
8328         Invert the condition.
8330 2015-04-16  Renlin Li  <renlin.li@arm.com>
8332         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
8333         simplifications for UNSIGNED_FLOAT.
8335 2015-04-16  Nick Clifton  <nickc@redhat.com>
8337         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
8338         MUL_UNINIT.
8339         (enum rl78_cpu_type): New.
8340         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
8341         (umulhi3_shift_virt): Remove m constraint from operand 1.
8342         (umulqihi3_virt): Likewise.
8343         * config/rl78/rl78.c (rl78_option_override): Add code to process
8344         -mcpu and -mmul options.
8345         (rl78_alloc_physical_registers): Add code to handle divhi and
8346         divsi valloc attributes.
8347         (set_origin): Likewise.
8348         * config/rl78/rl78.h (RL78_MUL_G14): Define.
8349         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
8350         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
8351         __RL78_Gxx__.
8352         (ASM_SPEC): Pass -mcpu on to assembler.
8353         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
8354         (mulqi3_rl78): Likewise.
8355         (mulhi3_g13): Likewise.
8356         (mulhi3): Generate the G13 or G14 versions of the insn directly.
8357         (mulsi3): Likewise.
8358         (mulhi3_g14): Add clobbers of AX and BC.
8359         (mulsi3_g14): Likewise.
8360         (mulsi3_g13): Likewise.
8361         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
8362         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
8363         * config/rl78/rl78.opt (mmul): Initialise value to
8364         RL78_MUL_UNINIT.
8365         (mcpu): New option.
8366         (m13, m14, mrl78): New option aliases.
8367         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
8368         (MULTILIB_DIRNAMES): Add g13 and g14.
8369         * doc/invoke.texi: Document -mcpu and -mmul options.
8371 2015-04-16  Richard Biener  <rguenther@suse.de>
8373         * tree-ssa-ccp.c (likely_value): See if we have operands that
8374         are marked as never simulate again and return CONSTANT in this
8375         case.
8376         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
8377         not have any operands that will be simulated again as
8378         not being simulated again.
8380 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
8382         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
8383         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
8384         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
8385         attribute.
8386         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
8387         enabled attribute.
8388         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
8389         *float<SWI48:mode><MODEF:mode>2_sse.
8390         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
8391         enabled attribute.
8392         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
8393         enabled attribute.
8395 2015-04-15  Tom de Vries  <tom@codesourcery.com>
8397         PR other/65487
8398         * function.c (push_dummy_function): New function.
8399         (init_dummy_function_start): Use push_dummy_function.
8400         (pop_dummy_function): New function.  Factored out of ...
8401         (expand_dummy_function_end): ... here.
8402         * function.h (push_dummy_function, pop_dummy_function): Declare.
8403         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
8404         pop_dummy_function.
8405         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
8407 2015-04-15  Jeff Law  <law@redhat.com>
8409         PR tree-optimization/47679
8410         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
8411         need for forward declaration in upcoming changes.
8412         (record_conditions, record_edge_info): Likewise.
8414         PR rtl-optimization/42522
8415         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
8416         SIGN_EXTRACT as a whole object rather than simplifying
8417         its operand.
8419 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
8421         PR ipa/65765
8422         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
8423         and GIMPLE_PREDICT use break instead of return true. For
8424         GIMPLE_EH_DISPATCH, compare dispatch region.
8426 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
8428         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
8429         details about the implementation.  Make clear preference for
8430         __atomic builtins.  Reduce possibility of future change.
8432 2015-04-15  Nick Clifton  <nickc@redhat.com>
8434         * config/rx/rx.opt (mallow-string-insns): New option.
8435         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
8436         builtin if string instructions are denied.
8437         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
8438         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
8439         appropriate.
8440         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
8441         * config/rx/rx.md (movstr): Enable pattern only if string
8442         instructions are allowed.
8443         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
8444         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
8445         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
8446         (MULTILIB_DIRNAMES): Add no-strings.
8447         * doc/invoke.texi: Document -mno-allow-string-insns.
8449 2015-04-15  Alan Modra  <amodra@gmail.com>
8451         PR target/65408
8452         PR target/58744
8453         PR middle-end/36043
8454         * calls.c (load_register_parameters): Don't load past end of
8455         mem unless suitably aligned.
8457 2015-04-15  Nick Clifton  <nickc@redhat.com>
8459         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
8460         decrement instruction as being frame related.
8461         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
8462         based addresses.
8463         If zero extending a function address enclose the operation in
8464         %code(...).
8465         (rl78_preferred_reload_class): New function.
8466         (TARGET_PREFERRED_RELOAD_CLASS): Define.
8467         * config/rl78/rl78.md: Remove useless constraints in expanders.
8468         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
8469         (mulhi3_rl78): Likewise.
8470         (mulhi3_g13): Likewise.
8471         (mulsi3_rl78): Likewise.
8472         (es_addr): Move to before the multiply patterns.
8474 2015-04-15  Alan Modra  <amodra@gmail.com>
8476         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
8477         and sequence_stack.  Add seq.
8478         (seq_stack): Delete.
8479         * function.c (prepare_function_start): Don't access x_last_insn.
8480         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
8481         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
8482         * emit_rtl.c (start_sequence, push_topmost_sequence,
8483         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
8484         sequence accessors.
8485         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
8486         remove_insn): Likewise.  Simplify.
8487         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
8488         and pop_topmost_sequence.
8489         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
8490         debug insns.
8491         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
8493 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
8495         PR target/65729
8496         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
8497         the assertiion.
8499 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
8501         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
8502         (LEGACY_INT_REGNO_P): Ditto.
8503         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
8504         (ANY_MASK_REG_P): Remove.
8505         (BND_REG_P): Rename from ANY_BND_REG_P.
8506         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
8507         legacy integer registers.  Do not handle MMX_REG_P in a special way.
8508         Merge 64byte and 32byte SSE handling.
8510 2015-04-14  Nick Clifton  <nickc@redhat.com>
8512         * expr.c (expand_assignment): Force an address offset computation
8513         into a register before changing its mode.
8514         (expand_expr_real_1): Likewise.
8516 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
8518         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
8519         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
8520         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
8521         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
8522         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
8523         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
8524         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
8525         and __aarch64_vget_lane_any.
8527 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
8529         PR rtl-optimization/65761
8530         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
8531         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
8533 2015-04-14  Richard Biener  <rguenther@suse.de>
8535         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
8536         (graphite_can_represent_scev): Use POINTER_TYPE_P.
8538 2015-04-14  Richard Biener  <rguenther@suse.de>
8540         PR tree-optimization/65758
8541         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
8542         against -1.
8543         (ccp_lattice_meet): Likewise.
8544         (bit_value_unop): Likewise.
8545         (bit_value_binop): Likewise.
8546         (bit_value_assume_aligned): Likewise.
8548 2015-04-14  Christian Bruel  <christian.bruel@st.com>
8550         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
8551         function.
8553 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
8555         PR tree-optimization/63387
8556         * match.pd ((x unord x) | (y unord y) -> (x unord y),
8557         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
8559 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
8561         * config/i386/predicates.md (any_QIreg_operand): Rename from
8562         q_regs_operand.  Do not process subregs.
8563         (QIreg_operand): Use QI_REGNO_P predicate.
8564         (ext_QIreg_operand): Ditto.
8565         (ext_register_operand): Ditto.
8566         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
8567         (AND splitters): Ditto.
8568         (AND with -65536 splitter): Add SWI48 mode for operand 0.
8569         (AND with -256 splitter): Use any_QIreg_operand predicate and
8570         SWI248 mode for operand 0.
8571         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
8572         mode for operand 0.
8573         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
8575 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
8577         * doc/plugins.texi: Rewrite first introductory paragraph.
8579 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
8581         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
8582         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
8584 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
8586         * ipa-profie.c (ipa_profile): Check number of parameters
8587         and possible polymorphic call targets before
8588         devirtualizing.
8590 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
8592         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
8593         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
8595 2015-04-13  Richard Biener  <rguenther@suse.de>
8597         PR tree-optimization/65204
8598         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
8599         takens for bit-CCP.
8601 2015-04-13  Richard Biener  <rguenther@suse.de>
8603         PR target/65660
8604         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
8605         and cond_not_taken_branch_cost to 4 and 2.
8606         (bdver2_cost): Likewise.
8607         (bdver3_cost): Likewise.
8608         (bdver4_cost): Likewise.
8610 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
8612         * hash-table.h (hash_table constructor): Add mem stats.
8613         (alloc_entries): Likewise.
8615 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
8617         * ipa-cp.c (ipcp_driver): Relase prev_edge.
8618         * passes.c (execute_one_pass): Only add transform if pass has one.
8620 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
8622         * config/i386/i386.c (ix86_option_override_internal): Don't set
8623         -fprefetch-loop-arrays if optimizing for size.
8625 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
8626             Gerald Pfeifer  <gerald@pfeifer.com>
8628         * doc/contrib.texi (Contributors): Add Martin Jambor and
8629         Michael Matz.
8631 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
8633         * BASE-VER: Set to 6.0.0.
8635         PR tree-optimization/65747
8636         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
8637         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
8639 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
8641         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
8642         sentence.  Improve grammar.
8644 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
8646         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
8648 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
8650         PR ipa/65743
8651         * ipa-inline-transform.c (speculation_removed): Remove static var.
8652         (check_speculations): New function.
8653         (clone_inlined_nodes): Do not check spculations.
8654         (inline_call): Call check_speculations.
8655         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
8656         consider non-invariants.
8658 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
8659             Martin Liska  <mliska@suse.cz>
8661         PR ipa/65722
8662         * ipa-icf.c (sem_item::compare_cgraph_references): function and
8663         variable can not match.
8664         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
8665         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
8667 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
8669         PR tree-optimization/65735
8670         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
8671         Remove visited_phis argument, add visited_bbs, avoid recursing into the
8672         same bb rather than just into the same phi node.
8673         (thread_through_normal_block): Adjust caller.
8675 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
8677         * doc/contrib.texi (Contributors): Add Ira Rosen.
8679 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
8681         * gcov.c (find_source): Fix miswording in error message.
8682         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
8683         (ix86_expand_sse_comi_round): Fix typo in error message.
8685 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
8687         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
8689 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
8691         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
8693 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
8695         PR target/65710
8696         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
8697         Print bad_spills_num and insn_pseudos_num.
8699 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8701         PR target/65694
8702         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
8703         when creating +1 values for SImode.
8705 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
8707         PR target/65729
8708         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
8709         assert.
8711 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
8712             Iain Sandoe  <iain@codesourcery.com>
8714         PR target/65351
8715         * configure: Regenerate.
8717 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
8719         PR target/65671
8720         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
8722 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
8724         * doc/contrib.texi (Contributors): Add John Marino.
8726 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
8728         PR tree-optimization/65709
8729         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
8730         TREE_TYPE (TREE_TYPE (t)).
8732 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
8734         PR target/65710
8735         * lra-int.h (lra_bad_spill_regno_start): New.
8736         * lra.c (lra_bad_spill_regno_start): New.
8737         (lra): Set up lra_bad_spill_regno_start.  Set up
8738         lra_constraint_new_regno_start unconditionally.
8739         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
8740         spill preferences.
8742 2015-04-09  Marek Polacek  <polacek@redhat.com>
8743             Jakub Jelinek  <jakub@redhat.com>
8745         PR middle-end/65554
8746         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
8747         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
8748         of STRIP_NOPS.
8750 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
8752         PR rtl-optimization/65693
8753         * combine.c (is_parallel_of_n_reg_sets): Move outside of
8754         #ifndef HAVE_cc0.
8756 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
8758         PR target/65296
8759         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
8760         device specs file if "device-specs%s" didn't resolve to a path.
8762 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
8764         PR target/65676
8765         * config/i386/i386.c (fixup_modeless_constant): New.
8766         (ix86_expand_args_builtin): Fixup modeless constant operand.
8767         (ix86_expand_round_builtin): Ditto.
8768         (ix86_expand_special_args_builtin): Ditto.
8769         (ix86_expand_builtin): Ditto.
8771 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
8773         PR target/65693
8774         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
8775         any pow2 integer in between 2 and 0x80000000U inclusive.
8777 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
8779         PR rtl-optimization/65693
8780         * combine.c (is_parallel_of_n_reg_sets): Change first argument
8781         from an rtx_insn * to an rtx.
8782         (try_combine): Adjust both callers.  Use it once more.
8784 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
8786         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
8787         (chkp_make_static_const_bounds): Search existing
8788         symbol by assembler name.  Use make_decl_one_only.
8789         (chkp_get_zero_bounds_var): Remove node search which
8790         is now performed in chkp_make_static_const_bounds.
8791         (chkp_get_none_bounds_var): Likewise.
8793 2015-04-08  Michael Witten  <mfwitten@gmail.com>
8795         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
8796         to an example.
8798 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8800         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
8802 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
8804         * doc/extend.texi (__sync Builtins): Fix grammar.
8806 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8808         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
8810 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8812         * varasm.c (emit_local): Move definition of align.
8814 2015-04-08  Julian Brown  <julian@codesourcery.com>
8816         * config/nvptx/mkoffload.c (process): Support variable mapping.
8818 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
8820         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
8821         alpha_links **.
8822         (alpha_write_one_linkage): Correct typo.
8824 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
8826         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
8828 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
8830         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
8832 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
8834         * tree-chkp.h (chkp_insert_retbnd_call): New.
8835         * tree-chkp.c (chkp_insert_retbnd_call): New.
8836         * ipa-split.c (insert_bndret_call_after): Remove.
8837         (split_function): Use chkp_insert_retbnd_call.
8838         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
8839         bounds for instrumented functions.
8841 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
8843         PR ipa/65540
8844         * calls.c (initialize_argument_information): When producing tail
8845         call also turn SSA_NAMES passed by references to original PARM_DECLs
8847 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
8849         PR target/65648
8850         * lra-remat.c (do_remat): Process input and non-input insn
8851         registers separately.
8853 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
8855         PR debug/65678
8856         * valtrack.c (debug_lowpart_subreg): New function.
8857         (dead_debug_insert_temp): Use it.
8859         PR middle-end/65680
8860         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
8861         into signed HOST_WIDE_INT the same as negative bit_offset.
8863 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
8865         * ipa-comdats.c (ipa_comdats): Visit all thunks
8866         to set proper comdat group.
8868 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8870         PR target/65489
8871         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
8872         on constants for NEON VSTRUCT modes.
8874 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
8875             Iain Sandoe  <iain@codesourcery.com>
8877         PR target/65351
8878         * configure: Regenerate.
8880 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
8882         PR target/65614
8883         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
8884         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
8885         that LFD is used to load double constants instead of LFS.  Add
8886         defaults for all costs structures.  Add comments for missing
8887         initialization fields.
8888         (size32_cost): Likewise.
8889         (size64_cost): Likewise.
8890         (rs64a_cost): Likewise.
8891         (mpccore_cost): Likewise.
8892         (ppc403_cost): Likewise.
8893         (ppc405_cost): Likewise.
8894         (ppc440_cost): Likewise.
8895         (ppc476_cost): Likewise.
8896         (ppc601_cost): Likewise.
8897         (ppc603_cost): Likewise.
8898         (ppc604_cost): Likewise.
8899         (ppc604e_cost): Likewise.
8900         (ppc620_cost): Likewise.
8901         (ppc630_cost): Likewise.
8902         (ppccell_cost): Likewise.
8903         (ppc750_cost): Likewise.
8904         (ppc7450_cost): Likewise.
8905         (ppc8540_cost): Likewise.
8906         (ppce300c2c3_cost): Likewise.
8907         (ppce500mc_cost): Likewise.
8908         (ppce500mc64_cost): Likewise.
8909         (ppce5500_cost): Likewise.
8910         (ppce6500_cost): Likewise.
8911         (titan_cost): Likewise.
8912         (power4_cost): Likewise.
8913         (power6_cost): Likewise.
8914         (power7_cost): Likewise.
8915         (power8_cost): Likewise.
8916         (ppca2_cost): Likewise.
8917         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
8919         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
8920         instead of XXLOR to copy SFmode to clear out dirty bits created
8921         when SFmode denormals are generated.
8922         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
8923         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
8925 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
8927         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
8928         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
8929         * config/aarch64/aarch64-tune.md: Regenerate.
8931 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
8933         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
8934         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
8935         * config/arm/arm-cores.def (exynos-m1): New core.
8936         * config/arm/arm-tune.md: Regenerate.
8937         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
8938         * config/arm/bpabi.h: Likewise.
8940 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
8942         * ipa-cp (set_single_call_flag): Remove too
8943         restrictive assert.
8945 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
8947         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
8948         GOMP_offload_unregister from the destructor.
8950 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
8952         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
8953         flags for instrumentation thunk.
8954         (chkp_produce_thunks): Likewise.
8956 2015-04-05  Martin Liska  <mliska@suse.cz>
8958         PR ipa/65665
8959         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
8960         has computed data structure.
8961         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
8963 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
8965         * invoke.texi (inline-unit-growth): Increase growth to 20%
8966         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
8968 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
8970         PR target/65647
8971         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
8972         value checking.
8973         (lra_rematerialization_iter): New.
8974         * lra.c (lra): Initialize lra_rematerialization_iter.
8975         Stop updating lra_constraint_new_regno_start after switching of
8976         inheritance and rematerialization.
8977         * lra-remat.c (lra_rematerialization_iter): New.
8978         (lra_remat): Add printing pass iteration.  Do rematerialization
8979         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
8981 2015-04-04  Richard Biener  <rguenther@suse.de>
8983         PR tree-optimization/64909
8984         PR tree-optimization/65660
8985         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
8986         to take a cost vector for scalar iteration cost.
8987         (vect_get_single_scalar_iteration_cost): Likewise.
8988         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
8989         Compute the scalar iteration cost into a cost vector.
8990         (vect_get_known_peeling_cost): Use the scalar cost vector to
8991         account for the cost of the peeled iterations.
8992         (vect_estimate_min_profitable_iters): Likewise.
8993         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
8994         Likewise.
8996 2015-04-04  Alan Modra  <amodra@gmail.com>
8998         PR target/65576
8999         PR target/65240
9000         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
9001         0.0 constant unless TARGET_VSX.
9002         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
9003         alternative.
9005 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
9007         PR ipa/65654
9008         * ipa-inline-transform.c (inline_call): Skip sanity check to work
9009         around the ICE
9011 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
9013         PR ipa/65655
9014         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
9015         speculative indirect edges to avoid ordering issue.
9017 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
9019         PR ipa/65076
9020         * ipa-inline.c (edge_badness): Add combined size to the denominator.
9022 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
9024         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
9025         TYPE_ARTIFICIAL on the .omp_data* types.
9027 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
9029         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
9030         instrumentation thunks.
9032 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
9034         * config/i386/i386.c (ix86_expand_call): Avoid nested
9035         PARALLEL in returned call value.
9037 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
9039         * lto-cgraph.c (input_cgraph_1): Always link instrumented
9040         assembler name with original one.
9042 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
9044         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
9046 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
9048         Revert parts of r216820.
9049         * config/i386/i386.md (movqi_internal): Correct type calculation
9050         for alternatives 3 and 5.
9052 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
9054         PR preprocessor/61977
9055         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
9056         predefine __vector/__bool/__pixel macros nor context sensitive
9057         macros for CLK_ASM.
9058         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
9060 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
9062         * config/pa/pa.c (pa_output_move_double): Directly handle register
9063         indexed memory operand.  Simplify handling of scaled register indexed
9064         memory operands.
9066 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
9068         PR driver/65444
9069         * config/i386/linux-common.h (MPX_SPEC): New.
9070         (CHKP_SPEC): Add MPX_SPEC.
9071         * doc/invoke.texi (-fcheck-pointer-boudns): Document
9072         possible issues with '-z bndplt' support in linker.
9074 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
9076         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
9077         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
9078         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
9079         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
9080         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
9082 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
9084         * config/i386/sync.md (UNSPEC_MOVA): Remove.
9085         (atomic_load<mode>): Change operand 0 predicate to
9086         nonimmediate_operand and fix up the destination when needed.
9087         Use UNSPEC_LDA.
9088         (atomic_loaddi_fpu): Use UNSPEC_LDA.
9089         (atomic_store<mode>): Change operand 1 predicate to
9090         nonimmendate_operand and move the source to register when needed.
9091         Use UNSPEC_STA.
9092         (atomic_store<mode>_1): Use UNSPEC_STA.
9093         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
9094         Fix moves from memory operand.  Use UNSPEC_STA.
9096 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9098         * expmed.c (strict_volatile_bitfield_p): Check that the access will
9099         not cross a MODESIZE boundary.
9100         (store_bit_field, extract_bit_field): Added assertions in the
9101         strict volatile bitfields code path.
9103 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
9105         PR target/65624
9106         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
9107         Increase args array size by one to avoid buffer overflow.
9109 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
9111         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
9112         split_part.
9113         * ipa-inline.c (edge_badness): Add wrapper penalty.
9114         (sum_callers): Move up.
9115         (inline_small_functions): Set single_caller.
9116         * ipa-inline.h (inline_summary): Add single_caller.
9117         * ipa-split.c (split_function): Set split_part.
9118         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
9119         * cgraph.h (cgraph_node): Add split_part.
9121 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
9123         PR target/58945
9124         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
9125         Do not split operands 0 and operands 2 to halfmode.
9126         (atomic_compare_and_swap<mode>): Update for
9127         atomic_compare_and_swap<dwi>_doubleword changes.
9129 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
9131         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
9132         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
9133         no caching is done.
9135 2015-03-31  Martin Liska  <mliska@suse.cz>
9137         PR ipa/65557
9138         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
9139         has already filled up function summary.
9140         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
9142 2015-03-31  Richard Biener  <rguenther@suse.de>
9144         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
9145         of types.
9147 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9149         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
9150         nested functions.
9151         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
9152         (s390_asm_output_function_label): Adapt to new signature of
9153         s390_function_num_hotpatch_hw
9154         Optimise the code generating assembler output.
9155         Add comments to assembler file.
9157 2015-03-31  Richard Biener  <rguenther@suse.de>
9159         PR middle-end/65626
9160         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
9161         of the noreturn call so it is last and cleanup_control_flow_bb
9162         can do the CFG part.
9164 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
9166         PR target/65531
9167         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
9168         same_comdat_group for external symbols.
9169         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
9170         infinite same_comdat_group traversal loop.
9172 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
9174         PR plugins/61176
9175         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
9176         automatically to $headers.
9178 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
9180         PR ipa/65610
9181         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
9182         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
9183         function.
9184         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
9185         Use it.
9186         * ipa-prop.c (param_type_may_change_p): Likewise.
9187         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
9188         (remove_unused_scope_block_p): Add in_ctor_dtor_block
9189         argument.  Before inlining, preserve
9190         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
9191         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
9192         recursive calls.
9193         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
9195 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
9197         PR ipa/65076
9198         * ipa-inline.c (edge_badness): Base denominator on callee's
9199         grwoth squared.
9201 2015-03-27  Martin Jambor  <mjambor@suse.cz>
9203         PR ipa/65478
9204         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
9205         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
9206         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
9207         node_calling_single_call.
9208         * ipa-cp.c (count_callers): New function.
9209         (set_single_call_flag): Likewise.
9210         (initialize_node_lattices): Count callers and set single_flag_call if
9211         necessary.
9212         (incorporate_penalties): New function.
9213         (good_cloning_opportunity_p): Use it, dump new flags.
9214         (propagate_constants_topo): Set node_within_scc flag if appropriate.
9215         * doc/invoke.texi (ipa-cp-recursion-penalty,
9216         ipa-cp-single-call-pentalty): Document.
9218 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
9220         PR ipa/65588
9221         * symtab.c (symtab_node::get_partitioning_class): Register vars
9222         are duplicated.
9223         * varpool.c (symbol_table::output_variables) Do not assemble unefined
9224         decls for non-symbols.
9226 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9228         PR target/65248
9229         * output.h (default_binds_local_p_2): New.
9230         * varasm.c (default_binds_local_p_2): Renamed to ...
9231         (default_binds_local_p_3): This.  Don't return true on protected
9232         data symbol if protected data may be external.
9233         (default_binds_local_p): Use default_binds_local_p_3.
9234         (default_binds_local_p_1): Likewise.
9235         (default_binds_local_p_2): New.
9236         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
9237         default_binds_local_p_2 if TARGET_MACHO is undefined.
9239 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
9241         PR target/65593
9242         * config/i386/i386.c (legitimize_pic_address): If base
9243         is SYMBOL_REF or LABEL_REF using %rip addressing, force
9244         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
9246 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
9248         PR target/65531
9249         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
9250         comdat groups.
9252 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
9254         PR ipa/65600
9255         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
9256         of optimized out indirect call.
9257         (redirect_to_unreachable): Always build symbol table node for
9258         BUILT_IN_UNREACHABLE
9260 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
9262         PR target/65407
9263         * ira-costs.c (record_reg_classes): Process all constraint string
9264         containing 0-9.
9266 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
9268         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
9269         memory_operand.
9271         PR target/65052
9272         * config/c6x/constraints.md (S3): New constraint.
9273         * config/c6x/c6x.md (real_jump): Use it.
9275 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
9277         PR middle-end/65595
9278         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
9279         do redirection if the call is not optimized out.
9281 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
9283         PR target/65495
9284         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
9285         (fchkp-check-incomplete-type): Add LTO.
9286         (fchkp-zero-input-bounds-for-main): Likewise.
9287         (fchkp-first-field-has-own-bounds): Likewise.
9288         (fchkp-narrow-bounds): Likewise.
9289         (fchkp-narrow-to-innermost-array): Likewise.
9290         (fchkp-use-static-bounds): Likewise.
9291         (fchkp-use-static-const-bounds): Likewise.
9292         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
9294 2015-03-27  Marek Polacek  <polacek@redhat.com>
9296         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
9298 2015-03-27  Marek Polacek  <polacek@redhat.com>
9300         PR sanitizer/65583
9301         * ubsan.c (ubsan_create_edge): New function.
9302         (instrument_bool_enum_load): Call it.
9303         (instrument_nonnull_arg): Likewise.
9304         (instrument_nonnull_return): Likewise.
9305         (instrument_object_size): Likewise.
9307 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
9309         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
9310         auto_vec.
9312 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
9314         PR lto/65536
9315         * lto-streamer.h (class lto_location_cache): New.
9316         (struct data_in): Add location_cache.
9317         (lto_input_location): Update prototype.
9318         (stream_input_location_now): New.
9319         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
9320         pointer to location.
9321         (stream_input_location): Update.
9322         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
9323         (warn_odr): Apply location cache before warning.
9324         (lto_input_location): Update prototype.
9325         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
9326         Use stream_input_location_now.
9327         * lto-streamer-in.c (lto_location_cache::current_cache): New static
9328         variable.
9329         (lto_location_cache::cmp_loc): New function.
9330         (lto_location_cache::apply_location_cache): New function.
9331         (lto_location_cache::accept_location_cache): New function.
9332         (lto_location_cache::revert_location_cache): New function.
9333         (lto_location_cache::input_location): New function.
9334         (lto_input_location): Do location caching.
9335         (stream_input_location_now): New function.
9336         (input_eh_region, input_struct_function_base): Use
9337         stream_input_location_now.
9338         (lto_data_in_create): use new.
9339         (lto_data_in_delete): Use delete.
9340         * tree-streamer-in.c (unpack_ts_block_value_fields,
9341         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
9342         lto_input_ts_exp_tree_pointers): Update for cached location api.
9344 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
9346         PR ipa/65076
9347         * passes.def: Add pass_nothrow.
9348         * ipa-pure-const.c: (pass_data_nothrow): New.
9349         (pass_nothrow): New.
9350         (pass_nothrow::execute): New.
9351         (make_pass_nothrow): New.
9352         * tree-pass.h (make_pass_nothrow): Declare.
9354 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
9356         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
9357         edge to change by speculation resolution or redirection.
9358         (edge_set_predicate): Likewise.
9359         (inline_summary_t::duplicate): Likewise.
9360         (remap_edge_summaries): Likewise.
9362 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
9364         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
9365         New macros.
9366         (can_inline_edge_p): Relax option matching for always inline functions.
9368 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
9370         PR target/65561
9371         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
9372         Check operand 4 and operand 0 for equality.
9373         (avx512f_vextract<shuffletype>32x4_1_maskm):
9374         Check operand 6 and operand 0 for equality.
9375         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
9376         for equality.
9377         (vec_extract_hi_<mode>_maskm): Ditto.
9379 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
9381         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
9382         dead calls back to live.
9383         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
9384         cross check to ...
9385         (cgraph_node::verify_node): ... here; verify only callee edges,
9386         not caller.
9387         * cif-code.def (CILK_SPAWN): New code.
9389 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
9391         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
9392         (edge_set_predicate): Use it to mark unreachable edges.
9393         (inline_summary_t::duplicate): Remove unnecesary code.
9394         (remap_edge_summaries): Likewise.
9395         (dump_inline_summary): Report contains_cilk_spawn.
9396         (compute_inline_parameters): Compute contains_cilk_spawn.
9397         (inline_read_section, inline_write_summary): Stream
9398         contains_cilk_spawn.
9399         * ipa-inline.c (can_inline_edge_p): Do not touch
9400         DECL_STRUCT_FUNCTION that may not be available;
9401         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
9402         remove check for callee_fun->can_throw_non_call_exceptions and
9403         replace it by optimization attribute check; check for flag_exceptions.
9404         * ipa-inline-transform.c (inline_call): Maintain
9405         DECL_FUNCTION_PERSONALITY
9406         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
9408 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
9410         PR tree-optimization/65551
9411         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
9412         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
9414 2015-03-26  Richard Biener  <rguenther@suse.de>
9416         PR middle-end/65555
9417         * tree-cfg.c (verify_gimple_call): Do not require a call to
9418         have no LHS if it wasn't recognized as control altering yet.
9420 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
9422         PR tree-optimization/64715
9423         * passes.def: Add another instance of pass_object_sizes before ccp1.
9424         * tree-object-size.c (pass_object_sizes::execute): In
9425         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
9426         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
9427         __bos result and the computed constant.  Remove redundant
9428         checks, obsoleted by gimple_call_builtin_p test.
9430         * var-tracking.c (variable_tracking_main_1): Don't track
9431         variables for targetm.no_register_allocation targets.
9433 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
9435         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
9436         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
9438 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
9440         PR target/65569
9441         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
9442         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
9443         0.0 is correctly setup.
9444         (extenddftf2_internal): Likewise.
9446 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
9448         PR tree-optimization/65177
9449         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
9450         (bb_in_bbs): New.
9451         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
9452         edges not adjacent on the path to the original code.
9454 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
9456         PR bootstrap/65537
9457         * doc/install.texi (Building a native compiler): Document new
9458         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
9459         configuration assumes that the host supports the linker plugin.
9461 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
9463         PR target/65508
9464         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
9465         chain for generated call.
9467 2015-03-25  Richard Biener  <rguenther@suse.de>
9469         * passes.c (pass_manager::execute_early_local_passes): Guard
9470         execution of pass_chkp_instrumentation_passes with
9471         flag_check_pointer_bounds.
9472         (pass_chkp_instrumentation_passes::gate): Likewise.
9474 2015-03-25  Martin Liska  <mliska@suse.cz>
9476         PR tree-optimization/65538
9477         * symbol-summary.h (function_summary::~function_summary):
9478         Relese memory for allocated summaries.
9479         (function_summary::release): New function.
9481 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
9483         PR lto/65515
9484         * lto-streamer-out.c (DFS::worklist): New struct.
9485         (DFS::worklist_vec): New data member.
9486         (DFS::next_dfs_num): Remove.
9487         (DFS::DFS): Rewritten using worklist instead of recursion,
9488         using most of code from DFS::DFS_write_tree.
9489         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
9490         pass it to DFS_write_tree calls.
9491         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
9492         quick initial checks push it into worklist_vec and return.
9494 2015-03-25  Richard Biener  <rguenther@suse.de>
9496         PR middle-end/65519
9497         * genmatch.c (expr::gen_transform): Re-write to avoid
9498         using gimple_build.
9500 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
9502         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
9504 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
9506         * config/arm/arm.opt (print_tune_info): New option.
9507         * config/arm/arm.c (arm_print_tune_info): New function.
9508         (arm_file_start): Call arm_print_tune_info.
9509         * config/arm/arm-protos.h (struct tune_params): Add comment.
9510         * doc/invoke.texi (@item -mprint-tune-info): New item.
9511         (-mtune): mention it in ARM Option Summary.
9513 2015-03-25  DJ Delorie  <dj@redhat.com>
9515         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
9516         correct clause.
9518 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
9519             Martin Liska  <mliska@suse.cz>
9521         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
9522         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
9523         (sem_item::add_type): New function.
9524         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
9525         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
9526         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
9527         (sem_function::equals_wpa): Fix typo.
9528         * ipa-icf.h (sem_item::add_type): New function.
9529         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
9530         order.
9532 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
9534         PR tree-optimization/65533
9535         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
9536         with swapped operands, call vect_free_slp_tree on
9537         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
9538         vector.
9540 2015-03-24  Richard Biener  <rguenther@suse.de>
9542         PR middle-end/65517
9543         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
9544         for fixup if necessary.
9546 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
9548         * doc/extend.texi (Function Attributes): Add @cindex entries
9549         for all attributes and regularize their format.  Delete text
9550         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
9551         information about "eightbit_data", "tiny_data", and "model"
9552         variable attributes to the Variable Attributes section.  Fix
9553         some obvious typos and copy-editing issues.
9554         (Variable Attributes, Type Attributes): Likewise add/fix
9555         @cindex entries for all attributes.
9557 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
9559         PR target/65523
9560         * tree-chkp.c (chkp_build_returned_bound): Ignore
9561         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
9563 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
9565         PR target/65505
9566         * config/sh/predicates.md (simple_mem_operand,
9567         displacement_mem_operand): Add test for reg.
9568         (short_displacement_mem_operand): Test for displacement_mem_operand
9569         before invoking sh_disp_addr_displacement.
9570         * config/sh/constraints.md (Sdd, Sra): Simplify.
9571         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
9572         Remove redundant displacement_mem_operand tests.
9574 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
9576         PR target/65296
9577         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
9578         the same -mmcu=MCU more than once.
9580 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
9582         PR bootstrap/65522
9583         * ipa-devirt.c: Remove duplicate demangle.h include.
9585         PR target/65504
9586         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
9587         on the pseudo.
9588         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
9589         REG_POINTER on *destptr after adjusting it for prologue size.
9591         PR ipa/65521
9592         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
9593         ultimate_alias_target ()->order ints instead of
9594         ultimate_alias_target () pointers.
9596 2015-03-23  Richard Biener  <rguenther@suse.de>
9598         PR tree-optimization/65518
9599         * tree-vect-stmts.c (vectorizable_load): Reject single-element
9600         interleaving cases we generate absymal code for.
9602 2015-03-23  Richard Biener  <rguenther@suse.de>
9604         PR tree-optimization/65494
9605         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
9606         matches here.
9607         (vect_analyze_slp_instance): But do that here, always and once.
9609 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9611         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
9612         adding T or multiplying by T+1 and subracting T.
9614 2015-03-22  Jeff Law  <law@redhat.com>
9616         PR rtl-optimization/64317
9617         * Makefile.in (OBJS): Add gcse-common.c
9618         * gcse.c: Include gcse-common.h
9619         (struct modify_pair_s): Move structure definition to gcse-common.h
9620         (compute_transp): Move function to gcse-common.c.
9621         (canon_list_insert): Similarly.
9622         (record_last_mem_set_info): Break out some code and put it into
9623         gcse-common.c.  Call into the new common code.
9624         (compute_local_properties): Pass additional arguments to compute_transp.
9625         * postreload-gcse.c: Include gcse-common.h and df.h
9626         (modify_mem_list_set, blocks_with_calls): New variables.
9627         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
9628         (get_bb_avail_insn): Pass in the expression index too.
9629         (alloc_mem): Allocate memory for the new bitmaps and lists.
9630         (free_mem): Free memory for the new bitmaps and lists.
9631         (insert_expr_in_table): Record a bitmap index for each entry we
9632         add to the table.
9633         (record_last_mem_set_info): Call into common code in gcse-common.c.
9634         (get_bb_avail_insn): If no available insn was found in the requested
9635         BB.  If BB has a single predecessor, see if the expression is
9636         transparent in BB and available in that single predecessor.
9637         (compute_expr_transp): New wrapper for compute_transp.
9638         (eliminate_partially_redundant_load): Pass expression's bitmap_index
9639         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
9640         (gcse_after_reload_main): If there are elements in the hash table,
9641         then compute transparency for all the elements in the hash table.
9642         * gcse-common.h: New file.
9643         * gcse-common.c: New file.
9645 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
9647         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
9648         as an adjective.
9649         (System Headers): Likewise.
9650         (Ifdef): Likewise.
9651         (Traditional macros): Likewise.
9652         (Invocation): Likewise.
9653         (Option Index): Likewise.
9654         * doc/cppopts.texi (-M): Likewise.
9655         (-finput-charset): Likewise.
9656         (--help): Likewise.
9657         * doc.invoke.texi (AVR Options): Likewise.
9658         (V850 Options): Likewise.
9660 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
9662         PR ipa/65475
9663         * ipa-devirt.c: Include demangle.h
9664         (odr_type_d): Add field rtti_broken.
9665         (odr_subtypes_equivalent_p): Do not require name to match.
9666         (compare_virtual_tables): Fix typo; if type already has ODR violation,
9667         bypass the tests; be ready for function referneces in vtables that are
9668         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
9669         (warn_odr): Give up for nameless types.
9670         (warn_types_mismatch): Report mismatch in mangled names;
9671         report mismatch in anonymous namespaces; look into component types to
9672         give useful error; report when mismatch is dragged in from other ODR
9673         type.
9674         (odr_types_equivalent_p): Match types for being polymorphic; avoid
9675         duplicated diagnostics.
9676         (add_type_duplicate): Reorder checks so more informative ones come
9677         first; fix typo; do not output "the extra base is defined here" when
9678         we did not warn.
9679         (BINFO_N_BASE_BINFOS): Relax sanity check.
9681 2015-03-22  Martin Liska  <mliska@suse.cz>
9682             Jakub Jelinek  <jakub@redhat.com>
9684         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
9685         masks that can potentially include a builtin.
9686         (ix86_add_new_builtins): Introduce fast filter for isa values
9687         that cannot trigger builtin inclusion.
9689 2015-03-22  Martin Liska  <mliska@suse.cz>
9691         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
9692         (sem_item::update_hash_by_local_refs): Likewise.
9693         (sem_variable::get_hash): Empty line is fixed.
9694         (sem_item_optimizer::execute): Include adding of hash references.
9695         (sem_item_optimizer::update_hash_by_addr_refs): New function.
9696         (sem_item_optimizer::build_hash_based_classes): Use local hash.
9697         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
9698         (sem_item::update_hash_by_local_refs): Likewise.
9700 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
9702         PR ipa/65502
9703         * ipa-comdats.c (enqueue_references): Walk through thunks.
9704         (ipa_comdats): Likewise.
9705         (set_comdat_group_1): New function.
9707 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
9709         PR ipa/65475
9710         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
9711         non-polymorphic
9713 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
9714             Gerald Pfeifer  <gerald@pfeifer.com>
9716         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
9718 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
9719             Sandra Loosemore  <sandra@codesourcery.com>
9721         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
9722         function parameter declaration.
9723         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
9724         Update arguments to nios2_adjust_call_address().
9725         (sibcall_internal): Rename from *sibcall.
9726         (sibcall_value_internal): Rename from *sibcall_value.
9727         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
9728         (nios2_large_got_address): Add target temp reg parameter.
9729         (nios2_got_address): Adjust call to nios2_large_got_address, add
9730         force_reg around it.
9731         (nios2_load_pic_address): Add target temp reg parameter, replace call
9732         to nios2_got_address with corresponding code.
9733         (nios2_legitimize_constant_address): Update call to
9734         nios2_load_pic_address.
9735         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
9736         to use temp reg for PIC loading purposes.
9737         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
9738         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
9739         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
9741 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
9743         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
9744         usage of "the @option{...}".
9745         (-Wopenmp-simd): Likewise.
9746         (-fsanitize-recover): Likewise.
9747         (-fsanitize-undefined-trap-on-error): Likewise.
9748         (-flto): Likewise.
9749         (tracer-dynamic-coverage-feedback): Likewise.
9750         (reorder-block-duplicate-feedback): Likewise.
9751         (loop-unroll-jam-size): Likewise.
9752         (-B): Likewise.
9753         (-I-): Likewise.
9754         (-mabs=legacy): Likewise.
9755         (-mupper-regs-df): Likewise.
9756         (-mupper-regs-sf): Likewise.
9757         (-mpointers-to-nested-functions): Likewise.
9759 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
9761         * doc/extend.texi (Cilk Plus Builtins): Add markup.
9763 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
9765         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
9766         additional index entries and cross-references.
9767         (-fchkp-check-incomplete-type): Likewise.
9768         (-fchkp-first-field-has-own-bounds): Likewise.
9769         (-fchkp-narrow-to-innermost-array): Likewise.
9770         (-fchkp-use-fast-string-functions): Likewise.
9771         (-fchkp-use-nochk-string-functions): Likewise.
9772         (-fchkp-use-static-const-bounds): Likewise.
9773         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
9774         (-fchkp-instrument-marked-only): Likewise.
9775         (-fchkp-use-wrappers): Likewise.
9776         (-static-libmpx): Likewise.
9777         (-static-libmpxwrappers): Likewise.
9778         * doc/extend.texi (bnd_legacy): Likewise.
9779         (bnd_instrument): Likewise.
9780         (bnd_variable_size): Likewise.
9781         (Pointer Bounds Checker builtins): Likewise.
9783 2015-03-21  Tom de Vries  <tom@codesourcery.com>
9785         PR tree-optimization/65458
9786         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
9787         * cgraph.h (cgraph_node): Add parallelized_function field.
9788         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
9789         (input_overwrite_node): Read parallelized_function field.
9790         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
9791         parallelized_function on cgraph_node for child_fn.
9792         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
9793         Remove include of gt-tree-parloops.h.
9794         (parallelized_functions): Remove static variable.
9795         (parallelized_function_p): Rewrite using parallelized_function field of
9796         cgraph_node.
9797         (create_loop_fn): Remove adding to parallelized_functions.
9798         * Makefile.in (GTFILES): Remove tree-parloops.c
9800 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
9802         PR rtl-optimization/64366
9803         * lra.c (lra_update_insn_regno_info): Consider regs in
9804         CALL_INSN_FUNCTION_USAGE memory.
9806 2015-03-20  Richard Biener  <rguenther@suse.de>
9808         PR middle-end/64715
9809         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
9810         for type comparison and gcc_checking_assert.
9811         (chrec_fold_plus_poly_poly): Likewise.
9812         (chrec_fold_multiply_poly_poly): Likewise.
9813         (chrec_convert_1): Likewise.
9814         * gimplify.c (gimplify_expr): Remove premature folding of
9815         &X + CST to &MEM[&X, CST].
9817 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
9819         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
9820         already is final.
9821         (ipa_inline): Recompute inline_failed codes.
9822         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
9823         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
9824         CIF_FINAL_ERROR.
9826 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
9828         PR rtl-optimization/60851
9829         * recog.c (constrain_operands): Accept a pseudo register before reload
9830         for LRA enabled targets.
9832 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
9834         PR target/65240
9835         * config/rs6000/predicates.md (easy_fp_constant): Remove special
9836         -ffast-math handling that kept non-0 constants live in the RTL
9837         until reload.  Remove logic testing the number of instructions it
9838         took to create a constant in a GPR that was never used, due to a
9839         test for soft-float earlier.
9840         (memory_fp_constant): Delete, no longer used.
9842         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
9843         alternatives for loading non-0 constants into GPRs for hard
9844         floating point that is no longer needed due to changes in
9845         easy_fp_constant.  Add support for loading 0.0 into GPRs.
9846         (mov<mode>_hardfloat32): Likewise.
9847         (mov<mode>_hardfloat64): Likewise.
9848         (mov<mode>_64bit_dm): Likewise.
9849         (movtd_64bit_nodm): Likewise.
9850         (pre-reload move FP constant define_split): Delete define_split,
9851         since it is no longer used.
9852         (extenddftf2_internal): Remove GHF constraints that are not valid
9853         for extenddftf2.
9855 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
9857         PR rtl-optimization/63491
9858         * lra-constraints.c (check_and_process_move): Use src instead of
9859         sreg.  Remove some dead code.
9861 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
9863         PR ipa/65380
9864         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
9865         (sem_variable::merge): Likewise.
9867 2015-03-19  Martin Liska  <mliska@suse.cz>
9869         PR ipa/65465
9870         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
9871         all fields of cgraph_thunk_info.
9873 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
9875         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
9876         clone instrumented thunks.
9878 2015-03-19  Richard Biener  <rguenther@suse.de>
9880         Revert
9881         2015-03-10  Richard Biener  <rguenther@suse.de>
9883         PR middle-end/63155
9884         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
9885         * tree-ssa-coalesce.c: Include timevar.h.
9886         (attempt_coalesce): Handle graph being NULL.
9887         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
9888         Split out abnormal coalescing to ...
9889         (perform_abnormal_coalescing): ... this function.
9890         (coalesce_ssa_name): Perform abnormal coalescing without computing
9891         live/conflict.
9892         (verify_ssa_coalescing_worker): New function.
9893         (verify_ssa_coalescing): Likewise.
9895 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9896             Jakub Jelinek  <jakub@redhat.com>
9898         PR sanitizer/65400
9899         * tsan.c (instrument_gimple): Clear tail call flag on
9900         calls.
9902 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
9904         PR sanitizer/65400
9905         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
9906         call in the return bb.
9907         (find_split_points): Add RETURN_BB argument, don't call
9908         find_return_bb.
9909         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
9910         if true append TSAN_FUNC_EXIT internal call after the call to
9911         the split off function.
9912         (execute_split_functions): Call find_return_bb here.
9913         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
9914         Adjust find_split_points and split_function calls.
9916 2015-03-18  DJ Delorie  <dj@redhat.com>
9918         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
9919         (iorqi3_virt): Likewise.
9921 2015-03-18  Tom de Vries  <tom@codesourcery.com>
9923         * tree-parloops.c (parallelize_loops): Make static.
9924         * tree-parloops.h (parallelize_loops): Remove extern declaration.
9926 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
9928         PR middle-end/64491
9929         Revert:
9930         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
9932         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
9933         condition would be removed due to undefined behaviour.
9935 2015-03-18  Martin Liska  <mliska@suse.cz>
9937         PR ipa/65432
9938         * cgraph.c (cgraph_node::get_create): Remove unnecessary
9939         xstrdup_for_dump wrapper.
9940         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
9941         sem_item::name.
9942         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
9943         with xstrdup_for_dump.
9944         (sem_variable::equals): Likewise.
9945         (sem_item_optimizer::read_section): Use symtab_node::name instead of
9946         sem_item::name.
9947         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
9948         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
9949         symtab_node::asm_name with xstrdup_for_dump.
9950         (congruence_class::dump): Use symtab_node::name instead of
9951         sem_item::name.
9952         * ipa-icf.h (symtab_node::name): Remove.
9953         (symtab_node::asm_name): Likewise.
9955 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
9957         PR tree-optimization/65450
9958         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
9959         function.
9960         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
9961         it instead of duplicate_ssa_name_ptr_info.
9963         PR target/65222
9964         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
9966 2015-03-18  Richard Biener  <rguenther@suse.de>
9968         * tree-data-ref.h (struct access_matrix): Remove.
9969         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
9970         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
9971         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
9972         (am_vector_index_for_loop): Likewise.
9973         (struct data_reference): Remove access_matrix member.
9974         (DR_ACCESS_MATRIX): Remove.
9975         (lambda_vector_new): Add comment.
9976         (lambda_matrix_new): Use XOBNEWVEC.
9978 2015-03-18  Richard Biener  <rguenther@suse.de>
9980         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
9981         (pass_ch::execute): Cleanup the CFG only if we did sth.
9982         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
9984 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9986         * expmed.c (synth_mult): Use std::swap instead of manually
9987         swapping algorithms.
9989 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
9991         PR target/65078
9992         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
9994 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
9996         PR target/65296
9997         * config/avr/avr.opt (-nodevicelib): New option.
9998         * doc/invoke.texi (AVR Options): Document it.
9999         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
10000         libgcc.a, libc.a, libm.a.
10001         * config/avr/specs.h: Same.
10002         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
10003         which don't (directly) depend on the device.  Print more help.
10004         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
10005         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
10006         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
10007         case of an error.
10008         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
10009         for specs file name.
10010         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
10011         * config/avr/avr-mcus.def: Adjust initializers and comments.
10013 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
10015         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
10016         DECL_ONE_ONLY to check if decl is one only.
10017         * ipa-split.c (consider_split): Limit splitt of one only functions.
10019 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
10021         PR tree-optimization/65427
10022         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
10023         functions.
10024         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
10026 2015-03-16  Marek Polacek  <polacek@redhat.com>
10028         * cgraph.h (add_new_static_var): Remove declaration.
10029         * varpool.c (add_new_static_var): Remove function.
10031 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
10033         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
10034         instead of vec<tree> * with vec_alloc and release for args.
10035         Adjust all users.
10037         PR middle-end/65431
10038         * omp-low.c (delete_omp_context): Only splay_tree_delete
10039         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
10040         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
10042 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
10044         PR sanitizer/64820
10045         * cfgexpand.c (align_base): New function.
10046         (alloc_stack_frame_space): Call it.
10047         (expand_stack_vars): Align prev_frame to be sure
10048         data->asan_vec elements aligned properly.
10050 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
10052         PR middle-end/65409
10053         * expr.c (store_field): Do not do a direct block copy if the source is
10054         a PARALLEL with BLKmode.
10056 2015-03-16  Tom de Vries  <tom@codesourcery.com>
10058         PR middle-end/65414
10059         Revert:
10060         2015-03-12  Tom de Vries  <tom@codesourcery.com>
10062         PR rtl-optimization/64895
10063         * lra-lives.c (check_pseudos_live_through_calls): Use
10064         actual_call_used_reg_set instead of call_used_reg_set, if available.
10066 2015-03-16  Alan Modra  <amodra@gmail.com>
10068         PR target/63150
10069         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
10070         Modify Z->r bswapdi splitter to use dest in place of scratch.
10071         In r->Z and Z->r bswapdi splitter rename word_high, word_low
10072         to word1, word2 and rearrange logic to suit.
10073         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
10074         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
10075         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
10076         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
10077         early clobber.
10079 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
10081         PR tree-optimization/65369
10082         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
10083         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
10084         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
10086         PR tree-optimization/65418
10087         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
10088         are casts in the first PLUS_EXPR operand, ensure tbias and
10089         *totallowp are in the inner type.
10091         PR rtl-optimization/65401
10092         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
10093         argument.  If true, adjust_address_nv of x with big-endian
10094         correction for the mode widening to GET_MODE (y).
10095         (make_field_assignment): Don't do MEM mode widening here.
10096         Use MEM_P instead of GET_CODE == MEM.
10098 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
10100         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
10101         the external decls.
10103 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10105         PR target/64600
10106         * config/arm/arm.c (arm_gen_constant, AND case): Use
10107         ARM_SIGN_EXTEND when constructing AND mask.
10109 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10111         * graph.c (print_graph_cfg): Make function names visible and append
10112         parenthesis to it.  Also make groups of basic blocks belonging to the
10113         same function visible.
10115 2015-03-12  Richard Biener  <rguenther@suse.de>
10117         PR middle-end/44563
10118         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
10119         to avoid quadratic behavior with inline expansion splitting blocks.
10120         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
10121         with the successor if the predecessor will be merged with it.
10122         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
10123         entry block with its successor.
10125 2015-03-13  Richard Biener  <rguenther@suse.de>
10127         PR middle-end/44563
10128         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
10129         (cleanup_tree_cfg_1): Do not call it.
10130         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
10131         (fixup_noreturn_call): Mark the stmt as control altering.
10132         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
10133         here.
10134         (pass_data_fixup_cfg): Produce a dump file.
10135         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
10136         (need_noreturn_fixup): New global.
10137         (pass_dominator::execute): Fixup queued noreturn calls.
10138         (optimize_stmt): Queue calls that became noreturn for fixup.
10139         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
10140         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
10141         (el_to_fixup): New global.
10142         (eliminate_dom_walker::before_dom_childre): Queue calls that
10143         became noreturn for fixup.
10144         (eliminate): Fixup queued noreturn calls.
10145         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
10146         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
10147         (substitute_and_fold_dom_walker::before_dom_children): Queue
10148         alls that became noreturn for fixup.
10149         (substitute_and_fold): Fixup queued noreturn calls.
10151 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
10153         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
10154         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
10155         are building; for methods check ODR type of class they belong to if
10156         they may lead to a polymorphic call.
10157         (sem_function::compare_polymorphic_p): Be bit smarter about testing
10158         when function may lead to a polymorphic call.
10159         (sem_function::compare_type_list): Remove.
10160         (sem_variable::equals): Update use of compatible_types_p.
10161         (sem_variable::parse_tree_refs): Remove.
10162         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
10163         cdtor.
10164         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
10165         matching here.
10166         (func_checker::compatible_polymorphic_types_p): Break out from ...
10167         (unc_checker::compatible_types_p): ... here.
10168         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
10169         Declare.
10170         (unc_checker::compatible_types_p): Update.
10171         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
10172         Remove.
10174 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10176         PR rtl-optimization/65235
10177         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
10178         When first element of vec_concat is const_int, calculate its size
10179         using second element.
10181 2015-03-12  Richard Biener  <rguenther@suse.de>
10183         PR middle-end/65270
10184         * fold-const.c (operand_equal_p): Fix ordering of resetting
10185         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
10187 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10189         * config/s390/s390.c (s390_reorg): Move code to output nops after label
10190         to s390_reorg ().
10191         (s390_asm_output_function_label): Likewise.
10192         * config/s390/s390.c (s390_asm_output_function_label):
10193         Fix function label alignment with -mhtopatch.
10194         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
10195         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
10196         ("nop_2_byte"): New define_insn.
10197         ("nop_4_byte"): Likewise.
10198         ("nop_6_byte"): Likewise.
10199         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
10200         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
10202 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
10204         PR target/65103
10205         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
10206         register.
10208 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
10210         PR target/65044
10211         * toplev.c (process_options): Restrict Pointer Bounds Checker
10212         usage with Address Sanitizer.
10214 2015-03-12  Richard Biener  <rguenther@suse.de>
10216         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
10217         to split on.
10218         * omp-low.c (expand_omp_taskreg): Split block before removing
10219         the stmt.
10220         (expand_omp_target): Likewise.
10221         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
10222         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
10223         stmt to split_block.
10225 2015-03-12  Tom de Vries  <tom@codesourcery.com>
10227         PR rtl-optimization/64895
10228         * lra-lives.c (check_pseudos_live_through_calls): Use
10229         actual_call_used_reg_set instead of call_used_reg_set, if available.
10231 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
10233         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
10234         (cgraph_node::remove): Likewise.
10235         (cgraph_node::get_untransformed_body): Likewise.
10236         * varpool.c (varpool_node::remove): Likewise.
10237         (varpool_node::get_constructor): Add sanity check.
10239 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
10241         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
10242         old GCC versions.
10243         (-fabi-compat-version): Likewise.
10244         (-ffriend-injection): Likewise.
10245         (-Wdeclaration-after-statement): Likewise.
10246         (-fomit-frame-pointer): Likewise.
10247         (-ftree-coalesce-inlined-vars): Likewise.
10248         (-fvisibility=): Likewise.
10249         * doc/extend.texi (Typeof): Likewise.
10250         (Zero Length): Likewise.
10251         (Escaped Newlines): Likewise.
10252         (Compound Literals): Likewise.
10253         (Function Attributes): Likewise.
10254         (Label Attributes): Likewise.
10255         (Type Attributes): Likewise.
10256         (Function Names): Likewise.
10257         (Other Builtins): Likewise.
10258         (Function Specific Option Pragmas): Likewise.
10259         (C++ Interface): Likewise.
10261 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
10263         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
10265 2015-03-11  Marek Polacek  <polacek@redhat.com>
10267         PR tree-optimization/65388
10268         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
10270 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
10272         PR target/65296
10273         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
10274         * configure: Regenerate.
10275         * config.in: Regenerate.
10276         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
10277         [-mn-flash]: Document it.
10278         [__AVR_ARCH__]: Document avrtiny.
10280         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
10281         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
10282         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
10284 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10286         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
10288 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
10290         PR target/65242
10291         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
10292         allow reloads of PLUS in floating point/VSX registers.
10294 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
10296         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
10297         crypto_sha256_fast.
10298         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
10300 2015-03-11  Richard Biener  <rguenther@suse.de>
10302         PR tree-optimization/65310
10303         * tree-sra.c (build_ref_for_offset): Also preserve larger
10304         alignment.
10306 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
10308         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
10310 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
10312         PR target/65368
10313         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
10314         new define_expand.
10315         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
10317 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
10319         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
10320         (sem_function::equals_wpa): ... here.
10322 2015-03-10  Marek Polacek  <polacek@redhat.com>
10323             Jakub Jelinek  <jakub@redhat.com>
10325         PR sanitizer/65367
10326         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
10327         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
10328         separately.
10330 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
10332         PR target/65286
10333         * config/rs6000/t-linux: For powerpc64* target set
10334         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
10336 2015-03-10  Richard Biener  <rguenther@suse.de>
10338         PR middle-end/44563
10339         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
10340         for redirect_all_calls.
10342 2015-03-10  Marek Polacek  <polacek@redhat.com>
10344         * gdbinit.in (pcfun): Define and document.
10346 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
10348         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
10349         of libgomp-plugin.h.
10350         (find_target_compiler): Support a case when the path to gcc is
10351         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
10352         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
10353         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
10354         libgomp-plugin.h.
10355         (main): Use GCC_INSTALL_NAME as target_driver_name.
10356         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
10357         define.
10358         (mkoffload.o): Remove obsolete include path and defines.
10359         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
10361 2015-03-10  Richard Biener  <rguenther@suse.de>
10363         PR middle-end/63155
10364         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
10365         * tree-ssa-coalesce.c: Include timevar.h.
10366         (attempt_coalesce): Handle graph being NULL.
10367         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
10368         Split out abnormal coalescing to ...
10369         (perform_abnormal_coalescing): ... this function.
10370         (coalesce_ssa_name): Perform abnormal coalescing without computing
10371         live/conflict.
10372         (verify_ssa_coalescing_worker): New function.
10373         (verify_ssa_coalescing): Likewise.
10375 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
10377         PR target/65296
10378         * config.gcc (extra_options) [avr]: Remove.
10379         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
10380         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
10381         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
10383         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
10384         (-mmcu=): Add Var and MissingArgError properties.
10385         (-march=): Remove.
10386         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
10387         * config/avr/t-multilib: Regenerate.
10388         * config/avr/specs.h: New file.
10389         * config/avr/driver-avr.c: New file.
10390         * config/avr/genopt.sh: Remove file.
10391         * config/avr/avr-tables.opt: Remove file.
10392         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
10393         * config/avr/avr-c.c: Same.
10394         * avr-arch.h: Same.
10395         (avr_current_device): Remove proto.
10396         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
10397         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
10398         (EXTRA_SPEC_FUNCTIONS): Define.
10399         (avr_devicespecs_file): New specs function proto.
10400         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
10401         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
10402         (avr_current_device): Remove definition and usage.
10403         (avr_set_core_architecture): New static function.
10404         (avr_option_override): Use it.
10405         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
10406         (mcu_name): New static array.
10407         (comparator, avr_archs_str, avr_mcus_str): New static functions.
10408         (avr_inform_devices, avr_inform_core_architectures): New functions.
10409         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
10410         (avrlibc.h) [WITH_AVRLIBC]: Include.
10411         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
10412         (print_mcu): Rewrite from scratch.
10413         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
10414         Forward to avr-specific specs defined in device-specs file.
10415         * config/avr/t-avr (driver-avr.o): New rule.
10416         (avr-devices.o): Depend on avr-arch.h.
10417         (avr-mcus): No more depend on avr-tables.opt.
10418         (avr-tables.opt): Remove rule.
10419         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
10421 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
10423         * c-family/c.opt (fchkp-use-wrappers): New.
10424         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
10425         (chkp_wrap_function): New.
10426         (chkp_build_instrumented_fndecl): Support wrapped
10427         functions.
10428         * doc/invoke.texi (-fcheck-pointer-bounds): New.
10429         (-fchkp-check-incomplete-type): New.
10430         (-fchkp-first-field-has-own-bounds): New.
10431         (-fchkp-narrow-bounds): New.
10432         (-fchkp-narrow-to-innermost-array): New.
10433         (-fchkp-optimize): New.
10434         (-fchkp-use-fast-string-functions): New.
10435         (-fchkp-use-nochk-string-functions): New.
10436         (-fchkp-use-static-bounds): New.
10437         (-fchkp-use-static-const-bounds): New.
10438         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
10439         (-fchkp-check-read): New.
10440         (-fchkp-check-write): New.
10441         (-fchkp-store-bounds): New.
10442         (-fchkp-instrument-calls): New.
10443         (-fchkp-instrument-marked-only): New.
10444         (-fchkp-use-wrappers): New.
10445         (-static-libmpx): New.
10446         (-static-libmpxwrappers): New.
10448 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
10450         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
10451         (CHKP_SPEC): Add wrappers library.
10452         * c-family/c.opt (static-libmpxwrappers): New.
10454 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
10456         * config/i386/linux-common.h (LIBMPX_LIBS): New.
10457         (LIBMPX_SPEC): New.
10458         (CHKP_SPEC): New.
10459         * gcc.c (CHKP_SPEC): New.
10460         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
10461         * c-family/c.opt (static-libmpx): New.
10463 2015-03-10  Richard Biener  <rguenther@suse.de>
10465         PR middle-end/44563
10466         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
10467         for compare_type.
10468         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
10469         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
10470         (cgraph_add_edge_to_call_site_hash): Likewise.
10471         (cgraph_node::get_edge): Likewise.
10472         (cgraph_edge::set_call_stmt): Likewise.
10473         (cgraph_edge::remove_caller): Likewise.
10475 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
10477         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
10478         (callee_saved_gpr_regs_size): ... this.
10479         (callee_saved_regs_first_regno): Rename to ...
10480         (callee_saved_first_gpr_regno): ... this.
10481         (callee_saved_regs_last_regno) Rename to ...
10482         (callee_saved_last_gpr_regno): ... this.
10483         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
10484         variables.
10485         (nds32_initial_elimination_offset): Likewise.
10486         (nds32_expand_prologue): Likewise.
10487         (nds32_expand_epilogue): Likewise.
10488         (nds32_expand_prologue_v3push): Likewise.
10489         (nds32_expand_epilogue_v3pop): Likewise.
10490         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
10491         Adjust renamed variables.
10492         (nds32_output_stack_pop): Likewise.
10494 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10496         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
10497         code in comment.
10499 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
10501         PR rtl-optimization/65321
10502         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
10503         than shift mode.
10504         * var-tracking.c (use_narrower_mode): Likewise.
10506 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
10508         PR tree-optimization/65355
10509         * varasm.c (notice_global_symbol): Do not produce RTL.
10510         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
10511         anchor.
10512         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
10513         check for section anchors.
10515 2015-03-10  Alan Modra  <amodra@gmail.com>
10517         PR target/65286
10518         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
10519         to be single-arch by default.  Set cpu_is_64bit for powerpc64
10520         given --with-cpu=native.
10521         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
10522         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
10523         and powerpc64le.
10524         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
10525         rs6000_isa_flags rather than TARGET_64BIT.
10527 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
10528             Kaz Kojima  <kkojima@gcc.gnu.org>
10530         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
10532 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
10534         PR lto/65361
10535         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
10536         on a TREE_BINFO, instead use BINFO_TYPE.
10538 2015-03-09  Richard Biener  <rguenther@suse.de>
10540         PR middle-end/65270
10541         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
10542         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
10543         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
10544         of that.  When comparing dereferences compare alignment.
10545         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
10547 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
10549         * ipa-inline-analysis.c (check_callers): Check
10550         node->can_remove_if_no_direct_calls_and_refs_p.
10551         (growth_likely_positive): Reorganize to call
10552         can_remove_if_no_direct_calls_p later.
10553         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
10554         will_be_removed_from_program_if_no_direct_calls_p): Add
10555         will_inline parameter.
10556         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
10557         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
10558         Handle inliner case correctly.
10560 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10562         PR tree-optimization/63743
10563         * cfgexpand.c (reorder_operands): Also reorder if only second operand
10564         had its definition forwarded by TER.
10566 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
10568         PR lto/65316
10569         * ipa-utils.h (types_odr_comparable): Add strict argument.
10570         * ipa-devirt.c: Fix whitespace;
10571         (odr_hasher): Remove.
10572         (odr_name_hasher, odr_vtable_hasher): New hashers.
10573         (can_be_name_hashed_p): New predicate.
10574         (hash_type_name): remove.
10575         (hash_odr_name): New.
10576         (odr_name_hasher::hash): new.
10577         (can_be_vtable_hashed_p): New.
10578         (hash_odr_vtable): New.
10579         (odr_vtable_hasher::hash): New.
10580         (types_same_for_odr): Add strict parameter.
10581         (types_odr_comparable): Likewise.
10582         (odr_name_hasher::equal): New.
10583         (odr_vtable_hasher::equal): New.
10584         (odr_name_hasher::remove): New.
10585         (odr_hash_type): Change to hash_table<odr_name_hasher>.
10586         (odr_vtable_hash_type): New.
10587         (odr_vtable_hash): New.
10588         (odr_subtypes_equivalent_p): Do strict comparsion.
10589         (add_type_duplicate): Merge type names; cleanup; avoid type
10590         duplicates.
10591         (register_odr_type): Initialize vtable hash.
10592         (build_type_inheritance_graph): Likewise
10593         (get_odr_type): Reorg to use two hashes.
10594         (dump_possible_polymorphic_call_targets): Move sanity check after debug
10595         output.
10596         (ipa_devirt): Dump type_inheritance_graph.
10597         (types_same_for_odr): Add strict mode.
10599 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
10601         PR ipa/65334
10602         * cgraph.h (symtab_node): Add definition_alignment,
10603         can_increase_alignment_p and increase_alignment.
10604         * symtab.c (symtab_node::can_increase_alignment_p,
10605         increase_alignment_1, symtab_node::increase_alignment,
10606         symtab_node::definition_alignment): New.
10607         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
10608         can_increase_alignment_p.
10609         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
10610         * tree-vect-stmts.c (ensure_base_align): Likewise.
10611         * varasm.c (function_section_1): Use definition_alignment.
10612         (assemble_start_function): Likewise.
10613         (emit_local): likewise.
10614         (build_constant_desc): Likewsie.
10615         (output_constant_def_contents): Likewise.
10616         (place_block_symbol): Likewise.
10617         (output_object_block): Likewise.
10619 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
10621         PR ipa/65316
10622         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
10623         when outputting debug.
10625 2015-03-07  Marek Polacek  <polacek@redhat.com>
10626             Martin Uecker  <uecker@eecs.berkeley.edu>
10628         PR sanitizer/65280
10629         * doc/invoke.texi: Update description of -fsanitize=bounds.
10631 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
10633         * tree-ssa-phiopt.c (neg_replacement): Remove.
10634         (tree_ssa_phiopt_worker): Remove negate optimization.
10636 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
10638         PR ipa/65302
10639         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
10641 2015-03-06  Richard Biener  <rguenther@suse.de>
10643         PR middle-end/64928
10644         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
10645         and liveout_obstack members.
10646         (calculate_live_on_exit): Remove.
10647         (calculate_live_ranges): Change declaration.
10648         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
10649         (new_tree_live_info): Adjust.
10650         (calculate_live_ranges): Delete livein when not wanted.
10651         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
10652         Deal with partly deleted live info.
10653         (loe_visit_block): Remove temporary bitmap by using
10654         bitmap_ior_and_compl_into.
10655         (live_worklist): Adjust accordingly.
10656         (calculate_live_on_exit): Make static.
10657         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
10658         we do not need livein.
10660 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
10662         * real.c (real_from_string): Fix typo in assertion.
10664 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
10666         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
10667         the patch.
10669 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
10671         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
10673 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
10675         PR target/64342
10676         * lra-assigns.c (find_hard_regno_for): Rename to
10677         find_hard_regno_for_1.  Add a new parameter.
10678         (find_hard_regno_for): New function using find_hard_regno_for_1.
10680 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10682         PR rtl-optimization/65067
10683         * expmed.c (store_bit_field, extract_bit_field): Reworked the
10684         strict volatile bitfield handling.
10686 2015-03-05  Martin Liska  <mliska@suse.cz>
10688         PR ipa/65318
10689         * ipa-icf.c (sem_variable::equals): Compare variables types.
10691 2015-03-05  Richard Henderson  <rth@redhat.com>
10693         PR target/65121
10694         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
10695         correctly check weak symbol binding.
10697 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
10699         PR middle-end/65315
10700         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
10701         needed alignment.
10703 2015-03-05  Martin Liska  <mliska@suse.cz>
10705         * ipa-inline.c (inline_small_functions): Set default value to
10706         prevent warning during bootstrap.
10707         * tree.h: Add pragma guard that ignores false positives during
10708         bootstrap.
10710 2015-03-05  Richard Biener  <rguenther@suse.de>
10712         PR tree-optimization/65310
10713         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
10714         Properly preserve alignment of the base of the access.
10716 2015-03-05  Richard Biener  <rguenther@suse.de>
10718         PR ipa/65270
10719         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
10720         Compare dependence info.
10722 2015-03-05  Richard Biener  <rguenther@suse.de>
10724         PR middle-end/65233
10725         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
10726         tree-into-ssa.h.
10727         (walk_ssa_copies): Revert last chage.  Instead do not walk
10728         SSA names registered for SSA update.
10730 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
10732         PR ipa/65270
10733         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
10734         vtable references for their containing type.
10735         (sem_function::equals_wpa): Compare TYPE_RESTRICT
10736         and type attributes.
10738 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
10740         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
10741         before negating it.
10742         * stor-layout.c (finalize_record_size): Revert latest change.
10744 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
10746         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
10748 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
10750         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
10751         for correct comdat handling.
10752         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
10753         Likewise.
10754         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
10755         (used_from_object_file_p_worker): Remove.
10756         (cgraph_node::only_called_directly_or_alised): Add
10757         used_from_object_file_p.
10758         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
10759         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
10760         can_remove_if_no_direct_calls_and_refs_p.
10762 2015-03-04  Nick Clifton  <nickc@redhat.com>
10764         * config/rl78/rl78.h (enum reg_class): Remove real registers from
10765         General register class.
10766         * config/rl78/rl78-real.md: Replace general register constraints
10767         with real+virtual register constraints.
10769 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10771         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
10772         from checking for -mhtm option.
10774 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
10776         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
10777         (struct ipa_sra_check_caller_data): Add has_thunk field.
10778         (ipa_sra_check_caller): Check for thunk.
10779         (ipa_sra_preliminary_function_checks): Give up on function with
10780         thunks.
10781         (ipa_early_sra): Use call_for_symbol_and_aliases.
10783 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10785         PR target/65249
10786         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
10787         called for __stack_chk_guard symbol.
10789 2015-03-03  DJ Delorie  <dj@redhat.com>
10791         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
10792         inc/dec.
10793         (*addhi3_real): Likewise.
10794         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
10795         pattern to match incrementing memory.
10796         * config/rl78/predicates.md (rl78_1_2_operand): New.
10797         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
10798         it's the same and only mem.
10799         (rl78_alloc_physical_registers_op2): If there's effectively only
10800         one MEM, transcode it into HL.
10801         (rl78_far_p): Reject addresses that aren't legitimate.
10803 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
10805         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
10806         negating it.
10808         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
10810 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
10812         Implement call0 ABI for xtensa
10813         * config/xtensa/constraints.md ("a" constraint): Include stack
10814         pointer in case of call0 ABI.
10815         ("q" constraint): Make empty in case of call0 ABI.
10816         ("D" constraint): Include stack pointer in case of call0 ABI.
10817         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
10818         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
10819         prototypes.
10820         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
10821         variable.
10822         (xtensa_regno_to_class): Make it a local variable in the
10823         function xtensa_regno_to_class.
10824         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
10825         macro, function prototype and implementation.
10826         (reg_nonleaf_alloc_order): Make it a local variable in the
10827         function order_regs_for_local_alloc.
10828         (xtensa_conditional_register_usage): New function.
10829         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
10830         (xtensa_valid_move): Allow direct moves to stack pointer
10831         register in call0 ABI.
10832         (xtensa_setup_frame_addresses): Only spill register windows in
10833         windowed ABI.
10834         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
10835         call0 ABI respectively.
10836         (xtensa_function_arg_1): Only mark a7 register for copying in
10837         windowed ABI.
10838         (xtensa_call_save_reg): New function.
10839         (compute_frame_size): Add space for callee saved register
10840         storage to the frame size in call0 ABI.
10841         (xtensa_expand_prologue): Generate code to set up stack frame
10842         and save callee-saved registers in call0 ABI.
10843         (xtensa_expand_epilogue): New function.
10844         (xtensa_set_return_address): New function.
10845         (xtensa_return_addr): Calculate return address in call0 ABI.
10846         (xtensa_builtin_saveregs): Only mark a7 register for copying and
10847         emit copying code in windowed ABI.
10848         (order_regs_for_local_alloc): Add preferred register allocation
10849         order for non-leaf function in call0 ABI.
10850         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
10851         (xtensa_asm_trampoline_template): Add trampoline generation for
10852         call0 ABI.
10853         (xtensa_trampoline_init): Add trampoline initialization for
10854         call0 ABI.
10855         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
10856         functions.
10857         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
10858         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
10859         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
10860         ABI call-used registers.
10861         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
10862         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
10863         call0 ABI.
10864         (REG_CLASS_CONTENTS): Include all registers into the preferred
10865         reload registers set, adjust the set in the
10866         xtensa_conditional_register_usage.
10867         (xtensa_regno_to_class): Drop variable declaration.
10868         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
10869         function.
10870         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
10871         respectively.
10872         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
10873         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
10874         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
10875         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
10876         location in call0 ABI.
10877         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
10878         stack adjustment size when handling exception.
10879         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
10880         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
10881         definitions.
10882         ("return" pattern): Generate ret.n/ret in call0 ABI.
10883         ("epilogue" pattern): Expand epilogue.
10884         ("nonlocal_goto" pattern): Use default in call0 ABI.
10885         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
10886         emit eh_set_a0_* depending on ABI.
10887         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
10888         ("eh_set_a0_call0", "blockage"): New patterns.
10890 2015-03-03  Martin Liska  <mliska@suse.cz>
10892         PR ipa/65287
10893         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
10895 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
10897         PR 65138/target
10898         * config/rs6000/rs6000-tables.opt: Regenerate table.
10900 2015-03-03  Renlin Li  <renlin.li@arm.com>
10902         * doc/md.texi (@item ^): Change ? into ^.
10904 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
10906         * doc/tm.texi: Regenerated.
10908 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
10910         * builtins.c (expand_builtin_return_addr): Add
10911         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
10912         surrounding #ifdef.
10913         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
10914         definition to 1.
10915         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
10916         Likewise.
10917         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
10918         undefined.
10919         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
10920         paragraph.
10922 2015-03-03  Martin Jambor  <mjambor@suse.cz>
10923             Eric Botcazou  <ebotcazou@adacore.com>
10925         * tree-sra.c (ipa_sra_check_caller_data): New type.
10926         (has_caller_p): Removed.
10927         (ipa_sra_check_caller): New function.
10928         (ipa_sra_preliminary_function_checks): Use it.
10930 2015-03-03  Martin Liska  <mliska@suse.cz>
10932         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
10933         instead of if branch.
10935 2015-03-03  Martin Liska  <mliska@suse.cz>
10937         PR ipa/65282
10938         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
10940 2015-03-23  Jeff Law  <law@redhat.com>
10942         PR tree-optimization/65241
10943         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
10944         hash table if INSERT is true.
10946 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
10948         PR target/65296
10949         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
10951 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
10953         PR target/64331
10954         * config/avr/avr.c (context.h, tree-pass.h): Include them.
10955         (avr_pass_data_recompute_notes): New static variable.
10956         (avr_pass_recompute_notes): New class.
10957         (avr_register_passes): New static function.
10958         (avr_option_override): Call it.
10960 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
10962         Fix various problems with specs file generation.
10964         PR target/65296
10965         * config.gcc (extra_gcc_objs) [avr]: Remove.
10966         * config/avr/driver-avr.c: Remove file.
10967         * config/avr/t-avr (driver-avr.o): Remove rule.
10968         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
10969         INCLUDES to build.  Depend on TM_H.
10970         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
10971         build warnings.  Fix non-matching types and non-existing %-codes.
10972         (tm.h): Include.
10973         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
10974         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
10975         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
10976         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
10977         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
10978         (LIBGCC_SPEC): Remove definitions.
10980 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
10982         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
10983         to create a register in testing mode.
10985 2015-03-03  Martin Liska  <mliska@suse.cz>
10986             Jan Hubicka  <hubicka@ucw.cz>
10988         PR ipa/65263
10989         * cgraph.c (cgraph_node::has_thunk_p): New function.
10990         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
10991         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
10992         (sem_function::merge): Assert is changed.
10994 2015-03-03  Martin Liska  <mliska@suse.cz>
10995             Martin Jambor  <mjambor@suse.cz>
10997         PR ipa/65087
10998         * ipa-icf.c (sem_item_optimizer::execute): Change function
10999         return value to boolean.
11000         (sem_item_optimizer::merge_classes): Likewise.
11001         (ipa_icf_driver): Return TODO_remove_functions in case there's
11002         a merge operation processed.
11003         * ipa-icf.h: Change function return value to boolean.
11005 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11007         PR 65138/target
11008         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
11009         processor type for 64-bit little endian PowerPC.
11011         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
11012         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
11013         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
11014         printing built-in mask so it does not pass NULL pointers.
11016         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
11017         -mcpu=powerpc64le.
11019 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
11021         PR target/58158
11022         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
11023         !ISA_HAS_FP_CONDMOVE.
11025 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
11027         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
11028         reload_completed.
11030 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
11032         * doc/invoke.texi (Options for Code Generation Conventions):
11033         Fix URL of DSO paper.
11035 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
11037         PR ipa/65130
11038         * ipa-inline.c (check_callers): Looks for recursion.
11039         (inline_to_all_callers): Give up on uninlinable or recursive edges.
11040         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
11041         summary of inline clones.
11042         (do_estimate_growth_1): Fix recursion check.
11044 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
11046         PR ipa/64988
11047         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
11048         comdat groups.
11050 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
11051             Aldy Hernandez  <aldyh@redhat.com>
11053         PR lto/65276
11054         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
11055         when checking TYPE_BINFO.
11057 2015-03-02  Richard Biener  <rguenther@suse.de>
11059         PR ipa/65270
11060         * ipa-icf-gimple.c: Include builtins.h.
11061         (func_checker::compare_memory_operand): Compare base alignment.
11063 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
11065         PR target/65184
11066         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
11067         are never passed by reference.
11069 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
11071         PR target/65183
11072         * tree-chkp.c (chkp_check_lower): Don't check against
11073         zero bounds for already instrumented functions.
11074         (chkp_check_upper): Likewise.
11075         (chkp_fini): Clean pass local data to avoid wrong reusage.
11077 2015-02-28  Martin Liska  <mliska@suse.cz>
11078             Jan Hubicka  <hubicka@ucw.cz>
11080         * ipa-icf.c (sem_variable::equals): Improve debug output;
11081         get variable constructor.
11082         (sem_variable::parse): Do not filter out too early; give up on
11083         volatile and register vars.
11084         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
11085         variables.
11086         * ipa-icf.h (sem_variable::init): Do not set ctor.
11087         (sem_variable::ctor): Remove.
11089 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
11091         PR middle-end/65233
11092         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
11094 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
11096         * ipa-icf.c: Include stor-layout.h
11097         (sem_function::compare_cgraph_references): Rename to ...
11098         (sem_item::compare_cgraph_references): ... this one.
11099         (sem_variable::equals_wpa): New function
11100         (sem_variable::equals): Do not check stuff already verified by
11101         equals_wpa.
11102         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
11103         * ipa-icf.h (sem_item): Add compare_cgraph_references.
11104         (sem_function): Remove compare_cgraph_references.
11105         (sem_variable): Turns equals_wpa into non-inline.
11107 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
11109         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
11110         (sem_item::add_expr): New function.
11111         (sem_function::hash_stmt): Handle operands of most statements.
11112         (sem_variable::get_hash): Hash the actual constructor.
11113         * ipa-icf.h (sem_item): Add add_expr.
11114         (sem_function): Update prototype of hash_stmt
11116 2015-02-28  Martin Liska  <mliska@suse.cz>
11117             Jan Hubicka  <hubicka@ucw.cz>
11119         PR ipa/65245
11120         * ipa-icf-gimple.c (func_checker::compare_function_decl):
11121         Remove.
11122         (func_checker::compare_variable_decl): Skip symtab vars.
11123         (func_checker::compare_cst_or_decl): Update.
11124         * ipa-icf.c (sem_function::parse): Do not consider aliases.
11125         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
11126         use correct symtab predicates.
11127         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
11128         (sem_variable::parse):  Update comment.
11129         (sem_item_optimizer::build_graph): Consider ultimate aliases
11130         for references.
11132 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
11134         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
11135         of OBJ_TYPE_REF.
11137 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
11139         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
11140         (sem_variable::merge) Likewise.
11142 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
11144         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
11145         target; also match flag_ipa_devirt.
11147 2015-03-01  Martin Liska  <mliska@suse.cz>
11148             Jan Hubicka  <hubicka@ucw.cz>
11150         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
11151         Validate variable alignment.
11152         * ipa-icf.c (sem_function::equals_private): Be more precise
11153         about non-common function attributes.
11154         (sem_variable::equals): Likewise.
11156 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
11158         PR ipa/65237
11159         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
11160         across COMDAT group boundary.
11162 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
11164         PR ipa/65232
11165         * ipa-icf.c (clear_decl_rtl): New function.
11166         (sem_function::merge): Clear RTL before forming alias.
11167         (sem_variable::merge): Clear RTL before forming alias.
11169 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
11171         PR ipa/65236
11172         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
11174 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
11176         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
11177         to neon_to_gp<q>.
11179 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
11181         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
11182         a typo in the description.
11184 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
11186         PR target/64317
11187         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
11188         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
11189         * lra-constraints.c: Include "params.h".
11190         (EBB_PROBABILITY_CUTOFF): Use
11191         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
11192         (lra_inheritance): Use '<' instead of '<=' for
11193         EBB_PROBABILITY_CUTOFF.
11194         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
11195         Document change.
11197 2015-02-27  Martin Liska  <mliska@suse.cz>
11199         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
11200         vector length condition.
11202 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
11204         * doc/extend.texi (x86 transactional memory intrinsics):
11205         Reorganize discussion of _xbegin.  Clarify that the return
11206         value is a bit mask.  Expand example and move to end of section.
11208 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
11209             Aldy Hernandez  <aldyh@redhat.com>
11211         PR rtl-optimization/65220
11212         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
11214 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
11216         PR target/65032
11217         * lra-remat.c (update_scratch_ops): New.
11218         (do_remat): Call it.
11219         * lra.c (lra_register_new_scratch_op): New. Take code from ...
11220         (remove_scratches): ... here.
11221         * lra-int.h (lra_register_new_scratch_op): New prototype.
11223 2015-02-27  Marek Polacek  <polacek@redhat.com>
11225         PR c/65040
11226         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
11227         -Wformat-signedness anymore.
11229 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11231         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
11232         function.
11233         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
11235 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11237         * config/s390/s390.c (enum s390_builtin):
11238         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
11239         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
11240         (s390_init_builtins): Generate new builtin functions.
11241         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
11242         (s390_sfpc, s390_efpc): New pattern definitions.
11244 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11246         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
11247         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
11248         (s390_builtin_decls): New array.
11249         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
11250         (s390_builtin_decl): New function.
11251         (TARGET_BUILTIN_DECL): Define macro.
11253 2015-02-27  Richard Biener  <rguenther@suse.de>
11255         PR middle-end/63175
11256         * builtins.c (get_object_alignment_2): Make sure to re-apply
11257         the ANDed mask after recursing to its operand gets us a new
11258         misalignment bit position.
11260 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
11261             Martin Liska  <mliska@suse.cz>
11263         PR bootstrap/65150
11264         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
11265         Use address_matters_p.
11266         (redirect_all_callers, set_addressable): New functions.
11267         (sem_function::merge): Reorganize and fix merging issues.
11268         (sem_variable::merge): Likewise.
11269         (sem_variable::compare_sections): Remove.
11270         * common.opt (fmerge-all-constants, fmerge-constants): Remove
11271         Optimization flag.
11272         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
11273         redirect them.
11274         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
11275         decl is used.
11276         (address_matters_1): New function.
11277         (symtab_node::address_matters_p): New function.
11278         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
11279         check for merged flag.
11280         * cgraph.h (address_matters_p): Declare.
11281         (symtab_node::address_taken_from_non_vtable_p): Remove.
11282         (symtab_node::address_can_be_compared_p): New method.
11283         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
11284         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
11285         Remove.
11286         (comdat_can_be_unshared_p_1) Use address_matters_p.
11287         (update_vtable_references): Fix formating.
11288         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
11289         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
11290         * cgraphclones.c: Preserve merged and icf_merged flags.
11292 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
11294         * doc/extend.texi (Function Attributes): Fix spelling and typos.
11295         (Label Attributes): Likewise.
11296         (Cilk Plus Builtins): Likewise.
11297         (ARC SIMD Built-in Functions): Likewise.
11298         (ARM C Language Extensions (ACLE)): Likewise.
11299         (PowerPC Built-in Functions): Likewise.
11300         (PowerPC Hardware Transactional Memory Built-in Functions):
11301         Likewise.
11303 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
11305         PR tree-optimization/65216
11306         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
11307         new stmt and new SSA_NAME for lhs whenever the arguments have
11308         changed and weren't just swapped.  Fix comment typo.
11310         PR tree-optimization/65215
11311         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
11312         for PDP endian targets.
11313         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
11314         Fix up formatting issues.
11315         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
11316         size is smaller than the original, adjust MEM_REF offset by the
11317         difference of sizes.  Use is_gimple_mem_ref_addr instead of
11318         is_gimple_min_invariant test to avoid adding address temporaries.
11320 2015-02-26  Martin Liska  <mliska@suse.cz>
11321             Jan Hubicka  <hubicka@ucw.cz>
11323         PR ipa/64693
11324         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
11325         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
11326         (sem_item_optimizer::process_cong_reduction): Include division by
11327         sensitive references.
11328         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
11329         * ipa-ref.c (ipa_ref::address_matters_p): New function.
11330         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
11332 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
11334         PR target/65192
11335         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
11336         Remove.
11337         * config/avr/avr.c: Same.
11338         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
11339         Refuse any constant address not in 0..0xbf.
11340         * config/avr/avr.md (*mov<mode>, *movsf): Remove
11341         tiny_valid_direct_memory_access_range from insn conditions.
11342         (mov<mode>): Don't special-case expansion of avrtiny addresses.
11344 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
11346         PR target/61142
11347         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
11348         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
11349         * config/sh/predicates.md (const_logical_operand): New predicate.
11350         * config/sh/sh.md: Add new peephole2 patterns.
11352 2015-02-26  Marek Polacek  <polacek@redhat.com>
11354         PR ipa/65008
11355         * ipa-inline.c (early_inliner): Recompute inline parameters.
11357 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11359         PR target/65171
11360         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
11361         instructions with TImode operands are included in the analysis.
11363 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
11365         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
11366         of an EDGE_FSM_THREAD.
11368 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11370         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
11372 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
11374         PR debug/46102
11375         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
11377 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
11379         PR tree-optimization/65048
11380         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
11381         (thread_through_all_blocks): Call valid_jump_thread_path.
11382         Remove invalid FSM jump-thread paths.
11384 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
11386         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
11387         (ipa_write_optimization_summaries): Likewise.
11388         * tree-streamer.h: Include data-streamer.h.
11389         (streamer_mode_table): Declare extern variable.
11390         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
11391         * lto-streamer-out.c (lto_output_init_mode_table,
11392         lto_write_mode_table): New functions.
11393         (produce_asm_for_decls): Call lto_write_mode_table when streaming
11394         offloading LTO.
11395         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
11396         (lto_create_simple_input_block): Add mode_table argument to the
11397         lto_input_block constructors.
11398         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
11399         Likewise.
11400         * data-streamer-in.c (string_for_index): Likewise.
11401         * ipa-inline-analysis.c (inline_read_section): Likewise.
11402         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
11403         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
11404         * lto-streamer-in.c (lto_read_body_or_constructor,
11405         lto_input_toplevel_asms): Likewise.
11406         (lto_input_mode_table): New function.
11407         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
11408         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
11409         Use bp_pack_machine_mode.
11410         * real.h (struct real_format): Add name field.
11411         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
11412         (class lto_input_block): Add mode_table member.
11413         (lto_input_block::lto_input_block): Add mode_table_ argument,
11414         initialize mode_table.
11415         (struct lto_file_decl_data): Add mode_table field.
11416         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
11417         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
11418         unpack_ts_decl_common_value_fields,
11419         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
11420         * tree-streamer.c (streamer_mode_table): New variable.
11421         * real.c (ieee_single_format, mips_single_format,
11422         motorola_single_format, spu_single_format, ieee_double_format,
11423         mips_double_format, motorola_double_format,
11424         ieee_extended_motorola_format, ieee_extended_intel_96_format,
11425         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
11426         ibm_extended_format, mips_extended_format, ieee_quad_format,
11427         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
11428         decimal_single_format, decimal_double_format, decimal_quad_format,
11429         ieee_half_format, arm_half_format, real_internal_format): Add name
11430         field.
11431         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
11433 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
11435         PR target/65161
11436         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
11437         reordering for selective scheduling.
11439 2015-02-26  Terry Guo  <terry.guo@arm.com>
11441         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
11442         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
11443         (arm_arch_no_volatile_ce): Declare new global variable.
11444         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
11445         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
11446         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
11447         (TARGET_NO_VOLATILE_CE): New macro.
11448         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
11449         volatile memory access in IT block
11451 2015-02-25  Kai Tietz  <ktietz@redhat.com>
11453         PR tree-optimization/61917
11454         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
11455         that reduc_def_stmt is null.
11457 2015-02-25  Martin Liska  <mliska@suse.cz>
11459         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
11460         hard register variables.
11462 2015-02-25  Kai Tietz  <ktietz@redhat.com>
11464         PR target/64212
11465         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
11466         (symtab::noninterposable_alias): Likewise.
11468 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
11470         PR target/65167
11471         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
11472         bounds registers.
11473         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
11475 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
11477         PR target/64997
11478         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
11479         as split condition; force split via '#' in output pattern.
11481 2015-02-25  Richard Biener  <rguenther@suse.de>
11482             Kai Tietz  <ktietz@redhat.com>
11484         PR tree-optimization/61917
11485         * tree-vect-loop.c (vectorizable_reduction): Allow
11486         vect_internal_def without reduction to exit graceful.
11488 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
11490         PR target/65196
11491         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
11492         only with NONDEBUG_INSN_P.
11494 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
11496         Use variadic macros with avr-log.c.
11498         * config/avr/avr-protos.h (avr_vdump): New prototype.
11499         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
11500         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
11501         * config/avr/avr-log.c: Adjust comments.
11502         (avr_vdump): New function.
11503         (avr_vadump): Pass caller as 2nd argument instead of format string.
11504         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
11505         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
11507 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
11509         PR lto/64374
11510         * target.def (target_option_stream_in): New target hook.
11511         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
11512         targetm.target_option.post_stream_in if non-NULL.
11513         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
11514         * doc/tm.texi: Updated.
11515         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
11516         function.
11517         (TARGET_OPTION_POST_STREAM_IN): Redefine.
11519 2015-02-24  Jeff Law  <law@redhat.com>
11521         PR target/65117
11522         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
11523         of operand 0 and operand 2.
11524         (zero_cost_loop_end, loop_end): Similarly.
11526 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
11528         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
11529         CXX_MEM_STAT_INFO.
11531 2015-02-24  DJ Delorie  <dj@redhat.com>
11533         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
11534         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
11535         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
11536         instead of hardcoding SImode.
11538 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
11540         * omp-low.c (create_omp_child_function): Tag entrypoint
11541         functions with a special attribute.
11543 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
11545         PR target/65058
11546         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
11548 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
11550         PR rtl-optimization/65123
11551         * lra-remat.c (operand_to_remat): Check hard regs in insn
11552         definition too.
11554 2015-02-24  Nick Clifton  <nickc@redhat.com>
11556         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
11557         to the assembler.
11559 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
11561         PR libgomp/64625
11562         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
11563         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
11564         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
11565         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
11566         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
11567         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
11568         (BUILT_IN_GOACC_PARALLEL): Specify as
11569         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
11570         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
11571         * builtin-types.def
11572         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
11573         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
11574         Remove function types.
11575         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
11576         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
11577         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
11578         New function types.
11580 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
11582         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
11584 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
11586         PR tree-optimization/65170
11587         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
11588         if val[1] < 0, clear also val[2] and return 3.
11590 2015-02-24  Alan Modra  <amodra@gmail.com>
11592         PR target/65172
11593         * config/rs6000/rs6000.c (get_memref_parts): Only return true
11594         when *base is a reg.  Handle nested plus addresses.  Simplify
11595         pre_modify test.
11597 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
11599         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
11600         use natural alignment when optimizing for size.
11602 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
11604         PR target/65153
11605         * config/sh/sh.md (movsicc_true+3): Remove peephole.
11606         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
11607         * config/sh/sh.c (replace_n_hard_rtx): Remove.
11609 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
11611         PR fortran/63427
11612         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
11613         too big for a wide_int.  Implement missing wrapping operation.
11615 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
11617         PR target/65163
11618         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
11619         instead of const_int 4294901760.
11621 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
11623         * config/avr/t-avr: Fix typo in comment.
11625 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
11627         * doc/rtl.texi (fma): Clarify documentation.
11629 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
11631         PR debug/58123
11632         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
11633         over input_location.
11635 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
11637         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
11638         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
11639         restrict alignments to absolute_biggest_alignment.
11640         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
11641         Define.
11642         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
11643         * doc/tm.texi: Regenerate.
11644         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
11646 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
11648         PR target/64172
11649         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
11651 2015-02-20  Richard Biener  <rguenther@suse.de>
11653         PR tree-optimization/65136
11654         * tree-ssa-propagate.c: Include cfgloop.h.
11655         (replace_phi_args_in): Avoid replacing loop latch edge PHI
11656         arguments with constants.
11658 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
11659             Martin Liska  <mliska@suse.cz>
11661         PR target/63892
11662         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
11663         don't try to create_thunk if stdarg_p.  If
11664         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
11665         redirect_callers if possible.
11666         (sem_item_optimizer::execute): Call unregister_hooks here...
11667         (ipa_icf_driver): ... instead of here.
11669 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11671         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
11672         Mark operand 0 as earlyclobber in 2nd alternative.
11673         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
11674         Write negated shift amount into QI lowpart operand 0 and use it
11675         in the shift step.
11676         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
11678 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
11680         * cgraph.h (clone_function_name_1): Declare.
11681         * cgraphclones.c (clone_function_name_1): New function.
11682         (clone_function_name): Use it.
11683         * lto-partition.c: Include "stringpool.h".
11684         (must_not_rename, maybe_rewrite_identifier)
11685         (validize_symbol_for_target): New static functions.
11686         (privatize_symbol_name): Use must_not_rename.
11687         (promote_symbol): Call validize_symbol_for_target.
11688         (lto_promote_cross_file_statics): Likewise.
11689         (lto_promote_statics_nonwpa): Likewise.
11691 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
11693         PR target/64452
11694         * config/avr/avr.md (pushhi_insn): New insn.
11695         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
11697 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
11698             Jakub Jelinek  <jakub@redhat.com>
11700         * tree-streamer.c (preload_common_nodes): Don't preload
11701         TI_VA_LIST* for offloading.
11702         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
11703         in_lto_p.
11705 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
11707         * config/pa/pa.c (pa_emit_move_sequence): Always force
11708         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
11709         note on insn.
11711         * config/pa/pa.c (pa_reloc_rw_mask): New function.
11712         (TARGET_ASM_RELOC_RW_MASK): Define.
11713         (pa_cannot_force_const_mem): Revert previous change.
11715 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
11716             Jan Hubicka  <hubicka@ucw.cz>
11718         PR ipa/65028
11719         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
11720         across jump functions.
11722 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
11724         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
11726 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
11728         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
11730 2015-02-19  Richard Henderson  <rth@redhat.com>
11732         PR middle-end/65074
11733         * varasm.c (default_binds_local_p_2): Don't test node->definition;
11734         test DECL_EXTERNAL independent of symtab_node.
11736 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
11738         PR lto/65012
11739         * varpool.c (varpool_node::get_constructor): Return early
11740         if this->lto_file_data is NULL.
11742 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11744         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
11745         (rank_for_schedule_debug): Update.
11746         (ready_sort): Make static.  Move sorting logic to ...
11747         (ready_sort_debug, ready_sort_real): New static functions.
11748         (schedule_block): Sort both debug insns and real insns in preparation
11749         for ready list trimming.  Improve debug output.
11750         * sched-int.h (ready_sort): Remove global declaration.
11752 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
11754         * ipa-icf.c (sem_function::equals_private): Adjust.
11755         (sem_function::bb_dict_test): Take a vec<int> * instead of
11756         auto_vec<int>.
11757         * ipa-icf.h (bb_dict_test): Likewise.
11759 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
11761         PR gcov-profile/64634
11762         * tree-eh.c (frob_into_branch_around): Fix up typos
11763         in function comment.
11764         (lower_catch): Put eh_seq resulting from EH lowering of
11765         the cleanup sequence after the cleanup rather than before it.
11767 2015-02-18  Tom de Vries  <tom@codesourcery.com>
11769         * common.opt (fstdarg-opt): New option.
11770         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
11771         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
11772         (@item -fstdarg-opt): New item.
11774 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
11776         PR target/65064
11777         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
11778         for common symbols.
11780 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
11782         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
11783         insn-modes.h.
11784         (ALL_HOST_OBJS): Add mkoffload.o.
11785         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
11787 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
11789         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
11790         (compare_virtual_tables): Be smarter about skipping typeinfos;
11791         do sane output on virtual table table mismatch.
11792         (warn_odr): Be ready for forward declarations of enums;
11793         output sane info on base mismatch and virtual table mismatch.
11794         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
11795         when only one type is polymorphic.
11796         (get_odr_type): Fix hashtable corruption.
11797         (dump_odr_type): Dump mangled names.
11799 2015-02-18  Richard Biener  <rguenther@suse.de>
11801         PR tree-optimization/65063
11802         * tree-predcom.c (determine_unroll_factor): Return 1 if we
11803         have replaced looparound PHIs.
11805 2015-02-18  Martin Liska  <mliska@suse.cz>
11807         * lto-streamer.c (lto_streamer_init): Encapsulate
11808         streamer_check_handled_ts_structures with checking macro.
11810 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
11812         PR ipa/65087
11813         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
11814         section if !implicit_section.
11815         (cgraph_node::create_version_clone_with_body): Likewise.
11816         * trans-mem.c (ipa_tm_create_version): Likewise.
11818 2015-02-18  Richard Biener  <rguenther@suse.de>
11820         PR tree-optimization/62217
11821         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
11822         into BIVs.
11824 2015-02-18  Marek Polacek  <polacek@redhat.com>
11826         PR sanitizer/65081
11827         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
11828         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
11829         is in range [-16K, -1].  Don't issue run-time error if
11830         (ptr > ptr + offset).
11832 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
11834         * doc/install.texi (nvptx-*-none): New section.
11835         * doc/invoke.texi (Nvidia PTX Options): Likewise.
11836         * config/nvptx/nvptx.opt: Update.
11838         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
11839         (access_check): New functions, copied from
11840         config/i386/intelmic-mkoffload.c.
11841         (main): For non-installed testing, look in all COMPILER_PATHs for
11842         GCC_INSTALL_NAME.
11844         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
11846 2015-02-18  Andrew Pinski  <apinski@cavium.com>
11847             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11849         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
11850         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
11852 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
11854         * ipa-visibility.c (function_and_variable_visibility): Only
11855         check locality if node is not already local.
11856         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
11857         call_for_symbol_and_aliases instead of
11858         call_for_symbol_thunks_and_aliases.
11859         (ipa_inline): Likewise.
11860         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
11861         first walk aliases.
11862         * ipa.c (symbol_table::remove_unreachable_nodes): Use
11863         call_for_symbol_and_aliases.
11864         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
11865         (ipa_propagate_frequency_1): Use it; use opt_for_fn
11866         (ipa_propagate_frequency): Update.
11867         (ipa_profile): Add opt_for_fn gueards.
11869 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
11871         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
11872         * doc/invoke.texi (SH options): Document it.
11873         * config/sh/sh.c (sh_insn_length_adjustment): Check
11874         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
11876 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
11878         * common.opt (fipa-cp-alignment): New.
11879         * ipa-cp.c (ipcp_store_alignment_results): Check
11880         flag_ipa_cp_alignment.
11881         * opts.c (default_options_table): Enable -fipa-cp-alignment for
11882         -O2.
11883         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
11884         * doc/invoke.texi: Document -fipa-cp-alignment.
11886 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
11888         PR target/64793
11889         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
11890         to nil.  Adjust comments.
11892 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
11894         * ipa-visibility.c (function_and_variable_visibility): Only
11895         check locality if node is not already local.
11896         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
11897         call_for_symbol_and_aliases instead of
11898         call_for_symbol_thunks_and_aliases.
11899         (ipa_inline): Likewise.
11900         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
11901         first walk aliases.
11902         * ipa.c (symbol_table::remove_unreachable_nodes): Use
11903         call_for_symbol_and_aliases.
11904         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
11905         (ipa_propagate_frequency_1): Use it; use opt_for_fn
11906         (ipa_propagate_frequency): Update.
11907         (ipa_profile): Add opt_for_fn guards.
11909 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
11911         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
11912         skipping of "strange" tokens.
11914 2015-02-17  Jeff Law  <law@redhat.com>
11916         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
11917         obsolete comment.
11919 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
11921         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
11922         as forcing a HARD_DEP between instructions, thereby
11923         disallowing rewriting to break dependencies.
11925 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
11927         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
11928         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
11929         variables in boundary that have no inlitalizer encoded and are
11930         not aliases.
11931         * varasm.c (default_binds_local_p_2): External definitions do not
11932         count as definitions here.
11934 2015-02-16  Jeff Law  <law@redhat.com>
11936         PR tree-optimization/64823
11937         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
11938         statements.
11939         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
11940         threading through blocks with PHIs, but no statements.
11941         (thread_through_normal_block): Distinguish between blocks where
11942         we did not process all the statements and blocks with no statements.
11944 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
11945             James Greenhalgh  <james.greenhalgh@arm.com>
11947         PR ipa/64963
11948         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
11949         section if not linkonce.  Fix up formatting.
11950         (cgraph_node::create_version_clone_with_body): Copy section.
11951         * trans-mem.c (ipa_tm_create_version): Likewise.
11953 2015-02-16  Richard Biener  <rguenther@suse.de>
11955         PR tree-optimization/65077
11956         * tree-ssa-structalias.c (get_constraint_for_1): Handle
11957         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
11958         (find_func_aliases): Allow float values to carry pointers again.
11960 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
11962         * doc/install.texi (Specific): Reorder targets list to put
11963         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
11964         from the top menu.
11966 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
11967             David Edelsohn  <dje.gcc@gmail.com>
11969         PR target/65058
11970         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
11971         mapping class to external variable or function reference.
11972         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
11973         mapping class.
11975 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
11977         PR target/53348
11978         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
11979         ASM_WEAKEN_DECL if defined.
11981 2015-02-16  Richard Biener  <rguenther@suse.de>
11983         PR lto/65015
11984         * varasm.c (default_file_start): For LTO produced units
11985         emit <artificial> as file directive.
11987 2015-02-16  Richard Biener  <rguenther@suse.de>
11989         PR tree-optimization/63593
11990         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
11991         stmts and releasing SSA names until...
11992         (execute_pred_commoning): ... after processing all chains.
11994 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
11996         PR ipa/65059
11997         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
11998         external functions.
12000 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
12002         * doc/bugreport.texi: Adjust section titles throughout the file
12003         to use "Title Case".
12004         * doc/extend.texi: Likewise.
12005         * doc/gcov.texi: Likewise.
12006         * doc/implement-c.texi: Likewise.
12007         * doc/implement-cxx.texi: Likewise.
12008         * doc/invoke.texi: Likewise.
12009         * doc/objc.texi: Likewise.
12010         * doc/standards.texi: Likewise.
12011         * doc/trouble.texi: Likewise.
12013 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
12015         * cgraph.h (symtab_node::has_aliases_p): Simplify.
12016         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
12017         * tree.c (lookup_binfo_at_offset): Make static.
12018         (get_binfo_at_offset): Do not shadow offset; add explanatory
12019         comment.
12021 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
12023         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
12024         for all floading point loads and stores except those using a register
12025         index address.
12026         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
12027         to a register.
12029 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
12031         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
12032         (do_estimate_growth_1): Record if any uninlinable edge was seen.
12033         (estimate_growth): Handle uninlinable edges correctly.
12034         (check_callers): New.
12035         (growth_likely_positive): Handle aliases correctly.
12037 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
12039         * ipa-chkp.c: Use iterate_direct_aliases.
12040         * symtab.c (resolution_used_from_other_file_p): Move inline.
12041         (symtab_node::create_reference): Fix formating.
12042         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
12043         (symtab_node::iterate_reference): Move inline.
12044         (symtab_node::iterate_referring): Move inline.
12045         (symtab_node::iterate_direct_aliases): Move inline.
12046         (symtab_node::used_from_object_file_p_worker): Inline into ...
12047         (symtab_node::used_from_object_file_p): ... this one; move inline.
12048         (symtab_node::call_for_symbol_and_aliases): Move inline;
12049         use iterate_direct_aliases.
12050         (symtab_node::call_for_symbol_and_aliases_1): New method.
12051         (cgraph_node::call_for_symbol_and_aliases): Move inline;
12052         use iterate_direct_aliases.
12053         (cgraph_node::call_for_symbol_and_aliases_1): New method.
12054         (varpool_node::call_for_node_and_aliases): Rename to ...
12055         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
12056         use iterate_direct_aliases.
12057         (varpool_node::call_for_symbol_and_aliases_1): New method.
12058         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
12059         (ipa_discover_readonly_nonaddressable_var): Update.
12060         * ipa-devirt.c: Fix formating.
12061         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
12062         Move inline.
12063         (cgraph_node::call_for_symbol_and_aliases): Move inline.
12064         (cgraph_node::call_for_symbol_and_aliases_1): New function..
12065         * cgraph.h (used_from_object_file_p_worker): Remove.
12066         (resolution_used_from_other_file_p): Move inline.
12067         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
12068         (symtab_node::iterate_reference): Move inline.
12069         (symtab_node::iterate_referring): Move inline.
12070         (symtab_node::iterate_direct_aliases): Move inline.
12071         (symtab_node::used_from_object_file_p_worker): Inline into ...
12072         (symtab_node::used_from_object_file_p): Move inline.
12073         * tree-emutls.c (ipa_lower_emutls): Update.
12074         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
12075         (varpool_node::call_for_node_and_aliases): Remove.
12077 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
12079         PR tree-optimization/62209
12080         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
12081         op == range->exp, insert seq and gimplified code after labels
12082         instead of after the phi.
12084 2015-02-13  Jeff Law  <law@redhat.com>
12086         PR bootstrap/65060
12087         Revert my change for tree-optimization/64823.
12089 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
12091         PR tree-optimization/65053
12092         * tree-ssa-phiopt.c (value_replacement): When moving assign before
12093         cond, either reset VR on lhs or set it to phi result VR.
12095 2015-02-13  Jeff Law  <law@redhat.com>
12097         PR tree-optimization/64823
12098         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
12099         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
12100         threading through blocks with PHIs, but no statements.
12101         (thread_through_normal_block): Distinguish between blocks where
12102         we did not process all the statements and blocks with no statements.
12104         PR rtl-optimization/47477
12105         * match.pd (convert (plus/minus (convert @0) (convert @1): New
12106         simplifier to narrow arithmetic.
12108 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
12110         PR ipa/65028
12111         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
12112         polymorphic call info when type is not known to be preserved.
12114 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
12116         PR ipa/65028
12117         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
12118         (inline_call): Use it.
12120 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
12122         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
12123         GOMP_DEVICE_NVIDIA_PTX.
12125 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
12127         PR ipa/65034
12128         * stmt.c (emit_case_nodes): Use void_type_node instead of
12129         NULL_TREE as LABEL_DECL type.
12131 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
12133         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
12134         constraints.
12135         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
12136         symbolic references to data to be forced to constant memory on the
12137         SOM target.
12139 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
12141         PR tree-optimization/65002
12142         * tree-cfg.c (pass_data_fixup_cfg): Don't update
12143         SSA on start.
12144         * tree-sra.c (some_callers_have_no_vuse_p): New.
12145         (ipa_early_sra): Reject functions whose callers
12146         assume function is read only.
12148 2015-02-13  Richard Biener  <rguenther@suse.de>
12150         PR lto/65015
12151         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
12152         for LTO produced CUs.
12154 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
12156         PR tree-optimization/64705
12157         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
12158         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
12159         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
12160         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
12161         expand_simple_operations.
12163 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
12164             Richard Henderson  <rth@redhat.com>
12166         PR rtl/32219
12167         * cgraphunit.c (cgraph_node::finalize_function): Set definition
12168         before notice_global_symbol.
12169         (varpool_node::finalize_decl): Likewise.
12170         * varasm.c (default_binds_local_p_2): Rename from
12171         default_binds_local_p_1, add weak_dominate argument.  Use direct
12172         returns instead of assigning to local variable.  Unify varpool and
12173         cgraph paths via symtab_node.  Reject undef weak variables before
12174         testing visibility.  Reorder tests for simplicity.
12175         (default_binds_local_p): Use default_binds_local_p_2.
12176         (default_binds_local_p_1): Likewise.
12177         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
12178         via symtab_node.
12179         (default_elf_asm_output_external): Emit visibility when specified.
12181 2015-02-13  Alan Modra  <amodra@gmail.com>
12183         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
12184         code setting up r11 for out-of-line fp restore.
12186 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
12188         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
12189         (muser-mode): Likewise.
12191 2015-02-13  Alan Modra  <amodra@gmail.com>
12193         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
12194         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
12196 2015-02-12  David Howells  <dhowells@redhat.com>
12198         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
12199         warning.
12200         * tree-ssa-uninit.c (dump_predicates): Likewise.
12201         * opts.c (print_filtered_help): Likewise.
12203 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
12205         * dwarf2out.c (output_die): Use "%s", name instead of name to
12206         avoid -Wformat-security warning.
12208         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
12209         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
12210         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
12211         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
12213 2015-02-12  Jason Merrill  <jason@redhat.com>
12215         * common.opt (-flifetime-dse): New.
12217 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
12219         PR sanitizer/65019
12220         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
12222         PR tree-optimization/65014
12223         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
12224         use original second operand of arg0 or arg1 instead of
12225         that adjusted by STRIP_NOPS.
12227 2015-02-11  Jeff Law  <law@redhat.com>
12229         PR target/63347
12230         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
12231         that needs to be queued, just queue it for a single cycle.
12233 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
12235         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
12236         bodies of thunks; comment on why.
12237         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
12238         symbols are extern.
12240 2015-02-11  Richard Henderson  <rth@redhat.com>
12242         PR sanitize/65000
12243         * tree-eh.c (mark_reachable_handlers): Mark source and destination
12244         regions of __builtin_eh_copy_values.
12246 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
12248         PR middle-end/65003
12249         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
12250         ultimate alias is MEM with SYMBOL_REF satisfying
12251         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
12252         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
12254 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
12256         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
12257         "diagnostic-core.h".
12258         (main): Initialize progname, and call diagnostic_initialize.
12260         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
12261         instead of __OPENMP_TARGET__.
12263         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
12264         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
12265         hard-coding PTX_ID.
12267 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
12269         * doc/sourcebuild.texi (pie_enabled): Document.
12271 2015-02-11  Martin Liska  <mliska@suse.cz>
12273         PR ipa/64813
12274         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
12275         a return value for call to a function that is noreturn.
12277 2015-02-11  Richard Biener  <rguenther@suse.de>
12279         PR lto/65015
12280         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
12281         and -fresolution.
12283 2015-02-11  Andrew Pinski  <apinski@cavium.com>
12285         PR target/64893
12286         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
12287         Change the first argument type to size_type_node and add another
12288         size_type_node.
12289         (aarch64_simd_expand_builtin): Handle the new argument to
12290         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
12291         print an out when the first two arguments are not
12292         nonzero integer constants.
12293         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
12294         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
12296 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
12298         PR target/61925
12299         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
12300         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
12301         (ix86_set_current_function): Rewritten.
12302         (ix86_add_new_builtins): Temporarily clear current_target_pragma
12303         when creating builtin fndecls.
12305 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
12307         PR ipa/65005
12308         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
12309         function.
12310         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
12311         have no comdat group.
12312         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
12313         (lto_output_varpool_node): Always output alias info.
12314         (output_refs): Output refs of boundary aliases, too.
12315         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
12316         (output_symtab): Output call eges in thunks in boundary.
12317         (get_alias_symbol): Remove.
12318         (input_node, input_varpool_node): Do not special case weakrefs.
12319         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
12320         alias and thunks targets in the boundary; do not take removed symbols
12321         from their comdat groups.
12322         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
12323         (cgraph_node::global_info): Remove.
12324         (cgraph_node::rtl_info): Look through aliases and thunks.
12325         * cgrpah.h (global_info): Remove.
12326         (non_local_p): Remove.
12328 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
12329             Sandra Loosemore  <sandra@codesourcery.com>
12331         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
12332         to inline asm.  List dialects in proper order.
12334 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
12335             Sandra Loosemore  <sandra@codesourcery.com>
12337         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
12339 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
12341         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
12342         modified) reference to Solaris.
12344 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
12346         * doc/extend.texi (Extended Asm): Fix typos.
12348 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
12350         PR sanitizer/65004
12351         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
12353 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
12355         PR target/64661
12356         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
12357         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
12358         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
12359         * config/sh/constraints.md (Ara, Add): New constraints.
12360         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
12361         predicates.
12362         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
12363         atomic_mem_operand_0.  Don't use force_reg on the memory address.
12364         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
12365         Sra constraint.  Convert to insn_and_split.  Add workaround for
12366         PR 64974.
12367         (atomic_compare_and_swap<mode>_hard): Copy to
12368         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
12369         Use atomic_mem_operand_0 predicate.
12370         (atomic_compare_and_swap<mode>_soft_gusa,
12371         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
12372         AraAdd constraints.
12373         (atomic_compare_and_swap<mode>_soft_tcb,
12374         atomic_compare_and_swap<mode>_soft_imask,
12375         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
12376         atomic_mem_operand_0 predicate and SraSdd constraints.
12377         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
12378         constraint.
12379         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
12380         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
12381         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
12382         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
12383         force_reg on the memory address.
12384         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
12385         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
12386         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
12387         atomic_mem_operand_1 predicate and Sra constraint.
12388         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
12389         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
12390         Use atomic_mem_operand_1 predicate.
12391         (atomic_<fetchop_name><mode>_hard): Copy to
12392         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
12393         Use atomic_mem_operand_1 predicate.
12394         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
12395         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
12396         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
12397         insn_and_split.  Use atomic_mem_operand_1 predicate.
12398         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
12399         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
12400         Use atomic_mem_operand_1 predicate.
12401         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
12402         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
12403         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
12404         in generated insn with original mem operand before emitting the insn.
12405         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
12406         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
12407         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
12408         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
12409         Use atomic_mem_operand_1 predicate and AraAdd constraints.
12410         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
12411         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
12412         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
12413         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
12414         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
12415         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
12416         atomic_not_fetch<mode>_soft_tcb,
12417         atomic_<fetchop_name>_fetch<mode>_soft_imask,
12418         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
12419         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
12420         Use atomic_mem_operand_1 predicate and SraSdd constraints.
12422 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
12424         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
12425         and 3 earlyclobber operands.
12427 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
12429         * common.opt (fstack-reuse): Mark as optimization.
12431 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
12433         PR ipa/64982
12434         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
12436 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
12438         PR tree-optimization/64326
12439         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
12441 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
12443         PR gcov-profile/61889
12444         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
12446 2015-02-10  Richard Biener  <rguenther@suse.de>
12448         PR tree-optimization/64995
12449         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
12450         value we use is final.
12451         (visit_reference_op_store): Always valueize op.
12452         (visit_use): Properly valueize vuses.
12454 2015-02-10  Richard Biener  <rguenther@suse.de>
12456         PR tree-optimization/64909
12457         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
12458         pass a scalar-stmt count estimate to the cost model.
12459         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
12461 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
12463         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
12464         enabled by default together with var-tracking.
12466 2015-02-10  Nick Clifton  <nickc@redhat.com>
12468         * config/rl78/rl78.c: Remove DIV attribute code accidentally
12469         included in previous rl78 commit.
12471 2015-02-10  Richard Biener  <rguenther@suse.de>
12473         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
12474         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
12475         return the bitpack.
12477 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
12479         PR gcov-profile/61889
12480         * config.in: regenerate.
12481         * configure.in: Likewise.
12482         * configure.ac: Check for ftw.h.
12483         * gcov-tool.c: Check for ftw.h before using nftw.
12485 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
12487         PR lto/64076
12488         * ipa-visibility.c (update_visibility_by_resolution_info): Only
12489         assert when not in lto mode.
12491 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
12493         * ira-color.c (setup_left_conflict_sizes_p): Simplify
12494         initialization/assignment of conflict_size.
12496 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
12498         PR ipa/64978
12499         * ipa-cp.c (gather_caller_stats): Skip thunks.
12500         (propagate_constants_topo): Skip aliases.
12502 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
12504         PR target/64761
12505         * config/sh/sh.c (sh_option_override): Don't change
12506         -freorder-blocks-and-partition to -freorder-blocks even when
12507         unwinding is enabled.
12508         (sh_can_follow_jump): Return false if the followee jump is
12509         a crossing jump when -freorder-blocks-and-partition is specified.
12510         * config/sh/sh.md (*jump_compact_crossing): New insn.
12512 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
12513             Kaz Kojima  <kkojima@gcc.gnu.org>
12515         PR target/64761
12516         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
12517         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
12518         (sh_can_redirect_branch): Rename to ...
12519         (sh_can_follow_jump): ... this.  Constify argument types.
12520         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
12521         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
12522         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
12523         * doc/tm.texi: Regenerate.
12525 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
12527         PR sanitizer/64981
12528         * builtins.c (expand_builtin): Call targetm.expand_builtin
12529         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
12531 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
12533         PR ipa/61548
12534         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
12536 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
12538         PR ipa/63566
12539         * ipa-icf.c (set_local): New function.
12540         (sem_function::merge): Use it.
12542 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
12544         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
12545         (add_type_duplicate): Fix comparison of BINFOs.
12547 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
12549         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
12550         on getting VOID pointer.
12552 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
12554         PR target/64979
12555         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
12556         va_list escapes.
12558 2015-02-09  Richard Biener  <rguenther@suse.de>
12560         * genmatch.c (replace_id): Copy expr_type.
12562 2015-02-09  Richard Biener  <rguenther@suse.de>
12564         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
12565         (streamer_write_tree_bitfields): Declare.
12566         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
12567         properly unpack padding.
12568         (unpack_value_fields): Inline ...
12569         (streamer_read_tree_bitfields): ... here.
12570         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
12571         and properly add padding bits.
12572         (streamer_pack_tree_bitfields): Fold into ...
12573         (streamer_write_tree_bitfields): ... this new function,
12574         exposing the bitpack object.
12575         * lto-streamer-out.c (lto_write_tree_1): Call
12576         streamer_write_tree_bitfields.
12578 2015-02-09  Richard Biener  <rguenther@suse.de>
12580         PR tree-optimization/54000
12581         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
12582         (struct ivopts_data): Add loop_loc member.
12583         (tree_ssa_iv_optimize_loop): Dump loop location.
12584         (create_new_ivs): Likewise, also dump number of IVs generated.
12586 2015-02-09  Martin Liska  <mliska@suse.cz>
12588         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
12589         just if not yet registered.
12590         (ipa_icf_generate_summary): Register callgraph hooks.
12592 2015-02-08  Andrew Pinski  <apinski@cavium.com>
12594         * config/aarch64/aarch64.c (gty_dummy): Delete.
12596 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
12598         PR ipa/63566
12599         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
12600         (cgraph_node::local_p): Remove thunk related FIXME.
12602 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
12604         PR ipa/63566
12605         * i386.c (ix86_function_regparm): Look through aliases to see if callee
12606         is local and optimized.
12607         (ix86_function_sseregparm): Likewise; also use target's SSE math
12608         settings; error out instead of silently generating wrong code
12609         on mismatches.
12610         (init_cumulative_args): Look through aliases.
12612 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
12614         PR ipa/63566
12615         * ipa-split.c (execute_split_functions): Split if function has aliases.
12617 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
12619         PR ipa/63566
12620         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
12621         aliases before trying to expand it.
12622         (cgraph_node::expand_thunk): Fix formating.
12624 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
12626         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
12627         (Using Assembly Language with C): Expand introduction.
12628         (Basic Asm): Copy-edit.  Add more information about uses of
12629         basic asm.
12630         (Extended Asm): Copy-edit.  Document new escape syntax and
12631         %l[label] syntax.
12632         (Global Reg Vars): Copy-edit.
12633         (Local Reg Vars): Likewise.
12635 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
12637         PR debug/2714
12638         PR bootstrap/64256
12639         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
12640         (DBX_CONTIN_CHAR): Define.
12642 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
12643             Brian Rzycki  <b.rzycki@samsung.com>
12645         PR tree-optimization/64878
12646         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
12647         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
12648         Stop recursion at loop phi nodes after having visited a loop phi node.
12650 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
12652         * toplev.c (process_options): Change flag_ipa_ra before creating
12653         optimization_{default,current}_node.
12655         PR ipa/64896
12656         * cgraphunit.c (cgraph_node::expand_thunk): If
12657         restype is not is_gimple_reg_type nor the thunk_fndecl
12658         returns aggregate_value_p, set restmp to a temporary variable
12659         instead of resdecl.
12661 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
12663         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
12665 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
12667         PR target/64205
12668         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
12669         add a general secondary reload handler for SDmode, unless we have
12670         both read/write support for SDmode.
12672 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
12674         PR middle-end/64937
12675         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
12676         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
12677         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
12678         1 before, push it to abstract_vec.
12679         (dwarf2out_abstract_function): Adjust caller.  Don't call
12680         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
12681         DECL_ABSTRACT_P flags for all abstract_vec elts.
12683 2015-02-06  Renlin Li  <renlin.li@arm.com>
12685         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
12686         complex gimple.
12687         * tree-ssa.c (execute_update_addresses_taken): Likewise.
12689 2015-02-06  Jeff Law  <law@redhat.com>
12691         PR target/64889
12692         * config/h8300/h8300.c (push): New argument "in_prologue".
12693         Pass "in_prologue" along to "F".
12694         (h8300_push_pop): Corresponding changes.
12695         (h8300_expand_prologue): Likewise.
12696         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
12698 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
12700         PR rtl-optimization/64957
12701         PR debug/64817
12702         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
12703         IOR rather than for AND.
12705 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
12707         PR target/62631
12708         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
12709         of shift-add and (add + shift) operations.  Rename local variable.
12711 2015-02-05  Jeff Law  <law@redhat.com>
12713         PR target/17306
12714         * config/h8300/constraints.md (U): Correctly dectect
12715         "eightbit_data" memory addresses.
12716         * config/h8300/h8300.c (eightbit_constant_address_p): Also
12717         handle (const (plus (symbol_ref (x)))) where x is declared
12718         as an 8-bit data memory address.
12719         * config/h8300/h8300.md (call, call_value): Correctly detect
12720         "funcvec" functions.
12722         PR target/43264
12723         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
12724         24 to 28 bits for the H8/300.
12726 2015-02-06  Alan Modra  <amodra@gmail.com>
12728         PR target/64876
12729         * config/rs6000/rs6000.c (chain_already_loaded): New function.
12730         (rs6000_call_aix): Use it.
12732 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
12734         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
12735         check.
12737 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
12739         * config/h8300/constraints.md ("U" constraint): Use strict
12740         variant of REG_OK_FOR_BASE_P after reload has started.
12742 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
12744         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
12745         define to zero if !TARGET_NEON.
12746         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
12748 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
12749             Trevor Saunders  <tsaunders@mozilla.com>
12751         PR ipa/61548
12752         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
12754 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
12756         PR ipa/61548
12757         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
12758         when removing varpool nodes.
12760 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
12762         PR ipa/61548
12763         * varpool.c (varpool_node::remove): Fix order of variables.
12765 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
12767         PR ipa/64686
12768         * ipa-inline.c (inline_small_functions): Fix ordering issue between
12769         speculation resolution and key updates.
12771 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
12773         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
12774         about not letting any speculative edges unupdated.
12776 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
12778         PR gcov/64123
12779         * gcov-io.c (gcov_var): Export.
12781 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
12783         PR middle-end/64922
12784         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
12785         edges that become speculative.
12787 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
12789         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
12790         or DW_LANG_Fortran08.
12791         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
12792         DW_LANG_Fortran08.
12793         (gen_compile_unit_die): Handle "GNU Fortran2003" and
12794         "GNU Fortran2008" language strings.
12795         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
12796         * langhooks.h (lang_GNU_Fortran): New prototype.
12797         * langhooks.c (lang_GNU_Fortran): New function.
12798         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
12799         lang_GNU_Fortran.
12801 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
12803         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
12804         (RTX_OK_FOR_OLO10_P): Likewise.
12806 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
12808         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
12810 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
12812         PR middle-end/64922
12813         * gimple.c: Include gimple-ssa.h.
12814         (maybe_remove_unused_call_args): New function.
12815         * gimple.h (maybe_remove_unused_call_args): Declare.
12816         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
12817         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
12818         * gimple-fold.c (gimple_fold_call): Likewise.
12820 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
12822         PR rtl-optimization/64905
12823         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
12824         pointer alignment if it isn't needed.
12826 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
12828         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
12829         cortex-a72.cortex-a53.
12830         * config/aarch64/aarch64-tune.md: Regenerate.
12831         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
12833 2015-02-04  Nick Clifton  <nickc@redhat.com>
12835         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
12836         inside a MEM.
12838 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
12840         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
12841         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
12842         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
12843         of DEF_BUILTIN.
12844         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
12845         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
12846         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
12847         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
12848         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
12849         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
12850         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
12851         * tree-core.h (enum built_in_function): In between
12852         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
12853         for builtins that use DEF_BUILTIN_CHKP macro.
12855 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
12857         PR debug/64817
12858         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
12859         operands for tcc_comparison exprs.  Fix typos.
12861         PR debug/64817
12862         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
12863         of two XORs that have an intervening AND or IOR.
12865         PR debug/64817
12866         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
12867         simplification of XOR of AND to not allocate new rtx before
12868         committing to a simplification.
12870 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12872         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
12873         manual swaps in all peepholes.
12875 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12877         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
12878         of manual swapping implementation.
12879         (aarch64_expand_vec_perm_const_1): Likewise.
12881 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
12883         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
12884         (generic_addrcost_table): Remove NAMED_PARAM.
12885         (cortexa57_addrcost_table): Likewise.
12886         (xgene1_addrcost_table): Likewise.
12887         (generic_regmove_table): Likewise.
12888         (cortexa53_regmove_table): Likewise.
12889         (xgene1_regmove_table): Likewise.
12890         (generic_vector_table): Likewise.
12891         (cortexa57_vector_table): Likewise.
12892         (xgene1_vector_table): Likewise.
12893         (generic_tunings): Likewise.
12894         (cortexa53_tunings): Likewise.
12895         (cortexa57_tunings): Likewise.
12896         (xgene1_tunings): Likewise.
12898 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
12900         * config/arm/arm-cores.def: Add cortex-a72 and
12901         cortex-a72.cortex-a53.
12902         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
12903         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
12904         * config/arm/arm-tune.md: Regenerate.
12905         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
12906         "cortex-a72.cortex-a53".
12907         * doc/invoke.texi (ARM Options/-mtune): Likewise.
12909 2015-02-04  Nick Clifton  <nickc@redhat.com>
12911         PR target/64408
12912         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
12913         of accepted codes.
12914         (nonimmediate_di_operand): Likewise.
12916         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
12917         prefixes of known F5 using MSP430 MCUs.
12919 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12921         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
12922         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
12923         instead of __builtin_sqrt.
12925 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
12927         * varasm.c (do_assemble_alias): Follow transparent alias
12928         chain for target.
12929         (default_assemble_visibility): Follow transparent alias
12930         chain for decl name.
12932 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12934         PR middle-end/62103
12935         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
12936         to compute size of referenced value in the constant case.
12938 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
12940         PR rtl-optimization/64756
12941         * cse.c (invalidate_dest): New function.
12942         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
12943         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
12944         invalidate and do not record it.
12946 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
12948         PR target/64660
12949         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
12950         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
12951         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
12952         atomic_nand<mode>_soft_tcb): New insns.
12953         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
12954         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
12955         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
12956         Split into atomic_not_fetchsi_hard if operands[0] is unused.
12957         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
12958         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
12959         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
12960         atomic_not<mode>_hard if operands[0] is unused.
12961         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
12962         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
12963         if operands[0] is unused.
12964         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
12965         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
12966         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
12967         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
12968         unused.
12969         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
12970         into atomic_not<mode>_soft_tcb if operands[0] is unused.
12971         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
12972         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
12973         if operands[0] is unused.
12974         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
12975         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
12976         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
12977         atomic_nand_fetchsi_hard if operands[0] is unused.
12978         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
12979         atomic_nand<mode>_hard if operands[0] is unused.
12980         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
12981         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
12982         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
12983         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
12984         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
12985         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
12986         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
12987         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
12988         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
12989         atomic_not<mode>_hard if operands[0] is unused.
12990         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
12991         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
12992         unused.
12993         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
12994         into atomic_not<mode>_soft_tcb if operands[0] is unused.
12995         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
12996         atomic_nand<mode>_hard if operands[0] is unused.
12997         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
12998         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
13000 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
13002         PR jit/64810
13003         * Makefile.in (GCC_OBJS): Add gcc-main.o.
13004         * gcc-main.c: New file, containing "main" taken from gcc.c.
13005         * gcc.c (do_self_spec): Free decoded_options.
13006         (class driver): Move declaration to gcc.h.
13007         (main): Move declaration and implementation to new file
13008         gcc-main.c.
13009         (driver_get_configure_time_options): New function.
13010         * gcc.h (class driver): Move this declaration here, from
13011         gcc.c.
13012         (driver_get_configure_time_options): New declaration.
13014 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
13016         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
13017         cross-module inlining.
13018         * cgraph.h (cgraph_node): Add flag merged.
13019         * ipa-icf.c (sem_function::merge): Maintain it.
13021 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
13023         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
13024         instead of OBJECT_P.
13026 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
13028         PR target/62631
13029         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
13030         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
13031         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
13032         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
13034 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
13036         PR other/63504
13037         * combine.c (reg_n_sets_max): New variable.
13038         (can_change_dest_mode, reg_nonzero_bits_for_combine,
13039         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
13040         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
13041         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
13042         (rest_of_handle_combine): Initialize reg_n_sets_max.
13044 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
13046         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
13047         if some always_inline was inlined, apply changes before inlining
13048         heuristically.
13050 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
13052         PR jit/64810
13053         * config/arm/arm.c (arm_option_override): Set
13054         arm_selected_arch/cpu/tune to NULL on entry.
13056 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
13057             Andrew Pinski  <pinskia@gcc.gnu.org>
13058             Jakub Jelinek  <jakub@gcc.gnu.org>
13060         PR target/64231
13061         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
13062         integer typing for small model. Use IN_RANGE.
13064 2015-02-02  Richard Biener  <rguenther@suse.de>
13066         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
13067         * tree-vrp.c (vrp_valueize_1): Likewise.
13069 2015-02-02  Alan Modra  <amodra@gmail.com>
13071         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
13072         than mem for toc_restore.
13073         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
13074         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
13075         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
13077 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
13079         PR target/64047
13080         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
13081         explicit default options.
13083 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
13085         PR ipa/64872
13086         * ipa-utils.c (ipa_merge_profiles): Add release argument.
13087         * ipa-icf.c (sem_function::merge): Do not release body when merging.
13088         * ipa-utils.h (ipa_merge_profiles): Update prototype.
13090 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
13092         PR debug/64817
13093         * cfgexpand.c (deep_ter_debug_map): New variable.
13094         (avoid_deep_ter_for_debug): New function.
13095         (expand_debug_expr): If TERed SSA_NAME is in
13096         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
13097         instead of trying to expand SSA_NAME's def stmt.
13098         (expand_debug_locations): When expanding debug bind
13099         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
13100         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
13101         value.
13102         (pass_expand::execute): Call avoid_deep_ter_for_debug on
13103         all debug bind stmts.  Delete deep_ter_debug_map after
13104         expand_debug_location if non-NULL and clear it.
13106 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
13108         PR target/64851
13109         * config/sh/sync.md (atomic_fetch_notsi_hard,
13110         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
13111         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
13112         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
13113         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
13114         atomic_not_fetch<mode>_soft_imask): New insns.
13116 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13118         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
13119         (rank_for_schedule_debug): Split from ...
13120         (rank_for_schedule): ... this.
13121         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
13122         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
13124 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
13126         * doc/md.texi (Machine Constraints): Alphabetize table by target.
13127         * doc/extend.texi (x86 Variable Attributes): Move section to
13128         correct alphabetization after renaming.
13129         (x86 Type Attributes): Likewise.
13130         (Target Builtins): Re-alphabetize menu.
13131         (x86 Built-in Functions): Move section to correct alphabetization
13132         after renaming.
13133         (x86 transactional memory intrinsics): Likewise.
13134         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
13135         and x86 Windows Options in table and menu.
13136         (x86 Options): Move section to correct alphabetization after
13137         renaming.
13138         (x86 Windows Options): Likewise.
13140 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
13142         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
13143         preferred names of the architecture and its 32- and 64-bit
13144         variants.
13145         * doc/invoke.texi: Likewise.
13146         * doc/md.texi: Likewise.
13148 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
13150         PR target/64882
13151         * config/i386/predicates.md (address_no_seg_operand): Reject
13152         non-CONST_INT_P operands in invalid mode.
13154 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
13156         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
13157         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
13158         * config/i386/predicates.md (address_no_seg_operand): Call
13159         address_operand with VOIDmode.
13160         (vsib_address_operand): Ditto.
13161         (address_mpx_no_base_operand): Ditto.
13162         (address_mpx_no_index_operand): Ditto.
13164 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
13166         PR target/64688
13167         * lra-constraints.c (original_subreg_reg_mode): New.
13168         (simplify_operand_subreg): Try to simplify subreg of const.  Use
13169         original_subreg_reg_mode for it.
13170         (swap_operands): Update original_subreg_reg_mode.
13171         (curr_insn_transform): Set up original_subreg_reg_mode.
13173 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
13175         PR target/64617
13176         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
13177         function.
13178         (process_alt_operands): Use it.
13179         (curr_insn_transform): Check the optional reload pseudo class is
13180         ok for the mode.
13182 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
13184         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
13185         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
13186         prototype.
13187         * toplev.h (init_asm_output): Update comment on use of
13188         UNKNOWN_LOCATION with fatal_error.
13189         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
13190         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
13191         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
13192         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
13193         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
13194         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
13195         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
13196         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
13197         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
13198         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
13199         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
13200         fatal_error changed to pass input_location as first argument.
13202 2015-01-30  Martin Liska  <mliska@suse.cz>
13204         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
13205         in #pragma GCC diagnostic guards.
13207 2015-01-30  Richard Biener  <rguenther@suse.de>
13209         PR tree-optimization/64829
13210         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
13211         not add a widening conversion pattern but hand off extra
13212         widenings to callers.
13213         (vect_recog_widen_mult_pattern): Handle extra widening produced
13214         by vect_handle_widen_op_by_const.
13215         (vect_recog_widen_shift_pattern): Likewise.
13216         (vect_pattern_recog_1): Remove excess vertical space in dumping.
13217         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13218         (vect_init_vector_1): Likewise.
13219         (vect_get_vec_def_for_operand): Likewise.
13220         (vect_finish_stmt_generation): Likewise.
13221         (vectorizable_load): Likewise.
13222         (vect_analyze_stmt): Likewise.
13223         (vect_is_simple_use): Likewise.
13225 2015-01-29  Jeff Law  <law@redhat.com>
13227         * combine.c (try_combine): Fix typo in comment.
13229 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
13231         PR target/64580
13232         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
13233         (rs6000_stack_info): Add assert.
13234         (rs6000_output_savres_externs): New function, split off from...
13235         (rs6000_output_function_prologue): ... here.  Do not call it for
13236         thunks.
13238 2015-01-29  Jeff Law  <law@redhat.com>
13240         PR target/15184
13241         * combine.c (try_combine): If I0 is a memory load and I3 a store
13242         to a related address, increase the "goodness" of doing a 4-insn
13243         combination with I0-I3.
13244         (make_field_assignment): Handle SUBREGs in the ior+and case.
13246 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
13248         PR tree-optimization/64746
13249         * tree-if-conv.c (mask_exists): New function.
13250         (predicate_mem_writes): Save created mask with given size for further
13251         use.
13252         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
13253         (ifcvt_repair_bool_pattern): Collect all statements that are root
13254         of bool pattern and use iterative algorithm to remove multiple uses
13255         of predicates, display number of required iterations.
13257 2015-01-29  Richard Biener  <rguenther@suse.de>
13259         PR tree-optimization/64853
13260         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
13261         stmt will get simulated again.
13262         * tree-ssa-ccp.c (valueize_op_1): Likewise.
13264 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13266         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
13267         return_in_pc.  Remove redundant assignments.
13268         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
13269         (arm_expand_epilogue): Don't compare boolean with true in if condition.
13271 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
13273         * config/i386/i386.c (ix86_mode_after): Make static.
13275 2015-01-29  Richard Biener  <rguenther@suse.de>
13277         PR tree-optimization/64844
13278         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
13279         dump cost model analysis.
13280         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
13281         Do not register adjusted load/store costs here.
13283 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
13284             Uros Bizjak  <ubizjak@gmail.com>
13286         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
13287         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
13288         using x86_use_pseudo_pic_reg.
13289         * config/i386/i386.c (ix86_conditional_register_usage): Remove
13290         support for fixed PIC register.
13291         (ix86_use_pseudo_pic_reg): Not static any more.
13293 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
13295         PR middle-end/64805
13296         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
13297         to avoid error in cgraph node verification.
13299 2015-01-29  Marek Polacek  <polacek@redhat.com>
13301         * doc/standards.texi: Reflect that the default for C is gnu11.
13303 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13305         PR target/64761
13306         * reorg.c (switch_text_sections_between_p): New function.
13307         (relax_delay_slots): Call it when testing if the jump insn
13308         is removable.  Use targetm.can_follow_jump when testing if
13309         the conditional branch can follow an unconditional jump.
13311 2015-01-27  Caroline Tice  <cmtice@google.com>
13313         Committing VTV Cywin/Ming patch for Patrick Wollgast
13314         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
13315         if -fvtable-verify=preinit/std is used.
13316         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
13317         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
13318         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
13319         if -fvtable-verify=preinit/std is used.
13320         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
13321         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
13322         if -fvtable-verify=preinit/std is used.
13323         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
13324         * config/i386/mingw32.h (LIB_SPEC): Likewise.
13325         * varasm.c (assemble_variable): Add code to properly set the comdat
13326         section and name for the .vtable_map_vars section in case the
13327         target is PE or COFF.
13329 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
13331         PR ipa/64801
13332         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
13333         make sane BB profile.
13334         (cgraph_node::expand_thunk): Make sane BB profile.
13335         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
13336         * cgraph.h (init_lowered_empty_function): Update prototype.
13337         * config/i386/i386.c (make_resolver_func): Update call.
13338         * predict.c (gate): Disable branch prediction pass if
13339         profile is already there.
13341 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
13343         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
13344         * opth-gen.awk: Likewise.
13345         * common.opt: Mark flag_fp_contract_mode as Optimization.
13347 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13349         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
13350         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
13352 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
13354         PR target/64659
13355         * config/sh/predicates.md (atomic_arith_operand,
13356         atomic_logical_operand): Remove.
13357         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
13358         (atomic_arith_operand_0): New predicate.
13359         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
13360         Use atomic_arith_operand_0 for input values.
13361         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
13362         atomic_compare_and_swap<mode>_soft_gusa,
13363         atomic_compare_and_swap<mode>_soft_tcb,
13364         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
13365         arith_reg_operand instead of register_operand.
13366         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
13367         atomic_arith_operand_0 for newval input.
13368         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
13369         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
13370         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
13371         arith_reg_operand instead of register_operand.
13372         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
13373         fetchop_predicate_1, fetchop_constraint_1_llcs,
13374         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
13375         fetchop_constraint_1_imask): New code iterator attributes.
13376         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
13377         register_operand.  Use fetchop_predicate_1.
13378         (atomic_fetch_<fetchop_name>si_hard,
13379         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
13380         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
13381         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
13382         and arith_reg_operand instead of register_operand.  Use
13383         fetchop_predicate_1, fetchop_constraint_1_gusa.
13384         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
13385         and arith_reg_operand instead of register_operand.  Use
13386         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
13387         to allow R0 usage.
13388         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
13389         and arith_reg_operand instead of register_operand.  Use
13390         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
13391         to allow R0 usage.
13392         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
13393         register_operand.  Use atomic_logical_operand_1.
13394         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
13395         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
13396         arith_reg_operand instead of register_operand.
13397         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
13398         Use arith_reg_dest and arith_reg_operand instead of register_operand.
13399         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
13400         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
13401         register_operand.  Use fetchop_predicate_1.
13402         (atomic_<fetchop_name>_fetchsi_hard,
13403         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
13404         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
13405         fetchop_constraint_1_llcs.
13406         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
13407         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
13408         fetchop_constraint_1_gusa.
13409         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
13410         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
13411         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
13412         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
13413         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
13414         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
13415         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
13416         register_operand.  Use atomic_logical_operand_1.
13417         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
13418         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
13419         arith_reg_operand instead of register_operand.
13420         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
13421         arith_reg_operand instead of register_operand.  Use logical_operand
13422         and K08.  Adjust asm sequence to allow R0 usage.
13423         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
13424         arith_reg_operand instead of register_operand.  Use logical_operand
13425         and K08.
13427 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
13429         PR other/63504
13430         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
13431         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
13432         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
13433         only get_full_len HOST_WIDE_INTs from get_val () array rather than
13434         all bits in *val_wide.
13436 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
13438         * varpool.c (tls_model_names): Fix names.
13439         (varpool_node::dump): Dump tls- prefix for tls models.
13441 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
13442             Bernd Schmidt  <bernds@codesourcery.com>
13443             Nathan Sidwell  <nathan@codesourcery.com>
13445         * config/nvptx/mkoffload.c: New file.
13446         * config/nvptx/t-nvptx: Add build rules for it.
13447         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
13448         (extra_programs): Add mkoffload.
13449         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
13450         function.
13451         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
13453 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
13455         PR middle-end/64809
13456         * cfgexpand.c (reorder_operands): Skip debug gimples.
13458 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
13460         PR tree-optimization/64277
13461         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
13462         range info when possible to refine estimation.
13464 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13466         PR tree-optimization/64718
13467         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
13468         be a 16bit unsigned integer when n->range is 16.
13469         (bswap_replace): Convert src to that type if necessary for all bswap
13470         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
13471         set in pass_optimize_bswap::execute ().
13473 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
13475         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
13476         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
13477         integer and floating point variants.
13478         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
13480 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
13482         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
13483         for all vector modes.
13485 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
13487         PR bootstrap/64612
13488         * doc/sourcebuild.texi (comdat_group): Document.
13490 2015-01-28  Terry Guo  <terry.guo@arm.com>
13492         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
13494 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
13496         * toplev.c (print_version): Add param "show_global_state", and
13497         only print GGC and plugin information if it is true.
13498         (init_asm_output): Pass in "true" for the new param when calling
13499         print_version.
13500         (process_options): Likewise.
13501         (toplev::main): Likewise.
13502         * toplev.h (print_version): Add new param to decl.
13504 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
13506         PR ipa/60871
13507         PR ipa/64139
13508         * tree.c (lookup_binfo_at_offset): New function.
13509         (get_binfo_at_offset): Use it.
13511 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
13513         PR ipa/64282
13514         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
13515         on vtable being vtable.
13517 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13519         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
13520         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
13521         -mhotpatch= option.
13522         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
13523         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
13524         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
13525         Renamed.
13526         (s390_hotpatch_trampoline_halfwords_max): Renamed.
13527         (s390_hotpatch_hw_max): New name.
13528         (s390_hotpatch_trampoline_halfwords): Renamed.
13529         (s390_hotpatch_hw_before_label): New name.
13530         (get_hotpatch_attribute): Removed.
13531         (s390_hotpatch_hw_after_label): New name.
13532         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
13533         attribute.
13534         (s390_attribute_table): Ditto.
13535         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
13536         (s390_function_num_hotpatch_hw): New name.
13537         Remove special handling of inline functions and hotpatching.
13538         Return number of nops before and after the function label.
13539         (s390_can_inline_p): Removed.
13540         (s390_asm_output_function_label): Emit a configurable number of nops
13541         after the function label.
13542         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
13543         (TARGET_CAN_INLINE_P) Removed.
13544         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
13546 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13547             Jiong Wang  <jiong.wang@arm.com>
13549         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
13550         of scratch reg.
13551         (cb<optab><mode>1): Likewise.
13552         * config/aarch64/iterators.md (bcond): New define_code_attr.
13554 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13556         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
13557         memory accesses.
13559 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13561         * config/s390/s390.c (s390_register_move_cost): Increase costs for
13562         FPR->GPR moves.
13564 2015-01-27  Richard Biener  <rguenther@suse.de>
13566         * tree-vrp.c (update_value_range): Intersect the range with
13567         old recorded SSA name range information.
13569 2015-01-27  Nick Clifton  <nickc@redhat.com>
13571         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
13572         BC, DE and HL registers directly, not via AX.
13573         When decrementing the stack pointer by a large amount, transfer SP
13574         into AX and perform the subtraction there.
13575         (rl78_expand_epilogue): Perform the inverse of the above
13576         enhancements.
13578 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13580         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
13582 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
13583             Yury Gribov  <y.gribov@samsung.com>
13585         PR ubsan/64741
13586         * ubsan.c (ubsan_source_location): Refactor code.
13587         (ubsan_type_descriptor): Update type size. Refactor code.
13589 2015-01-27  Richard Biener  <rguenther@suse.de>
13591         PR tree-optimization/56273
13592         PR tree-optimization/59124
13593         PR tree-optimization/64277
13594         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
13595         from the first VRP pass.
13597 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
13599         PR ipa/64776
13600         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
13601         handle the first argument in the same loop as all the other arguments.
13603         PR rtl-optimization/61058
13604         * jump.c (cleanup_barriers): Update basic block boundaries
13605         if BLOCK_FOR_INSN is non-NULL on PREV.
13607 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
13609         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
13610         bounds narrowing, already instrumented calls and calls to
13611         not instrumentable functions.
13613 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
13615         PR tree-optimization/64807
13616         * wide-int.cc (wi::divmod_internal): Clear
13617         b_dividend[dividend_blocks_needed].
13619 2015-01-26  DJ Delorie  <dj@redhat.com>
13621         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
13622         volatile memory references.
13624 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
13626         PR target/49263
13627         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
13628         remove_insn.
13629         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
13630         shifts if it already fits into K08.
13632 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
13634         PR ipa/64730
13635         * ipa-inline.c (inline_small_functions): Print "unknown" even
13636         if edge->call_stmt is non-NULL, but has builtins or unknown
13637         location.
13639         PR middle-end/64421
13640         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
13641         with asterisk, skip the first character.
13643 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
13645         PR target/64806
13646         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
13647         order change.
13649 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
13651         PR target/64795
13652         * config/i386/i386.md (*movdi_internal): Also check operand 0
13653         to determine TYPE_LEA operand.
13654         (*movsi_internal): Ditto.
13656 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
13658         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
13659         OPTION_MASK_QUAD_MEMORY_ATOMIC.
13661 2015-01-26  Renlin Li  <renlin.li@arm.com>
13663         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
13664         the comment.
13665         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
13666         for higher part.
13668 2015-01-26  Richard Biener  <rguenther@suse.de>
13670         PR middle-end/64764
13671         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
13672         combining two BIT_AND_EXPR predicates.
13674 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
13676         PR bootstrap/64754
13677         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
13679 2015-01-26  Terry Guo  <terry.guo@arm.com>
13681         * config/arm/arm.c (arm_file_start): Update the assignment of
13682         Tag_ABI_HardFP_use.
13684 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
13686         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
13687         pipeline model.
13688         config/arm/arm.md: Include the new Cortex-A57 model.
13689         (generic_sched): Don't use generic_sched when tuning for
13690         Cortex-A57.
13692 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
13693             Uros Bizjak  <ubizjak@gmail.com>
13695         * config/i386/i386.c (get_builtin_code_for_version): Add
13696         support for BMI and BMI2 multiversion functions.
13698 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13700         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
13701         (extract_bit_field): Likewise.
13702         (extract_low_bits): Likewise.
13703         (expand_mult): Likewise.
13704         (expand_mult_highpart_adjust): Likewise.
13706 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
13708         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
13709         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
13710         * config/i386/i386.c (processor_model): Add
13711         M_INTEL_COREI7_BROADWELL.
13712         (arch_names_table): Add "broadwell".
13714 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
13716         PR target/49263
13717         PR target/53987
13718         PR target/64345
13719         PR target/59533
13720         PR target/52933
13721         PR target/54236
13722         PR target/51244
13723         * config/sh/sh-protos.h
13724         (sh_extending_set_of_reg::can_use_as_unextended_reg,
13725         sh_extending_set_of_reg::use_as_unextended_reg,
13726         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
13727         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
13728         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
13729         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
13730         (sh_treg_insns): New class.
13731         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
13732         (scope_counter): New class.
13733         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
13734         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
13735         sh_extending_set_of_reg::can_use_as_unextended_reg,
13736         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
13737         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
13738         sh_split_treg_set_expr): New functions.
13739         (addsubcosts): Handle treg_set_expr.
13740         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
13741         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
13742         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
13743         (sh_insn_operands_modified_between_p): Make non-static.
13744         * config/sh/predicates.md (zero_extend_movu_operand): Allow
13745         simple_mem_operand in addition to displacement_mem_operand.
13746         (zero_extend_operand): Don't allow zero_extend_movu_operand.
13747         (treg_set_expr, treg_set_expr_not_const01,
13748         arith_reg_or_treg_set_expr): New predicates.
13749         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
13750         arith_or_int_operand instead of logical_operand.  Convert to
13751         insn_and_split.  Try to optimize constant operand in splitter.
13752         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
13753         (*tstqi_t_zero): Delete.
13754         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
13755         (tstsi_t_and_not): Delete.
13756         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
13757         Convert to insn_and_split.
13758         (unnamed split, tstsi_t_zero_extract_xor,
13759         tstsi_t_zero_extract_subreg_xor_little,
13760         tstsi_t_zero_extract_subreg_xor_big): Delete.
13761         (*tstsi_t_shift_mask): New insn_and_split.
13762         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
13763         to recombine with surrounding insns when splitting.
13764         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
13765         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
13766         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
13767         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
13768         (*cbranch_div0s: Delete.
13769         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
13770         Try to recombine with surrounding insns when splitting.  Add operand
13771         order variants.
13772         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
13773         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
13774         *addc_r_r_msb, *addc_2r_msb): Delete.
13775         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
13776         order variant.
13777         (*addc_negreg_t): New insn_and_split.
13778         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
13779         Try to recombine with surrounding insns when splitting.
13780         Add operand order variants.
13781         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
13782         insn_and_split patterns.
13783         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
13784         surrounding insns when splitting.
13785         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
13786         (*rotcl): Likewise.  Add zero_extract variant.
13787         (*ashrsi2_31): New insn_and_split.
13788         (*negc): Convert to insn_and_split.  Use treg_set_expr.
13789         (*zero_extend<mode>si2_disp_mem): Update comment.
13790         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
13791         condition.
13792         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
13793         with surrounding insns when splitting.
13794         (any_treg_expr_to_reg): New insn_and_split.
13795         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
13796         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
13797         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
13798         *zero_extract_2): New single bit zero extract patterns.
13799         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
13800         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
13801         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
13802         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
13803         set destination.
13804         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
13805         register_operand for set source.
13807 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
13809         * i386.opt (prefetch_sse): New targetsave.
13810         * i386.c (ix86_function_specific_save): Save prefetch_sse.
13811         (ix86_function_specific_restore): Restore prefetch_sse and initialize
13812         ix86_cost/ix86_tune_cost.
13814 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
13816         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
13817         Support the JIT by using 0 as the language type.
13819 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
13821         PR target/64317
13822         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
13823         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
13824         (mark_regno_live, process_bb_lives): Pass new parameter value to
13825         make_hard_regno_born.
13827 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
13829         PR rtl-optimization/63637
13830         PR rtl-optimization/60663
13831         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
13832         if elt->cost is MAX_COST for ASM_OPERANDS.
13833         (find_sets_in_insn): Fix up comment typo.
13834         (cse_insn): Don't set src_volatile for all non-volatile
13835         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
13836         or with "memory" clobber.  Set elt->cost to MAX_COST
13837         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
13838         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
13840 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
13842         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
13843         alternative 1.
13845 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
13847         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
13848         libgcc/config/i386/elf-lib.h.
13850 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
13852         PR driver/64737
13853         * gcc.c (print_configuration): Don't print a blank line at the end
13854         here...
13855         (run_attempt): ... but here unstead.
13857         PR middle-end/64734
13858         * omp-low.c (scan_sharing_clauses): Don't ignore
13859         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
13860         on target data/update constructs.
13862 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13864         PR target/50928
13865         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
13866         (DEBUG_RELOAD): Removed define.
13867         (m32c_limit_reload_class): Enable traces with if DEBUG0.
13868         (m32c_function_arg): Added a type cast.
13869         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
13870         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
13871         * config/m32c/bitops.md (andqi3_16): Likewise.
13872         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
13873         (push_a01_l): Likewise.
13875 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
13877         PR jit/64721
13878         * main.c (main): Construct toplev instances with init_signals=true.
13879         * toplev.c (general_init): Add param "init_signals", and use it to
13880         conditionalize the calls to signal and host_hooks.extra_signals.
13881         (toplev::toplev): Add param "init_signals".
13882         (toplev::main): When invoking general_init, pass m_init_signals
13883         to control whether signal-handlers are installed.
13884         * toplev.h (toplev::toplev): Add param "init_signals".
13885         (toplev::m_init_signals): New field.
13887 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
13889         PR jit/64722
13890         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
13891         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
13892         latter may be affected by the former (e.g. on i686).
13894 2015-01-23  Martin Liska  <mliska@suse.cz>
13896         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
13897         false positive during profiledbootstrap.
13899 2015-01-23  Tom de Vries  <tom@codesourcery.com>
13901         PR libgomp/64672
13902         * lto-opts.c (lto_write_options): Output non-explicit conservative
13903         -fno-openacc.
13904         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
13905         (append_compiler_options): Pass -fopenacc through.
13907 2015-01-23  Tom de Vries  <tom@codesourcery.com>
13909         PR libgomp/64707
13910         * lto-opts.c (lto_write_options): Output non-explicit conservative
13911         -fno-openmp.
13912         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
13913         (append_compiler_options): Pass -fopenmp through.
13915 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
13917         PR debug/64511
13918         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
13919         GTY markup.
13921         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
13922         * diagnostic.def (DK_ICE_NOBT): New kind.
13923         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
13924         like DK_ICE, but never print backtrace.
13925         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
13926         (internal_error_no_backtrace): New function.
13927         * gcc.c (execute): Use internal_error_no_backtrace instead of
13928         internal_error.
13930 2015-01-22  Jeff Law  <law@redhat.com>
13932         PR target/52076
13933         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
13934         improve code density for small immediate to memory case.
13935         (insv): Better handle bitfield assignments when the field is
13936         being set to all ones.
13937         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
13938         operand predicate.
13940 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13941             Jakub Jelinek  <jakub@redhat.com>
13943         PR middle-end/64729
13944         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
13945         for !TARGET_LIBC_PROVIDES_SSP version and
13946         -fstack-protector-{all,strong,explicit} otherwise.
13947         * config/freebsd.h (LINK_SSP_SPEC): Handle
13948         -fstack-protector-{strong,explicit}.
13950 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
13951             H.J. Lu  <hongjiu.lu@intel.com>
13953         PR ipa/64694
13954         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
13955         heap.
13957 2015-01-22  Wei Mi  <wmi@google.com>
13959         PR rtl-optimization/64557
13960         * dse.c (record_store): Call get_addr for mem_addr.
13961         (check_mem_read_rtx): Likewise.
13963 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
13965         * fold-const.c (const_binop): Add early return for non-tcc_binary.
13967 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
13969         * toplev.c (init_local_tick): Process the failure when read
13970         fails for random_seed.
13972         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
13973         'pretty_name' to avoid memory overflow.
13975 2015-01-22  Richard Biener  <rguenther@suse.de>
13977         PR middle-end/64728
13978         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
13979         abnormal coalescing on undefined SSA names.
13981 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
13983         PR target/64688
13984         PR target/64477
13985         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
13986         for alternative 3.
13987         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
13989 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
13991         PR middle-end/63325
13992         * fold-const.c (fold_checksum_tree): Don't include value of
13993         expr->decl_with_vis.symtab_node in the checksum.
13995 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13997         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
13999 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
14001         PR driver/64690
14002         * gcc.c (insert_comments): New function.
14003         (try_generate_repro): Call it.
14004         (append_text): Removed.
14006 2015-01-22  Richard Biener  <rguenther@suse.de>
14008         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
14009         with IL incompatible options.  Properly honor user optimize
14010         attributes.
14012 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
14014         PR rtl-optimization/64682
14015         * combine.c (distribute_notes): When moving a death note for
14016         a register that is set in the new I2, make sure to put it
14017         before that new I2.
14019 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
14021         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
14022         not TARGET_DEFAULT.
14024 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
14026         PR debug/64511
14027         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
14028         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
14029         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
14031         PR sanitizer/64706
14032         * doc/invoke.texi (-fsanitize=vptr): Document.
14034         PR rtl-optimization/62078
14035         * dse.c: Include cfgcleanup.h.
14036         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
14037         anything call purge_all_dead_edges and cleanup_cfg at the end
14038         of the pass.
14040 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
14042         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
14043         edges.
14045 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14047         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
14048         decl attribute.
14050 2015-01-21  David Sherwood  <david.sherwood@arm.com>
14051             Tejas Belagod <Tejas.Belagod@arm.com>
14053         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
14054         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
14055         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
14056         Removed.
14058 2015-01-21  David Sherwood  <david.sherwood@arm.com>
14059             Tejas Belagod <Tejas.Belagod@arm.com>
14061         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
14062         (aarch64_reverse_mask): New decls.
14063         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
14064         (insn_count): New mode_attr.
14065         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
14066         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
14067         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
14068         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
14069         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
14070         (aarch64_simd_st4): New patterns.
14071         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
14072         (aarch64_reverse_mask): New functions.
14074 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
14076         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
14077         Declare.
14078         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
14079         addressing modes for BE.
14080         (aarch64_print_operand): Add 'R' specifier.
14081         (aarch64_simd_disambiguate_copy): Delete.
14082         (aarch64_simd_emit_reg_reg_move): New function.
14083         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
14084         in define_splits for structural moves.
14085         (mov<mode>): Use less restrictive predicates.
14086         (*aarch64_mov<mode>): Simplify and only allow for LE.
14087         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
14089 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
14091         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
14093 2015-01-21  Richard Henderson  <rth@redhat.com>
14095         PR target/64669
14096         * ccmp.c (used_in_cond_stmt_p): Remove.
14097         (expand_ccmp_expr): Don't use it.
14099 2015-01-21  Nick Clifton  <nickc@redhat.com>
14101         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
14102         PARALLELs.
14104 2015-01-21  Richard Biener  <rguenther@suse.de>
14106         PR middle-end/64313
14107         * tree-core.h (builtin_info, builtin_info_type): Turn from
14108         an object with two arrays into an array of an object with
14109         decl and two flags, implicit_p and declared_p.
14110         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
14111         set_builtin_decl, set_builtin_decl_implicit_p,
14112         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
14113         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
14114         * builtins.c (builtin_info): Adjust.
14115         * gimplify.c (gimplify_addr_expr): References to builtins
14116         that have been declared by the user makes them eligible for
14117         use by the compiler.  Call set_builtin_decl_implicit_p on them.
14119 2015-01-20  Jeff Law  <law@redhat.com>
14121         PR target/59946
14122         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
14123         allow pc-relative addresses in operand predicates or constraints.
14125 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
14127         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
14128         neon on aarch32 processors for stringops.
14130 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
14132         PR ipa/63576
14133         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
14135 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
14137         PR lto/45375
14138         * ipa-inline.c: Include lto-streamer.h
14139         (report_inline_failed_reason): Output source file differences and
14140         flags on optimization/target node mismatch.
14141         (can_inline_edge_p): Consider caller to be the outer inline function;
14142         be less restrictive about matching opimize and optimize_size attributes.
14143         (inline_account_function_p): Break out from ...
14144         (inline_small_functions): ... here.
14145         * ipa-inline-transform.c (clone_inlined_nodes): Use
14146         inline_account_function_p.
14147         (inline_call): Use optimize attribution; use inline_account_function_p.
14148         (inline_transform): Use opt_for_fn.
14149         * ipa-inline.h (inline_account_function_p): Declare.
14151 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
14153         PR debug/64663
14154         * dwarf2out.c (decl_piece_node): Don't put bitsize into
14155         mode if bitsize <= 0.
14156         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
14157         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
14158         sizes and positions.
14160 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
14162         * config/nios2/nios2.c (nios2_asm_file_end): Implement
14163         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
14164         needed.
14165         (TARGET_ASM_FILE_END): Define.
14167 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14169         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
14170         (struct tune_params): Use the enum.
14171         * arm.c (arm_*_tune): Update.
14172         (arm_option_override): Update.
14174 2015-01-20  Richard Biener  <rguenther@suse.de>
14176         PR ipa/64684
14177         * ipa-reference.c (add_static_var): Inline ...
14178         (analyze_function): ... here after splitting out from ...
14179         (is_proper_for_analysis): ... this.
14181 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
14183         PR target/64149
14184         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
14185         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
14186         replace the conditional with it's true branch.
14187         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
14188         (arm_lra_p): Remove.
14190 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
14192         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
14194 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14196         * config/tilegx/mul-tables.c: Move symtab.h include after
14197         coretypes.h include.
14198         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
14199         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
14200         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
14201         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
14202         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
14204 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
14206         PR bootstrap/64676
14207         Revert:
14208         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
14210         PR rtl-optimization/64081
14211         * loop-iv.c (def_pred_latch_p): New function.
14212         (latch_dominating_def): Allow specific cases with non-single
14213         definitions.
14214         (iv_get_reaching_def): Likewise.
14215         (check_complex_exit_p): New function.
14216         (check_simple_exit): Use check_complex_exit_p to allow certain cases
14217         with exits not executing on any iteration.
14219 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
14221         PR lto/45375
14222         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
14223         to set branch cost.
14225 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
14227         PR lto/45375
14228         * i386.c (gate): Check flag_expensive_optimizations and
14229         optimize_size.
14230         (ix86_option_override_internal): Drop optimize_size condition
14231         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
14232         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
14233         MASK_PREFER_AVX128.
14234         (ix86_avx256_split_vector_move_misalign,
14235         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
14236         * sse.md (all uses of TARGET_PREFER_AVX128): Add
14237         optimize_insn_for_speed_p check.
14239 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
14241         * config/mips/mips.h (FP_ASM_SPEC): New define.
14242         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
14243         instead.
14245 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
14247         PR target/53988
14248         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
14249         nullptr for insn when reaching the first insn.
14250         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
14251         (sh_insn_operands_modified_between_p): Add nullptr check.
14252         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
14253         sign extending mem load if the insn contains any UNSPEC or
14254         UNSPEC_VOLATILE.
14256 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
14258         * params.def (inline-unit-growth): Drop to 15%.
14259         * invoke.texi (inline-unit-growth): Document change.
14261 2015-01-19  Martin Liska  <mliska@suse.cz>
14263         PR ipa/64668
14264         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
14265         function for second argument of OBJ_TYPE_REF.
14267 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
14269         PR ipa/64218
14270         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
14271         whether function is an alias.
14273 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
14275         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
14276         cases.
14278 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
14280         PR rtl-optimization/64671
14281         * lra-remat.c (operand_to_remat): Don't consider jump and call
14282         insns.
14284 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
14286         PR target/59828
14287         * config/rs6000/default64.h: Include rs6000-cpus.def.
14288         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
14289         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
14290         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
14291         and POWER8.
14292         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
14293         POWER8.
14294         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
14295         pseudo-op to specify assembler dialect.
14297 2015-01-19  Martin Liska  <mliska@suse.cz>
14299         PR ipa/64664
14300         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
14301         Handle safe potentially removed nodes during filtering.
14303 2015-01-19  Martin Liska  <mliska@suse.cz>
14305         * doc/extend.texi (no_icf): Add new attribute description.
14306         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
14307         where the pass attempts to merge a function with no_icf attribute.
14309 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14311         PR target/64532
14312         * doc/md.texi (ARM Options): Document register constraints.
14314 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
14315             Andrew Pinski  <apinski@cavium.com>
14317         PR target/64304
14318         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
14319         (ashl<mode>3): Don't expand if operands[2] is not constant.
14321 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14323         PR target/64448
14324         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
14325         Match xor-and-xor RTL pattern.
14327 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
14329         PR rtl-optimization/64081
14330         * loop-iv.c (def_pred_latch_p): New function.
14331         (latch_dominating_def): Allow specific cases with non-single
14332         definitions.
14333         (iv_get_reaching_def): Likewise.
14334         (check_complex_exit_p): New function.
14335         (check_simple_exit): Use check_complex_exit_p to allow certain cases
14336         with exits not executing on any iteration.
14338 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
14340         * common.opt (fgraphite): Fix a typo.
14342 2015-01-19  Felix Yang  <felix.yang@huawei.com>
14344         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
14345         pattern.
14346         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
14347         uminp, smax_nanp, smin_nanp): New builtins.
14348         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
14349         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
14350         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
14351         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
14352         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
14353         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
14354         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
14355         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
14356         vpminnms_f32): Rewrite using builtin functions.
14358 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
14360         PR libgomp/64625
14361         * omp-low.c (offload_symbol_decl): Remove variable.
14362         (get_offload_symbol_decl): Remove function.
14363         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
14364         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
14365         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
14366         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
14367         BUILT_IN_GOACC_UPDATE don't pass it at all.
14369 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
14371         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
14372         callers.
14374 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
14376         * ipa-chkp.c (chkp_produce_thunks): Add early param
14377         to split thunks production into two passes.  Keep
14378         'always_inline' function bodies after the first pass.
14379         (pass_data_ipa_chkp_early_produce_thunks): New.
14380         (pass_ipa_chkp_early_produce_thunks): New.
14381         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
14382         chkp_produce_thunks signature.
14383         (make_pass_ipa_chkp_early_produce_thunks): New.
14384         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
14385         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
14386         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
14388 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
14390         * cgraph.c (cgraph_node::dump): Dump profile flags.
14392 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
14394         PR target/64652
14395         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
14396         reg appear first in the parallel.
14398 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
14400         * ipa-reference.c (set_reference_optimization_summary,
14401         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
14402         disabled.
14403         (ignore_module_statics): New static var.
14404         (propagate_bits): If ipa-reference is disabled, do not look into local
14405         properties.
14406         (analyze_function): Disable analysis when ipa_reference is disabled.
14407         (generate_summary): Do not dump when reference is disabled;
14408         collect vars accessed from functions with ipa-reference disabled.
14409         (get_read_write_all_from_node): When ipa-reference is disabled, use the
14410         node flags.
14411         (gate): Enable for LTO.
14412         (ignore_edge_p): New function.
14413         (propagate): Skip functions w/o ipa-reference analysis.
14414         * optc-save-gen.awk: Handle optimize_debug correctly.
14415         * opth-gen.awk: Likewise.
14416         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
14417         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
14418         fira-share-save-slots, fira-share-spill-slots,
14419         fmodulo-sched-allow-regmoves, fpartial-inlining,
14420         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
14421         ftracer, ftree-parallelize-loops, fassociative-math,
14422         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
14423         Optimization
14424         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
14425         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
14426         Optimization.
14427         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
14428         Fix for IPA.
14430 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
14432         PR ipa/64378
14433         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
14434         flag correctly.
14435         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
14437 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
14439         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
14440         Remove duplicate option listings.
14442 2015-01-18  Felix Yang  <felix.yang@huawei.com>
14444         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
14445         (autofdo_source_profile::get_callsite_total_count,
14446         function_instance::get_function_instance_by_decl,
14447         string_table::get_index, string_table::get_index_by_decl,
14448         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
14449         Fix comment typos. Reformatting and minor code rearrangement.
14451 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
14453         * config/rs6000/rs6000.md (probe_stack): Delete.
14454         (probe_stack_address): New.
14456 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
14458         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
14459         to test for 32-bit ABIs, not !TARGET_POWERPC64.
14461 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
14463         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
14464         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
14465         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
14466         snafu.
14467         (rs6000_libcall_value): Use the new function.
14469 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
14471         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
14473 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
14475         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
14476         implement a more precise life analysis for it during backward scan.
14478 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
14480         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
14482 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
14484         PR rtl-optimization/52773
14485         * calls.c (emit_library_call_value): When pushing arguments use
14486         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
14487         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
14488         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
14490 2015-01-17  Jeff Law  <law@redhat.com>
14492         PR rtl-optimization/32790
14493         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
14494         not ZERO_EXTEND in SET_DESTs.
14496 2015-01-17  Alan Modra  <amodra@gmail.com>
14498         * cprop.c (do_local_cprop): Revert last change.
14500 2015-01-16  DJ Delorie  <dj@redhat.com>
14501             Nick Clifton  <nickc@redhat.com>
14503         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
14504         (addhi3_real): Likewise.  Fix [HL+0] syntax.
14505         (subqi3_real): Likewise.
14506         (subhi3_real): Likewise.
14507         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
14508         (cbranchhi4_real): Likewise.
14509         (cbranchhi4_real_inverted): Likewise.
14510         (cbranchsi4_real_lt): Likewise.
14511         (cbranchsi4_real_ge): Likewise.
14512         (cbranchsi4_real_ge): Likewise.
14513         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
14514         (sub<mode>3_virt): Likewise.
14515         (cbranchqi4_virt): Likewise.
14516         (cbranchhi4_virt): Likewise.
14517         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
14518         always use '[reg+imm]' even when imm is zero.
14519         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
14520         (rl78_general_operand): New.
14521         (rl78_nonimmediate_operand): New.
14522         (rl78_nonfar_operand): Use them.
14523         (rl78_nonfar_nonimm_operand): Likewise.
14524         (rl78_stack_based_mem): Fix.
14525         * config/rl78/constraints.md (Ibqi): New.
14526         (IBqi): New.
14527         (Wsa): New.
14528         (Wsf): New.
14529         (Cs1): Fix.
14530         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
14531         (iorqi3): Likewise.
14532         (xorqi3): Likewise.
14533         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
14535         * config/rl78/constrains (Qs8): New constraint.
14536         * config/rl78/rl78.c (rl78_flags_already_set): New function.
14537         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
14538         * config/rl78/rl78-real.md (update_Z): New attribute.
14539         Update patterns to set it.
14540         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
14541         shorter compare and branch sequence can be used.
14542         (cbranchhi4_real): Likewise.
14543         (cbranchhi4_real_inverted): Likewise.
14545         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
14546         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
14547         address space.
14548         * config/rl78/rl78.c (rl78_get_name_encoding): New.
14549         (rl78_option_override): Allow -mes0 only if C.
14550         (characterize_address): Support subregs of symbol_refs.
14551         (rl78_addr_space_address_mode): Move.  Add __near.
14552         (rl78_far_p): Likewise.
14553         (rl78_addr_space_pointer_mode): Likewise.
14554         (rl78_as_legitimate_address): Likewise.
14555         (rl78_addr_space_subset_p): Likewise.
14556         (rl78_addr_space_convert): Likewise.
14557         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
14558         symbols with -mes0.
14559         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
14560         addressing.
14561         (rl78_alloc_physical_registers_op1): Change logic to prefer
14562         symbol[BC] addressing.
14563         (frodata_section): New.
14564         (rl78_asm_init_sections): Initialize it.
14565         (rl78_select_section): Put __far readonly symbols in .frodata.
14566         (rl78_make_type_far): New.
14567         (rl78_insert_attributes): Force all readonly symbols to be
14568         __far when -mes0.
14569         (rl78_asm_out_integer): New.
14570         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
14571         * config/rl78/rl78.opt (-mes0): New.
14573         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
14574         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
14575         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
14576         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
14577         (rl78_saddr_p): New.
14578         (rl78_output_aligned_common): New.
14579         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
14580         (rl78_handle_saddr_attribute): New.
14581         (rl78_handle_naked_attribute): New.
14582         (rl78_attribute_table): Add saddr.
14583         (rl78_print_operand_1): Don't print '!' on saddr operands.
14584         (rl78_print_operand_1): Strip encodings.
14585         (rl78_sfr_p): New.
14586         (rl78_strip_name_encoding): New.
14587         (rl78_attrlist_to_encoding): New.
14588         (rl78_encode_section_info): New.
14589         (rl78_asm_init_sections): New.
14590         (rl78_select_section): New.
14591         (rl78_output_labelref): New.
14592         (rl78_output_aligned_common): New.
14593         (rl78_asm_out_integer): New.
14594         (rl78_asm_ctor_dtor): New.
14595         (rl78_asm_constructor): New.
14596         (rl78_asm_destructor): New.
14598         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
14599         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
14600         (transcode_memory_rtx): Update.
14601         (rl78_expand_epilogue): Use A_REG instead of 0.
14603 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14605         * config/arm/arm-protos.h (struct tune_params): New field
14606         sched_autopref_queue_depth.
14607         * config/arm/arm.c (sched-int.h): Include header.
14608         (arm_first_cycle_multipass_dfa_lookahead_guard,)
14609         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
14610         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
14611         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
14612         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
14613         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
14614         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
14615         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
14616         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
14617         * config/arm/t-arm (arm.o): Update.
14618         * haifa-sched.c (update_insn_after_change): Update.
14619         (rank_for_schedule): Use auto-prefetcher model, if requested.
14620         (autopref_multipass_init): New static function.
14621         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
14622         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
14623         variable for debug dumps.
14624         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
14625         (autopref_multipass_dfa_lookahead_guard): New global function that
14626         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
14627         (init_h_i_d): Update.
14628         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
14629         * sched-int.h (enum autopref_multipass_data_status): New const enum.
14630         (autopref_multipass_data_): Structure for auto-prefetcher data.
14631         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
14632         (struct _haifa_insn_data:autopref_multipass_data): New field.
14633         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
14634         (autopref_multipass_dfa_lookahead_guard): Declare.
14636 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14638         * rtlanal.c (get_base_term): Handle SCRATCH.
14640 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14642         * config/aarch64/aarch64.c
14643         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
14644         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
14645         * config/arm/arm.c
14646         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
14647         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
14649 2015-01-17  Alan Modra  <amodra@gmail.com>
14651         * cprop.c (do_local_cprop): Disallow replacement of fixed
14652         hard registers.
14654 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14656         PR target/62066
14657         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
14658         early return 0.
14660 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14662         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
14663         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
14665 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14667         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
14668         * config/arm/thumb1.md: ... Here.
14670 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
14672         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
14673         TImode for TARGET_32BIT.
14675 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
14677         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
14678         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
14679         as ...
14680         (rs6000_abi_word_mode): New function.
14682 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
14684         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
14685         instead of UNITS_PER_WORD to describe the size of stack slots.
14687 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
14689         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
14690         as rs6000_promote_function_mode.  Move comment to there.
14691         (rs6000_promote_function_mode): New function.
14693 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
14695         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
14696         -mpowerpc64 is active.
14698 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
14700         PR middle-end/64353
14701         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
14702         virtuals on start.
14704 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
14706         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
14707         introduced in revision 219724.
14709 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14710             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14712         PR target/64263
14713         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
14714         destination is not a GP reg.
14715         (*movdi_aarch64): Likewise.
14717 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
14719         PR target/64623
14720         * config/rs6000/default64.h: Revert ISA change.
14722 2015-01-16  Richard Biener  <rguenther@suse.de>
14724         PR middle-end/64614
14725         * tree-ssa-uninit.c: Include tree-cfg.h.
14726         (MAX_SWITCH_CASES): New define.
14727         (convert_control_dep_chain_into_preds): Handle switch statements.
14728         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
14729         (normalize_one_pred_1): Do not split bit-manipulations.
14730         Record (x & CST).
14732 2015-01-16  Richard Biener  <rguenther@suse.de>
14734         PR tree-optimization/64568
14735         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
14736         complex load rewriting for TARGET_MEM_REFs.
14738 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
14740         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
14742 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
14744         PR target/64149
14745         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
14746         variable.
14747         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
14748         (aarch64_lra_p): Remove.
14750 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
14752         PR target/64363
14753         * ipa-chkp.h (chkp_instrumentable_p): New.
14754         * ipa-chkp.c: Include tree-inline.h.
14755         (chkp_instrumentable_p): New.
14756         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
14757         Fix processing of not instrumentable functions.
14758         (chkp_versioning): Use chkp_instrumentable_p. Warn about
14759         not instrumentable functions.
14760         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
14761         chkp_instrumentable_p.
14762         * tree-inline.h (copy_forbidden): New.
14763         * tree-inline.c (copy_forbidden): Not static anymore.
14765 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14767         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
14768         ptr1, ptr2 unused.
14770 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
14772         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
14773         type OP_OUT to OP_INOUT.
14775 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
14777         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
14778         (high x) y) to y if x and y have the same base.
14780 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
14782         * config/arm/cortex-a57.md: New.
14783         * config/aarch64/aarch64.md: Include it.
14784         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
14785         * config/aarch64/aarch64-tune.md: Regenerate.
14787 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
14789         PR target/64015
14790         * ccmp.c (expand_ccmp_next): New function.
14791         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
14792         and compare insn sequence.
14793         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
14794         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
14795         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
14796         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
14797         (*ccmp_ior): Changed to ccmp_ior<mode>.
14798         (cmp<mode>): New pattern.
14799         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
14800         parameters.
14801         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
14803 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
14805         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
14806         _mm256_bsrli_epi128): New.
14807         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
14809 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
14811         * expmed.c (store_bit_field_using_insv): Improve warning message.
14812         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
14814 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
14816         PR rtl-optimization/64011
14817         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
14818         there is partial overflow.
14820 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
14822         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
14823         prototype.
14824         (nds32_expand_epilogue_v3pop): Likewise.
14825         * config/nds32/nds32.md (sibcall): Define this for sibling call
14826         optimization.
14827         (sibcall_register): Likewise.
14828         (sibcall_immediate): Likewise.
14829         (sibcall_value): Likewise.
14830         (sibcall_value_register): Likewise.
14831         (sibcall_value_immediate): Likewise.
14832         (sibcall_epilogue): Likewise.
14833         (epilogue): Pass false to indicate this is not a sibcall epilogue.
14834         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
14835         (nds32_expand_epilogue_v3pop): Likewise.
14837 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
14839         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
14840         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
14841         (return_internal): New.
14842         (return): Define this named pattern.
14843         (simple_return): Define this named pattern.
14844         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
14845         pattern instead of unspec_volatile_func_return.
14846         (nds32_expand_epilogue_v3pop): Likewise.
14847         (nds32_can_use_return_insn): New function.
14849 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
14851         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
14852         * config/nds32/nds32.md (pop25return): New.
14853         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
14854         pop25return pattern.
14856 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
14858         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
14859         -mforbid-fp-as-gp, and -mex9 options.
14861 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
14863         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
14864         remove -mgp-direct option.
14866 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
14868         * doc/invoke.texi (--param early-inlining-insns): Update default value.
14869         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
14871 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
14873         * ipa-inline.c (inline_small_functions): Work around hints
14874         cache issue.
14876 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
14878         PR target/59710
14879         * doc/invoke.texi (Option Summary): Document new Nios II
14880         -mgpopt= syntax.
14881         (Nios II Options): Likewise.
14882         * config/nios2/nios2.opt: Add -mgpopt= option support.
14883         Modify existing -mgpopt and -mno-gpopt options to be aliases.
14884         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
14885         * config/nios2/nios2.c (nios2_option_override): Adjust
14886         -mgpopt defaulting.
14887         (nios2_in_small_data_p): Return true for explicit small data
14888         sections even with -G0.
14889         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
14890         option choices.
14892 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
14894         PR ipa/64612
14895         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
14896         of comdat locals.
14897         (inline_call): Fix removal of aliases.
14899 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
14901         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
14902         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
14903         * opts.c (common_handle_option): Add -fsanitize=vptr.
14904         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
14905         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
14906         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
14907         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
14908         (ubsan_expand_vptr_ifn): New prototype.
14909         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
14910         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
14911         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
14912         expand_LOOP_VECTORIZED): Make argument nameless, remove
14913         ATTRIBUTE_UNUSED.
14914         (expand_UBSAN_VPTR): New function.
14915         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
14916         in fn spec.
14917         (UBSAN_VPTR): New internal function.
14918         * sanopt.c (tree_map_traits): Renamed to ...
14919         (sanopt_tree_map_traits): ... this.
14920         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
14921         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
14922         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
14923         (maybe_optimize_ubsan_vptr_ifn): New function.
14924         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
14925         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
14926         -fsanitize=vptr.
14927         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
14928         internal calls like pure functions for aliasing, even when they
14929         have other side-effects that prevent making them ECF_PURE.
14930         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
14931         (ubsan_expand_vptr_ifn): New function.
14933 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
14935         PR rtl-optimization/64110
14936         * stmt.c (parse_output_constraint): Process '^' and '$'.
14937         (parse_input_constraint): Ditto.
14938         * lra-constraints.c (process_alt_operands): Process the new
14939         constraints.
14940         * ira-costs.c (record_reg_classes): Process the new constraint
14941         '^'.
14942         * genoutput.c (indep_constraints): Add '^' and '$'.
14943         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
14944         * doc/md.texi: Add description of the new constraints.
14946 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
14947             Bernd Schmidt  <bernds@codesourcery.com>
14948             Cesar Philippidis  <cesar@codesourcery.com>
14949             James Norris  <jnorris@codesourcery.com>
14950             Tom de Vries  <tom@codesourcery.com>
14951             Ilmir Usmanov  <i.usmanov@samsung.com>
14952             Dmitry Bocharnikov  <dmitry.b@samsung.com>
14953             Evgeny Gavrin  <e.gavrin@samsung.com>
14954             Jakub Jelinek  <jakub@redhat.com>
14956         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
14957         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
14958         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
14959         New function types.
14960         * builtins.c: Include "gomp-constants.h".
14961         (expand_builtin_acc_on_device): New function.
14962         (expand_builtin, is_inexpensive_builtin): Handle
14963         BUILT_IN_ACC_ON_DEVICE.
14964         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
14965         New macros.
14966         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
14967         flag_openmp.
14968         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
14969         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
14970         i386/intelmic-offload.h.
14971         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
14972         to libgomp and its dependencies.
14973         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
14974         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
14975         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
14976         * config/ia64/hpux.h (LIB_SPEC): Likewise.
14977         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14978         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
14979         * doc/generic.texi: Update for OpenACC changes.
14980         * doc/gimple.texi: Likewise.
14981         * doc/invoke.texi: Likewise.
14982         * doc/sourcebuild.texi: Likewise.
14983         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
14984         GF_OMP_FOR_KIND_OACC_LOOP.
14985         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
14986         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
14987         GF_OMP_TARGET_KIND_OACC_UPDATE,
14988         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
14989         Dump more data.
14990         * gimple.c: Update comments for OpenACC changes.
14991         * gimple.def: Likewise.
14992         * gimple.h: Likewise.
14993         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
14994         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
14995         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
14996         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
14997         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
14998         appropriate place.
14999         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
15000         * gimplify.c: Include "gomp-constants.h".
15001         Update comments for OpenACC changes.
15002         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
15003         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
15004         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
15005         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
15006         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
15007         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
15008         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
15009         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
15010         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
15011         OMP_CLAUSE_SEQ.
15012         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
15013         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
15014         OMP_CLAUSE_SET_MAP_KIND.
15015         (gimplify_oacc_cache): New function.
15016         (gimplify_omp_for): Handle OACC_LOOP.
15017         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
15018         OACC_DATA.
15019         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
15020         OACC_EXIT_DATA, OACC_UPDATE.
15021         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
15022         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
15023         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
15024         (gimplify_body): Consider flag_openacc next to flag_openmp.
15025         * lto-streamer-out.c: Include "gomp-constants.h".
15026         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
15027         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
15028         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
15029         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
15030         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
15031         (BUILT_IN_ACC_ON_DEVICE): New builtins.
15032         * omp-low.c: Include "gomp-constants.h".
15033         Update comments for OpenACC changes.
15034         (struct omp_context): Add reduction_map, gwv_below, gwv_this
15035         members.
15036         (extract_omp_for_data, use_pointer_for_field, install_var_field)
15037         (new_omp_context, delete_omp_context, scan_sharing_clauses)
15038         (create_omp_child_function, scan_omp_for, scan_omp_target)
15039         (check_omp_nesting_restrictions, lower_reduction_clauses)
15040         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
15041         Update for OpenACC changes.
15042         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
15043         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
15044         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
15045         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
15046         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
15047         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
15048         OMP_CLAUSE_MAP_*.
15049         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
15050         Handle GF_OMP_FOR_KIND_OACC_LOOP.
15051         (expand_omp_target, lower_omp_target): Handle
15052         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
15053         GF_OMP_TARGET_KIND_OACC_UPDATE,
15054         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
15055         GF_OMP_TARGET_KIND_OACC_DATA.
15056         (pass_expand_omp::execute, execute_lower_omp)
15057         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
15058         flag_openmp.
15059         (offload_symbol_decl): New variable.
15060         (oacc_get_reduction_array_id, oacc_max_threads)
15061         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
15062         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
15063         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
15064         (oacc_gimple_assign, oacc_initialize_reduction_data)
15065         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
15066         functions.
15067         (is_targetreg_ctx): Remove function.
15068         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
15069         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
15070         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
15071         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
15072         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
15073         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
15074         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
15075         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
15076         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
15077         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
15078         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
15079         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
15080         * tree-core.h: Update comments for OpenACC changes.
15081         (enum omp_clause_map_kind): Remove.
15082         (struct tree_omp_clause): Change type of map_kind member from enum
15083         omp_clause_map_kind to unsigned char.
15084         * tree-inline.c: Update comments for OpenACC changes.
15085         * tree-nested.c: Likewise.  Include "gomp-constants.h".
15086         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
15087         (convert_tramp_reference_stmt, convert_gimple_call): Update for
15088         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
15089         OMP_CLAUSE_SET_MAP_KIND.
15090         * tree-pretty-print.c: Include "gomp-constants.h".
15091         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
15092         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
15093         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
15094         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
15095         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
15096         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
15097         instead of OMP_CLAUSE_MAP_*.
15098         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
15099         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
15100         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
15101         * tree-streamer-in.c: Include "gomp-constants.h".
15102         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
15103         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
15104         * tree-streamer-out.c: Include "gomp-constants.h".
15105         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
15106         OMP_CLAUSE_MAP_*.
15107         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
15108         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
15109         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
15110         * tree.c (omp_clause_num_ops): Update accordingly.
15111         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
15112         Likewise.
15113         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
15114         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
15115         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
15116         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
15117         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
15118         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
15119         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
15120         (OMP_CLAUSE_SET_MAP_KIND): New macro.
15121         * varpool.c (varpool_node::get_create): Consider flag_openacc next
15122         to flag_openmp.
15123         * config/i386/intelmic-offload.h: New file.
15124         * config/nvptx/offload.h: Likewise.
15126 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15128         * explow.h: Remove duplicate contents.
15129         * dojump.h: Likewise.
15131 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
15133         * arm.c (arm_xgene_tune): Add default initializer for instruction
15134         fusion.
15136 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
15138         PR ipa/64068
15139         PR ipa/64559
15140         * ipa.c (symbol_table::remove_unreachable_nodes):
15141         Do not put abstract origins into boundary.
15143 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
15145         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
15146         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
15148 2015-01-15  Steve Ellcey  <sellcey@mips.com>
15150         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
15151         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
15152         builtins.def, and chkp-builtins.def.
15154 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
15156         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
15157         ISA 2.7 (POWER8).
15159 2015-01-15  Richard Biener  <rguenther@suse.de>
15161         PR tree-optimization/61743
15162         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
15163         information on PHIs for some simple cases.
15165 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
15167         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
15168         Include xgene1.md.
15169         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
15170         * config/arm/arm-cores.def (xgene1): New entry.
15171         * config/arm/arm-tables.opt: Regenerate.
15172         * config/arm/arm-tune.md: Regenerate.
15173         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
15175 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
15177         * tree-if-conv.c: Include hash-map.h.
15178         (aggressive_if_conv): New variable.
15179         (fold_build_cond_expr): Add simplification of non-zero condition.
15180         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
15181         destination block is not always executed.
15182         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
15183         than two predecessors if AGGRESSIVE_IF_CONV is true.
15184         (if_convertible_stmt_p): Fix commentary.
15185         (all_preds_critical_p): New function.
15186         (has_pred_critical_p): New function.
15187         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
15188         BB can have more than two predecessors and all incoming edges can be
15189         critical.
15190         (predicate_bbs): Skip predication for loop exit block, use build2_loc
15191         to compute predicate for true edge.
15192         (find_phi_replacement_condition): Delete this function.
15193         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
15194         Allow interchange PHI arguments if EXTENDED is false.
15195         Change check that block containing reduction statement candidate
15196         is predecessor of phi-block since phi may have more than two arguments.
15197         (phi_args_hash_traits): New helper structure.
15198         (struct phi_args_hash_traits): New type.
15199         (phi_args_hash_traits::hash): New function.
15200         (phi_args_hash_traits::equal_keys): New function.
15201         (gen_phi_arg_condition): New function.
15202         (predicate_scalar_phi): Add handling of phi nodes with more than two
15203         arguments, delete COND and TRUE_BB arguments, insert body of
15204         find_phi_replacement_condition to predicate ordinary phi nodes.
15205         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
15206         delete call of find_phi_replacement_condition and invoke
15207         predicate_scalar_phi with two arguments.
15208         (insert_gimplified_predicates): Add assert that non-predicated block
15209         don't have statements to insert.
15210         (ifcvt_split_critical_edges): New function.
15211         (ifcvt_split_def_stmt): Likewise.
15212         (ifcvt_walk_pattern_tree): Likewise.
15213         (stmt_is_root_of_bool_pattern): Likewise.
15214         (ifcvt_repair_bool_pattern): Likewise.
15215         (ifcvt_local_dce): Likewise.
15216         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
15217         is copy of inner or outer loop force_vectorize field, invoke
15218         ifcvt_split_critical_edges, ifcvt_local_dce and
15219         ifcvt_repair_bool_pattern for aggressive if-conversion.
15221 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
15223         * config/aarch64/aarch64.md: Include xgene1.md.
15224         * config/aarch64/xgene1.md: New file.
15226 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
15228         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
15229         xgene1 (APM XGene-1) core definition.
15230         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
15231         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
15232         * doc/invoke.texi: Document -mcpu=xgene1.
15234 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15236         * dojump.h: New header file.
15237         * explow.h: Likewise.
15238         * expr.h: Remove includes.
15239         Move expmed.c prototypes to expmed.h.
15240         Move dojump.c prototypes to dojump.h.
15241         Move alias.c prototypes to alias.h.
15242         Move explow.c prototypes to explow.h.
15243         Move calls.c prototypes to calls.h.
15244         Move emit-rtl.c prototypes to emit-rtl.h.
15245         Move varasm.c prototypes to varasm.h.
15246         Move stmt.c prototypes to stmt.h.
15247         (saved_pending_stack_adjust): Move to dojump.h.
15248         (adjust_address): Move to explow.h.
15249         (adjust_address_nv): Move to emit-rtl.h.
15250         (adjust_bitfield_address): Likewise.
15251         (adjust_bitfield_address_size): Likewise.
15252         (adjust_bitfield_address_nv): Likewise.
15253         (adjust_automodify_address_nv): Likewise.
15254         * explow.c (expr_size): Move to expr.c.
15255         (int_expr_size): Likewise.
15256         (tree_expr_size): Likewise.
15257         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15258         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
15259         * genemit.c (main): Generate includes statistics.h, real.h,
15260         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
15261         stmt.h.
15262         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
15263         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
15264         explow.h, emit-rtl.h, stmt.h.
15265         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
15266         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
15267         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
15268         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
15269         emit-rtl.h, varasm.h, stmt.h.
15270         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
15271         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
15272         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
15273         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
15274         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
15275         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
15276         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
15277         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
15278         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
15279         tm.h tree.h varasm.h vec.h wide-int.h.
15280         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
15281         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
15282         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
15283         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
15284         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
15285         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
15286         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
15287         * loop-iv.c: Likewise.
15288         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
15289         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
15290         statistics.h stmt.h tree.h varasm.h wide-int.h.
15291         * lra-constraints.c: Likewise.
15292         * lra-eliminations.c: Likewise.
15293         * lra-lives.c: Likewise.
15294         * lra-remat.c: Likewise.
15295         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
15296         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
15297         statistics.h stmt.h tree.h varasm.h wide-int.h.
15298         * hw-doloop.c: Likewise.
15299         * ira-color.c: Likewise.
15300         * ira-emit.c: Likewise.
15301         * loop-doloop.c: Likewise.
15302         * loop-invariant.c: Likewise.
15303         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
15304         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
15305         statistics.h stmt.h tree.h varasm.h wide-int.h.
15306         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
15307         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
15308         statistics.h stmt.h tree.h varasm.h wide-int.h.
15309         * combine-stack-adj.c: Likewise.
15310         * cse.c: Likewise.
15311         * ddg.c: Likewise.
15312         * ifcvt.c: Likewise.
15313         * ira-costs.c: Likewise.
15314         * jump.c: Likewise.
15315         * lra-coalesce.c: Likewise.
15316         * lra-spills.c: Likewise.
15317         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
15318         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
15319         stmt.h varasm.h wide-int.h.
15320         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
15321         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
15322         varasm.h.
15323         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
15324         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
15325         statistics.h stmt.h varasm.h wide-int.h.
15326         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
15327         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
15328         varasm.h wide-int.h.
15329         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
15330         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
15331         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
15332         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
15333         statistics.h stmt.h.
15334         * config/tilepro/tilepro.c: Likewise.
15335         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
15336         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
15337         * config/pdp11/pdp11.c: Likewise.
15338         * config/xtensa/xtensa.c: Likewise.
15339         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
15340         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
15341         varasm.h.
15342         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15343         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
15344         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
15345         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15346         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
15347         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
15348         * rtl-chkp.c: Likewise.
15349         * tree-chkp-opt.c: Likewise.
15350         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
15351         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
15352         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
15353         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15354         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
15355         statistics.h stmt.h.
15356         * tree-vect-data-refs.c: Likewise.
15357         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
15358         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
15359         rtl.h statistics.h stmt.h varasm.h.
15360         * internal-fn.c: Likewise.
15361         * ipa-icf-gimple.c: Likewise.
15362         * lto-section-out.c: Likewise.
15363         * tree-data-ref.c: Likewise.
15364         * tree-nested.c: Likewise.
15365         * tree-outof-ssa.c: Likewise.
15366         * tree-predcom.c: Likewise.
15367         * tree-pretty-print.c: Likewise.
15368         * tree-scalar-evolution.c: Likewise.
15369         * tree-ssa-strlen.c: Likewise.
15370         * tree-vect-loop.c: Likewise.
15371         * tree-vect-patterns.c: Likewise.
15372         * tree-vect-slp.c: Likewise.
15373         * tree-vect-stmts.c: Likewise.
15374         * tsan.c: Likewise.
15375         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15376         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
15377         stmt.h.
15378         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
15379         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
15380         statistics.h stmt.h varasm.h.
15381         * loop-unroll.c: Likewise.
15382         * ubsan.c: Likewise.
15383         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
15384         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
15385         stmt.h varasm.h.
15386         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15387         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
15388         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
15389         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
15390         statistics.h stmt.h.
15391         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
15392         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
15393         statistics.h stmt.h varasm.h.
15394         * gimple-match-head.c: Likewise.
15395         * lto-cgraph.c: Likewise.
15396         * lto-section-in.c: Likewise.
15397         * lto-streamer-in.c: Likewise.
15398         * lto-streamer-out.c: Likewise.
15399         * tree-affine.c: Likewise.
15400         * tree-cfg.c: Likewise.
15401         * tree-cfgcleanup.c: Likewise.
15402         * tree-if-conv.c: Likewise.
15403         * tree-into-ssa.c: Likewise.
15404         * tree-ssa-alias.c: Likewise.
15405         * tree-ssa-copyrename.c: Likewise.
15406         * tree-ssa-dse.c: Likewise.
15407         * tree-ssa-forwprop.c: Likewise.
15408         * tree-ssa-live.c: Likewise.
15409         * tree-ssa-math-opts.c: Likewise.
15410         * tree-ssa-pre.c: Likewise.
15411         * tree-ssa-sccvn.c: Likewise.
15412         * tree-tailcall.c: Likewise.
15413         * tree-vect-generic.c: Likewise.
15414         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15415         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
15416         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15417         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
15418         * varasm.c: Likewise.
15419         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15420         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
15421         varasm.h.
15422         * init-regs.c: Likewise.
15423         * ira.c: Likewise.
15424         * omp-low.c: Likewise.
15425         * stack-ptr-mod.c: Likewise.
15426         * tree-ssa-reassoc.c: Likewise.
15427         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15428         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
15429         varasm.h.
15430         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15431         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
15432         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15433         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
15434         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15435         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
15436         * tree-ssa-phiopt.c: Likewise.
15437         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15438         fixed-value.h hashtab.h real.h statistics.h stmt.h.
15439         * config/fr30/fr30.c: Likewise.
15440         * config/frv/frv.c: Likewise.
15441         * expr.c: Likewise.
15442         * final.c: Likewise.
15443         * optabs.c: Likewise.
15444         * passes.c: Likewise.
15445         * simplify-rtx.c: Likewise.
15446         * stmt.c: Likewise.
15447         * toplev.c: Likewise.
15448         * var-tracking.c: Likewise.
15449         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15450         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
15451         * lower-subreg.c: Likewise.
15452         * postreload-gcse.c: Likewise.
15453         * ree.c: Likewise.
15454         * reginfo.c: Likewise.
15455         * store-motion.c: Likewise.
15456         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15457         fixed-value.h hashtab.h real.h stmt.h varasm.h.
15458         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15459         fixed-value.h hashtab.h statistics.h stmt.h.
15460         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15461         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
15462         * except.c: Likewise.
15463         * explow.c: Likewise.
15464         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15465         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
15466         varasm.h.
15467         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15468         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
15469         * tree-ssa-structalias.c: Likewise.
15470         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15471         fixed-value.h insn-config.h real.h statistics.h.
15472         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15473         fixed-value.h insn-config.h real.h statistics.h stmt.h.
15474         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15475         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
15476         * cfgbuild.c: Likewise.
15477         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15478         fixed-value.h real.h rtl.h statistics.h stmt.h.
15479         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15480         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
15481         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15482         fixed-value.h real.h statistics.h stmt.h.
15483         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
15484         fixed-value.h real.h statistics.h stmt.h varasm.h.
15485         * cprop.c: Likewise.
15486         * modulo-sched.c: Likewise.
15487         * postreload.c: Likewise.
15488         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
15489         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
15490         statistics.h stmt.h varasm.h.
15491         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
15492         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
15493         rtl.h statistics.h stmt.h varasm.h.
15494         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
15495         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
15496         varasm.h.
15497         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
15498         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
15499         varasm.h.
15500         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
15501         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
15502         varasm.h.
15503         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
15504         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
15505         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
15506         function.h real.h statistics.h stmt.h varasm.h.
15507         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
15508         insn-config.h real.h statistics.h stmt.h.
15509         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
15510         statistics.h stmt.h.
15511         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
15512         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
15513         statistics.h stmt.h varasm.h.
15514         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
15515         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
15516         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
15517         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
15518         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
15519         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
15520         statistics.h stmt.h varasm.h.
15521         * ipa-polymorphic-call.c: Likewise.
15522         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
15523         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
15524         statistics.h stmt.h.
15525         * config/c6x/c6x.c: Likewise.
15526         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
15527         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
15528         statistics.h stmt.h varasm.h.
15529         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
15530         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
15531         stmt.h varasm.h.
15532         * ipa-split.c: Likewise.
15533         * tree-eh.c: Likewise.
15534         * tree-ssa-dce.c: Likewise.
15535         * tree-ssa-loop-niter.c: Likewise.
15536         * tree-vrp.c: Likewise.
15537         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
15538         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
15539         stmt.h.
15540         * config/nds32/nds32-fp-as-gp.c: Likewise.
15541         * config/nds32/nds32-intrinsic.c: Likewise.
15542         * config/nds32/nds32-isr.c: Likewise.
15543         * config/nds32/nds32-md-auxiliary.c: Likewise.
15544         * config/nds32/nds32-memory-manipulation.c: Likewise.
15545         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15546         * config/nds32/nds32-predicates.c: Likewise.
15547         * config/nds32/nds32.c: Likewise.
15548         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
15549         fixed-value.h hashtab.h real.h statistics.h.
15550         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
15551         fixed-value.h hashtab.h real.h statistics.h stmt.h.
15552         * config/arm/arm.c: Likewise.
15553         * config/avr/avr.c: Likewise.
15554         * config/bfin/bfin.c: Likewise.
15555         * config/h8300/h8300.c: Likewise.
15556         * config/i386/i386.c: Likewise.
15557         * config/ia64/ia64.c: Likewise.
15558         * config/iq2000/iq2000.c: Likewise.
15559         * config/m32c/m32c.c: Likewise.
15560         * config/m32r/m32r.c: Likewise.
15561         * config/m68k/m68k.c: Likewise.
15562         * config/mcore/mcore.c: Likewise.
15563         * config/mep/mep.c: Likewise.
15564         * config/mips/mips.c: Likewise.
15565         * config/mn10300/mn10300.c: Likewise.
15566         * config/moxie/moxie.c: Likewise.
15567         * config/pa/pa.c: Likewise.
15568         * config/rl78/rl78.c: Likewise.
15569         * config/rx/rx.c: Likewise.
15570         * config/s390/s390.c: Likewise.
15571         * config/sh/sh.c: Likewise.
15572         * config/sparc/sparc.c: Likewise.
15573         * config/spu/spu.c: Likewise.
15574         * config/stormy16/stormy16.c: Likewise.
15575         * config/v850/v850.c: Likewise.
15576         * config/vax/vax.c: Likewise.
15577         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
15578         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
15579         * config/msp430/msp430.c: Likewise.
15580         * predict.c: Likewise.
15581         * value-prof.c: Likewise.
15582         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
15583         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
15584         * config/microblaze/microblaze.c: Likewise.
15585         * config/nios2/nios2.c: Likewise.
15586         * config/rs6000/rs6000.c: Likewise.
15587         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
15588         insn-config.h real.h rtl.h statistics.h stmt.h.
15589         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
15590         insn-config.h real.h statistics.h stmt.h.
15591         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
15592         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
15593         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
15594         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
15595         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
15596         fixed-value.h real.h statistics.h stmt.h.
15597         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
15598         fixed-value.h statistics.h stmt.h.
15599         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
15600         stmt.h.
15602 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
15604         * gengtype.c (create_user_defined_type): Workaround
15605         -Wmaybe-uninitialized false positives.
15606         * cse.c (fold_rtx): Likewise.
15607         * loop-invariant.c (gain_for_invariant): Likewise.
15609 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
15611         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
15612         set the memory attributes in all cases but clear MEM_EXPR if need be.
15614 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
15616         PR tree-optimization/64434
15617         * cfgexpand.c (reorder_operands): New function.
15618         (expand_gimple_basic_block): Insert call of reorder_operands if
15619         optimized is true.
15621 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
15623         * config/mips/micromips.md (*swp): Remove explicit parallel.
15624         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
15625         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
15626         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
15627         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
15628         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
15629         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
15630         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
15631         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
15632         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
15633         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
15634         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
15635         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
15636         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
15637         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
15638         (mips_wrdsp): Likewise.
15639         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
15640         parallel.
15641         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
15642         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
15643         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
15644         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
15645         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
15646         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
15647         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
15648         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
15649         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
15651 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
15653         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
15654         (mips_print_operand): Support 'y' to print exact log2 in decimal
15655         of a const_int.
15656         * config/mips/mips.h (ISA_HAS_LSA): New define.
15657         (ISA_HAS_DLSA): Likewise.
15658         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
15659         * config/mips/predicates.md (const_immlsa_operand): New predicate.
15661 2015-01-15  Martin Liska  <mliska@suse.cz>
15663         PR target/64377
15664         * optc-save-gen.awk: Add support for array types.
15666 2015-01-15  Richard Biener  <rguenther@suse.de>
15668         PR middle-end/64365
15669         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
15670         for MEM_REF access functions with the same base can never partially
15671         overlap.
15673 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
15675         * common.opt: New option -fstack-protector-explicit.
15676         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
15677         (stack_protect_decl_phase): Handle stack_protect attribute for
15678         explicit stack protection requests.
15679         (expand_used_vars): Similarly.
15680         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
15681         * doc/extend.texi: Add documentation for "stack_protect" attribute.
15682         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
15684 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
15686         PR target/53988
15687         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
15688         reg-reg copies.
15689         (sh_extending_set_of_reg): New struct.
15690         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
15691         sh_remove_reg_dead_or_unused_notes): New Declarations.
15692         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
15693         sh_find_extending_set_of_reg, sh_split_tst_subregs,
15694         sh_extending_set_of_reg::use_as_extended_reg): New functions.
15695         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
15696         convert to insn_and_split and use new function sh_split_tst_subregs.
15698 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
15700         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
15701         option.
15702         (Optimization Options): Move -fuse-ld documentation to...
15703         (Link Options): ...here.
15705 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
15707         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
15708         offsets.
15709         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
15710         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
15711         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
15712         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
15713         instead of ZR for the memory operand of LL/SC.
15714         (compare_and_swap_12, sync_add<mode>): Likewise.
15715         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
15716         (sync_new_<optab>_12, sync_nand_12): Likewise.
15717         (sync_old_nand_12, sync_new_nand_12): Likewise.
15718         (sync_sub<mode>, sync_old_add<mode>): Likewise.
15719         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
15720         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
15721         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
15722         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
15723         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
15724         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
15725         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
15726         * doc/md.texi (ZC): Update description.
15728 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
15730         * builtins.c (expand_builtin_atomic_exchange): Remove error when
15731         memory model is CONSUME.
15732         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
15733         expand_builtin_atomic_store): Change invalid memory model errors to
15734         warnings.
15735         (expand_builtin_atomic_clear): Change invalid model errors to warnings
15736         and issue warning for CONSUME.
15738 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
15740         * lto-cgraph: Update function comments for
15741         lto_symtab_encoder_encode_*.
15743 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
15745         * Makefile.in (site.exp): Do not set ENABLE_LTO.
15747 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
15749         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
15750         * lto-cgraph.c (select_what_to_stream): Remove argument, use
15751         lto_stream_offload_p instead.
15752         * lto-streamer.h (select_what_to_stream): Remove argument.
15753         * passes.c (ipa_write_summaries): Likewise.
15754         * tree-pass.h (ipa_write_summaries): Likewise.
15756 2015-01-14  Richard Biener  <rguenther@suse.de>
15758         PR tree-optimization/59354
15759         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
15760         groups larger than the slp group size as having gaps.
15762 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
15764         PR middle-end/59448
15765         * builtins.c (get_memmodel): Promote consume to acquire always.
15767 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
15769         PR target/64386
15770         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
15771         V32HImode.
15773 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
15775         PR target/64393
15776         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
15777         Enable AVX512BW.
15778         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
15779         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
15780         AVX512VBMI, as it implies AVX512BW.
15782 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
15784         PR target/64387
15785         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
15786         (vec_unpacks_hi_v16sf): Ditto.
15788 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15790         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
15791         is not available.
15793 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15795         * doc/invoke.texi (mapcs): Mention deprecation.
15796         (mapcs-frame): Likewise.
15798 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15800         PR target/64453
15801         * config/arm/arm.c (callee_saved_reg_p): Define.
15802         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
15803         register is callee saved instead of !call_used_regs[reg].
15804         (thumb1_compute_save_reg_mask): Likewise.
15806 2015-01-14  Hale Wang  <hale.wang@arm.com>
15808         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
15809         Cortex-M7.
15811 2015-01-14  Richard Biener  <rguenther@suse.de>
15813         PR lto/64415
15814         * tree-inline.c (insert_debug_decl_map): Check destination
15815         function MAY_HAVE_DEBUG_STMTS.
15816         (insert_init_debug_bind): Likewise.
15817         (insert_init_stmt): Remove redundant check.
15818         (remap_gimple_stmt): Drop debug stmts if the destination
15819         function has var-tracking assignments disabled.
15821 2015-01-14  Martin Liska  <mliska@suse.cz>
15823         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
15824         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
15826 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15828         PR target/64460
15829         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
15830         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
15832 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
15834         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
15835         level from an ARCH; do not inject the default.
15836         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
15837         MIPS_ISA_LEVEL_SPEC.
15838         (MIPS_ISA_NAN2008_SPEC): Update comment.
15839         (BASE_DRIVER_SELF_SPECS): Likewise.
15840         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
15841         MIPS_DEFAULT_ISA_LEVEL_SPEC.
15842         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
15843         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
15844         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
15846 2015-01-14  Richard Biener  <rguenther@suse.de>
15848         PR tree-optimization/64493
15849         PR tree-optimization/64495
15850         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
15851         assign the proper vectorized PHI to the inner loop exit PHIs.
15853 2015-01-14  Joey Ye  <joey.ye@arm.com>
15855         * config/arm/arm.c (arm_compute_save_reg_mask):
15856         Do not save lr in case of tail call.
15857         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
15859 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
15861         * tree-vrp.c (check_array_ref): Emit more warnings
15862         for warn_array_bounds >= 2.
15863         * common.opt: New option -Warray-bounds=.
15864         * doc/invoke.texi: Document -Warray-bounds=.
15866 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
15868         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
15869         (mforbid-fp-as-gp): Remove.
15870         (mex9): Remove.
15871         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
15872         (nds32_symbol_load_store_p): Remove.
15873         (nds32_fp_as_gp_check_available): Clean up implementation.
15874         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
15875         cases.
15876         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
15877         fp-as-gp and ex9 cases.
15879 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
15881         * tree-profile.c (init_ic_make_global_vars): Drop workaround
15882         for bintuils bug 14342.
15883         (init_ic_make_global_vars): Likewise.
15884         (gimple_init_edge_profiler): Likewise.
15885         (gimple_gen_ic_func_profiler): Likewise.
15887 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15889         * ipa-inline.c (inline_small_functions): Swap the operands in
15890         enum.
15892 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
15894         PR ipa/64481
15895         * ipa-inline-analysis.c (node_growth_cache): Remove.
15896         (initialize_growth_caches): Do not initialize it.
15897         (free_growth_caches): Do not free it.
15898         (do_estimate_growth): Rename to ...
15899         (estimate_growth): ... this one; drop growth cache code.
15900         (growth_likely_positive): Always go the heuristics way.
15901         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
15902         (reset_edge_caches): Do not reset node growth.
15903         (heap_edge_removal_hook): Do not maintain cache.
15904         (inline_small_functions): Likewise; strenghten sanity check.
15905         (ipa_inline): Do not maintain caches.
15906         * ipa-inline.h (node_growth_cache): Remove.
15907         (do_estimate_growth): Remove to ...
15908         (estimate_growth): this one; remove inline version.
15909         (reset_node_growth_cache): Remove.
15911 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
15913         PR ipa/64565
15914         * ipa-inline.c (inline_small_functions): Update callee keys after
15915         resolving speculation
15916         (inline_small_functions): Always check monotonicity of the queue.
15918 2015-01-13  Marek Polacek  <polacek@redhat.com>
15920         PR middle-end/64391
15921         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
15923 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
15925         PR rtl-optimization/64286
15926         * ree.c (combine_reaching_defs): Move part of comment earlier,
15927         remove !SCALAR_INT_MODE_P check.
15928         (add_removable_extension): Don't add vector mode
15929         extensions if all uses of the source register aren't the same
15930         vector extensions.
15932 2015-01-13  Renlin Li  <renlin.li@arm.com>
15934         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
15935         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
15937 2015-01-13  Martin Liska  <mliska@suse.cz>
15939         * ipa-icf.c (sem_function::equals_private): Call new functions
15940         cl_target_option_print_diff and cl_optimization_print_diff.
15941         * optc-save-gen.awk (cl_target_option_print_diff): New function.
15942         (cl_optimization_print_diff): Likewise.
15943         * opth-gen.awk: Likewise.
15945 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
15947         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
15948         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
15949         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
15950         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
15951         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
15952         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
15954 2015-01-13  Andrew Pinski  <apinski@cavium.com>
15956         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
15957         instead of src mode.
15959 2015-01-13  Richard Biener  <rguenther@suse.de>
15961         PR lto/64373
15962         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
15963         DECL_CONTEXT.
15965 2015-01-13  Andrew Pinski  <apinski@cavium.com>
15967         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
15968         volatile mems.
15969         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
15971 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
15973         PR middle-end/63974
15974         * cfgexpand.c (expand_computed_goto): Don't call
15975         convert_memory_address here.
15977 2015-01-13  Richard Biener  <rguenther@suse.de>
15979         PR tree-optimization/64406
15980         * tree-loop-distibution.c (pass_loop_distribution::execute):
15981         Reset the SCEV hashtable if we distributed anything.
15983 2015-01-13  Richard Biener  <rguenther@suse.de>
15985         PR tree-optimization/64404
15986         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
15987         SLP types for CSEd loads.
15989 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15991         PR tree-optimization/64436
15992         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
15993         merge of two symbolic numbers for a bitwise OR to ...
15994         (perform_symbolic_merge): This. Also fix computation of the range and
15995         end of the symbolic number corresponding to the result of a bitwise OR.
15997 2015-01-13  Richard Biener  <rguenther@suse.de>
15999         PR tree-optimization/64568
16000         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
16001         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
16003 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
16005         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
16006         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
16008 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
16010         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
16011         target-specific symbol_ref flag.
16012         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
16013         resides in rodata section.
16014         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
16015         (nds32_encode_section_info): New function.
16017 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
16019         * config/nds32/nds32.md (call): Use pseudo instruction bal which
16020         clobbers TA_REGNUM if large code model is specified.
16021         (call_register): Likewise.
16022         (call_immediate): Likewise.
16023         (call_value): Likewise.
16024         (call_value_register): Likewise.
16025         (call_value_immediate): Likewise.
16027 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
16029         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
16030         (TARGET_CMODEL_MEDIUM): New macro.
16031         (TARGET_CMODEL_LARGE): New macro.
16032         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
16033         code model setting in assembly code.
16035 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
16037         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
16038         Remove MASK_GP_DIRECT flag.
16039         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
16040         one of the multilib default options.
16041         * config/nds32/nds32.opt (mgp-direct): Remove.
16042         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
16043         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
16045 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
16047         * config/nds32/nds32.opt (mcmodel): Add new option.
16048         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
16049         to describe code model.
16051 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
16053         PR target/64479
16054         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
16056 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
16058         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
16059         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
16060         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
16061         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
16062         __builtin_sh_set_fpscr.
16064 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
16066         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
16067         after a funtion name just to indicate it is a function.
16068         ([-fsanitize-undefined-trap-on-error]): Likewise.
16069         ([-fdbg-cnt=]): Likewise.
16070         ([-mmemcpy]): Likewise.
16071         ([-mflush-func]): Likewise.
16072         ([-msynci]): Likewise.
16074 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
16076         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
16077         example.
16079 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
16081         PR tree-optimization/64563
16082         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
16083         instead of != VR_VARYING.
16085         PR target/64513
16086         * config/i386/i386.c (ix86_expand_prologue): Add
16087         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
16089         PR tree-optimization/64454
16090         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
16091         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
16092         for signed or [0, op1 - 1] for unsigned modulo.
16093         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
16094         even if op1 does not satisfy integer_pow2p.
16096         PR other/64370
16097         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
16099 2015-01-12  Jeff Law  <law@redhat.com>
16101         PR target/64461
16102         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
16103         (trunchiqi2, truncsihi2): Similarly.
16105         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
16106         rather than calling F.
16108 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16110         * tsan.c (instrument_expr): Use force_gimple_operand.
16111         Use may_be_nonaddressable_p instead of is_gimple_addressable.
16113 2015-01-12  Richard Biener  <rguenther@suse.de>
16115         PR tree-optimization/64530
16116         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
16117         back dr1.
16119 2015-01-12  Richard Biener  <rguenther@suse.de>
16121         PR middle-end/64357
16122         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
16123         latches properly.
16125 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16127         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
16128         Cortex-A17 tuning parameters.
16129         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
16131 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16133         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
16134         * config/arm/arm.c (arm_macro_fusion_p): New function.
16135         (arm_macro_fusion_pair_p): Likewise.
16136         (TARGET_SCHED_MACRO_FUSION_P): Define.
16137         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
16138         (ARM_FUSE_NOTHING): Likewise.
16139         (ARM_FUSE_MOVW_MOVT): Likewise.
16140         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
16141         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
16142         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
16143         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
16144         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
16145         arm_cortex_a5_tune): Specify fuseable_ops value.
16147 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
16149         PR bootstrap/64561
16150         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
16151         test for PIE with copy reloc.
16152         * configure: Regenerated.
16154 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16156         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
16157         in gen_rtx_REG.
16158         (arm_tls_descseq_addr): Likewise.
16159         (arm_gen_movmemqi): Likewise.
16160         (arm_expand_epilogue_apcs_frame): Likewise.
16161         (arm_expand_epilogue): Likewise.
16162         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
16163         in gen_rtx_REG.
16165 2015-01-12  Martin Liska  <mliska@suse.cz>
16167         PR ipa/64550
16168         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
16169         volatility for correct operands.
16171 2015-01-12  Martin Liska  <mliska@suse.cz>
16173         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
16174         indication that a function is not leaf.
16175         (sem_function::compare_polymorphic_p): Likewise.
16177 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16179         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
16180         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
16181         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
16182         fold-const.h, tree-check.h.
16184 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
16186         PR ipa/63967
16187         PR ipa/64425
16188         * ipa-inline.c (compute_uninlined_call_time,
16189         compute_inlined_call_time): Use counts for extra precision when
16190         needed possible.
16191         (big_speedup_p): Fix formating.
16192         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
16193         (relative_time_benefit): Remove.
16194         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
16195         merge guessed and read profile paths.
16196         (inline_small_functions): Count only !optimize_size functions into
16197         initial size; be more lax about sanity check when profile is used;
16198         be sure to update inlined function profile when profile is read.
16200 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
16202         PR ipa/63470
16203         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
16204         cost when edge becomes direct.
16205         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
16206         is resolved or when introducing new speculation.
16208 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
16210         PR ipa/64551
16211         PR ipa/64552
16212         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
16213         '||' to fix typo issue.
16215         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
16216         accept and return NULL.
16218 2015-01-12  Martin Liska  <mliska@suse.cz>
16220         * cgraph.c (cgraph_edge::remove_callee): Move function to header
16221         file for being inlined.
16222         (cgraph_set_edge_callee): Delete.
16223         (cgraph_edge::redirect_callee): Move function to header file
16224         for being inlined.
16225         (cgraph_edge::make_direct): Use new function.
16226         (cgraph_edge::dump_edge_flags): New function created from
16227         static dump_edge_flags function.
16228         (cgraph_node::dump): Use new function.
16229         (cgraph_edge::verify_count_and_frequency): New function created
16230         from verify_edge_count_and_frequency.
16231         (cgraph_edge::verify_corresponds_to_fndecl): New function created
16232         from verify_edge_corresponds_to_fndecl.
16233         (verify_edge_corresponds_to_fndecl): Delete.
16234         (cgraph_node::verify_node): Use new function.
16235         * cgraph.h (cgraph_edge::set_callee): New function.
16236         (cgraph_edge::dump_edge_flags): Likewise.
16237         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
16239 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
16241         * ipa-utils.c (estimate_function_body_sizes): Do not
16242         free node params when called late with early=true.
16244 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
16246         * doc/md.texi (Instruction Patterns): Rewrite text for
16247         clarity.
16248         (Example): Likewise.
16250 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
16252         * doc/invoke.texi (Option Summary): Break long lines.
16253         [(-fdiagnostics-color)]: Put long literal in @smallexample
16254         instead of inline.
16255         [(-fsanitize-recover)]: Likewise.
16256         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
16257         [(-ffast-math)]: Likewise.
16258         [(--param max-inline-insns-recursive)]: Likewise.
16259         [(--param max-inline-recursive-depth)]: Likewise.
16260         [(-mno-text-section-literals)]: Likewise.
16262 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
16264         * doc/install.texi: Update for libgomp being renamed from "GNU
16265         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
16266         Runtime Library".
16267         * doc/sourcebuild.texi: Likewise.
16269 2015-01-10  Anthony Green  <green@moxielogic.com>
16271         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
16272         mul.x availability for moxiebox configuration.
16274 2015-01-09  Anthony Green  <green@moxielogic.com>
16276         * config/moxie/moxie.md: Tabify assembly output.
16278 2015-01-09  Anthony Green  <green@moxielogic.com>
16280         * config/moxie/moxie.md (CC_REG): Correct register definition.
16282 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
16284         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
16285         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
16286         of log files.
16288 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
16290         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
16292 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
16293             Jakub Jelinek  <jakub@redhat.com>
16295         PR middle-end/64412
16296         * lto-streamer.h (lto_stream_offload_p): New declaration.
16297         * lto-streamer.c (lto_stream_offload_p): New variable.
16298         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
16299         at the same time as section_name_prefix.
16300         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
16301         if lto_stream_offload_p.
16302         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
16303         stream TREE_TARGET_OPTION if lto_stream_offload_p.
16304         (write_ts_function_decl_tree_pointers): Don't
16305         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
16306         * tree-streamer-in.c (unpack_value_fields): Don't stream
16307         TREE_TARGET_OPTION in if ACCEL_COMPILER.
16308         (lto_input_ts_function_decl_tree_pointers): Don't stream
16309         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
16310         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
16311         instead of section_name_prefix string comparisons.
16313 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
16315         PR rtl-optimization/64536
16316         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
16317         tablejumps.
16319 2015-01-09  Michael Collison  <michael.collison@linaro.org>
16321         PR tree-optimization/64322
16322         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
16323         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
16325 2015-01-09  Tom de Vries  <tom@codesourcery.com>
16327         PR rtl-optimization/64539
16328         * regcprop.c (kill_clobbered_values): Factor out of ...
16329         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
16330         instead of note_stores with kill_clobbered_value.
16332 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
16334          * ginclude/unwind-arm-common.h: Revert previous commit.
16336 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
16338         * config.gcc (arm*-*-freebsd*): New configuration.
16339         * config/arm/freebsd.h: New file.
16340         * config.host: Add extra components for arm*-*-freebsd*.
16341         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
16342         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
16344 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16346         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
16347         for -mcpu=e6500.
16348         * config/rs6000/t-rtems: Add e6500 multilibs.
16350 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16352         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
16353         MPC8540.
16355 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16357         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
16358         MULTILIB_EXCEPTIONS.
16360 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16362         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
16363         MULTILIB_EXCEPTIONS.
16365 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16367         * config/arm/t-rtems-eabi: Rename to...
16368         * config/arm/t-rtems: ...this.
16369         * config/arm/rtems-eabi.h: Rename to...
16370         * config/arm/rtems.h: ...this.
16371         * config.gcc (arm*-*-rtems*): Reflect changes above.
16373 2015-01-09  Richard Biener  <rguenther@suse.de>
16375         PR tree-optimization/64410
16376         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
16377         on the LHS.
16378         (execute_update_addresses_taken): Deal with that.
16379         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
16380         loads/stores for complex variables.
16382 2015-01-09  Martin Liska  <mliska@suse.cz>
16384         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
16385         name comparison.
16386         (func_checker::compare_memory_operand): New function.
16387         (func_checker::compare_operand): Split case to newly
16388         added functions.
16389         (func_checker::compare_cst_or_decl): New function.
16390         (func_checker::compare_gimple_call): Identify
16391         memory operands.
16392         (func_checker::compare_gimple_assign): Likewise.
16393         * ipa-icf-gimple.h: New function.
16395 2015-01-09  Martin Liska  <mliska@suse.cz>
16397         PR ipa/64503
16398         * sreal.c (sreal::dump): Change unsigned format to signed for
16399         m_exp value.
16400         (sreal::to_double): Replace exp2 with scalbln.
16402 2015-01-09  Martin Liska  <mliska@suse.cz>
16404         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
16405         * ipa-icf.c (sem_function::equals_private): Add support for target and
16406         (sem_item_optimizer::merge_classes): Remove redundant function
16407         optimization flags comparison.
16408         * tree.h (target_opts_for_fn): New function.
16410 2015-01-09  Tom de Vries  <tom@codesourcery.com>
16412         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
16414 2015-01-09  Kito Cheng  <kito@0xlab.org>
16416         PR rtl-optimization/64348
16417         * lra-constraints.c (split_reg): Fix caller-save store/restore
16418         instruction generation.
16420 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
16422         PR gcov-profile/61790
16423         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
16424         long long.  Fallback to int64_t if host doesn't have long long and
16425         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
16427 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
16429         PR tree-optimization/63989
16430         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
16431         from 1000 to 10000.
16432         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
16433         (get_stridx): If we don't have a record for certain SSA_NAME,
16434         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
16435         constant offset, call get_stridx_plus_constant.
16436         (get_stridx_plus_constant): New function.
16437         (zero_length_string): Don't use get_stridx here.
16439         PR target/55023
16440         PR middle-end/64388
16441         * dse.c (struct insn_info): Mention frame_read set also
16442         before reload for tail calls on some targets.
16443         (scan_insn): Revert 2014-12-22 change.  Set frame_read
16444         also before reload for tail calls if
16445         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
16446         instead of add_non_frame_wild_read for non-const/memset
16447         tail calls after reload.
16449 2015-01-08  Jason Merrill  <jason@redhat.com>
16451         * ubsan.c (do_ubsan_in_current_function): New.
16452         (pass_ubsan::gate): Use it.
16453         * ubsan.h: Declare it.
16454         * convert.c (convert_to_integer): Use it.
16456 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
16458         PR target/64338
16459         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
16460         compare_code when it is unconditionally overwritten afterwards.
16461         Use ix86_reverse_condition instead of reverse_condition.  Don't
16462         change code if *reverse_condition* returned UNKNOWN and don't
16463         swap ct/cf and negate diff in that case.
16465 2015-01-08  Mike Stump  <mikestump@comcast.net>
16467         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
16468         (pass_tsan_O0::gate): Likewise.
16469         * extend.texi (Function Attributes): Add no_sanitize_thread
16470         documentation.
16472 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
16474         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
16475         for registering builtins.
16476         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
16477         add -fopenmp to the argv_obstack used when invoking
16478         compile_for_target.
16480         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
16481         add "-m32" or "-m64" to argv_obstack.
16482         (generate_host_descr_file): Likewise, when invoking host_compiler.
16483         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
16484         ld.
16486 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
16488         * config/sh/sh-mem.cc: Use constant as second operand when emitting
16489         tstsi_t insns.
16491 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
16493         PR target/55212
16494         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
16495         constant load if constant operand fits into I08.
16497 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
16499         PR sanitizer/64336
16500         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
16501         and TREE_THIS_VOLATILE for MEM_REFs.
16502         (build5_stat): Fix up initialization of TREE_READONLY and
16503         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
16505 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
16507         PR target/64533
16508         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
16509         of r for the second alternative of the destination operand.
16511 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
16513         PR target/36557
16514         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
16516 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
16518         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
16519         keywords.
16520         ([-fivar-visibility], [-fvisibility]): Likewise.
16522 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
16524         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
16525         the file where @code, @command, etc is more appropriate.
16527 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
16529         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
16530         of -mrecip= documentation.
16532 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
16534         PR target/64505
16535         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
16536         correct reload handler if -m32 -mpowerpc64 is used.
16538 2015-01-06  Tom de Vries  <tom@codesourcery.com>
16540         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
16542 2015-01-08  Christian Bruel  <christian.bruel@st.com>
16544         PR target/64507
16545         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
16547 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16549         PR tree-optimization/63259
16550         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
16551         if optab exists for 16bit byteswap.
16553 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
16555         * opts.c (common_handle_option): Add support for
16556         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
16557         * doc/invoke.texi: Document -fno-sanitize=all,
16558         -f{,no-}sanitize-recover=all.  Document that
16559         -fsanitize=float-cast-overflow is not enabled
16560         by -fsanitize=undefined.  Fix up documentation
16561         of -f{,no-}sanitize-recover.
16563 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
16565         * config.gcc: Add Visium support.
16566         * configure.ac: Likewise.
16567         * configure: Regenerate.
16568         * doc/extend.texi (interrupt attribute): Add Visium.
16569         * doc/invoke.texi: Document Visium options.
16570         * doc/install.texi: Document Visium target.
16571         * doc/md.texi: Document Visium constraints.
16572         * common/config/visium: New directory.
16573         * config/visium: Likewise.
16575 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
16577         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
16578         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
16580 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
16582         * combine.c (combine_validate_cost): Do not count the cost of a
16583         split I2 twice.  Do not display it twice in the dump, either.
16585 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
16587         Revert parts of r219199.
16588         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
16589         <inttypes.h>.
16590         ([-Wtraditional]): Restore markup on <limits.h>.
16592 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
16594         PR c++/31397
16595         * doc/invoke.texi: Document -Wsuggest-override.
16597 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
16599         PR rtl-optimization/64287
16600         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
16601         (process_options): Disable flag_ipa_ra if profiling.
16603 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
16605         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
16607 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
16609         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
16610         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
16611         put under #if TARGET_LOOPS guard.
16613 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
16615         * config/i386/i386.c (output_387_binary_op): Use std::swap.
16617 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
16619         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
16620         * rtl.h (refers_to_regno_p): Add overload.
16621         * cse.c: Use it.
16622         * bt-load.c: Likewise.
16623         * combine.c: Likewise.
16624         * df-scan.c: Likewise.
16625         * sched-deps.c: Likewise.
16626         * config/s390/s390.c: Likewise.
16627         * config/m32r/m32r.c: Likewise.
16628         * config/rs6000/spe.md: Likewise.
16629         * config/rs6000/rs6000.c: Likewise.
16630         * config/pa/pa.c: Likewise.
16631         * config/stormy16/stormy16.c: Likewise.
16632         * config/cris/cris.c: Likewise.
16633         * config/arc/arc.md: Likewise.
16634         * config/arc/arc.c: Likewise.
16635         * config/sh/sh.md: Likewise.
16636         * config/sh/sh.c: Likewise.
16637         * config/frv/frv.c: Likewise.
16639 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
16641         PR sanitizer/64265
16642         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
16643         call as cleanup of the whole body.
16644         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
16645         * tsan.c (replace_func_exit): New function.
16646         (instrument_func_exit): Moved earlier.
16647         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
16648         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
16649         been found.
16650         (tsan_pass): Don't call instrument_func_exit.
16651         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
16652         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
16653         inlining.
16655         PR sanitizer/64344
16656         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
16657         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
16658         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
16659         if the result is integer_zerop, return NULL_TREE.
16660         * convert.c (convert_to_integer): Pass expr as ARG.
16662         PR tree-optimization/64465
16663         * tree-inline.c (redirect_all_calls): During inlining
16664         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
16665         changed the stmt to a non-throwing call.
16667 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
16669         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
16670         etc markup throughout the file.
16672 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16674         Enable experimental TSAN support for Ada.
16675         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
16677 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
16679         PR tree-optimization/64494
16680         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
16681         clear SSA_NAME_ANTI_RANGE_P flag.
16683 2015-01-05  Marek Polacek  <polacek@redhat.com>
16685         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
16687 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
16689         Update copyright years.
16691         * gcc.c (process_command): Update copyright notice dates.
16692         * gcov-dump.c: Ditto.
16693         * gcov.c: Ditto.
16694         * doc/cpp.texi: Bump @copying's copyright year.
16695         * doc/cppinternals.texi: Ditto.
16696         * doc/gcc.texi: Ditto.
16697         * doc/gccint.texi: Ditto.
16698         * doc/gcov.texi: Ditto.
16699         * doc/install.texi: Ditto.
16700         * doc/invoke.texi: Ditto.
16702         * auto-profile.c, auto-profile.h: Fix up Copyright line.
16704 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
16706         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
16707         verb tense, etc.
16708         ([-fvtable-verify], [-fvtv-debug]): Likewise.
16709         ([-Wabi]): Likewise.
16710         ([-fmessage-length]): Likewise.
16711         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
16712         ([-Wno-discarded-qualifiers]): Likewise.
16713         ([-Wnodiscarded-array-qualifiers]): Likewise.
16714         ([-Wno-virtual-move-assign]): Likewise.
16715         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
16716         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
16717         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
16718         ([-fsanitize-undefined-trap-on-error]): Likewise.
16719         ([-floop-interchange]): Likewise.
16720         ([-ftree-coalesce-inlined-vars]): Likewise.
16721         ([-fvect-cost-model]): Likewise.
16722         ([-flto]): Likewise.
16723         ([--param]): Likewise.
16724         (Spec Files): Likewise.
16725         ([-mstrict-align]): Likewise.
16726         ([-mfix-cortex-a53-835769]): Likewise.
16727         ([-march], [-mtune]): Likewise.
16728         ([-mpic-register]): Likewise.
16729         ([-munaligned-access]): Likewise.
16730         ([-msp8]): Likewise.
16731         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
16732         (AVR Built-in Macros): Likewise.
16733         ([-mpreferred-stack-boundary]): Likewise.
16734         ([-mtune-crtl]): Likewise.
16735         ([-mashf]): Likewise.
16736         ([-mmcu=]): Likewise.
16737         ([-minrt]): Likewise.
16738         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
16739         ([-mupper-regs]): Likewise.
16740         ([-matomic-model]): Likewise.
16741         ([-mdiv]): Likewise.
16742         ([-mzdcbranch]): Likewise.
16743         ([-mdisable-callt]): Likewise.
16744         ([-msoft-float]): Likewise.
16745         ([-m8byte-align]): Likewise.
16746         ([-fstack-reuse]): Likewise.
16748 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
16750         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
16751         Fix markup, light copy-editing.
16752         ([-fauto-profile]): Rewrite to fix formatting and content
16753         problems.
16755 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
16757         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
16758         Copy-edit description.
16759         ([-fisolate-erroneous-paths-attribute]): Likewise.
16760         * common.opt (fisolate-erroneous-paths-dereference):
16761         Copy-edit description.
16762         (fisolate-erroneous-paths-attribute): Likewise.
16764 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
16766         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
16767         tidy grammar.
16769 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
16771         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
16772         ([-fvtv-debug]): Likewise.
16773         ([-Wc++-compat]): Likewise.
16774         ([-Wc++11-compat]): Likewise.
16775         ([-Wc++14-compat]): Likewise.
16776         ([-Wno-sized-deallocation]): Likewise.
16777         ([-femit-class-debug-always]): Likewise.
16778         ([-femit-struct-debug-detailed]): Likewise.
16779         ([-fno-keep-inline-dllexport]): Likewise.
16780         ([-fira-algorithm]): Likewise.
16781         ([-fira-region]): Likewise.
16782         ([-flra-remat]): Likewise.
16783         ([-fipa-ra]): Likewise.
16784         ([-fhoist-adjacent-loads]): Likewise.
16785         ([-fisolate-erroneous-paths-dereference]): Likewise.
16786         ([-fisolate-erroneous-paths-attribute]): Likewise.
16787         ([-ftree-switch-conversion]): Likewise.
16788         ([-ftree-tail-merge]): Likewise.
16789         ([-ftree-loop-if-convert]): Likewise.
16790         ([-ftree-loop-if-convert-stores]): Likewise.
16791         ([-ftree-loop-distribution]): Likewise.
16792         ([-ftree-loop-distribute-patterns]): Likewise.
16793         ([-flto-compression-level]): Likewise.
16794         ([-flto-report]): Likewise.
16795         ([-flto-report-wpa]): Likewise.
16796         ([-fuse-linker-plugin]): Likewise.
16797         ([-mfix-cortex-a53-835769]): Likewise.
16798         ([-mno-fix-cortex-a53-835769]): Likewise.
16799         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
16800         explicit listing; add a note to the discussion indicating they
16801         exist.  Reorder table to group similar options.  Add missing
16802         @opindex entries.  Add @need commands throughout the table to
16803         allow it to be split across multiple pages.
16804         ([-m8bit-idiv]): Fix @opindex.
16805         ([-mavx256-split-unaligned-load]): Likewise.
16806         ([-mavx256-split-unaligned-store]): Likewise.
16807         ([-mstack-protector-guard]): Likewise.
16808         ([-mcpu=]): Likewise.
16809         ([-mcpu]): Likewise.
16810         ([-mpointer-size=]): Likewise.
16812 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
16814         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
16815         instead of `m' constraint.  Likewise for unnamed movb comparison
16816         patterns using reg_before_reload_operand predicate.
16817         * config/pa/predicates.md (reg_before_reload_operand): Tighten
16818         predicate to reject register index and LO_SUM DLT memory forms
16819         after reload.
16821 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
16823         * doc/invoke.texi (Option Summary): Fix spelling of
16824         -fdevirtualize-at-ltrans.
16825         ([-fdevirtualize]): Fix markup.
16826         ([-fdevirtualize-speculatively]): Fix typo.
16827         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
16828         implementor-speaky.
16829         * common.opt (fdevirtualize-at-ltrans): Likewise.
16830         * ipa-devirt.c: Fix typos in comments throughout the file.
16831         (ipa_devirt): Fix typos in format strings for dump output.
16833 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
16835         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
16836         discussion of defaults, light copy-editing.
16838 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16840         * tsan.c (instrument_expr): corrected previous checkin.
16842 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16844         Instrument bit field and unaligned accesses for TSAN.
16845         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
16846         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
16847         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
16848         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
16849         unaligned memory regions.
16851 2015-01-01  Anthony Green  <green@moxielogic.com>
16853         * config/moxie/predicates.md (moxie_general_movsrc_operand):
16854         Restrict move source register offsets to 16 bits.
16856 Copyright (C) 2015 Free Software Foundation, Inc.
16858 Copying and distribution of this file, with or without modification,
16859 are permitted in any medium without royalty provided the copyright
16860 notice and this notice are preserved.